@wix/auto_sdk_calendar_schedules 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
  11. package/build/cjs/src/calendar-v3-schedule-schedules.context.js +48 -0
  12. package/build/cjs/src/calendar-v3-schedule-schedules.context.js.map +1 -0
  13. package/build/cjs/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
  14. package/build/cjs/src/calendar-v3-schedule-schedules.http.js +255 -0
  15. package/build/cjs/src/calendar-v3-schedule-schedules.http.js.map +1 -0
  16. package/build/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
  17. package/build/cjs/src/calendar-v3-schedule-schedules.meta.js +123 -0
  18. package/build/cjs/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
  19. package/build/cjs/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
  20. package/build/cjs/src/calendar-v3-schedule-schedules.public.js +96 -0
  21. package/build/cjs/src/calendar-v3-schedule-schedules.public.js.map +1 -0
  22. package/build/cjs/src/calendar-v3-schedule-schedules.types.d.ts +1185 -0
  23. package/build/cjs/src/calendar-v3-schedule-schedules.types.js +201 -0
  24. package/build/cjs/src/calendar-v3-schedule-schedules.types.js.map +1 -0
  25. package/build/cjs/src/calendar-v3-schedule-schedules.universal.d.ts +1716 -0
  26. package/build/cjs/src/calendar-v3-schedule-schedules.universal.js +571 -0
  27. package/build/cjs/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
  39. package/build/es/src/calendar-v3-schedule-schedules.context.js +30 -0
  40. package/build/es/src/calendar-v3-schedule-schedules.context.js.map +1 -0
  41. package/build/es/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
  42. package/build/es/src/calendar-v3-schedule-schedules.http.js +247 -0
  43. package/build/es/src/calendar-v3-schedule-schedules.http.js.map +1 -0
  44. package/build/es/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
  45. package/build/es/src/calendar-v3-schedule-schedules.meta.js +92 -0
  46. package/build/es/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
  47. package/build/es/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
  48. package/build/es/src/calendar-v3-schedule-schedules.public.js +73 -0
  49. package/build/es/src/calendar-v3-schedule-schedules.public.js.map +1 -0
  50. package/build/es/src/calendar-v3-schedule-schedules.types.d.ts +1185 -0
  51. package/build/es/src/calendar-v3-schedule-schedules.types.js +198 -0
  52. package/build/es/src/calendar-v3-schedule-schedules.types.js.map +1 -0
  53. package/build/es/src/calendar-v3-schedule-schedules.universal.d.ts +1716 -0
  54. package/build/es/src/calendar-v3-schedule-schedules.universal.js +540 -0
  55. package/build/es/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
  66. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js +48 -0
  67. package/build/internal/cjs/src/calendar-v3-schedule-schedules.context.js.map +1 -0
  68. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
  69. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js +255 -0
  70. package/build/internal/cjs/src/calendar-v3-schedule-schedules.http.js.map +1 -0
  71. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
  72. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js +123 -0
  73. package/build/internal/cjs/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
  74. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
  75. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js +96 -0
  76. package/build/internal/cjs/src/calendar-v3-schedule-schedules.public.js.map +1 -0
  77. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.d.ts +1185 -0
  78. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js +201 -0
  79. package/build/internal/cjs/src/calendar-v3-schedule-schedules.types.js.map +1 -0
  80. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.d.ts +1716 -0
  81. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js +571 -0
  82. package/build/internal/cjs/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/calendar-v3-schedule-schedules.context.d.ts +30 -0
  93. package/build/internal/es/src/calendar-v3-schedule-schedules.context.js +30 -0
  94. package/build/internal/es/src/calendar-v3-schedule-schedules.context.js.map +1 -0
  95. package/build/internal/es/src/calendar-v3-schedule-schedules.http.d.ts +53 -0
  96. package/build/internal/es/src/calendar-v3-schedule-schedules.http.js +247 -0
  97. package/build/internal/es/src/calendar-v3-schedule-schedules.http.js.map +1 -0
  98. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.d.ts +23 -0
  99. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js +92 -0
  100. package/build/internal/es/src/calendar-v3-schedule-schedules.meta.js.map +1 -0
  101. package/build/internal/es/src/calendar-v3-schedule-schedules.public.d.ts +86 -0
  102. package/build/internal/es/src/calendar-v3-schedule-schedules.public.js +73 -0
  103. package/build/internal/es/src/calendar-v3-schedule-schedules.public.js.map +1 -0
  104. package/build/internal/es/src/calendar-v3-schedule-schedules.types.d.ts +1185 -0
  105. package/build/internal/es/src/calendar-v3-schedule-schedules.types.js +198 -0
  106. package/build/internal/es/src/calendar-v3-schedule-schedules.types.js.map +1 -0
  107. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.d.ts +1716 -0
  108. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js +540 -0
  109. package/build/internal/es/src/calendar-v3-schedule-schedules.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1716 @@
