@wix/auto_sdk_calendar_events 1.0.28 → 1.0.29

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 (126) hide show
  1. package/build/{internal/cjs/src/calendar-v3-event-events.universal.d.ts → calendar-v3-event-events.universal-CLDnUCNu.d.mts} +153 -862
  2. package/build/{cjs/src/calendar-v3-event-events.universal.d.ts → calendar-v3-event-events.universal-CLDnUCNu.d.ts} +153 -862
  3. package/build/{cjs/src/calendar-v3-event-events.public.d.ts → index.d.mts} +66 -23
  4. package/build/{internal/es/src/calendar-v3-event-events.public.d.ts → index.d.ts} +66 -23
  5. package/build/index.js +1551 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1494 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/calendar-v3-event-events.universal.d.ts → internal/calendar-v3-event-events.universal-CLDnUCNu.d.mts} +153 -862
  10. package/build/internal/{es/src/calendar-v3-event-events.universal.d.ts → calendar-v3-event-events.universal-CLDnUCNu.d.ts} +153 -862
  11. package/build/{es/src/calendar-v3-event-events.public.d.ts → internal/index.d.mts} +66 -23
  12. package/build/internal/{cjs/src/calendar-v3-event-events.public.d.ts → index.d.ts} +66 -23
  13. package/build/internal/index.js +1551 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1494 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/{es/src/calendar-v3-event-events.types.d.ts → internal/meta.d.mts} +120 -597
  18. package/build/internal/{es/src/calendar-v3-event-events.types.d.ts → meta.d.ts} +120 -597
  19. package/build/internal/meta.js +930 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +891 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/{cjs/src/calendar-v3-event-events.types.d.ts → meta.d.mts} +120 -597
  24. package/build/{internal/cjs/src/calendar-v3-event-events.types.d.ts → meta.d.ts} +120 -597
  25. package/build/meta.js +930 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +891 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/calendar-v3-event-events.context.d.ts +0 -51
  40. package/build/cjs/src/calendar-v3-event-events.context.js +0 -71
  41. package/build/cjs/src/calendar-v3-event-events.context.js.map +0 -1
  42. package/build/cjs/src/calendar-v3-event-events.http.d.ts +0 -144
  43. package/build/cjs/src/calendar-v3-event-events.http.js +0 -785
  44. package/build/cjs/src/calendar-v3-event-events.http.js.map +0 -1
  45. package/build/cjs/src/calendar-v3-event-events.meta.d.ts +0 -39
  46. package/build/cjs/src/calendar-v3-event-events.meta.js +0 -275
  47. package/build/cjs/src/calendar-v3-event-events.meta.js.map +0 -1
  48. package/build/cjs/src/calendar-v3-event-events.public.js +0 -196
  49. package/build/cjs/src/calendar-v3-event-events.public.js.map +0 -1
  50. package/build/cjs/src/calendar-v3-event-events.types.js +0 -157
  51. package/build/cjs/src/calendar-v3-event-events.types.js.map +0 -1
  52. package/build/cjs/src/calendar-v3-event-events.universal.js +0 -1185
  53. package/build/cjs/src/calendar-v3-event-events.universal.js.map +0 -1
  54. package/build/es/index.d.ts +0 -1
  55. package/build/es/index.js +0 -2
  56. package/build/es/index.js.map +0 -1
  57. package/build/es/index.typings.d.ts +0 -1
  58. package/build/es/index.typings.js +0 -2
  59. package/build/es/index.typings.js.map +0 -1
  60. package/build/es/meta.d.ts +0 -1
  61. package/build/es/meta.js +0 -2
  62. package/build/es/meta.js.map +0 -1
  63. package/build/es/package.json +0 -3
  64. package/build/es/src/calendar-v3-event-events.context.d.ts +0 -51
  65. package/build/es/src/calendar-v3-event-events.context.js +0 -51
  66. package/build/es/src/calendar-v3-event-events.context.js.map +0 -1
  67. package/build/es/src/calendar-v3-event-events.http.d.ts +0 -144
  68. package/build/es/src/calendar-v3-event-events.http.js +0 -769
  69. package/build/es/src/calendar-v3-event-events.http.js.map +0 -1
  70. package/build/es/src/calendar-v3-event-events.meta.d.ts +0 -39
  71. package/build/es/src/calendar-v3-event-events.meta.js +0 -236
  72. package/build/es/src/calendar-v3-event-events.meta.js.map +0 -1
  73. package/build/es/src/calendar-v3-event-events.public.js +0 -163
  74. package/build/es/src/calendar-v3-event-events.public.js.map +0 -1
  75. package/build/es/src/calendar-v3-event-events.types.js +0 -154
  76. package/build/es/src/calendar-v3-event-events.types.js.map +0 -1
  77. package/build/es/src/calendar-v3-event-events.universal.js +0 -1146
  78. package/build/es/src/calendar-v3-event-events.universal.js.map +0 -1
  79. package/build/internal/cjs/index.d.ts +0 -1
  80. package/build/internal/cjs/index.js +0 -18
  81. package/build/internal/cjs/index.js.map +0 -1
  82. package/build/internal/cjs/index.typings.d.ts +0 -1
  83. package/build/internal/cjs/index.typings.js +0 -18
  84. package/build/internal/cjs/index.typings.js.map +0 -1
  85. package/build/internal/cjs/meta.d.ts +0 -1
  86. package/build/internal/cjs/meta.js +0 -18
  87. package/build/internal/cjs/meta.js.map +0 -1
  88. package/build/internal/cjs/src/calendar-v3-event-events.context.d.ts +0 -51
  89. package/build/internal/cjs/src/calendar-v3-event-events.context.js +0 -71
  90. package/build/internal/cjs/src/calendar-v3-event-events.context.js.map +0 -1
  91. package/build/internal/cjs/src/calendar-v3-event-events.http.d.ts +0 -144
  92. package/build/internal/cjs/src/calendar-v3-event-events.http.js +0 -785
  93. package/build/internal/cjs/src/calendar-v3-event-events.http.js.map +0 -1
  94. package/build/internal/cjs/src/calendar-v3-event-events.meta.d.ts +0 -39
  95. package/build/internal/cjs/src/calendar-v3-event-events.meta.js +0 -275
  96. package/build/internal/cjs/src/calendar-v3-event-events.meta.js.map +0 -1
  97. package/build/internal/cjs/src/calendar-v3-event-events.public.js +0 -196
  98. package/build/internal/cjs/src/calendar-v3-event-events.public.js.map +0 -1
  99. package/build/internal/cjs/src/calendar-v3-event-events.types.js +0 -157
  100. package/build/internal/cjs/src/calendar-v3-event-events.types.js.map +0 -1
  101. package/build/internal/cjs/src/calendar-v3-event-events.universal.js +0 -1185
  102. package/build/internal/cjs/src/calendar-v3-event-events.universal.js.map +0 -1
  103. package/build/internal/es/index.d.ts +0 -1
  104. package/build/internal/es/index.js +0 -2
  105. package/build/internal/es/index.js.map +0 -1
  106. package/build/internal/es/index.typings.d.ts +0 -1
  107. package/build/internal/es/index.typings.js +0 -2
  108. package/build/internal/es/index.typings.js.map +0 -1
  109. package/build/internal/es/meta.d.ts +0 -1
  110. package/build/internal/es/meta.js +0 -2
  111. package/build/internal/es/meta.js.map +0 -1
  112. package/build/internal/es/src/calendar-v3-event-events.context.d.ts +0 -51
  113. package/build/internal/es/src/calendar-v3-event-events.context.js +0 -51
  114. package/build/internal/es/src/calendar-v3-event-events.context.js.map +0 -1
  115. package/build/internal/es/src/calendar-v3-event-events.http.d.ts +0 -144
  116. package/build/internal/es/src/calendar-v3-event-events.http.js +0 -769
  117. package/build/internal/es/src/calendar-v3-event-events.http.js.map +0 -1
  118. package/build/internal/es/src/calendar-v3-event-events.meta.d.ts +0 -39
  119. package/build/internal/es/src/calendar-v3-event-events.meta.js +0 -236
  120. package/build/internal/es/src/calendar-v3-event-events.meta.js.map +0 -1
  121. package/build/internal/es/src/calendar-v3-event-events.public.js +0 -163
  122. package/build/internal/es/src/calendar-v3-event-events.public.js.map +0 -1
  123. package/build/internal/es/src/calendar-v3-event-events.types.js +0 -154
  124. package/build/internal/es/src/calendar-v3-event-events.types.js.map +0 -1
  125. package/build/internal/es/src/calendar-v3-event-events.universal.js +0 -1146
  126. package/build/internal/es/src/calendar-v3-event-events.universal.js.map +0 -1
