{"version":3,"sources":["../../../src/window/clients/calendar.ts"],"names":[],"mappings":"AA0CO,MAAM,cAAe,CAAA;AAAA,EACjB,MAAA;AAAA,EAET,YAAY,MAAsB,EAAA;AAChC,IAAA,IAAA,CAAK,MAAS,GAAA,MAAA;AAAA;AAChB,EAEA,MAAM,eAAe,MAAsC,EAAA;AACzD,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,yBAAA,EAA2B,MAAM,CAAA;AAAA;AAC1D,EAEA,MAAM,SAAS,MAAgC,EAAA;AAC7C,IAAA,MAAM,IAAK,CAAA,MAAA,CAAO,IAAK,CAAA,2BAAA,EAA6B,MAAM,CAAA;AAAA;AAE9D","file":"calendar.mjs","sourcesContent":["import { WindowClient } from '../window-client';\n\n/**\n * Compose meeting parameters\n */\nexport interface ComposeCalendarMeetingParams {\n  /**\n   * An array of email addresses, user name, or user id of the attendees to invite to the meeting.\n   */\n  attendees?: string[];\n\n  /**\n   * The start time of the meeting in MM/DD/YYYY HH:MM:SS format.\n   */\n  startTime?: string;\n\n  /**\n   * The end time of the meeting in MM/DD/YYYY HH:MM:SS format.\n   */\n  endTime?: string;\n\n  /**\n   * The subject line of the meeting.\n   */\n  subject?: string;\n\n  /**\n   * The body content of the meeting.\n   */\n  content?: string;\n}\n\n/**\n * Open calendar item parameters.\n */\nexport interface OpenCalendarItemParams {\n  /**\n   * An unique base64-encoded string id that represents the event's unique identifier of the calendar item to be opened.\n   */\n  itemId: string;\n}\n\nexport class CalendarClient {\n  readonly window: WindowClient;\n\n  constructor(client: WindowClient) {\n    this.window = client;\n  }\n\n  async composeMeeting(params: ComposeCalendarMeetingParams) {\n    await this.window.send('calendar.composeMeeting', params);\n  }\n\n  async openItem(params: OpenCalendarItemParams) {\n    await this.window.send('calendar.openCalendarItem', params);\n  }\n}\n"]}