1
+ /**
2
+ * A collection of [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
3
+ * associated with a specific entity, such as a
4
+ * [Bookings service](https://dev.wix.com/docs/rest/business-solutions/bookings/services/services-v2/service-object),
5
+ * or [Bookings resource](https://dev.wix.com/docs/rest/business-solutions/bookings/staff-members-and-resources/resource-v2/resource-object).
6
+ * Schedules can also serve as templates for the events they manage, setting
7
+ * default values like a default location.
8
+ */
9
+ export interface Schedule {
10
+ /**
11
+ * Schedule ID.
12
+ * @readonly
13
+ */
14
+ _id?: string | null;
15
+ /**
16
+ * External ID. You can't update the external ID.
17
+ *
18
+ * If the schedule belongs to a Bookings staff member, identical to the ID of
19
+ * the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).
20
+ * If the schedule belongs to a Bookings service, identical to the ID of
21
+ * the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).
22
+ */
23
+ externalId?: string | null;
24
+ /**
25
+ * Schedule name.
26
+ *
27
+ * Min: 1 character
28
+ * Max: 200 characters
29
+ */
30
+ name?: string | null;
31
+ /**
32
+ * Schedule status.
33
+ *
34
+ * Supported values:
35
+ * - `ACTIVE`: You can add events to the schedule or update its fields.
36
+ * - `CANCELLED`: You can't add events to the schedule or update its fields.
37
+ *
38
+ * Default: `ACTIVE`
39
+ * @readonly
40
+ */
41
+ status?: Status;
42
+ /**
43
+ * Time zone the schedule is associated with in
44
+ * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
45
+ * For example, `America/New_York`.
46
+ *
47
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).
48
+ *
49
+ * Min: 1 character
50
+ * Max: 150 characters
51
+ */
52
+ timeZone?: string | null;
53
+ /**
54
+ * Whether the schedule's `timeZone` is automatically synced from
55
+ * `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).
56
+ *
57
+ * Default: `true`
58
+ */
59
+ businessTimeZoneEnabled?: boolean | null;
60
+ /**
61
+ * Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
62
+ * that are added to the schedule.
63
+ *
64
+ * Min: 1 character
65
+ * Max: 200 characters
66
+ */
67
+ defaultTitle?: string | null;
68
+ /**
69
+ * Default `location` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
70
+ * that are added to the schedule.
71
+ */
72
+ defaultLocation?: Location;
73
+ /**
74
+ * Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
75
+ * that are added to the schedule.
76
+ *
77
+ * Min: `0`
78
+ */
79
+ defaultCapacity?: number | null;
80
+ /**
81
+ * Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
82
+ * that are added to the schedule.
83
+ * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).
84
+ */
85
+ defaultConferencingDetails?: ConferencingDetails;
86
+ /**
87
+ * ID of the app that's associated with the schedule. You can't update `appId`.
88
+ * If you want to create a schedule and ensure its associated events appear
89
+ * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
90
+ * you must provide the Wix Bookings app ID
91
+ * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
92
+ */
93
+ appId?: string | null;
94
+ /**
95
+ * List of permissions associated with the schedule. Refer to the
96
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)
97
+ * for more information.
98
+ *
99
+ * Max: 1 permission
100
+ */
101
+ permissions?: Permission[];
102
+ /** Extensions enabling applications or users to save custom data related to the schedule. */
103
+ extendedFields?: ExtendedFields;
104
+ /**
105
+ * Revision number, which increments by 1 each time the schedule is updated.
106
+ * To prevent conflicting changes, the current revision must be passed when updating the schedule.
107
+ * Ignored when creating a schedule.
108
+ * @readonly
109
+ */
110
+ revision?: string | null;
111
+ /**
112
+ * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
113
+ * @readonly
114
+ */
115
+ _createdDate?: Date | null;
116
+ /**
117
+ * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
118
+ * @readonly
119
+ */
120
+ _updatedDate?: Date | null;
121
+ }
122
+ export declare enum Status {
123
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
124
+ /** You can add events to the schedule or update its fields. */
125
+ ACTIVE = "ACTIVE",
126
+ /** You can't add events to the schedule or update its fields. */
127
+ CANCELLED = "CANCELLED"
128
+ }
129
+ export interface Location {
130
+ /**
131
+ * [Location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)
132
+ * ID. Available only for `BUSINESS` locations.
133
+ */
134
+ _id?: string | null;
135
+ /**
136
+ * Location type.
137
+ *
138
+ * Supported values:
139
+ * + `BUSINESS`: The event is held at a business location.
140
+ * + `CUSTOMER`: The event is held at the customer's location, such as their home or office.
141
+ * + `CUSTOM`: The event is held at an address or venue not tied to the business or customer.
142
+ */
143
+ type?: LocationType;
144
+ /**
145
+ * Location name. For `BUSINESS` locations, it's identical to the
146
+ * [location](https://dev.wix.com/docs/sdk/backend-modules/business-tools/locations/introduction)
147
+ * `name`.
148
+ *
149
+ * Min: 1 character
150
+ * Max: 150 characters
151
+ */
152
+ name?: string | null;
153
+ /**
154
+ * Location address. For `BUSINESS` locations, it's identical to the
155
+ * [location](https://dev.wix.com/docs/rest/business-management/locations/location-object)'s
156
+ * `formattedAddress`.
157
+ */
158
+ address?: string | null;
159
+ }
160
+ export declare enum LocationType {
161
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
162
+ /** The event is held at a business location. */
163
+ BUSINESS = "BUSINESS",
164
+ /** The event is held at the customer's location, such as their home or office. */
165
+ CUSTOMER = "CUSTOMER",
166
+ /** The event is held at an address or venue not tied to the business or customer. */
167
+ CUSTOM = "CUSTOM"
168
+ }
169
+ export interface ConferencingDetails {
170
+ /** Conference type. For example, `Zoom`. */
171
+ type?: Type;
172
+ /**
173
+ * URL used by the host to start the conference.
174
+ *
175
+ * Min: 1 character
176
+ * Max: 2000 characters
177
+ */
178
+ hostUrl?: string | null;
179
+ /**
180
+ * URL used by a guest to join the conference.
181
+ *
182
+ * Min: 1 character
183
+ * Max: 2000 characters
184
+ */
185
+ guestUrl?: string | null;
186
+ /**
187
+ * Conference password.
188
+ *
189
+ * Min: 1 character
190
+ * Max: 100 characters
191
+ */
192
+ password?: string | null;
193
+ /**
194
+ * Conference ID in an external system.
195
+ *
196
+ * Min: 1 character
197
+ * Max: 150 characters
198
+ */
199
+ externalId?: string | null;
200
+ }
201
+ export declare enum Type {
202
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
203
+ ZOOM = "ZOOM",
204
+ CUSTOM = "CUSTOM"
205
+ }
206
+ export interface Permission {
207
+ /**
208
+ * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
209
+ * granted the permission.
210
+ */
211
+ identity?: CommonIdentificationData;
212
+ /**
213
+ * Permission role.
214
+ *
215
+ * Supported values:
216
+ * + `WRITER`: Full read and write access.
217
+ * + `COMMENTER`: Full read access, write access limited to `event.notes`.
218
+ */
219
+ role?: Role;
220
+ }
221
+ export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
222
+ /**
223
+ * ID of a Wix user. For example, the site owner or a
224
+ * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
225
+ */
226
+ wixUserId?: string;
227
+ }
228
+ /** @oneof */
229
+ export interface CommonIdentificationDataIdOneOf {
230
+ /**
231
+ * ID of a Wix user. For example, the site owner or a
232
+ * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
233
+ */
234
+ wixUserId?: string;
235
+ }
236
+ export declare enum IdentityType {
237
+ UNKNOWN = "UNKNOWN",
238
+ WIX_USER = "WIX_USER"
239
+ }
240
+ export declare enum Role {
241
+ UNKNOWN_ROLE = "UNKNOWN_ROLE",
242
+ /** Full read and write access. */
243
+ WRITER = "WRITER",
244
+ /** Full read access, write access limited to `event.notes`. */
245
+ COMMENTER = "COMMENTER"
246
+ }
247
+ export interface ExtendedFields {
248
+ /**
249
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
250
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
251
+ *
252
+ * You can only access fields for which you have the appropriate permissions.
253
+ *
254
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
255
+ */
256
+ namespaces?: Record<string, Record<string, any>>;
257
+ }
258
+ export interface GetScheduleRequest {
259
+ /** ID of the schedule to retrieve. */
260
+ scheduleId: string | null;
261
+ /**
262
+ * Information about which fields containing personal data to return. Refer to the
263
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)
264
+ * for more information.
265
+ *
266
+ * Supported values:
267
+ * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
268
+ * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
269
+ *
270
+ * Max: 1 field
271
+ * Default: No personal data is returned.
272
+ */
273
+ fields?: RequestedFields[];
274
+ }
275
+ export declare enum RequestedFields {
276
+ UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
277
+ /** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */
278
+ PI_FIELDS = "PI_FIELDS",
279
+ /** Returns only fields containing your own personal data. */
280
+ OWN_PI_FIELDS = "OWN_PI_FIELDS"
281
+ }
282
+ export interface GetScheduleResponse {
283
+ /** Retrieved schedule. */
284
+ schedule?: Schedule;
285
+ }
286
+ export interface QuerySchedulesRequest {
287
+ /** Query containing filters and paging. */
288
+ query?: CursorQuery;
289
+ /**
290
+ * Information about which fields containing personal data to return. Refer to the
291
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)
292
+ * for more information.
293
+ *
294
+ * Supported values:
295
+ * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
296
+ * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
297
+ *
298
+ * Max: 1 field
299
+ * Default: No personal data is returned.
300
+ */
301
+ fields?: RequestedFields[];
302
+ }
303
+ /** TODO Diverge */
304
+ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
305
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
306
+ cursorPaging?: CursorPaging;
307
+ /**
308
+ * Filter object.
309
+ * See [API Query Language](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language)
310
+ * for more information.
311
+ *
312
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
313
+ *
314
+ * For a detailed list of supported filters, see Supported Filters.
315
+ */
316
+ filter?: Record<string, any> | null;
317
+ }
318
+ /** @oneof */
319
+ export interface CursorQueryPagingMethodOneOf {
320
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
321
+ cursorPaging?: CursorPaging;
322
+ }
323
+ /** TODO Diverge */
324
+ export interface CursorPaging {
325
+ /**
326
+ * Number of schedules to return.
327
+ *
328
+ * Min: `1`
329
+ * Max: `100`
330
+ * Default: `50`
331
+ */
332
+ limit?: number | null;
333
+ /**
334
+ * Pointer to the next or previous page in the list of results.
335
+ *
336
+ * You can get the relevant cursor token
337
+ * from the `pagingMetadata` object in the previous call's response.
338
+ * Not relevant for the first request.
339
+ */
340
+ cursor?: string | null;
341
+ }
342
+ export interface QuerySchedulesResponse {
343
+ /** Retrieved schedules matching the provided query. */
344
+ schedules?: Schedule[];
345
+ /** Paging metadata. */
346
+ pagingMetadata?: CursorPagingMetadata;
347
+ }
348
+ /** TODO Diverge */
349
+ export interface CursorPagingMetadata {
350
+ /** Number of schedules returned in the current page of the response. */
351
+ count?: number | null;
352
+ /** 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). */
353
+ cursors?: Cursors;
354
+ /**
355
+ * Indicates if there are more results after the current page.
356
+ * If `true`, another page of results can be retrieved.
357
+ * If `false`, this is the last page.
358
+ */
359
+ hasNext?: boolean | null;
360
+ }
361
+ export interface Cursors {
362
+ /** Cursor pointing to next page in the list of results. */
363
+ next?: string | null;
364
+ /** Cursor pointing to previous page in the list of results. */
365
+ prev?: string | null;
366
+ }
367
+ export interface CreateScheduleRequest {
368
+ /** Schedule to create. */
369
+ schedule: Schedule;
370
+ /**
371
+ * Idempotency key guaranteeing that you don't create the same schedule more
372
+ * than once.
373
+ */
374
+ idempotencyKey?: string | null;
375
+ }
376
+ export interface CreateScheduleResponse {
377
+ /** Created schedule. */
378
+ schedule?: Schedule;
379
+ }
380
+ export interface UpdateScheduleRequest {
381
+ /** Schedule to update. */
382
+ schedule: Schedule;
383
+ /**
384
+ * Information about whether participants of the schedule's updated events are
385
+ * notified and the message they receive.
386
+ */
387
+ participantNotification?: ParticipantNotification;
388
+ }
389
+ export interface ParticipantNotification {
390
+ /**
391
+ * Whether to notify the participants about changes made to the schedule or event.
392
+ *
393
+ * Default: `false`
394
+ */
395
+ notifyParticipants?: boolean | null;
396
+ /**
397
+ * Message to send.
398
+ *
399
+ * Min: 1 character
400
+ * Max: 5000 characters
401
+ */
402
+ message?: string | null;
403
+ }
404
+ export interface UpdateScheduleResponse {
405
+ /** Updated schedule. */
406
+ schedule?: Schedule;
407
+ }
408
+ /** `PRIVATE` until we'll have standard events metadata from Infra. */
409
+ export interface ScheduleUpdatedWithMetadata {
410
+ /** The updated schedule. */
411
+ schedule?: Schedule;
412
+ /** Whether to notify participants regarding the changes. */
413
+ participantNotification?: ParticipantNotification;
414
+ }
415
+ export interface CloneScheduleRequest {
416
+ /** ID of the schedule to clone. */
417
+ scheduleId?: string | null;
418
+ /** Fields to override in the cloned schedule. */
419
+ schedule?: Schedule;
420
+ }
421
+ export interface CloneScheduleResponse {
422
+ /** Cloned schedule. */
423
+ schedule?: Schedule;
424
+ }
425
+ export interface ScheduleCloned {
426
+ /** New cloned schedule. */
427
+ schedule?: Schedule;
428
+ /** The clone trigger. */
429
+ trigger?: Trigger;
430
+ /** The original Meta Site ID if different. */
431
+ originalMetaSiteId?: string | null;
432
+ /** The original schedule ID if different. */
433
+ originalScheduleId?: string | null;
434
+ }
435
+ export declare enum Trigger {
436
+ /** Schedule cloned using the `CloneSchedule` API. */
437
+ SCHEDULE_CLONED = "SCHEDULE_CLONED",
438
+ /** Site duplicated from the same account. */
439
+ SITE_DUPLICATED_FROM_SAME_ACCOUNT = "SITE_DUPLICATED_FROM_SAME_ACCOUNT",
440
+ /** Site duplicated from a different account. */
441
+ SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT = "SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT",
442
+ /** Site created from template. */
443
+ SITE_CREATED_FROM_TEMPLATE = "SITE_CREATED_FROM_TEMPLATE",
444
+ /** Other. */
445
+ OTHER = "OTHER"
446
+ }
447
+ export interface CancelScheduleRequest {
448
+ /** ID of the schedule to cancel. */
449
+ scheduleId: string | null;
450
+ /**
451
+ * Whether to preserve future events with participants.
452
+ * Default: `false`.
453
+ */
454
+ preserveFutureEventsWithParticipants?: boolean | null;
455
+ /**
456
+ * Information about whether participants of the schedule's updated events are
457
+ * notified and the message they receive.
458
+ */
459
+ participantNotification?: ParticipantNotification;
460
+ }
461
+ export interface CancelScheduleResponse {
462
+ /** Canceled schedule. */
463
+ schedule?: Schedule;
464
+ }
465
+ export interface ScheduleCancelled {
466
+ /** Canceled schedule. */
467
+ schedule?: Schedule;
468
+ /** Whether future events with participants were preserved. */
469
+ preserveFutureEventsWithParticipants?: boolean | null;
470
+ }
471
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
472
+ /** Emitted on a meta site creation. */
473
+ siteCreated?: SiteCreated;
474
+ /** Emitted on a meta site transfer completion. */
475
+ siteTransferred?: SiteTransferred;
476
+ /** Emitted on a meta site deletion. */
477
+ siteDeleted?: SiteDeleted;
478
+ /** Emitted on a meta site restoration. */
479
+ siteUndeleted?: SiteUndeleted;
480
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
481
+ sitePublished?: SitePublished;
482
+ /** Emitted on a meta site unpublish. */
483
+ siteUnpublished?: SiteUnpublished;
484
+ /** Emitted when meta site is marked as template. */
485
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
486
+ /** Emitted when meta site is marked as a WixSite. */
487
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
488
+ /** Emitted when an application is provisioned (installed). */
489
+ serviceProvisioned?: ServiceProvisioned;
490
+ /** Emitted when an application is removed (uninstalled). */
491
+ serviceRemoved?: ServiceRemoved;
492
+ /** Emitted when meta site name (URL slug) is changed. */
493
+ siteRenamedPayload?: SiteRenamed;
494
+ /** Emitted when meta site was permanently deleted. */
495
+ hardDeleted?: SiteHardDeleted;
496
+ /** Emitted on a namespace change. */
497
+ namespaceChanged?: NamespaceChanged;
498
+ /** Emitted when Studio is attached. */
499
+ studioAssigned?: StudioAssigned;
500
+ /** Emitted when Studio is detached. */
501
+ studioUnassigned?: StudioUnassigned;
502
+ /** A meta site id. */
503
+ metaSiteId?: string;
504
+ /** A meta site version. Monotonically increasing. */
505
+ version?: string;
506
+ /** A timestamp of the event. */
507
+ timestamp?: string;
508
+ /**
509
+ * TODO(meta-site): Change validation once validations are disabled for consumers
510
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
511
+ */
512
+ assets?: Asset[];
513
+ }
514
+ /** @oneof */
515
+ export interface MetaSiteSpecialEventPayloadOneOf {
516
+ /** Emitted on a meta site creation. */
517
+ siteCreated?: SiteCreated;
518
+ /** Emitted on a meta site transfer completion. */
519
+ siteTransferred?: SiteTransferred;
520
+ /** Emitted on a meta site deletion. */
521
+ siteDeleted?: SiteDeleted;
522
+ /** Emitted on a meta site restoration. */
523
+ siteUndeleted?: SiteUndeleted;
524
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
525
+ sitePublished?: SitePublished;
526
+ /** Emitted on a meta site unpublish. */
527
+ siteUnpublished?: SiteUnpublished;
528
+ /** Emitted when meta site is marked as template. */
529
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
530
+ /** Emitted when meta site is marked as a WixSite. */
531
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
532
+ /** Emitted when an application is provisioned (installed). */
533
+ serviceProvisioned?: ServiceProvisioned;
534
+ /** Emitted when an application is removed (uninstalled). */
535
+ serviceRemoved?: ServiceRemoved;
536
+ /** Emitted when meta site name (URL slug) is changed. */
537
+ siteRenamedPayload?: SiteRenamed;
538
+ /** Emitted when meta site was permanently deleted. */
539
+ hardDeleted?: SiteHardDeleted;
540
+ /** Emitted on a namespace change. */
541
+ namespaceChanged?: NamespaceChanged;
542
+ /** Emitted when Studio is attached. */
543
+ studioAssigned?: StudioAssigned;
544
+ /** Emitted when Studio is detached. */
545
+ studioUnassigned?: StudioUnassigned;
546
+ }
547
+ export interface Asset {
548
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
549
+ appDefId?: string;
550
+ /** An instance id. For legacy reasons may be UUID or a string. */
551
+ instanceId?: string;
552
+ /** An application state. */
553
+ state?: State;
554
+ }
555
+ export declare enum State {
556
+ UNKNOWN = "UNKNOWN",
557
+ ENABLED = "ENABLED",
558
+ DISABLED = "DISABLED",
559
+ PENDING = "PENDING",
560
+ DEMO = "DEMO"
561
+ }
562
+ export interface SiteCreated {
563
+ /** A template identifier (empty if not created from a template). */
564
+ originTemplateId?: string;
565
+ /** An account id of the owner. */
566
+ ownerId?: string;
567
+ /** A context in which meta site was created. */
568
+ context?: SiteCreatedContext;
569
+ /**
570
+ * A meta site id from which this site was created.
571
+ *
572
+ * In case of a creation from a template it's a template id.
573
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
574
+ */
575
+ originMetaSiteId?: string | null;
576
+ /** A meta site name (URL slug). */
577
+ siteName?: string;
578
+ /** A namespace. */
579
+ namespace?: Namespace;
580
+ }
581
+ export declare enum SiteCreatedContext {
582
+ /** A valid option, we don't expose all reasons why site might be created. */
583
+ OTHER = "OTHER",
584
+ /** A meta site was created from template. */
585
+ FROM_TEMPLATE = "FROM_TEMPLATE",
586
+ /** A meta site was created by copying of the transfferred meta site. */
587
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
588
+ /** A copy of existing meta site. */
589
+ DUPLICATE = "DUPLICATE",
590
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
591
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
592
+ /** deprecated A meta site was created for Flash editor. */
593
+ FLASH = "FLASH"
594
+ }
595
+ export declare enum Namespace {
596
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
597
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
598
+ WIX = "WIX",
599
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
600
+ SHOUT_OUT = "SHOUT_OUT",
601
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
602
+ ALBUMS = "ALBUMS",
603
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
604
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
605
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
606
+ HOTELS = "HOTELS",
607
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
608
+ CLUBS = "CLUBS",
609
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
610
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
611
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
612
+ DEV_SITE = "DEV_SITE",
613
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
614
+ LOGOS = "LOGOS",
615
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
616
+ VIDEO_MAKER = "VIDEO_MAKER",
617
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
618
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
619
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
620
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
621
+ /**
622
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
623
+ *
624
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
625
+ */
626
+ HTML_DRAFT = "HTML_DRAFT",
627
+ /**
628
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
629
+ * Will be accessible from Site List and will not have a website app.
630
+ * Once the user attaches a site, the site will become a regular wixsite.
631
+ */
632
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
633
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
634
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
635
+ /** It is to be used in the Business First efforts. */
636
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
637
+ /** Bookings business flow with no site. */
638
+ ANYWHERE = "ANYWHERE",
639
+ /** Namespace for Headless Backoffice with no editor */
640
+ HEADLESS = "HEADLESS",
641
+ /**
642
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
643
+ * The site will be used for account level CSM feature for enterprise
644
+ */
645
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
646
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
647
+ RISE = "RISE",
648
+ /**
649
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
650
+ * There's a blank site behind the scene but it's blank).
651
+ * The Mobile company will be the owner of this namespace.
652
+ */
653
+ BRANDED_FIRST = "BRANDED_FIRST",
654
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
655
+ NOWNIA = "NOWNIA",
656
+ /**
657
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
658
+ * The Partners company owns this namespace.
659
+ */
660
+ UGC_TEMPLATE = "UGC_TEMPLATE",
661
+ /** Codux Headless Sites */
662
+ CODUX = "CODUX",
663
+ /** Bobb - AI Design Creator. */
664
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
665
+ /**
666
+ * Shared Blog Site is a unique single site across Enterprise account,
667
+ * This site will hold all Blog posts related to the Marketing product.
668
+ */
669
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE"
670
+ }
671
+ /** Site transferred to another user. */
672
+ export interface SiteTransferred {
673
+ /** A previous owner id (user that transfers meta site). */
674
+ oldOwnerId?: string;
675
+ /** A new owner id (user that accepts meta site). */
676
+ newOwnerId?: string;
677
+ }
678
+ /** Soft deletion of the meta site. Could be restored. */
679
+ export interface SiteDeleted {
680
+ /** A deletion context. */
681
+ deleteContext?: DeleteContext;
682
+ }
683
+ export interface DeleteContext {
684
+ /** When the meta site was deleted. */
685
+ dateDeleted?: Date | null;
686
+ /** A status. */
687
+ deleteStatus?: DeleteStatus;
688
+ /** A reason (flow). */
689
+ deleteOrigin?: string;
690
+ /** A service that deleted it. */
691
+ initiatorId?: string | null;
692
+ }
693
+ export declare enum DeleteStatus {
694
+ UNKNOWN = "UNKNOWN",
695
+ TRASH = "TRASH",
696
+ DELETED = "DELETED",
697
+ PENDING_PURGE = "PENDING_PURGE"
698
+ }
699
+ /** Restoration of the meta site. */
700
+ export interface SiteUndeleted {
701
+ }
702
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
703
+ export interface SitePublished {
704
+ }
705
+ export interface SiteUnpublished {
706
+ /** A list of URLs previously associated with the meta site. */
707
+ urls?: string[];
708
+ }
709
+ export interface SiteMarkedAsTemplate {
710
+ }
711
+ export interface SiteMarkedAsWixSite {
712
+ }
713
+ /**
714
+ * Represents a service provisioned a site.
715
+ *
716
+ * Note on `origin_instance_id`:
717
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
718
+ * This is because of the following scenario:
719
+ *
720
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
721
+ * such as a product catalog. When you create a site from this template, you inherit this
722
+ * default product catalog. However, if the template's product catalog is modified,
723
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
724
+ * your site remains consistent with what you initially received and does not include any
725
+ * changes made to the original template afterward.
726
+ * To ensure this, the TPA on the template gets a new instance_id.
727
+ */
728
+ export interface ServiceProvisioned {
729
+ /** Either UUID or EmbeddedServiceType. */
730
+ appDefId?: string;
731
+ /** Not only UUID. Something here could be something weird. */
732
+ instanceId?: string;
733
+ /** An instance id from which this instance is originated. */
734
+ originInstanceId?: string;
735
+ /** A version. */
736
+ version?: string | null;
737
+ /** The origin meta site id */
738
+ originMetaSiteId?: string | null;
739
+ }
740
+ export interface ServiceRemoved {
741
+ /** Either UUID or EmbeddedServiceType. */
742
+ appDefId?: string;
743
+ /** Not only UUID. Something here could be something weird. */
744
+ instanceId?: string;
745
+ /** A version. */
746
+ version?: string | null;
747
+ }
748
+ /** Rename of the site. Meaning, free public url has been changed as well. */
749
+ export interface SiteRenamed {
750
+ /** A new meta site name (URL slug). */
751
+ newSiteName?: string;
752
+ /** A previous meta site name (URL slug). */
753
+ oldSiteName?: string;
754
+ }
755
+ /**
756
+ * Hard deletion of the meta site.
757
+ *
758
+ * Could not be restored. Therefore it's desirable to cleanup data.
759
+ */
760
+ export interface SiteHardDeleted {
761
+ /** A deletion context. */
762
+ deleteContext?: DeleteContext;
763
+ }
764
+ export interface NamespaceChanged {
765
+ /** A previous namespace. */
766
+ oldNamespace?: Namespace;
767
+ /** A new namespace. */
768
+ newNamespace?: Namespace;
769
+ }
770
+ /** Assigned Studio editor */
771
+ export interface StudioAssigned {
772
+ }
773
+ /** Unassigned Studio editor */
774
+ export interface StudioUnassigned {
775
+ }
776
+ export interface Empty {
777
+ }
778
+ /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
779
+ export interface SitePropertiesNotification {
780
+ /** The site ID for which this update notification applies. */
781
+ metasiteId?: string;
782
+ /** The actual update event. */
783
+ event?: SitePropertiesEvent;
784
+ /** A convenience set of mappings from the MetaSite ID to its constituent services. */
785
+ translations?: Translation[];
786
+ /** Context of the notification */
787
+ changeContext?: ChangeContext;
788
+ }
789
+ /** The actual update event for a particular notification. */
790
+ export interface SitePropertiesEvent {
791
+ /** Version of the site's properties represented by this update. */
792
+ version?: number;
793
+ /** Set of properties that were updated - corresponds to the fields in "properties". */
794
+ fields?: string[];
795
+ /** Updated properties. */
796
+ properties?: Properties;
797
+ }
798
+ export interface Properties {
799
+ /** Site categories. */
800
+ categories?: Categories;
801
+ /** Site locale. */
802
+ locale?: Locale;
803
+ /**
804
+ * Site language.
805
+ *
806
+ * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
807
+ */
808
+ language?: string | null;
809
+ /**
810
+ * Site currency format used to bill customers.
811
+ *
812
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
813
+ */
814
+ paymentCurrency?: string | null;
815
+ /** Timezone in `America/New_York` format. */
816
+ timeZone?: string | null;
817
+ /** Email address. */
818
+ email?: string | null;
819
+ /** Phone number. */
820
+ phone?: string | null;
821
+ /** Fax number. */
822
+ fax?: string | null;
823
+ /** Address. */
824
+ address?: Address;
825
+ /** Site display name. */
826
+ siteDisplayName?: string | null;
827
+ /** Business name. */
828
+ businessName?: string | null;
829
+ /** Path to the site's logo in Wix Media (without Wix Media base URL). */
830
+ logo?: string | null;
831
+ /** Site description. */
832
+ description?: string | null;
833
+ /**
834
+ * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
835
+ *
836
+ * __Note:__ Not supported by Wix Bookings.
837
+ */
838
+ businessSchedule?: BusinessSchedule;
839
+ /** Supported languages of a site and the primary language. */
840
+ multilingual?: Multilingual;
841
+ /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */
842
+ consentPolicy?: ConsentPolicy;
843
+ /**
844
+ * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
845
+ *
846
+ * Site business type.
847
+ */
848
+ businessConfig?: string | null;
849
+ /** External site URL that uses Wix as its headless business solution. */
850
+ externalSiteUrl?: string | null;
851
+ /** Track clicks analytics. */
852
+ trackClicksAnalytics?: boolean;
853
+ }
854
+ export interface Categories {
855
+ /** Primary site category. */
856
+ primary?: string;
857
+ /** Secondary site category. */
858
+ secondary?: string[];
859
+ /** Business Term Id */
860
+ businessTermId?: string | null;
861
+ }
862
+ export interface Locale {
863
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
864
+ languageCode?: string;
865
+ /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
866
+ country?: string;
867
+ }
868
+ export interface Address {
869
+ /** Street name. */
870
+ street?: string;
871
+ /** City name. */
872
+ city?: string;
873
+ /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
874
+ country?: string;
875
+ /** State. */
876
+ state?: string;
877
+ /** Zip or postal code. */
878
+ zip?: string;
879
+ /** Extra information to be displayed in the address. */
880
+ hint?: AddressHint;
881
+ /** Whether this address represents a physical location. */
882
+ isPhysical?: boolean;
883
+ /** Google-formatted version of this address. */
884
+ googleFormattedAddress?: string;
885
+ /** Street number. */
886
+ streetNumber?: string;
887
+ /** Apartment number. */
888
+ apartmentNumber?: string;
889
+ /** Geographic coordinates of location. */
890
+ coordinates?: GeoCoordinates;
891
+ }
892
+ /**
893
+ * Extra information on displayed addresses.
894
+ * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
895
+ * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
896
+ */
897
+ export interface AddressHint {
898
+ /** Extra text displayed next to, or instead of, the actual address. */
899
+ text?: string;
900
+ /** Where the extra text should be displayed. */
901
+ placement?: PlacementType;
902
+ }
903
+ /** Where the extra text should be displayed: before, after or instead of the actual address. */
904
+ export declare enum PlacementType {
905
+ BEFORE = "BEFORE",
906
+ AFTER = "AFTER",
907
+ REPLACE = "REPLACE"
908
+ }
909
+ /** Geocoordinates for a particular address. */
910
+ export interface GeoCoordinates {
911
+ /** Latitude of the location. Must be between -90 and 90. */
912
+ latitude?: number;
913
+ /** Longitude of the location. Must be between -180 and 180. */
914
+ longitude?: number;
915
+ }
916
+ /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
917
+ export interface BusinessSchedule {
918
+ /** Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. */
919
+ periods?: TimePeriod[];
920
+ /** Exceptions to the business's regular hours. The business can be open or closed during the exception. */
921
+ specialHourPeriod?: SpecialHourPeriod[];
922
+ }
923
+ /** Weekly recurring time periods when the business is regularly open or the service is available. */
924
+ export interface TimePeriod {
925
+ /** Day of the week the period starts on. */
926
+ openDay?: DayOfWeek;
927
+ /**
928
+ * Time the period starts in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
929
+ * midnight at the end of the specified day.
930
+ */
931
+ openTime?: string;
932
+ /** Day of the week the period ends on. */
933
+ closeDay?: DayOfWeek;
934
+ /**
935
+ * Time the period ends in 24-hour [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) extended format. Valid values are `00:00` to `24:00`, where `24:00` represents
936
+ * midnight at the end of the specified day.
937
+ *
938
+ * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
939
+ */
940
+ closeTime?: string;
941
+ }
942
+ /** Enumerates the days of the week. */
943
+ export declare enum DayOfWeek {
944
+ MONDAY = "MONDAY",
945
+ TUESDAY = "TUESDAY",
946
+ WEDNESDAY = "WEDNESDAY",
947
+ THURSDAY = "THURSDAY",
948
+ FRIDAY = "FRIDAY",
949
+ SATURDAY = "SATURDAY",
950
+ SUNDAY = "SUNDAY"
951
+ }
952
+ /** Exception to the business's regular hours. The business can be open or closed during the exception. */
953
+ export interface SpecialHourPeriod {
954
+ /** Start date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
955
+ startDate?: string;
956
+ /** End date and time of the exception in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format and [Coordinated Universal Time (UTC)](https://en.wikipedia.org/wiki/Coordinated_Universal_Time). */
957
+ endDate?: string;
958
+ /**
959
+ * Whether the business is closed (or the service is not available) during the exception.
960
+ *
961
+ * Default: `true`.
962
+ */
963
+ isClosed?: boolean;
964
+ /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
965
+ comment?: string;
966
+ }
967
+ export interface Multilingual {
968
+ /** Supported languages list. */
969
+ supportedLanguages?: SupportedLanguage[];
970
+ /** Whether to redirect to user language. */
971
+ autoRedirect?: boolean;
972
+ }
973
+ export interface SupportedLanguage {
974
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
975
+ languageCode?: string;
976
+ /** Locale. */
977
+ locale?: Locale;
978
+ /** Whether the supported language is the primary language for the site. */
979
+ isPrimary?: boolean;
980
+ /** Language icon. */
981
+ countryCode?: string;
982
+ /** How the language will be resolved. For internal use. */
983
+ resolutionMethod?: ResolutionMethod;
984
+ }
985
+ export declare enum ResolutionMethod {
986
+ QUERY_PARAM = "QUERY_PARAM",
987
+ SUBDOMAIN = "SUBDOMAIN",
988
+ SUBDIRECTORY = "SUBDIRECTORY"
989
+ }
990
+ export interface ConsentPolicy {
991
+ /** Whether the site uses cookies that are essential to site operation. Always `true`. */
992
+ essential?: boolean | null;
993
+ /** Whether the site uses cookies that affect site performance and other functional measurements. */
994
+ functional?: boolean | null;
995
+ /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
996
+ analytics?: boolean | null;
997
+ /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
998
+ advertising?: boolean | null;
999
+ /** CCPA compliance flag. */
1000
+ dataToThirdParty?: boolean | null;
1001
+ }
1002
+ /** A single mapping from the MetaSite ID to a particular service. */
1003
+ export interface Translation {
1004
+ /** The service type. */
1005
+ serviceType?: string;
1006
+ /** The application definition ID; this only applies to services of type ThirdPartyApps. */
1007
+ appDefId?: string;
1008
+ /** The instance ID of the service. */
1009
+ instanceId?: string;
1010
+ }
1011
+ export interface ChangeContext extends ChangeContextPayloadOneOf {
1012
+ /** Properties were updated. */
1013
+ propertiesChange?: PropertiesChange;
1014
+ /** Default properties were created on site creation. */
1015
+ siteCreated?: V4SiteCreated;
1016
+ /** Properties were cloned on site cloning. */
1017
+ siteCloned?: SiteCloned;
1018
+ }
1019
+ /** @oneof */
1020
+ export interface ChangeContextPayloadOneOf {
1021
+ /** Properties were updated. */
1022
+ propertiesChange?: PropertiesChange;
1023
+ /** Default properties were created on site creation. */
1024
+ siteCreated?: V4SiteCreated;
1025
+ /** Properties were cloned on site cloning. */
1026
+ siteCloned?: SiteCloned;
1027
+ }
1028
+ export interface PropertiesChange {
1029
+ }
1030
+ export interface V4SiteCreated {
1031
+ /** Origin template site id. */
1032
+ originTemplateId?: string | null;
1033
+ }
1034
+ export interface SiteCloned {
1035
+ /** Origin site id. */
1036
+ originMetaSiteId?: string;
1037
+ }
1038
+ export interface DomainEvent extends DomainEventBodyOneOf {
1039
+ createdEvent?: EntityCreatedEvent;
1040
+ updatedEvent?: EntityUpdatedEvent;
1041
+ deletedEvent?: EntityDeletedEvent;
1042
+ actionEvent?: ActionEvent;
1043
+ /**
1044
+ * Unique event ID.
1045
+ * Allows clients to ignore duplicate webhooks.
1046
+ */
1047
+ _id?: string;
1048
+ /**
1049
+ * Assumes actions are also always typed to an entity_type
1050
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1051
+ */
1052
+ entityFqdn?: string;
1053
+ /**
1054
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1055
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1056
+ * Example: created/updated/deleted/started/completed/email_opened
1057
+ */
1058
+ slug?: string;
1059
+ /** ID of the entity associated with the event. */
1060
+ entityId?: string;
1061
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1062
+ eventTime?: Date | null;
1063
+ /**
1064
+ * Whether the event was triggered as a result of a privacy regulation application
1065
+ * (for example, GDPR).
1066
+ */
1067
+ triggeredByAnonymizeRequest?: boolean | null;
1068
+ /** If present, indicates the action that triggered the event. */
1069
+ originatedFrom?: string | null;
1070
+ /**
1071
+ * A sequence number defining the order of updates to the underlying entity.
1072
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1073
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1074
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1075
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1076
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1077
+ */
1078
+ entityEventSequence?: string | null;
1079
+ }
1080
+ /** @oneof */
1081
+ export interface DomainEventBodyOneOf {
1082
+ createdEvent?: EntityCreatedEvent;
1083
+ updatedEvent?: EntityUpdatedEvent;
1084
+ deletedEvent?: EntityDeletedEvent;
1085
+ actionEvent?: ActionEvent;
1086
+ }
1087
+ export interface EntityCreatedEvent {
1088
+ entity?: string;
1089
+ }
1090
+ export interface RestoreInfo {
1091
+ deletedDate?: Date | null;
1092
+ }
1093
+ export interface EntityUpdatedEvent {
1094
+ /**
1095
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
1096
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
1097
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
1098
+ */
1099
+ currentEntity?: string;
1100
+ }
1101
+ export interface EntityDeletedEvent {
1102
+ /** Entity that was deleted */
1103
+ deletedEntity?: string | null;
1104
+ }
1105
+ export interface ActionEvent {
1106
+ body?: string;
1107
+ }
1108
+ export interface MessageEnvelope {
1109
+ /** App instance ID. */
1110
+ instanceId?: string | null;
1111
+ /** Event type. */
1112
+ eventType?: string;
1113
+ /** The identification type and identity data. */
1114
+ identity?: IdentificationData;
1115
+ /** Stringify payload. */
1116
+ data?: string;
1117
+ }
1118
+ export interface IdentificationData extends IdentificationDataIdOneOf {
1119
+ /** ID of a site visitor that has not logged in to the site. */
1120
+ anonymousVisitorId?: string;
1121
+ /** ID of a site visitor that has logged in to the site. */
1122
+ memberId?: string;
1123
+ /** ID of a Wix user (site owner, contributor, etc.). */
1124
+ wixUserId?: string;
1125
+ /** ID of an app. */
1126
+ appId?: string;
1127
+ /** @readonly */
1128
+ identityType?: WebhookIdentityType;
1129
+ }
1130
+ /** @oneof */
1131
+ export interface IdentificationDataIdOneOf {
1132
+ /** ID of a site visitor that has not logged in to the site. */
1133
+ anonymousVisitorId?: string;
1134
+ /** ID of a site visitor that has logged in to the site. */
1135
+ memberId?: string;
1136
+ /** ID of a Wix user (site owner, contributor, etc.). */
1137
+ wixUserId?: string;
1138
+ /** ID of an app. */
1139
+ appId?: string;
1140
+ }
1141
+ export declare enum WebhookIdentityType {
1142
+ UNKNOWN = "UNKNOWN",
1143
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1144
+ MEMBER = "MEMBER",
1145
+ WIX_USER = "WIX_USER",
1146
+ APP = "APP"
1147
+ }
1148
+ interface LocationNonNullableFields {
1149
+ type: LocationType;
1150
+ }
1151
+ interface ConferencingDetailsNonNullableFields {
1152
+ type: Type;
1153
+ }
1154
+ interface CommonIdentificationDataNonNullableFields {
1155
+ wixUserId: string;
1156
+ identityType: IdentityType;
1157
+ }
1158
+ interface PermissionNonNullableFields {
1159
+ identity?: CommonIdentificationDataNonNullableFields;
1160
+ role: Role;
1161
+ }
1162
+ export interface ScheduleNonNullableFields {
1163
+ status: Status;
1164
+ defaultLocation?: LocationNonNullableFields;
1165
+ defaultConferencingDetails?: ConferencingDetailsNonNullableFields;
1166
+ permissions: PermissionNonNullableFields[];
1167
+ }
1168
+ export interface GetScheduleResponseNonNullableFields {
1169
+ schedule?: ScheduleNonNullableFields;
1170
+ }
1171
+ export interface QuerySchedulesResponseNonNullableFields {
1172
+ schedules: ScheduleNonNullableFields[];
1173
+ }
1174
+ export interface CreateScheduleResponseNonNullableFields {
1175
+ schedule?: ScheduleNonNullableFields;
1176
+ }
1177
+ export interface UpdateScheduleResponseNonNullableFields {
1178
+ schedule?: ScheduleNonNullableFields;
1179
+ }
1180
+ export interface CancelScheduleResponseNonNullableFields {
1181
+ schedule?: ScheduleNonNullableFields;
1182
+ }
1183
+ export interface BaseEventMetadata {
1184
+ /** App instance ID. */
1185
+ instanceId?: string | null;
1186
+ /** Event type. */
1187
+ eventType?: string;
1188
+ /** The identification type and identity data. */
1189
+ identity?: IdentificationData;
1190
+ }
1191
+ export interface EventMetadata extends BaseEventMetadata {
1192
+ /**
1193
+ * Unique event ID.
1194
+ * Allows clients to ignore duplicate webhooks.
1195
+ */
1196
+ _id?: string;
1197
+ /**
1198
+ * Assumes actions are also always typed to an entity_type
1199
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1200
+ */
1201
+ entityFqdn?: string;
1202
+ /**
1203
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1204
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1205
+ * Example: created/updated/deleted/started/completed/email_opened
1206
+ */
1207
+ slug?: string;
1208
+ /** ID of the entity associated with the event. */
1209
+ entityId?: string;
1210
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
1211
+ eventTime?: Date | null;
1212
+ /**
1213
+ * Whether the event was triggered as a result of a privacy regulation application
1214
+ * (for example, GDPR).
1215
+ */
1216
+ triggeredByAnonymizeRequest?: boolean | null;
1217
+ /** If present, indicates the action that triggered the event. */
1218
+ originatedFrom?: string | null;
1219
+ /**
1220
+ * A sequence number defining the order of updates to the underlying entity.
1221
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1222
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1223
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1224
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1225
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1226
+ */
1227
+ entityEventSequence?: string | null;
1228
+ }
1229
+ export interface ScheduleCancelledEnvelope {
1230
+ data: ScheduleCancelled;
1231
+ metadata: EventMetadata;
1232
+ }
1233
+ /**
1234
+ * Triggered when a schedule is canceled.
1235
+ * @permissionScope Read Calendar - Including PI
1236
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1237
+ * @permissionScope Manage Calendars
1238
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1239
+ * @permissionScope Manage Bookings
1240
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1241
+ * @permissionScope Read Bookings - Including Participants
1242
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1243
+ * @permissionScope Manage Bookings - all permissions
1244
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1245
+ * @permissionScope Read bookings calendar - including participants
1246
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1247
+ * @permissionId CALENDAR.SCHEDULE_READ_PI
1248
+ * @webhook
1249
+ * @eventType wix.calendar.v3.schedule_cancelled
1250
+ * @documentationMaturity preview
1251
+ */
1252
+ export declare function onScheduleCancelled(handler: (event: ScheduleCancelledEnvelope) => void | Promise<void>): void;
1253
+ export interface ScheduleClonedEnvelope {
1254
+ data: ScheduleCloned;
1255
+ metadata: EventMetadata;
1256
+ }
1257
+ /**
1258
+ * Triggered when a schedule is cloned.
1259
+ * @permissionScope Read Calendar - Including PI
1260
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1261
+ * @permissionScope Manage Calendars
1262
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1263
+ * @permissionScope Manage Bookings
1264
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1265
+ * @permissionScope Read Bookings - Including Participants
1266
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1267
+ * @permissionScope Manage Bookings - all permissions
1268
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1269
+ * @permissionScope Read bookings calendar - including participants
1270
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1271
+ * @permissionId CALENDAR.SCHEDULE_READ_PI
1272
+ * @webhook
1273
+ * @eventType wix.calendar.v3.schedule_cloned
1274
+ * @documentationMaturity preview
1275
+ */
1276
+ export declare function onScheduleCloned(handler: (event: ScheduleClonedEnvelope) => void | Promise<void>): void;
1277
+ export interface ScheduleCreatedEnvelope {
1278
+ entity: Schedule;
1279
+ metadata: EventMetadata;
1280
+ }
1281
+ /**
1282
+ * Triggered when a schedule is created.
1283
+ * @permissionScope Read Calendar - Including PI
1284
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1285
+ * @permissionScope Manage Calendars
1286
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1287
+ * @permissionScope Manage Bookings
1288
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1289
+ * @permissionScope Read Bookings - Including Participants
1290
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1291
+ * @permissionScope Manage Bookings - all permissions
1292
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1293
+ * @permissionScope Read bookings calendar - including participants
1294
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1295
+ * @permissionId CALENDAR.SCHEDULE_READ_PI
1296
+ * @webhook
1297
+ * @eventType wix.calendar.v3.schedule_created
1298
+ * @documentationMaturity preview
1299
+ */
1300
+ export declare function onScheduleCreated(handler: (event: ScheduleCreatedEnvelope) => void | Promise<void>): void;
1301
+ export interface ScheduleUpdatedEnvelope {
1302
+ entity: Schedule;
1303
+ metadata: EventMetadata;
1304
+ }
1305
+ /**
1306
+ * Triggered when a schedule is updated.
1307
+ * @permissionScope Read Calendar - Including PI
1308
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1309
+ * @permissionScope Manage Calendars
1310
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1311
+ * @permissionScope Manage Bookings
1312
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1313
+ * @permissionScope Read Bookings - Including Participants
1314
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1315
+ * @permissionScope Manage Bookings - all permissions
1316
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1317
+ * @permissionScope Read bookings calendar - including participants
1318
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1319
+ * @permissionId CALENDAR.SCHEDULE_READ_PI
1320
+ * @webhook
1321
+ * @eventType wix.calendar.v3.schedule_updated
1322
+ * @documentationMaturity preview
1323
+ */
1324
+ export declare function onScheduleUpdated(handler: (event: ScheduleUpdatedEnvelope) => void | Promise<void>): void;
1325
+ /**
1326
+ * Retrieves a schedule.
1327
+ * @param scheduleId - ID of the schedule to retrieve.
1328
+ * @public
1329
+ * @documentationMaturity preview
1330
+ * @requiredField scheduleId
1331
+ * @permissionId CALENDAR.SCHEDULE_READ
1332
+ * @permissionId CALENDAR.SCHEDULE_READ_PI
1333
+ * @permissionScope Read Bookings - Public Data
1334
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
1335
+ * @permissionScope Read Calendar - Including PI
1336
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1337
+ * @permissionScope Manage Calendars
1338
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1339
+ * @permissionScope Manage Bookings
1340
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1341
+ * @permissionScope Read Bookings - Including Participants
1342
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1343
+ * @permissionScope Read Bookings - all read permissions
1344
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1345
+ * @permissionScope Read Bookings Calendar Availability
1346
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
1347
+ * @permissionScope Read Calendar
1348
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
1349
+ * @permissionScope Manage Bookings - all permissions
1350
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1351
+ * @permissionScope Read bookings calendar - including participants
1352
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1353
+ * @permissionScope Read Bookings Calendar
1354
+ * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
1355
+ * @permissionScope Read Calendar - Including PI
1356
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1357
+ * @permissionScope Manage Calendars
1358
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1359
+ * @permissionScope Manage Bookings
1360
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1361
+ * @permissionScope Read Bookings - Including Participants
1362
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1363
+ * @permissionScope Manage Bookings - all permissions
1364
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1365
+ * @permissionScope Read bookings calendar - including participants
1366
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1367
+ * @applicableIdentity APP
1368
+ * @applicableIdentity VISITOR
1369
+ * @returns Retrieved schedule.
1370
+ * @fqn wix.calendar.schedules.v3.SchedulesService.GetSchedule
1371
+ */
1372
+ export declare function getSchedule(scheduleId: string | null, options?: GetScheduleOptions): Promise<Schedule & ScheduleNonNullableFields>;
1373
+ export interface GetScheduleOptions {
1374
+ /**
1375
+ * Information about which fields containing personal data to return. Refer to the
1376
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)
1377
+ * for more information.
1378
+ *
1379
+ * Supported values:
1380
+ * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
1381
+ * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
1382
+ *
1383
+ * Max: 1 field
1384
+ * Default: No personal data is returned.
1385
+ */
1386
+ fields?: RequestedFields[];
1387
+ }
1388
+ /**
1389
+ * Creates a query to retrieve a list of schedules.
1390
+ *
1391
+ * The `querySchedules()` function builds a query to retrieve a list of tip settings and returns a `SchedulesQueryBuilder` object.
1392
+ *
1393
+ * 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.
1394
+ *
1395
+ * 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.
1396
+ *
1397
+ * `querySchedules()` runs with the following `SchedulesQueryBuilder` default that you can override:
1398
+ *
1399
+ * + `limit` is `50`.
1400
+ * + Sorted by `id` in ascending order.
1401
+ *
1402
+ * 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"`.
1403
+ *
1404
+ * 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`.
1405
+ * @public
1406
+ * @documentationMaturity preview
1407
+ * @permissionScope Read Bookings - Public Data
1408
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
1409
+ * @permissionScope Read Calendar - Including PI
1410
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1411
+ * @permissionScope Manage Calendars
1412
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1413
+ * @permissionScope Manage Bookings
1414
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1415
+ * @permissionScope Read Bookings - Including Participants
1416
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1417
+ * @permissionScope Read Bookings - all read permissions
1418
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1419
+ * @permissionScope Read Bookings Calendar Availability
1420
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
1421
+ * @permissionScope Read Calendar
1422
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PUBLIC
1423
+ * @permissionScope Manage Bookings - all permissions
1424
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1425
+ * @permissionScope Read bookings calendar - including participants
1426
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1427
+ * @permissionScope Read Bookings Calendar
1428
+ * @permissionScopeId SCOPE.DC-BOOKINGS.SESSIONS-RESOURCES
1429
+ * @permissionScope Read Calendar - Including PI
1430
+ * @permissionScopeId SCOPE.DC-CALENDAR.READ-PI
1431
+ * @permissionScope Manage Calendars
1432
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1433
+ * @permissionScope Manage Bookings
1434
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1435
+ * @permissionScope Read Bookings - Including Participants
1436
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1437
+ * @permissionScope Manage Bookings - all permissions
1438
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1439
+ * @permissionScope Read bookings calendar - including participants
1440
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR-WITH-PARTICIPANTS
1441
+ * @permissionId CALENDAR.SCHEDULE_READ
1442
+ * @permissionId CALENDAR.SCHEDULE_READ_PI
1443
+ * @applicableIdentity APP
1444
+ * @applicableIdentity VISITOR
1445
+ * @fqn wix.calendar.schedules.v3.SchedulesService.QuerySchedules
1446
+ */
1447
+ export declare function querySchedules(options?: QuerySchedulesOptions): SchedulesQueryBuilder;
1448
+ export interface QuerySchedulesOptions {
1449
+ /**
1450
+ * Information about which fields containing personal data to return. Refer to the
1451
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions)
1452
+ * for more information.
1453
+ *
1454
+ * Supported values:
1455
+ * + `PI_FIELDS`: Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope.
1456
+ * + `OWN_PI_FIELDS`: Returns only fields containing your own personal data.
1457
+ *
1458
+ * Max: 1 field
1459
+ * Default: No personal data is returned.
1460
+ */
1461
+ fields?: RequestedFields[] | undefined;
1462
+ }
1463
+ interface QueryCursorResult {
1464
+ cursors: Cursors;
1465
+ hasNext: () => boolean;
1466
+ hasPrev: () => boolean;
1467
+ length: number;
1468
+ pageSize: number;
1469
+ }
1470
+ export interface SchedulesQueryResult extends QueryCursorResult {
1471
+ items: Schedule[];
1472
+ query: SchedulesQueryBuilder;
1473
+ next: () => Promise<SchedulesQueryResult>;
1474
+ prev: () => Promise<SchedulesQueryResult>;
1475
+ }
1476
+ export interface SchedulesQueryBuilder {
1477
+ /** @param propertyName - Property whose value is compared with `value`.
1478
+ * @param value - Value to compare against.
1479
+ * @documentationMaturity preview
1480
+ */
1481
+ eq: (propertyName: '_id' | 'externalId' | 'status' | 'appId', value: any) => SchedulesQueryBuilder;
1482
+ /** @documentationMaturity preview */
1483
+ in: (propertyName: '_id' | 'externalId' | 'status' | 'appId', value: any) => SchedulesQueryBuilder;
1484
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1485
+ * @documentationMaturity preview
1486
+ */
1487
+ limit: (limit: number) => SchedulesQueryBuilder;
1488
+ /** @param cursor - A pointer to specific record
1489
+ * @documentationMaturity preview
1490
+ */
1491
+ skipTo: (cursor: string) => SchedulesQueryBuilder;
1492
+ /** @documentationMaturity preview */
1493
+ find: () => Promise<SchedulesQueryResult>;
1494
+ }
1495
+ /**
1496
+ * Creates a schedule.
1497
+ *
1498
+ *
1499
+ * If you want the schedule's events to appear in the
1500
+ * [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
1501
+ * you must set `appId` to the ID of the Wix Bookings app by providing
1502
+ * `{"appId": "13d21c63-b5ec-5912-8397-c3a5ddb27a97"}`.
1503
+ * @param schedule - Schedule to create.
1504
+ * @public
1505
+ * @documentationMaturity preview
1506
+ * @requiredField schedule
1507
+ * @requiredField schedule.defaultConferencingDetails.guestUrl
1508
+ * @requiredField schedule.defaultConferencingDetails.hostUrl
1509
+ * @requiredField schedule.defaultConferencingDetails.type
1510
+ * @requiredField schedule.defaultLocation.type
1511
+ * @requiredField schedule.permissions.identity
1512
+ * @requiredField schedule.permissions.role
1513
+ * @permissionId CALENDAR.SCHEDULE_CREATE
1514
+ * @permissionScope Manage Calendars
1515
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1516
+ * @permissionScope Manage Bookings
1517
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1518
+ * @permissionScope Manage Bookings - all permissions
1519
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1520
+ * @applicableIdentity APP
1521
+ * @returns Created schedule.
1522
+ * @fqn wix.calendar.schedules.v3.SchedulesService.CreateSchedule
1523
+ */
1524
+ export declare function createSchedule(schedule: Schedule, options?: CreateScheduleOptions): Promise<Schedule & ScheduleNonNullableFields>;
1525
+ export interface CreateScheduleOptions {
1526
+ /**
1527
+ * Idempotency key guaranteeing that you don't create the same schedule more
1528
+ * than once.
1529
+ */
1530
+ idempotencyKey?: string | null;
1531
+ }
1532
+ /**
1533
+ * Updates a schedule.
1534
+ *
1535
+ *
1536
+ * Each time the schedule is updated,
1537
+ * `revision` increments by 1.
1538
+ * The current `revision` must be passed when updating the schedule.
1539
+ * This ensures you're working with the latest schedule
1540
+ * and prevents unintended overwrites.
1541
+ * @param _id - Schedule ID.
1542
+ * @public
1543
+ * @documentationMaturity preview
1544
+ * @requiredField _id
1545
+ * @requiredField schedule
1546
+ * @requiredField schedule.permissions.identity
1547
+ * @requiredField schedule.permissions.role
1548
+ * @requiredField schedule.revision
1549
+ * @permissionId CALENDAR.SCHEDULE_UPDATE
1550
+ * @permissionScope Manage Calendars
1551
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1552
+ * @permissionScope Manage Bookings
1553
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1554
+ * @permissionScope Manage Bookings - all permissions
1555
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1556
+ * @applicableIdentity APP
1557
+ * @returns Updated schedule.
1558
+ * @fqn wix.calendar.schedules.v3.SchedulesService.UpdateSchedule
1559
+ */
1560
+ export declare function updateSchedule(_id: string | null, schedule: UpdateSchedule, options?: UpdateScheduleOptions): Promise<Schedule & ScheduleNonNullableFields>;
1561
+ export interface UpdateSchedule {
1562
+ /**
1563
+ * Schedule ID.
1564
+ * @readonly
1565
+ */
1566
+ _id?: string | null;
1567
+ /**
1568
+ * External ID. You can't update the external ID.
1569
+ *
1570
+ * If the schedule belongs to a Bookings staff member, identical to the ID of
1571
+ * the [resource](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction).
1572
+ * If the schedule belongs to a Bookings service, identical to the ID of
1573
+ * the [service](https://dev.wix.com/docs/sdk/backend-modules/bookings/services/setup).
1574
+ */
1575
+ externalId?: string | null;
1576
+ /**
1577
+ * Schedule name.
1578
+ *
1579
+ * Min: 1 character
1580
+ * Max: 200 characters
1581
+ */
1582
+ name?: string | null;
1583
+ /**
1584
+ * Schedule status.
1585
+ *
1586
+ * Supported values:
1587
+ * - `ACTIVE`: You can add events to the schedule or update its fields.
1588
+ * - `CANCELLED`: You can't add events to the schedule or update its fields.
1589
+ *
1590
+ * Default: `ACTIVE`
1591
+ * @readonly
1592
+ */
1593
+ status?: Status;
1594
+ /**
1595
+ * Time zone the schedule is associated with in
1596
+ * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
1597
+ * For example, `America/New_York`.
1598
+ *
1599
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).
1600
+ *
1601
+ * Min: 1 character
1602
+ * Max: 150 characters
1603
+ */
1604
+ timeZone?: string | null;
1605
+ /**
1606
+ * Whether the schedule's `timeZone` is automatically synced from
1607
+ * `timeZone` of the business [site properties](https://dev.wix.com/docs/sdk/backend-modules/business-tools/site-properties/get-site-properties).
1608
+ *
1609
+ * Default: `true`
1610
+ */
1611
+ businessTimeZoneEnabled?: boolean | null;
1612
+ /**
1613
+ * Default `title` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
1614
+ * that are added to the schedule.
1615
+ *
1616
+ * Min: 1 character
1617
+ * Max: 200 characters
1618
+ */
1619
+ defaultTitle?: string | null;
1620
+ /**
1621
+ * Default `location` for [events](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/event-object)
1622
+ * that are added to the schedule.
1623
+ */
1624
+ defaultLocation?: Location;
1625
+ /**
1626
+ * Default `totalCapacity` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
1627
+ * that are added to the schedule.
1628
+ *
1629
+ * Min: `0`
1630
+ */
1631
+ defaultCapacity?: number | null;
1632
+ /**
1633
+ * Default `conferencingDetails` for [events](https://dev.wix.com/docs/sdk/backend-modules/calendar/events/introduction)
1634
+ * that are added to the schedule.
1635
+ * Returned only if explicitly requested. For more details, see the [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#retrieve-personal-information).
1636
+ */
1637
+ defaultConferencingDetails?: ConferencingDetails;
1638
+ /**
1639
+ * ID of the app that's associated with the schedule. You can't update `appId`.
1640
+ * If you want to create a schedule and ensure its associated events appear
1641
+ * in the [Bookings calendar](https://support.wix.com/en/article/wix-bookings-about-the-wix-booking-calendar),
1642
+ * you must provide the Wix Bookings app ID
1643
+ * `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
1644
+ */
1645
+ appId?: string | null;
1646
+ /**
1647
+ * List of permissions associated with the schedule. Refer to the
1648
+ * [permissions article](https://dev.wix.com/docs/sdk/backend-modules/calendar/permissions#roles)
1649
+ * for more information.
1650
+ *
1651
+ * Max: 1 permission
1652
+ */
1653
+ permissions?: Permission[];
1654
+ /** Extensions enabling applications or users to save custom data related to the schedule. */
1655
+ extendedFields?: ExtendedFields;
1656
+ /**
1657
+ * Revision number, which increments by 1 each time the schedule is updated.
1658
+ * To prevent conflicting changes, the current revision must be passed when updating the schedule.
1659
+ * Ignored when creating a schedule.
1660
+ * @readonly
1661
+ */
1662
+ revision?: string | null;
1663
+ /**
1664
+ * Date the schedule was created in `YYYY-MM-DDThh:mm:ss.sssZ` format.
1665
+ * @readonly
1666
+ */
1667
+ _createdDate?: Date | null;
1668
+ /**
1669
+ * Date the schedule was last updated in `YYYY-MM-DDThh:mm:ss.sssZ` format.
1670
+ * @readonly
1671
+ */
1672
+ _updatedDate?: Date | null;
1673
+ }
1674
+ export interface UpdateScheduleOptions {
1675
+ /**
1676
+ * Information about whether participants of the schedule's updated events are
1677
+ * notified and the message they receive.
1678
+ */
1679
+ participantNotification?: ParticipantNotification;
1680
+ }
1681
+ /**
1682
+ * Sets a schedule's `status` to `CANCELLED`.
1683
+ *
1684
+ *
1685
+ * Also cancels future events belonging to the schedule.
1686
+ *
1687
+ * Once a schedule is marked as `CANCELLED`, you can't reactivate it, update it,
1688
+ * or assign new events.
1689
+ * @param scheduleId - ID of the schedule to cancel.
1690
+ * @public
1691
+ * @documentationMaturity preview
1692
+ * @requiredField scheduleId
1693
+ * @permissionId CALENDAR.SCHEDULE_CANCEL
1694
+ * @permissionScope Manage Calendars
1695
+ * @permissionScopeId SCOPE.DC-CALENDAR.MANAGE
1696
+ * @permissionScope Manage Bookings
1697
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1698
+ * @permissionScope Manage Bookings - all permissions
1699
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1700
+ * @applicableIdentity APP
1701
+ * @fqn wix.calendar.schedules.v3.SchedulesService.CancelSchedule
1702
+ */
1703
+ export declare function cancelSchedule(scheduleId: string | null, options?: CancelScheduleOptions): Promise<CancelScheduleResponse & CancelScheduleResponseNonNullableFields>;
1704
+ export interface CancelScheduleOptions {
1705
+ /**
1706
+ * Whether to preserve future events with participants.
1707
+ * Default: `false`.
1708
+ */
1709
+ preserveFutureEventsWithParticipants?: boolean | null;
1710
+ /**
1711
+ * Information about whether participants of the schedule's updated events are
1712
+ * notified and the message they receive.
1713
+ */
1714
+ participantNotification?: ParticipantNotification;
1715
+ }
1716
+ export {};