@wix/calendar 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.
@@ -0,0 +1,1519 @@
1
+ interface Schedule {
2
+ /**
3
+ * The schedule ID.
4
+ * @readonly
5
+ */
6
+ _id?: string | null;
7
+ /**
8
+ * Optional external ID. Cannot change.
9
+ *
10
+ * For instance, might be the ID of the Bookings Resource or Service.
11
+ */
12
+ externalId?: string | null;
13
+ /**
14
+ * The name of the schedule.
15
+ *
16
+ * For instance, might be the name of the Bookings Resource or Service.
17
+ */
18
+ name?: string | null;
19
+ /**
20
+ * The schedule status.
21
+ *
22
+ * The possible values are:
23
+ * - `"ACTIVE"` Schedule is active. Default value.
24
+ * - `"CANCELLED"` Schedule has been cancelled.
25
+ * @readonly
26
+ */
27
+ status?: Status;
28
+ /**
29
+ * The schedule time zone, formatted according to the IANA time zone format.
30
+ * Must be a regional time zone (Area/Location) or UTC.
31
+ *
32
+ * By default the time zone is derived from the Wix Business, and can be overridden by setting `businessTimeZoneEnabled` to false.
33
+ */
34
+ timeZone?: string | null;
35
+ /**
36
+ * Whether to use the time zone of the Wix Business.
37
+ * Default is true.
38
+ */
39
+ businessTimeZoneEnabled?: boolean | null;
40
+ /** Default title for the schedule's events. */
41
+ defaultTitle?: string | null;
42
+ /** Default location for the schedule's events. */
43
+ defaultLocation?: Location;
44
+ /**
45
+ * Default capacity for the schedule's events.
46
+ *
47
+ * The capacity of an event is the max number of participants that can participate in an event.
48
+ */
49
+ defaultCapacity?: number | null;
50
+ /** Default conferencing details for the schedule's events. */
51
+ defaultConferencingDetails?: ConferencingDetails;
52
+ /**
53
+ * Optional ID of the Wix app owning the schedule.
54
+ * Cannot change once set.
55
+ *
56
+ * For example, to create a schedule in the Wix Bookings App Calendar, provide `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
57
+ */
58
+ appId?: string | null;
59
+ /**
60
+ * List of granted permissions for this schedule.
61
+ *
62
+ * E.g, a Bookings Staff Member has full write access to its schedule and limited access to events it provides.
63
+ */
64
+ permissions?: Permission[];
65
+ /** Extensions enabling applications or users to save custom data related to the schedule. */
66
+ extendedFields?: ExtendedFields;
67
+ /**
68
+ * The schedule revision number, which incremented on updates.
69
+ *
70
+ * The current revision should be provided on updates to prevent conflicting changes.
71
+ * @readonly
72
+ */
73
+ revision?: string | null;
74
+ /**
75
+ * Date the schedule was created.
76
+ * @readonly
77
+ */
78
+ _createdDate?: Date;
79
+ /**
80
+ * Date the schedule was last updated.
81
+ * @readonly
82
+ */
83
+ _updatedDate?: Date;
84
+ }
85
+ declare enum Status {
86
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
87
+ /** Schedule is active. Default value. */
88
+ ACTIVE = "ACTIVE",
89
+ /** Schedule has been cancelled. */
90
+ CANCELLED = "CANCELLED"
91
+ }
92
+ interface Location {
93
+ /**
94
+ * The location ID. Optional.
95
+ * Currently only supported for locations of type `BUSINESS`, and used to reference the Wix Business Location.
96
+ */
97
+ _id?: string | null;
98
+ /**
99
+ * The location type.
100
+ * The possible values are:
101
+ * - `"BUSINESS"` event takes place at the business location.
102
+ * - `"CUSTOM"` event takes place at the custom location.
103
+ */
104
+ type?: LocationType;
105
+ /**
106
+ * The location name. Optional.
107
+ * Derived from the Wix Business Location if the location is of type `BUSINESS`.
108
+ */
109
+ name?: string | null;
110
+ /**
111
+ * The location address. Optional.
112
+ * Derived from the Wix Business Location if the location is of type `BUSINESS`.
113
+ */
114
+ address?: string | null;
115
+ }
116
+ declare enum LocationType {
117
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
118
+ /** The event takes place at the business location. */
119
+ BUSINESS = "BUSINESS",
120
+ /** The event takes place at the customer location. */
121
+ CUSTOMER = "CUSTOMER",
122
+ /** The event takes place at the custom location. */
123
+ CUSTOM = "CUSTOM"
124
+ }
125
+ interface ConferencingDetails {
126
+ /** World known conference type, such as Zoom. */
127
+ type?: Type;
128
+ /** URL used by the host to start the conference. */
129
+ hostUrl?: string | null;
130
+ /** URL used by a guest to join the conference. */
131
+ guestUrl?: string | null;
132
+ /** Optional conference password. */
133
+ password?: string | null;
134
+ /** Optional conference ID in an external system. */
135
+ externalId?: string | null;
136
+ }
137
+ declare enum Type {
138
+ UNKNOWN_TYPE = "UNKNOWN_TYPE",
139
+ ZOOM = "ZOOM",
140
+ CUSTOM = "CUSTOM"
141
+ }
142
+ interface Permission {
143
+ /** The identity granted the permission. */
144
+ identity?: CommonIdentificationData;
145
+ /**
146
+ * The permission role.
147
+ *
148
+ * The possible values are:
149
+ * - `"WRITER"` Role grants full write and read access.
150
+ * - `"COMMENTER"` Role grants full read access and permission to edit notes.
151
+ */
152
+ role?: Role;
153
+ }
154
+ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
155
+ /** ID of a Wix user (site owner, contributor, etc.). */
156
+ wixUserId?: string;
157
+ }
158
+ /** @oneof */
159
+ interface CommonIdentificationDataIdOneOf {
160
+ /** ID of a Wix user (site owner, contributor, etc.). */
161
+ wixUserId?: string;
162
+ }
163
+ declare enum IdentityType {
164
+ UNKNOWN = "UNKNOWN",
165
+ WIX_USER = "WIX_USER"
166
+ }
167
+ declare enum Role {
168
+ UNKNOWN_ROLE = "UNKNOWN_ROLE",
169
+ /** Role grants full write and read access. */
170
+ WRITER = "WRITER",
171
+ /** Role grants full read access and permission to edit notes. */
172
+ COMMENTER = "COMMENTER"
173
+ }
174
+ interface ExtendedFields {
175
+ /**
176
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
177
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
178
+ *
179
+ * You can only access fields for which you have the appropriate permissions.
180
+ *
181
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
182
+ */
183
+ namespaces?: Record<string, Record<string, any>>;
184
+ }
185
+ interface GetScheduleRequest {
186
+ /** The ID of the schedule to retrieve. */
187
+ scheduleId: string | null;
188
+ /** List of additional fields to be included in the response. */
189
+ fields?: RequestedFields[];
190
+ }
191
+ declare enum RequestedFields {
192
+ UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
193
+ /**
194
+ * Include fields containing personal information.
195
+ * Requires the `CALENDAR.SCHEDULE_READ_PI` additional permission.
196
+ */
197
+ PI_FIELDS = "PI_FIELDS",
198
+ /**
199
+ * Include fields containing personal information for schedules the current caller has access to.
200
+ * See `schedule.permissions` for more details.
201
+ */
202
+ OWN_PI_FIELDS = "OWN_PI_FIELDS"
203
+ }
204
+ interface GetScheduleResponse {
205
+ /** The schedule. */
206
+ schedule?: Schedule;
207
+ }
208
+ interface QuerySchedulesRequest {
209
+ /** Query containing filters and paging. */
210
+ query?: CursorQuery;
211
+ /** List of additional fields to be included in the response. */
212
+ fields?: RequestedFields[];
213
+ }
214
+ /** TODO Diverge */
215
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
216
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
217
+ cursorPaging?: CursorPaging;
218
+ /**
219
+ * Filter object.
220
+ * See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
221
+ * for more information.
222
+ *
223
+ * Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`.
224
+ *
225
+ * For a detailed list of supported filters, see Supported Filters.
226
+ */
227
+ filter?: Record<string, any> | null;
228
+ }
229
+ /** @oneof */
230
+ interface CursorQueryPagingMethodOneOf {
231
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
232
+ cursorPaging?: CursorPaging;
233
+ }
234
+ /** TODO Diverge */
235
+ interface CursorPaging {
236
+ /**
237
+ * Number of events to return.
238
+ * Defaults to `50`. Maximum `1000`.
239
+ */
240
+ limit?: number | null;
241
+ /**
242
+ * Pointer to the next or previous page in the list of results.
243
+ *
244
+ * You can get the relevant cursor token
245
+ * from the `pagingMetadata` object in the previous call's response.
246
+ * Not relevant for the first request.
247
+ */
248
+ cursor?: string | null;
249
+ }
250
+ interface QuerySchedulesResponse {
251
+ /** The schedules matching the provided query. */
252
+ schedules?: Schedule[];
253
+ /** Paging metadata. */
254
+ pagingMetadata?: CursorPagingMetadata;
255
+ }
256
+ /** TODO Diverge */
257
+ interface CursorPagingMetadata {
258
+ /** Number of items returned in the response. */
259
+ count?: number | null;
260
+ /** 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). */
261
+ cursors?: Cursors;
262
+ /**
263
+ * Indicates if there are more results after the current page.
264
+ * If `true`, another page of results can be retrieved.
265
+ * If `false`, this is the last page.
266
+ */
267
+ hasNext?: boolean | null;
268
+ }
269
+ interface Cursors {
270
+ /** Cursor pointing to next page in the list of results. */
271
+ next?: string | null;
272
+ /** Cursor pointing to previous page in the list of results. */
273
+ prev?: string | null;
274
+ }
275
+ interface CreateScheduleRequest {
276
+ /** The schedule to create. */
277
+ schedule: Schedule;
278
+ /** Optional Idempotency key. */
279
+ idempotencyKey?: string | null;
280
+ }
281
+ interface CreateScheduleResponse {
282
+ /** The created schedule. */
283
+ schedule?: Schedule;
284
+ }
285
+ interface UpdateScheduleRequest {
286
+ /** The schedule to update. */
287
+ schedule: Schedule;
288
+ /** Whether to notify participants regarding the changes. */
289
+ participantNotification?: ParticipantNotification;
290
+ }
291
+ interface ParticipantNotification {
292
+ /**
293
+ * Whether to notify the participant/s about changes made to the schedule or event.
294
+ * Default is false.
295
+ */
296
+ notifyParticipants?: boolean | null;
297
+ /** Optional custom message to send. */
298
+ message?: string | null;
299
+ }
300
+ interface UpdateScheduleResponse {
301
+ /** The updated schedule. */
302
+ schedule?: Schedule;
303
+ }
304
+ /** `PRIVATE` until we'll have standard events metadata from Infra. */
305
+ interface ScheduleUpdatedWithMetadata {
306
+ /** The updated schedule. */
307
+ schedule?: Schedule;
308
+ /** Whether to notify participants regarding the changes. */
309
+ participantNotification?: ParticipantNotification;
310
+ }
311
+ interface CloneScheduleRequest {
312
+ /** The ID of the schedule to clone. */
313
+ scheduleId: string | null;
314
+ /** Optional values to override. */
315
+ schedule?: Schedule;
316
+ }
317
+ interface CloneScheduleResponse {
318
+ /** The new cloned schedule. */
319
+ schedule?: Schedule;
320
+ }
321
+ interface ScheduleCloned {
322
+ /** The new cloned schedule. */
323
+ schedule?: Schedule;
324
+ /** The clone trigger. */
325
+ trigger?: Trigger;
326
+ /** The original Meta Site ID if different. */
327
+ originalMetaSiteId?: string | null;
328
+ /** The original schedule ID if different. */
329
+ originalScheduleId?: string | null;
330
+ }
331
+ declare enum Trigger {
332
+ UNKNOWN_TRIGGER = "UNKNOWN_TRIGGER",
333
+ /** Schedule cloned using the `CloneSchedule` API. */
334
+ SCHEDULE_CLONED = "SCHEDULE_CLONED",
335
+ /** Site duplicated from the same account. */
336
+ SITE_DUPLICATED_FROM_SAME_ACCOUNT = "SITE_DUPLICATED_FROM_SAME_ACCOUNT",
337
+ /** Site duplicated from a different account. */
338
+ SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT = "SITE_DUPLICATED_FROM_DIFFERENT_ACCOUNT",
339
+ /** Site created from template. */
340
+ SITE_CREATED_FROM_TEMPLATE = "SITE_CREATED_FROM_TEMPLATE",
341
+ /** Other. */
342
+ OTHER = "OTHER"
343
+ }
344
+ interface CancelScheduleRequest {
345
+ /** The ID of the schedule to cancel. */
346
+ scheduleId: string | null;
347
+ /**
348
+ * Whether to preserve future events with participants.
349
+ * Default is false.
350
+ */
351
+ preserveFutureEventsWithParticipants?: boolean | null;
352
+ /** Whether to notify participants regarding the changes. */
353
+ participantNotification?: ParticipantNotification;
354
+ }
355
+ interface CancelScheduleResponse {
356
+ /** The cancelled schedule. */
357
+ schedule?: Schedule;
358
+ }
359
+ interface ScheduleCancelled {
360
+ /** The cancelled schedule. */
361
+ schedule?: Schedule;
362
+ /** Whether to preserve future events with participants. */
363
+ preserveFutureEventsWithParticipants?: boolean | null;
364
+ }
365
+ interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
366
+ /** Emitted on a meta site creation. */
367
+ siteCreated?: SiteCreated;
368
+ /** Emitted on a meta site transfer completion. */
369
+ siteTransferred?: SiteTransferred;
370
+ /** Emitted on a meta site deletion. */
371
+ siteDeleted?: SiteDeleted;
372
+ /** Emitted on a meta site restoration. */
373
+ siteUndeleted?: SiteUndeleted;
374
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
375
+ sitePublished?: SitePublished;
376
+ /** Emitted on a meta site unpublish. */
377
+ siteUnpublished?: SiteUnpublished;
378
+ /** Emitted when meta site is marked as template. */
379
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
380
+ /** Emitted when meta site is marked as a WixSite. */
381
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
382
+ /** Emitted when an application is provisioned (installed). */
383
+ serviceProvisioned?: ServiceProvisioned;
384
+ /** Emitted when an application is removed (uninstalled). */
385
+ serviceRemoved?: ServiceRemoved;
386
+ /** Emitted when meta site name (URL slug) is changed. */
387
+ siteRenamedPayload?: SiteRenamed;
388
+ /** Emitted when meta site was permanently deleted. */
389
+ hardDeleted?: SiteHardDeleted;
390
+ /** Emitted on a namespace change. */
391
+ namespaceChanged?: NamespaceChanged;
392
+ /** Emitted when Studio is attached. */
393
+ studioAssigned?: StudioAssigned;
394
+ /** Emitted when Studio is detached. */
395
+ studioUnassigned?: StudioUnassigned;
396
+ /** A meta site id. */
397
+ metaSiteId?: string;
398
+ /** A meta site version. Monotonically increasing. */
399
+ version?: string;
400
+ /** A timestamp of the event. */
401
+ timestamp?: string;
402
+ /** A list of "assets" (applications). The same as MetaSiteContext. */
403
+ assets?: Asset[];
404
+ }
405
+ /** @oneof */
406
+ interface MetaSiteSpecialEventPayloadOneOf {
407
+ /** Emitted on a meta site creation. */
408
+ siteCreated?: SiteCreated;
409
+ /** Emitted on a meta site transfer completion. */
410
+ siteTransferred?: SiteTransferred;
411
+ /** Emitted on a meta site deletion. */
412
+ siteDeleted?: SiteDeleted;
413
+ /** Emitted on a meta site restoration. */
414
+ siteUndeleted?: SiteUndeleted;
415
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
416
+ sitePublished?: SitePublished;
417
+ /** Emitted on a meta site unpublish. */
418
+ siteUnpublished?: SiteUnpublished;
419
+ /** Emitted when meta site is marked as template. */
420
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
421
+ /** Emitted when meta site is marked as a WixSite. */
422
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
423
+ /** Emitted when an application is provisioned (installed). */
424
+ serviceProvisioned?: ServiceProvisioned;
425
+ /** Emitted when an application is removed (uninstalled). */
426
+ serviceRemoved?: ServiceRemoved;
427
+ /** Emitted when meta site name (URL slug) is changed. */
428
+ siteRenamedPayload?: SiteRenamed;
429
+ /** Emitted when meta site was permanently deleted. */
430
+ hardDeleted?: SiteHardDeleted;
431
+ /** Emitted on a namespace change. */
432
+ namespaceChanged?: NamespaceChanged;
433
+ /** Emitted when Studio is attached. */
434
+ studioAssigned?: StudioAssigned;
435
+ /** Emitted when Studio is detached. */
436
+ studioUnassigned?: StudioUnassigned;
437
+ }
438
+ interface Asset {
439
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
440
+ appDefId?: string;
441
+ /** An instance id. For legacy reasons may be UUID or a string. */
442
+ instanceId?: string;
443
+ /** An application state. */
444
+ state?: State;
445
+ }
446
+ declare enum State {
447
+ UNKNOWN = "UNKNOWN",
448
+ ENABLED = "ENABLED",
449
+ DISABLED = "DISABLED",
450
+ PENDING = "PENDING",
451
+ DEMO = "DEMO"
452
+ }
453
+ interface SiteCreated {
454
+ /** A template identifier (empty if not created from a template). */
455
+ originTemplateId?: string;
456
+ /** An account id of the owner. */
457
+ ownerId?: string;
458
+ /** A context in which meta site was created. */
459
+ context?: SiteCreatedContext;
460
+ /**
461
+ * A meta site id from which this site was created.
462
+ *
463
+ * In case of a creation from a template it's a template id.
464
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
465
+ */
466
+ originMetaSiteId?: string | null;
467
+ /** A meta site name (URL slug). */
468
+ siteName?: string;
469
+ /** A namespace. */
470
+ namespace?: Namespace;
471
+ }
472
+ declare enum SiteCreatedContext {
473
+ /** A valid option, we don't expose all reasons why site might be created. */
474
+ OTHER = "OTHER",
475
+ /** A meta site was created from template. */
476
+ FROM_TEMPLATE = "FROM_TEMPLATE",
477
+ /** A meta site was created by copying of the transfferred meta site. */
478
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
479
+ /** A copy of existing meta site. */
480
+ DUPLICATE = "DUPLICATE",
481
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
482
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
483
+ /** deprecated A meta site was created for Flash editor. */
484
+ FLASH = "FLASH"
485
+ }
486
+ declare enum Namespace {
487
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
488
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
489
+ WIX = "WIX",
490
+ /** 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. */
491
+ SHOUT_OUT = "SHOUT_OUT",
492
+ /** 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. */
493
+ ALBUMS = "ALBUMS",
494
+ /** 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. */
495
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
496
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
497
+ HOTELS = "HOTELS",
498
+ /** 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. */
499
+ CLUBS = "CLUBS",
500
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
501
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
502
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
503
+ DEV_SITE = "DEV_SITE",
504
+ /** 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. */
505
+ LOGOS = "LOGOS",
506
+ /** 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. */
507
+ VIDEO_MAKER = "VIDEO_MAKER",
508
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
509
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
510
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
511
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
512
+ /**
513
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
514
+ *
515
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
516
+ */
517
+ HTML_DRAFT = "HTML_DRAFT",
518
+ /**
519
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
520
+ * Will be accessible from Site List and will not have a website app.
521
+ * Once the user attaches a site, the site will become a regular wixsite.
522
+ */
523
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
524
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
525
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
526
+ /** It is to be used in the Business First efforts. */
527
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
528
+ /** Bookings business flow with no site. */
529
+ ANYWHERE = "ANYWHERE",
530
+ /** Namespace for Headless Backoffice with no editor */
531
+ HEADLESS = "HEADLESS",
532
+ /**
533
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
534
+ * The site will be used for account level CSM feature for enterprise
535
+ */
536
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
537
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
538
+ RISE = "RISE",
539
+ /**
540
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
541
+ * There's a blank site behind the scene but it's blank).
542
+ * The Mobile company will be the owner of this namespace.
543
+ */
544
+ BRANDED_FIRST = "BRANDED_FIRST"
545
+ }
546
+ /** Site transferred to another user. */
547
+ interface SiteTransferred {
548
+ /** A previous owner id (user that transfers meta site). */
549
+ oldOwnerId?: string;
550
+ /** A new owner id (user that accepts meta site). */
551
+ newOwnerId?: string;
552
+ }
553
+ /** Soft deletion of the meta site. Could be restored. */
554
+ interface SiteDeleted {
555
+ /** A deletion context. */
556
+ deleteContext?: DeleteContext;
557
+ }
558
+ interface DeleteContext {
559
+ /** When the meta site was deleted. */
560
+ dateDeleted?: Date;
561
+ /** A status. */
562
+ deleteStatus?: DeleteStatus;
563
+ /** A reason (flow). */
564
+ deleteOrigin?: string;
565
+ /** A service that deleted it. */
566
+ initiatorId?: string | null;
567
+ }
568
+ declare enum DeleteStatus {
569
+ UNKNOWN = "UNKNOWN",
570
+ TRASH = "TRASH",
571
+ DELETED = "DELETED",
572
+ PENDING_PURGE = "PENDING_PURGE"
573
+ }
574
+ /** Restoration of the meta site. */
575
+ interface SiteUndeleted {
576
+ }
577
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
578
+ interface SitePublished {
579
+ }
580
+ interface SiteUnpublished {
581
+ /** A list of URLs previously associated with the meta site. */
582
+ urls?: string[];
583
+ }
584
+ interface SiteMarkedAsTemplate {
585
+ }
586
+ interface SiteMarkedAsWixSite {
587
+ }
588
+ interface ServiceProvisioned {
589
+ /** Either UUID or EmbeddedServiceType. */
590
+ appDefId?: string;
591
+ /** Not only UUID. Something here could be something weird. */
592
+ instanceId?: string;
593
+ /** An instance id from which this instance is originated. */
594
+ originInstanceId?: string;
595
+ /** A version. */
596
+ version?: string | null;
597
+ }
598
+ interface ServiceRemoved {
599
+ /** Either UUID or EmbeddedServiceType. */
600
+ appDefId?: string;
601
+ /** Not only UUID. Something here could be something weird. */
602
+ instanceId?: string;
603
+ /** A version. */
604
+ version?: string | null;
605
+ }
606
+ /** Rename of the site. Meaning, free public url has been changed as well. */
607
+ interface SiteRenamed {
608
+ /** A new meta site name (URL slug). */
609
+ newSiteName?: string;
610
+ /** A previous meta site name (URL slug). */
611
+ oldSiteName?: string;
612
+ }
613
+ /**
614
+ * Hard deletion of the meta site.
615
+ *
616
+ * Could not be restored. Therefore it's desirable to cleanup data.
617
+ */
618
+ interface SiteHardDeleted {
619
+ /** A deletion context. */
620
+ deleteContext?: DeleteContext;
621
+ }
622
+ interface NamespaceChanged {
623
+ /** A previous namespace. */
624
+ oldNamespace?: Namespace;
625
+ /** A new namespace. */
626
+ newNamespace?: Namespace;
627
+ }
628
+ /** Assigned Studio editor */
629
+ interface StudioAssigned {
630
+ }
631
+ /** Unassigned Studio editor */
632
+ interface StudioUnassigned {
633
+ }
634
+ interface Empty {
635
+ }
636
+ /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
637
+ interface SitePropertiesNotification {
638
+ /** The site ID for which this update notification applies. */
639
+ metasiteId?: string;
640
+ /** The actual update event. */
641
+ event?: SitePropertiesEvent;
642
+ /** A convenience set of mappings from the MetaSite ID to its constituent services. */
643
+ translations?: Translation[];
644
+ /** Context of the notification */
645
+ changeContext?: ChangeContext;
646
+ }
647
+ /** The actual update event for a particular notification. */
648
+ interface SitePropertiesEvent {
649
+ /** Version of the site's properties represented by this update. */
650
+ version?: number;
651
+ /** Updated properties. */
652
+ properties?: Properties;
653
+ }
654
+ interface Properties {
655
+ /** Site categories. */
656
+ categories?: Categories;
657
+ /** Site locale. */
658
+ locale?: Locale;
659
+ /**
660
+ * Site language.
661
+ *
662
+ * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
663
+ */
664
+ language?: string | null;
665
+ /**
666
+ * Site currency format used to bill customers.
667
+ *
668
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
669
+ */
670
+ paymentCurrency?: string | null;
671
+ /** Timezone in `America/New_York` format. */
672
+ timeZone?: string | null;
673
+ /** Email address. */
674
+ email?: string | null;
675
+ /** Phone number. */
676
+ phone?: string | null;
677
+ /** Fax number. */
678
+ fax?: string | null;
679
+ /** Address. */
680
+ address?: Address;
681
+ /** Site display name. */
682
+ siteDisplayName?: string | null;
683
+ /** Business name. */
684
+ businessName?: string | null;
685
+ /** Path to the site's logo in Wix Media (without Wix Media base URL). */
686
+ logo?: string | null;
687
+ /** Site description. */
688
+ description?: string | null;
689
+ /**
690
+ * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
691
+ *
692
+ * __Note:__ Not supported by Wix Bookings.
693
+ */
694
+ businessSchedule?: BusinessSchedule;
695
+ /** Supported languages of a site and the primary language. */
696
+ multilingual?: Multilingual;
697
+ /** Cookie policy the site owner defined for their site (before the users interacts with/limits it). */
698
+ consentPolicy?: ConsentPolicy;
699
+ /**
700
+ * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
701
+ *
702
+ * Site business type.
703
+ */
704
+ businessConfig?: string | null;
705
+ /** External site url that uses Wix as its headless business solution */
706
+ externalSiteUrl?: string | null;
707
+ /** Track clicks analytics */
708
+ trackClicksAnalytics?: boolean;
709
+ }
710
+ interface Categories {
711
+ /** Primary site category. */
712
+ primary?: string;
713
+ /** Secondary site category. */
714
+ secondary?: string[];
715
+ /** Business Term Id */
716
+ businessTermId?: string | null;
717
+ }
718
+ interface Locale {
719
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
720
+ languageCode?: string;
721
+ /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
722
+ country?: string;
723
+ }
724
+ interface Address {
725
+ /** Street name. */
726
+ street?: string;
727
+ /** City name. */
728
+ city?: string;
729
+ /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
730
+ country?: string;
731
+ /** State. */
732
+ state?: string;
733
+ /** Zip or postal code. */
734
+ zip?: string;
735
+ /** Extra information to be displayed in the address. */
736
+ hint?: AddressHint;
737
+ /** Whether this address represents a physical location. */
738
+ isPhysical?: boolean;
739
+ /** Google-formatted version of this address. */
740
+ googleFormattedAddress?: string;
741
+ /** Street number. */
742
+ streetNumber?: string;
743
+ /** Apartment number. */
744
+ apartmentNumber?: string;
745
+ /** Geographic coordinates of location. */
746
+ coordinates?: GeoCoordinates;
747
+ }
748
+ /**
749
+ * Extra information on displayed addresses.
750
+ * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
751
+ * Free text. In addition the user can state where he wants that additional description - before, after, or instead
752
+ * the address string.
753
+ */
754
+ interface AddressHint {
755
+ /** Extra text displayed next to, or instead of, the actual address. */
756
+ text?: string;
757
+ /** Where the extra text should be displayed. */
758
+ placement?: PlacementType;
759
+ }
760
+ /** Where the extra text should be displayed: before, after or instead of the actual address. */
761
+ declare enum PlacementType {
762
+ BEFORE = "BEFORE",
763
+ AFTER = "AFTER",
764
+ REPLACE = "REPLACE"
765
+ }
766
+ /** Geocoordinates for a particular address. */
767
+ interface GeoCoordinates {
768
+ /** Latitude of the location. Must be between -90 and 90. */
769
+ latitude?: number;
770
+ /** Longitude of the location. Must be between -180 and 180. */
771
+ longitude?: number;
772
+ }
773
+ /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
774
+ interface BusinessSchedule {
775
+ /** Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods. */
776
+ periods?: TimePeriod[];
777
+ /** Exceptions to the business's regular hours. The business can be open or closed during the exception. */
778
+ specialHourPeriod?: SpecialHourPeriod[];
779
+ }
780
+ /** Weekly recurring time periods when the business is regularly open or the service is available. */
781
+ interface TimePeriod {
782
+ /** Day of the week the period starts on. */
783
+ openDay?: DayOfWeek;
784
+ /**
785
+ * 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
786
+ * midnight at the end of the specified day.
787
+ */
788
+ openTime?: string;
789
+ /** Day of the week the period ends on. */
790
+ closeDay?: DayOfWeek;
791
+ /**
792
+ * 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
793
+ * midnight at the end of the specified day.
794
+ *
795
+ * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
796
+ */
797
+ closeTime?: string;
798
+ }
799
+ /** Enumerates the days of the week. */
800
+ declare enum DayOfWeek {
801
+ MONDAY = "MONDAY",
802
+ TUESDAY = "TUESDAY",
803
+ WEDNESDAY = "WEDNESDAY",
804
+ THURSDAY = "THURSDAY",
805
+ FRIDAY = "FRIDAY",
806
+ SATURDAY = "SATURDAY",
807
+ SUNDAY = "SUNDAY"
808
+ }
809
+ /** Exception to the business's regular hours. The business can be open or closed during the exception. */
810
+ interface SpecialHourPeriod {
811
+ /** 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). */
812
+ startDate?: string;
813
+ /** 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). */
814
+ endDate?: string;
815
+ /**
816
+ * Whether the business is closed (or the service is not available) during the exception.
817
+ *
818
+ * Default: `true`.
819
+ */
820
+ isClosed?: boolean;
821
+ /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
822
+ comment?: string;
823
+ }
824
+ interface Multilingual {
825
+ /** Supported languages list. */
826
+ supportedLanguages?: SupportedLanguage[];
827
+ /** Whether to redirect to user language. */
828
+ autoRedirect?: boolean;
829
+ }
830
+ interface SupportedLanguage {
831
+ /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
832
+ languageCode?: string;
833
+ /** Locale. */
834
+ locale?: Locale;
835
+ /** Whether the supported language is the primary language for the site. */
836
+ isPrimary?: boolean;
837
+ /** Language icon. */
838
+ countryCode?: string;
839
+ /** How the language will be resolved. For internal use. */
840
+ resolutionMethod?: ResolutionMethod;
841
+ }
842
+ declare enum ResolutionMethod {
843
+ QUERY_PARAM = "QUERY_PARAM",
844
+ SUBDOMAIN = "SUBDOMAIN",
845
+ SUBDIRECTORY = "SUBDIRECTORY"
846
+ }
847
+ interface ConsentPolicy {
848
+ /** Whether the site uses cookies that are essential to site operation. */
849
+ essential?: boolean | null;
850
+ /** Whether the site uses cookies that affect site performance and other functional measurements. */
851
+ functional?: boolean | null;
852
+ /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
853
+ analytics?: boolean | null;
854
+ /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
855
+ advertising?: boolean | null;
856
+ /** CCPA compliance flag. */
857
+ dataToThirdParty?: boolean | null;
858
+ }
859
+ /** A single mapping from the MetaSite ID to a particular service. */
860
+ interface Translation {
861
+ /** The service type. */
862
+ serviceType?: string;
863
+ /** The application definition ID; this only applies to services of type ThirdPartyApps. */
864
+ appDefId?: string;
865
+ /** The instance ID of the service. */
866
+ instanceId?: string;
867
+ }
868
+ interface ChangeContext extends ChangeContextPayloadOneOf {
869
+ /** Properties were updated. */
870
+ propertiesChange?: PropertiesChange;
871
+ /** Default properties were created on site creation. */
872
+ siteCreated?: V4SiteCreated;
873
+ /** Properties were cloned on site cloning. */
874
+ siteCloned?: SiteCloned;
875
+ }
876
+ /** @oneof */
877
+ interface ChangeContextPayloadOneOf {
878
+ /** Properties were updated. */
879
+ propertiesChange?: PropertiesChange;
880
+ /** Default properties were created on site creation. */
881
+ siteCreated?: V4SiteCreated;
882
+ /** Properties were cloned on site cloning. */
883
+ siteCloned?: SiteCloned;
884
+ }
885
+ interface PropertiesChange {
886
+ }
887
+ interface V4SiteCreated {
888
+ /** Origin template site id. */
889
+ originTemplateId?: string | null;
890
+ }
891
+ interface SiteCloned {
892
+ /** Origin site id. */
893
+ originMetaSiteId?: string;
894
+ }
895
+ interface DomainEvent extends DomainEventBodyOneOf {
896
+ createdEvent?: EntityCreatedEvent;
897
+ updatedEvent?: EntityUpdatedEvent;
898
+ deletedEvent?: EntityDeletedEvent;
899
+ actionEvent?: ActionEvent;
900
+ /**
901
+ * Unique event ID.
902
+ * Allows clients to ignore duplicate webhooks.
903
+ */
904
+ _id?: string;
905
+ /**
906
+ * Assumes actions are also always typed to an entity_type
907
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
908
+ */
909
+ entityFqdn?: string;
910
+ /**
911
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
912
+ * This is although the created/updated/deleted notion is duplication of the oneof types
913
+ * Example: created/updated/deleted/started/completed/email_opened
914
+ */
915
+ slug?: string;
916
+ /** ID of the entity associated with the event. */
917
+ entityId?: string;
918
+ /** Event timestamp. */
919
+ eventTime?: Date;
920
+ /**
921
+ * Whether the event was triggered as a result of a privacy regulation application
922
+ * (for example, GDPR).
923
+ */
924
+ triggeredByAnonymizeRequest?: boolean | null;
925
+ /** If present, indicates the action that triggered the event. */
926
+ originatedFrom?: string | null;
927
+ /**
928
+ * A sequence number defining the order of updates to the underlying entity.
929
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
930
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
931
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
932
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
933
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
934
+ */
935
+ entityEventSequence?: string | null;
936
+ }
937
+ /** @oneof */
938
+ interface DomainEventBodyOneOf {
939
+ createdEvent?: EntityCreatedEvent;
940
+ updatedEvent?: EntityUpdatedEvent;
941
+ deletedEvent?: EntityDeletedEvent;
942
+ actionEvent?: ActionEvent;
943
+ }
944
+ interface EntityCreatedEvent {
945
+ entity?: string;
946
+ }
947
+ interface RestoreInfo {
948
+ deletedDate?: Date;
949
+ }
950
+ interface EntityUpdatedEvent {
951
+ /**
952
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
953
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
954
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
955
+ */
956
+ currentEntity?: string;
957
+ }
958
+ interface EntityDeletedEvent {
959
+ /** Entity that was deleted */
960
+ deletedEntity?: string | null;
961
+ }
962
+ interface ActionEvent {
963
+ body?: string;
964
+ }
965
+ interface MessageEnvelope {
966
+ /** App instance ID. */
967
+ instanceId?: string | null;
968
+ /** Event type. */
969
+ eventType?: string;
970
+ /** The identification type and identity data. */
971
+ identity?: IdentificationData;
972
+ /** Stringify payload. */
973
+ data?: string;
974
+ }
975
+ interface IdentificationData extends IdentificationDataIdOneOf {
976
+ /** ID of a site visitor that has not logged in to the site. */
977
+ anonymousVisitorId?: string;
978
+ /** ID of a site visitor that has logged in to the site. */
979
+ memberId?: string;
980
+ /** ID of a Wix user (site owner, contributor, etc.). */
981
+ wixUserId?: string;
982
+ /** ID of an app. */
983
+ appId?: string;
984
+ /** @readonly */
985
+ identityType?: WebhookIdentityType;
986
+ }
987
+ /** @oneof */
988
+ interface IdentificationDataIdOneOf {
989
+ /** ID of a site visitor that has not logged in to the site. */
990
+ anonymousVisitorId?: string;
991
+ /** ID of a site visitor that has logged in to the site. */
992
+ memberId?: string;
993
+ /** ID of a Wix user (site owner, contributor, etc.). */
994
+ wixUserId?: string;
995
+ /** ID of an app. */
996
+ appId?: string;
997
+ }
998
+ declare enum WebhookIdentityType {
999
+ UNKNOWN = "UNKNOWN",
1000
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
1001
+ MEMBER = "MEMBER",
1002
+ WIX_USER = "WIX_USER",
1003
+ APP = "APP"
1004
+ }
1005
+ interface GetScheduleResponseNonNullableFields {
1006
+ schedule?: {
1007
+ status: Status;
1008
+ defaultLocation?: {
1009
+ type: LocationType;
1010
+ };
1011
+ defaultConferencingDetails?: {
1012
+ type: Type;
1013
+ };
1014
+ permissions: {
1015
+ identity?: {
1016
+ wixUserId: string;
1017
+ };
1018
+ role: Role;
1019
+ }[];
1020
+ };
1021
+ }
1022
+ interface QuerySchedulesResponseNonNullableFields {
1023
+ schedules: {
1024
+ status: Status;
1025
+ defaultLocation?: {
1026
+ type: LocationType;
1027
+ };
1028
+ defaultConferencingDetails?: {
1029
+ type: Type;
1030
+ };
1031
+ permissions: {
1032
+ identity?: {
1033
+ wixUserId: string;
1034
+ };
1035
+ role: Role;
1036
+ }[];
1037
+ }[];
1038
+ }
1039
+ interface CreateScheduleResponseNonNullableFields {
1040
+ schedule?: {
1041
+ status: Status;
1042
+ defaultLocation?: {
1043
+ type: LocationType;
1044
+ };
1045
+ defaultConferencingDetails?: {
1046
+ type: Type;
1047
+ };
1048
+ permissions: {
1049
+ identity?: {
1050
+ wixUserId: string;
1051
+ };
1052
+ role: Role;
1053
+ }[];
1054
+ };
1055
+ }
1056
+ interface UpdateScheduleResponseNonNullableFields {
1057
+ schedule?: {
1058
+ status: Status;
1059
+ defaultLocation?: {
1060
+ type: LocationType;
1061
+ };
1062
+ defaultConferencingDetails?: {
1063
+ type: Type;
1064
+ };
1065
+ permissions: {
1066
+ identity?: {
1067
+ wixUserId: string;
1068
+ };
1069
+ role: Role;
1070
+ }[];
1071
+ };
1072
+ }
1073
+ interface CloneScheduleResponseNonNullableFields {
1074
+ schedule?: {
1075
+ status: Status;
1076
+ defaultLocation?: {
1077
+ type: LocationType;
1078
+ };
1079
+ defaultConferencingDetails?: {
1080
+ type: Type;
1081
+ };
1082
+ permissions: {
1083
+ identity?: {
1084
+ wixUserId: string;
1085
+ };
1086
+ role: Role;
1087
+ }[];
1088
+ };
1089
+ }
1090
+ interface CancelScheduleResponseNonNullableFields {
1091
+ schedule?: {
1092
+ status: Status;
1093
+ defaultLocation?: {
1094
+ type: LocationType;
1095
+ };
1096
+ defaultConferencingDetails?: {
1097
+ type: Type;
1098
+ };
1099
+ permissions: {
1100
+ identity?: {
1101
+ wixUserId: string;
1102
+ };
1103
+ role: Role;
1104
+ }[];
1105
+ };
1106
+ }
1107
+ interface BaseEventMetadata {
1108
+ /** App instance ID. */
1109
+ instanceId?: string | null;
1110
+ /** Event type. */
1111
+ eventType?: string;
1112
+ /** The identification type and identity data. */
1113
+ identity?: IdentificationData;
1114
+ }
1115
+ interface EventMetadata extends BaseEventMetadata {
1116
+ /**
1117
+ * Unique event ID.
1118
+ * Allows clients to ignore duplicate webhooks.
1119
+ */
1120
+ _id?: string;
1121
+ /**
1122
+ * Assumes actions are also always typed to an entity_type
1123
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
1124
+ */
1125
+ entityFqdn?: string;
1126
+ /**
1127
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
1128
+ * This is although the created/updated/deleted notion is duplication of the oneof types
1129
+ * Example: created/updated/deleted/started/completed/email_opened
1130
+ */
1131
+ slug?: string;
1132
+ /** ID of the entity associated with the event. */
1133
+ entityId?: string;
1134
+ /** Event timestamp. */
1135
+ eventTime?: Date;
1136
+ /**
1137
+ * Whether the event was triggered as a result of a privacy regulation application
1138
+ * (for example, GDPR).
1139
+ */
1140
+ triggeredByAnonymizeRequest?: boolean | null;
1141
+ /** If present, indicates the action that triggered the event. */
1142
+ originatedFrom?: string | null;
1143
+ /**
1144
+ * A sequence number defining the order of updates to the underlying entity.
1145
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
1146
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
1147
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
1148
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
1149
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
1150
+ */
1151
+ entityEventSequence?: string | null;
1152
+ }
1153
+ interface ScheduleCreatedEnvelope {
1154
+ entity: Schedule;
1155
+ metadata: EventMetadata;
1156
+ }
1157
+ interface ScheduleUpdatedEnvelope {
1158
+ entity: Schedule;
1159
+ metadata: EventMetadata;
1160
+ }
1161
+ interface ScheduleClonedEnvelope {
1162
+ data: ScheduleCloned;
1163
+ metadata: EventMetadata;
1164
+ }
1165
+ interface ScheduleCancelledEnvelope {
1166
+ data: ScheduleCancelled;
1167
+ metadata: EventMetadata;
1168
+ }
1169
+ interface GetScheduleOptions {
1170
+ /** List of additional fields to be included in the response. */
1171
+ fields?: RequestedFields[];
1172
+ }
1173
+ interface QuerySchedulesOptions {
1174
+ /** List of additional fields to be included in the response. */
1175
+ fields?: RequestedFields[] | undefined;
1176
+ }
1177
+ interface QueryCursorResult {
1178
+ cursors: Cursors;
1179
+ hasNext: () => boolean;
1180
+ hasPrev: () => boolean;
1181
+ length: number;
1182
+ pageSize: number;
1183
+ }
1184
+ interface SchedulesQueryResult extends QueryCursorResult {
1185
+ items: Schedule[];
1186
+ query: SchedulesQueryBuilder;
1187
+ next: () => Promise<SchedulesQueryResult>;
1188
+ prev: () => Promise<SchedulesQueryResult>;
1189
+ }
1190
+ interface SchedulesQueryBuilder {
1191
+ /** @param propertyName - Property whose value is compared with `value`.
1192
+ * @param value - Value to compare against.
1193
+ * @documentationMaturity preview
1194
+ */
1195
+ eq: (propertyName: '_id' | 'status' | 'appId', value: any) => SchedulesQueryBuilder;
1196
+ /** @documentationMaturity preview */
1197
+ in: (propertyName: '_id' | 'status' | 'appId', value: any) => SchedulesQueryBuilder;
1198
+ /** @documentationMaturity preview */
1199
+ exists: (propertyName: 'defaultLocation' | 'defaultConferencingDetails', value: boolean) => SchedulesQueryBuilder;
1200
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
1201
+ * @documentationMaturity preview
1202
+ */
1203
+ limit: (limit: number) => SchedulesQueryBuilder;
1204
+ /** @param cursor - A pointer to specific record
1205
+ * @documentationMaturity preview
1206
+ */
1207
+ skipTo: (cursor: string) => SchedulesQueryBuilder;
1208
+ /** @documentationMaturity preview */
1209
+ find: () => Promise<SchedulesQueryResult>;
1210
+ }
1211
+ interface CreateScheduleOptions {
1212
+ /** Optional Idempotency key. */
1213
+ idempotencyKey?: string | null;
1214
+ }
1215
+ interface UpdateSchedule {
1216
+ /**
1217
+ * The schedule ID.
1218
+ * @readonly
1219
+ */
1220
+ _id?: string | null;
1221
+ /**
1222
+ * Optional external ID. Cannot change.
1223
+ *
1224
+ * For instance, might be the ID of the Bookings Resource or Service.
1225
+ */
1226
+ externalId?: string | null;
1227
+ /**
1228
+ * The name of the schedule.
1229
+ *
1230
+ * For instance, might be the name of the Bookings Resource or Service.
1231
+ */
1232
+ name?: string | null;
1233
+ /**
1234
+ * The schedule status.
1235
+ *
1236
+ * The possible values are:
1237
+ * - `"ACTIVE"` Schedule is active. Default value.
1238
+ * - `"CANCELLED"` Schedule has been cancelled.
1239
+ * @readonly
1240
+ */
1241
+ status?: Status;
1242
+ /**
1243
+ * The schedule time zone, formatted according to the IANA time zone format.
1244
+ * Must be a regional time zone (Area/Location) or UTC.
1245
+ *
1246
+ * By default the time zone is derived from the Wix Business, and can be overridden by setting `businessTimeZoneEnabled` to false.
1247
+ */
1248
+ timeZone?: string | null;
1249
+ /**
1250
+ * Whether to use the time zone of the Wix Business.
1251
+ * Default is true.
1252
+ */
1253
+ businessTimeZoneEnabled?: boolean | null;
1254
+ /** Default title for the schedule's events. */
1255
+ defaultTitle?: string | null;
1256
+ /** Default location for the schedule's events. */
1257
+ defaultLocation?: Location;
1258
+ /**
1259
+ * Default capacity for the schedule's events.
1260
+ *
1261
+ * The capacity of an event is the max number of participants that can participate in an event.
1262
+ */
1263
+ defaultCapacity?: number | null;
1264
+ /** Default conferencing details for the schedule's events. */
1265
+ defaultConferencingDetails?: ConferencingDetails;
1266
+ /**
1267
+ * Optional ID of the Wix app owning the schedule.
1268
+ * Cannot change once set.
1269
+ *
1270
+ * For example, to create a schedule in the Wix Bookings App Calendar, provide `13d21c63-b5ec-5912-8397-c3a5ddb27a97`.
1271
+ */
1272
+ appId?: string | null;
1273
+ /**
1274
+ * List of granted permissions for this schedule.
1275
+ *
1276
+ * E.g, a Bookings Staff Member has full write access to its schedule and limited access to events it provides.
1277
+ */
1278
+ permissions?: Permission[];
1279
+ /** Extensions enabling applications or users to save custom data related to the schedule. */
1280
+ extendedFields?: ExtendedFields;
1281
+ /**
1282
+ * The schedule revision number, which incremented on updates.
1283
+ *
1284
+ * The current revision should be provided on updates to prevent conflicting changes.
1285
+ * @readonly
1286
+ */
1287
+ revision?: string | null;
1288
+ /**
1289
+ * Date the schedule was created.
1290
+ * @readonly
1291
+ */
1292
+ _createdDate?: Date;
1293
+ /**
1294
+ * Date the schedule was last updated.
1295
+ * @readonly
1296
+ */
1297
+ _updatedDate?: Date;
1298
+ }
1299
+ interface UpdateScheduleOptions {
1300
+ /** Whether to notify participants regarding the changes. */
1301
+ participantNotification?: ParticipantNotification;
1302
+ }
1303
+ interface CloneScheduleOptions {
1304
+ /** Optional values to override. */
1305
+ schedule?: Schedule;
1306
+ }
1307
+ interface CancelScheduleOptions {
1308
+ /**
1309
+ * Whether to preserve future events with participants.
1310
+ * Default is false.
1311
+ */
1312
+ preserveFutureEventsWithParticipants?: boolean | null;
1313
+ /** Whether to notify participants regarding the changes. */
1314
+ participantNotification?: ParticipantNotification;
1315
+ }
1316
+
1317
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
1318
+ interface HttpClient {
1319
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1320
+ fetchWithAuth: typeof fetch;
1321
+ wixAPIFetch: (relativeUrl: string, options: RequestInit) => Promise<Response>;
1322
+ }
1323
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1324
+ type HttpResponse<T = any> = {
1325
+ data: T;
1326
+ status: number;
1327
+ statusText: string;
1328
+ headers: any;
1329
+ request?: any;
1330
+ };
1331
+ type RequestOptions<_TResponse = any, Data = any> = {
1332
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1333
+ url: string;
1334
+ data?: Data;
1335
+ params?: URLSearchParams;
1336
+ } & APIMetadata;
1337
+ type APIMetadata = {
1338
+ methodFqn?: string;
1339
+ entityFqdn?: string;
1340
+ packageName?: string;
1341
+ };
1342
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
1343
+ type EventDefinition<Payload = unknown, Type extends string = string> = {
1344
+ __type: 'event-definition';
1345
+ type: Type;
1346
+ isDomainEvent?: boolean;
1347
+ transformations?: (envelope: unknown) => Payload;
1348
+ __payload: Payload;
1349
+ };
1350
+ declare function EventDefinition<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition<Payload, Type>;
1351
+ type EventHandler<T extends EventDefinition> = (payload: T['__payload']) => void | Promise<void>;
1352
+ type BuildEventDefinition<T extends EventDefinition<any, string>> = (handler: EventHandler<T>) => void;
1353
+
1354
+ declare global {
1355
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1356
+ interface SymbolConstructor {
1357
+ readonly observable: symbol;
1358
+ }
1359
+ }
1360
+
1361
+ declare function createRESTModule<T extends RESTFunctionDescriptor>(descriptor: T, elevated?: boolean): BuildRESTFunction<T> & T;
1362
+
1363
+ declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
1364
+
1365
+ declare const getSchedule: ReturnType<typeof createRESTModule<typeof publicGetSchedule>>;
1366
+ declare const querySchedules: ReturnType<typeof createRESTModule<typeof publicQuerySchedules>>;
1367
+ declare const createSchedule: ReturnType<typeof createRESTModule<typeof publicCreateSchedule>>;
1368
+ declare const updateSchedule: ReturnType<typeof createRESTModule<typeof publicUpdateSchedule>>;
1369
+ declare const cloneSchedule: ReturnType<typeof createRESTModule<typeof publicCloneSchedule>>;
1370
+ declare const cancelSchedule: ReturnType<typeof createRESTModule<typeof publicCancelSchedule>>;
1371
+ declare const onScheduleCreated: ReturnType<typeof createEventModule<typeof publicOnScheduleCreated>>;
1372
+ declare const onScheduleUpdated: ReturnType<typeof createEventModule<typeof publicOnScheduleUpdated>>;
1373
+ declare const onScheduleCloned: ReturnType<typeof createEventModule<typeof publicOnScheduleCloned>>;
1374
+ declare const onScheduleCancelled: ReturnType<typeof createEventModule<typeof publicOnScheduleCancelled>>;
1375
+
1376
+ type context_ActionEvent = ActionEvent;
1377
+ type context_Address = Address;
1378
+ type context_AddressHint = AddressHint;
1379
+ type context_Asset = Asset;
1380
+ type context_BaseEventMetadata = BaseEventMetadata;
1381
+ type context_BusinessSchedule = BusinessSchedule;
1382
+ type context_CancelScheduleOptions = CancelScheduleOptions;
1383
+ type context_CancelScheduleRequest = CancelScheduleRequest;
1384
+ type context_CancelScheduleResponse = CancelScheduleResponse;
1385
+ type context_CancelScheduleResponseNonNullableFields = CancelScheduleResponseNonNullableFields;
1386
+ type context_Categories = Categories;
1387
+ type context_ChangeContext = ChangeContext;
1388
+ type context_ChangeContextPayloadOneOf = ChangeContextPayloadOneOf;
1389
+ type context_CloneScheduleOptions = CloneScheduleOptions;
1390
+ type context_CloneScheduleRequest = CloneScheduleRequest;
1391
+ type context_CloneScheduleResponse = CloneScheduleResponse;
1392
+ type context_CloneScheduleResponseNonNullableFields = CloneScheduleResponseNonNullableFields;
1393
+ type context_CommonIdentificationData = CommonIdentificationData;
1394
+ type context_CommonIdentificationDataIdOneOf = CommonIdentificationDataIdOneOf;
1395
+ type context_ConferencingDetails = ConferencingDetails;
1396
+ type context_ConsentPolicy = ConsentPolicy;
1397
+ type context_CreateScheduleOptions = CreateScheduleOptions;
1398
+ type context_CreateScheduleRequest = CreateScheduleRequest;
1399
+ type context_CreateScheduleResponse = CreateScheduleResponse;
1400
+ type context_CreateScheduleResponseNonNullableFields = CreateScheduleResponseNonNullableFields;
1401
+ type context_CursorPaging = CursorPaging;
1402
+ type context_CursorPagingMetadata = CursorPagingMetadata;
1403
+ type context_CursorQuery = CursorQuery;
1404
+ type context_CursorQueryPagingMethodOneOf = CursorQueryPagingMethodOneOf;
1405
+ type context_Cursors = Cursors;
1406
+ type context_DayOfWeek = DayOfWeek;
1407
+ declare const context_DayOfWeek: typeof DayOfWeek;
1408
+ type context_DeleteContext = DeleteContext;
1409
+ type context_DeleteStatus = DeleteStatus;
1410
+ declare const context_DeleteStatus: typeof DeleteStatus;
1411
+ type context_DomainEvent = DomainEvent;
1412
+ type context_DomainEventBodyOneOf = DomainEventBodyOneOf;
1413
+ type context_Empty = Empty;
1414
+ type context_EntityCreatedEvent = EntityCreatedEvent;
1415
+ type context_EntityDeletedEvent = EntityDeletedEvent;
1416
+ type context_EntityUpdatedEvent = EntityUpdatedEvent;
1417
+ type context_EventMetadata = EventMetadata;
1418
+ type context_ExtendedFields = ExtendedFields;
1419
+ type context_GeoCoordinates = GeoCoordinates;
1420
+ type context_GetScheduleOptions = GetScheduleOptions;
1421
+ type context_GetScheduleRequest = GetScheduleRequest;
1422
+ type context_GetScheduleResponse = GetScheduleResponse;
1423
+ type context_GetScheduleResponseNonNullableFields = GetScheduleResponseNonNullableFields;
1424
+ type context_IdentificationData = IdentificationData;
1425
+ type context_IdentificationDataIdOneOf = IdentificationDataIdOneOf;
1426
+ type context_IdentityType = IdentityType;
1427
+ declare const context_IdentityType: typeof IdentityType;
1428
+ type context_Locale = Locale;
1429
+ type context_Location = Location;
1430
+ type context_LocationType = LocationType;
1431
+ declare const context_LocationType: typeof LocationType;
1432
+ type context_MessageEnvelope = MessageEnvelope;
1433
+ type context_MetaSiteSpecialEvent = MetaSiteSpecialEvent;
1434
+ type context_MetaSiteSpecialEventPayloadOneOf = MetaSiteSpecialEventPayloadOneOf;
1435
+ type context_Multilingual = Multilingual;
1436
+ type context_Namespace = Namespace;
1437
+ declare const context_Namespace: typeof Namespace;
1438
+ type context_NamespaceChanged = NamespaceChanged;
1439
+ type context_ParticipantNotification = ParticipantNotification;
1440
+ type context_Permission = Permission;
1441
+ type context_PlacementType = PlacementType;
1442
+ declare const context_PlacementType: typeof PlacementType;
1443
+ type context_Properties = Properties;
1444
+ type context_PropertiesChange = PropertiesChange;
1445
+ type context_QuerySchedulesOptions = QuerySchedulesOptions;
1446
+ type context_QuerySchedulesRequest = QuerySchedulesRequest;
1447
+ type context_QuerySchedulesResponse = QuerySchedulesResponse;
1448
+ type context_QuerySchedulesResponseNonNullableFields = QuerySchedulesResponseNonNullableFields;
1449
+ type context_RequestedFields = RequestedFields;
1450
+ declare const context_RequestedFields: typeof RequestedFields;
1451
+ type context_ResolutionMethod = ResolutionMethod;
1452
+ declare const context_ResolutionMethod: typeof ResolutionMethod;
1453
+ type context_RestoreInfo = RestoreInfo;
1454
+ type context_Role = Role;
1455
+ declare const context_Role: typeof Role;
1456
+ type context_Schedule = Schedule;
1457
+ type context_ScheduleCancelled = ScheduleCancelled;
1458
+ type context_ScheduleCancelledEnvelope = ScheduleCancelledEnvelope;
1459
+ type context_ScheduleCloned = ScheduleCloned;
1460
+ type context_ScheduleClonedEnvelope = ScheduleClonedEnvelope;
1461
+ type context_ScheduleCreatedEnvelope = ScheduleCreatedEnvelope;
1462
+ type context_ScheduleUpdatedEnvelope = ScheduleUpdatedEnvelope;
1463
+ type context_ScheduleUpdatedWithMetadata = ScheduleUpdatedWithMetadata;
1464
+ type context_SchedulesQueryBuilder = SchedulesQueryBuilder;
1465
+ type context_SchedulesQueryResult = SchedulesQueryResult;
1466
+ type context_ServiceProvisioned = ServiceProvisioned;
1467
+ type context_ServiceRemoved = ServiceRemoved;
1468
+ type context_SiteCloned = SiteCloned;
1469
+ type context_SiteCreated = SiteCreated;
1470
+ type context_SiteCreatedContext = SiteCreatedContext;
1471
+ declare const context_SiteCreatedContext: typeof SiteCreatedContext;
1472
+ type context_SiteDeleted = SiteDeleted;
1473
+ type context_SiteHardDeleted = SiteHardDeleted;
1474
+ type context_SiteMarkedAsTemplate = SiteMarkedAsTemplate;
1475
+ type context_SiteMarkedAsWixSite = SiteMarkedAsWixSite;
1476
+ type context_SitePropertiesEvent = SitePropertiesEvent;
1477
+ type context_SitePropertiesNotification = SitePropertiesNotification;
1478
+ type context_SitePublished = SitePublished;
1479
+ type context_SiteRenamed = SiteRenamed;
1480
+ type context_SiteTransferred = SiteTransferred;
1481
+ type context_SiteUndeleted = SiteUndeleted;
1482
+ type context_SiteUnpublished = SiteUnpublished;
1483
+ type context_SpecialHourPeriod = SpecialHourPeriod;
1484
+ type context_State = State;
1485
+ declare const context_State: typeof State;
1486
+ type context_Status = Status;
1487
+ declare const context_Status: typeof Status;
1488
+ type context_StudioAssigned = StudioAssigned;
1489
+ type context_StudioUnassigned = StudioUnassigned;
1490
+ type context_SupportedLanguage = SupportedLanguage;
1491
+ type context_TimePeriod = TimePeriod;
1492
+ type context_Translation = Translation;
1493
+ type context_Trigger = Trigger;
1494
+ declare const context_Trigger: typeof Trigger;
1495
+ type context_Type = Type;
1496
+ declare const context_Type: typeof Type;
1497
+ type context_UpdateSchedule = UpdateSchedule;
1498
+ type context_UpdateScheduleOptions = UpdateScheduleOptions;
1499
+ type context_UpdateScheduleRequest = UpdateScheduleRequest;
1500
+ type context_UpdateScheduleResponse = UpdateScheduleResponse;
1501
+ type context_UpdateScheduleResponseNonNullableFields = UpdateScheduleResponseNonNullableFields;
1502
+ type context_V4SiteCreated = V4SiteCreated;
1503
+ type context_WebhookIdentityType = WebhookIdentityType;
1504
+ declare const context_WebhookIdentityType: typeof WebhookIdentityType;
1505
+ declare const context_cancelSchedule: typeof cancelSchedule;
1506
+ declare const context_cloneSchedule: typeof cloneSchedule;
1507
+ declare const context_createSchedule: typeof createSchedule;
1508
+ declare const context_getSchedule: typeof getSchedule;
1509
+ declare const context_onScheduleCancelled: typeof onScheduleCancelled;
1510
+ declare const context_onScheduleCloned: typeof onScheduleCloned;
1511
+ declare const context_onScheduleCreated: typeof onScheduleCreated;
1512
+ declare const context_onScheduleUpdated: typeof onScheduleUpdated;
1513
+ declare const context_querySchedules: typeof querySchedules;
1514
+ declare const context_updateSchedule: typeof updateSchedule;
1515
+ declare namespace context {
1516
+ export { type context_ActionEvent as ActionEvent, type context_Address as Address, type context_AddressHint as AddressHint, type context_Asset as Asset, type context_BaseEventMetadata as BaseEventMetadata, type context_BusinessSchedule as BusinessSchedule, type context_CancelScheduleOptions as CancelScheduleOptions, type context_CancelScheduleRequest as CancelScheduleRequest, type context_CancelScheduleResponse as CancelScheduleResponse, type context_CancelScheduleResponseNonNullableFields as CancelScheduleResponseNonNullableFields, type context_Categories as Categories, type context_ChangeContext as ChangeContext, type context_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type context_CloneScheduleOptions as CloneScheduleOptions, type context_CloneScheduleRequest as CloneScheduleRequest, type context_CloneScheduleResponse as CloneScheduleResponse, type context_CloneScheduleResponseNonNullableFields as CloneScheduleResponseNonNullableFields, type context_CommonIdentificationData as CommonIdentificationData, type context_CommonIdentificationDataIdOneOf as CommonIdentificationDataIdOneOf, type context_ConferencingDetails as ConferencingDetails, type context_ConsentPolicy as ConsentPolicy, type context_CreateScheduleOptions as CreateScheduleOptions, type context_CreateScheduleRequest as CreateScheduleRequest, type context_CreateScheduleResponse as CreateScheduleResponse, type context_CreateScheduleResponseNonNullableFields as CreateScheduleResponseNonNullableFields, type context_CursorPaging as CursorPaging, type context_CursorPagingMetadata as CursorPagingMetadata, type context_CursorQuery as CursorQuery, type context_CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOf, type context_Cursors as Cursors, context_DayOfWeek as DayOfWeek, type context_DeleteContext as DeleteContext, context_DeleteStatus as DeleteStatus, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, type context_ExtendedFields as ExtendedFields, type context_GeoCoordinates as GeoCoordinates, type context_GetScheduleOptions as GetScheduleOptions, type context_GetScheduleRequest as GetScheduleRequest, type context_GetScheduleResponse as GetScheduleResponse, type context_GetScheduleResponseNonNullableFields as GetScheduleResponseNonNullableFields, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_Locale as Locale, type context_Location as Location, context_LocationType as LocationType, type context_MessageEnvelope as MessageEnvelope, type context_MetaSiteSpecialEvent as MetaSiteSpecialEvent, type context_MetaSiteSpecialEventPayloadOneOf as MetaSiteSpecialEventPayloadOneOf, type context_Multilingual as Multilingual, context_Namespace as Namespace, type context_NamespaceChanged as NamespaceChanged, type context_ParticipantNotification as ParticipantNotification, type context_Permission as Permission, context_PlacementType as PlacementType, type context_Properties as Properties, type context_PropertiesChange as PropertiesChange, type context_QuerySchedulesOptions as QuerySchedulesOptions, type context_QuerySchedulesRequest as QuerySchedulesRequest, type context_QuerySchedulesResponse as QuerySchedulesResponse, type context_QuerySchedulesResponseNonNullableFields as QuerySchedulesResponseNonNullableFields, context_RequestedFields as RequestedFields, context_ResolutionMethod as ResolutionMethod, type context_RestoreInfo as RestoreInfo, context_Role as Role, type context_Schedule as Schedule, type context_ScheduleCancelled as ScheduleCancelled, type context_ScheduleCancelledEnvelope as ScheduleCancelledEnvelope, type context_ScheduleCloned as ScheduleCloned, type context_ScheduleClonedEnvelope as ScheduleClonedEnvelope, type context_ScheduleCreatedEnvelope as ScheduleCreatedEnvelope, type context_ScheduleUpdatedEnvelope as ScheduleUpdatedEnvelope, type context_ScheduleUpdatedWithMetadata as ScheduleUpdatedWithMetadata, type context_SchedulesQueryBuilder as SchedulesQueryBuilder, type context_SchedulesQueryResult as SchedulesQueryResult, type context_ServiceProvisioned as ServiceProvisioned, type context_ServiceRemoved as ServiceRemoved, type context_SiteCloned as SiteCloned, type context_SiteCreated as SiteCreated, context_SiteCreatedContext as SiteCreatedContext, type context_SiteDeleted as SiteDeleted, type context_SiteHardDeleted as SiteHardDeleted, type context_SiteMarkedAsTemplate as SiteMarkedAsTemplate, type context_SiteMarkedAsWixSite as SiteMarkedAsWixSite, type context_SitePropertiesEvent as SitePropertiesEvent, type context_SitePropertiesNotification as SitePropertiesNotification, type context_SitePublished as SitePublished, type context_SiteRenamed as SiteRenamed, type context_SiteTransferred as SiteTransferred, type context_SiteUndeleted as SiteUndeleted, type context_SiteUnpublished as SiteUnpublished, type context_SpecialHourPeriod as SpecialHourPeriod, context_State as State, context_Status as Status, type context_StudioAssigned as StudioAssigned, type context_StudioUnassigned as StudioUnassigned, type context_SupportedLanguage as SupportedLanguage, type context_TimePeriod as TimePeriod, type context_Translation as Translation, context_Trigger as Trigger, context_Type as Type, type context_UpdateSchedule as UpdateSchedule, type context_UpdateScheduleOptions as UpdateScheduleOptions, type context_UpdateScheduleRequest as UpdateScheduleRequest, type context_UpdateScheduleResponse as UpdateScheduleResponse, type context_UpdateScheduleResponseNonNullableFields as UpdateScheduleResponseNonNullableFields, type context_V4SiteCreated as V4SiteCreated, context_WebhookIdentityType as WebhookIdentityType, context_cancelSchedule as cancelSchedule, context_cloneSchedule as cloneSchedule, context_createSchedule as createSchedule, context_getSchedule as getSchedule, context_onScheduleCancelled as onScheduleCancelled, context_onScheduleCloned as onScheduleCloned, context_onScheduleCreated as onScheduleCreated, context_onScheduleUpdated as onScheduleUpdated, context_querySchedules as querySchedules, context_updateSchedule as updateSchedule };
1517
+ }
1518
+
1519
+ export { context as schedules };