@blazeo.com/appointment-client 1.0.11 → 1.0.14

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.
Files changed (138) hide show
  1. package/blazeo.com-appointment-client-1.0.14.tgz +0 -0
  2. package/package.json +3 -2
  3. package/sample/src/EventTab.jsx +435 -395
  4. package/sample/src/FetchCalendarTab.jsx +19 -33
  5. package/sample/src/LeadTab.jsx +335 -0
  6. package/src/calendar/calendarCreation.ts +62 -15
  7. package/src/calendar/fetchCalendarDetails.ts +10 -2
  8. package/src/calendar/getCalendarsByCompany.ts +17 -64
  9. package/src/calendar/mapToDesiredResponse.ts +31 -17
  10. package/src/events/getAppointmentsByFilter.ts +98 -0
  11. package/src/index.ts +23 -14
  12. package/src/lead/fetchLeadDetails.ts +106 -0
  13. package/blazeo.com-appointment-client-1.0.11.tgz +0 -0
  14. package/dist/calendar/blazeoCalendarRelationMethods.d.ts +0 -8
  15. package/dist/calendar/blazeoCalendarRelationMethods.d.ts.map +0 -1
  16. package/dist/calendar/blazeoCalendarRelationMethods.js +0 -16
  17. package/dist/calendar/blazeoCalendarRelationMethods.js.map +0 -1
  18. package/dist/calendar/buildUnifiedCalendarView.d.ts +0 -39
  19. package/dist/calendar/buildUnifiedCalendarView.js +0 -301
  20. package/dist/calendar/calendarCreation.d.ts +0 -27
  21. package/dist/calendar/calendarCreation.js +0 -191
  22. package/dist/calendar/calendarCreationFacade.d.ts +0 -27
  23. package/dist/calendar/calendarCreationFacade.d.ts.map +0 -1
  24. package/dist/calendar/calendarCreationFacade.js +0 -167
  25. package/dist/calendar/calendarCreationFacade.js.map +0 -1
  26. package/dist/calendar/createCalendar.d.ts +0 -81
  27. package/dist/calendar/createCalendar.d.ts.map +0 -1
  28. package/dist/calendar/createCalendar.js +0 -206
  29. package/dist/calendar/createCalendar.js.map +0 -1
  30. package/dist/calendar/fetchCalendarDetails.d.ts +0 -41
  31. package/dist/calendar/fetchCalendarDetails.js +0 -262
  32. package/dist/calendar/fetchCalendarWithOpeningHours.d.ts +0 -25
  33. package/dist/calendar/fetchCalendarWithOpeningHours.js +0 -114
  34. package/dist/calendar/getAllParticipantOpeningHours.d.ts +0 -22
  35. package/dist/calendar/getAllParticipantOpeningHours.js +0 -22
  36. package/dist/calendar/getCalendarsByCompany.d.ts +0 -9
  37. package/dist/calendar/getCalendarsByCompany.js +0 -107
  38. package/dist/calendar/getOpeningHours.d.ts +0 -8
  39. package/dist/calendar/getOpeningHours.js +0 -9
  40. package/dist/calendar/getParticipantOpeningHours.d.ts +0 -37
  41. package/dist/calendar/getParticipantOpeningHours.js +0 -48
  42. package/dist/calendar/getParticipants.d.ts +0 -7
  43. package/dist/calendar/getParticipants.js +0 -13
  44. package/dist/calendar/mapCalendarBoToBlazeoSnapshot.d.ts +0 -10
  45. package/dist/calendar/mapCalendarBoToBlazeoSnapshot.d.ts.map +0 -1
  46. package/dist/calendar/mapCalendarBoToBlazeoSnapshot.js +0 -44
  47. package/dist/calendar/mapCalendarBoToBlazeoSnapshot.js.map +0 -1
  48. package/dist/calendar/mapCalendarToBlazeoSnapshot.d.ts +0 -29
  49. package/dist/calendar/mapCalendarToBlazeoSnapshot.d.ts.map +0 -1
  50. package/dist/calendar/mapCalendarToBlazeoSnapshot.js +0 -44
  51. package/dist/calendar/mapCalendarToBlazeoSnapshot.js.map +0 -1
  52. package/dist/calendar/mapToDesiredResponse.d.ts +0 -70
  53. package/dist/calendar/mapToDesiredResponse.js +0 -99
  54. package/dist/config/applyBlazeoClientConfig.d.ts +0 -3
  55. package/dist/config/applyBlazeoClientConfig.d.ts.map +0 -1
  56. package/dist/config/applyBlazeoClientConfig.js +0 -14
  57. package/dist/config/applyBlazeoClientConfig.js.map +0 -1
  58. package/dist/config/applyBlazeoDefaults.d.ts +0 -2
  59. package/dist/config/applyBlazeoDefaults.d.ts.map +0 -1
  60. package/dist/config/applyBlazeoDefaults.js +0 -14
  61. package/dist/config/applyBlazeoDefaults.js.map +0 -1
  62. package/dist/config/blazeo.config.d.ts +0 -11
  63. package/dist/config/blazeo.config.d.ts.map +0 -1
  64. package/dist/config/blazeo.config.js +0 -11
  65. package/dist/config/blazeo.config.js.map +0 -1
  66. package/dist/config/blazeoClientDefaults.d.ts +0 -11
  67. package/dist/config/blazeoClientDefaults.d.ts.map +0 -1
  68. package/dist/config/blazeoClientDefaults.js +0 -11
  69. package/dist/config/blazeoClientDefaults.js.map +0 -1
  70. package/dist/config/ensureBlazeoHttpReady.d.ts +0 -17
  71. package/dist/config/ensureBlazeoHttpReady.js +0 -31
  72. package/dist/config/initializeAppointmentClient.d.ts +0 -11
  73. package/dist/config/initializeAppointmentClient.d.ts.map +0 -1
  74. package/dist/config/initializeAppointmentClient.js +0 -15
  75. package/dist/config/initializeAppointmentClient.js.map +0 -1
  76. package/dist/config/syncBlazeoConnection.d.ts +0 -6
  77. package/dist/config/syncBlazeoConnection.js +0 -18
  78. package/dist/events/appointmentEventFacade.d.ts +0 -67
  79. package/dist/events/appointmentEventFacade.d.ts.map +0 -1
  80. package/dist/events/appointmentEventFacade.js +0 -124
  81. package/dist/events/appointmentEventFacade.js.map +0 -1
  82. package/dist/events/mapAppointmentToEventSnapshot.d.ts +0 -5
  83. package/dist/events/mapAppointmentToEventSnapshot.d.ts.map +0 -1
  84. package/dist/events/mapAppointmentToEventSnapshot.js +0 -57
  85. package/dist/events/mapAppointmentToEventSnapshot.js.map +0 -1
  86. package/dist/exampleData.d.ts +0 -119
  87. package/dist/exampleData.d.ts.map +0 -1
  88. package/dist/exampleData.js +0 -71
  89. package/dist/exampleData.js.map +0 -1
  90. package/dist/facade/calendarCreationFacade.d.ts +0 -40
  91. package/dist/facade/calendarCreationFacade.d.ts.map +0 -1
  92. package/dist/facade/calendarCreationFacade.js +0 -96
  93. package/dist/facade/calendarCreationFacade.js.map +0 -1
  94. package/dist/facade/mapCalendarBOToSnapshot.d.ts +0 -10
  95. package/dist/facade/mapCalendarBOToSnapshot.d.ts.map +0 -1
  96. package/dist/facade/mapCalendarBOToSnapshot.js +0 -44
  97. package/dist/facade/mapCalendarBOToSnapshot.js.map +0 -1
  98. package/dist/facades/index.d.ts +0 -12
  99. package/dist/facades/index.d.ts.map +0 -1
  100. package/dist/facades/index.js +0 -12
  101. package/dist/facades/index.js.map +0 -1
  102. package/dist/index.d.ts +0 -40
  103. package/dist/index.d.ts.map +0 -1
  104. package/dist/index.js +0 -39
  105. package/dist/index.js.map +0 -1
  106. package/dist/models/CalendarRootModel.d.ts +0 -56
  107. package/dist/models/CalendarRootModel.d.ts.map +0 -1
  108. package/dist/models/CalendarRootModel.js +0 -54
  109. package/dist/models/CalendarRootModel.js.map +0 -1
  110. package/dist/models/CalendarSlotModel.d.ts +0 -9
  111. package/dist/models/CalendarSlotModel.d.ts.map +0 -1
  112. package/dist/models/CalendarSlotModel.js +0 -8
  113. package/dist/models/CalendarSlotModel.js.map +0 -1
  114. package/dist/models/EventModel.d.ts +0 -11
  115. package/dist/models/EventModel.d.ts.map +0 -1
  116. package/dist/models/EventModel.js +0 -10
  117. package/dist/models/EventModel.js.map +0 -1
  118. package/dist/models/ParticipantModel.d.ts +0 -9
  119. package/dist/models/ParticipantModel.d.ts.map +0 -1
  120. package/dist/models/ParticipantModel.js +0 -8
  121. package/dist/models/ParticipantModel.js.map +0 -1
  122. package/dist/models/index.d.ts +0 -5
  123. package/dist/models/index.d.ts.map +0 -1
  124. package/dist/models/index.js +0 -5
  125. package/dist/models/index.js.map +0 -1
  126. package/dist/types/appointment.d.ts +0 -28
  127. package/dist/types/appointment.d.ts.map +0 -1
  128. package/dist/types/appointment.js +0 -6
  129. package/dist/types/appointment.js.map +0 -1
  130. package/dist/types/calendar.d.ts +0 -52
  131. package/dist/types/calendar.d.ts.map +0 -1
  132. package/dist/types/calendar.js +0 -6
  133. package/dist/types/calendar.js.map +0 -1
  134. package/dist/types/calendarBo.d.ts +0 -62
  135. package/dist/types/calendarBo.d.ts.map +0 -1
  136. package/dist/types/calendarBo.js +0 -6
  137. package/dist/types/calendarBo.js.map +0 -1
  138. package/sample/package-lock.json +0 -1778
