@blazeo.com/calendar-client 1.0.1 → 1.0.2

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/dist/index.d.mts CHANGED
@@ -171,6 +171,84 @@ interface GetExistingByVisitorPhoneParams {
171
171
  calendar_id?: string;
172
172
  offset: number;
173
173
  }
174
+ /** Backend Participant */
175
+ interface Participant {
176
+ participantId?: string;
177
+ companyKey?: string;
178
+ alias?: string;
179
+ email?: string;
180
+ phone?: string;
181
+ isApproved?: boolean;
182
+ isAvailable?: boolean;
183
+ emailProvider?: number;
184
+ createdOn?: string;
185
+ modifiedOn?: string;
186
+ [key: string]: unknown;
187
+ }
188
+ /** Backend Setting */
189
+ interface Setting {
190
+ calendarId: string;
191
+ logoUrl?: string;
192
+ primaryColor?: string;
193
+ secondaryColor?: string;
194
+ [key: string]: unknown;
195
+ }
196
+ /** Backend CustomField */
197
+ interface CustomField {
198
+ customFieldId?: string;
199
+ calendarId?: string;
200
+ label?: string;
201
+ type?: string;
202
+ isRequired?: boolean;
203
+ [key: string]: unknown;
204
+ }
205
+ /** Backend OpeningHour */
206
+ interface OpeningHour {
207
+ openingHourId?: string;
208
+ calendarId?: string;
209
+ participantId?: string;
210
+ calendarParticipantId?: string;
211
+ dayOfWeek?: number;
212
+ startHour?: number;
213
+ startMinute?: number;
214
+ endHour?: number;
215
+ endMinute?: number;
216
+ off?: boolean;
217
+ [key: string]: unknown;
218
+ }
219
+ /** Backend AvailabilityDetail */
220
+ interface AvailabilityDetail {
221
+ availabilityId?: string;
222
+ startDate?: string;
223
+ endDate?: string;
224
+ startHour?: number;
225
+ startMinute?: number;
226
+ endHour?: number;
227
+ endMinute?: number;
228
+ [key: string]: unknown;
229
+ }
230
+ /** Backend Consumer */
231
+ interface Consumer {
232
+ consumerId?: string;
233
+ name?: string;
234
+ createdOn?: string;
235
+ modifiedOn?: string;
236
+ [key: string]: unknown;
237
+ }
238
+ /** Backend ConsumerEvent */
239
+ interface ConsumerEvent {
240
+ consumerId: string;
241
+ path: string;
242
+ callback?: string;
243
+ createdOn?: string;
244
+ modifiedOn?: string;
245
+ [key: string]: unknown;
246
+ }
247
+ /** Backend CalendarDay */
248
+ interface CalendarDay {
249
+ date?: string;
250
+ [key: string]: unknown;
251
+ }
174
252
  /** API surface required by MST models (AppointmentClient implements this). */
