@wix/auto_sdk_calendar_schedules 1.0.45 → 1.0.46

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 (134) hide show
  1. package/build/{internal/cjs/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-Cy_4Hg5X.d.mts} +129 -415
  2. package/build/{cjs/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-Cy_4Hg5X.d.ts} +129 -415
  3. package/build/index.d.mts +108 -0
  4. package/build/index.d.ts +108 -0
  5. package/build/index.js +703 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +656 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-Cy_4Hg5X.d.mts} +129 -415
  10. package/build/{es/src/calendar-v3-schedule-schedules.universal.d.ts → internal/calendar-v3-schedule-schedules.universal-Cy_4Hg5X.d.ts} +129 -415
  11. package/build/internal/index.d.mts +108 -0
  12. package/build/internal/index.d.ts +108 -0
  13. package/build/internal/index.js +703 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +656 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +497 -0
  18. package/build/internal/meta.d.ts +497 -0
  19. package/build/internal/meta.js +331 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +300 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +497 -0
  24. package/build/meta.d.ts +497 -0
  25. package/build/meta.js +331 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +300 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  40. package/build/cjs/src/calendar-v3-schedule-schedules.context.js +0 -48
  41. package/build/cjs/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  42. package/build/cjs/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  43. package/build/cjs/src/calendar-v3-schedule-schedules.http.js +0 -255
  44. package/build/cjs/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  45. package/build/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  46. package/build/cjs/src/calendar-v3-schedule-schedules.meta.js +0 -123
  47. package/build/cjs/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  48. package/build/cjs/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  49. package/build/cjs/src/calendar-v3-schedule-schedules.public.js +0 -96
  50. package/build/cjs/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  51. package/build/cjs/src/calendar-v3-schedule-schedules.types.d.ts +0 -1414
  52. package/build/cjs/src/calendar-v3-schedule-schedules.types.js +0 -208
  53. package/build/cjs/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  54. package/build/cjs/src/calendar-v3-schedule-schedules.universal.js +0 -579
  55. package/build/cjs/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  67. package/build/es/src/calendar-v3-schedule-schedules.context.js +0 -30
  68. package/build/es/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  69. package/build/es/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  70. package/build/es/src/calendar-v3-schedule-schedules.http.js +0 -247
  71. package/build/es/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  72. package/build/es/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  73. package/build/es/src/calendar-v3-schedule-schedules.meta.js +0 -92
  74. package/build/es/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  75. package/build/es/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  76. package/build/es/src/calendar-v3-schedule-schedules.public.js +0 -73
  77. package/build/es/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  78. package/build/es/src/calendar-v3-schedule-schedules.types.d.ts +0 -1414
  79. package/build/es/src/calendar-v3-schedule-schedules.types.js +0 -205
  80. package/build/es/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  81. package/build/es/src/calendar-v3-schedule-schedules.universal.js +0 -548
  82. package/build/es/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  93. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js +0 -48
  94. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  95. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  96. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js +0 -255
  97. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  98. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  99. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js +0 -123
  100. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  101. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  102. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js +0 -96
  103. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  104. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.d.ts +0 -1414
  105. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js +0 -208
  106. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  107. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js +0 -579
  108. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/calendar-v3-schedule-schedules.context.d.ts +0 -30
  119. package/build/internal/es/src/calendar-v3-schedule-schedules.context.js +0 -30
  120. package/build/internal/es/src/calendar-v3-schedule-schedules.context.js.map +0 -1
  121. package/build/internal/es/src/calendar-v3-schedule-schedules.http.d.ts +0 -53
  122. package/build/internal/es/src/calendar-v3-schedule-schedules.http.js +0 -247
  123. package/build/internal/es/src/calendar-v3-schedule-schedules.http.js.map +0 -1
  124. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.d.ts +0 -23
  125. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js +0 -92
  126. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js.map +0 -1
  127. package/build/internal/es/src/calendar-v3-schedule-schedules.public.d.ts +0 -86
  128. package/build/internal/es/src/calendar-v3-schedule-schedules.public.js +0 -73
  129. package/build/internal/es/src/calendar-v3-schedule-schedules.public.js.map +0 -1
  130. package/build/internal/es/src/calendar-v3-schedule-schedules.types.d.ts +0 -1414
  131. package/build/internal/es/src/calendar-v3-schedule-schedules.types.js +0 -205
  132. package/build/internal/es/src/calendar-v3-schedule-schedules.types.js.map +0 -1
  133. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js +0 -548
  134. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