@@ -1,3 +1,5 @@
1
+ import { ao as ListEventsByContactIdRequest$1, a as ListEventsByContactIdResponse$1, as as ListEventsByMemberIdRequest$1, c as ListEventsByMemberIdResponse$1, aO as GetEventRequest$1, aP as GetEventResponse$1, aQ as ListEventsRequest$1, e as ListEventsResponse$1, aR as QueryEventsRequest$1, aW as QueryEventsResponse$1, a$ as CreateEventRequest$1, b0 as CreateEventResponse$1, b1 as BulkCreateEventRequest$1, g as BulkCreateEventResponse$1, b6 as UpdateEventRequest$1, b7 as UpdateEventResponse$1, b8 as BulkUpdateEventRequest$1, k as BulkUpdateEventResponse$1, bb as RestoreEventDefaultsRequest$1, l as RestoreEventDefaultsResponse$1, bc as SplitRecurringEventRequest$1, m as SplitRecurringEventResponse$1, bd as CancelEventRequest$1, o as CancelEventResponse$1, be as BulkCancelEventRequest$1, q as BulkCancelEventResponse$1 } from './calendar-v3-event-events.universal-CLDnUCNu.mjs';
2
+
1
3
  /**
2
4
  * An event is a scheduled entry on a calendar that includes details like timing,
3
5
  * location, and participants. Each event is associated with
@@ -7,7 +9,7 @@
7
9
  * recurrence pattern. You can also specify whether events block time on the
8
10
  * schedule or allow other events to be scheduled concurrently.
9
11
  */