175
253
  interface IAppointmentClient {
176
254
  getCalendar(calendarId: string): Promise<ApiResponse<Calendar>>;
@@ -189,11 +267,6 @@ interface IAppointmentClient {
189
267
  setEventReminder(eventId: string): Promise<ApiResponse<unknown>>;
190
268
  }
191
269
 
192
- /**
193
- * HTTP client for the Appointment Backend API.
194
- * All methods return ApiResponse<T>; check response.status and response.data.
195
- */
196
-
197
270
  interface AppointmentClientConfig {
198
271
  baseUrl: string;
199
272
  /** Optional: getTimezoneOffset in minutes (e.g. from new Date().getTimezoneOffset()) */
@@ -231,6 +304,14 @@ declare class AppointmentClient {
231
304
  setAttendeeStatus(eventId: string, attendeeStatus: string): Promise<ApiResponse<unknown>>;
232
305
  /** GET /event/seteventreminder/{event_id} */
233
306
  setEventReminder(eventId: string): Promise<ApiResponse<unknown>>;
307
+ /** POST /event/reschedule – reschedule event */
308
+ rescheduleEvent(payload: Event, offsetMinutes?: number): Promise<ApiResponse<Event>>;
309
+ /** POST /event/update – update event */
310
+ updateEvent(payload: Event): Promise<ApiResponse<unknown>>;
311
+ /** POST /event/testcreate – test create (no notifications) */
312
+ testCreateEvent(payload: Event, offsetMinutes?: number): Promise<ApiResponse<unknown>>;
313
+ /** POST /event/customdata/get – get custom field schema for calendar */
314
+ getEventCustomData(calendarId: string, eventId?: string): Promise<ApiResponse<string>>;
234
315
  /** GET Calendar/Get – get calendar by calendar_id */
235
316
  getCalendar(calendarId: string): Promise<ApiResponse<Calendar>>;
236
317
  /** GET Calendar/All – calendars by company_key */
@@ -243,6 +324,148 @@ declare class AppointmentClient {
243
324
  createCalendar(payload: Partial<Calendar>): Promise<ApiResponse<Calendar>>;
244
325
  /** GET Calendar/Remove */
245
326
  removeCalendar(calendarId: string): Promise<ApiResponse<unknown>>;
327
+ /** POST Calendar/Event/Update – update calendar */
328
+ updateCalendar(payload: Partial<Calendar>): Promise<ApiResponse<unknown>>;
329
+ /** GET Calendar/Participant/Add */
330
+ addParticipantToCalendar(calendarId: string, participantId: string): Promise<ApiResponse<CalendarParticipant>>;
331
+ /** GET Calendar/Participant/Remove */
332
+ removeParticipantFromCalendar(calendarId: string, participantId: string): Promise<ApiResponse<unknown>>;
333
+ /** GET Calendar/Participant/OpeningHours/Get */
334
+ getParticipantOpeningHours(params: {
335
+ calendarParticipantId?: string;
336
+ participantId?: string;
337
+ calendarId?: string;
338
+ }): Promise<ApiResponse<unknown>>;
339
+ /** POST Calendar/Participant/Availability/OpeningHour/Save */
340
+ saveOpeningHour(payload: OpeningHour): Promise<ApiResponse<unknown>>;
341
+ /** POST Calendar/Participant/Availability/OpeningHours/Save */
342
+ saveOpeningHours(payload: OpeningHour[]): Promise<ApiResponse<unknown>>;
343
+ /** GET Calendar/Participant/OpeningHour/Remove */
344
+ removeParticipantOpeningHours(calendarId: string, participantId: string): Promise<ApiResponse<unknown>>;
345
+ /** GET Calendar/Participant/Availability/Add – backend expects body (AvailabilityDetail). Note: GET with body is non-standard; fetch may reject. Consider backend POST if needed. */
346
+ addParticipantAvailability(calendarId: string, participantId: string, detail: AvailabilityDetail): Promise<ApiResponse<unknown>>;
347
+ /** GET Calendar/Participant/All */
348
+ getCalendarParticipants(calendarId: string): Promise<ApiResponse<CalendarParticipant[]>>;
349
+ /** GET Calendar/CreateWithParticipants */
350
+ createCalendarWithParticipants(params: {
351
+ name: string;
352
+ companyKey: string;
353
+ description?: string;
354
+ calendarId?: string;
355
+ participantIds: string[];
356
+ }): Promise<ApiResponse<string>>;
357
+ /** GET Calendar/EditWithParticipants */
358
+ editCalendarWithParticipants(params: {
359
+ calendarId: string;
360
+ name: string;
361
+ description?: string;
362
+ participantIds: string[];
363
+ }): Promise<ApiResponse<unknown>>;
364
+ /** GET Calendar/Month/Get */
365
+ getCalendarMonth(calendarId: string, year: number, month: number): Promise<ApiResponse<unknown[]>>;
366
+ /** GET Calendar/Events/Get */
367
+ getCalendarEvents(calendarId: string): Promise<ApiResponse<Event[]>>;
368
+ /** GET participant/get */
369
+ getParticipant(participantId: string): Promise<ApiResponse<Participant>>;
370
+ /** GET participant/participants/get */
371
+ getParticipantsByIds(participantIds: string[]): Promise<ApiResponse<Participant[]>>;
372
+ /** GET Participant/All */
373
+ getAllParticipants(companyKey: string): Promise<ApiResponse<Participant[]>>;
374
+ /** GET participant/sendemail */
375
+ sendParticipantEmail(participantId: string): Promise<ApiResponse<unknown>>;
376
+ /** POST Participant/Add */
377
+ addParticipant(payload: Participant, calendarId?: string): Promise<ApiResponse<Participant>>;
378
+ /** GET participant/remove */
379
+ removeParticipant(participantId: string): Promise<ApiResponse<unknown>>;
380
+ /** POST participant/update */
381
+ updateParticipant(payload: Participant): Promise<ApiResponse<unknown>>;
382
+ /** POST participant/save */
383
+ saveParticipant(payload: Participant): Promise<ApiResponse<Participant>>;
384
+ /** GET Calendar/Participant/Get */
385
+ getCalendarParticipant(calendarId: string): Promise<ApiResponse<CalendarParticipant[]>>;
386
+ /** GET Calendar/Participants/GetInfo */
387
+ getCalendarParticipantsInfo(calendarId: string): Promise<ApiResponse<unknown[]>>;
388
+ /** GET Participant/calendar/get */
389
+ getParticipantCalendars(participantId: string): Promise<ApiResponse<string>>;
390
+ /** GET CustomField/GetAll */
391
+ getCustomFields(calendarId: string): Promise<ApiResponse<CustomField[]>>;
392
+ /** GET CustomField/FieldType/Get */
393
+ getCustomFieldType(fieldType: string): Promise<ApiResponse<unknown>>;
394
+ /** POST CustomField/Add */
395
+ addCustomField(payload: CustomField): Promise<ApiResponse<CustomField>>;
396
+ /** GET CustomField/FieldTypes/Get */
397
+ getCustomFieldTypes(): Promise<ApiResponse<{
398
+ fieldtypes: string;
399
+ }>>;
400
+ /** GET CustomField/RemoveField */
401
+ removeCustomField(customFieldId: string): Promise<ApiResponse<unknown>>;
402
+ /** GET CustomField/RemoveAllFields */
403
+ removeAllCustomFields(calendarId: string): Promise<ApiResponse<unknown>>;
404
+ /** GET CustomField/Form/Get */
405
+ getCustomForm(calendarId: string, dataId?: string): Promise<ApiResponse<unknown[]>>;
406
+ /** GET CustomField/Form/Data/Get */
407
+ getCustomFormData(calendarId: string, dataId?: string): Promise<ApiResponse<Record<string, unknown>>>;
408
+ /** POST CustomField/Form/Save */
409
+ saveCustomForm(calendarId: string, fields: unknown[]): Promise<ApiResponse<unknown>>;
410
+ /** POST CustomField/Form/Data/Save */
411
+ saveCustomFormData(dataId: string, fields: unknown[]): Promise<ApiResponse<unknown>>;
412
+ /** POST CustomField/Form/Field/Data/Save */
413
+ saveCustomFormFieldData(field: {
414
+ Type: string;
415
+ [key: string]: unknown;
416
+ }): Promise<ApiResponse<unknown>>;
417
+ /** GET setting/get */
418
+ getSetting(calendarId: string): Promise<ApiResponse<Setting>>;
419
+ /** POST setting/save */
420
+ saveSetting(payload: Setting): Promise<ApiResponse<unknown>>;
421
+ /** POST setting/logo/upload */
422
+ uploadSettingLogo(calendarId: string, file: File | Blob): Promise<ApiResponse<unknown>>;
423
+ /** POST Consumer/Register/EventListener */
424
+ registerEventListener(payload: ConsumerEvent): Promise<ApiResponse<unknown>>;
425
+ /** PUT Consumer/Update/EventListener */
426
+ updateEventListener(payload: ConsumerEvent): Promise<ApiResponse<unknown>>;
427
+ /** POST Consumer/Register */
428
+ registerConsumer(payload: Consumer): Promise<ApiResponse<Consumer>>;
429
+ /** GET Consumer/Events/List */
430
+ listEventListeners(): Promise<ApiResponse<unknown[]>>;
431
+ /** GET Consumer/List */
432
+ listConsumers(): Promise<ApiResponse<Consumer[]>>;
433
+ /** POST /preference/{scope}/{key}/{option} */
434
+ setPreference(scope: string, key: string, option: string, body: string): Promise<ApiResponse<unknown>>;
435
+ /** GET /preference/scopes */
436
+ getPreferenceScopes(): Promise<ApiResponse<string[]>>;
437
+ /** GET /preference/options */
438
+ getPreferenceOptions(): Promise<ApiResponse<string[]>>;
439
+ /** GET /preference/options/{option} */
440
+ getPreferenceOption(option: string): Promise<ApiResponse<unknown>>;
441
+ /** GET /preference/{option} */
442
+ getPreference(option: string, keys: string[]): Promise<ApiResponse<unknown>>;
443
+ /** POST /notification/sms/outbound */
444
+ sendSmsOutbound(payload: unknown): Promise<ApiResponse<unknown>>;
445
+ /** GET /notification/sms/queue */
446
+ getSmsQueue(id: number): Promise<ApiResponse<unknown>>;
447
+ /** POST /notification/sms/inbound */
448
+ smsInbound(formData: FormData): Promise<ApiResponse<unknown>>;
449
+ /** POST /notification/sms/status */
450
+ smsStatus(payload: unknown): Promise<ApiResponse<unknown>>;
451
+ /** GET /notification/sms/outbox/send */
452
+ sendSmsOutbox(): Promise<ApiResponse<unknown>>;
453
+ /** GET /CallBack – OAuth callback (typically used as redirect URL) */
454
+ getCallbackUrl(): string;
455
+ /** POST Auth/AddParticipantCredentials */
456
+ addParticipantCredentials(payload: unknown): Promise<ApiResponse<unknown>>;
457
+ /** GET Auth/ParticipantCredentials */
458
+ getParticipantCredentials(participantId: string): Promise<ApiResponse<unknown>>;
459
+ /** GET /ping */
460
+ ping(): Promise<ApiResponse<string>>;
461
+ /** GET /setup */
462
+ setup(name?: string): Promise<ApiResponse<unknown>>;
463
+ /** GET /reset */
464
+ reset(): Promise<ApiResponse<unknown>>;
465
+ /** POST /ping */
466
+ pingPost(): Promise<ApiResponse<unknown>>;
467
+ /** POST /schedule/calendar/ */
468
+ scheduleCalendar(calendar?: string): Promise<ApiResponse<unknown>>;
246
469
  }
247
470
 
248
471
  /**
@@ -738,4 +961,4 @@ declare const RootStore: mobx_state_tree.IModelType<{
738
961
  }, mobx_state_tree._NotCustomized, mobx_state_tree._NotCustomized>;
739
962
  type IRootStore = Instance<typeof RootStore>;
740
963
 
741
- export { type ApiResponse, AppointmentClient, type AppointmentClientConfig, type AppointmentEnv, AssignmentMethod, AttendeeStatus, AvailabilityDetailModel, AvailabilityModel, type Calendar, CalendarModel, type CalendarParticipant, CalendarParticipantModel, type CreateEventInput, DayOfWeek, type Event, EventModel, type GetAvailabilityParams, type GetDaySelectableParams, type GetEarliestAvailableParams, type GetEventParams, type GetExistingByVisitorEmailParams, type GetExistingByVisitorPhoneParams, type IAppointmentClient, type IAvailability, type IAvailabilityDetail, type ICalendar, type ICalendarParticipant, type IEvent, type IOpeningHour, type IParticipant, type IRootStore, type ISetting, type ITimeFrame, type ITimeSlot, OpeningHourModel, ParticipantModel, RecurringFrequency, RootStore, SettingModel, TimeFrameModel, type TimeSlot, TimeSlotModel, Unit, mapCreateEventInputToEvent };
964
+ export { type ApiResponse, AppointmentClient, type AppointmentClientConfig, type AppointmentEnv, AssignmentMethod, AttendeeStatus, type AvailabilityDetail, AvailabilityDetailModel, AvailabilityModel, type Calendar, type CalendarDay, CalendarModel, type CalendarParticipant, CalendarParticipantModel, type Consumer, type ConsumerEvent, type CreateEventInput, type CustomField, DayOfWeek, type Event, EventModel, type GetAvailabilityParams, type GetDaySelectableParams, type GetEarliestAvailableParams, type GetEventParams, type GetExistingByVisitorEmailParams, type GetExistingByVisitorPhoneParams, type IAppointmentClient, type IAvailability, type IAvailabilityDetail, type ICalendar, type ICalendarParticipant, type IEvent, type IOpeningHour, type IParticipant, type IRootStore, type ISetting, type ITimeFrame, type ITimeSlot, type OpeningHour, OpeningHourModel, type Participant, ParticipantModel, RecurringFrequency, RootStore, type Setting, SettingModel, TimeFrameModel, type TimeSlot, TimeSlotModel, Unit, mapCreateEventInputToEvent };
package/dist/index.d.ts CHANGED
@@ -171,6 +171,84 @@ interface GetExistingByVisitorPhoneParams {
171
171
  calendar_id?: string;
172
172
  offset: number;
173
173
  }
174
+ /** Backend Participant */
175
+ interface Participant {
176
+ participantId?: string;
177
+ companyKey?: string;
178
+ alias?: string;
179
+ email?: string;
180
+ phone?: string;
181
+ isApproved?: boolean;
182
+ isAvailable?: boolean;
183
+ emailProvider?: number;
184
+ createdOn?: string;
185
+ modifiedOn?: string;
186
+ [key: string]: unknown;
187
+ }
188
+ /** Backend Setting */
189
+ interface Setting {
190
+ calendarId: string;
191
+ logoUrl?: string;
192
+ primaryColor?: string;
193
+ secondaryColor?: string;
194
+ [key: string]: unknown;
195
+ }
196
+ /** Backend CustomField */
197
+ interface CustomField {
198
+ customFieldId?: string;
199
+ calendarId?: string;
200
+ label?: string;
201
+ type?: string;
202
+ isRequired?: boolean;
203
+ [key: string]: unknown;
204
+ }
205
+ /** Backend OpeningHour */
206
+ interface OpeningHour {
207
+ openingHourId?: string;
208
+ calendarId?: string;
209
+ participantId?: string;
210
+ calendarParticipantId?: string;
211
+ dayOfWeek?: number;
212
+ startHour?: number;
213
+ startMinute?: number;
214
+ endHour?: number;
215
+ endMinute?: number;
216
+ off?: boolean;
217
+ [key: string]: unknown;
218
+ }
219
+ /** Backend AvailabilityDetail */
220
+ interface AvailabilityDetail {
221
+ availabilityId?: string;
222
+ startDate?: string;
223
+ endDate?: string;
224
+ startHour?: number;
225
+ startMinute?: number;
226
+ endHour?: number;
227
+ endMinute?: number;
228
+ [key: string]: unknown;
229
+ }
230
+ /** Backend Consumer */
231
+ interface Consumer {
232
+ consumerId?: string;
233
+ name?: string;
234
+ createdOn?: string;
235
+ modifiedOn?: string;
236
+ [key: string]: unknown;
237
+ }
238
+ /** Backend ConsumerEvent */
239
+ interface ConsumerEvent {
240
+ consumerId: string;
241
+ path: string;
242
+ callback?: string;
243
+ createdOn?: string;
244
+ modifiedOn?: string;
245
+ [key: string]: unknown;
246
+ }
247
+ /** Backend CalendarDay */
248
+ interface CalendarDay {
249
+ date?: string;
250
+ [key: string]: unknown;
251
+ }
174
252
  /** API surface required by MST models (AppointmentClient implements this). */
175
253
  interface IAppointmentClient {
176
254
  getCalendar(calendarId: string): Promise<ApiResponse<Calendar>>;
@@ -189,11 +267,6 @@ interface IAppointmentClient {
189
267
  setEventReminder(eventId: string): Promise<ApiResponse<unknown>>;
190
268
  }
191
269
 
192
- /**
193
- * HTTP client for the Appointment Backend API.
194
- * All methods return ApiResponse<T>; check response.status and response.data.
195
- */
196
-
197
270
  interface AppointmentClientConfig {
198
271
  baseUrl: string;
199
272
  /** Optional: getTimezoneOffset in minutes (e.g. from new Date().getTimezoneOffset()) */
@@ -231,6 +304,14 @@ declare class AppointmentClient {
231
304
  setAttendeeStatus(eventId: string, attendeeStatus: string): Promise<ApiResponse<unknown>>;
232
305
  /** GET /event/seteventreminder/{event_id} */
233
306
  setEventReminder(eventId: string): Promise<ApiResponse<unknown>>;
307
+ /** POST /event/reschedule – reschedule event */
308
+ rescheduleEvent(payload: Event, offsetMinutes?: number): Promise<ApiResponse<Event>>;
309
+ /** POST /event/update – update event */
310
+ updateEvent(payload: Event): Promise<ApiResponse<unknown>>;
311
+ /** POST /event/testcreate – test create (no notifications) */
312
+ testCreateEvent(payload: Event, offsetMinutes?: number): Promise<ApiResponse<unknown>>;
313
+ /** POST /event/customdata/get – get custom field schema for calendar */
314
+ getEventCustomData(calendarId: string, eventId?: string): Promise<ApiResponse<string>>;
234
315
  /** GET Calendar/Get – get calendar by calendar_id */
235
316
  getCalendar(calendarId: string): Promise<ApiResponse<Calendar>>;
236
317
  /** GET Calendar/All – calendars by company_key */
@@ -243,6 +324,148 @@ declare class AppointmentClient {
243
324
  createCalendar(payload: Partial<Calendar>): Promise<ApiResponse<Calendar>>;
244
325
  /** GET Calendar/Remove */
245
326
  removeCalendar(calendarId: string): Promise<ApiResponse<unknown>>;
327
+ /** POST Calendar/Event/Update – update calendar */
328
+ updateCalendar(payload: Partial<Calendar>): Promise<ApiResponse<unknown>>;
329
+ /** GET Calendar/Participant/Add */
330
+ addParticipantToCalendar(calendarId: string, participantId: string): Promise<ApiResponse<CalendarParticipant>>;
331
+ /** GET Calendar/Participant/Remove */
332
+ removeParticipantFromCalendar(calendarId: string, participantId: string): Promise<ApiResponse<unknown>>;
333
+ /** GET Calendar/Participant/OpeningHours/Get */
334
+ getParticipantOpeningHours(params: {
335
+ calendarParticipantId?: string;
336
+ participantId?: string;
337
+ calendarId?: string;
338
+ }): Promise<ApiResponse<unknown>>;
339
+ /** POST Calendar/Participant/Availability/OpeningHour/Save */
340
+ saveOpeningHour(payload: OpeningHour): Promise<ApiResponse<unknown>>;
341
+ /** POST Calendar/Participant/Availability/OpeningHours/Save */
342
+ saveOpeningHours(payload: OpeningHour[]): Promise<ApiResponse<unknown>>;
343
+ /** GET Calendar/Participant/OpeningHour/Remove */
344
+ removeParticipantOpeningHours(calendarId: string, participantId: string): Promise<ApiResponse<unknown>>;
345
+ /** GET Calendar/Participant/Availability/Add – backend expects body (AvailabilityDetail). Note: GET with body is non-standard; fetch may reject. Consider backend POST if needed. */
346
+ addParticipantAvailability(calendarId: string, participantId: string, detail: AvailabilityDetail): Promise<ApiResponse<unknown>>;
347
+ /** GET Calendar/Participant/All */
348
+ getCalendarParticipants(calendarId: string): Promise<ApiResponse<CalendarParticipant[]>>;
349
+ /** GET Calendar/CreateWithParticipants */
350
+ createCalendarWithParticipants(params: {
351
+ name: string;
352
+ companyKey: string;
353
+ description?: string;
354
+ calendarId?: string;
355
+ participantIds: string[];
356
+ }): Promise<ApiResponse<string>>;
357
+ /** GET Calendar/EditWithParticipants */
358
+ editCalendarWithParticipants(params: {
359
+ calendarId: string;
360
+ name: string;
361
+ description?: string;
362
+ participantIds: string[];
363
+ }): Promise<ApiResponse<unknown>>;
364
+ /** GET Calendar/Month/Get */
365
+ getCalendarMonth(calendarId: string, year: number, month: number): Promise<ApiResponse<unknown[]>>;
366
+ /** GET Calendar/Events/Get */
367
+ getCalendarEvents(calendarId: string): Promise<ApiResponse<Event[]>>;
368
+ /** GET participant/get */
369
+ getParticipant(participantId: string): Promise<ApiResponse<Participant>>;
370
+ /** GET participant/participants/get */
371
+ getParticipantsByIds(participantIds: string[]): Promise<ApiResponse<Participant[]>>;
372
+ /** GET Participant/All */
373
+ getAllParticipants(companyKey: string): Promise<ApiResponse<Participant[]>>;
374
+ /** GET participant/sendemail */
375
+ sendParticipantEmail(participantId: string): Promise<ApiResponse<unknown>>;
376
+ /** POST Participant/Add */
377
+ addParticipant(payload: Participant, calendarId?: string): Promise<ApiResponse<Participant>>;
378
+ /** GET participant/remove */
379
+ removeParticipant(participantId: string): Promise<ApiResponse<unknown>>;
380
+ /** POST participant/update */
381
+ updateParticipant(payload: Participant): Promise<ApiResponse<unknown>>;
382
+ /** POST participant/save */
383
+ saveParticipant(payload: Participant): Promise<ApiResponse<Participant>>;
384
+ /** GET Calendar/Participant/Get */
385
+ getCalendarParticipant(calendarId: string): Promise<ApiResponse<CalendarParticipant[]>>;
386
+ /** GET Calendar/Participants/GetInfo */
387
+ getCalendarParticipantsInfo(calendarId: string): Promise<ApiResponse<unknown[]>>;
388
+ /** GET Participant/calendar/get */
389
+ getParticipantCalendars(participantId: string): Promise<ApiResponse<string>>;
390
+ /** GET CustomField/GetAll */
391
+ getCustomFields(calendarId: string): Promise<ApiResponse<CustomField[]>>;
392
+ /** GET CustomField/FieldType/Get */
393
+ getCustomFieldType(fieldType: string): Promise<ApiResponse<unknown>>;
394
+ /** POST CustomField/Add */
395
+ addCustomField(payload: CustomField): Promise<ApiResponse<CustomField>>;
396
+ /** GET CustomField/FieldTypes/Get */
397
+ getCustomFieldTypes(): Promise<ApiResponse<{
398
+ fieldtypes: string;
399
+ }>>;
400
+ /** GET CustomField/RemoveField */
401
+ removeCustomField(customFieldId: string): Promise<ApiResponse<unknown>>;
402
+ /** GET CustomField/RemoveAllFields */
403
+ removeAllCustomFields(calendarId: string): Promise<ApiResponse<unknown>>;
404
+ /** GET CustomField/Form/Get */
405
+ getCustomForm(calendarId: string, dataId?: string): Promise<ApiResponse<unknown[]>>;
406
+ /** GET CustomField/Form/Data/Get */
407
+ getCustomFormData(calendarId: string, dataId?: string): Promise<ApiResponse<Record<string, unknown>>>;
408
+ /** POST CustomField/Form/Save */
409
+ saveCustomForm(calendarId: string, fields: unknown[]): Promise<ApiResponse<unknown>>;
410
+ /** POST CustomField/Form/Data/Save */
411
+ saveCustomFormData(dataId: string, fields: unknown[]): Promise<ApiResponse<unknown>>;
412
+ /** POST CustomField/Form/Field/Data/Save */
413
+ saveCustomFormFieldData(field: {
414
+ Type: string;
415
+ [key: string]: unknown;
416
+ }): Promise<ApiResponse<unknown>>;
417
+ /** GET setting/get */
418
+ getSetting(calendarId: string): Promise<ApiResponse<Setting>>;
419
+ /** POST setting/save */
420
+ saveSetting(payload: Setting): Promise<ApiResponse<unknown>>;
421
+ /** POST setting/logo/upload */
422
+ uploadSettingLogo(calendarId: string, file: File | Blob): Promise<ApiResponse<unknown>>;
423
+ /** POST Consumer/Register/EventListener */
424
+ registerEventListener(payload: ConsumerEvent): Promise<ApiResponse<unknown>>;
425
+ /** PUT Consumer/Update/EventListener */
426
+ updateEventListener(payload: ConsumerEvent): Promise<ApiResponse<unknown>>;
427
+ /** POST Consumer/Register */
428
+ registerConsumer(payload: Consumer): Promise<ApiResponse<Consumer>>;
429
+ /** GET Consumer/Events/List */
430
+ listEventListeners(): Promise<ApiResponse<unknown[]>>;
431
+ /** GET Consumer/List */
432
+ listConsumers(): Promise<ApiResponse<Consumer[]>>;
433
+ /** POST /preference/{scope}/{key}/{option} */
434
+ setPreference(scope: string, key: string, option: string, body: string): Promise<ApiResponse<unknown>>;
435
+ /** GET /preference/scopes */
436
+ getPreferenceScopes(): Promise<ApiResponse<string[]>>;
437
+ /** GET /preference/options */
438
+ getPreferenceOptions(): Promise<ApiResponse<string[]>>;
439
+ /** GET /preference/options/{option} */
440
+ getPreferenceOption(option: string): Promise<ApiResponse<unknown>>;
441
+ /** GET /preference/{option} */
442
+ getPreference(option: string, keys: string[]): Promise<ApiResponse<unknown>>;
443
+ /** POST /notification/sms/outbound */
444
+ sendSmsOutbound(payload: unknown): Promise<ApiResponse<unknown>>;
445
+ /** GET /notification/sms/queue */
446
+ getSmsQueue(id: number): Promise<ApiResponse<unknown>>;
447
+ /** POST /notification/sms/inbound */
448
+ smsInbound(formData: FormData): Promise<ApiResponse<unknown>>;
449
+ /** POST /notification/sms/status */
450
+ smsStatus(payload: unknown): Promise<ApiResponse<unknown>>;
451
+ /** GET /notification/sms/outbox/send */
452
+ sendSmsOutbox(): Promise<ApiResponse<unknown>>;
453
+ /** GET /CallBack – OAuth callback (typically used as redirect URL) */
454
+ getCallbackUrl(): string;
455
+ /** POST Auth/AddParticipantCredentials */
456
+ addParticipantCredentials(payload: unknown): Promise<ApiResponse<unknown>>;
457
+ /** GET Auth/ParticipantCredentials */
458
+ getParticipantCredentials(participantId: string): Promise<ApiResponse<unknown>>;
459
+ /** GET /ping */
460
+ ping(): Promise<ApiResponse<string>>;
461
+ /** GET /setup */
462
+ setup(name?: string): Promise<ApiResponse<unknown>>;
463
+ /** GET /reset */
464
+ reset(): Promise<ApiResponse<unknown>>;
465
+ /** POST /ping */
466
+ pingPost(): Promise<ApiResponse<unknown>>;
467
+ /** POST /schedule/calendar/ */
468
+ scheduleCalendar(calendar?: string): Promise<ApiResponse<unknown>>;
246
469
  }
247
470
 
248
471
  /**
@@ -738,4 +961,4 @@ declare const RootStore: mobx_state_tree.IModelType<{
738
961
  }, mobx_state_tree._NotCustomized, mobx_state_tree._NotCustomized>;
739
962
  type IRootStore = Instance<typeof RootStore>;
740
963
 
741
- export { type ApiResponse, AppointmentClient, type AppointmentClientConfig, type AppointmentEnv, AssignmentMethod, AttendeeStatus, AvailabilityDetailModel, AvailabilityModel, type Calendar, CalendarModel, type CalendarParticipant, CalendarParticipantModel, type CreateEventInput, DayOfWeek, type Event, EventModel, type GetAvailabilityParams, type GetDaySelectableParams, type GetEarliestAvailableParams, type GetEventParams, type GetExistingByVisitorEmailParams, type GetExistingByVisitorPhoneParams, type IAppointmentClient, type IAvailability, type IAvailabilityDetail, type ICalendar, type ICalendarParticipant, type IEvent, type IOpeningHour, type IParticipant, type IRootStore, type ISetting, type ITimeFrame, type ITimeSlot, OpeningHourModel, ParticipantModel, RecurringFrequency, RootStore, SettingModel, TimeFrameModel, type TimeSlot, TimeSlotModel, Unit, mapCreateEventInputToEvent };
964
+ export { type ApiResponse, AppointmentClient, type AppointmentClientConfig, type AppointmentEnv, AssignmentMethod, AttendeeStatus, type AvailabilityDetail, AvailabilityDetailModel, AvailabilityModel, type Calendar, type CalendarDay, CalendarModel, type CalendarParticipant, CalendarParticipantModel, type Consumer, type ConsumerEvent, type CreateEventInput, type CustomField, DayOfWeek, type Event, EventModel, type GetAvailabilityParams, type GetDaySelectableParams, type GetEarliestAvailableParams, type GetEventParams, type GetExistingByVisitorEmailParams, type GetExistingByVisitorPhoneParams, type IAppointmentClient, type IAvailability, type IAvailabilityDetail, type ICalendar, type ICalendarParticipant, type IEvent, type IOpeningHour, type IParticipant, type IRootStore, type ISetting, type ITimeFrame, type ITimeSlot, type OpeningHour, OpeningHourModel, type Participant, ParticipantModel, RecurringFrequency, RootStore, type Setting, SettingModel, TimeFrameModel, type TimeSlot, TimeSlotModel, Unit, mapCreateEventInputToEvent };