@@ -0,0 +1,108 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { G as GetScheduleOptions, S as Schedule, Q as QuerySchedulesOptions, a as SchedulesQueryBuilder, C as CreateScheduleOptions, U as UpdateSchedule, b as UpdateScheduleOptions, c as CancelScheduleOptions, d as CancelScheduleResponse, e as ScheduleCancelledEnvelope, f as ScheduleClonedEnvelope, g as ScheduleCreatedEnvelope, h as ScheduleUpdatedEnvelope } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.mjs';
3
+ export { aQ as ActionEvent, av as Address, aw as AddressHint, a2 as Asset, aU as BaseEventMetadata, ay as BusinessSchedule, _ as CancelScheduleRequest, at as Categories, aF as ChangeContext, aG as ChangeContextPayloadOneOf, X as CloneScheduleRequest, Y as CloneScheduleResponse, s as CommonIdentificationData, t as CommonIdentificationDataIdOneOf, q as ConferencingDetails, aD as ConsentPolicy, H as CreateScheduleRequest, J as CreateScheduleResponse, z as CursorPaging, B as CursorPagingMetadata, x as CursorQuery, y as CursorQueryPagingMethodOneOf, F as Cursors, n as DayOfWeek, a6 as DeleteContext, D as DeleteStatus, aK as DomainEvent, aL as DomainEventBodyOneOf, ap as Empty, aM as EntityCreatedEvent, aP as EntityDeletedEvent, aO as EntityUpdatedEvent, aV as EventMetadata, E as ExtendedFields, ax as GeoCoordinates, u as GetScheduleRequest, v as GetScheduleResponse, aS as IdentificationData, aT as IdentificationDataIdOneOf, I as IdentityType, au as Locale, p as Location, L as LocationType, aR as MessageEnvelope, a0 as MetaSiteSpecialEvent, a1 as MetaSiteSpecialEventPayloadOneOf, aB as Multilingual, N as Namespace, ag as NamespaceChanged, al as OdeditorAssigned, am as OdeditorUnassigned, M as ParticipantNotification, r as Permission, an as PicassoAssigned, ao as PicassoUnassigned, P as PlacementType, as as Properties, aH as PropertiesChange, w as QuerySchedulesRequest, A as QuerySchedulesResponse, j as RequestedFields, o as ResolutionMethod, aN as RestoreInfo, R as Role, $ as ScheduleCancelled, Z as ScheduleCloned, V as ScheduleUpdatedWithMetadata, aW as SchedulesQueryResult, ac as ServiceProvisioned, ad as ServiceRemoved, aJ as SiteCloned, a3 as SiteCreated, m as SiteCreatedContext, a5 as SiteDeleted, af as SiteHardDeleted, aa as SiteMarkedAsTemplate, ab as SiteMarkedAsWixSite, ar as SitePropertiesEvent, aq as SitePropertiesNotification, a8 as SitePublished, ak as SitePurgedExternally, ae as SiteRenamed, a4 as SiteTransferred, a7 as SiteUndeleted, a9 as SiteUnpublished, aj as SiteUrlChanged, aA as SpecialHourPeriod, l as State, i as Status, ah as StudioAssigned, ai as StudioUnassigned, aC as SupportedLanguage, az as TimePeriod, aE as Translation, k as Trigger, T as Type, K as UpdateScheduleRequest, O as UpdateScheduleResponse, aI as V4SiteCreated, W as WebhookIdentityType } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.mjs';
4
+
5
+ declare function getSchedule$1(httpClient: HttpClient): GetScheduleSignature;
6
+ interface GetScheduleSignature {
7
+ /**
8
+ * Retrieves a schedule.
9
+ * @param - ID of the schedule to retrieve.
10
+ * @returns Retrieved schedule.
11
+ */
12
+ (scheduleId: string, options?: GetScheduleOptions | undefined): Promise<Schedule>;
13
+ }
14
+ declare function querySchedules$1(httpClient: HttpClient): QuerySchedulesSignature;
15
+ interface QuerySchedulesSignature {
16
+ /**
17
+ * Creates a query to retrieve a list of schedules.
18
+ *
19
+ * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.
20
+ *
21
+ * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.
22
+ *
23
+ * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.
24
+ *
25
+ * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:
26
+ *
27
+ * + `limit` is `50`.
28
+ * + Sorted by `id` in ascending order.
29
+ *
30
+ * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("externalId")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"externalId"`.
31
+ *
32
+ * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.
33
+ */
34
+ (options?: QuerySchedulesOptions | undefined): SchedulesQueryBuilder;
35
+ }
36
+ declare function createSchedule$1(httpClient: HttpClient): CreateScheduleSignature;
37
+ interface CreateScheduleSignature {
38
+ /**
39
+ * Creates a schedule.
40
+ *
41
+ *
42
+ * If you want the schedule's events to appear in the
43
+ * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
44
+ * you must set `appId` to the ID of the Wix Bookings app by providing
45
+ * `{"appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97"}`.
46
+ * @param - Schedule to create.
47
+ * @returns Created schedule.
48
+ */
49
+ (schedule: Schedule, options?: CreateScheduleOptions | undefined): Promise<Schedule>;
50
+ }
51
+ declare function updateSchedule$1(httpClient: HttpClient): UpdateScheduleSignature;
52
+ interface UpdateScheduleSignature {
53
+ /**
54
+ * Updates a schedule.
55
+ *
56
+ *
57
+ * Each time the schedule is updated,
58
+ * `revision` increments by 1.
59
+ * The current `revision` must be passed when updating the schedule.
60
+ * This ensures you're working with the latest schedule
61
+ * and prevents unintended overwrites.
62
+ * @param - Schedule ID.
63
+ * @returns Updated schedule.
64
+ */
65
+ (_id: string, schedule: UpdateSchedule, options?: UpdateScheduleOptions | undefined): Promise<Schedule>;
66
+ }
67
+ declare function cancelSchedule$1(httpClient: HttpClient): CancelScheduleSignature;
68
+ interface CancelScheduleSignature {
69
+ /**
70
+ * Sets a schedule's `status` to `CANCELLED`.
71
+ *
72
+ *
73
+ * Also cancels future events belonging to the schedule.
74
+ *
75
+ * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,
76
+ * or assign new events.
77
+ * @param - ID of the schedule to cancel.
78
+ */
79
+ (scheduleId: string, options?: CancelScheduleOptions | undefined): Promise<CancelScheduleResponse>;
80
+ }
81
+ declare const onScheduleCancelled$1: EventDefinition<ScheduleCancelledEnvelope, "wix.calendar.v3.schedule_cancelled">;
82
+ declare const onScheduleCloned$1: EventDefinition<ScheduleClonedEnvelope, "wix.calendar.v3.schedule_cloned">;
83
+ declare const onScheduleCreated$1: EventDefinition<ScheduleCreatedEnvelope, "wix.calendar.v3.schedule_created">;
84
+ declare const onScheduleUpdated$1: EventDefinition<ScheduleUpdatedEnvelope, "wix.calendar.v3.schedule_updated">;
85
+
86
+ declare const getSchedule: MaybeContext<BuildRESTFunction<typeof getSchedule$1> & typeof getSchedule$1>;
87
+ declare const querySchedules: MaybeContext<BuildRESTFunction<typeof querySchedules$1> & typeof querySchedules$1>;
88
+ declare const createSchedule: MaybeContext<BuildRESTFunction<typeof createSchedule$1> & typeof createSchedule$1>;
89
+ declare const updateSchedule: MaybeContext<BuildRESTFunction<typeof updateSchedule$1> & typeof updateSchedule$1>;
90
+ declare const cancelSchedule: MaybeContext<BuildRESTFunction<typeof cancelSchedule$1> & typeof cancelSchedule$1>;
91
+ /**
92
+ * Triggered when a schedule is canceled.
93
+ */
94
+ declare const onScheduleCancelled: BuildEventDefinition<typeof onScheduleCancelled$1>;
95
+ /**
96
+ * Triggered when a schedule is cloned.
97
+ */
98
+ declare const onScheduleCloned: BuildEventDefinition<typeof onScheduleCloned$1>;
99
+ /**
100
+ * Triggered when a schedule is created.
101
+ */
102
+ declare const onScheduleCreated: BuildEventDefinition<typeof onScheduleCreated$1>;
103
+ /**
104
+ * Triggered when a schedule is updated.
105
+ */
106
+ declare const onScheduleUpdated: BuildEventDefinition<typeof onScheduleUpdated$1>;
107
+
108
+ export { CancelScheduleOptions, CancelScheduleResponse, CreateScheduleOptions, GetScheduleOptions, QuerySchedulesOptions, Schedule, ScheduleCancelledEnvelope, ScheduleClonedEnvelope, ScheduleCreatedEnvelope, ScheduleUpdatedEnvelope, SchedulesQueryBuilder, UpdateSchedule, UpdateScheduleOptions, cancelSchedule, createSchedule, getSchedule, onScheduleCancelled, onScheduleCloned, onScheduleCreated, onScheduleUpdated, querySchedules, updateSchedule };
@@ -0,0 +1,108 @@
1
+ import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
+ import { G as GetScheduleOptions, S as Schedule, Q as QuerySchedulesOptions, a as SchedulesQueryBuilder, C as CreateScheduleOptions, U as UpdateSchedule, b as UpdateScheduleOptions, c as CancelScheduleOptions, d as CancelScheduleResponse, e as ScheduleCancelledEnvelope, f as ScheduleClonedEnvelope, g as ScheduleCreatedEnvelope, h as ScheduleUpdatedEnvelope } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.js';
3
+ export { aQ as ActionEvent, av as Address, aw as AddressHint, a2 as Asset, aU as BaseEventMetadata, ay as BusinessSchedule, _ as CancelScheduleRequest, at as Categories, aF as ChangeContext, aG as ChangeContextPayloadOneOf, X as CloneScheduleRequest, Y as CloneScheduleResponse, s as CommonIdentificationData, t as CommonIdentificationDataIdOneOf, q as ConferencingDetails, aD as ConsentPolicy, H as CreateScheduleRequest, J as CreateScheduleResponse, z as CursorPaging, B as CursorPagingMetadata, x as CursorQuery, y as CursorQueryPagingMethodOneOf, F as Cursors, n as DayOfWeek, a6 as DeleteContext, D as DeleteStatus, aK as DomainEvent, aL as DomainEventBodyOneOf, ap as Empty, aM as EntityCreatedEvent, aP as EntityDeletedEvent, aO as EntityUpdatedEvent, aV as EventMetadata, E as ExtendedFields, ax as GeoCoordinates, u as GetScheduleRequest, v as GetScheduleResponse, aS as IdentificationData, aT as IdentificationDataIdOneOf, I as IdentityType, au as Locale, p as Location, L as LocationType, aR as MessageEnvelope, a0 as MetaSiteSpecialEvent, a1 as MetaSiteSpecialEventPayloadOneOf, aB as Multilingual, N as Namespace, ag as NamespaceChanged, al as OdeditorAssigned, am as OdeditorUnassigned, M as ParticipantNotification, r as Permission, an as PicassoAssigned, ao as PicassoUnassigned, P as PlacementType, as as Properties, aH as PropertiesChange, w as QuerySchedulesRequest, A as QuerySchedulesResponse, j as RequestedFields, o as ResolutionMethod, aN as RestoreInfo, R as Role, $ as ScheduleCancelled, Z as ScheduleCloned, V as ScheduleUpdatedWithMetadata, aW as SchedulesQueryResult, ac as ServiceProvisioned, ad as ServiceRemoved, aJ as SiteCloned, a3 as SiteCreated, m as SiteCreatedContext, a5 as SiteDeleted, af as SiteHardDeleted, aa as SiteMarkedAsTemplate, ab as SiteMarkedAsWixSite, ar as SitePropertiesEvent, aq as SitePropertiesNotification, a8 as SitePublished, ak as SitePurgedExternally, ae as SiteRenamed, a4 as SiteTransferred, a7 as SiteUndeleted, a9 as SiteUnpublished, aj as SiteUrlChanged, aA as SpecialHourPeriod, l as State, i as Status, ah as StudioAssigned, ai as StudioUnassigned, aC as SupportedLanguage, az as TimePeriod, aE as Translation, k as Trigger, T as Type, K as UpdateScheduleRequest, O as UpdateScheduleResponse, aI as V4SiteCreated, W as WebhookIdentityType } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.js';
4
+
5
+ declare function getSchedule$1(httpClient: HttpClient): GetScheduleSignature;
6
+ interface GetScheduleSignature {
7
+ /**
8
+ * Retrieves a schedule.
9
+ * @param - ID of the schedule to retrieve.
10
+ * @returns Retrieved schedule.
11
+ */
12
+ (scheduleId: string, options?: GetScheduleOptions | undefined): Promise<Schedule>;
13
+ }
14
+ declare function querySchedules$1(httpClient: HttpClient): QuerySchedulesSignature;
15
+ interface QuerySchedulesSignature {
16
+ /**
17
+ * Creates a query to retrieve a list of schedules.
18
+ *
19
+ * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.
20
+ *
21
+ * The returned object contains the query definition, which is typically used to run the query using the [find()](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-builder/find) function.
22
+ *
23
+ * You can refine the query by chaining `SchedulesQueryBuilder` functions onto the query. `SchedulesQueryBuilder` functions enable you to sort, filter, and control the results that `querySchedules()` returns.
24
+ *
25
+ * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:
26
+ *
27
+ * + `limit` is `50`.
28
+ * + Sorted by `id` in ascending order.
29
+ *
30
+ * The functions that are chained to `querySchedules()` are applied in the order they are called. For example, if you apply `ascending("status")` and then `ascending("externalId")`, the results are sorted first by the `"status"`, and then, if there are multiple results with the same `"status"`, the items are sorted by `"externalId"`.
31
+ *
32
+ * The following `SchedulesQueryBuilder` functions are supported for the `querySchedules()` function. For a full description of the tip settings object, see the object returned for the [items](https://dev.wix.com/docs/sdk/backend-modules/calendar/schedules/schedules-query-result/items) property in `SchedulesQueryResult`.
33
+ */
34
+ (options?: QuerySchedulesOptions | undefined): SchedulesQueryBuilder;
35
+ }
36
+ declare function createSchedule$1(httpClient: HttpClient): CreateScheduleSignature;
37
+ interface CreateScheduleSignature {
38
+ /**
39
+ * Creates a schedule.
40
+ *
41
+ *
42
+ * If you want the schedule's events to appear in the
43
+ * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
44
+ * you must set `appId` to the ID of the Wix Bookings app by providing
45
+ * `{"appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97"}`.
46
+ * @param - Schedule to create.
47
+ * @returns Created schedule.
48
+ */
49
+ (schedule: Schedule, options?: CreateScheduleOptions | undefined): Promise<Schedule>;
50
+ }
51
+ declare function updateSchedule$1(httpClient: HttpClient): UpdateScheduleSignature;
52
+ interface UpdateScheduleSignature {
53
+ /**
54
+ * Updates a schedule.
55
+ *
56
+ *
57
+ * Each time the schedule is updated,
58
+ * `revision` increments by 1.
59
+ * The current `revision` must be passed when updating the schedule.
60
+ * This ensures you're working with the latest schedule
61
+ * and prevents unintended overwrites.
62
+ * @param - Schedule ID.
63
+ * @returns Updated schedule.
64
+ */
65
+ (_id: string, schedule: UpdateSchedule, options?: UpdateScheduleOptions | undefined): Promise<Schedule>;
66
+ }
67
+ declare function cancelSchedule$1(httpClient: HttpClient): CancelScheduleSignature;
68
+ interface CancelScheduleSignature {
69
+ /**
70
+ * Sets a schedule's `status` to `CANCELLED`.
71
+ *
72
+ *
73
+ * Also cancels future events belonging to the schedule.
74
+ *
75
+ * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,
76
+ * or assign new events.
77
+ * @param - ID of the schedule to cancel.
78
+ */
79
+ (scheduleId: string, options?: CancelScheduleOptions | undefined): Promise<CancelScheduleResponse>;
80
+ }
81
+ declare const onScheduleCancelled$1: EventDefinition<ScheduleCancelledEnvelope, "wix.calendar.v3.schedule_cancelled">;
82
+ declare const onScheduleCloned$1: EventDefinition<ScheduleClonedEnvelope, "wix.calendar.v3.schedule_cloned">;
83
+ declare const onScheduleCreated$1: EventDefinition<ScheduleCreatedEnvelope, "wix.calendar.v3.schedule_created">;
84
+ declare const onScheduleUpdated$1: EventDefinition<ScheduleUpdatedEnvelope, "wix.calendar.v3.schedule_updated">;
85
+
86
+ declare const getSchedule: MaybeContext<BuildRESTFunction<typeof getSchedule$1> & typeof getSchedule$1>;
87
+ declare const querySchedules: MaybeContext<BuildRESTFunction<typeof querySchedules$1> & typeof querySchedules$1>;
88
+ declare const createSchedule: MaybeContext<BuildRESTFunction<typeof createSchedule$1> & typeof createSchedule$1>;
89
+ declare const updateSchedule: MaybeContext<BuildRESTFunction<typeof updateSchedule$1> & typeof updateSchedule$1>;
90
+ declare const cancelSchedule: MaybeContext<BuildRESTFunction<typeof cancelSchedule$1> & typeof cancelSchedule$1>;
91
+ /**
92
+ * Triggered when a schedule is canceled.
93
+ */
94
+ declare const onScheduleCancelled: BuildEventDefinition<typeof onScheduleCancelled$1>;
95
+ /**
96
+ * Triggered when a schedule is cloned.
97
+ */
98
+ declare const onScheduleCloned: BuildEventDefinition<typeof onScheduleCloned$1>;
99
+ /**
100
+ * Triggered when a schedule is created.
101
+ */
102
+ declare const onScheduleCreated: BuildEventDefinition<typeof onScheduleCreated$1>;
103
+ /**
104
+ * Triggered when a schedule is updated.
105
+ */
106
+ declare const onScheduleUpdated: BuildEventDefinition<typeof onScheduleUpdated$1>;
107
+
108
+ export { CancelScheduleOptions, CancelScheduleResponse, CreateScheduleOptions, GetScheduleOptions, QuerySchedulesOptions, Schedule, ScheduleCancelledEnvelope, ScheduleClonedEnvelope, ScheduleCreatedEnvelope, ScheduleUpdatedEnvelope, SchedulesQueryBuilder, UpdateSchedule, UpdateScheduleOptions, cancelSchedule, createSchedule, getSchedule, onScheduleCancelled, onScheduleCloned, onScheduleCreated, onScheduleUpdated, querySchedules, updateSchedule };