10
- export interface Event {
12
+ interface Event {
11
13
  /**
12
14
  * Event ID.
13
15
  * @minLength 36
@@ -241,7 +243,7 @@ export interface Event {
241
243
  */
242
244
  updatedDate?: Date | null;
243
245
  }
244
- export declare enum Status {
246
+ declare enum Status {
245
247
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
246
248
  /** Event is scheduled to happen or has happened. */
247
249
  CONFIRMED = "CONFIRMED",
@@ -249,9 +251,9 @@ export declare enum Status {
249
251
  CANCELLED = "CANCELLED"
250
252
  }
251
253
  /** @enumType */
252
- export type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'CONFIRMED' | 'CANCELLED';
254
+ type StatusWithLiterals = Status | 'UNKNOWN_STATUS' | 'CONFIRMED' | 'CANCELLED';
253
255
  /** A date time with a time zone, having the UTC offset and date determined by the server. */
254
- export interface ZonedDate {
256
+ interface ZonedDate {
255
257
  /**
256
258
  * Local date time in [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
257
259
  * For example, `2024-01-30T13:30:00`.
@@ -274,7 +276,7 @@ export interface ZonedDate {
274
276
  */
275
277
  utcDate?: Date | null;
276
278
  }
277
- export declare enum RecurrenceType {
279
+ declare enum RecurrenceType {
278
280
  UNKNOWN_RECURRENCE_TYPE = "UNKNOWN_RECURRENCE_TYPE",
279
281
  /** The event occurs only once and doesn't repeat. */
280
282
  NONE = "NONE",
@@ -286,8 +288,8 @@ export declare enum RecurrenceType {
286
288
  EXCEPTION = "EXCEPTION"
287
289
  }
288
290
  /** @enumType */
289
- export type RecurrenceTypeWithLiterals = RecurrenceType | 'UNKNOWN_RECURRENCE_TYPE' | 'NONE' | 'MASTER' | 'INSTANCE' | 'EXCEPTION';
290
- export interface RecurrenceRule {
291
+ type RecurrenceTypeWithLiterals = RecurrenceType | 'UNKNOWN_RECURRENCE_TYPE' | 'NONE' | 'MASTER' | 'INSTANCE' | 'EXCEPTION';
292
+ interface RecurrenceRule {
291
293
  /**
292
294
  * Frequency how often the event repeats. Works together with `interval`.
293
295
  *
@@ -331,14 +333,14 @@ export interface RecurrenceRule {
331
333
  */
332
334
  adjustedUntil?: ZonedDate;
333
335
  }
334
- export declare enum Frequency {
336
+ declare enum Frequency {
335
337
  UNKNOWN_FREQUENCY = "UNKNOWN_FREQUENCY",
336
338
  /** The event's recurrence pattern is based on weeks. */
337
339
  WEEKLY = "WEEKLY"
338
340
  }
339
341
  /** @enumType */
340
- export type FrequencyWithLiterals = Frequency | 'UNKNOWN_FREQUENCY' | 'WEEKLY';
341
- export declare enum Day {
342
+ type FrequencyWithLiterals = Frequency | 'UNKNOWN_FREQUENCY' | 'WEEKLY';
343
+ declare enum Day {
342
344
  /** The recurring event takes place on Mondays. */
343
345
  MONDAY = "MONDAY",
344
346
  /** The recurring event takes place on Tuesdays. */
@@ -355,8 +357,8 @@ export declare enum Day {
355
357
  SUNDAY = "SUNDAY"
356
358
  }
357
359
  /** @enumType */
358
- export type DayWithLiterals = Day | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
359
- export declare enum Transparency {
360
+ type DayWithLiterals = Day | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
361
+ declare enum Transparency {
360
362
  UNKNOWN_TRANSPARENCY = "UNKNOWN_TRANSPARENCY",
361
363
  /** The schedule is blocked during the event, preventing other events that involve the same entities (for example, Booking staff members) from being scheduled at the same time. */
362
364
  OPAQUE = "OPAQUE",
@@ -364,8 +366,8 @@ export declare enum Transparency {
364
366
  TRANSPARENT = "TRANSPARENT"
365
367
  }
366
368
  /** @enumType */
367
- export type TransparencyWithLiterals = Transparency | 'UNKNOWN_TRANSPARENCY' | 'OPAQUE' | 'TRANSPARENT';
368
- export interface Location {
369
+ type TransparencyWithLiterals = Transparency | 'UNKNOWN_TRANSPARENCY' | 'OPAQUE' | 'TRANSPARENT';
370
+ interface Location {
369
371
  /**
370
372
  * [Location](https://dev.wix.com/docs/rest/business-management/locations/location-object)
371
373
  * ID. Available only for `BUSINESS` locations.
@@ -401,7 +403,7 @@ export interface Location {
401
403
  */
402
404
  address?: string | null;
403
405
  }
404
- export declare enum LocationType {
406
+ declare enum LocationType {
405
407
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
406
408
  /** The event is held at a business location. */
407
409
  BUSINESS = "BUSINESS",
@@ -411,8 +413,8 @@ export declare enum LocationType {
411
413
  CUSTOM = "CUSTOM"
412
414
  }
413
415
  /** @enumType */
414
- export type LocationTypeWithLiterals = LocationType | 'UNKNOWN_TYPE' | 'BUSINESS' | 'CUSTOMER' | 'CUSTOM';
415
- export interface Resource {
416
+ type LocationTypeWithLiterals = LocationType | 'UNKNOWN_TYPE' | 'BUSINESS' | 'CUSTOMER' | 'CUSTOM';
417
+ interface Resource {
416
418
  /**
417
419
  * Resource ID.
418
420
  * @format GUID
@@ -445,7 +447,7 @@ export interface Resource {
445
447
  */
446
448
  permissionRole?: RoleWithLiterals;
447
449
  }
448
- export declare enum Role {
450
+ declare enum Role {
449
451
  UNKNOWN_ROLE = "UNKNOWN_ROLE",
450
452
  /** Full read and write access. */
451
453
  WRITER = "WRITER",
@@ -453,8 +455,8 @@ export declare enum Role {
453
455
  COMMENTER = "COMMENTER"
454
456
  }
455
457
  /** @enumType */
456
- export type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'WRITER' | 'COMMENTER';
457
- export interface Participants {
458
+ type RoleWithLiterals = Role | 'UNKNOWN_ROLE' | 'WRITER' | 'COMMENTER';
459
+ interface Participants {
458
460
  /**
459
461
  * Total number of participants.
460
462
  *
@@ -484,7 +486,7 @@ export interface Participants {
484
486
  */
485
487
  status?: ParticipantsStatusWithLiterals;
486
488
  }
487
- export interface Participant {
489
+ interface Participant {
488
490
  /**
489
491
  * Participant name.
490
492
  *
@@ -511,7 +513,7 @@ export interface Participant {
511
513
  */
512
514
  contactId?: string | null;
513
515
  }
514
- export declare enum ParticipantsStatus {
516
+ declare enum ParticipantsStatus {
515
517
  UNKNOWN_STATUS = "UNKNOWN_STATUS",
516
518
  /** All participants are confirmed. */
517
519
  CONFIRMED = "CONFIRMED",
@@ -519,8 +521,8 @@ export declare enum ParticipantsStatus {
519
521
  PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
520
522
  }
521
523
  /** @enumType */
522
- export type ParticipantsStatusWithLiterals = ParticipantsStatus | 'UNKNOWN_STATUS' | 'CONFIRMED' | 'PENDING_CONFIRMATION';
523
- export interface ConferencingDetails {
524
+ type ParticipantsStatusWithLiterals = ParticipantsStatus | 'UNKNOWN_STATUS' | 'CONFIRMED' | 'PENDING_CONFIRMATION';
525
+ interface ConferencingDetails {
524
526
  /** Conference type. For example, `Zoom`. */
525
527
  type?: TypeWithLiterals;
526
528
  /**
@@ -560,14 +562,14 @@ export interface ConferencingDetails {
560
562
  */
561
563
  externalId?: string | null;
562
564
  }
563
- export declare enum Type {
565
+ declare enum Type {
564
566
  UNKNOWN_TYPE = "UNKNOWN_TYPE",
565
567
  ZOOM = "ZOOM",
566
568
  CUSTOM = "CUSTOM"
567
569
  }
568
570
  /** @enumType */
569
- export type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';
570
- export declare enum Field {
571
+ type TypeWithLiterals = Type | 'UNKNOWN_TYPE' | 'ZOOM' | 'CUSTOM';
572
+ declare enum Field {
571
573
  UNKNOWN_FIELD = "UNKNOWN_FIELD",
572
574
  /** `title` is inherited from the schedule or `MASTER` event. */
573
575
  TITLE = "TITLE",
@@ -587,8 +589,8 @@ export declare enum Field {
587
589
  CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
588
590
  }
589
591
  /** @enumType */
590
- export type FieldWithLiterals = Field | 'UNKNOWN_FIELD' | 'TITLE' | 'TIME_ZONE' | 'TIME' | 'LOCATION' | 'RESOURCES' | 'CAPACITY' | 'PARTICIPANTS' | 'CONFERENCING_DETAILS';
591
- export interface Permission {
592
+ type FieldWithLiterals = Field | 'UNKNOWN_FIELD' | 'TITLE' | 'TIME_ZONE' | 'TIME' | 'LOCATION' | 'RESOURCES' | 'CAPACITY' | 'PARTICIPANTS' | 'CONFERENCING_DETAILS';
593
+ interface Permission {
592
594
  /**
593
595
  * [Wix user](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities#wix-users)
594
596
  * granted the permission.
@@ -603,7 +605,7 @@ export interface Permission {
603
605
  */
604
606
  role?: RoleWithLiterals;
605
607
  }
606
- export interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
608
+ interface CommonIdentificationData extends CommonIdentificationDataIdOneOf {
607
609
  /**
608
610
  * ID of a Wix user. For example, the site owner or a
609
611
  * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
@@ -612,7 +614,7 @@ export interface CommonIdentificationData extends CommonIdentificationDataIdOneO
612
614
  wixUserId?: string;
613
615
  }
614
616
  /** @oneof */
615
- export interface CommonIdentificationDataIdOneOf {
617
+ interface CommonIdentificationDataIdOneOf {
616
618
  /**
617
619
  * ID of a Wix user. For example, the site owner or a
618
620
  * [site collaborator](https://support.wix.com/en/article/inviting-people-to-contribute-to-your-site).
@@ -620,13 +622,7 @@ export interface CommonIdentificationDataIdOneOf {
620
622
  */
621
623
  wixUserId?: string;
622
624
  }
623
- export declare enum IdentityType {
624
- UNKNOWN = "UNKNOWN",
625
- WIX_USER = "WIX_USER"
626
- }
627
- /** @enumType */
628
- export type IdentityTypeWithLiterals = IdentityType | 'UNKNOWN' | 'WIX_USER';
629
- export interface ExtendedFields {
625
+ interface ExtendedFields {
630
626
  /**
631
627
  * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
632
628
  * The value of each key is structured according to the schema defined when the extended fields were configured.
@@ -637,17 +633,7 @@ export interface ExtendedFields {
637
633
  */
638
634
  namespaces?: Record<string, Record<string, any>>;
639
635
  }
640
- export interface RecurringEventSplit {
641
- /** Original `MASTER` event that was shortened. */
642
- updatedRecurringEventEndingBeforeSplit?: Event;
643
- /** New `MASTER` event starting with the first event after the split date. */
644
- newRecurringEventStartingFromSplit?: Event;
645
- }
646
- export interface EventCancelled {
647
- /** Canceled event. */
648
- event?: Event;
649
- }
650
- export interface ParticipantNotification {
636
+ interface ParticipantNotification {
651
637
  /**
652
638
  * Whether to notify the participants about changes made to the schedule or event.
653
639
  *
@@ -664,171 +650,7 @@ export interface ParticipantNotification {
664
650
  */
665
651
  message?: string | null;
666
652
  }
667
- /** Deprecated. Use EventUpdated instead, which includes the modified fields and additional metadata. */
668
- export interface EventUpdatedWithMetadata {
669
- /** The updated event. */
670
- event?: Event;
671
- /**
672
- * Information about whether participants of the updated event are notified and
673
- * the message they receive.
674
- */
675
- participantNotification?: ParticipantNotification;
676
- }
677
- export interface UpdateScheduleWithFixedBusinessResourceIdRequest {
678
- /** @format GUID */
679
- metaSiteId?: string;
680
- /** @format GUID */
681
- currentBusinessResourceId?: string;
682
- migrateBusinessConferenceId?: boolean;
683
- }
684
- export interface UpdateScheduleWithFixedBusinessResourceIdResponse {
685
- }
686
- export interface UpdateEventsWithFixedBusinessResourceIdRequest {
687
- /** @format GUID */
688
- metaSiteId?: string;
689
- /** @format GUID */
690
- currentBusinessResourceId?: string;
691
- migrateBusinessConferenceId?: boolean;
692
- }
693
- export interface UpdateEventsWithFixedBusinessResourceIdResponse {
694
- }
695
- export interface DomainEvent extends DomainEventBodyOneOf {
696
- createdEvent?: EntityCreatedEvent;
697
- updatedEvent?: EntityUpdatedEvent;
698
- deletedEvent?: EntityDeletedEvent;
699
- actionEvent?: ActionEvent;
700
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
701
- id?: string;
702
- /**
703
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
704
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
705
- */
706
- entityFqdn?: string;
707
- /**
708
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
709
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
710
- */
711
- slug?: string;
712
- /** ID of the entity associated with the event. */
713
- entityId?: string;
714
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
715
- eventTime?: Date | null;
716
- /**
717
- * Whether the event was triggered as a result of a privacy regulation application
718
- * (for example, GDPR).
719
- */
720
- triggeredByAnonymizeRequest?: boolean | null;
721
- /** If present, indicates the action that triggered the event. */
722
- originatedFrom?: string | null;
723
- /**
724
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
725
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
726
- */
727
- entityEventSequence?: string | null;
728
- }
729
- /** @oneof */
730
- export interface DomainEventBodyOneOf {
731
- createdEvent?: EntityCreatedEvent;
732
- updatedEvent?: EntityUpdatedEvent;
733
- deletedEvent?: EntityDeletedEvent;
734
- actionEvent?: ActionEvent;
735
- }
736
- export interface EntityCreatedEvent {
737
- entityAsJson?: string;
738
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
739
- restoreInfo?: RestoreInfo;
740
- }
741
- export interface RestoreInfo {
742
- deletedDate?: Date | null;
743
- }
744
- export interface EntityUpdatedEvent {
745
- /**
746
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
747
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
748
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
749
- */
750
- currentEntityAsJson?: string;
751
- }
752
- export interface EntityDeletedEvent {
753
- /** Entity that was deleted. */
754
- deletedEntityAsJson?: string | null;
755
- }
756
- export interface ActionEvent {
757
- bodyAsJson?: string;
758
- }
759
- export interface MessageEnvelope {
760
- /**
761
- * App instance ID.
762
- * @format GUID
763
- */
764
- instanceId?: string | null;
765
- /**
766
- * Event type.
767
- * @maxLength 150
768
- */
769
- eventType?: string;
770
- /** The identification type and identity data. */
771
- identity?: IdentificationData;
772
- /** Stringify payload. */
773
- data?: string;
774
- }
775
- export interface IdentificationData extends IdentificationDataIdOneOf {
776
- /**
777
- * ID of a site visitor that has not logged in to the site.
778
- * @format GUID
779
- */
780
- anonymousVisitorId?: string;
781
- /**
782
- * ID of a site visitor that has logged in to the site.
783
- * @format GUID
784
- */
785
- memberId?: string;
786
- /**
787
- * ID of a Wix user (site owner, contributor, etc.).
788
- * @format GUID
789
- */
790
- wixUserId?: string;
791
- /**
792
- * ID of an app.
793
- * @format GUID
794
- */
795
- appId?: string;
796
- /** @readonly */
797
- identityType?: WebhookIdentityTypeWithLiterals;
798
- }
799
- /** @oneof */
800
- export interface IdentificationDataIdOneOf {
801
- /**
802
- * ID of a site visitor that has not logged in to the site.
803
- * @format GUID
804
- */
805
- anonymousVisitorId?: string;
806
- /**
807
- * ID of a site visitor that has logged in to the site.
808
- * @format GUID
809
- */
810
- memberId?: string;
811
- /**
812
- * ID of a Wix user (site owner, contributor, etc.).
813
- * @format GUID
814
- */
815
- wixUserId?: string;
816
- /**
817
- * ID of an app.
818
- * @format GUID
819
- */
820
- appId?: string;
821
- }
822
- export declare enum WebhookIdentityType {
823
- UNKNOWN = "UNKNOWN",
824
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
825
- MEMBER = "MEMBER",
826
- WIX_USER = "WIX_USER",
827
- APP = "APP"
828
- }
829
- /** @enumType */
830
- export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
831
- export interface ListEventsByContactIdRequest {
653
+ interface ListEventsByContactIdRequest {
832
654
  /**
833
655
  * ID of the [contact](https://dev.wix.com/docs/rest/crm/members-contacts/contacts/contacts/contact-v4/contact-object)
834
656
  * to retrieve events for. Required, unless you provide `cursorPaging`.
@@ -874,7 +696,7 @@ export interface ListEventsByContactIdRequest {
874
696
  cursorPaging?: CommonCursorPaging;
875
697
  }
876
698
  /** TODO Diverge */
877
- export interface CommonCursorPaging {
699
+ interface CommonCursorPaging {
878
700
  /**
879
701
  * Number of events to return.
880
702
  * Defaults to `50`. Maximum `100`.
@@ -891,14 +713,14 @@ export interface CommonCursorPaging {
891
713
  */
892
714
  cursor?: string | null;
893
715
  }
894
- export interface ListEventsByContactIdResponse {
716
+ interface ListEventsByContactIdResponse {
895
717
  /** Retrieved events. */
896
718
  events?: Event[];
897
719
  /** Paging metadata. */
898
720
  pagingMetadata?: CommonCursorPagingMetadata;
899
721
  }
900
722
  /** TODO Diverge */
901
- export interface CommonCursorPagingMetadata {
723
+ interface CommonCursorPagingMetadata {
902
724
  /** Number of items returned in the response. */
903
725
  count?: number | null;
904
726
  /** 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). */
@@ -910,11 +732,11 @@ export interface CommonCursorPagingMetadata {
910
732
  */
911
733
  hasNext?: boolean | null;
912
734
  }
913
- export interface CommonCursors {
735
+ interface CommonCursors {
914
736
  /** Cursor pointing to next page in the list of results. */
915
737
  next?: string | null;
916
738
  }
917
- export interface ListEventsByMemberIdRequest {
739
+ interface ListEventsByMemberIdRequest {
918
740
  /**
919
741
  * ID of the [member](https://dev.wix.com/docs/rest/crm/members-contacts/members/members/member-object)
920
742
  * to retrieve events for. Required, unless you provide `cursorPaging`.
@@ -974,301 +796,13 @@ export interface ListEventsByMemberIdRequest {
974
796
  */
975
797
  eventIds?: string[];
976
798
  }
977
- export interface ListEventsByMemberIdResponse {
799
+ interface ListEventsByMemberIdResponse {
978
800
  /** Retrieved events. */
979
801
  events?: Event[];
980
802
  /** Paging metadata. */
981
803
  pagingMetadata?: CommonCursorPagingMetadata;
982
804
  }
983
- /** Encapsulates all details written to the Greyhound topic when a site's properties are updated. */
984
- export interface SitePropertiesNotification {
985
- /** The site ID for which this update notification applies. */
986
- metasiteId?: string;
987
- /** The actual update event. */
988
- event?: SitePropertiesEvent;
989
- /**
990
- * A convenience set of mappings from the MetaSite ID to its constituent services.
991
- * @maxSize 500
992
- */
993
- translations?: Translation[];
994
- /** Context of the notification */
995
- changeContext?: ChangeContext;
996
- }
997
- /** The actual update event for a particular notification. */
998
- export interface SitePropertiesEvent {
999
- /** Version of the site's properties represented by this update. */
1000
- version?: number;
1001
- /** Set of properties that were updated - corresponds to the fields in "properties". */
1002
- fields?: string[];
1003
- /** Updated properties. */
1004
- properties?: Properties;
1005
- }
1006
- export interface Properties {
1007
- /** Site categories. */
1008
- categories?: Categories;
1009
- /** Site locale. */
1010
- locale?: Locale;
1011
- /**
1012
- * Site language.
1013
- *
1014
- * Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format.
1015
- */
1016
- language?: string | null;
1017
- /**
1018
- * Site currency format used to bill customers.
1019
- *
1020
- * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
1021
- */
1022
- paymentCurrency?: string | null;
1023
- /** Timezone in `America/New_York` format. */
1024
- timeZone?: string | null;
1025
- /** Email address. */
1026
- email?: string | null;
1027
- /** Phone number. */
1028
- phone?: string | null;
1029
- /** Fax number. */
1030
- fax?: string | null;
1031
- /** Address. */
1032
- address?: Address;
1033
- /** Site display name. */
1034
- siteDisplayName?: string | null;
1035
- /** Business name. */
1036
- businessName?: string | null;
1037
- /** Path to the site's logo in Wix Media (without Wix Media base URL). */
1038
- logo?: string | null;
1039
- /** Site description. */
1040
- description?: string | null;
1041
- /**
1042
- * Business schedule. Regular and exceptional time periods when the business is open or the service is available.
1043
- *
1044
- * __Note:__ Not supported by Wix Bookings.
1045
- */
1046
- businessSchedule?: BusinessSchedule;
1047
- /** Supported languages of a site and the primary language. */
1048
- multilingual?: Multilingual;
1049
- /** Cookie policy the Wix user defined for their site (before the site visitor interacts with/limits it). */
1050
- consentPolicy?: ConsentPolicy;
1051
- /**
1052
- * Supported values: `FITNESS SERVICE`, `RESTAURANT`, `BLOG`, `STORE`, `EVENT`, `UNKNOWN`.
1053
- *
1054
- * Site business type.
1055
- */
1056
- businessConfig?: string | null;
1057
- /** External site URL that uses Wix as its headless business solution. */
1058
- externalSiteUrl?: string | null;
1059
- /** Track clicks analytics. */
1060
- trackClicksAnalytics?: boolean;
1061
- }
1062
- export interface Categories {
1063
- /** Primary site category. */
1064
- primary?: string;
1065
- /**
1066
- * Secondary site category.
1067
- * @maxSize 50
1068
- */
1069
- secondary?: string[];
1070
- /** Business Term Id */
1071
- businessTermId?: string | null;
1072
- }
1073
- export interface Locale {
1074
- /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
1075
- languageCode?: string;
1076
- /** Two-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
1077
- country?: string;
1078
- }
1079
- export interface Address {
1080
- /** Street name. */
1081
- street?: string;
1082
- /** City name. */
1083
- city?: string;
1084
- /** Two-letter country code in an [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. */
1085
- country?: string;
1086
- /** State. */
1087
- state?: string;
1088
- /**
1089
- * Zip or postal code.
1090
- * @maxLength 20
1091
- */
1092
- zip?: string;
1093
- /** Extra information to be displayed in the address. */
1094
- hint?: AddressHint;
1095
- /** Whether this address represents a physical location. */
1096
- isPhysical?: boolean;
1097
- /** Google-formatted version of this address. */
1098
- googleFormattedAddress?: string;
1099
- /** Street number. */
1100
- streetNumber?: string;
1101
- /** Apartment number. */
1102
- apartmentNumber?: string;
1103
- /** Geographic coordinates of location. */
1104
- coordinates?: GeoCoordinates;
1105
- }
1106
- /**
1107
- * Extra information on displayed addresses.
1108
- * This is used for display purposes. Used to add additional data about the address, such as "In the passage".
1109
- * Free text. In addition, the user can state where to display the additional description - before, after, or instead of the address string.
1110
- */
1111
- export interface AddressHint {
1112
- /** Extra text displayed next to, or instead of, the actual address. */
1113
- text?: string;
1114
- /** Where the extra text should be displayed. */
1115
- placement?: PlacementTypeWithLiterals;
1116
- }
1117
- /** Where the extra text should be displayed: before, after or instead of the actual address. */
1118
- export declare enum PlacementType {
1119
- BEFORE = "BEFORE",
1120
- AFTER = "AFTER",
1121
- REPLACE = "REPLACE"
1122
- }
1123
- /** @enumType */
1124
- export type PlacementTypeWithLiterals = PlacementType | 'BEFORE' | 'AFTER' | 'REPLACE';
1125
- /** Geocoordinates for a particular address. */
1126
- export interface GeoCoordinates {
1127
- /** Latitude of the location. Must be between -90 and 90. */
1128
- latitude?: number;
1129
- /** Longitude of the location. Must be between -180 and 180. */
1130
- longitude?: number;
1131
- }
1132
- /** Business schedule. Regular and exceptional time periods when the business is open or the service is available. */
1133
- export interface BusinessSchedule {
1134
- /**
1135
- * Weekly recurring time periods when the business is regularly open or the service is available. Limited to 100 time periods.
1136
- * @maxSize 100
1137
- */
1138
- periods?: TimePeriod[];
1139
- /**
1140
- * Exceptions to the business's regular hours. The business can be open or closed during the exception.
1141
- * @maxSize 100
1142
- */
1143
- specialHourPeriod?: SpecialHourPeriod[];
1144
- }
1145
- /** Weekly recurring time periods when the business is regularly open or the service is available. */
1146
- export interface TimePeriod {
1147
- /** Day of the week the period starts on. */
1148
- openDay?: DayOfWeekWithLiterals;
1149
- /**
1150
- * 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
1151
- * midnight at the end of the specified day.
1152
- */
1153
- openTime?: string;
1154
- /** Day of the week the period ends on. */
1155
- closeDay?: DayOfWeekWithLiterals;
1156
- /**
1157
- * 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
1158
- * midnight at the end of the specified day.
1159
- *
1160
- * __Note:__ If `openDay` and `closeDay` specify the same day of the week `closeTime` must be later than `openTime`.
1161
- */
1162
- closeTime?: string;
1163
- }
1164
- /** Enumerates the days of the week. */
1165
- export declare enum DayOfWeek {
1166
- MONDAY = "MONDAY",
1167
- TUESDAY = "TUESDAY",
1168
- WEDNESDAY = "WEDNESDAY",
1169
- THURSDAY = "THURSDAY",
1170
- FRIDAY = "FRIDAY",
1171
- SATURDAY = "SATURDAY",
1172
- SUNDAY = "SUNDAY"
1173
- }
1174
- /** @enumType */
1175
- export type DayOfWeekWithLiterals = DayOfWeek | 'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY';
1176
- /** Exception to the business's regular hours. The business can be open or closed during the exception. */
1177
- export interface SpecialHourPeriod {
1178
- /** 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). */
1179
- startDate?: string;
1180
- /** 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). */
1181
- endDate?: string;
1182
- /**
1183
- * Whether the business is closed (or the service is not available) during the exception.
1184
- *
1185
- * Default: `true`.
1186
- */
1187
- isClosed?: boolean;
1188
- /** Additional info about the exception. For example, "We close earlier on New Year's Eve." */
1189
- comment?: string;
1190
- }
1191
- export interface Multilingual {
1192
- /**
1193
- * Supported languages list.
1194
- * @maxSize 200
1195
- */
1196
- supportedLanguages?: SupportedLanguage[];
1197
- /** Whether to redirect to user language. */
1198
- autoRedirect?: boolean;
1199
- }
1200
- export interface SupportedLanguage {
1201
- /** Two-letter language code in [ISO 639-1 alpha-2](https://en.wikipedia.org/wiki/List_of_ISO_639-1_codes) format. */
1202
- languageCode?: string;
1203
- /** Locale. */
1204
- locale?: Locale;
1205
- /** Whether the supported language is the primary language for the site. */
1206
- isPrimary?: boolean;
1207
- /** Language icon. */
1208
- countryCode?: string;
1209
- /** How the language will be resolved. For internal use. */
1210
- resolutionMethod?: ResolutionMethodWithLiterals;
1211
- /** Whether the supported language is the primary language for site visitors. */
1212
- isVisitorPrimary?: boolean | null;
1213
- }
1214
- export declare enum ResolutionMethod {
1215
- QUERY_PARAM = "QUERY_PARAM",
1216
- SUBDOMAIN = "SUBDOMAIN",
1217
- SUBDIRECTORY = "SUBDIRECTORY"
1218
- }
1219
- /** @enumType */
1220
- export type ResolutionMethodWithLiterals = ResolutionMethod | 'QUERY_PARAM' | 'SUBDOMAIN' | 'SUBDIRECTORY';
1221
- export interface ConsentPolicy {
1222
- /** Whether the site uses cookies that are essential to site operation. Always `true`. */
1223
- essential?: boolean | null;
1224
- /** Whether the site uses cookies that affect site performance and other functional measurements. */
1225
- functional?: boolean | null;
1226
- /** Whether the site uses cookies that collect analytics about how the site is used (in order to improve it). */
1227
- analytics?: boolean | null;
1228
- /** Whether the site uses cookies that collect information allowing better customization of the experience for a current visitor. */
1229
- advertising?: boolean | null;
1230
- /** CCPA compliance flag. */
1231
- dataToThirdParty?: boolean | null;
1232
- }
1233
- /** A single mapping from the MetaSite ID to a particular service. */
1234
- export interface Translation {
1235
- /** The service type. */
1236
- serviceType?: string;
1237
- /** The application definition ID; this only applies to services of type ThirdPartyApps. */
1238
- appDefId?: string;
1239
- /** The instance ID of the service. */
1240
- instanceId?: string;
1241
- }
1242
- export interface ChangeContext extends ChangeContextPayloadOneOf {
1243
- /** Properties were updated. */
1244
- propertiesChange?: PropertiesChange;
1245
- /** Default properties were created on site creation. */
1246
- siteCreated?: SiteCreated;
1247
- /** Properties were cloned on site cloning. */
1248
- siteCloned?: SiteCloned;
1249
- }
1250
- /** @oneof */
1251
- export interface ChangeContextPayloadOneOf {
1252
- /** Properties were updated. */
1253
- propertiesChange?: PropertiesChange;
1254
- /** Default properties were created on site creation. */
1255
- siteCreated?: SiteCreated;
1256
- /** Properties were cloned on site cloning. */
1257
- siteCloned?: SiteCloned;
1258
- }
1259
- export interface PropertiesChange {
1260
- }
1261
- export interface SiteCreated {
1262
- /** Origin template site id. */
1263
- originTemplateId?: string | null;
1264
- }
1265
- export interface SiteCloned {
1266
- /** Origin site id. */
1267
- originMetaSiteId?: string;
1268
- }
1269
- export interface Empty {
1270
- }
1271
- export interface GetEventRequest {
805
+ interface GetEventRequest {
1272
806
  /**
1273
807
  * ID of the event to retrieve.
1274
808
  *
@@ -1301,7 +835,7 @@ export interface GetEventRequest {
1301
835
  */
1302
836
  fields?: RequestedFieldsWithLiterals[];
1303
837
  }
1304
- export declare enum RequestedFields {
838
+ declare enum RequestedFields {
1305
839
  UNKNOWN_REQUESTED_FIELDS = "UNKNOWN_REQUESTED_FIELDS",
1306
840
  /** Returns all fields with personal data. Your app must have `Read Calendars - Including PI` or `Manage Calendars` permission scope. */
1307
841
  PI_FIELDS = "PI_FIELDS",
@@ -1309,12 +843,12 @@ export declare enum RequestedFields {
1309
843
  OWN_PI_FIELDS = "OWN_PI_FIELDS"
1310
844
  }
1311
845
  /** @enumType */
1312
- export type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELDS' | 'PI_FIELDS' | 'OWN_PI_FIELDS';
1313
- export interface GetEventResponse {
846
+ type RequestedFieldsWithLiterals = RequestedFields | 'UNKNOWN_REQUESTED_FIELDS' | 'PI_FIELDS' | 'OWN_PI_FIELDS';
847
+ interface GetEventResponse {
1314
848
  /** Retrieved event. */
1315
849
  event?: Event;
1316
850
  }
1317
- export interface ListEventsRequest {
851
+ interface ListEventsRequest {
1318
852
  /**
1319
853
  * IDs of the events to retrieve.
1320
854
  *
@@ -1349,11 +883,11 @@ export interface ListEventsRequest {
1349
883
  */
1350
884
  fields?: RequestedFieldsWithLiterals[];
1351
885
  }
1352
- export interface ListEventsResponse {
886
+ interface ListEventsResponse {
1353
887
  /** Retrieved events matching the provided IDs. */
1354
888
  events?: Event[];
1355
889
  }
1356
- export interface QueryEventsRequest {
890
+ interface QueryEventsRequest {
1357
891
  /**
1358
892
  * Local start date and time from which events are returned in
1359
893
  * [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format. For example,
@@ -1414,7 +948,7 @@ export interface QueryEventsRequest {
1414
948
  fields?: RequestedFieldsWithLiterals[];
1415
949
  }
1416
950
  /** TODO Diverge */
1417
- export interface CursorQuery extends CursorQueryPagingMethodOneOf {
951
+ interface CursorQuery extends CursorQueryPagingMethodOneOf {
1418
952
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
1419
953
  cursorPaging?: CursorPaging;
1420
954
  /**
@@ -1439,12 +973,12 @@ export interface CursorQuery extends CursorQueryPagingMethodOneOf {
1439
973
  sort?: Sorting[];
1440
974
  }
1441
975
  /** @oneof */
1442
- export interface CursorQueryPagingMethodOneOf {
976
+ interface CursorQueryPagingMethodOneOf {
1443
977
  /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
1444
978
  cursorPaging?: CursorPaging;
1445
979
  }
1446
980
  /** TODO Diverge */
1447
- export interface Sorting {
981
+ interface Sorting {
1448
982
  /**
1449
983
  * The field to sort by.
1450
984
  * Either `start` or `end`.
@@ -1454,14 +988,14 @@ export interface Sorting {
1454
988
  /** Sort order. */
1455
989
  order?: SortOrderWithLiterals;
1456
990
  }
1457
- export declare enum SortOrder {
991
+ declare enum SortOrder {
1458
992
  ASC = "ASC",
1459
993
  DESC = "DESC"
1460
994
  }
1461
995
  /** @enumType */
1462
- export type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
996
+ type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
1463
997
  /** TODO Diverge */
1464
- export interface CursorPaging {
998
+ interface CursorPaging {
1465
999
  /**
1466
1000
  * Number of events to return.
1467
1001
  * Defaults to `50`. Maximum `1000`.
@@ -1478,14 +1012,14 @@ export interface CursorPaging {
1478
1012
  */
1479
1013
  cursor?: string | null;
1480
1014
  }
1481
- export interface QueryEventsResponse {
1015
+ interface QueryEventsResponse {
1482
1016
  /** Retrieved events matching the provided query. */
1483
1017
  events?: Event[];
1484
1018
  /** Paging metadata. */
1485
1019
  pagingMetadata?: CursorPagingMetadata;
1486
1020
  }
1487
1021
  /** TODO Diverge */
1488
- export interface CursorPagingMetadata {
1022
+ interface CursorPagingMetadata {
1489
1023
  /** Number of items returned in the response. */
1490
1024
  count?: number | null;
1491
1025
  /** 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). */
@@ -1497,45 +1031,11 @@ export interface CursorPagingMetadata {
1497
1031
  */
1498
1032
  hasNext?: boolean | null;
1499
1033
  }
1500
- export interface Cursors {
1034
+ interface Cursors {
1501
1035
  /** Cursor pointing to next page in the list of results. */
1502
1036
  next?: string | null;
1503
1037
  }
1504
- export interface ListRecurringEventInstancesHistoryRequest {
1505
- /**
1506
- * The ID of the recurring event.
1507
- * Required, unless `cursorPaging` is provided.
1508
- * @minLength 64
1509
- * @maxLength 64
1510
- */
1511
- recurringEventId?: string | null;
1512
- /**
1513
- * The revision of the recurring event.
1514
- * Required, unless `cursorPaging` is provided.
1515
- */
1516
- revision?: string | null;
1517
- /**
1518
- * Inclusive start date for which events are returned, in ISO-8601 format.
1519
- * Events that begin at or after the `fromDate` are included in the results.
1520
- * Required, unless `cursorPaging` is provided.
1521
- */
1522
- fromDate?: Date | null;
1523
- /**
1524
- * Exclusive end date for which events are returned, in ISO-8601 format.
1525
- * Events that begin before the `toDate` are included in the results.
1526
- * Required, unless `cursorPaging` is provided.
1527
- */
1528
- toDate?: Date | null;
1529
- /** Optional cursor pointing to the next page of events. */
1530
- cursorPaging?: CursorPaging;
1531
- }
1532
- export interface ListRecurringEventInstancesHistoryResponse {
1533
- /** The recurring event instances. */
1534
- recurringEventInstances?: Event[];
1535
- /** Paging metadata. */
1536
- pagingMetadata?: CursorPagingMetadata;
1537
- }
1538
- export interface CreateEventRequest {
1038
+ interface CreateEventRequest {
1539
1039
  /** Event to create. */
1540
1040
  event: Event;
1541
1041
  /**
@@ -1553,11 +1053,11 @@ export interface CreateEventRequest {
1553
1053
  */
1554
1054
  idempotencyKey?: string | null;
1555
1055
  }
1556
- export interface CreateEventResponse {
1056
+ interface CreateEventResponse {
1557
1057
  /** Created event. */
1558
1058
  event?: Event;
1559
1059
  }
1560
- export interface BulkCreateEventRequest {
1060
+ interface BulkCreateEventRequest {
1561
1061
  /**
1562
1062
  * Events to create.
1563
1063
  * @minSize 1
@@ -1579,23 +1079,23 @@ export interface BulkCreateEventRequest {
1579
1079
  */
1580
1080
  timeZone?: string | null;
1581
1081
  }
1582
- export interface MaskedEvent {
1082
+ interface MaskedEvent {
1583
1083
  /** Event to create. */
1584
1084
  event?: Event;
1585
1085
  }
1586
- export interface BulkCreateEventResponse {
1086
+ interface BulkCreateEventResponse {
1587
1087
  /** The result for each event, containing the event and whether the action was successful. */
1588
1088
  results?: BulkEventResult[];
1589
1089
  /** Total successes and failures. */
1590
1090
  bulkActionMetadata?: BulkActionMetadata;
1591
1091
  }
1592
- export interface BulkEventResult {
1092
+ interface BulkEventResult {
1593
1093
  /** Whether the requested action was successful. */
1594
1094
  itemMetadata?: ItemMetadata;
1595
1095
  /** The event. */
1596
1096
  item?: Event;
1597
1097
  }
1598
- export interface ItemMetadata {
1098
+ interface ItemMetadata {
1599
1099
  /**
1600
1100
  * Event ID.
1601
1101
  * Should always be available, unless it's impossible (for example, when failing to create an event).
@@ -1611,7 +1111,7 @@ export interface ItemMetadata {
1611
1111
  /** Details about the error in case of failure. */
1612
1112
  error?: ApplicationError;
1613
1113
  }
1614
- export interface ApplicationError {
1114
+ interface ApplicationError {
1615
1115
  /** Error code. */
1616
1116
  code?: string;
1617
1117
  /** Description of the error. */
@@ -1619,13 +1119,13 @@ export interface ApplicationError {
1619
1119
  /** Data related to the error. */
1620
1120
  data?: Record<string, any> | null;
1621
1121
  }
1622
- export interface BulkActionMetadata {
1122
+ interface BulkActionMetadata {
1623
1123
  /** Number of events that were successfully processed. */
1624
1124
  totalSuccesses?: number;
1625
1125
  /** Number of events that couldn't be processed. */
1626
1126
  totalFailures?: number;
1627
1127
  }
1628
- export interface UpdateEventRequest {
1128
+ interface UpdateEventRequest {
1629
1129
  /** Event to update. */
1630
1130
  event: Event;
1631
1131
  /**
@@ -1642,11 +1142,11 @@ export interface UpdateEventRequest {
1642
1142
  */
1643
1143
  timeZone?: string | null;
1644
1144
  }
1645
- export interface UpdateEventResponse {
1145
+ interface UpdateEventResponse {
1646
1146
  /** Updated event. */
1647
1147
  event?: Event;
1648
1148
  }
1649
- export interface BulkUpdateEventRequest {
1149
+ interface BulkUpdateEventRequest {
1650
1150
  /**
1651
1151
  * Events to update.
1652
1152
  *
@@ -1676,34 +1176,17 @@ export interface BulkUpdateEventRequest {
1676
1176
  */
1677
1177
  timeZone?: string | null;
1678
1178
  }
1679
- export interface BulkUpdateEventRequestMaskedEvent {
1179
+ interface BulkUpdateEventRequestMaskedEvent {
1680
1180
  /** Event to update. */
1681
1181
  event?: Event;
1682
1182
  }
1683
- export interface BulkUpdateEventResponse {
1183
+ interface BulkUpdateEventResponse {
1684
1184
  /** The result for each event, containing the event and whether the action was successful. */
1685
1185
  results?: BulkEventResult[];
1686
1186
  /** Total successes and failures. */
1687
1187
  bulkActionMetadata?: BulkActionMetadata;
1688
1188
  }
1689
- export interface UpdateEventParticipantsRequest {
1690
- /**
1691
- * ID of the event to update.
1692
- *
1693
- * Min: 36 characters
1694
- * Max: 250 characters
1695
- * @minLength 36
1696
- * @maxLength 250
1697
- */
1698
- eventId?: string | null;
1699
- /** The participants to update. */
1700
- participants?: Participants;
1701
- }
1702
- export interface UpdateEventParticipantsResponse {
1703
- /** Updated event. */
1704
- event?: Event;
1705
- }
1706
- export interface RestoreEventDefaultsRequest {
1189
+ interface RestoreEventDefaultsRequest {
1707
1190
  /**
1708
1191
  * ID of the event for which to restore default values.
1709
1192
  * @minLength 36
@@ -1733,11 +1216,11 @@ export interface RestoreEventDefaultsRequest {
1733
1216
  */
1734
1217
  timeZone?: string | null;
1735
1218
  }
1736
- export interface RestoreEventDefaultsResponse {
1219
+ interface RestoreEventDefaultsResponse {
1737
1220
  /** Updated event. */
1738
1221
  event?: Event;
1739
1222
  }
1740
- export interface SplitRecurringEventRequest {
1223
+ interface SplitRecurringEventRequest {
1741
1224
  /**
1742
1225
  * ID of the `MASTER` event to split.
1743
1226
  * @minLength 36
@@ -1764,13 +1247,13 @@ export interface SplitRecurringEventRequest {
1764
1247
  */
1765
1248
  timeZone?: string | null;
1766
1249
  }
1767
- export interface SplitRecurringEventResponse {
1250
+ interface SplitRecurringEventResponse {
1768
1251
  /** Original `MASTER` event that was shortened. */
1769
1252
  updatedRecurringEventEndingBeforeSplit?: Event;
1770
1253
  /** New `MASTER` event starting with the first event after the split date. */
1771
1254
  newRecurringEventStartingFromSplit?: Event;
1772
1255
  }
1773
- export interface CancelEventRequest {
1256
+ interface CancelEventRequest {
1774
1257
  /**
1775
1258
  * ID of the event to cancel.
1776
1259
  * @minLength 36
@@ -1791,11 +1274,11 @@ export interface CancelEventRequest {
1791
1274
  */
1792
1275
  timeZone?: string | null;
1793
1276
  }
1794
- export interface CancelEventResponse {
1277
+ interface CancelEventResponse {
1795
1278
  /** Canceled event. */
1796
1279
  event?: Event;
1797
1280
  }
1798
- export interface BulkCancelEventRequest {
1281
+ interface BulkCancelEventRequest {
1799
1282
  /**
1800
1283
  * IDs of the events to cancel.
1801
1284
  * @minSize 1
@@ -1822,9 +1305,49 @@ export interface BulkCancelEventRequest {
1822
1305
  */
1823
1306
  timeZone?: string | null;
1824
1307
  }
1825
- export interface BulkCancelEventResponse {
1308
+ interface BulkCancelEventResponse {
1826
1309
  /** The result for each event, containing the event and whether the action was successful. */
1827
1310
  results?: BulkEventResult[];
1828
1311
  /** Total successes and failures. */
1829
1312
  bulkActionMetadata?: BulkActionMetadata;
1830
1313
  }
1314
+
1315
+ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
1316
+ getUrl: (context: any) => string;
1317
+ httpMethod: K;
1318
+ path: string;
1319
+ pathParams: M;
1320
+ __requestType: T;
1321
+ __originalRequestType: S;
1322
+ __responseType: Q;
1323
+ __originalResponseType: R;
1324
+ };
1325
+ declare function listEventsByContactId(): __PublicMethodMetaInfo<'GET', {
1326
+ contactId: string;
1327
+ }, ListEventsByContactIdRequest$1, ListEventsByContactIdRequest, ListEventsByContactIdResponse$1, ListEventsByContactIdResponse>;
1328
+ declare function listEventsByMemberId(): __PublicMethodMetaInfo<'GET', {
1329
+ memberId: string;
1330
+ }, ListEventsByMemberIdRequest$1, ListEventsByMemberIdRequest, ListEventsByMemberIdResponse$1, ListEventsByMemberIdResponse>;
1331
+ declare function getEvent(): __PublicMethodMetaInfo<'GET', {
1332
+ eventId: string;
1333
+ }, GetEventRequest$1, GetEventRequest, GetEventResponse$1, GetEventResponse>;
1334
+ declare function listEvents(): __PublicMethodMetaInfo<'GET', {}, ListEventsRequest$1, ListEventsRequest, ListEventsResponse$1, ListEventsResponse>;
1335
+ declare function queryEvents(): __PublicMethodMetaInfo<'POST', {}, QueryEventsRequest$1, QueryEventsRequest, QueryEventsResponse$1, QueryEventsResponse>;
1336
+ declare function createEvent(): __PublicMethodMetaInfo<'POST', {}, CreateEventRequest$1, CreateEventRequest, CreateEventResponse$1, CreateEventResponse>;
1337
+ declare function bulkCreateEvent(): __PublicMethodMetaInfo<'POST', {}, BulkCreateEventRequest$1, BulkCreateEventRequest, BulkCreateEventResponse$1, BulkCreateEventResponse>;
1338
+ declare function updateEvent(): __PublicMethodMetaInfo<'PATCH', {
1339
+ eventId: string;
1340
+ }, UpdateEventRequest$1, UpdateEventRequest, UpdateEventResponse$1, UpdateEventResponse>;
1341
+ declare function bulkUpdateEvent(): __PublicMethodMetaInfo<'POST', {}, BulkUpdateEventRequest$1, BulkUpdateEventRequest, BulkUpdateEventResponse$1, BulkUpdateEventResponse>;
1342
+ declare function restoreEventDefaults(): __PublicMethodMetaInfo<'POST', {
1343
+ eventId: string;
1344
+ }, RestoreEventDefaultsRequest$1, RestoreEventDefaultsRequest, RestoreEventDefaultsResponse$1, RestoreEventDefaultsResponse>;
1345
+ declare function splitRecurringEvent(): __PublicMethodMetaInfo<'POST', {
1346
+ recurringEventId: string;
1347
+ }, SplitRecurringEventRequest$1, SplitRecurringEventRequest, SplitRecurringEventResponse$1, SplitRecurringEventResponse>;
1348
+ declare function cancelEvent(): __PublicMethodMetaInfo<'POST', {
1349
+ eventId: string;
1350
+ }, CancelEventRequest$1, CancelEventRequest, CancelEventResponse$1, CancelEventResponse>;
1351
+ declare function bulkCancelEvent(): __PublicMethodMetaInfo<'POST', {}, BulkCancelEventRequest$1, BulkCancelEventRequest, BulkCancelEventResponse$1, BulkCancelEventResponse>;
1352
+
1353
+ export { type __PublicMethodMetaInfo, bulkCancelEvent, bulkCreateEvent, bulkUpdateEvent, cancelEvent, createEvent, getEvent, listEvents, listEventsByContactId, listEventsByMemberId, queryEvents, restoreEventDefaults, splitRecurringEvent, updateEvent };