@unified-api/typescript-sdk 2.16.0 → 2.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -0
- package/docs/sdks/busy/README.md +88 -0
- package/docs/sdks/calendar/README.md +1800 -0
- package/docs/sdks/event/README.md +524 -0
- package/docs/sdks/link/README.md +512 -0
- package/docs/sdks/recording/README.md +171 -0
- package/funcs/busyListCalendarBusies.d.ts +14 -0
- package/funcs/busyListCalendarBusies.d.ts.map +1 -0
- package/funcs/busyListCalendarBusies.js +118 -0
- package/funcs/busyListCalendarBusies.js.map +1 -0
- package/funcs/calendarCreateCalendarCalendar.d.ts +14 -0
- package/funcs/calendarCreateCalendarCalendar.d.ts.map +1 -0
- package/funcs/calendarCreateCalendarCalendar.js +109 -0
- package/funcs/calendarCreateCalendarCalendar.js.map +1 -0
- package/funcs/calendarCreateCalendarEvent.d.ts +14 -0
- package/funcs/calendarCreateCalendarEvent.d.ts.map +1 -0
- package/funcs/calendarCreateCalendarEvent.js +109 -0
- package/funcs/calendarCreateCalendarEvent.js.map +1 -0
- package/funcs/calendarCreateCalendarLink.d.ts +14 -0
- package/funcs/calendarCreateCalendarLink.d.ts.map +1 -0
- package/funcs/calendarCreateCalendarLink.js +109 -0
- package/funcs/calendarCreateCalendarLink.js.map +1 -0
- package/funcs/calendarGetCalendarCalendar.d.ts +14 -0
- package/funcs/calendarGetCalendarCalendar.d.ts.map +1 -0
- package/funcs/calendarGetCalendarCalendar.js +112 -0
- package/funcs/calendarGetCalendarCalendar.js.map +1 -0
- package/funcs/calendarGetCalendarEvent.d.ts +14 -0
- package/funcs/calendarGetCalendarEvent.d.ts.map +1 -0
- package/funcs/calendarGetCalendarEvent.js +112 -0
- package/funcs/calendarGetCalendarEvent.js.map +1 -0
- package/funcs/calendarGetCalendarLink.d.ts +14 -0
- package/funcs/calendarGetCalendarLink.d.ts.map +1 -0
- package/funcs/calendarGetCalendarLink.js +112 -0
- package/funcs/calendarGetCalendarLink.js.map +1 -0
- package/funcs/calendarGetCalendarRecording.d.ts +14 -0
- package/funcs/calendarGetCalendarRecording.d.ts.map +1 -0
- package/funcs/calendarGetCalendarRecording.js +112 -0
- package/funcs/calendarGetCalendarRecording.js.map +1 -0
- package/funcs/calendarListCalendarBusies.d.ts +14 -0
- package/funcs/calendarListCalendarBusies.d.ts.map +1 -0
- package/funcs/calendarListCalendarBusies.js +118 -0
- package/funcs/calendarListCalendarBusies.js.map +1 -0
- package/funcs/calendarListCalendarCalendars.d.ts +14 -0
- package/funcs/calendarListCalendarCalendars.d.ts.map +1 -0
- package/funcs/calendarListCalendarCalendars.js +115 -0
- package/funcs/calendarListCalendarCalendars.js.map +1 -0
- package/funcs/calendarListCalendarEvents.d.ts +14 -0
- package/funcs/calendarListCalendarEvents.d.ts.map +1 -0
- package/funcs/calendarListCalendarEvents.js +118 -0
- package/funcs/calendarListCalendarEvents.js.map +1 -0
- package/funcs/calendarListCalendarLinks.d.ts +14 -0
- package/funcs/calendarListCalendarLinks.d.ts.map +1 -0
- package/funcs/calendarListCalendarLinks.js +115 -0
- package/funcs/calendarListCalendarLinks.js.map +1 -0
- package/funcs/calendarListCalendarRecordings.d.ts +14 -0
- package/funcs/calendarListCalendarRecordings.d.ts.map +1 -0
- package/funcs/calendarListCalendarRecordings.js +118 -0
- package/funcs/calendarListCalendarRecordings.js.map +1 -0
- package/funcs/calendarPatchCalendarCalendar.d.ts +14 -0
- package/funcs/calendarPatchCalendarCalendar.d.ts.map +1 -0
- package/funcs/calendarPatchCalendarCalendar.js +113 -0
- package/funcs/calendarPatchCalendarCalendar.js.map +1 -0
- package/funcs/calendarPatchCalendarEvent.d.ts +14 -0
- package/funcs/calendarPatchCalendarEvent.d.ts.map +1 -0
- package/funcs/calendarPatchCalendarEvent.js +113 -0
- package/funcs/calendarPatchCalendarEvent.js.map +1 -0
- package/funcs/calendarPatchCalendarLink.d.ts +14 -0
- package/funcs/calendarPatchCalendarLink.d.ts.map +1 -0
- package/funcs/calendarPatchCalendarLink.js +113 -0
- package/funcs/calendarPatchCalendarLink.js.map +1 -0
- package/funcs/calendarRemoveCalendarCalendar.d.ts +13 -0
- package/funcs/calendarRemoveCalendarCalendar.d.ts.map +1 -0
- package/funcs/calendarRemoveCalendarCalendar.js +110 -0
- package/funcs/calendarRemoveCalendarCalendar.js.map +1 -0
- package/funcs/calendarRemoveCalendarEvent.d.ts +13 -0
- package/funcs/calendarRemoveCalendarEvent.d.ts.map +1 -0
- package/funcs/calendarRemoveCalendarEvent.js +110 -0
- package/funcs/calendarRemoveCalendarEvent.js.map +1 -0
- package/funcs/calendarRemoveCalendarLink.d.ts +13 -0
- package/funcs/calendarRemoveCalendarLink.d.ts.map +1 -0
- package/funcs/calendarRemoveCalendarLink.js +110 -0
- package/funcs/calendarRemoveCalendarLink.js.map +1 -0
- package/funcs/calendarUpdateCalendarCalendar.d.ts +14 -0
- package/funcs/calendarUpdateCalendarCalendar.d.ts.map +1 -0
- package/funcs/calendarUpdateCalendarCalendar.js +113 -0
- package/funcs/calendarUpdateCalendarCalendar.js.map +1 -0
- package/funcs/calendarUpdateCalendarEvent.d.ts +14 -0
- package/funcs/calendarUpdateCalendarEvent.d.ts.map +1 -0
- package/funcs/calendarUpdateCalendarEvent.js +113 -0
- package/funcs/calendarUpdateCalendarEvent.js.map +1 -0
- package/funcs/calendarUpdateCalendarLink.d.ts +14 -0
- package/funcs/calendarUpdateCalendarLink.d.ts.map +1 -0
- package/funcs/calendarUpdateCalendarLink.js +113 -0
- package/funcs/calendarUpdateCalendarLink.js.map +1 -0
- package/funcs/eventCreateCalendarEvent.d.ts +14 -0
- package/funcs/eventCreateCalendarEvent.d.ts.map +1 -0
- package/funcs/eventCreateCalendarEvent.js +109 -0
- package/funcs/eventCreateCalendarEvent.js.map +1 -0
- package/funcs/eventGetCalendarEvent.d.ts +14 -0
- package/funcs/eventGetCalendarEvent.d.ts.map +1 -0
- package/funcs/eventGetCalendarEvent.js +112 -0
- package/funcs/eventGetCalendarEvent.js.map +1 -0
- package/funcs/eventListCalendarEvents.d.ts +14 -0
- package/funcs/eventListCalendarEvents.d.ts.map +1 -0
- package/funcs/eventListCalendarEvents.js +118 -0
- package/funcs/eventListCalendarEvents.js.map +1 -0
- package/funcs/eventPatchCalendarEvent.d.ts +14 -0
- package/funcs/eventPatchCalendarEvent.d.ts.map +1 -0
- package/funcs/eventPatchCalendarEvent.js +113 -0
- package/funcs/eventPatchCalendarEvent.js.map +1 -0
- package/funcs/eventRemoveCalendarEvent.d.ts +13 -0
- package/funcs/eventRemoveCalendarEvent.d.ts.map +1 -0
- package/funcs/eventRemoveCalendarEvent.js +110 -0
- package/funcs/eventRemoveCalendarEvent.js.map +1 -0
- package/funcs/eventUpdateCalendarEvent.d.ts +14 -0
- package/funcs/eventUpdateCalendarEvent.d.ts.map +1 -0
- package/funcs/eventUpdateCalendarEvent.js +113 -0
- package/funcs/eventUpdateCalendarEvent.js.map +1 -0
- package/funcs/linkCreateCalendarLink.d.ts +14 -0
- package/funcs/linkCreateCalendarLink.d.ts.map +1 -0
- package/funcs/linkCreateCalendarLink.js +109 -0
- package/funcs/linkCreateCalendarLink.js.map +1 -0
- package/funcs/linkGetCalendarLink.d.ts +14 -0
- package/funcs/linkGetCalendarLink.d.ts.map +1 -0
- package/funcs/linkGetCalendarLink.js +112 -0
- package/funcs/linkGetCalendarLink.js.map +1 -0
- package/funcs/linkListCalendarLinks.d.ts +14 -0
- package/funcs/linkListCalendarLinks.d.ts.map +1 -0
- package/funcs/linkListCalendarLinks.js +115 -0
- package/funcs/linkListCalendarLinks.js.map +1 -0
- package/funcs/linkPatchCalendarLink.d.ts +14 -0
- package/funcs/linkPatchCalendarLink.d.ts.map +1 -0
- package/funcs/linkPatchCalendarLink.js +113 -0
- package/funcs/linkPatchCalendarLink.js.map +1 -0
- package/funcs/linkRemoveCalendarLink.d.ts +13 -0
- package/funcs/linkRemoveCalendarLink.d.ts.map +1 -0
- package/funcs/linkRemoveCalendarLink.js +110 -0
- package/funcs/linkRemoveCalendarLink.js.map +1 -0
- package/funcs/linkUpdateCalendarLink.d.ts +14 -0
- package/funcs/linkUpdateCalendarLink.d.ts.map +1 -0
- package/funcs/linkUpdateCalendarLink.js +113 -0
- package/funcs/linkUpdateCalendarLink.js.map +1 -0
- package/funcs/recordingGetCalendarRecording.d.ts +14 -0
- package/funcs/recordingGetCalendarRecording.d.ts.map +1 -0
- package/funcs/recordingGetCalendarRecording.js +112 -0
- package/funcs/recordingGetCalendarRecording.js.map +1 -0
- package/funcs/recordingListCalendarRecordings.d.ts +14 -0
- package/funcs/recordingListCalendarRecordings.d.ts.map +1 -0
- package/funcs/recordingListCalendarRecordings.js +118 -0
- package/funcs/recordingListCalendarRecordings.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/package.json +1 -1
- package/sdk/busy.d.ts +10 -0
- package/sdk/busy.d.ts.map +1 -0
- package/sdk/busy.js +19 -0
- package/sdk/busy.js.map +1 -0
- package/sdk/calendar.d.ts +90 -0
- package/sdk/calendar.d.ts.map +1 -0
- package/sdk/calendar.js +159 -0
- package/sdk/calendar.js.map +1 -0
- package/sdk/event.d.ts +24 -0
- package/sdk/event.d.ts.map +1 -1
- package/sdk/event.js +42 -0
- package/sdk/event.js.map +1 -1
- package/sdk/link.d.ts +24 -0
- package/sdk/link.d.ts.map +1 -1
- package/sdk/link.js +42 -0
- package/sdk/link.js.map +1 -1
- package/sdk/models/operations/createcalendarcalendar.d.ts +40 -0
- package/sdk/models/operations/createcalendarcalendar.d.ts.map +1 -0
- package/sdk/models/operations/createcalendarcalendar.js +75 -0
- package/sdk/models/operations/createcalendarcalendar.js.map +1 -0
- package/sdk/models/operations/createcalendarevent.d.ts +40 -0
- package/sdk/models/operations/createcalendarevent.d.ts.map +1 -0
- package/sdk/models/operations/createcalendarevent.js +75 -0
- package/sdk/models/operations/createcalendarevent.js.map +1 -0
- package/sdk/models/operations/createcalendarlink.d.ts +40 -0
- package/sdk/models/operations/createcalendarlink.d.ts.map +1 -0
- package/sdk/models/operations/createcalendarlink.js +75 -0
- package/sdk/models/operations/createcalendarlink.js.map +1 -0
- package/sdk/models/operations/getcalendarcalendar.d.ts +42 -0
- package/sdk/models/operations/getcalendarcalendar.d.ts.map +1 -0
- package/sdk/models/operations/getcalendarcalendar.js +72 -0
- package/sdk/models/operations/getcalendarcalendar.js.map +1 -0
- package/sdk/models/operations/getcalendarevent.d.ts +42 -0
- package/sdk/models/operations/getcalendarevent.d.ts.map +1 -0
- package/sdk/models/operations/getcalendarevent.js +72 -0
- package/sdk/models/operations/getcalendarevent.js.map +1 -0
- package/sdk/models/operations/getcalendarlink.d.ts +42 -0
- package/sdk/models/operations/getcalendarlink.d.ts.map +1 -0
- package/sdk/models/operations/getcalendarlink.js +72 -0
- package/sdk/models/operations/getcalendarlink.js.map +1 -0
- package/sdk/models/operations/getcalendarrecording.d.ts +42 -0
- package/sdk/models/operations/getcalendarrecording.d.ts.map +1 -0
- package/sdk/models/operations/getcalendarrecording.js +72 -0
- package/sdk/models/operations/getcalendarrecording.js.map +1 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts +30 -0
- package/sdk/models/operations/getunifiedintegrationauth.d.ts.map +1 -1
- package/sdk/models/operations/getunifiedintegrationauth.js +10 -0
- package/sdk/models/operations/getunifiedintegrationauth.js.map +1 -1
- package/sdk/models/operations/index.d.ts +21 -0
- package/sdk/models/operations/index.d.ts.map +1 -1
- package/sdk/models/operations/index.js +21 -0
- package/sdk/models/operations/index.js.map +1 -1
- package/sdk/models/operations/listcalendarbusies.d.ts +61 -0
- package/sdk/models/operations/listcalendarbusies.d.ts.map +1 -0
- package/sdk/models/operations/listcalendarbusies.js +97 -0
- package/sdk/models/operations/listcalendarbusies.js.map +1 -0
- package/sdk/models/operations/listcalendarcalendars.d.ts +55 -0
- package/sdk/models/operations/listcalendarcalendars.d.ts.map +1 -0
- package/sdk/models/operations/listcalendarcalendars.js +85 -0
- package/sdk/models/operations/listcalendarcalendars.js.map +1 -0
- package/sdk/models/operations/listcalendarevents.d.ts +61 -0
- package/sdk/models/operations/listcalendarevents.d.ts.map +1 -0
- package/sdk/models/operations/listcalendarevents.js +97 -0
- package/sdk/models/operations/listcalendarevents.js.map +1 -0
- package/sdk/models/operations/listcalendarlinks.d.ts +55 -0
- package/sdk/models/operations/listcalendarlinks.d.ts.map +1 -0
- package/sdk/models/operations/listcalendarlinks.js +85 -0
- package/sdk/models/operations/listcalendarlinks.js.map +1 -0
- package/sdk/models/operations/listcalendarrecordings.d.ts +61 -0
- package/sdk/models/operations/listcalendarrecordings.d.ts.map +1 -0
- package/sdk/models/operations/listcalendarrecordings.js +97 -0
- package/sdk/models/operations/listcalendarrecordings.js.map +1 -0
- package/sdk/models/operations/listunifiedconnections.d.ts +3 -0
- package/sdk/models/operations/listunifiedconnections.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedconnections.js +1 -0
- package/sdk/models/operations/listunifiedconnections.js.map +1 -1
- package/sdk/models/operations/listunifiedintegrations.d.ts +3 -0
- package/sdk/models/operations/listunifiedintegrations.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedintegrations.js +1 -0
- package/sdk/models/operations/listunifiedintegrations.js.map +1 -1
- package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts +3 -0
- package/sdk/models/operations/listunifiedintegrationworkspaces.d.ts.map +1 -1
- package/sdk/models/operations/listunifiedintegrationworkspaces.js +1 -0
- package/sdk/models/operations/listunifiedintegrationworkspaces.js.map +1 -1
- package/sdk/models/operations/patchcalendarcalendar.d.ts +45 -0
- package/sdk/models/operations/patchcalendarcalendar.d.ts.map +1 -0
- package/sdk/models/operations/patchcalendarcalendar.js +77 -0
- package/sdk/models/operations/patchcalendarcalendar.js.map +1 -0
- package/sdk/models/operations/patchcalendarevent.d.ts +45 -0
- package/sdk/models/operations/patchcalendarevent.d.ts.map +1 -0
- package/sdk/models/operations/patchcalendarevent.js +77 -0
- package/sdk/models/operations/patchcalendarevent.js.map +1 -0
- package/sdk/models/operations/patchcalendarlink.d.ts +45 -0
- package/sdk/models/operations/patchcalendarlink.d.ts.map +1 -0
- package/sdk/models/operations/patchcalendarlink.js +77 -0
- package/sdk/models/operations/patchcalendarlink.js.map +1 -0
- package/sdk/models/operations/removecalendarcalendar.d.ts +66 -0
- package/sdk/models/operations/removecalendarcalendar.d.ts.map +1 -0
- package/sdk/models/operations/removecalendarcalendar.js +105 -0
- package/sdk/models/operations/removecalendarcalendar.js.map +1 -0
- package/sdk/models/operations/removecalendarevent.d.ts +66 -0
- package/sdk/models/operations/removecalendarevent.d.ts.map +1 -0
- package/sdk/models/operations/removecalendarevent.js +105 -0
- package/sdk/models/operations/removecalendarevent.js.map +1 -0
- package/sdk/models/operations/removecalendarlink.d.ts +66 -0
- package/sdk/models/operations/removecalendarlink.d.ts.map +1 -0
- package/sdk/models/operations/removecalendarlink.js +105 -0
- package/sdk/models/operations/removecalendarlink.js.map +1 -0
- package/sdk/models/operations/updatecalendarcalendar.d.ts +45 -0
- package/sdk/models/operations/updatecalendarcalendar.d.ts.map +1 -0
- package/sdk/models/operations/updatecalendarcalendar.js +77 -0
- package/sdk/models/operations/updatecalendarcalendar.js.map +1 -0
- package/sdk/models/operations/updatecalendarevent.d.ts +45 -0
- package/sdk/models/operations/updatecalendarevent.d.ts.map +1 -0
- package/sdk/models/operations/updatecalendarevent.js +77 -0
- package/sdk/models/operations/updatecalendarevent.js.map +1 -0
- package/sdk/models/operations/updatecalendarlink.d.ts +45 -0
- package/sdk/models/operations/updatecalendarlink.d.ts.map +1 -0
- package/sdk/models/operations/updatecalendarlink.js +77 -0
- package/sdk/models/operations/updatecalendarlink.js.map +1 -0
- package/sdk/models/shared/atscandidate.d.ts +8 -0
- package/sdk/models/shared/atscandidate.d.ts.map +1 -1
- package/sdk/models/shared/atscandidate.js +8 -0
- package/sdk/models/shared/atscandidate.js.map +1 -1
- package/sdk/models/shared/atscandidateeducation.d.ts +39 -0
- package/sdk/models/shared/atscandidateeducation.d.ts.map +1 -0
- package/sdk/models/shared/atscandidateeducation.js +84 -0
- package/sdk/models/shared/atscandidateeducation.js.map +1 -0
- package/sdk/models/shared/atscandidateexperience.d.ts +35 -0
- package/sdk/models/shared/atscandidateexperience.d.ts.map +1 -0
- package/sdk/models/shared/atscandidateexperience.js +80 -0
- package/sdk/models/shared/atscandidateexperience.js.map +1 -0
- package/sdk/models/shared/calendarattendee.d.ts +66 -0
- package/sdk/models/shared/calendarattendee.d.ts.map +1 -0
- package/sdk/models/shared/calendarattendee.js +96 -0
- package/sdk/models/shared/calendarattendee.js.map +1 -0
- package/sdk/models/shared/calendarbusy.d.ts +60 -0
- package/sdk/models/shared/calendarbusy.d.ts.map +1 -0
- package/sdk/models/shared/calendarbusy.js +103 -0
- package/sdk/models/shared/calendarbusy.js.map +1 -0
- package/sdk/models/shared/calendarcalendar.d.ts +62 -0
- package/sdk/models/shared/calendarcalendar.d.ts.map +1 -0
- package/sdk/models/shared/calendarcalendar.js +107 -0
- package/sdk/models/shared/calendarcalendar.js.map +1 -0
- package/sdk/models/shared/calendarevent.d.ts +115 -0
- package/sdk/models/shared/calendarevent.d.ts.map +1 -0
- package/sdk/models/shared/calendarevent.js +163 -0
- package/sdk/models/shared/calendarevent.js.map +1 -0
- package/sdk/models/shared/calendarlink.d.ts +70 -0
- package/sdk/models/shared/calendarlink.d.ts.map +1 -0
- package/sdk/models/shared/calendarlink.js +119 -0
- package/sdk/models/shared/calendarlink.js.map +1 -0
- package/sdk/models/shared/calendarrecording.d.ts +69 -0
- package/sdk/models/shared/calendarrecording.d.ts.map +1 -0
- package/sdk/models/shared/calendarrecording.js +127 -0
- package/sdk/models/shared/calendarrecording.js.map +1 -0
- package/sdk/models/shared/calendarrecordingmedia.d.ts +43 -0
- package/sdk/models/shared/calendarrecordingmedia.d.ts.map +1 -0
- package/sdk/models/shared/calendarrecordingmedia.js +90 -0
- package/sdk/models/shared/calendarrecordingmedia.js.map +1 -0
- package/sdk/models/shared/calendarrecordingtranscript.d.ts +38 -0
- package/sdk/models/shared/calendarrecordingtranscript.d.ts.map +1 -0
- package/sdk/models/shared/calendarrecordingtranscript.js +83 -0
- package/sdk/models/shared/calendarrecordingtranscript.js.map +1 -0
- package/sdk/models/shared/index.d.ts +12 -0
- package/sdk/models/shared/index.d.ts.map +1 -1
- package/sdk/models/shared/index.js +12 -0
- package/sdk/models/shared/index.js.map +1 -1
- package/sdk/models/shared/integrationsupport.d.ts +60 -0
- package/sdk/models/shared/integrationsupport.d.ts.map +1 -1
- package/sdk/models/shared/integrationsupport.js +55 -6
- package/sdk/models/shared/integrationsupport.js.map +1 -1
- package/sdk/models/shared/propertycalendareventorganizer.d.ts +66 -0
- package/sdk/models/shared/propertycalendareventorganizer.d.ts.map +1 -0
- package/sdk/models/shared/propertycalendareventorganizer.js +96 -0
- package/sdk/models/shared/propertycalendareventorganizer.js.map +1 -0
- package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.d.ts +66 -0
- package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.d.ts.map +1 -0
- package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.js +99 -0
- package/sdk/models/shared/propertycalendarrecordingtranscriptattendee.js.map +1 -0
- package/sdk/models/shared/propertyconnectionauth.d.ts +2 -0
- package/sdk/models/shared/propertyconnectionauth.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionauth.js +4 -0
- package/sdk/models/shared/propertyconnectionauth.js.map +1 -1
- package/sdk/models/shared/propertyconnectioncategories.d.ts +3 -0
- package/sdk/models/shared/propertyconnectioncategories.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectioncategories.js +1 -0
- package/sdk/models/shared/propertyconnectioncategories.js.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.d.ts +30 -0
- package/sdk/models/shared/propertyconnectionpermissions.d.ts.map +1 -1
- package/sdk/models/shared/propertyconnectionpermissions.js +10 -0
- package/sdk/models/shared/propertyconnectionpermissions.js.map +1 -1
- package/sdk/models/shared/propertyintegrationcategories.d.ts +3 -0
- package/sdk/models/shared/propertyintegrationcategories.d.ts.map +1 -1
- package/sdk/models/shared/propertyintegrationcategories.js +1 -0
- package/sdk/models/shared/propertyintegrationcategories.js.map +1 -1
- package/sdk/models/shared/webhook.d.ts +15 -0
- package/sdk/models/shared/webhook.d.ts.map +1 -1
- package/sdk/models/shared/webhook.js +5 -0
- package/sdk/models/shared/webhook.js.map +1 -1
- package/sdk/recording.d.ts +14 -0
- package/sdk/recording.d.ts.map +1 -0
- package/sdk/recording.js +26 -0
- package/sdk/recording.js.map +1 -0
- package/sdk/sdk.d.ts +13 -4
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +18 -6
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/busyListCalendarBusies.ts +172 -0
- package/src/funcs/calendarCreateCalendarCalendar.ts +164 -0
- package/src/funcs/calendarCreateCalendarEvent.ts +164 -0
- package/src/funcs/calendarCreateCalendarLink.ts +163 -0
- package/src/funcs/calendarGetCalendarCalendar.ts +169 -0
- package/src/funcs/calendarGetCalendarEvent.ts +166 -0
- package/src/funcs/calendarGetCalendarLink.ts +166 -0
- package/src/funcs/calendarGetCalendarRecording.ts +169 -0
- package/src/funcs/calendarListCalendarBusies.ts +172 -0
- package/src/funcs/calendarListCalendarCalendars.ts +170 -0
- package/src/funcs/calendarListCalendarEvents.ts +172 -0
- package/src/funcs/calendarListCalendarLinks.ts +169 -0
- package/src/funcs/calendarListCalendarRecordings.ts +173 -0
- package/src/funcs/calendarPatchCalendarCalendar.ts +170 -0
- package/src/funcs/calendarPatchCalendarEvent.ts +167 -0
- package/src/funcs/calendarPatchCalendarLink.ts +167 -0
- package/src/funcs/calendarRemoveCalendarCalendar.ts +175 -0
- package/src/funcs/calendarRemoveCalendarEvent.ts +170 -0
- package/src/funcs/calendarRemoveCalendarLink.ts +169 -0
- package/src/funcs/calendarUpdateCalendarCalendar.ts +170 -0
- package/src/funcs/calendarUpdateCalendarEvent.ts +168 -0
- package/src/funcs/calendarUpdateCalendarLink.ts +167 -0
- package/src/funcs/eventCreateCalendarEvent.ts +164 -0
- package/src/funcs/eventGetCalendarEvent.ts +166 -0
- package/src/funcs/eventListCalendarEvents.ts +172 -0
- package/src/funcs/eventPatchCalendarEvent.ts +167 -0
- package/src/funcs/eventRemoveCalendarEvent.ts +170 -0
- package/src/funcs/eventUpdateCalendarEvent.ts +168 -0
- package/src/funcs/linkCreateCalendarLink.ts +163 -0
- package/src/funcs/linkGetCalendarLink.ts +166 -0
- package/src/funcs/linkListCalendarLinks.ts +169 -0
- package/src/funcs/linkPatchCalendarLink.ts +167 -0
- package/src/funcs/linkRemoveCalendarLink.ts +169 -0
- package/src/funcs/linkUpdateCalendarLink.ts +167 -0
- package/src/funcs/recordingGetCalendarRecording.ts +169 -0
- package/src/funcs/recordingListCalendarRecordings.ts +173 -0
- package/src/lib/config.ts +2 -2
- package/src/sdk/busy.ts +25 -0
- package/src/sdk/calendar.ts +325 -0
- package/src/sdk/event.ts +90 -0
- package/src/sdk/link.ts +90 -0
- package/src/sdk/models/operations/createcalendarcalendar.ts +94 -0
- package/src/sdk/models/operations/createcalendarevent.ts +92 -0
- package/src/sdk/models/operations/createcalendarlink.ts +92 -0
- package/src/sdk/models/operations/getcalendarcalendar.ts +92 -0
- package/src/sdk/models/operations/getcalendarevent.ts +92 -0
- package/src/sdk/models/operations/getcalendarlink.ts +92 -0
- package/src/sdk/models/operations/getcalendarrecording.ts +94 -0
- package/src/sdk/models/operations/getunifiedintegrationauth.ts +10 -0
- package/src/sdk/models/operations/index.ts +21 -0
- package/src/sdk/models/operations/listcalendarbusies.ts +136 -0
- package/src/sdk/models/operations/listcalendarcalendars.ts +120 -0
- package/src/sdk/models/operations/listcalendarevents.ts +136 -0
- package/src/sdk/models/operations/listcalendarlinks.ts +118 -0
- package/src/sdk/models/operations/listcalendarrecordings.ts +138 -0
- package/src/sdk/models/operations/listunifiedconnections.ts +1 -0
- package/src/sdk/models/operations/listunifiedintegrations.ts +1 -0
- package/src/sdk/models/operations/listunifiedintegrationworkspaces.ts +1 -0
- package/src/sdk/models/operations/patchcalendarcalendar.ts +101 -0
- package/src/sdk/models/operations/patchcalendarevent.ts +99 -0
- package/src/sdk/models/operations/patchcalendarlink.ts +99 -0
- package/src/sdk/models/operations/removecalendarcalendar.ts +155 -0
- package/src/sdk/models/operations/removecalendarevent.ts +153 -0
- package/src/sdk/models/operations/removecalendarlink.ts +151 -0
- package/src/sdk/models/operations/updatecalendarcalendar.ts +101 -0
- package/src/sdk/models/operations/updatecalendarevent.ts +99 -0
- package/src/sdk/models/operations/updatecalendarlink.ts +99 -0
- package/src/sdk/models/shared/atscandidate.ts +24 -0
- package/src/sdk/models/shared/atscandidateeducation.ts +101 -0
- package/src/sdk/models/shared/atscandidateexperience.ts +93 -0
- package/src/sdk/models/shared/calendarattendee.ts +120 -0
- package/src/sdk/models/shared/calendarbusy.ts +141 -0
- package/src/sdk/models/shared/calendarcalendar.ts +153 -0
- package/src/sdk/models/shared/calendarevent.ts +246 -0
- package/src/sdk/models/shared/calendarlink.ts +167 -0
- package/src/sdk/models/shared/calendarrecording.ts +184 -0
- package/src/sdk/models/shared/calendarrecordingmedia.ts +119 -0
- package/src/sdk/models/shared/calendarrecordingtranscript.ts +105 -0
- package/src/sdk/models/shared/index.ts +12 -0
- package/src/sdk/models/shared/integrationsupport.ts +66 -0
- package/src/sdk/models/shared/propertycalendareventorganizer.ts +127 -0
- package/src/sdk/models/shared/propertycalendarrecordingtranscriptattendee.ts +139 -0
- package/src/sdk/models/shared/propertyconnectionauth.ts +6 -0
- package/src/sdk/models/shared/propertyconnectioncategories.ts +1 -0
- package/src/sdk/models/shared/propertyconnectionpermissions.ts +10 -0
- package/src/sdk/models/shared/propertyintegrationcategories.ts +1 -0
- package/src/sdk/models/shared/webhook.ts +5 -0
- package/src/sdk/recording.ts +40 -0
- package/src/sdk/sdk.ts +28 -10
|
@@ -0,0 +1,1800 @@
|
|
|
1
|
+
# Calendar
|
|
2
|
+
(*calendar*)
|
|
3
|
+
|
|
4
|
+
## Overview
|
|
5
|
+
|
|
6
|
+
### Available Operations
|
|
7
|
+
|
|
8
|
+
* [createCalendarCalendar](#createcalendarcalendar) - Create a calendar
|
|
9
|
+
* [createCalendarEvent](#createcalendarevent) - Create an event
|
|
10
|
+
* [createCalendarLink](#createcalendarlink) - Create a link
|
|
11
|
+
* [getCalendarCalendar](#getcalendarcalendar) - Retrieve a calendar
|
|
12
|
+
* [getCalendarEvent](#getcalendarevent) - Retrieve an event
|
|
13
|
+
* [getCalendarLink](#getcalendarlink) - Retrieve a link
|
|
14
|
+
* [getCalendarRecording](#getcalendarrecording) - Retrieve a recording
|
|
15
|
+
* [listCalendarBusies](#listcalendarbusies) - List all busies
|
|
16
|
+
* [listCalendarCalendars](#listcalendarcalendars) - List all calendars
|
|
17
|
+
* [listCalendarEvents](#listcalendarevents) - List all events
|
|
18
|
+
* [listCalendarLinks](#listcalendarlinks) - List all links
|
|
19
|
+
* [listCalendarRecordings](#listcalendarrecordings) - List all recordings
|
|
20
|
+
* [patchCalendarCalendar](#patchcalendarcalendar) - Update a calendar
|
|
21
|
+
* [patchCalendarEvent](#patchcalendarevent) - Update an event
|
|
22
|
+
* [patchCalendarLink](#patchcalendarlink) - Update a link
|
|
23
|
+
* [removeCalendarCalendar](#removecalendarcalendar) - Remove a calendar
|
|
24
|
+
* [removeCalendarEvent](#removecalendarevent) - Remove an event
|
|
25
|
+
* [removeCalendarLink](#removecalendarlink) - Remove a link
|
|
26
|
+
* [updateCalendarCalendar](#updatecalendarcalendar) - Update a calendar
|
|
27
|
+
* [updateCalendarEvent](#updatecalendarevent) - Update an event
|
|
28
|
+
* [updateCalendarLink](#updatecalendarlink) - Update a link
|
|
29
|
+
|
|
30
|
+
## createCalendarCalendar
|
|
31
|
+
|
|
32
|
+
Create a calendar
|
|
33
|
+
|
|
34
|
+
### Example Usage
|
|
35
|
+
|
|
36
|
+
```typescript
|
|
37
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
38
|
+
|
|
39
|
+
const unifiedTo = new UnifiedTo({
|
|
40
|
+
security: {
|
|
41
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
42
|
+
},
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
async function run() {
|
|
46
|
+
const result = await unifiedTo.calendar.createCalendarCalendar({
|
|
47
|
+
calendarCalendar: {
|
|
48
|
+
name: "<value>",
|
|
49
|
+
},
|
|
50
|
+
connectionId: "<id>",
|
|
51
|
+
});
|
|
52
|
+
|
|
53
|
+
// Handle the result
|
|
54
|
+
console.log(result);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
run();
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Standalone function
|
|
61
|
+
|
|
62
|
+
The standalone function version of this method:
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
66
|
+
import { calendarCreateCalendarCalendar } from "@unified-api/typescript-sdk/funcs/calendarCreateCalendarCalendar.js";
|
|
67
|
+
|
|
68
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
69
|
+
// You can create one instance of it to use across an application.
|
|
70
|
+
const unifiedTo = new UnifiedToCore({
|
|
71
|
+
security: {
|
|
72
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
73
|
+
},
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
async function run() {
|
|
77
|
+
const res = await calendarCreateCalendarCalendar(unifiedTo, {
|
|
78
|
+
calendarCalendar: {
|
|
79
|
+
name: "<value>",
|
|
80
|
+
},
|
|
81
|
+
connectionId: "<id>",
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
if (!res.ok) {
|
|
85
|
+
throw res.error;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const { value: result } = res;
|
|
89
|
+
|
|
90
|
+
// Handle the result
|
|
91
|
+
console.log(result);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
run();
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Parameters
|
|
98
|
+
|
|
99
|
+
| Parameter | Type | Required | Description |
|
|
100
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
101
|
+
| `request` | [operations.CreateCalendarCalendarRequest](../../sdk/models/operations/createcalendarcalendarrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
102
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
103
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
104
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
105
|
+
|
|
106
|
+
### Response
|
|
107
|
+
|
|
108
|
+
**Promise\<[shared.CalendarCalendar](../../sdk/models/shared/calendarcalendar.md)\>**
|
|
109
|
+
|
|
110
|
+
### Errors
|
|
111
|
+
|
|
112
|
+
| Error Type | Status Code | Content Type |
|
|
113
|
+
| --------------- | --------------- | --------------- |
|
|
114
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
115
|
+
|
|
116
|
+
## createCalendarEvent
|
|
117
|
+
|
|
118
|
+
Create an event
|
|
119
|
+
|
|
120
|
+
### Example Usage
|
|
121
|
+
|
|
122
|
+
```typescript
|
|
123
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
124
|
+
|
|
125
|
+
const unifiedTo = new UnifiedTo({
|
|
126
|
+
security: {
|
|
127
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
128
|
+
},
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
async function run() {
|
|
132
|
+
const result = await unifiedTo.calendar.createCalendarEvent({
|
|
133
|
+
calendarEvent: {
|
|
134
|
+
endAt: "<value>",
|
|
135
|
+
startAt: "<value>",
|
|
136
|
+
subject: "<value>",
|
|
137
|
+
},
|
|
138
|
+
connectionId: "<id>",
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
// Handle the result
|
|
142
|
+
console.log(result);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
run();
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
### Standalone function
|
|
149
|
+
|
|
150
|
+
The standalone function version of this method:
|
|
151
|
+
|
|
152
|
+
```typescript
|
|
153
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
154
|
+
import { calendarCreateCalendarEvent } from "@unified-api/typescript-sdk/funcs/calendarCreateCalendarEvent.js";
|
|
155
|
+
|
|
156
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
157
|
+
// You can create one instance of it to use across an application.
|
|
158
|
+
const unifiedTo = new UnifiedToCore({
|
|
159
|
+
security: {
|
|
160
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
161
|
+
},
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
async function run() {
|
|
165
|
+
const res = await calendarCreateCalendarEvent(unifiedTo, {
|
|
166
|
+
calendarEvent: {
|
|
167
|
+
endAt: "<value>",
|
|
168
|
+
startAt: "<value>",
|
|
169
|
+
subject: "<value>",
|
|
170
|
+
},
|
|
171
|
+
connectionId: "<id>",
|
|
172
|
+
});
|
|
173
|
+
|
|
174
|
+
if (!res.ok) {
|
|
175
|
+
throw res.error;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
const { value: result } = res;
|
|
179
|
+
|
|
180
|
+
// Handle the result
|
|
181
|
+
console.log(result);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
run();
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### Parameters
|
|
188
|
+
|
|
189
|
+
| Parameter | Type | Required | Description |
|
|
190
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
191
|
+
| `request` | [operations.CreateCalendarEventRequest](../../sdk/models/operations/createcalendareventrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
192
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
193
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
194
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
195
|
+
|
|
196
|
+
### Response
|
|
197
|
+
|
|
198
|
+
**Promise\<[shared.CalendarEvent](../../sdk/models/shared/calendarevent.md)\>**
|
|
199
|
+
|
|
200
|
+
### Errors
|
|
201
|
+
|
|
202
|
+
| Error Type | Status Code | Content Type |
|
|
203
|
+
| --------------- | --------------- | --------------- |
|
|
204
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
205
|
+
|
|
206
|
+
## createCalendarLink
|
|
207
|
+
|
|
208
|
+
Create a link
|
|
209
|
+
|
|
210
|
+
### Example Usage
|
|
211
|
+
|
|
212
|
+
```typescript
|
|
213
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
214
|
+
|
|
215
|
+
const unifiedTo = new UnifiedTo({
|
|
216
|
+
security: {
|
|
217
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
218
|
+
},
|
|
219
|
+
});
|
|
220
|
+
|
|
221
|
+
async function run() {
|
|
222
|
+
const result = await unifiedTo.calendar.createCalendarLink({
|
|
223
|
+
calendarLink: {
|
|
224
|
+
url: "https://sturdy-begonia.biz/",
|
|
225
|
+
},
|
|
226
|
+
connectionId: "<id>",
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
// Handle the result
|
|
230
|
+
console.log(result);
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
run();
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### Standalone function
|
|
237
|
+
|
|
238
|
+
The standalone function version of this method:
|
|
239
|
+
|
|
240
|
+
```typescript
|
|
241
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
242
|
+
import { calendarCreateCalendarLink } from "@unified-api/typescript-sdk/funcs/calendarCreateCalendarLink.js";
|
|
243
|
+
|
|
244
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
245
|
+
// You can create one instance of it to use across an application.
|
|
246
|
+
const unifiedTo = new UnifiedToCore({
|
|
247
|
+
security: {
|
|
248
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
249
|
+
},
|
|
250
|
+
});
|
|
251
|
+
|
|
252
|
+
async function run() {
|
|
253
|
+
const res = await calendarCreateCalendarLink(unifiedTo, {
|
|
254
|
+
calendarLink: {
|
|
255
|
+
url: "https://sturdy-begonia.biz/",
|
|
256
|
+
},
|
|
257
|
+
connectionId: "<id>",
|
|
258
|
+
});
|
|
259
|
+
|
|
260
|
+
if (!res.ok) {
|
|
261
|
+
throw res.error;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
const { value: result } = res;
|
|
265
|
+
|
|
266
|
+
// Handle the result
|
|
267
|
+
console.log(result);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
run();
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Parameters
|
|
274
|
+
|
|
275
|
+
| Parameter | Type | Required | Description |
|
|
276
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
277
|
+
| `request` | [operations.CreateCalendarLinkRequest](../../sdk/models/operations/createcalendarlinkrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
278
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
279
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
280
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
281
|
+
|
|
282
|
+
### Response
|
|
283
|
+
|
|
284
|
+
**Promise\<[shared.CalendarLink](../../sdk/models/shared/calendarlink.md)\>**
|
|
285
|
+
|
|
286
|
+
### Errors
|
|
287
|
+
|
|
288
|
+
| Error Type | Status Code | Content Type |
|
|
289
|
+
| --------------- | --------------- | --------------- |
|
|
290
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
291
|
+
|
|
292
|
+
## getCalendarCalendar
|
|
293
|
+
|
|
294
|
+
Retrieve a calendar
|
|
295
|
+
|
|
296
|
+
### Example Usage
|
|
297
|
+
|
|
298
|
+
```typescript
|
|
299
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
300
|
+
|
|
301
|
+
const unifiedTo = new UnifiedTo({
|
|
302
|
+
security: {
|
|
303
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
304
|
+
},
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
async function run() {
|
|
308
|
+
const result = await unifiedTo.calendar.getCalendarCalendar({
|
|
309
|
+
connectionId: "<id>",
|
|
310
|
+
id: "<id>",
|
|
311
|
+
});
|
|
312
|
+
|
|
313
|
+
// Handle the result
|
|
314
|
+
console.log(result);
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
run();
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
### Standalone function
|
|
321
|
+
|
|
322
|
+
The standalone function version of this method:
|
|
323
|
+
|
|
324
|
+
```typescript
|
|
325
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
326
|
+
import { calendarGetCalendarCalendar } from "@unified-api/typescript-sdk/funcs/calendarGetCalendarCalendar.js";
|
|
327
|
+
|
|
328
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
329
|
+
// You can create one instance of it to use across an application.
|
|
330
|
+
const unifiedTo = new UnifiedToCore({
|
|
331
|
+
security: {
|
|
332
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
333
|
+
},
|
|
334
|
+
});
|
|
335
|
+
|
|
336
|
+
async function run() {
|
|
337
|
+
const res = await calendarGetCalendarCalendar(unifiedTo, {
|
|
338
|
+
connectionId: "<id>",
|
|
339
|
+
id: "<id>",
|
|
340
|
+
});
|
|
341
|
+
|
|
342
|
+
if (!res.ok) {
|
|
343
|
+
throw res.error;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const { value: result } = res;
|
|
347
|
+
|
|
348
|
+
// Handle the result
|
|
349
|
+
console.log(result);
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
run();
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### Parameters
|
|
356
|
+
|
|
357
|
+
| Parameter | Type | Required | Description |
|
|
358
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
359
|
+
| `request` | [operations.GetCalendarCalendarRequest](../../sdk/models/operations/getcalendarcalendarrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
360
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
361
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
362
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
363
|
+
|
|
364
|
+
### Response
|
|
365
|
+
|
|
366
|
+
**Promise\<[shared.CalendarCalendar](../../sdk/models/shared/calendarcalendar.md)\>**
|
|
367
|
+
|
|
368
|
+
### Errors
|
|
369
|
+
|
|
370
|
+
| Error Type | Status Code | Content Type |
|
|
371
|
+
| --------------- | --------------- | --------------- |
|
|
372
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
373
|
+
|
|
374
|
+
## getCalendarEvent
|
|
375
|
+
|
|
376
|
+
Retrieve an event
|
|
377
|
+
|
|
378
|
+
### Example Usage
|
|
379
|
+
|
|
380
|
+
```typescript
|
|
381
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
382
|
+
|
|
383
|
+
const unifiedTo = new UnifiedTo({
|
|
384
|
+
security: {
|
|
385
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
386
|
+
},
|
|
387
|
+
});
|
|
388
|
+
|
|
389
|
+
async function run() {
|
|
390
|
+
const result = await unifiedTo.calendar.getCalendarEvent({
|
|
391
|
+
connectionId: "<id>",
|
|
392
|
+
id: "<id>",
|
|
393
|
+
});
|
|
394
|
+
|
|
395
|
+
// Handle the result
|
|
396
|
+
console.log(result);
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
run();
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
### Standalone function
|
|
403
|
+
|
|
404
|
+
The standalone function version of this method:
|
|
405
|
+
|
|
406
|
+
```typescript
|
|
407
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
408
|
+
import { calendarGetCalendarEvent } from "@unified-api/typescript-sdk/funcs/calendarGetCalendarEvent.js";
|
|
409
|
+
|
|
410
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
411
|
+
// You can create one instance of it to use across an application.
|
|
412
|
+
const unifiedTo = new UnifiedToCore({
|
|
413
|
+
security: {
|
|
414
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
415
|
+
},
|
|
416
|
+
});
|
|
417
|
+
|
|
418
|
+
async function run() {
|
|
419
|
+
const res = await calendarGetCalendarEvent(unifiedTo, {
|
|
420
|
+
connectionId: "<id>",
|
|
421
|
+
id: "<id>",
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
if (!res.ok) {
|
|
425
|
+
throw res.error;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
const { value: result } = res;
|
|
429
|
+
|
|
430
|
+
// Handle the result
|
|
431
|
+
console.log(result);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
run();
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### Parameters
|
|
438
|
+
|
|
439
|
+
| Parameter | Type | Required | Description |
|
|
440
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
441
|
+
| `request` | [operations.GetCalendarEventRequest](../../sdk/models/operations/getcalendareventrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
442
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
443
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
444
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
445
|
+
|
|
446
|
+
### Response
|
|
447
|
+
|
|
448
|
+
**Promise\<[shared.CalendarEvent](../../sdk/models/shared/calendarevent.md)\>**
|
|
449
|
+
|
|
450
|
+
### Errors
|
|
451
|
+
|
|
452
|
+
| Error Type | Status Code | Content Type |
|
|
453
|
+
| --------------- | --------------- | --------------- |
|
|
454
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
455
|
+
|
|
456
|
+
## getCalendarLink
|
|
457
|
+
|
|
458
|
+
Retrieve a link
|
|
459
|
+
|
|
460
|
+
### Example Usage
|
|
461
|
+
|
|
462
|
+
```typescript
|
|
463
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
464
|
+
|
|
465
|
+
const unifiedTo = new UnifiedTo({
|
|
466
|
+
security: {
|
|
467
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
468
|
+
},
|
|
469
|
+
});
|
|
470
|
+
|
|
471
|
+
async function run() {
|
|
472
|
+
const result = await unifiedTo.calendar.getCalendarLink({
|
|
473
|
+
connectionId: "<id>",
|
|
474
|
+
id: "<id>",
|
|
475
|
+
});
|
|
476
|
+
|
|
477
|
+
// Handle the result
|
|
478
|
+
console.log(result);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
run();
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### Standalone function
|
|
485
|
+
|
|
486
|
+
The standalone function version of this method:
|
|
487
|
+
|
|
488
|
+
```typescript
|
|
489
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
490
|
+
import { calendarGetCalendarLink } from "@unified-api/typescript-sdk/funcs/calendarGetCalendarLink.js";
|
|
491
|
+
|
|
492
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
493
|
+
// You can create one instance of it to use across an application.
|
|
494
|
+
const unifiedTo = new UnifiedToCore({
|
|
495
|
+
security: {
|
|
496
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
497
|
+
},
|
|
498
|
+
});
|
|
499
|
+
|
|
500
|
+
async function run() {
|
|
501
|
+
const res = await calendarGetCalendarLink(unifiedTo, {
|
|
502
|
+
connectionId: "<id>",
|
|
503
|
+
id: "<id>",
|
|
504
|
+
});
|
|
505
|
+
|
|
506
|
+
if (!res.ok) {
|
|
507
|
+
throw res.error;
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
const { value: result } = res;
|
|
511
|
+
|
|
512
|
+
// Handle the result
|
|
513
|
+
console.log(result);
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
run();
|
|
517
|
+
```
|
|
518
|
+
|
|
519
|
+
### Parameters
|
|
520
|
+
|
|
521
|
+
| Parameter | Type | Required | Description |
|
|
522
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
523
|
+
| `request` | [operations.GetCalendarLinkRequest](../../sdk/models/operations/getcalendarlinkrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
524
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
525
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
526
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
527
|
+
|
|
528
|
+
### Response
|
|
529
|
+
|
|
530
|
+
**Promise\<[shared.CalendarLink](../../sdk/models/shared/calendarlink.md)\>**
|
|
531
|
+
|
|
532
|
+
### Errors
|
|
533
|
+
|
|
534
|
+
| Error Type | Status Code | Content Type |
|
|
535
|
+
| --------------- | --------------- | --------------- |
|
|
536
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
537
|
+
|
|
538
|
+
## getCalendarRecording
|
|
539
|
+
|
|
540
|
+
Retrieve a recording
|
|
541
|
+
|
|
542
|
+
### Example Usage
|
|
543
|
+
|
|
544
|
+
```typescript
|
|
545
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
546
|
+
|
|
547
|
+
const unifiedTo = new UnifiedTo({
|
|
548
|
+
security: {
|
|
549
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
550
|
+
},
|
|
551
|
+
});
|
|
552
|
+
|
|
553
|
+
async function run() {
|
|
554
|
+
const result = await unifiedTo.calendar.getCalendarRecording({
|
|
555
|
+
connectionId: "<id>",
|
|
556
|
+
id: "<id>",
|
|
557
|
+
});
|
|
558
|
+
|
|
559
|
+
// Handle the result
|
|
560
|
+
console.log(result);
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
run();
|
|
564
|
+
```
|
|
565
|
+
|
|
566
|
+
### Standalone function
|
|
567
|
+
|
|
568
|
+
The standalone function version of this method:
|
|
569
|
+
|
|
570
|
+
```typescript
|
|
571
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
572
|
+
import { calendarGetCalendarRecording } from "@unified-api/typescript-sdk/funcs/calendarGetCalendarRecording.js";
|
|
573
|
+
|
|
574
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
575
|
+
// You can create one instance of it to use across an application.
|
|
576
|
+
const unifiedTo = new UnifiedToCore({
|
|
577
|
+
security: {
|
|
578
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
579
|
+
},
|
|
580
|
+
});
|
|
581
|
+
|
|
582
|
+
async function run() {
|
|
583
|
+
const res = await calendarGetCalendarRecording(unifiedTo, {
|
|
584
|
+
connectionId: "<id>",
|
|
585
|
+
id: "<id>",
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
if (!res.ok) {
|
|
589
|
+
throw res.error;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
const { value: result } = res;
|
|
593
|
+
|
|
594
|
+
// Handle the result
|
|
595
|
+
console.log(result);
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
run();
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
### Parameters
|
|
602
|
+
|
|
603
|
+
| Parameter | Type | Required | Description |
|
|
604
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
605
|
+
| `request` | [operations.GetCalendarRecordingRequest](../../sdk/models/operations/getcalendarrecordingrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
606
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
607
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
608
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
609
|
+
|
|
610
|
+
### Response
|
|
611
|
+
|
|
612
|
+
**Promise\<[shared.CalendarRecording](../../sdk/models/shared/calendarrecording.md)\>**
|
|
613
|
+
|
|
614
|
+
### Errors
|
|
615
|
+
|
|
616
|
+
| Error Type | Status Code | Content Type |
|
|
617
|
+
| --------------- | --------------- | --------------- |
|
|
618
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
619
|
+
|
|
620
|
+
## listCalendarBusies
|
|
621
|
+
|
|
622
|
+
List all busies
|
|
623
|
+
|
|
624
|
+
### Example Usage
|
|
625
|
+
|
|
626
|
+
```typescript
|
|
627
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
628
|
+
|
|
629
|
+
const unifiedTo = new UnifiedTo({
|
|
630
|
+
security: {
|
|
631
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
632
|
+
},
|
|
633
|
+
});
|
|
634
|
+
|
|
635
|
+
async function run() {
|
|
636
|
+
const result = await unifiedTo.calendar.listCalendarBusies({
|
|
637
|
+
connectionId: "<id>",
|
|
638
|
+
});
|
|
639
|
+
|
|
640
|
+
// Handle the result
|
|
641
|
+
console.log(result);
|
|
642
|
+
}
|
|
643
|
+
|
|
644
|
+
run();
|
|
645
|
+
```
|
|
646
|
+
|
|
647
|
+
### Standalone function
|
|
648
|
+
|
|
649
|
+
The standalone function version of this method:
|
|
650
|
+
|
|
651
|
+
```typescript
|
|
652
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
653
|
+
import { calendarListCalendarBusies } from "@unified-api/typescript-sdk/funcs/calendarListCalendarBusies.js";
|
|
654
|
+
|
|
655
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
656
|
+
// You can create one instance of it to use across an application.
|
|
657
|
+
const unifiedTo = new UnifiedToCore({
|
|
658
|
+
security: {
|
|
659
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
660
|
+
},
|
|
661
|
+
});
|
|
662
|
+
|
|
663
|
+
async function run() {
|
|
664
|
+
const res = await calendarListCalendarBusies(unifiedTo, {
|
|
665
|
+
connectionId: "<id>",
|
|
666
|
+
});
|
|
667
|
+
|
|
668
|
+
if (!res.ok) {
|
|
669
|
+
throw res.error;
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
const { value: result } = res;
|
|
673
|
+
|
|
674
|
+
// Handle the result
|
|
675
|
+
console.log(result);
|
|
676
|
+
}
|
|
677
|
+
|
|
678
|
+
run();
|
|
679
|
+
```
|
|
680
|
+
|
|
681
|
+
### Parameters
|
|
682
|
+
|
|
683
|
+
| Parameter | Type | Required | Description |
|
|
684
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
685
|
+
| `request` | [operations.ListCalendarBusiesRequest](../../sdk/models/operations/listcalendarbusiesrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
686
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
687
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
688
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
689
|
+
|
|
690
|
+
### Response
|
|
691
|
+
|
|
692
|
+
**Promise\<[shared.CalendarBusy[]](../../models/.md)\>**
|
|
693
|
+
|
|
694
|
+
### Errors
|
|
695
|
+
|
|
696
|
+
| Error Type | Status Code | Content Type |
|
|
697
|
+
| --------------- | --------------- | --------------- |
|
|
698
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
699
|
+
|
|
700
|
+
## listCalendarCalendars
|
|
701
|
+
|
|
702
|
+
List all calendars
|
|
703
|
+
|
|
704
|
+
### Example Usage
|
|
705
|
+
|
|
706
|
+
```typescript
|
|
707
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
708
|
+
|
|
709
|
+
const unifiedTo = new UnifiedTo({
|
|
710
|
+
security: {
|
|
711
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
712
|
+
},
|
|
713
|
+
});
|
|
714
|
+
|
|
715
|
+
async function run() {
|
|
716
|
+
const result = await unifiedTo.calendar.listCalendarCalendars({
|
|
717
|
+
connectionId: "<id>",
|
|
718
|
+
});
|
|
719
|
+
|
|
720
|
+
// Handle the result
|
|
721
|
+
console.log(result);
|
|
722
|
+
}
|
|
723
|
+
|
|
724
|
+
run();
|
|
725
|
+
```
|
|
726
|
+
|
|
727
|
+
### Standalone function
|
|
728
|
+
|
|
729
|
+
The standalone function version of this method:
|
|
730
|
+
|
|
731
|
+
```typescript
|
|
732
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
733
|
+
import { calendarListCalendarCalendars } from "@unified-api/typescript-sdk/funcs/calendarListCalendarCalendars.js";
|
|
734
|
+
|
|
735
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
736
|
+
// You can create one instance of it to use across an application.
|
|
737
|
+
const unifiedTo = new UnifiedToCore({
|
|
738
|
+
security: {
|
|
739
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
740
|
+
},
|
|
741
|
+
});
|
|
742
|
+
|
|
743
|
+
async function run() {
|
|
744
|
+
const res = await calendarListCalendarCalendars(unifiedTo, {
|
|
745
|
+
connectionId: "<id>",
|
|
746
|
+
});
|
|
747
|
+
|
|
748
|
+
if (!res.ok) {
|
|
749
|
+
throw res.error;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
const { value: result } = res;
|
|
753
|
+
|
|
754
|
+
// Handle the result
|
|
755
|
+
console.log(result);
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
run();
|
|
759
|
+
```
|
|
760
|
+
|
|
761
|
+
### Parameters
|
|
762
|
+
|
|
763
|
+
| Parameter | Type | Required | Description |
|
|
764
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
765
|
+
| `request` | [operations.ListCalendarCalendarsRequest](../../sdk/models/operations/listcalendarcalendarsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
766
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
767
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
768
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
769
|
+
|
|
770
|
+
### Response
|
|
771
|
+
|
|
772
|
+
**Promise\<[shared.CalendarCalendar[]](../../models/.md)\>**
|
|
773
|
+
|
|
774
|
+
### Errors
|
|
775
|
+
|
|
776
|
+
| Error Type | Status Code | Content Type |
|
|
777
|
+
| --------------- | --------------- | --------------- |
|
|
778
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
779
|
+
|
|
780
|
+
## listCalendarEvents
|
|
781
|
+
|
|
782
|
+
List all events
|
|
783
|
+
|
|
784
|
+
### Example Usage
|
|
785
|
+
|
|
786
|
+
```typescript
|
|
787
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
788
|
+
|
|
789
|
+
const unifiedTo = new UnifiedTo({
|
|
790
|
+
security: {
|
|
791
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
792
|
+
},
|
|
793
|
+
});
|
|
794
|
+
|
|
795
|
+
async function run() {
|
|
796
|
+
const result = await unifiedTo.calendar.listCalendarEvents({
|
|
797
|
+
connectionId: "<id>",
|
|
798
|
+
});
|
|
799
|
+
|
|
800
|
+
// Handle the result
|
|
801
|
+
console.log(result);
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
run();
|
|
805
|
+
```
|
|
806
|
+
|
|
807
|
+
### Standalone function
|
|
808
|
+
|
|
809
|
+
The standalone function version of this method:
|
|
810
|
+
|
|
811
|
+
```typescript
|
|
812
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
813
|
+
import { calendarListCalendarEvents } from "@unified-api/typescript-sdk/funcs/calendarListCalendarEvents.js";
|
|
814
|
+
|
|
815
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
816
|
+
// You can create one instance of it to use across an application.
|
|
817
|
+
const unifiedTo = new UnifiedToCore({
|
|
818
|
+
security: {
|
|
819
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
820
|
+
},
|
|
821
|
+
});
|
|
822
|
+
|
|
823
|
+
async function run() {
|
|
824
|
+
const res = await calendarListCalendarEvents(unifiedTo, {
|
|
825
|
+
connectionId: "<id>",
|
|
826
|
+
});
|
|
827
|
+
|
|
828
|
+
if (!res.ok) {
|
|
829
|
+
throw res.error;
|
|
830
|
+
}
|
|
831
|
+
|
|
832
|
+
const { value: result } = res;
|
|
833
|
+
|
|
834
|
+
// Handle the result
|
|
835
|
+
console.log(result);
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
run();
|
|
839
|
+
```
|
|
840
|
+
|
|
841
|
+
### Parameters
|
|
842
|
+
|
|
843
|
+
| Parameter | Type | Required | Description |
|
|
844
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
845
|
+
| `request` | [operations.ListCalendarEventsRequest](../../sdk/models/operations/listcalendareventsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
846
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
847
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
848
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
849
|
+
|
|
850
|
+
### Response
|
|
851
|
+
|
|
852
|
+
**Promise\<[shared.CalendarEvent[]](../../models/.md)\>**
|
|
853
|
+
|
|
854
|
+
### Errors
|
|
855
|
+
|
|
856
|
+
| Error Type | Status Code | Content Type |
|
|
857
|
+
| --------------- | --------------- | --------------- |
|
|
858
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
859
|
+
|
|
860
|
+
## listCalendarLinks
|
|
861
|
+
|
|
862
|
+
List all links
|
|
863
|
+
|
|
864
|
+
### Example Usage
|
|
865
|
+
|
|
866
|
+
```typescript
|
|
867
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
868
|
+
|
|
869
|
+
const unifiedTo = new UnifiedTo({
|
|
870
|
+
security: {
|
|
871
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
872
|
+
},
|
|
873
|
+
});
|
|
874
|
+
|
|
875
|
+
async function run() {
|
|
876
|
+
const result = await unifiedTo.calendar.listCalendarLinks({
|
|
877
|
+
connectionId: "<id>",
|
|
878
|
+
});
|
|
879
|
+
|
|
880
|
+
// Handle the result
|
|
881
|
+
console.log(result);
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
run();
|
|
885
|
+
```
|
|
886
|
+
|
|
887
|
+
### Standalone function
|
|
888
|
+
|
|
889
|
+
The standalone function version of this method:
|
|
890
|
+
|
|
891
|
+
```typescript
|
|
892
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
893
|
+
import { calendarListCalendarLinks } from "@unified-api/typescript-sdk/funcs/calendarListCalendarLinks.js";
|
|
894
|
+
|
|
895
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
896
|
+
// You can create one instance of it to use across an application.
|
|
897
|
+
const unifiedTo = new UnifiedToCore({
|
|
898
|
+
security: {
|
|
899
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
900
|
+
},
|
|
901
|
+
});
|
|
902
|
+
|
|
903
|
+
async function run() {
|
|
904
|
+
const res = await calendarListCalendarLinks(unifiedTo, {
|
|
905
|
+
connectionId: "<id>",
|
|
906
|
+
});
|
|
907
|
+
|
|
908
|
+
if (!res.ok) {
|
|
909
|
+
throw res.error;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
const { value: result } = res;
|
|
913
|
+
|
|
914
|
+
// Handle the result
|
|
915
|
+
console.log(result);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
run();
|
|
919
|
+
```
|
|
920
|
+
|
|
921
|
+
### Parameters
|
|
922
|
+
|
|
923
|
+
| Parameter | Type | Required | Description |
|
|
924
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
925
|
+
| `request` | [operations.ListCalendarLinksRequest](../../sdk/models/operations/listcalendarlinksrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
926
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
927
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
928
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
929
|
+
|
|
930
|
+
### Response
|
|
931
|
+
|
|
932
|
+
**Promise\<[shared.CalendarLink[]](../../models/.md)\>**
|
|
933
|
+
|
|
934
|
+
### Errors
|
|
935
|
+
|
|
936
|
+
| Error Type | Status Code | Content Type |
|
|
937
|
+
| --------------- | --------------- | --------------- |
|
|
938
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
939
|
+
|
|
940
|
+
## listCalendarRecordings
|
|
941
|
+
|
|
942
|
+
List all recordings
|
|
943
|
+
|
|
944
|
+
### Example Usage
|
|
945
|
+
|
|
946
|
+
```typescript
|
|
947
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
948
|
+
|
|
949
|
+
const unifiedTo = new UnifiedTo({
|
|
950
|
+
security: {
|
|
951
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
952
|
+
},
|
|
953
|
+
});
|
|
954
|
+
|
|
955
|
+
async function run() {
|
|
956
|
+
const result = await unifiedTo.calendar.listCalendarRecordings({
|
|
957
|
+
connectionId: "<id>",
|
|
958
|
+
});
|
|
959
|
+
|
|
960
|
+
// Handle the result
|
|
961
|
+
console.log(result);
|
|
962
|
+
}
|
|
963
|
+
|
|
964
|
+
run();
|
|
965
|
+
```
|
|
966
|
+
|
|
967
|
+
### Standalone function
|
|
968
|
+
|
|
969
|
+
The standalone function version of this method:
|
|
970
|
+
|
|
971
|
+
```typescript
|
|
972
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
973
|
+
import { calendarListCalendarRecordings } from "@unified-api/typescript-sdk/funcs/calendarListCalendarRecordings.js";
|
|
974
|
+
|
|
975
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
976
|
+
// You can create one instance of it to use across an application.
|
|
977
|
+
const unifiedTo = new UnifiedToCore({
|
|
978
|
+
security: {
|
|
979
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
980
|
+
},
|
|
981
|
+
});
|
|
982
|
+
|
|
983
|
+
async function run() {
|
|
984
|
+
const res = await calendarListCalendarRecordings(unifiedTo, {
|
|
985
|
+
connectionId: "<id>",
|
|
986
|
+
});
|
|
987
|
+
|
|
988
|
+
if (!res.ok) {
|
|
989
|
+
throw res.error;
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
const { value: result } = res;
|
|
993
|
+
|
|
994
|
+
// Handle the result
|
|
995
|
+
console.log(result);
|
|
996
|
+
}
|
|
997
|
+
|
|
998
|
+
run();
|
|
999
|
+
```
|
|
1000
|
+
|
|
1001
|
+
### Parameters
|
|
1002
|
+
|
|
1003
|
+
| Parameter | Type | Required | Description |
|
|
1004
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1005
|
+
| `request` | [operations.ListCalendarRecordingsRequest](../../sdk/models/operations/listcalendarrecordingsrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1006
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1007
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1008
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1009
|
+
|
|
1010
|
+
### Response
|
|
1011
|
+
|
|
1012
|
+
**Promise\<[shared.CalendarRecording[]](../../models/.md)\>**
|
|
1013
|
+
|
|
1014
|
+
### Errors
|
|
1015
|
+
|
|
1016
|
+
| Error Type | Status Code | Content Type |
|
|
1017
|
+
| --------------- | --------------- | --------------- |
|
|
1018
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1019
|
+
|
|
1020
|
+
## patchCalendarCalendar
|
|
1021
|
+
|
|
1022
|
+
Update a calendar
|
|
1023
|
+
|
|
1024
|
+
### Example Usage
|
|
1025
|
+
|
|
1026
|
+
```typescript
|
|
1027
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1028
|
+
|
|
1029
|
+
const unifiedTo = new UnifiedTo({
|
|
1030
|
+
security: {
|
|
1031
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1032
|
+
},
|
|
1033
|
+
});
|
|
1034
|
+
|
|
1035
|
+
async function run() {
|
|
1036
|
+
const result = await unifiedTo.calendar.patchCalendarCalendar({
|
|
1037
|
+
calendarCalendar: {
|
|
1038
|
+
name: "<value>",
|
|
1039
|
+
},
|
|
1040
|
+
connectionId: "<id>",
|
|
1041
|
+
id: "<id>",
|
|
1042
|
+
});
|
|
1043
|
+
|
|
1044
|
+
// Handle the result
|
|
1045
|
+
console.log(result);
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
run();
|
|
1049
|
+
```
|
|
1050
|
+
|
|
1051
|
+
### Standalone function
|
|
1052
|
+
|
|
1053
|
+
The standalone function version of this method:
|
|
1054
|
+
|
|
1055
|
+
```typescript
|
|
1056
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1057
|
+
import { calendarPatchCalendarCalendar } from "@unified-api/typescript-sdk/funcs/calendarPatchCalendarCalendar.js";
|
|
1058
|
+
|
|
1059
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1060
|
+
// You can create one instance of it to use across an application.
|
|
1061
|
+
const unifiedTo = new UnifiedToCore({
|
|
1062
|
+
security: {
|
|
1063
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1064
|
+
},
|
|
1065
|
+
});
|
|
1066
|
+
|
|
1067
|
+
async function run() {
|
|
1068
|
+
const res = await calendarPatchCalendarCalendar(unifiedTo, {
|
|
1069
|
+
calendarCalendar: {
|
|
1070
|
+
name: "<value>",
|
|
1071
|
+
},
|
|
1072
|
+
connectionId: "<id>",
|
|
1073
|
+
id: "<id>",
|
|
1074
|
+
});
|
|
1075
|
+
|
|
1076
|
+
if (!res.ok) {
|
|
1077
|
+
throw res.error;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
const { value: result } = res;
|
|
1081
|
+
|
|
1082
|
+
// Handle the result
|
|
1083
|
+
console.log(result);
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
run();
|
|
1087
|
+
```
|
|
1088
|
+
|
|
1089
|
+
### Parameters
|
|
1090
|
+
|
|
1091
|
+
| Parameter | Type | Required | Description |
|
|
1092
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1093
|
+
| `request` | [operations.PatchCalendarCalendarRequest](../../sdk/models/operations/patchcalendarcalendarrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1094
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1095
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1096
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1097
|
+
|
|
1098
|
+
### Response
|
|
1099
|
+
|
|
1100
|
+
**Promise\<[shared.CalendarCalendar](../../sdk/models/shared/calendarcalendar.md)\>**
|
|
1101
|
+
|
|
1102
|
+
### Errors
|
|
1103
|
+
|
|
1104
|
+
| Error Type | Status Code | Content Type |
|
|
1105
|
+
| --------------- | --------------- | --------------- |
|
|
1106
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1107
|
+
|
|
1108
|
+
## patchCalendarEvent
|
|
1109
|
+
|
|
1110
|
+
Update an event
|
|
1111
|
+
|
|
1112
|
+
### Example Usage
|
|
1113
|
+
|
|
1114
|
+
```typescript
|
|
1115
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1116
|
+
|
|
1117
|
+
const unifiedTo = new UnifiedTo({
|
|
1118
|
+
security: {
|
|
1119
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1120
|
+
},
|
|
1121
|
+
});
|
|
1122
|
+
|
|
1123
|
+
async function run() {
|
|
1124
|
+
const result = await unifiedTo.calendar.patchCalendarEvent({
|
|
1125
|
+
calendarEvent: {
|
|
1126
|
+
endAt: "<value>",
|
|
1127
|
+
startAt: "<value>",
|
|
1128
|
+
subject: "<value>",
|
|
1129
|
+
},
|
|
1130
|
+
connectionId: "<id>",
|
|
1131
|
+
id: "<id>",
|
|
1132
|
+
});
|
|
1133
|
+
|
|
1134
|
+
// Handle the result
|
|
1135
|
+
console.log(result);
|
|
1136
|
+
}
|
|
1137
|
+
|
|
1138
|
+
run();
|
|
1139
|
+
```
|
|
1140
|
+
|
|
1141
|
+
### Standalone function
|
|
1142
|
+
|
|
1143
|
+
The standalone function version of this method:
|
|
1144
|
+
|
|
1145
|
+
```typescript
|
|
1146
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1147
|
+
import { calendarPatchCalendarEvent } from "@unified-api/typescript-sdk/funcs/calendarPatchCalendarEvent.js";
|
|
1148
|
+
|
|
1149
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1150
|
+
// You can create one instance of it to use across an application.
|
|
1151
|
+
const unifiedTo = new UnifiedToCore({
|
|
1152
|
+
security: {
|
|
1153
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1154
|
+
},
|
|
1155
|
+
});
|
|
1156
|
+
|
|
1157
|
+
async function run() {
|
|
1158
|
+
const res = await calendarPatchCalendarEvent(unifiedTo, {
|
|
1159
|
+
calendarEvent: {
|
|
1160
|
+
endAt: "<value>",
|
|
1161
|
+
startAt: "<value>",
|
|
1162
|
+
subject: "<value>",
|
|
1163
|
+
},
|
|
1164
|
+
connectionId: "<id>",
|
|
1165
|
+
id: "<id>",
|
|
1166
|
+
});
|
|
1167
|
+
|
|
1168
|
+
if (!res.ok) {
|
|
1169
|
+
throw res.error;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
const { value: result } = res;
|
|
1173
|
+
|
|
1174
|
+
// Handle the result
|
|
1175
|
+
console.log(result);
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
run();
|
|
1179
|
+
```
|
|
1180
|
+
|
|
1181
|
+
### Parameters
|
|
1182
|
+
|
|
1183
|
+
| Parameter | Type | Required | Description |
|
|
1184
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1185
|
+
| `request` | [operations.PatchCalendarEventRequest](../../sdk/models/operations/patchcalendareventrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1186
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1187
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1188
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1189
|
+
|
|
1190
|
+
### Response
|
|
1191
|
+
|
|
1192
|
+
**Promise\<[shared.CalendarEvent](../../sdk/models/shared/calendarevent.md)\>**
|
|
1193
|
+
|
|
1194
|
+
### Errors
|
|
1195
|
+
|
|
1196
|
+
| Error Type | Status Code | Content Type |
|
|
1197
|
+
| --------------- | --------------- | --------------- |
|
|
1198
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1199
|
+
|
|
1200
|
+
## patchCalendarLink
|
|
1201
|
+
|
|
1202
|
+
Update a link
|
|
1203
|
+
|
|
1204
|
+
### Example Usage
|
|
1205
|
+
|
|
1206
|
+
```typescript
|
|
1207
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1208
|
+
|
|
1209
|
+
const unifiedTo = new UnifiedTo({
|
|
1210
|
+
security: {
|
|
1211
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1212
|
+
},
|
|
1213
|
+
});
|
|
1214
|
+
|
|
1215
|
+
async function run() {
|
|
1216
|
+
const result = await unifiedTo.calendar.patchCalendarLink({
|
|
1217
|
+
calendarLink: {
|
|
1218
|
+
url: "https://curly-skyline.biz/",
|
|
1219
|
+
},
|
|
1220
|
+
connectionId: "<id>",
|
|
1221
|
+
id: "<id>",
|
|
1222
|
+
});
|
|
1223
|
+
|
|
1224
|
+
// Handle the result
|
|
1225
|
+
console.log(result);
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
run();
|
|
1229
|
+
```
|
|
1230
|
+
|
|
1231
|
+
### Standalone function
|
|
1232
|
+
|
|
1233
|
+
The standalone function version of this method:
|
|
1234
|
+
|
|
1235
|
+
```typescript
|
|
1236
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1237
|
+
import { calendarPatchCalendarLink } from "@unified-api/typescript-sdk/funcs/calendarPatchCalendarLink.js";
|
|
1238
|
+
|
|
1239
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1240
|
+
// You can create one instance of it to use across an application.
|
|
1241
|
+
const unifiedTo = new UnifiedToCore({
|
|
1242
|
+
security: {
|
|
1243
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1244
|
+
},
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
async function run() {
|
|
1248
|
+
const res = await calendarPatchCalendarLink(unifiedTo, {
|
|
1249
|
+
calendarLink: {
|
|
1250
|
+
url: "https://curly-skyline.biz/",
|
|
1251
|
+
},
|
|
1252
|
+
connectionId: "<id>",
|
|
1253
|
+
id: "<id>",
|
|
1254
|
+
});
|
|
1255
|
+
|
|
1256
|
+
if (!res.ok) {
|
|
1257
|
+
throw res.error;
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
const { value: result } = res;
|
|
1261
|
+
|
|
1262
|
+
// Handle the result
|
|
1263
|
+
console.log(result);
|
|
1264
|
+
}
|
|
1265
|
+
|
|
1266
|
+
run();
|
|
1267
|
+
```
|
|
1268
|
+
|
|
1269
|
+
### Parameters
|
|
1270
|
+
|
|
1271
|
+
| Parameter | Type | Required | Description |
|
|
1272
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1273
|
+
| `request` | [operations.PatchCalendarLinkRequest](../../sdk/models/operations/patchcalendarlinkrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1274
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1275
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1276
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1277
|
+
|
|
1278
|
+
### Response
|
|
1279
|
+
|
|
1280
|
+
**Promise\<[shared.CalendarLink](../../sdk/models/shared/calendarlink.md)\>**
|
|
1281
|
+
|
|
1282
|
+
### Errors
|
|
1283
|
+
|
|
1284
|
+
| Error Type | Status Code | Content Type |
|
|
1285
|
+
| --------------- | --------------- | --------------- |
|
|
1286
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1287
|
+
|
|
1288
|
+
## removeCalendarCalendar
|
|
1289
|
+
|
|
1290
|
+
Remove a calendar
|
|
1291
|
+
|
|
1292
|
+
### Example Usage
|
|
1293
|
+
|
|
1294
|
+
```typescript
|
|
1295
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1296
|
+
|
|
1297
|
+
const unifiedTo = new UnifiedTo({
|
|
1298
|
+
security: {
|
|
1299
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1300
|
+
},
|
|
1301
|
+
});
|
|
1302
|
+
|
|
1303
|
+
async function run() {
|
|
1304
|
+
const result = await unifiedTo.calendar.removeCalendarCalendar({
|
|
1305
|
+
connectionId: "<id>",
|
|
1306
|
+
id: "<id>",
|
|
1307
|
+
});
|
|
1308
|
+
|
|
1309
|
+
// Handle the result
|
|
1310
|
+
console.log(result);
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
run();
|
|
1314
|
+
```
|
|
1315
|
+
|
|
1316
|
+
### Standalone function
|
|
1317
|
+
|
|
1318
|
+
The standalone function version of this method:
|
|
1319
|
+
|
|
1320
|
+
```typescript
|
|
1321
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1322
|
+
import { calendarRemoveCalendarCalendar } from "@unified-api/typescript-sdk/funcs/calendarRemoveCalendarCalendar.js";
|
|
1323
|
+
|
|
1324
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1325
|
+
// You can create one instance of it to use across an application.
|
|
1326
|
+
const unifiedTo = new UnifiedToCore({
|
|
1327
|
+
security: {
|
|
1328
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1329
|
+
},
|
|
1330
|
+
});
|
|
1331
|
+
|
|
1332
|
+
async function run() {
|
|
1333
|
+
const res = await calendarRemoveCalendarCalendar(unifiedTo, {
|
|
1334
|
+
connectionId: "<id>",
|
|
1335
|
+
id: "<id>",
|
|
1336
|
+
});
|
|
1337
|
+
|
|
1338
|
+
if (!res.ok) {
|
|
1339
|
+
throw res.error;
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
const { value: result } = res;
|
|
1343
|
+
|
|
1344
|
+
// Handle the result
|
|
1345
|
+
console.log(result);
|
|
1346
|
+
}
|
|
1347
|
+
|
|
1348
|
+
run();
|
|
1349
|
+
```
|
|
1350
|
+
|
|
1351
|
+
### Parameters
|
|
1352
|
+
|
|
1353
|
+
| Parameter | Type | Required | Description |
|
|
1354
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1355
|
+
| `request` | [operations.RemoveCalendarCalendarRequest](../../sdk/models/operations/removecalendarcalendarrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1356
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1357
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1358
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1359
|
+
|
|
1360
|
+
### Response
|
|
1361
|
+
|
|
1362
|
+
**Promise\<[operations.RemoveCalendarCalendarResponse](../../sdk/models/operations/removecalendarcalendarresponse.md)\>**
|
|
1363
|
+
|
|
1364
|
+
### Errors
|
|
1365
|
+
|
|
1366
|
+
| Error Type | Status Code | Content Type |
|
|
1367
|
+
| --------------- | --------------- | --------------- |
|
|
1368
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1369
|
+
|
|
1370
|
+
## removeCalendarEvent
|
|
1371
|
+
|
|
1372
|
+
Remove an event
|
|
1373
|
+
|
|
1374
|
+
### Example Usage
|
|
1375
|
+
|
|
1376
|
+
```typescript
|
|
1377
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1378
|
+
|
|
1379
|
+
const unifiedTo = new UnifiedTo({
|
|
1380
|
+
security: {
|
|
1381
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1382
|
+
},
|
|
1383
|
+
});
|
|
1384
|
+
|
|
1385
|
+
async function run() {
|
|
1386
|
+
const result = await unifiedTo.calendar.removeCalendarEvent({
|
|
1387
|
+
connectionId: "<id>",
|
|
1388
|
+
id: "<id>",
|
|
1389
|
+
});
|
|
1390
|
+
|
|
1391
|
+
// Handle the result
|
|
1392
|
+
console.log(result);
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
run();
|
|
1396
|
+
```
|
|
1397
|
+
|
|
1398
|
+
### Standalone function
|
|
1399
|
+
|
|
1400
|
+
The standalone function version of this method:
|
|
1401
|
+
|
|
1402
|
+
```typescript
|
|
1403
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1404
|
+
import { calendarRemoveCalendarEvent } from "@unified-api/typescript-sdk/funcs/calendarRemoveCalendarEvent.js";
|
|
1405
|
+
|
|
1406
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1407
|
+
// You can create one instance of it to use across an application.
|
|
1408
|
+
const unifiedTo = new UnifiedToCore({
|
|
1409
|
+
security: {
|
|
1410
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1411
|
+
},
|
|
1412
|
+
});
|
|
1413
|
+
|
|
1414
|
+
async function run() {
|
|
1415
|
+
const res = await calendarRemoveCalendarEvent(unifiedTo, {
|
|
1416
|
+
connectionId: "<id>",
|
|
1417
|
+
id: "<id>",
|
|
1418
|
+
});
|
|
1419
|
+
|
|
1420
|
+
if (!res.ok) {
|
|
1421
|
+
throw res.error;
|
|
1422
|
+
}
|
|
1423
|
+
|
|
1424
|
+
const { value: result } = res;
|
|
1425
|
+
|
|
1426
|
+
// Handle the result
|
|
1427
|
+
console.log(result);
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
run();
|
|
1431
|
+
```
|
|
1432
|
+
|
|
1433
|
+
### Parameters
|
|
1434
|
+
|
|
1435
|
+
| Parameter | Type | Required | Description |
|
|
1436
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1437
|
+
| `request` | [operations.RemoveCalendarEventRequest](../../sdk/models/operations/removecalendareventrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1438
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1439
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1440
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1441
|
+
|
|
1442
|
+
### Response
|
|
1443
|
+
|
|
1444
|
+
**Promise\<[operations.RemoveCalendarEventResponse](../../sdk/models/operations/removecalendareventresponse.md)\>**
|
|
1445
|
+
|
|
1446
|
+
### Errors
|
|
1447
|
+
|
|
1448
|
+
| Error Type | Status Code | Content Type |
|
|
1449
|
+
| --------------- | --------------- | --------------- |
|
|
1450
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1451
|
+
|
|
1452
|
+
## removeCalendarLink
|
|
1453
|
+
|
|
1454
|
+
Remove a link
|
|
1455
|
+
|
|
1456
|
+
### Example Usage
|
|
1457
|
+
|
|
1458
|
+
```typescript
|
|
1459
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1460
|
+
|
|
1461
|
+
const unifiedTo = new UnifiedTo({
|
|
1462
|
+
security: {
|
|
1463
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1464
|
+
},
|
|
1465
|
+
});
|
|
1466
|
+
|
|
1467
|
+
async function run() {
|
|
1468
|
+
const result = await unifiedTo.calendar.removeCalendarLink({
|
|
1469
|
+
connectionId: "<id>",
|
|
1470
|
+
id: "<id>",
|
|
1471
|
+
});
|
|
1472
|
+
|
|
1473
|
+
// Handle the result
|
|
1474
|
+
console.log(result);
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
run();
|
|
1478
|
+
```
|
|
1479
|
+
|
|
1480
|
+
### Standalone function
|
|
1481
|
+
|
|
1482
|
+
The standalone function version of this method:
|
|
1483
|
+
|
|
1484
|
+
```typescript
|
|
1485
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1486
|
+
import { calendarRemoveCalendarLink } from "@unified-api/typescript-sdk/funcs/calendarRemoveCalendarLink.js";
|
|
1487
|
+
|
|
1488
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1489
|
+
// You can create one instance of it to use across an application.
|
|
1490
|
+
const unifiedTo = new UnifiedToCore({
|
|
1491
|
+
security: {
|
|
1492
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1493
|
+
},
|
|
1494
|
+
});
|
|
1495
|
+
|
|
1496
|
+
async function run() {
|
|
1497
|
+
const res = await calendarRemoveCalendarLink(unifiedTo, {
|
|
1498
|
+
connectionId: "<id>",
|
|
1499
|
+
id: "<id>",
|
|
1500
|
+
});
|
|
1501
|
+
|
|
1502
|
+
if (!res.ok) {
|
|
1503
|
+
throw res.error;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
const { value: result } = res;
|
|
1507
|
+
|
|
1508
|
+
// Handle the result
|
|
1509
|
+
console.log(result);
|
|
1510
|
+
}
|
|
1511
|
+
|
|
1512
|
+
run();
|
|
1513
|
+
```
|
|
1514
|
+
|
|
1515
|
+
### Parameters
|
|
1516
|
+
|
|
1517
|
+
| Parameter | Type | Required | Description |
|
|
1518
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1519
|
+
| `request` | [operations.RemoveCalendarLinkRequest](../../sdk/models/operations/removecalendarlinkrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1520
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1521
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1522
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1523
|
+
|
|
1524
|
+
### Response
|
|
1525
|
+
|
|
1526
|
+
**Promise\<[operations.RemoveCalendarLinkResponse](../../sdk/models/operations/removecalendarlinkresponse.md)\>**
|
|
1527
|
+
|
|
1528
|
+
### Errors
|
|
1529
|
+
|
|
1530
|
+
| Error Type | Status Code | Content Type |
|
|
1531
|
+
| --------------- | --------------- | --------------- |
|
|
1532
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1533
|
+
|
|
1534
|
+
## updateCalendarCalendar
|
|
1535
|
+
|
|
1536
|
+
Update a calendar
|
|
1537
|
+
|
|
1538
|
+
### Example Usage
|
|
1539
|
+
|
|
1540
|
+
```typescript
|
|
1541
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1542
|
+
|
|
1543
|
+
const unifiedTo = new UnifiedTo({
|
|
1544
|
+
security: {
|
|
1545
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1546
|
+
},
|
|
1547
|
+
});
|
|
1548
|
+
|
|
1549
|
+
async function run() {
|
|
1550
|
+
const result = await unifiedTo.calendar.updateCalendarCalendar({
|
|
1551
|
+
calendarCalendar: {
|
|
1552
|
+
name: "<value>",
|
|
1553
|
+
},
|
|
1554
|
+
connectionId: "<id>",
|
|
1555
|
+
id: "<id>",
|
|
1556
|
+
});
|
|
1557
|
+
|
|
1558
|
+
// Handle the result
|
|
1559
|
+
console.log(result);
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
run();
|
|
1563
|
+
```
|
|
1564
|
+
|
|
1565
|
+
### Standalone function
|
|
1566
|
+
|
|
1567
|
+
The standalone function version of this method:
|
|
1568
|
+
|
|
1569
|
+
```typescript
|
|
1570
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1571
|
+
import { calendarUpdateCalendarCalendar } from "@unified-api/typescript-sdk/funcs/calendarUpdateCalendarCalendar.js";
|
|
1572
|
+
|
|
1573
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1574
|
+
// You can create one instance of it to use across an application.
|
|
1575
|
+
const unifiedTo = new UnifiedToCore({
|
|
1576
|
+
security: {
|
|
1577
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1578
|
+
},
|
|
1579
|
+
});
|
|
1580
|
+
|
|
1581
|
+
async function run() {
|
|
1582
|
+
const res = await calendarUpdateCalendarCalendar(unifiedTo, {
|
|
1583
|
+
calendarCalendar: {
|
|
1584
|
+
name: "<value>",
|
|
1585
|
+
},
|
|
1586
|
+
connectionId: "<id>",
|
|
1587
|
+
id: "<id>",
|
|
1588
|
+
});
|
|
1589
|
+
|
|
1590
|
+
if (!res.ok) {
|
|
1591
|
+
throw res.error;
|
|
1592
|
+
}
|
|
1593
|
+
|
|
1594
|
+
const { value: result } = res;
|
|
1595
|
+
|
|
1596
|
+
// Handle the result
|
|
1597
|
+
console.log(result);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
run();
|
|
1601
|
+
```
|
|
1602
|
+
|
|
1603
|
+
### Parameters
|
|
1604
|
+
|
|
1605
|
+
| Parameter | Type | Required | Description |
|
|
1606
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1607
|
+
| `request` | [operations.UpdateCalendarCalendarRequest](../../sdk/models/operations/updatecalendarcalendarrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1608
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1609
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1610
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1611
|
+
|
|
1612
|
+
### Response
|
|
1613
|
+
|
|
1614
|
+
**Promise\<[shared.CalendarCalendar](../../sdk/models/shared/calendarcalendar.md)\>**
|
|
1615
|
+
|
|
1616
|
+
### Errors
|
|
1617
|
+
|
|
1618
|
+
| Error Type | Status Code | Content Type |
|
|
1619
|
+
| --------------- | --------------- | --------------- |
|
|
1620
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1621
|
+
|
|
1622
|
+
## updateCalendarEvent
|
|
1623
|
+
|
|
1624
|
+
Update an event
|
|
1625
|
+
|
|
1626
|
+
### Example Usage
|
|
1627
|
+
|
|
1628
|
+
```typescript
|
|
1629
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1630
|
+
|
|
1631
|
+
const unifiedTo = new UnifiedTo({
|
|
1632
|
+
security: {
|
|
1633
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1634
|
+
},
|
|
1635
|
+
});
|
|
1636
|
+
|
|
1637
|
+
async function run() {
|
|
1638
|
+
const result = await unifiedTo.calendar.updateCalendarEvent({
|
|
1639
|
+
calendarEvent: {
|
|
1640
|
+
endAt: "<value>",
|
|
1641
|
+
startAt: "<value>",
|
|
1642
|
+
subject: "<value>",
|
|
1643
|
+
},
|
|
1644
|
+
connectionId: "<id>",
|
|
1645
|
+
id: "<id>",
|
|
1646
|
+
});
|
|
1647
|
+
|
|
1648
|
+
// Handle the result
|
|
1649
|
+
console.log(result);
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
run();
|
|
1653
|
+
```
|
|
1654
|
+
|
|
1655
|
+
### Standalone function
|
|
1656
|
+
|
|
1657
|
+
The standalone function version of this method:
|
|
1658
|
+
|
|
1659
|
+
```typescript
|
|
1660
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1661
|
+
import { calendarUpdateCalendarEvent } from "@unified-api/typescript-sdk/funcs/calendarUpdateCalendarEvent.js";
|
|
1662
|
+
|
|
1663
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1664
|
+
// You can create one instance of it to use across an application.
|
|
1665
|
+
const unifiedTo = new UnifiedToCore({
|
|
1666
|
+
security: {
|
|
1667
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1668
|
+
},
|
|
1669
|
+
});
|
|
1670
|
+
|
|
1671
|
+
async function run() {
|
|
1672
|
+
const res = await calendarUpdateCalendarEvent(unifiedTo, {
|
|
1673
|
+
calendarEvent: {
|
|
1674
|
+
endAt: "<value>",
|
|
1675
|
+
startAt: "<value>",
|
|
1676
|
+
subject: "<value>",
|
|
1677
|
+
},
|
|
1678
|
+
connectionId: "<id>",
|
|
1679
|
+
id: "<id>",
|
|
1680
|
+
});
|
|
1681
|
+
|
|
1682
|
+
if (!res.ok) {
|
|
1683
|
+
throw res.error;
|
|
1684
|
+
}
|
|
1685
|
+
|
|
1686
|
+
const { value: result } = res;
|
|
1687
|
+
|
|
1688
|
+
// Handle the result
|
|
1689
|
+
console.log(result);
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
run();
|
|
1693
|
+
```
|
|
1694
|
+
|
|
1695
|
+
### Parameters
|
|
1696
|
+
|
|
1697
|
+
| Parameter | Type | Required | Description |
|
|
1698
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1699
|
+
| `request` | [operations.UpdateCalendarEventRequest](../../sdk/models/operations/updatecalendareventrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1700
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1701
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1702
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1703
|
+
|
|
1704
|
+
### Response
|
|
1705
|
+
|
|
1706
|
+
**Promise\<[shared.CalendarEvent](../../sdk/models/shared/calendarevent.md)\>**
|
|
1707
|
+
|
|
1708
|
+
### Errors
|
|
1709
|
+
|
|
1710
|
+
| Error Type | Status Code | Content Type |
|
|
1711
|
+
| --------------- | --------------- | --------------- |
|
|
1712
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
1713
|
+
|
|
1714
|
+
## updateCalendarLink
|
|
1715
|
+
|
|
1716
|
+
Update a link
|
|
1717
|
+
|
|
1718
|
+
### Example Usage
|
|
1719
|
+
|
|
1720
|
+
```typescript
|
|
1721
|
+
import { UnifiedTo } from "@unified-api/typescript-sdk";
|
|
1722
|
+
|
|
1723
|
+
const unifiedTo = new UnifiedTo({
|
|
1724
|
+
security: {
|
|
1725
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1726
|
+
},
|
|
1727
|
+
});
|
|
1728
|
+
|
|
1729
|
+
async function run() {
|
|
1730
|
+
const result = await unifiedTo.calendar.updateCalendarLink({
|
|
1731
|
+
calendarLink: {
|
|
1732
|
+
url: "https://quiet-coordination.name",
|
|
1733
|
+
},
|
|
1734
|
+
connectionId: "<id>",
|
|
1735
|
+
id: "<id>",
|
|
1736
|
+
});
|
|
1737
|
+
|
|
1738
|
+
// Handle the result
|
|
1739
|
+
console.log(result);
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
run();
|
|
1743
|
+
```
|
|
1744
|
+
|
|
1745
|
+
### Standalone function
|
|
1746
|
+
|
|
1747
|
+
The standalone function version of this method:
|
|
1748
|
+
|
|
1749
|
+
```typescript
|
|
1750
|
+
import { UnifiedToCore } from "@unified-api/typescript-sdk/core.js";
|
|
1751
|
+
import { calendarUpdateCalendarLink } from "@unified-api/typescript-sdk/funcs/calendarUpdateCalendarLink.js";
|
|
1752
|
+
|
|
1753
|
+
// Use `UnifiedToCore` for best tree-shaking performance.
|
|
1754
|
+
// You can create one instance of it to use across an application.
|
|
1755
|
+
const unifiedTo = new UnifiedToCore({
|
|
1756
|
+
security: {
|
|
1757
|
+
jwt: "<YOUR_API_KEY_HERE>",
|
|
1758
|
+
},
|
|
1759
|
+
});
|
|
1760
|
+
|
|
1761
|
+
async function run() {
|
|
1762
|
+
const res = await calendarUpdateCalendarLink(unifiedTo, {
|
|
1763
|
+
calendarLink: {
|
|
1764
|
+
url: "https://quiet-coordination.name",
|
|
1765
|
+
},
|
|
1766
|
+
connectionId: "<id>",
|
|
1767
|
+
id: "<id>",
|
|
1768
|
+
});
|
|
1769
|
+
|
|
1770
|
+
if (!res.ok) {
|
|
1771
|
+
throw res.error;
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
const { value: result } = res;
|
|
1775
|
+
|
|
1776
|
+
// Handle the result
|
|
1777
|
+
console.log(result);
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
run();
|
|
1781
|
+
```
|
|
1782
|
+
|
|
1783
|
+
### Parameters
|
|
1784
|
+
|
|
1785
|
+
| Parameter | Type | Required | Description |
|
|
1786
|
+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
1787
|
+
| `request` | [operations.UpdateCalendarLinkRequest](../../sdk/models/operations/updatecalendarlinkrequest.md) | :heavy_check_mark: | The request object to use for the request. |
|
|
1788
|
+
| `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
|
|
1789
|
+
| `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
|
|
1790
|
+
| `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
|
|
1791
|
+
|
|
1792
|
+
### Response
|
|
1793
|
+
|
|
1794
|
+
**Promise\<[shared.CalendarLink](../../sdk/models/shared/calendarlink.md)\>**
|
|
1795
|
+
|
|
1796
|
+
### Errors
|
|
1797
|
+
|
|
1798
|
+
| Error Type | Status Code | Content Type |
|
|
1799
|
+
| --------------- | --------------- | --------------- |
|
|
1800
|
+
| errors.SDKError | 4XX, 5XX | \*/\* |
|