@@ -1,44 +0,0 @@
1
- /** Default enum values aligned with ApexFlows / Blazeo (`AssignmentMethod`, `Unit`). */
2
- const DEFAULT_ASSIGNMENT_METHOD = 1;
3
- const DEFAULT_UNIT_MINUTES = 1;
4
- /**
5
- * For Blazeo `Calendar` MST: `types.optional(types.number)` accepts `undefined` (uses default)
6
- * but not `null`. Coerce null/absent to `undefined`.
7
- */
8
- function optionalNumber(v) {
9
- return v == null ? undefined : v;
10
- }
11
- /**
12
- * Maps Apex `CalendarBO`-shaped input to a snapshot for
13
- * {@link CalendarModel.create} from `@blazeo.com/calendar-client`.
14
- *
15
- * Only fields that exist on Blazeo's `Calendar` model are included so MST does not receive
16
- * unknown keys or invalid `null`s on optional numbers.
17
- */
18
- export function mapCalendarBOToSnapshot(bo) {
19
- const calendarId = bo.calendarId ?? bo.thirdPartyCalendarId ?? "new";
20
- return {
21
- id: bo.serverId == null ? undefined : bo.serverId,
22
- companyKey: bo.companyKey ?? null,
23
- calendarId,
24
- name: bo.name ?? null,
25
- timeZoneId: bo.timeZoneId ?? null,
26
- purpose: bo.purpose ?? bo.bookingPageTitle ?? "",
27
- description: bo.description ?? null,
28
- assignmentMethod: bo.assignmentMethod ?? bo.assignmentType ?? DEFAULT_ASSIGNMENT_METHOD,
29
- duration: optionalNumber(bo.duration) ?? 30,
30
- durationUnit: optionalNumber(bo.durationUnit) ?? DEFAULT_UNIT_MINUTES,
31
- minimumBookingNotice: optionalNumber(bo.minimumBookingNotice) ?? 0,
32
- minimumBookingNoticeUnit: optionalNumber(bo.minimumBookingNoticeUnit) ?? DEFAULT_UNIT_MINUTES,
33
- minimumCancelationNotice: optionalNumber(bo.minimumCancelationNotice) ?? 0,
34
- minimumCancelationNoticeUnit: optionalNumber(bo.minimumCancelationNoticeUnit) ?? DEFAULT_UNIT_MINUTES,
35
- futureLimit: optionalNumber(bo.futureLimit) ?? 0,
36
- futureLimitUnit: optionalNumber(bo.futureLimitUnit) ?? 3,
37
- bufferTime: optionalNumber(bo.bufferTime),
38
- bufferTimeUnit: optionalNumber(bo.bufferTimeUnit) ?? DEFAULT_UNIT_MINUTES,
39
- bookingLimit: optionalNumber(bo.bookingLimit),
40
- createdOn: bo.createdOn ?? null,
41
- modifiedOn: bo.modifiedOn ?? null,
42
- };
43
- }
44
- //# sourceMappingURL=mapCalendarBOToSnapshot.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapCalendarBOToSnapshot.js","sourceRoot":"","sources":["../../src/facade/mapCalendarBOToSnapshot.ts"],"names":[],"mappings":"AAEA,wFAAwF;AACxF,MAAM,yBAAyB,GAAG,CAAC,CAAC;AACpC,MAAM,oBAAoB,GAAG,CAAC,CAAC;AAE/B;;;GAGG;AACH,SAAS,cAAc,CAAC,CAA4B;IAClD,OAAO,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;AACnC,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CACrC,EAAmB;IAEnB,MAAM,UAAU,GACd,EAAE,CAAC,UAAU,IAAI,EAAE,CAAC,oBAAoB,IAAI,KAAK,CAAC;IAEpD,OAAO;QACL,EAAE,EAAE,EAAE,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ;QACjD,UAAU,EAAE,EAAE,CAAC,UAAU,IAAI,IAAI;QACjC,UAAU;QACV,IAAI,EAAE,EAAE,CAAC,IAAI,IAAI,IAAI;QACrB,UAAU,EAAE,EAAE,CAAC,UAAU,IAAI,IAAI;QACjC,OAAO,EAAE,EAAE,CAAC,OAAO,IAAI,EAAE,CAAC,gBAAgB,IAAI,EAAE;QAChD,WAAW,EAAE,EAAE,CAAC,WAAW,IAAI,IAAI;QACnC,gBAAgB,EACd,EAAE,CAAC,gBAAgB,IAAI,EAAE,CAAC,cAAc,IAAI,yBAAyB;QACvE,QAAQ,EAAE,cAAc,CAAC,EAAE,CAAC,QAAQ,CAAC,IAAI,EAAE;QAC3C,YAAY,EAAE,cAAc,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,oBAAoB;QACrE,oBAAoB,EAAE,cAAc,CAAC,EAAE,CAAC,oBAAoB,CAAC,IAAI,CAAC;QAClE,wBAAwB,EACtB,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,IAAI,oBAAoB;QACrE,wBAAwB,EAAE,cAAc,CAAC,EAAE,CAAC,wBAAwB,CAAC,IAAI,CAAC;QAC1E,4BAA4B,EAC1B,cAAc,CAAC,EAAE,CAAC,4BAA4B,CAAC,IAAI,oBAAoB;QACzE,WAAW,EAAE,cAAc,CAAC,EAAE,CAAC,WAAW,CAAC,IAAI,CAAC;QAChD,eAAe,EAAE,cAAc,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;QACxD,UAAU,EAAE,cAAc,CAAC,EAAE,CAAC,UAAU,CAAC;QACzC,cAAc,EAAE,cAAc,CAAC,EAAE,CAAC,cAAc,CAAC,IAAI,oBAAoB;QACzE,YAAY,EAAE,cAAc,CAAC,EAAE,CAAC,YAAY,CAAC;QAC7C,SAAS,EAAE,EAAE,CAAC,SAAS,IAAI,IAAI;QAC/B,UAAU,EAAE,EAAE,CAAC,UAAU,IAAI,IAAI;KAClC,CAAC;AACJ,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Public facade surface for `appointment-client`.
3
- *
4
- * Call {@link initializeAppointmentClient} from `../config/initializeAppointmentClient.js`
5
- * before using these APIs in a host application.
6
- */
7
- export { createCalendarAsync, updateCalendarAsync, deleteCalendarAsync, resolveBlazeoConnection, type BlazeoCalendarCreateResponse, type CreateCalendarOptions, type CreateCalendarResult, } from "../calendar/createCalendar.js";
8
- export { CalendarCreationFacade, createCalendarWithRelationsAsync, updateCalendarWithRelationsAsync, resolveParticipantIdForOpeningHour, type CalendarWithRelationsResult, type CalendarWithRelationsSuccess, } from "../calendar/calendarCreationFacade.js";
9
- export { addParticipantToCalendar, removeParticipantFromCalendar, saveCalendarOpeningHour, saveCalendarOpeningHoursBatch, type BlazeoCalendarForRelations, type BlazeoCalendarRelationResponse, } from "../calendar/blazeoCalendarRelationMethods.js";
10
- export { createAppointmentEventAsync, rescheduleAppointmentEventAsync, cancelAppointmentEventAsync, type AppointmentEventOptions, type AppointmentEventResult, type AppointmentEventSuccess, type AppointmentEventFailure, type BlazeoEventApiResponse, } from "../events/appointmentEventFacade.js";
11
- export { mapAppointmentToEventSnapshot, type AppointmentEventMappingMode, } from "../events/mapAppointmentToEventSnapshot.js";
12
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/facades/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,GAC1B,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,EAClC,KAAK,2BAA2B,EAChC,KAAK,4BAA4B,GAClC,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,8BAA8B,GACpC,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,GAC5B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,6BAA6B,EAC7B,KAAK,2BAA2B,GACjC,MAAM,4CAA4C,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Public facade surface for `appointment-client`.
3
- *
4
- * Call {@link initializeAppointmentClient} from `../config/initializeAppointmentClient.js`
5
- * before using these APIs in a host application.
6
- */
7
- export { createCalendarAsync, updateCalendarAsync, deleteCalendarAsync, resolveBlazeoConnection, } from "../calendar/createCalendar.js";
8
- export { CalendarCreationFacade, createCalendarWithRelationsAsync, updateCalendarWithRelationsAsync, resolveParticipantIdForOpeningHour, } from "../calendar/calendarCreationFacade.js";
9
- export { addParticipantToCalendar, removeParticipantFromCalendar, saveCalendarOpeningHour, saveCalendarOpeningHoursBatch, } from "../calendar/blazeoCalendarRelationMethods.js";
10
- export { createAppointmentEventAsync, rescheduleAppointmentEventAsync, cancelAppointmentEventAsync, } from "../events/appointmentEventFacade.js";
11
- export { mapAppointmentToEventSnapshot, } from "../events/mapAppointmentToEventSnapshot.js";
12
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/facades/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,GAIxB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACL,sBAAsB,EACtB,gCAAgC,EAChC,gCAAgC,EAChC,kCAAkC,GAGnC,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,uBAAuB,EACvB,6BAA6B,GAG9B,MAAM,8CAA8C,CAAC;AAEtD,OAAO,EACL,2BAA2B,EAC3B,+BAA+B,EAC/B,2BAA2B,GAM5B,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,6BAA6B,GAE9B,MAAM,4CAA4C,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,40 +0,0 @@
1
- export { initializeAppointmentClient, isAppointmentClientConfigured, } from "./config/initializeAppointmentClient.js";
2
- export { syncBlazeoConnection } from "./config/syncBlazeoConnection.js";
3
- export { ensureBlazeoHttpReady } from "./config/ensureBlazeoHttpReady.js";
4
- export type { EnsureBlazeoHttpOptions } from "./config/ensureBlazeoHttpReady.js";
5
- export { blazeoClientConfig } from "./config/blazeoClientDefaults.js";
6
- export { applyBlazeoClientConfig } from "./config/applyBlazeoDefaults.js";
7
- export { createCalendarRoot, CalendarRootModel, CalendarSlotModel, EventModel, ParticipantModel } from "./models/CalendarRootModel.js";
8
- export { fetchCalendarDetails, fetchCalendarBundle, normalizeOpeningHours } from "./calendar/fetchCalendarDetails.js";
9
- export { getCalendarsByCompany } from "./calendar/getCalendarsByCompany.js";
10
- export { buildUnifiedCalendarView, type UnifiedCalendarMember, type UnifiedCalendarView, type UnifiedOpeningHourRow, type UnifiedParticipantWithHours, } from "./calendar/buildUnifiedCalendarView.js";
11
- export { fetchCalendarWithOpeningHours, unwrapCalendarGetData, pickOpeningHoursArrayFromCalendarPayload, normalizeParticipantOpeningHoursResponse } from "./calendar/fetchCalendarWithOpeningHours.js";
12
- export { getOpeningHours } from "./calendar/getOpeningHours.js";
13
- export { getParticipantOpeningHours } from "./calendar/getParticipantOpeningHours.js";
14
- export { getAllParticipantOpeningHours } from "./calendar/getAllParticipantOpeningHours.js";
15
- export { getParticipants } from "./calendar/getParticipants.js";
16
- export { getExampleSlots, getExampleEvents, getExampleParticipants, getExampleCalendarRoot, getExampleCalendarRootSnapshot } from "./exampleData.js";
17
- export { createCalendarAsync, updateCalendarAsync, deleteCalendarAsync, resolveBlazeoConnection } from "./calendar/createCalendar.js";
18
- export { CalendarCreation, createCalendarWithRelationsAsync, updateCalendarWithRelationsAsync, resolveParticipantIdForOpeningHour } from "./calendar/calendarCreation.js";
19
- export { addParticipantToCalendar, removeParticipantFromCalendar, saveCalendarOpeningHour, saveCalendarOpeningHoursBatch } from "./calendar/blazeoCalendarRelationMethods.js";
20
- export { createAppointmentEventAsync, rescheduleAppointmentEventAsync, cancelAppointmentEventAsync } from "./events/appointmentEventFacade.js";
21
- export { mapAppointmentToEventSnapshot } from "./events/mapAppointmentToEventSnapshot.js";
22
- import { CalendarModel as CoreCalendarModel, EventModel as CoreEventModel, ParticipantModel as CoreParticipantModel, CalendarParticipantModel as CoreCalendarParticipantModel, configure, getConfig } from "@blazeo.com/calendar-client";
23
- export { CoreCalendarModel as CalendarModel, CoreEventModel as CoreEventModel, CoreParticipantModel as CoreParticipantModel, CoreCalendarParticipantModel as CalendarParticipantModel, configure, getConfig };
24
- export declare const packageName = "@blazeo.com/appointment-client";
25
- export declare class CalendarClient {
26
- name: string;
27
- getExampleSlots(): (import("mobx-state-tree").ModelInstanceTypeProps<{
28
- id: import("mobx-state-tree").ISimpleType<string>;
29
- title: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
30
- start: import("mobx-state-tree").ISimpleType<string>;
31
- end: import("mobx-state-tree").ISimpleType<string>;
32
- isAvailable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
33
- }> & import("mobx-state-tree").IStateTreeNode<import("mobx-state-tree").IModelType<{
34
- id: import("mobx-state-tree").ISimpleType<string>;
35
- title: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
36
- start: import("mobx-state-tree").ISimpleType<string>;
37
- end: import("mobx-state-tree").ISimpleType<string>;
38
- isAvailable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
39
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>)[];
40
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,+BAA+B,EACrC,MAAM,yCAAyC,CAAC;AAGjD,eAAO,MAAM,WAAW,uBAAuB,CAAC;AAEhD,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,EAC7B,KAAK,+BAA+B,GACrC,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,6DAA6D;AAC7D,cAAc,oBAAoB,CAAC;AAEnC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,YAAY,EACV,aAAa,IAAI,eAAe,EAChC,aAAa,EACb,kBAAkB,GACnB,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EACL,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,mGAAmG;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,qBAAa,cAAc;IACzB,QAAQ,CAAC,IAAI,wBAAe;IAE5B,gFAAgF;IAChF,OAAO,CAAC,OAAO,EAAE,+BAA+B,GAAG,IAAI;IAIvD,eAAe;;;;;;;;;;;IAIf,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf"}
package/dist/index.js DELETED
@@ -1,39 +0,0 @@
1
- import { getExampleSlots } from "./exampleData.js";
2
- export { initializeAppointmentClient, isAppointmentClientConfigured, } from "./config/initializeAppointmentClient.js";
3
- export { syncBlazeoConnection } from "./config/syncBlazeoConnection.js";
4
- export { ensureBlazeoHttpReady } from "./config/ensureBlazeoHttpReady.js";
5
- export { blazeoClientConfig } from "./config/blazeoClientDefaults.js";
6
- export { applyBlazeoClientConfig } from "./config/applyBlazeoDefaults.js";
7
- export { createCalendarRoot, CalendarRootModel, CalendarSlotModel, EventModel, ParticipantModel } from "./models/CalendarRootModel.js";
8
- export { fetchCalendarDetails, fetchCalendarBundle, normalizeOpeningHours } from "./calendar/fetchCalendarDetails.js";
9
- export { getCalendarsByCompany } from "./calendar/getCalendarsByCompany.js";
10
- export { buildUnifiedCalendarView, } from "./calendar/buildUnifiedCalendarView.js";
11
- export { fetchCalendarWithOpeningHours, unwrapCalendarGetData, pickOpeningHoursArrayFromCalendarPayload, normalizeParticipantOpeningHoursResponse } from "./calendar/fetchCalendarWithOpeningHours.js";
12
- export { getOpeningHours } from "./calendar/getOpeningHours.js";
13
- export { getParticipantOpeningHours } from "./calendar/getParticipantOpeningHours.js";
14
- export { getAllParticipantOpeningHours } from "./calendar/getAllParticipantOpeningHours.js";
15
- export { getParticipants } from "./calendar/getParticipants.js";
16
- export { getExampleSlots, getExampleEvents, getExampleParticipants, getExampleCalendarRoot, getExampleCalendarRootSnapshot } from "./exampleData.js";
17
- // Re-export core models from calendar-client for convenience
18
- export { createCalendarAsync, updateCalendarAsync, deleteCalendarAsync, resolveBlazeoConnection } from "./calendar/createCalendar.js";
19
- export { CalendarCreation, createCalendarWithRelationsAsync, updateCalendarWithRelationsAsync, resolveParticipantIdForOpeningHour } from "./calendar/calendarCreation.js";
20
- export { addParticipantToCalendar, removeParticipantFromCalendar, saveCalendarOpeningHour, saveCalendarOpeningHoursBatch } from "./calendar/blazeoCalendarRelationMethods.js";
21
- export { createAppointmentEventAsync, rescheduleAppointmentEventAsync, cancelAppointmentEventAsync } from "./events/appointmentEventFacade.js";
22
- export { mapAppointmentToEventSnapshot } from "./events/mapAppointmentToEventSnapshot.js";
23
- import { fetchCalendarDetails, fetchCalendarBundle } from "./calendar/fetchCalendarDetails.js";
24
- import { fetchCalendarWithOpeningHours } from "./calendar/fetchCalendarWithOpeningHours.js";
25
- import { getCalendarsByCompany } from "./calendar/getCalendarsByCompany.js";
26
- import { CalendarModel as CoreCalendarModel, EventModel as CoreEventModel, ParticipantModel as CoreParticipantModel, CalendarParticipantModel as CoreCalendarParticipantModel, configure, getConfig } from "@blazeo.com/calendar-client";
27
- // Attach new methods to CalendarModel for easier access
28
- CoreCalendarModel.fetchCalendarDetails = fetchCalendarDetails;
29
- CoreCalendarModel.fetchCalendarBundle = fetchCalendarBundle;
30
- CoreCalendarModel.fetchCalendarWithOpeningHours = fetchCalendarWithOpeningHours;
31
- CoreCalendarModel.getCalendarsByCompany = getCalendarsByCompany;
32
- export { CoreCalendarModel as CalendarModel, CoreEventModel as CoreEventModel, CoreParticipantModel as CoreParticipantModel, CoreCalendarParticipantModel as CalendarParticipantModel, configure, getConfig };
33
- export const packageName = "@blazeo.com/appointment-client";
34
- export class CalendarClient {
35
- name = "CalendarClient";
36
- getExampleSlots() {
37
- return getExampleSlots();
38
- }
39
- }
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,GAE9B,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAE3E,MAAM,CAAC,MAAM,WAAW,GAAG,oBAAoB,CAAC;AAEhD,OAAO,EACL,2BAA2B,EAC3B,6BAA6B,GAE9B,CAAC;AAEF,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,6DAA6D;AAC7D,cAAc,oBAAoB,CAAC;AAEnC,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AASpF,OAAO,EACL,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,6BAA6B,CAAC;AAErC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAEnE,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,gBAAgB,EAChB,sBAAsB,EACtB,eAAe,GAChB,MAAM,kBAAkB,CAAC;AAE1B,mGAAmG;AACnG,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,MAAM,OAAO,cAAc;IAChB,IAAI,GAAG,WAAW,CAAC;IAE5B,gFAAgF;IAChF,OAAO,CAAC,OAAwC;QAC9C,2BAA2B,CAAC,OAAO,CAAC,CAAC;IACvC,CAAC;IAED,eAAe;QACb,OAAO,eAAe,EAAE,CAAC;IAC3B,CAAC;IAED,cAAc;QACZ,OAAO,sBAAsB,EAAE,CAAC;IAClC,CAAC;CACF"}
@@ -1,56 +0,0 @@
1
- import { Instance, SnapshotIn, SnapshotOut } from "mobx-state-tree";
2
- export declare const CalendarSlotModel: import("mobx-state-tree").IModelType<{
3
- id: import("mobx-state-tree").ISimpleType<string>;
4
- title: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
5
- start: import("mobx-state-tree").ISimpleType<string>;
6
- end: import("mobx-state-tree").ISimpleType<string>;
7
- isAvailable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
8
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
9
- export declare const EventModel: import("mobx-state-tree").IModelType<{
10
- id: import("mobx-state-tree").ISimpleType<string>;
11
- title: import("mobx-state-tree").ISimpleType<string>;
12
- calendarId: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
13
- startsAt: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
14
- endsAt: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
15
- participantIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
16
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
17
- export declare const ParticipantModel: import("mobx-state-tree").IModelType<{
18
- id: import("mobx-state-tree").ISimpleType<string>;
19
- name: import("mobx-state-tree").ISimpleType<string>;
20
- email: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
21
- role: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
22
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
23
- export declare const CalendarRootModel: import("mobx-state-tree").IModelType<{
24
- slots: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
25
- id: import("mobx-state-tree").ISimpleType<string>;
26
- title: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
27
- start: import("mobx-state-tree").ISimpleType<string>;
28
- end: import("mobx-state-tree").ISimpleType<string>;
29
- isAvailable: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<boolean>, [undefined]>;
30
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
31
- events: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
32
- id: import("mobx-state-tree").ISimpleType<string>;
33
- title: import("mobx-state-tree").ISimpleType<string>;
34
- calendarId: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
35
- startsAt: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
36
- endsAt: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
37
- participantIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
38
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
39
- participants: import("mobx-state-tree").IArrayType<import("mobx-state-tree").IModelType<{
40
- id: import("mobx-state-tree").ISimpleType<string>;
41
- name: import("mobx-state-tree").ISimpleType<string>;
42
- email: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
43
- role: import("mobx-state-tree").IMaybeNull<import("mobx-state-tree").ISimpleType<string>>;
44
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>>;
45
- }, {
46
- removeSlot(id: string): void;
47
- removeEvent(id: string): void;
48
- removeParticipant(id: string): void;
49
- }, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
50
- export interface ICalendarRoot extends Instance<typeof CalendarRootModel> {
51
- }
52
- export interface ICalendarRootSnapshotIn extends SnapshotIn<typeof CalendarRootModel> {
53
- }
54
- export interface ICalendarRootSnapshotOut extends SnapshotOut<typeof CalendarRootModel> {
55
- }
56
- export declare function createCalendarRoot(snapshot?: ICalendarRootSnapshotIn): ICalendarRoot;
@@ -1 +0,0 @@
1
- {"version":3,"file":"CalendarRootModel.d.ts","sourceRoot":"","sources":["../../src/models/CalendarRootModel.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,UAAU,EAEhB,MAAM,iBAAiB,CAAC;AAKzB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;mBAOX,MAAM;oBAIL,MAAM;0BAIA,MAAM;sFAI3B,CAAC;AAEN,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE9D,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE1E,wBAAgB,kBAAkB,CAChC,QAAQ,CAAC,EAAE,sBAAsB,GAChC,YAAY,CAQd"}
@@ -1,54 +0,0 @@
1
- import { types } from "mobx-state-tree";
2
- export const CalendarSlotModel = types.model("CalendarSlot", {
3
- id: types.identifier,
4
- title: types.maybeNull(types.string),
5
- start: types.string,
6
- end: types.string,
7
- isAvailable: types.optional(types.boolean, true),
8
- });
9
- export const EventModel = types.model("Event", {
10
- id: types.identifier,
11
- title: types.string,
12
- calendarId: types.maybeNull(types.string),
13
- startsAt: types.maybeNull(types.string),
14
- endsAt: types.maybeNull(types.string),
15
- participantIds: types.optional(types.array(types.string), []),
16
- });
17
- export const ParticipantModel = types.model("Participant", {
18
- id: types.identifier,
19
- name: types.string,
20
- email: types.maybeNull(types.string),
21
- role: types.maybeNull(types.string),
22
- });
23
- export const CalendarRootModel = types
24
- .model("CalendarRoot", {
25
- slots: types.array(CalendarSlotModel),
26
- events: types.array(EventModel),
27
- participants: types.array(ParticipantModel),
28
- })
29
- .actions((self) => ({
30
- removeSlot(id) {
31
- const i = self.slots.findIndex((s) => s.id === id);
32
- if (i >= 0)
33
- self.slots.splice(i, 1);
34
- },
35
- removeEvent(id) {
36
- const i = self.events.findIndex((e) => e.id === id);
37
- if (i >= 0)
38
- self.events.splice(i, 1);
39
- },
40
- removeParticipant(id) {
41
- const i = self.participants.findIndex((p) => p.id === id);
42
- if (i >= 0)
43
- self.participants.splice(i, 1);
44
- },
45
- }));
46
- export function createCalendarRoot(snapshot) {
47
- return snapshot
48
- ? CalendarRootModel.create(snapshot)
49
- : CalendarRootModel.create({
50
- slots: [],
51
- events: [],
52
- participants: [],
53
- });
54
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"CalendarRootModel.js","sourceRoot":"","sources":["../../src/models/CalendarRootModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,GACN,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAEzD,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK;KACnC,KAAK,CAAC,cAAc,EAAE;IACrB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACrC,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC;IAC/B,YAAY,EAAE,KAAK,CAAC,KAAK,CAAC,gBAAgB,CAAC;CAC5C,CAAC;KACD,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;IAClB,UAAU,CAAC,EAAU;QACnB,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACnD,IAAI,CAAC,IAAI,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACtC,CAAC;IACD,WAAW,CAAC,EAAU;QACpB,MAAM,CAAC,GAAG,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QACpD,IAAI,CAAC,IAAI,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IACvC,CAAC;IACD,iBAAiB,CAAC,EAAU;QAC1B,MAAM,CAAC,GAAG,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;QAC1D,IAAI,CAAC,IAAI,CAAC;YAAE,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC,CAAC,CAAC;AAMN,MAAM,UAAU,kBAAkB,CAChC,QAAiC;IAEjC,OAAO,QAAQ;QACb,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC,QAAQ,CAAC;QACpC,CAAC,CAAC,iBAAiB,CAAC,MAAM,CAAC;YACvB,KAAK,EAAE,EAAE;YACT,MAAM,EAAE,EAAE;YACV,YAAY,EAAE,EAAE;SACjB,CAAC,CAAC;AACT,CAAC"}
@@ -1,9 +0,0 @@
1
- import { type Instance } from "mobx-state-tree";
2
- export declare const CalendarSlotModel: import("mobx-state-tree").IModelType<{
3
- id: import("mobx-state-tree").ISimpleType<string>;
4
- title: import("mobx-state-tree").ISimpleType<string>;
5
- start: import("mobx-state-tree").ISimpleType<string>;
6
- end: import("mobx-state-tree").ISimpleType<string>;
7
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
8
- export type CalendarSlot = Instance<typeof CalendarSlotModel>;
9
- //# sourceMappingURL=CalendarSlotModel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CalendarSlotModel.d.ts","sourceRoot":"","sources":["../../src/models/CalendarSlotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAS,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;0FAK5B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { types } from "mobx-state-tree";
2
- export const CalendarSlotModel = types.model("CalendarSlot", {
3
- id: types.identifier,
4
- title: types.string,
5
- start: types.string,
6
- end: types.string,
7
- });
8
- //# sourceMappingURL=CalendarSlotModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CalendarSlotModel.js","sourceRoot":"","sources":["../../src/models/CalendarSlotModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,MAAM,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC,cAAc,EAAE;IAC3D,EAAE,EAAE,KAAK,CAAC,UAAU;IACpB,KAAK,EAAE,KAAK,CAAC,MAAM;IACnB,KAAK,EAAE,KAAK,CAAC,MAAM;IACnB,GAAG,EAAE,KAAK,CAAC,MAAM;CAClB,CAAC,CAAC"}
@@ -1,11 +0,0 @@
1
- import { type Instance } from "mobx-state-tree";
2
- export declare const EventModel: import("mobx-state-tree").IModelType<{
3
- id: import("mobx-state-tree").ISimpleType<string>;
4
- title: import("mobx-state-tree").ISimpleType<string>;
5
- calendarId: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
6
- startsAt: import("mobx-state-tree").ISimpleType<string>;
7
- endsAt: import("mobx-state-tree").ISimpleType<string>;
8
- participantIds: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").IArrayType<import("mobx-state-tree").ISimpleType<string>>, [undefined]>;
9
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
10
- export type Event = Instance<typeof EventModel>;
11
- //# sourceMappingURL=EventModel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventModel.d.ts","sourceRoot":"","sources":["../../src/models/EventModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAS,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,UAAU;;;;;;;0FAOrB,CAAC;AAEH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,UAAU,CAAC,CAAC"}
@@ -1,10 +0,0 @@
1
- import { types } from "mobx-state-tree";
2
- export const EventModel = types.model("Event", {
3
- id: types.identifier,
4
- title: types.string,
5
- calendarId: types.optional(types.string, ""),
6
- startsAt: types.string,
7
- endsAt: types.string,
8
- participantIds: types.optional(types.array(types.string), []),
9
- });
10
- //# sourceMappingURL=EventModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventModel.js","sourceRoot":"","sources":["../../src/models/EventModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE;IAC7C,EAAE,EAAE,KAAK,CAAC,UAAU;IACpB,KAAK,EAAE,KAAK,CAAC,MAAM;IACnB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;IAC5C,QAAQ,EAAE,KAAK,CAAC,MAAM;IACtB,MAAM,EAAE,KAAK,CAAC,MAAM;IACpB,cAAc,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;CAC9D,CAAC,CAAC"}
@@ -1,9 +0,0 @@
1
- import { type Instance } from "mobx-state-tree";
2
- export declare const ParticipantModel: import("mobx-state-tree").IModelType<{
3
- id: import("mobx-state-tree").ISimpleType<string>;
4
- name: import("mobx-state-tree").ISimpleType<string>;
5
- email: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
6
- role: import("mobx-state-tree").IOptionalIType<import("mobx-state-tree").ISimpleType<string>, [undefined]>;
7
- }, {}, import("mobx-state-tree")._NotCustomized, import("mobx-state-tree")._NotCustomized>;
8
- export type Participant = Instance<typeof ParticipantModel>;
9
- //# sourceMappingURL=ParticipantModel.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticipantModel.d.ts","sourceRoot":"","sources":["../../src/models/ParticipantModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,QAAQ,EAAS,MAAM,iBAAiB,CAAC;AAEvD,eAAO,MAAM,gBAAgB;;;;;0FAK3B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -1,8 +0,0 @@
1
- import { types } from "mobx-state-tree";
2
- export const ParticipantModel = types.model("Participant", {
3
- id: types.identifier,
4
- name: types.string,
5
- email: types.optional(types.string, ""),
6
- role: types.optional(types.string, "Participant"),
7
- });
8
- //# sourceMappingURL=ParticipantModel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ParticipantModel.js","sourceRoot":"","sources":["../../src/models/ParticipantModel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,EAAE,MAAM,iBAAiB,CAAC;AAEvD,MAAM,CAAC,MAAM,gBAAgB,GAAG,KAAK,CAAC,KAAK,CAAC,aAAa,EAAE;IACzD,EAAE,EAAE,KAAK,CAAC,UAAU;IACpB,IAAI,EAAE,KAAK,CAAC,MAAM;IAClB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,CAAC;IACvC,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,aAAa,CAAC;CAClD,CAAC,CAAC"}
@@ -1,5 +0,0 @@
1
- export { CalendarRootModel, createCalendarRoot, type CalendarRoot, type CalendarRootSnapshotIn, } from "./CalendarRootModel.js";
2
- export { CalendarSlotModel, type CalendarSlot, } from "./CalendarSlotModel.js";
3
- export { EventModel, type Event } from "./EventModel.js";
4
- export { ParticipantModel, type Participant, } from "./ParticipantModel.js";
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,KAAK,YAAY,EACjB,KAAK,sBAAsB,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,EACjB,KAAK,YAAY,GAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAE,KAAK,KAAK,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,gBAAgB,EAChB,KAAK,WAAW,GACjB,MAAM,uBAAuB,CAAC"}
@@ -1,5 +0,0 @@
1
- export { CalendarRootModel, createCalendarRoot, } from "./CalendarRootModel.js";
2
- export { CalendarSlotModel, } from "./CalendarSlotModel.js";
3
- export { EventModel } from "./EventModel.js";
4
- export { ParticipantModel, } from "./ParticipantModel.js";
5
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,kBAAkB,GAGnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,iBAAiB,GAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,UAAU,EAAc,MAAM,iBAAiB,CAAC;AACzD,OAAO,EACL,gBAAgB,GAEjB,MAAM,uBAAuB,CAAC"}
@@ -1,28 +0,0 @@
1
- /**
2
- * ApexFlows `AppointmentBO`-aligned input for Blazeo event APIs
3
- * (same intent as `AppointmentAPIAdapter` Create / Reschedule / Cancel).
4
- */
5
- export type ApexAppointmentInput = {
6
- /** Blazeo `calendarId` — `ThirdPartyCalendarId` in Apex. */
7
- thirdPartyCalendarId: string;
8
- /** Participant GUID string (with or without braces). */
9
- participantId: string;
10
- title?: string;
11
- /** Create: `AppointmentBO.Description`. */
12
- description?: string;
13
- /** Reschedule / update: Apex often uses `Notes` for body (see adapter). */
14
- notes?: string;
15
- startDate: string | Date;
16
- endDate: string | Date;
17
- visitorEmail?: string;
18
- visitorPhone?: string;
19
- visitorName?: string;
20
- email?: string;
21
- phone?: string;
22
- rescheduleUrl?: string;
23
- cancelUrl?: string;
24
- timeZone?: string;
25
- /** Existing Blazeo event id — required for reschedule; omit or `"new"` for create. */
26
- thirdPartyAppointmentId?: string;
27
- };
28
- //# sourceMappingURL=appointment.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appointment.d.ts","sourceRoot":"","sources":["../../src/types/appointment.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,oBAAoB,GAAG;IACjC,4DAA4D;IAC5D,oBAAoB,EAAE,MAAM,CAAC;IAC7B,wDAAwD;IACxD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,sFAAsF;IACtF,uBAAuB,CAAC,EAAE,MAAM,CAAC;CAClC,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * ApexFlows `AppointmentBO`-aligned input for Blazeo event APIs
3
- * (same intent as `AppointmentAPIAdapter` Create / Reschedule / Cancel).
4
- */
5
- export {};
6
- //# sourceMappingURL=appointment.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"appointment.js","sourceRoot":"","sources":["../../src/types/appointment.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Plain shapes aligned with CalendarBO / MemberBO / OpeningHourBO for mapping
3
- * into `@blazeo.com/calendar-client` `CalendarModel.create` (see `mapCalendarBoToBlazeoSnapshot.ts`).
4
- */
5
- export type CalendarInput = {
6
- /** Blazeo / API calendar identifier; falls back to `thirdPartyCalendarId` or `"new"`. */
7
- calendarId?: string;
8
- companyKey?: string | null;
9
- name?: string | null;
10
- timeZoneId?: string | null;
11
- description?: string | null;
12
- /** Apex `AssignmentType` — mapped to Blazeo `assignmentMethod`. */
13
- assignmentType?: number;
14
- assignmentMethod?: number;
15
- duration?: number;
16
- bookingLimit?: number | null;
17
- durationUnit?: number;
18
- minimumBookingNotice?: number;
19
- minimumBookingNoticeUnit?: number;
20
- minimumCancelationNotice?: number;
21
- minimumCancelationNoticeUnit?: number;
22
- futureLimit?: number;
23
- futureLimitUnit?: number;
24
- bufferTime?: number | null;
25
- bufferTimeUnit?: number;
26
- /**
27
- * Apex: used to populate Blazeo `purpose` (fallback).
28
- * If omitted, we fallback to `bookingPageTitle` or "".
29
- */
30
- purpose?: string;
31
- bookingPageTitle?: string | null;
32
- createdOn?: string | null;
33
- modifiedOn?: string | null;
34
- /** Not part of Blazeo Calendar MST — reserved for future participant/hours steps. */
35
- members?: MemberBOInput[];
36
- openingHours?: OpeningHourBOInput[];
37
- };
38
- export type MemberBOInput = {
39
- id: string | null;
40
- };
41
- export type OpeningHourBOInput = {
42
- id: number;
43
- openingHourId?: string;
44
- participantId?: string;
45
- days: number[];
46
- startHour: number;
47
- startMinute: number;
48
- endHour: number;
49
- endMinute: number;
50
- off: boolean;
51
- };
52
- //# sourceMappingURL=calendar.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/types/calendar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,aAAa,GAAG;IAC1B,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qFAAqF;IACrF,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;CACd,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Plain shapes aligned with CalendarBO / MemberBO / OpeningHourBO for mapping
3
- * into `@blazeo.com/calendar-client` `CalendarModel.create` (see `mapCalendarBoToBlazeoSnapshot.ts`).
4
- */
5
- export {};
6
- //# sourceMappingURL=calendar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/types/calendar.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
@@ -1,62 +0,0 @@
1
- /**
2
- * Plain shapes aligned with CalendarBO / MemberBO / OpeningHourBO for mapping
3
- * into `@blazeo.com/calendar-client` `CalendarModel.create` (see `mapCalendarBoToBlazeoSnapshot.ts`).
4
- */
5
- export type CalendarBOInput = {
6
- /** Blazeo / API calendar identifier; falls back to `thirdPartyCalendarId` or `"new"`. */
7
- calendarId?: string;
8
- thirdPartyCalendarId?: string;
9
- /** Apex / DB numeric id when known */
10
- serverId?: number;
11
- companyKey?: string | null;
12
- purpose?: string;
13
- name?: string | null;
14
- timeZoneId?: string | null;
15
- description?: string | null;
16
- /** Apex `AssignmentType` — mapped to Blazeo `assignmentMethod`. */
17
- assignmentType?: number;
18
- assignmentMethod?: number;
19
- duration?: number;
20
- bookingLimit?: number | null;
21
- calendarJson?: string | null;
22
- isThirdPartySaved?: boolean;
23
- durationUnit?: number;
24
- minimumBookingNotice?: number;
25
- minimumBookingNoticeUnit?: number;
26
- minimumCancelationNotice?: number;
27
- minimumCancelationNoticeUnit?: number;
28
- futureLimit?: number;
29
- futureLimitUnit?: number;
30
- bufferTime?: number | null;
31
- bufferTimeUnit?: number;
32
- calendarLink?: string | null;
33
- status?: number;
34
- location?: string | null;
35
- bookingPageTitle?: string | null;
36
- themeId?: number | null;
37
- createdOn?: string | null;
38
- modifiedOn?: string | null;
39
- /** Not part of Blazeo Calendar MST — reserved for future participant/hours steps. */
40
- members?: MemberBOInput[];
41
- openingHours?: OpeningHourBOInput[];
42
- };
43
- export type MemberBOInput = {
44
- id: number;
45
- name?: string | null;
46
- email?: string;
47
- thirdPartyMemberId?: string | null;
48
- };
49
- export type OpeningHourBOInput = {
50
- id: number;
51
- openingHourId?: string;
52
- calendarId?: string;
53
- participantId?: string;
54
- days: number[];
55
- startHour: number;
56
- startMinute: number;
57
- endHour: number;
58
- endMinute: number;
59
- off: boolean;
60
- member: number;
61
- };
62
- //# sourceMappingURL=calendarBo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendarBo.d.ts","sourceRoot":"","sources":["../../src/types/calendarBo.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,eAAe,GAAG;IAC5B,yFAAyF;IACzF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,sCAAsC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,mEAAmE;IACnE,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,qFAAqF;IACrF,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,YAAY,CAAC,EAAE,kBAAkB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1,6 +0,0 @@
1
- /**
2
- * Plain shapes aligned with CalendarBO / MemberBO / OpeningHourBO for mapping
3
- * into `@blazeo.com/calendar-client` `CalendarModel.create` (see `mapCalendarBoToBlazeoSnapshot.ts`).
4
- */
5
- export {};
6
- //# sourceMappingURL=calendarBo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"calendarBo.js","sourceRoot":"","sources":["../../src/types/calendarBo.ts"],"names":[],"mappings":"AAAA;;;GAGG"}