@wix/auto_sdk_calendar_schedules 1.0.44 → 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 -403
  2. package/build/{cjs/src/calendar-v3-schedule-schedules.universal.d.ts → calendar-v3-schedule-schedules.universal-Cy_4Hg5X.d.ts} +129 -403
  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 -403
  10. package/build/{es/src/calendar-v3-schedule-schedules.universal.d.ts → internal/calendar-v3-schedule-schedules.universal-Cy_4Hg5X.d.ts} +129 -403
  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 -575
  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 -544
  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 -575
  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 -544
  134. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js.map +0 -1
@@ -0,0 +1,497 @@
1
+ import { u as GetScheduleRequest$1, v as GetScheduleResponse$1, w as QuerySchedulesRequest$1, A as QuerySchedulesResponse$1, H as CreateScheduleRequest$1, J as CreateScheduleResponse$1, K as UpdateScheduleRequest$1, O as UpdateScheduleResponse$1, _ as CancelScheduleRequest$1, d as CancelScheduleResponse$1 } from './calendar-v3-schedule-schedules.universal-Cy_4Hg5X.mjs';
2
+
3
+ /**
4
+ * A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
5
+ * associated with a specific entity, such as a
6
+ * [Bookings service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object),
7
+ * or [Bookings resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
8
+ * Schedules can also serve as templates for the events they manage, setting
9
+ * default values like a default location.
10
+ */
11
+ interface Schedule {
12
+ /**
13
+ * Schedule ID.
14
+ * @format GUID
15
+ * @readonly
16
+ */
17
+ id?: string | null;
18
+ /**
19
+ * External ID. You can't update the external ID.
20
+ *
21
+ * If the schedule belongs to a Bookings staff member, identical to the ID of
22
+ * the [resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
23
+ * If the schedule belongs to a Bookings service, identical to the ID of
24
+ * the [service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object).
25
+ * @format GUID
26
+ * @immutable
27
+ */
28
+ externalId?: string | null;
29
+ /**
30
+ * Schedule name.
31
+ *
32
+ * Min: 1 character
33
+ * Max: 200 characters
34
+ * @minLength 1
35
+ * @maxLength 200
36
+ */
37
+ name?: string | null;
38
+ /**
39
+ * Schedule status.
40
+ *
41
+ * Supported values:
42
+ * - `ACTIVE`: You can add events to the schedule or update its fields.
43
+ * - `CANCELLED`: You can't add events to the schedule or update its fields.
44
+ *
45
+ * Default: `ACTIVE`
46
+ * @readonly
47
+ */
48
+ status?: StatusWithLiterals;
49
+ /**
50
+ * Time zone the schedule is associated with in
51
+ * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
52
+ * For example, `America/New_York`.
53
+ *
54
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
55
+ *
56
+ * Min: 1 character
57
+ * Max: 150 characters
58
+ * @minLength 1
59
+ * @maxLength 150
60
+ */
61
+ timeZone?: string | null;
62
+ /**
63
+ * Whether the schedule's `timeZone` is automatically synced from
64
+ * `timeZone` of the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
65
+ *
66
+ * Default: `true`
67
+ */
68
+ businessTimeZoneEnabled?: boolean | null;
69
+ /**
70
+ * Default `title` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
71
+ * that are added to the schedule.
72
+ *
73
+ * Min: 1 character
74
+ * Max: 200 characters
75
+ * @minLength 1
76
+ * @maxLength 200
77
+ */
78
+ defaultTitle?: string | null;
79
+ /**
80
+ * Default `location` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
81
+ * that are added to the schedule.
82
+ */
83
+ defaultLocation?: Location;
84
+ /**
85
+ * Default `totalCapacity` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
86
+ * that are added to the schedule.
87
+ *
88
+ * Min: `0`
89
+ */
90
+ defaultCapacity?: number | null;
91
+ /**
92
+ * Default `conferencingDetails` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
93
+ * that are added to the schedule.
94
+ * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#retrieve-personal-information).
95
+ */
96
+ defaultConferencingDetails?: ConferencingDetails;
97
+ /**
98
+ * ID of the app that's associated with the schedule. You can't update `appId`.
99
+ * If you want to create a schedule and ensure its associated events appear
100
+ * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
101
+ * you must provide the [Wix Bookings app ID](https://dev.wix.com/docs/rest/articles/getting-started/wix-business-solutions)
102
+ * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
103
+ * @format GUID
104
+ * @immutable
105
+ */
106
+ appId?: string | null;
107
+ /**
108
+ * List of permissions associated with the schedule. Refer to the
109
+ * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions#roles)
110
+ * for more information.
111
+ *
112
+ * Max: 1 permission
113
+ * @maxSize 1
114
+ */
115
+ permissions?: Permission[];
116
+ /** Extensions enabling applications or users to save custom data related to the schedule. */
117
+ extendedFields?: ExtendedFields;
118
+ /**
119
+ * Revision number, which increments by 1 each time the schedule is updated.
120
+ * To prevent conflicting changes, the current revision must be passed when updating the schedule.
121
+ * Ignored when creating a schedule.
122
+ * @readonly
123
+ */
124
+ revision?: string | null;
125
+ /**
126
+ * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
127
+ * @readonly
128
+ */
129
+ createdDate?: Date | null;
130
+ /**
131
+ * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
132
+ * @readonly
133
+ */
134
+ updatedDate?: Date | null;
135
+ }
136
+ declare enum Status {
137
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
138
+ /** You can add events to the schedule or update its fields. */
139
+ ACTIVE = "ACTIVE",
140
+ /** You can't add events to the schedule or update its fields. */
141
+ CANCELLED = "CANCELLED"
142
+ }
143
+ /** @enumType */
144
+ type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'ACTIVE' | 'CANCELLED';
145
+ interface Location {
146
+ /**
147
+ * [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
148
+ * ID. Available only for `BUSINESS` locations.
149
+ * @format GUID
150
+ */
151
+ id?: string | null;
152
+ /**
153
+ * Location type.
154
+ *
155
+ * Supported values:
156
+ * + `BUSINESS`: The event is held at a business location.
157
+ * + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
158
+ * + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
159
+ */
160
+ type?: LocationTypeWithLiterals;
161
+ /**
162
+ * Location name. For `BUSINESS` locations, it's identical to the
163
+ * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
164
+ * `name`.
165
+ *
166
+ * Min: 1 character
167
+ * Max: 150 characters
168
+ * @minLength 1
169
+ * @maxLength 150
170
+ */
171
+ name?: string | null;
172
+ /**
173
+ * Location address. For `BUSINESS` locations, it's identical to the
174
+ * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
175
+ * `formattedAddress`.
176
+ * @minLength 1
177
+ * @maxLength 300
178
+ */
179
+ address?: string | null;
180
+ }
181
+ declare enum LocationType {
182
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
183
+ /** The event is held at a business location. */
184
+ BUSINESS = "BUSINESS",
185
+ /** The event is held at the customer's location, such as their home or office. */
186
+ CUSTOMER = "CUSTOMER",
187
+ /** The event is held at an address or venue not tied to the business or customer. */
188
+ CUSTOM = "CUSTOM"
189
+ }
190
+ /** @enumType */
191
+ type LocationTypeWithLiterals = LocationType | 'UNKNOWN_TYPE' | 'BUSINESS' | 'CUSTOMER' | 'CUSTOM';
192
+ interface ConferencingDetails {
193
+ /** Conference type. For example, `Zoom`. */
194
+ type?: TypeWithLiterals;
195
+ /**
196
+ * URL used by the host to start the conference.
197
+ *
198
+ * Min: 1 character
199
+ * Max: 2000 characters
200
+ * @minLength 1
201
+ * @maxLength 2000
202
+ */
203
+ hostUrl?: string | null;
204
+ /**
205
+ * URL used by a guest to join the conference.
206
+ *
207
+ * Min: 1 character
208
+ * Max: 2000 characters
209
+ * @minLength 1
210
+ * @maxLength 2000
211
+ */
212
+ guestUrl?: string | null;
213
+ /**
214
+ * Conference password.
215
+ *
216
+ * Min: 1 character
217
+ * Max: 100 characters
218
+ * @minLength 1
219
+ * @maxLength 100
220
+ */
221
+ password?: string | null;
222
+ /**
223
+ * Conference ID in an external system.
224
+ *
225
+ * Min: 1 character
226
+ * Max: 150 characters
227
+ * @minLength 1
228
+ * @maxLength 150
229
+ */
230
+ externalId?: string | null;
231
+ }
232
+ declare enum Type {
233
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
234
+ ZOOM = "ZOOM",
235
+ CUSTOM = "CUSTOM"
236
+ }
237
+ /** @enumType */
238
+ type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';
239
+ interface Permission {
240
+ /**
241
+ * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
242
+ * granted the permission.
243
+ */
244
+ identity?: CommonIdentificationData;
245
+ /**
246
+ * Permission role.
247
+ *
248
+ * Supported values:
249
+ * + `WRITER`: Full read and write access.
250
+ * + `COMMENTER`: Full read access, write access limited to `event.notes`.
251
+ */
252
+ role?: RoleWithLiterals;
253
+ }
254
+ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
255
+ /**
256
+ * ID of a Wix user. For example, the site owner or a
257
+ * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
258
+ * @format GUID
259
+ */
260
+ wixUserId?: string;
261
+ }
262
+ /** @oneof */
263
+ interface CommonIdentificationDataIdOneOf {
264
+ /**
265
+ * ID of a Wix user. For example, the site owner or a
266
+ * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
267
+ * @format GUID
268
+ */
269
+ wixUserId?: string;
270
+ }
271
+ declare enum Role {
272
+ UNKNOWN_ROLE = "UNKNOWN_ROLE",
273
+ /** Full read and write access. */
274
+ WRITER = "WRITER",
275
+ /** Full read access, write access limited to `event.notes`. */
276
+ COMMENTER = "COMMENTER"
277
+ }
278
+ /** @enumType */
279
+ type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'WRITER' | 'COMMENTER';
280
+ interface ExtendedFields {
281
+ /**
282
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
283
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
284
+ *
285
+ * You can only access fields for which you have the appropriate permissions.
286
+ *
287
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
288
+ */
289
+ namespaces?: Record<string, Record<string, any>>;
290
+ }
291
+ interface GetScheduleRequest {
292
+ /**
293
+ * ID of the schedule to retrieve.
294
+ * @format GUID
295
+ */
296
+ scheduleId: string | null;
297
+ /**
298
+ * Information about which fields containing personal data to return. Refer to the
299
+ * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
300
+ * for more information.
301
+ *
302
+ * Supported values:
303
+ * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
304
+ * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
305
+ *
306
+ * Max: 1 field
307
+ * Default: No personal data is returned.
308
+ * @maxSize 1
309
+ */
310
+ fields?: RequestedFieldsWithLiterals[];
311
+ }
312
+ declare enum RequestedFields {
313
+ UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
314
+ /** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */
315
+ PI_FIELDS = "PI_FIELDS",
316
+ /** Returns only fields containing your own personal data. */
317
+ OWN_PI_FIELDS = "OWN_PI_FIELDS"
318
+ }
319
+ /** @enumType */
320
+ type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELDS' | 'PI_FIELDS' | 'OWN_PI_FIELDS';
321
+ interface GetScheduleResponse {
322
+ /** Retrieved schedule. */
323
+ schedule?: Schedule;
324
+ }
325
+ interface QuerySchedulesRequest {
326
+ /** Query containing filters and paging. */
327
+ query?: CursorQuery;
328
+ /**
329
+ * Information about which fields containing personal data to return. Refer to the
330
+ * [permissions article](https://dev.wix.com/docs/rest/business-management/calendar/permissions)
331
+ * for more information.
332
+ *
333
+ * Supported values:
334
+ * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
335
+ * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
336
+ *
337
+ * Max: 1 field
338
+ * Default: No personal data is returned.
339
+ * @maxSize 1
340
+ */
341
+ fields?: RequestedFieldsWithLiterals[];
342
+ }
343
+ /** TODO Diverge */
344
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
345
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
346
+ cursorPaging?: CursorPaging;
347
+ /**
348
+ * Filter object.
349
+ * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
350
+ * for more information.
351
+ *
352
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
353
+ *
354
+ * For a detailed list of supported filters, see Supported Filters.
355
+ */
356
+ filter?: Record<string, any> | null;
357
+ }
358
+ /** @oneof */
359
+ interface CursorQueryPagingMethodOneOf {
360
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
361
+ cursorPaging?: CursorPaging;
362
+ }
363
+ /** TODO Diverge */
364
+ interface CursorPaging {
365
+ /**
366
+ * Number of schedules to return.
367
+ *
368
+ * Min: `1`
369
+ * Max: `100`
370
+ * Default: `50`
371
+ * @min 1
372
+ * @max 100
373
+ */
374
+ limit?: number | null;
375
+ /**
376
+ * Pointer to the next or previous page in the list of results.
377
+ *
378
+ * You can get the relevant cursor token
379
+ * from the `pagingMetadata` object in the previous call's response.
380
+ * Not relevant for the first request.
381
+ */
382
+ cursor?: string | null;
383
+ }
384
+ interface QuerySchedulesResponse {
385
+ /** Retrieved schedules matching the provided query. */
386
+ schedules?: Schedule[];
387
+ /** Paging metadata. */
388
+ pagingMetadata?: CursorPagingMetadata;
389
+ }
390
+ /** TODO Diverge */
391
+ interface CursorPagingMetadata {
392
+ /** Number of schedules returned in the current page of the response. */
393
+ count?: number | null;
394
+ /** Use these cursor to paginate between results. [Read more](https://dev.wix.com/api/rest/getting-started/api-query-language#getting-started_api-query-language_cursor-paging). */
395
+ cursors?: Cursors;
396
+ /**
397
+ * Indicates if there are more results after the current page.
398
+ * If `true`, another page of results can be retrieved.
399
+ * If `false`, this is the last page.
400
+ */
401
+ hasNext?: boolean | null;
402
+ }
403
+ interface Cursors {
404
+ /** Cursor pointing to next page in the list of results. */
405
+ next?: string | null;
406
+ /** Cursor pointing to previous page in the list of results. */
407
+ prev?: string | null;
408
+ }
409
+ interface CreateScheduleRequest {
410
+ /** Schedule to create. */
411
+ schedule: Schedule;
412
+ /**
413
+ * Idempotency key guaranteeing that you don't create the same schedule more
414
+ * than once.
415
+ * @format GUID
416
+ */
417
+ idempotencyKey?: string | null;
418
+ }
419
+ interface CreateScheduleResponse {
420
+ /** Created schedule. */
421
+ schedule?: Schedule;
422
+ }
423
+ interface UpdateScheduleRequest {
424
+ /** Schedule to update. */
425
+ schedule: Schedule;
426
+ /**
427
+ * Information about whether participants of the schedule's updated events are
428
+ * notified and the message they receive.
429
+ */
430
+ participantNotification?: ParticipantNotification;
431
+ }
432
+ interface ParticipantNotification {
433
+ /**
434
+ * Whether to notify the participants about changes made to the schedule or event.
435
+ *
436
+ * Default: `false`
437
+ */
438
+ notifyParticipants?: boolean | null;
439
+ /**
440
+ * Message to send.
441
+ *
442
+ * Min: 1 character
443
+ * Max: 5000 characters
444
+ * @minLength 1
445
+ * @maxLength 5000
446
+ */
447
+ message?: string | null;
448
+ }
449
+ interface UpdateScheduleResponse {
450
+ /** Updated schedule. */
451
+ schedule?: Schedule;
452
+ }
453
+ interface CancelScheduleRequest {
454
+ /**
455
+ * ID of the schedule to cancel.
456
+ * @format GUID
457
+ */
458
+ scheduleId: string | null;
459
+ /**
460
+ * Whether to preserve future events with participants.
461
+ * Default: `false`.
462
+ */
463
+ preserveFutureEventsWithParticipants?: boolean | null;
464
+ /**
465
+ * Information about whether participants of the schedule's updated events are
466
+ * notified and the message they receive.
467
+ */
468
+ participantNotification?: ParticipantNotification;
469
+ }
470
+ interface CancelScheduleResponse {
471
+ /** Canceled schedule. */
472
+ schedule?: Schedule;
473
+ }
474
+
475
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
476
+ getUrl: (context: any) => string;
477
+ httpMethod: K;
478
+ path: string;
479
+ pathParams: M;
480
+ __requestType: T;
481
+ __originalRequestType: S;
482
+ __responseType: Q;
483
+ __originalResponseType: R;
484
+ };
485
+ declare function getSchedule(): __PublicMethodMetaInfo<'GET', {
486
+ scheduleId: string;
487
+ }, GetScheduleRequest$1, GetScheduleRequest, GetScheduleResponse$1, GetScheduleResponse>;
488
+ declare function querySchedules(): __PublicMethodMetaInfo<'POST', {}, QuerySchedulesRequest$1, QuerySchedulesRequest, QuerySchedulesResponse$1, QuerySchedulesResponse>;
489
+ declare function createSchedule(): __PublicMethodMetaInfo<'POST', {}, CreateScheduleRequest$1, CreateScheduleRequest, CreateScheduleResponse$1, CreateScheduleResponse>;
490
+ declare function updateSchedule(): __PublicMethodMetaInfo<'PATCH', {
491
+ scheduleId: string;
492
+ }, UpdateScheduleRequest$1, UpdateScheduleRequest, UpdateScheduleResponse$1, UpdateScheduleResponse>;
493
+ declare function cancelSchedule(): __PublicMethodMetaInfo<'POST', {
494
+ scheduleId: string;
495
+ }, CancelScheduleRequest$1, CancelScheduleRequest, CancelScheduleResponse$1, CancelScheduleResponse>;
496
+
497
+ export { type __PublicMethodMetaInfo, cancelSchedule, createSchedule, getSchedule, querySchedules, updateSchedule };