@wix/calendar 1.0.15 → 1.0.17
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.
- package/build/cjs/context.d.ts +2 -0
- package/build/cjs/context.js +3 -1
- package/build/cjs/context.js.map +1 -1
- package/build/cjs/index.d.ts +3 -1
- package/build/cjs/index.js +5 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -0
- package/build/cjs/meta.js +3 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/es/context.d.ts +2 -0
- package/build/es/context.js +2 -0
- package/build/es/context.js.map +1 -1
- package/build/es/index.d.ts +3 -1
- package/build/es/index.js +3 -1
- package/build/es/index.js.map +1 -1
- package/build/es/meta.d.ts +2 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -1
- package/package.json +5 -3
- package/type-bundles/context.bundle.d.ts +1613 -299
- package/type-bundles/index.bundle.d.ts +1613 -299
- package/type-bundles/meta.bundle.d.ts +525 -63
|
@@ -63,16 +63,16 @@ type APIMetadata = {
|
|
|
63
63
|
packageName?: string;
|
|
64
64
|
};
|
|
65
65
|
type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
|
|
66
|
-
type EventDefinition$
|
|
66
|
+
type EventDefinition$5<Payload = unknown, Type extends string = string> = {
|
|
67
67
|
__type: 'event-definition';
|
|
68
68
|
type: Type;
|
|
69
69
|
isDomainEvent?: boolean;
|
|
70
70
|
transformations?: (envelope: unknown) => Payload;
|
|
71
71
|
__payload: Payload;
|
|
72
72
|
};
|
|
73
|
-
declare function EventDefinition$
|
|
74
|
-
type EventHandler$
|
|
75
|
-
type BuildEventDefinition$
|
|
73
|
+
declare function EventDefinition$5<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$5<Payload, Type>;
|
|
74
|
+
type EventHandler$5<T extends EventDefinition$5> = (payload: T['__payload']) => void | Promise<void>;
|
|
75
|
+
type BuildEventDefinition$5<T extends EventDefinition$5<any, string>> = (handler: EventHandler$5<T>) => void;
|
|
76
76
|
|
|
77
77
|
type ServicePluginMethodInput = {
|
|
78
78
|
request: any;
|
|
@@ -367,7 +367,7 @@ ConditionalKeys<Base, Condition>
|
|
|
367
367
|
* can either be a REST module or a host module.
|
|
368
368
|
* This type is recursive, so it can describe nested modules.
|
|
369
369
|
*/
|
|
370
|
-
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$
|
|
370
|
+
type Descriptors = RESTFunctionDescriptor | AmbassadorFunctionDescriptor | HostModule<any, any> | EventDefinition$5<any> | ServicePluginDefinition<any> | {
|
|
371
371
|
[key: string]: Descriptors | PublicMetadata | any;
|
|
372
372
|
};
|
|
373
373
|
/**
|
|
@@ -380,7 +380,7 @@ type BuildDescriptors<T extends Descriptors, H extends Host<any> | undefined, De
|
|
|
380
380
|
done: T;
|
|
381
381
|
recurse: T extends {
|
|
382
382
|
__type: typeof SERVICE_PLUGIN_ERROR_TYPE;
|
|
383
|
-
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$
|
|
383
|
+
} ? never : T extends AmbassadorFunctionDescriptor ? BuildAmbassadorFunction<T> : T extends RESTFunctionDescriptor ? BuildRESTFunction<T> : T extends EventDefinition$5<any> ? BuildEventDefinition$5<T> : T extends ServicePluginDefinition<any> ? BuildServicePluginDefinition<T> : T extends HostModule<any, any> ? HostModuleAPI<T> : ConditionalExcept<{
|
|
384
384
|
[Key in keyof T]: T[Key] extends Descriptors ? BuildDescriptors<T[Key], H, [
|
|
385
385
|
-1,
|
|
386
386
|
0,
|
|
@@ -408,7 +408,7 @@ type MaybeContext<T extends Descriptors> = globalThis.ContextualClient extends {
|
|
|
408
408
|
host: Host;
|
|
409
409
|
} ? BuildDescriptors<T, globalThis.ContextualClient['host']> : T;
|
|
410
410
|
|
|
411
|
-
interface Event {
|
|
411
|
+
interface Event$1 {
|
|
412
412
|
/**
|
|
413
413
|
* The event ID.
|
|
414
414
|
* @readonly
|
|
@@ -453,7 +453,7 @@ interface Event {
|
|
|
453
453
|
* - `"CANCELLED"` Event has been cancelled.
|
|
454
454
|
* @readonly
|
|
455
455
|
*/
|
|
456
|
-
status?: Status$
|
|
456
|
+
status?: Status$4;
|
|
457
457
|
/**
|
|
458
458
|
* The event title.
|
|
459
459
|
*
|
|
@@ -465,19 +465,19 @@ interface Event {
|
|
|
465
465
|
*
|
|
466
466
|
* Recurring events must start from at least today.
|
|
467
467
|
*/
|
|
468
|
-
start?: ZonedDate$
|
|
468
|
+
start?: ZonedDate$2;
|
|
469
469
|
/** The event end date. */
|
|
470
|
-
end?: ZonedDate$
|
|
470
|
+
end?: ZonedDate$2;
|
|
471
471
|
/**
|
|
472
472
|
* Read-only start date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
473
473
|
* @readonly
|
|
474
474
|
*/
|
|
475
|
-
adjustedStart?: ZonedDate$
|
|
475
|
+
adjustedStart?: ZonedDate$2;
|
|
476
476
|
/**
|
|
477
477
|
* Read-only end date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
478
478
|
* @readonly
|
|
479
479
|
*/
|
|
480
|
-
adjustedEnd?: ZonedDate$
|
|
480
|
+
adjustedEnd?: ZonedDate$2;
|
|
481
481
|
/**
|
|
482
482
|
* The event time zone, formatted according to the IANA time zone format.
|
|
483
483
|
* Must be a regional time zone (Area/Location) or UTC.
|
|
@@ -495,7 +495,7 @@ interface Event {
|
|
|
495
495
|
* - `"EXCEPTION"` The event is an exceptional instance of a recurring event. Read only.
|
|
496
496
|
* @readonly
|
|
497
497
|
*/
|
|
498
|
-
recurrenceType?: RecurrenceType;
|
|
498
|
+
recurrenceType?: RecurrenceType$1;
|
|
499
499
|
/**
|
|
500
500
|
* The recurrence rule defining a repeating pattern for the event.
|
|
501
501
|
* Required for `MASTER` recurrence, read only otherwise.
|
|
@@ -506,7 +506,7 @@ interface Event {
|
|
|
506
506
|
* - `days = [MONDAY]`
|
|
507
507
|
* - `until = 20240107T08:00:00Z`
|
|
508
508
|
*/
|
|
509
|
-
recurrenceRule?: RecurrenceRule;
|
|
509
|
+
recurrenceRule?: RecurrenceRule$1;
|
|
510
510
|
/**
|
|
511
511
|
* The ID of the recurring event that this event belongs to, if this event is an instance of recurring event.
|
|
512
512
|
* @readonly
|
|
@@ -516,13 +516,13 @@ interface Event {
|
|
|
516
516
|
* Specifies whether the event blocks the schedule time.
|
|
517
517
|
* Default is true.
|
|
518
518
|
*/
|
|
519
|
-
transparency?: Transparency;
|
|
519
|
+
transparency?: Transparency$1;
|
|
520
520
|
/**
|
|
521
521
|
* The event location.
|
|
522
522
|
*
|
|
523
523
|
* The location is inherited from the schedule and can be overridden.
|
|
524
524
|
*/
|
|
525
|
-
location?: Location$
|
|
525
|
+
location?: Location$2;
|
|
526
526
|
/**
|
|
527
527
|
* List of resources affected by the event.
|
|
528
528
|
*
|
|
@@ -530,7 +530,7 @@ interface Event {
|
|
|
530
530
|
* - Event occupying a resource time, such as a room, equipment or person.
|
|
531
531
|
* - The Bookings App Staff is affected by the Booking Class Sessions it provides.
|
|
532
532
|
*/
|
|
533
|
-
resources?: Resource[];
|
|
533
|
+
resources?: Resource$1[];
|
|
534
534
|
/**
|
|
535
535
|
* The event capacity, which is the max number of participants that can participate in the event.
|
|
536
536
|
*
|
|
@@ -546,13 +546,13 @@ interface Event {
|
|
|
546
546
|
* The event participants.
|
|
547
547
|
* @readonly
|
|
548
548
|
*/
|
|
549
|
-
participants?: Participants;
|
|
549
|
+
participants?: Participants$1;
|
|
550
550
|
/**
|
|
551
551
|
* Online conferencing details.
|
|
552
552
|
*
|
|
553
553
|
* The conferencing details are inherited from the schedule and can be overridden.
|
|
554
554
|
*/
|
|
555
|
-
conferencingDetails?: ConferencingDetails$
|
|
555
|
+
conferencingDetails?: ConferencingDetails$2;
|
|
556
556
|
/** Additional notes and information about the event. */
|
|
557
557
|
notes?: string | null;
|
|
558
558
|
/**
|
|
@@ -560,7 +560,7 @@ interface Event {
|
|
|
560
560
|
* if this event is an instance of recurring event.
|
|
561
561
|
* @readonly
|
|
562
562
|
*/
|
|
563
|
-
inheritedFields?: Field[];
|
|
563
|
+
inheritedFields?: Field$1[];
|
|
564
564
|
/**
|
|
565
565
|
* ID of the Wix app owning the event, as derived from the schedule.
|
|
566
566
|
* @readonly
|
|
@@ -572,9 +572,9 @@ interface Event {
|
|
|
572
572
|
* Derived from the schedule and the resources of the the event.
|
|
573
573
|
* @readonly
|
|
574
574
|
*/
|
|
575
|
-
permissions?: Permission$
|
|
575
|
+
permissions?: Permission$2[];
|
|
576
576
|
/** Extensions enabling applications or users to save custom data related to the event. */
|
|
577
|
-
extendedFields?: ExtendedFields$
|
|
577
|
+
extendedFields?: ExtendedFields$3;
|
|
578
578
|
/**
|
|
579
579
|
* The event revision number, which incremented on updates.
|
|
580
580
|
*
|
|
@@ -593,7 +593,7 @@ interface Event {
|
|
|
593
593
|
*/
|
|
594
594
|
_updatedDate?: Date;
|
|
595
595
|
}
|
|
596
|
-
declare enum Status$
|
|
596
|
+
declare enum Status$4 {
|
|
597
597
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
598
598
|
/** Event is confirmed. Default value. */
|
|
599
599
|
CONFIRMED = "CONFIRMED",
|
|
@@ -603,7 +603,7 @@ declare enum Status$2 {
|
|
|
603
603
|
CANCELLED = "CANCELLED"
|
|
604
604
|
}
|
|
605
605
|
/** A date time with a time zone, having the UTC offset and date determined by the server. */
|
|
606
|
-
interface ZonedDate$
|
|
606
|
+
interface ZonedDate$2 {
|
|
607
607
|
/**
|
|
608
608
|
* Local date time, in ISO-8601 format.
|
|
609
609
|
* E.g, "2024-01-30T13:30:00".
|
|
@@ -623,7 +623,7 @@ interface ZonedDate$1 {
|
|
|
623
623
|
*/
|
|
624
624
|
utcDate?: Date;
|
|
625
625
|
}
|
|
626
|
-
declare enum RecurrenceType {
|
|
626
|
+
declare enum RecurrenceType$1 {
|
|
627
627
|
UNKNOWN_RECURRENCE_TYPE = "UNKNOWN_RECURRENCE_TYPE",
|
|
628
628
|
/** No recurrence, i.e the event is a single event instance. Default. */
|
|
629
629
|
NONE = "NONE",
|
|
@@ -634,9 +634,9 @@ declare enum RecurrenceType {
|
|
|
634
634
|
/** The event is an exceptional instance of a recurring event. Read only. */
|
|
635
635
|
EXCEPTION = "EXCEPTION"
|
|
636
636
|
}
|
|
637
|
-
interface RecurrenceRule {
|
|
637
|
+
interface RecurrenceRule$1 {
|
|
638
638
|
/** The frequency with which the event should be repeated. */
|
|
639
|
-
frequency?: Frequency;
|
|
639
|
+
frequency?: Frequency$1;
|
|
640
640
|
/**
|
|
641
641
|
* Works together with `frequency` to specify how often the event should be repeated. Default is `1`.
|
|
642
642
|
* For example, `WEEKLY` frequency and `interval` of `2` means once every two weeks.
|
|
@@ -646,24 +646,24 @@ interface RecurrenceRule {
|
|
|
646
646
|
* The days of the week when the event should be repeated.
|
|
647
647
|
* Currently, only a single day is supported.
|
|
648
648
|
*/
|
|
649
|
-
days?: Day[];
|
|
649
|
+
days?: Day$1[];
|
|
650
650
|
/**
|
|
651
651
|
* The date until which the event should be repeated.
|
|
652
652
|
* When it is not specified, the event repeats forever.
|
|
653
653
|
*/
|
|
654
|
-
until?: ZonedDate$
|
|
654
|
+
until?: ZonedDate$2;
|
|
655
655
|
/**
|
|
656
656
|
* Read-only until date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
657
657
|
* @readonly
|
|
658
658
|
*/
|
|
659
|
-
adjustedUntil?: ZonedDate$
|
|
659
|
+
adjustedUntil?: ZonedDate$2;
|
|
660
660
|
}
|
|
661
|
-
declare enum Frequency {
|
|
661
|
+
declare enum Frequency$1 {
|
|
662
662
|
UNKNOWN_FREQUENCY = "UNKNOWN_FREQUENCY",
|
|
663
663
|
/** The event repeats every few weeks. */
|
|
664
664
|
WEEKLY = "WEEKLY"
|
|
665
665
|
}
|
|
666
|
-
declare enum Day {
|
|
666
|
+
declare enum Day$1 {
|
|
667
667
|
MONDAY = "MONDAY",
|
|
668
668
|
TUESDAY = "TUESDAY",
|
|
669
669
|
WEDNESDAY = "WEDNESDAY",
|
|
@@ -672,14 +672,14 @@ declare enum Day {
|
|
|
672
672
|
SATURDAY = "SATURDAY",
|
|
673
673
|
SUNDAY = "SUNDAY"
|
|
674
674
|
}
|
|
675
|
-
declare enum Transparency {
|
|
675
|
+
declare enum Transparency$1 {
|
|
676
676
|
UNKNOWN_TRANSPARENCY = "UNKNOWN_TRANSPARENCY",
|
|
677
677
|
/** The event block time. Default. */
|
|
678
678
|
OPAQUE = "OPAQUE",
|
|
679
679
|
/** The event does not block the time. */
|
|
680
680
|
TRANSPARENT = "TRANSPARENT"
|
|
681
681
|
}
|
|
682
|
-
interface Location$
|
|
682
|
+
interface Location$2 {
|
|
683
683
|
/**
|
|
684
684
|
* The location ID. Optional.
|
|
685
685
|
* Currently only supported for locations of type `BUSINESS`, and used to reference the Wix Business Location.
|
|
@@ -692,7 +692,7 @@ interface Location$1 {
|
|
|
692
692
|
* - `"CUSTOMER"` event takes place at the customer location.
|
|
693
693
|
* - `"CUSTOM"` event takes place at the custom location.
|
|
694
694
|
*/
|
|
695
|
-
type?: LocationType$
|
|
695
|
+
type?: LocationType$2;
|
|
696
696
|
/**
|
|
697
697
|
* The location name. Optional.
|
|
698
698
|
* Derived from the Wix Business Location if the location is of type `BUSINESS`.
|
|
@@ -704,7 +704,7 @@ interface Location$1 {
|
|
|
704
704
|
*/
|
|
705
705
|
address?: string | null;
|
|
706
706
|
}
|
|
707
|
-
declare enum LocationType$
|
|
707
|
+
declare enum LocationType$2 {
|
|
708
708
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
709
709
|
/** The event takes place at the business location. */
|
|
710
710
|
BUSINESS = "BUSINESS",
|
|
@@ -713,7 +713,7 @@ declare enum LocationType$1 {
|
|
|
713
713
|
/** The event takes place at the custom location. */
|
|
714
714
|
CUSTOM = "CUSTOM"
|
|
715
715
|
}
|
|
716
|
-
interface Resource {
|
|
716
|
+
interface Resource$1 {
|
|
717
717
|
/** The resource ID. */
|
|
718
718
|
_id?: string | null;
|
|
719
719
|
/**
|
|
@@ -730,22 +730,22 @@ interface Resource {
|
|
|
730
730
|
* Specifies whether the event blocks the resource time.
|
|
731
731
|
* Default is `OPAQUE`.
|
|
732
732
|
*/
|
|
733
|
-
transparency?: Transparency;
|
|
733
|
+
transparency?: Transparency$1;
|
|
734
734
|
/** Optional permission role to grant the identities associated with the resource. */
|
|
735
|
-
permissionRole?: Role$
|
|
735
|
+
permissionRole?: Role$2;
|
|
736
736
|
}
|
|
737
|
-
declare enum Role$
|
|
737
|
+
declare enum Role$2 {
|
|
738
738
|
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
739
739
|
/** Role grants full write and read access. */
|
|
740
740
|
WRITER = "WRITER",
|
|
741
741
|
/** Role grants full read access and permission to edit notes. */
|
|
742
742
|
COMMENTER = "COMMENTER"
|
|
743
743
|
}
|
|
744
|
-
interface Participants {
|
|
744
|
+
interface Participants$1 {
|
|
745
745
|
/** The total number of participants. */
|
|
746
746
|
total?: number | null;
|
|
747
747
|
/** A full or partial list of the participants. */
|
|
748
|
-
list?: Participant[];
|
|
748
|
+
list?: Participant$2[];
|
|
749
749
|
/** Whether there are more participants for the event which were not listed. */
|
|
750
750
|
hasMore?: boolean | null;
|
|
751
751
|
/**
|
|
@@ -755,9 +755,9 @@ interface Participants {
|
|
|
755
755
|
* - `"CONFIRMED"` All participants are confirmed.
|
|
756
756
|
* - `"PENDING_CONFIRMATION"` Some participants are pending confirmation..
|
|
757
757
|
*/
|
|
758
|
-
status?: ParticipantsStatus;
|
|
758
|
+
status?: ParticipantsStatus$1;
|
|
759
759
|
}
|
|
760
|
-
interface Participant {
|
|
760
|
+
interface Participant$2 {
|
|
761
761
|
/** The participant name. */
|
|
762
762
|
name?: string | null;
|
|
763
763
|
/** The participant phone. */
|
|
@@ -767,16 +767,16 @@ interface Participant {
|
|
|
767
767
|
/** The ID of the Wix contact. */
|
|
768
768
|
contactId?: string | null;
|
|
769
769
|
}
|
|
770
|
-
declare enum ParticipantsStatus {
|
|
770
|
+
declare enum ParticipantsStatus$1 {
|
|
771
771
|
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
772
772
|
/** All participants are confirmed. */
|
|
773
773
|
CONFIRMED = "CONFIRMED",
|
|
774
774
|
/** Some participants are pending confirmation. */
|
|
775
775
|
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
776
776
|
}
|
|
777
|
-
interface ConferencingDetails$
|
|
777
|
+
interface ConferencingDetails$2 {
|
|
778
778
|
/** World known conference type, such as Zoom. */
|
|
779
|
-
type?: Type$
|
|
779
|
+
type?: Type$2;
|
|
780
780
|
/** URL used by the host to start the conference. */
|
|
781
781
|
hostUrl?: string | null;
|
|
782
782
|
/** URL used by a guest to join the conference. */
|
|
@@ -786,12 +786,12 @@ interface ConferencingDetails$1 {
|
|
|
786
786
|
/** Optional conference ID in an external system. */
|
|
787
787
|
externalId?: string | null;
|
|
788
788
|
}
|
|
789
|
-
declare enum Type$
|
|
789
|
+
declare enum Type$2 {
|
|
790
790
|
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
791
791
|
ZOOM = "ZOOM",
|
|
792
792
|
CUSTOM = "CUSTOM"
|
|
793
793
|
}
|
|
794
|
-
declare enum Field {
|
|
794
|
+
declare enum Field$1 {
|
|
795
795
|
UNKNOWN_FIELD = "UNKNOWN_FIELD",
|
|
796
796
|
/** The title is inherited from the schedule or the recurring event. */
|
|
797
797
|
TITLE = "TITLE",
|
|
@@ -810,9 +810,9 @@ declare enum Field {
|
|
|
810
810
|
/** The conferencing details are inherited from the schedule or the recurring event. */
|
|
811
811
|
CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
|
|
812
812
|
}
|
|
813
|
-
interface Permission$
|
|
813
|
+
interface Permission$2 {
|
|
814
814
|
/** The identity granted the permission. */
|
|
815
|
-
identity?: CommonIdentificationData$
|
|
815
|
+
identity?: CommonIdentificationData$2;
|
|
816
816
|
/**
|
|
817
817
|
* The permission role.
|
|
818
818
|
*
|
|
@@ -820,22 +820,22 @@ interface Permission$1 {
|
|
|
820
820
|
* - `"WRITER"` Role grants full write and read access.
|
|
821
821
|
* - `"COMMENTER"` Role grants full read access and permission to edit notes.
|
|
822
822
|
*/
|
|
823
|
-
role?: Role$
|
|
823
|
+
role?: Role$2;
|
|
824
824
|
}
|
|
825
|
-
interface CommonIdentificationData$
|
|
825
|
+
interface CommonIdentificationData$2 extends CommonIdentificationDataIdOneOf$2 {
|
|
826
826
|
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
827
827
|
wixUserId?: string;
|
|
828
828
|
}
|
|
829
829
|
/** @oneof */
|
|
830
|
-
interface CommonIdentificationDataIdOneOf$
|
|
830
|
+
interface CommonIdentificationDataIdOneOf$2 {
|
|
831
831
|
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
832
832
|
wixUserId?: string;
|
|
833
833
|
}
|
|
834
|
-
declare enum IdentityType$
|
|
834
|
+
declare enum IdentityType$2 {
|
|
835
835
|
UNKNOWN = "UNKNOWN",
|
|
836
836
|
WIX_USER = "WIX_USER"
|
|
837
837
|
}
|
|
838
|
-
interface ExtendedFields$
|
|
838
|
+
interface ExtendedFields$3 {
|
|
839
839
|
/**
|
|
840
840
|
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
841
841
|
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
@@ -883,7 +883,7 @@ declare enum RequestedFields$1 {
|
|
|
883
883
|
}
|
|
884
884
|
interface GetEventResponse {
|
|
885
885
|
/** The event. */
|
|
886
|
-
event?: Event;
|
|
886
|
+
event?: Event$1;
|
|
887
887
|
}
|
|
888
888
|
interface ListEventsRequest {
|
|
889
889
|
/** The IDs of the events to retrieve. */
|
|
@@ -898,7 +898,7 @@ interface ListEventsRequest {
|
|
|
898
898
|
}
|
|
899
899
|
interface ListEventsResponse {
|
|
900
900
|
/** The events matching the provided IDs. */
|
|
901
|
-
events?: Event[];
|
|
901
|
+
events?: Event$1[];
|
|
902
902
|
}
|
|
903
903
|
interface QueryEventsRequest {
|
|
904
904
|
/**
|
|
@@ -923,20 +923,20 @@ interface QueryEventsRequest {
|
|
|
923
923
|
*/
|
|
924
924
|
timeZone?: string | null;
|
|
925
925
|
/** Query containing filters and paging. */
|
|
926
|
-
query?: CursorQuery$
|
|
926
|
+
query?: CursorQuery$2;
|
|
927
927
|
/**
|
|
928
928
|
* Optional recurrence filter.
|
|
929
929
|
*
|
|
930
930
|
* By default only single event instances and instances of recurring events are returned.
|
|
931
931
|
*/
|
|
932
|
-
recurrenceType?: RecurrenceType[];
|
|
932
|
+
recurrenceType?: RecurrenceType$1[];
|
|
933
933
|
/** List of additional fields to be included in the response. */
|
|
934
934
|
fields?: RequestedFields$1[];
|
|
935
935
|
}
|
|
936
936
|
/** TODO Diverge */
|
|
937
|
-
interface CursorQuery$
|
|
937
|
+
interface CursorQuery$2 extends CursorQueryPagingMethodOneOf$2 {
|
|
938
938
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
|
|
939
|
-
cursorPaging?: CursorPaging$
|
|
939
|
+
cursorPaging?: CursorPaging$2;
|
|
940
940
|
/**
|
|
941
941
|
* Filter object.
|
|
942
942
|
* See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language)
|
|
@@ -954,9 +954,9 @@ interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
|
|
|
954
954
|
sort?: Sorting[];
|
|
955
955
|
}
|
|
956
956
|
/** @oneof */
|
|
957
|
-
interface CursorQueryPagingMethodOneOf$
|
|
957
|
+
interface CursorQueryPagingMethodOneOf$2 {
|
|
958
958
|
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter`. */
|
|
959
|
-
cursorPaging?: CursorPaging$
|
|
959
|
+
cursorPaging?: CursorPaging$2;
|
|
960
960
|
}
|
|
961
961
|
/** TODO Diverge */
|
|
962
962
|
interface Sorting {
|
|
@@ -974,7 +974,7 @@ declare enum SortOrder {
|
|
|
974
974
|
DESC = "DESC"
|
|
975
975
|
}
|
|
976
976
|
/** TODO Diverge */
|
|
977
|
-
interface CursorPaging$
|
|
977
|
+
interface CursorPaging$2 {
|
|
978
978
|
/**
|
|
979
979
|
* Number of events to return.
|
|
980
980
|
* Defaults to `50`. Maximum `1000`.
|
|
@@ -991,16 +991,16 @@ interface CursorPaging$1 {
|
|
|
991
991
|
}
|
|
992
992
|
interface QueryEventsResponse {
|
|
993
993
|
/** The events matching the provided query. */
|
|
994
|
-
events?: Event[];
|
|
994
|
+
events?: Event$1[];
|
|
995
995
|
/** Paging metadata. */
|
|
996
|
-
pagingMetadata?: CursorPagingMetadata$
|
|
996
|
+
pagingMetadata?: CursorPagingMetadata$2;
|
|
997
997
|
}
|
|
998
998
|
/** TODO Diverge */
|
|
999
|
-
interface CursorPagingMetadata$
|
|
999
|
+
interface CursorPagingMetadata$2 {
|
|
1000
1000
|
/** Number of items returned in the response. */
|
|
1001
1001
|
count?: number | null;
|
|
1002
1002
|
/** 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). */
|
|
1003
|
-
cursors?: Cursors$
|
|
1003
|
+
cursors?: Cursors$2;
|
|
1004
1004
|
/**
|
|
1005
1005
|
* Indicates if there are more results after the current page.
|
|
1006
1006
|
* If `true`, another page of results can be retrieved.
|
|
@@ -1008,7 +1008,7 @@ interface CursorPagingMetadata$1 {
|
|
|
1008
1008
|
*/
|
|
1009
1009
|
hasNext?: boolean | null;
|
|
1010
1010
|
}
|
|
1011
|
-
interface Cursors$
|
|
1011
|
+
interface Cursors$2 {
|
|
1012
1012
|
/** Cursor pointing to next page in the list of results. */
|
|
1013
1013
|
next?: string | null;
|
|
1014
1014
|
}
|
|
@@ -1036,17 +1036,17 @@ interface ListRecurringEventInstancesHistoryRequest {
|
|
|
1036
1036
|
*/
|
|
1037
1037
|
toDate?: Date;
|
|
1038
1038
|
/** Optional cursor pointing to the next page of events. */
|
|
1039
|
-
cursorPaging?: CursorPaging$
|
|
1039
|
+
cursorPaging?: CursorPaging$2;
|
|
1040
1040
|
}
|
|
1041
1041
|
interface ListRecurringEventInstancesHistoryResponse {
|
|
1042
1042
|
/** The recurring event instances. */
|
|
1043
|
-
recurringEventInstances?: Event[];
|
|
1043
|
+
recurringEventInstances?: Event$1[];
|
|
1044
1044
|
/** Paging metadata. */
|
|
1045
|
-
pagingMetadata?: CursorPagingMetadata$
|
|
1045
|
+
pagingMetadata?: CursorPagingMetadata$2;
|
|
1046
1046
|
}
|
|
1047
1047
|
interface CreateEventRequest {
|
|
1048
1048
|
/** The event to create. */
|
|
1049
|
-
event: Event;
|
|
1049
|
+
event: Event$1;
|
|
1050
1050
|
/**
|
|
1051
1051
|
* Optional time zone used to adjust the returned event time.
|
|
1052
1052
|
* Default is the Wix Business time zone.
|
|
@@ -1057,7 +1057,7 @@ interface CreateEventRequest {
|
|
|
1057
1057
|
}
|
|
1058
1058
|
interface CreateEventResponse {
|
|
1059
1059
|
/** The created event. */
|
|
1060
|
-
event?: Event;
|
|
1060
|
+
event?: Event$1;
|
|
1061
1061
|
}
|
|
1062
1062
|
interface BulkCreateEventRequest {
|
|
1063
1063
|
/** The events to create. */
|
|
@@ -1075,7 +1075,7 @@ interface BulkCreateEventRequest {
|
|
|
1075
1075
|
}
|
|
1076
1076
|
interface MaskedEvent {
|
|
1077
1077
|
/** The event to create. */
|
|
1078
|
-
event?: Event;
|
|
1078
|
+
event?: Event$1;
|
|
1079
1079
|
}
|
|
1080
1080
|
interface BulkCreateEventResponse {
|
|
1081
1081
|
/** The result for each event, containing the event and whether the action was successful. */
|
|
@@ -1087,7 +1087,7 @@ interface BulkEventResult {
|
|
|
1087
1087
|
/** Whether the requested action was successful. */
|
|
1088
1088
|
itemMetadata?: ItemMetadata;
|
|
1089
1089
|
/** The event. */
|
|
1090
|
-
item?: Event;
|
|
1090
|
+
item?: Event$1;
|
|
1091
1091
|
}
|
|
1092
1092
|
interface ItemMetadata {
|
|
1093
1093
|
/**
|
|
@@ -1121,7 +1121,7 @@ interface BulkActionMetadata {
|
|
|
1121
1121
|
}
|
|
1122
1122
|
interface UpdateEventRequest {
|
|
1123
1123
|
/** The event to update. */
|
|
1124
|
-
event: Event;
|
|
1124
|
+
event: Event$1;
|
|
1125
1125
|
/** Whether to notify participants regarding the changes. */
|
|
1126
1126
|
participantNotification?: ParticipantNotification$1;
|
|
1127
1127
|
/**
|
|
@@ -1141,12 +1141,12 @@ interface ParticipantNotification$1 {
|
|
|
1141
1141
|
}
|
|
1142
1142
|
interface UpdateEventResponse {
|
|
1143
1143
|
/** The updated event. */
|
|
1144
|
-
event?: Event;
|
|
1144
|
+
event?: Event$1;
|
|
1145
1145
|
}
|
|
1146
1146
|
/** `PRIVATE` until we'll have standard events metadata from Infra. */
|
|
1147
1147
|
interface EventUpdatedWithMetadata {
|
|
1148
1148
|
/** The updated event. */
|
|
1149
|
-
event?: Event;
|
|
1149
|
+
event?: Event$1;
|
|
1150
1150
|
/** Whether to notify participants regarding the changes. */
|
|
1151
1151
|
participantNotification?: ParticipantNotification$1;
|
|
1152
1152
|
}
|
|
@@ -1168,7 +1168,7 @@ interface BulkUpdateEventRequest {
|
|
|
1168
1168
|
}
|
|
1169
1169
|
interface BulkUpdateEventRequestMaskedEvent {
|
|
1170
1170
|
/** The event to update. */
|
|
1171
|
-
event?: Event;
|
|
1171
|
+
event?: Event$1;
|
|
1172
1172
|
}
|
|
1173
1173
|
interface BulkUpdateEventResponse {
|
|
1174
1174
|
/** The result for each event, containing the event and whether the action was successful. */
|
|
@@ -1180,17 +1180,17 @@ interface UpdateEventParticipantsRequest {
|
|
|
1180
1180
|
/** The ID of the event. */
|
|
1181
1181
|
eventId?: string | null;
|
|
1182
1182
|
/** The participants to update. */
|
|
1183
|
-
participants?: Participants;
|
|
1183
|
+
participants?: Participants$1;
|
|
1184
1184
|
}
|
|
1185
1185
|
interface UpdateEventParticipantsResponse {
|
|
1186
1186
|
/** The updated event. */
|
|
1187
|
-
event?: Event;
|
|
1187
|
+
event?: Event$1;
|
|
1188
1188
|
}
|
|
1189
1189
|
interface RestoreEventDefaultsRequest {
|
|
1190
1190
|
/** The ID of the event. */
|
|
1191
1191
|
eventId: string | null;
|
|
1192
1192
|
/** The fields for which to restore default values. */
|
|
1193
|
-
fields: Field[];
|
|
1193
|
+
fields: Field$1[];
|
|
1194
1194
|
/** Whether to notify participants regarding the changes. */
|
|
1195
1195
|
participantNotification?: ParticipantNotification$1;
|
|
1196
1196
|
/**
|
|
@@ -1201,7 +1201,7 @@ interface RestoreEventDefaultsRequest {
|
|
|
1201
1201
|
}
|
|
1202
1202
|
interface RestoreEventDefaultsResponse {
|
|
1203
1203
|
/** The updated event. */
|
|
1204
|
-
event?: Event;
|
|
1204
|
+
event?: Event$1;
|
|
1205
1205
|
}
|
|
1206
1206
|
interface SplitRecurringEventRequest {
|
|
1207
1207
|
/** The ID of the recurring event to split. */
|
|
@@ -1220,15 +1220,15 @@ interface SplitRecurringEventRequest {
|
|
|
1220
1220
|
}
|
|
1221
1221
|
interface SplitRecurringEventResponse {
|
|
1222
1222
|
/** The updated recurring event which set to end in the last instance before the split date. */
|
|
1223
|
-
updatedRecurringEventEndingBeforeSplit?: Event;
|
|
1223
|
+
updatedRecurringEventEndingBeforeSplit?: Event$1;
|
|
1224
1224
|
/** The new recurring event which set to start from the next instance at or after the split date. */
|
|
1225
|
-
newRecurringEventStartingFromSplit?: Event;
|
|
1225
|
+
newRecurringEventStartingFromSplit?: Event$1;
|
|
1226
1226
|
}
|
|
1227
1227
|
interface RecurringEventSplit {
|
|
1228
1228
|
/** The updated recurring event which set to end in the last instance before the split date. */
|
|
1229
|
-
updatedRecurringEventEndingBeforeSplit?: Event;
|
|
1229
|
+
updatedRecurringEventEndingBeforeSplit?: Event$1;
|
|
1230
1230
|
/** The new recurring event which starts from the split date. */
|
|
1231
|
-
newRecurringEventStartingFromSplit?: Event;
|
|
1231
|
+
newRecurringEventStartingFromSplit?: Event$1;
|
|
1232
1232
|
}
|
|
1233
1233
|
interface CancelEventRequest {
|
|
1234
1234
|
/** The ID of the event to cancel. */
|
|
@@ -1243,11 +1243,11 @@ interface CancelEventRequest {
|
|
|
1243
1243
|
}
|
|
1244
1244
|
interface CancelEventResponse {
|
|
1245
1245
|
/** The cancelled event. */
|
|
1246
|
-
event?: Event;
|
|
1246
|
+
event?: Event$1;
|
|
1247
1247
|
}
|
|
1248
1248
|
interface EventCancelled {
|
|
1249
1249
|
/** The cancelled event. */
|
|
1250
|
-
event?: Event;
|
|
1250
|
+
event?: Event$1;
|
|
1251
1251
|
}
|
|
1252
1252
|
interface BulkCancelEventRequest {
|
|
1253
1253
|
/** The IDs of the events to cancel. */
|
|
@@ -1271,11 +1271,11 @@ interface BulkCancelEventResponse {
|
|
|
1271
1271
|
/** Total successes and failures. */
|
|
1272
1272
|
bulkActionMetadata?: BulkActionMetadata;
|
|
1273
1273
|
}
|
|
1274
|
-
interface DomainEvent$
|
|
1275
|
-
createdEvent?: EntityCreatedEvent$
|
|
1276
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
1277
|
-
deletedEvent?: EntityDeletedEvent$
|
|
1278
|
-
actionEvent?: ActionEvent$
|
|
1274
|
+
interface DomainEvent$4 extends DomainEventBodyOneOf$4 {
|
|
1275
|
+
createdEvent?: EntityCreatedEvent$4;
|
|
1276
|
+
updatedEvent?: EntityUpdatedEvent$4;
|
|
1277
|
+
deletedEvent?: EntityDeletedEvent$4;
|
|
1278
|
+
actionEvent?: ActionEvent$4;
|
|
1279
1279
|
/**
|
|
1280
1280
|
* Unique event ID.
|
|
1281
1281
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1314,19 +1314,19 @@ interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
|
1314
1314
|
entityEventSequence?: string | null;
|
|
1315
1315
|
}
|
|
1316
1316
|
/** @oneof */
|
|
1317
|
-
interface DomainEventBodyOneOf$
|
|
1318
|
-
createdEvent?: EntityCreatedEvent$
|
|
1319
|
-
updatedEvent?: EntityUpdatedEvent$
|
|
1320
|
-
deletedEvent?: EntityDeletedEvent$
|
|
1321
|
-
actionEvent?: ActionEvent$
|
|
1317
|
+
interface DomainEventBodyOneOf$4 {
|
|
1318
|
+
createdEvent?: EntityCreatedEvent$4;
|
|
1319
|
+
updatedEvent?: EntityUpdatedEvent$4;
|
|
1320
|
+
deletedEvent?: EntityDeletedEvent$4;
|
|
1321
|
+
actionEvent?: ActionEvent$4;
|
|
1322
1322
|
}
|
|
1323
|
-
interface EntityCreatedEvent$
|
|
1323
|
+
interface EntityCreatedEvent$4 {
|
|
1324
1324
|
entity?: string;
|
|
1325
1325
|
}
|
|
1326
|
-
interface RestoreInfo$
|
|
1326
|
+
interface RestoreInfo$4 {
|
|
1327
1327
|
deletedDate?: Date;
|
|
1328
1328
|
}
|
|
1329
|
-
interface EntityUpdatedEvent$
|
|
1329
|
+
interface EntityUpdatedEvent$4 {
|
|
1330
1330
|
/**
|
|
1331
1331
|
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
1332
1332
|
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
@@ -1334,24 +1334,24 @@ interface EntityUpdatedEvent$2 {
|
|
|
1334
1334
|
*/
|
|
1335
1335
|
currentEntity?: string;
|
|
1336
1336
|
}
|
|
1337
|
-
interface EntityDeletedEvent$
|
|
1337
|
+
interface EntityDeletedEvent$4 {
|
|
1338
1338
|
/** Entity that was deleted */
|
|
1339
1339
|
deletedEntity?: string | null;
|
|
1340
1340
|
}
|
|
1341
|
-
interface ActionEvent$
|
|
1341
|
+
interface ActionEvent$4 {
|
|
1342
1342
|
body?: string;
|
|
1343
1343
|
}
|
|
1344
|
-
interface MessageEnvelope$
|
|
1344
|
+
interface MessageEnvelope$4 {
|
|
1345
1345
|
/** App instance ID. */
|
|
1346
1346
|
instanceId?: string | null;
|
|
1347
1347
|
/** Event type. */
|
|
1348
1348
|
eventType?: string;
|
|
1349
1349
|
/** The identification type and identity data. */
|
|
1350
|
-
identity?: IdentificationData$
|
|
1350
|
+
identity?: IdentificationData$4;
|
|
1351
1351
|
/** Stringify payload. */
|
|
1352
1352
|
data?: string;
|
|
1353
1353
|
}
|
|
1354
|
-
interface IdentificationData$
|
|
1354
|
+
interface IdentificationData$4 extends IdentificationDataIdOneOf$4 {
|
|
1355
1355
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1356
1356
|
anonymousVisitorId?: string;
|
|
1357
1357
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1361,10 +1361,10 @@ interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
|
1361
1361
|
/** ID of an app. */
|
|
1362
1362
|
appId?: string;
|
|
1363
1363
|
/** @readonly */
|
|
1364
|
-
identityType?: WebhookIdentityType$
|
|
1364
|
+
identityType?: WebhookIdentityType$4;
|
|
1365
1365
|
}
|
|
1366
1366
|
/** @oneof */
|
|
1367
|
-
interface IdentificationDataIdOneOf$
|
|
1367
|
+
interface IdentificationDataIdOneOf$4 {
|
|
1368
1368
|
/** ID of a site visitor that has not logged in to the site. */
|
|
1369
1369
|
anonymousVisitorId?: string;
|
|
1370
1370
|
/** ID of a site visitor that has logged in to the site. */
|
|
@@ -1374,7 +1374,7 @@ interface IdentificationDataIdOneOf$2 {
|
|
|
1374
1374
|
/** ID of an app. */
|
|
1375
1375
|
appId?: string;
|
|
1376
1376
|
}
|
|
1377
|
-
declare enum WebhookIdentityType$
|
|
1377
|
+
declare enum WebhookIdentityType$4 {
|
|
1378
1378
|
UNKNOWN = "UNKNOWN",
|
|
1379
1379
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
1380
1380
|
MEMBER = "MEMBER",
|
|
@@ -1640,7 +1640,7 @@ interface SiteCloned$2 {
|
|
|
1640
1640
|
/** Origin site id. */
|
|
1641
1641
|
originMetaSiteId?: string;
|
|
1642
1642
|
}
|
|
1643
|
-
interface Empty$
|
|
1643
|
+
interface Empty$4 {
|
|
1644
1644
|
}
|
|
1645
1645
|
interface ListEventsByContactIdRequest {
|
|
1646
1646
|
/**
|
|
@@ -1691,7 +1691,7 @@ interface CommonCursorPaging {
|
|
|
1691
1691
|
}
|
|
1692
1692
|
interface ListEventsByContactIdResponse {
|
|
1693
1693
|
/** The participant events. */
|
|
1694
|
-
events?: Event[];
|
|
1694
|
+
events?: Event$1[];
|
|
1695
1695
|
/** Paging metadata. */
|
|
1696
1696
|
pagingMetadata?: CommonCursorPagingMetadata;
|
|
1697
1697
|
}
|
|
@@ -1754,45 +1754,45 @@ interface ListEventsByMemberIdRequest {
|
|
|
1754
1754
|
}
|
|
1755
1755
|
interface ListEventsByMemberIdResponse {
|
|
1756
1756
|
/** The participant events. */
|
|
1757
|
-
events?: Event[];
|
|
1757
|
+
events?: Event$1[];
|
|
1758
1758
|
/** Paging metadata. */
|
|
1759
1759
|
pagingMetadata?: CommonCursorPagingMetadata;
|
|
1760
1760
|
}
|
|
1761
1761
|
interface RecurrenceRuleNonNullableFields {
|
|
1762
|
-
frequency: Frequency;
|
|
1763
|
-
days: Day[];
|
|
1762
|
+
frequency: Frequency$1;
|
|
1763
|
+
days: Day$1[];
|
|
1764
1764
|
}
|
|
1765
1765
|
interface LocationNonNullableFields$1 {
|
|
1766
|
-
type: LocationType$
|
|
1766
|
+
type: LocationType$2;
|
|
1767
1767
|
}
|
|
1768
1768
|
interface ResourceNonNullableFields {
|
|
1769
|
-
transparency: Transparency;
|
|
1770
|
-
permissionRole: Role$
|
|
1769
|
+
transparency: Transparency$1;
|
|
1770
|
+
permissionRole: Role$2;
|
|
1771
1771
|
}
|
|
1772
1772
|
interface ParticipantsNonNullableFields {
|
|
1773
|
-
status: ParticipantsStatus;
|
|
1773
|
+
status: ParticipantsStatus$1;
|
|
1774
1774
|
}
|
|
1775
1775
|
interface ConferencingDetailsNonNullableFields$1 {
|
|
1776
|
-
type: Type$
|
|
1776
|
+
type: Type$2;
|
|
1777
1777
|
}
|
|
1778
1778
|
interface CommonIdentificationDataNonNullableFields$1 {
|
|
1779
1779
|
wixUserId: string;
|
|
1780
|
-
identityType: IdentityType$
|
|
1780
|
+
identityType: IdentityType$2;
|
|
1781
1781
|
}
|
|
1782
1782
|
interface PermissionNonNullableFields$1 {
|
|
1783
1783
|
identity?: CommonIdentificationDataNonNullableFields$1;
|
|
1784
|
-
role: Role$
|
|
1784
|
+
role: Role$2;
|
|
1785
1785
|
}
|
|
1786
1786
|
interface EventNonNullableFields {
|
|
1787
|
-
status: Status$
|
|
1788
|
-
recurrenceType: RecurrenceType;
|
|
1787
|
+
status: Status$4;
|
|
1788
|
+
recurrenceType: RecurrenceType$1;
|
|
1789
1789
|
recurrenceRule?: RecurrenceRuleNonNullableFields;
|
|
1790
|
-
transparency: Transparency;
|
|
1790
|
+
transparency: Transparency$1;
|
|
1791
1791
|
location?: LocationNonNullableFields$1;
|
|
1792
1792
|
resources: ResourceNonNullableFields[];
|
|
1793
1793
|
participants?: ParticipantsNonNullableFields;
|
|
1794
1794
|
conferencingDetails?: ConferencingDetailsNonNullableFields$1;
|
|
1795
|
-
inheritedFields: Field[];
|
|
1795
|
+
inheritedFields: Field$1[];
|
|
1796
1796
|
permissions: PermissionNonNullableFields$1[];
|
|
1797
1797
|
}
|
|
1798
1798
|
interface GetEventResponseNonNullableFields {
|
|
@@ -1855,15 +1855,15 @@ interface ListEventsByContactIdResponseNonNullableFields {
|
|
|
1855
1855
|
interface ListEventsByMemberIdResponseNonNullableFields {
|
|
1856
1856
|
events: EventNonNullableFields[];
|
|
1857
1857
|
}
|
|
1858
|
-
interface BaseEventMetadata$
|
|
1858
|
+
interface BaseEventMetadata$4 {
|
|
1859
1859
|
/** App instance ID. */
|
|
1860
1860
|
instanceId?: string | null;
|
|
1861
1861
|
/** Event type. */
|
|
1862
1862
|
eventType?: string;
|
|
1863
1863
|
/** The identification type and identity data. */
|
|
1864
|
-
identity?: IdentificationData$
|
|
1864
|
+
identity?: IdentificationData$4;
|
|
1865
1865
|
}
|
|
1866
|
-
interface EventMetadata$
|
|
1866
|
+
interface EventMetadata$4 extends BaseEventMetadata$4 {
|
|
1867
1867
|
/**
|
|
1868
1868
|
* Unique event ID.
|
|
1869
1869
|
* Allows clients to ignore duplicate webhooks.
|
|
@@ -1902,20 +1902,20 @@ interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
|
1902
1902
|
entityEventSequence?: string | null;
|
|
1903
1903
|
}
|
|
1904
1904
|
interface EventCreatedEnvelope {
|
|
1905
|
-
entity: Event;
|
|
1906
|
-
metadata: EventMetadata$
|
|
1905
|
+
entity: Event$1;
|
|
1906
|
+
metadata: EventMetadata$4;
|
|
1907
1907
|
}
|
|
1908
1908
|
interface EventUpdatedEnvelope {
|
|
1909
|
-
entity: Event;
|
|
1910
|
-
metadata: EventMetadata$
|
|
1909
|
+
entity: Event$1;
|
|
1910
|
+
metadata: EventMetadata$4;
|
|
1911
1911
|
}
|
|
1912
1912
|
interface EventRecurringSplitEnvelope {
|
|
1913
1913
|
data: RecurringEventSplit;
|
|
1914
|
-
metadata: EventMetadata$
|
|
1914
|
+
metadata: EventMetadata$4;
|
|
1915
1915
|
}
|
|
1916
1916
|
interface EventCancelledEnvelope {
|
|
1917
1917
|
data: EventCancelled;
|
|
1918
|
-
metadata: EventMetadata$
|
|
1918
|
+
metadata: EventMetadata$4;
|
|
1919
1919
|
}
|
|
1920
1920
|
interface GetEventOptions {
|
|
1921
1921
|
/**
|
|
@@ -1962,19 +1962,19 @@ interface QueryEventsOptions {
|
|
|
1962
1962
|
*
|
|
1963
1963
|
* By default only single event instances and instances of recurring events are returned.
|
|
1964
1964
|
*/
|
|
1965
|
-
recurrenceType?: RecurrenceType[] | undefined;
|
|
1965
|
+
recurrenceType?: RecurrenceType$1[] | undefined;
|
|
1966
1966
|
/** List of additional fields to be included in the response. */
|
|
1967
1967
|
fields?: RequestedFields$1[] | undefined;
|
|
1968
1968
|
}
|
|
1969
|
-
interface QueryCursorResult$
|
|
1970
|
-
cursors: Cursors$
|
|
1969
|
+
interface QueryCursorResult$2 {
|
|
1970
|
+
cursors: Cursors$2;
|
|
1971
1971
|
hasNext: () => boolean;
|
|
1972
1972
|
hasPrev: () => boolean;
|
|
1973
1973
|
length: number;
|
|
1974
1974
|
pageSize: number;
|
|
1975
1975
|
}
|
|
1976
|
-
interface EventsQueryResult extends QueryCursorResult$
|
|
1977
|
-
items: Event[];
|
|
1976
|
+
interface EventsQueryResult extends QueryCursorResult$2 {
|
|
1977
|
+
items: Event$1[];
|
|
1978
1978
|
query: EventsQueryBuilder;
|
|
1979
1979
|
next: () => Promise<EventsQueryResult>;
|
|
1980
1980
|
prev: () => Promise<EventsQueryResult>;
|
|
@@ -2091,7 +2091,7 @@ interface UpdateEvent {
|
|
|
2091
2091
|
* - `"CANCELLED"` Event has been cancelled.
|
|
2092
2092
|
* @readonly
|
|
2093
2093
|
*/
|
|
2094
|
-
status?: Status$
|
|
2094
|
+
status?: Status$4;
|
|
2095
2095
|
/**
|
|
2096
2096
|
* The event title.
|
|
2097
2097
|
*
|
|
@@ -2103,19 +2103,19 @@ interface UpdateEvent {
|
|
|
2103
2103
|
*
|
|
2104
2104
|
* Recurring events must start from at least today.
|
|
2105
2105
|
*/
|
|
2106
|
-
start?: ZonedDate$
|
|
2106
|
+
start?: ZonedDate$2;
|
|
2107
2107
|
/** The event end date. */
|
|
2108
|
-
end?: ZonedDate$
|
|
2108
|
+
end?: ZonedDate$2;
|
|
2109
2109
|
/**
|
|
2110
2110
|
* Read-only start date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
2111
2111
|
* @readonly
|
|
2112
2112
|
*/
|
|
2113
|
-
adjustedStart?: ZonedDate$
|
|
2113
|
+
adjustedStart?: ZonedDate$2;
|
|
2114
2114
|
/**
|
|
2115
2115
|
* Read-only end date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
2116
2116
|
* @readonly
|
|
2117
2117
|
*/
|
|
2118
|
-
adjustedEnd?: ZonedDate$
|
|
2118
|
+
adjustedEnd?: ZonedDate$2;
|
|
2119
2119
|
/**
|
|
2120
2120
|
* The event time zone, formatted according to the IANA time zone format.
|
|
2121
2121
|
* Must be a regional time zone (Area/Location) or UTC.
|
|
@@ -2133,7 +2133,7 @@ interface UpdateEvent {
|
|
|
2133
2133
|
* - `"EXCEPTION"` The event is an exceptional instance of a recurring event. Read only.
|
|
2134
2134
|
* @readonly
|
|
2135
2135
|
*/
|
|
2136
|
-
recurrenceType?: RecurrenceType;
|
|
2136
|
+
recurrenceType?: RecurrenceType$1;
|
|
2137
2137
|
/**
|
|
2138
2138
|
* The recurrence rule defining a repeating pattern for the event.
|
|
2139
2139
|
* Required for `MASTER` recurrence, read only otherwise.
|
|
@@ -2144,7 +2144,7 @@ interface UpdateEvent {
|
|
|
2144
2144
|
* - `days = [MONDAY]`
|
|
2145
2145
|
* - `until = 20240107T08:00:00Z`
|
|
2146
2146
|
*/
|
|
2147
|
-
recurrenceRule?: RecurrenceRule;
|
|
2147
|
+
recurrenceRule?: RecurrenceRule$1;
|
|
2148
2148
|
/**
|
|
2149
2149
|
* The ID of the recurring event that this event belongs to, if this event is an instance of recurring event.
|
|
2150
2150
|
* @readonly
|
|
@@ -2154,13 +2154,13 @@ interface UpdateEvent {
|
|
|
2154
2154
|
* Specifies whether the event blocks the schedule time.
|
|
2155
2155
|
* Default is true.
|
|
2156
2156
|
*/
|
|
2157
|
-
transparency?: Transparency;
|
|
2157
|
+
transparency?: Transparency$1;
|
|
2158
2158
|
/**
|
|
2159
2159
|
* The event location.
|
|
2160
2160
|
*
|
|
2161
2161
|
* The location is inherited from the schedule and can be overridden.
|
|
2162
2162
|
*/
|
|
2163
|
-
location?: Location$
|
|
2163
|
+
location?: Location$2;
|
|
2164
2164
|
/**
|
|
2165
2165
|
* List of resources affected by the event.
|
|
2166
2166
|
*
|
|
@@ -2168,7 +2168,7 @@ interface UpdateEvent {
|
|
|
2168
2168
|
* - Event occupying a resource time, such as a room, equipment or person.
|
|
2169
2169
|
* - The Bookings App Staff is affected by the Booking Class Sessions it provides.
|
|
2170
2170
|
*/
|
|
2171
|
-
resources?: Resource[];
|
|
2171
|
+
resources?: Resource$1[];
|
|
2172
2172
|
/**
|
|
2173
2173
|
* The event capacity, which is the max number of participants that can participate in the event.
|
|
2174
2174
|
*
|
|
@@ -2184,13 +2184,13 @@ interface UpdateEvent {
|
|
|
2184
2184
|
* The event participants.
|
|
2185
2185
|
* @readonly
|
|
2186
2186
|
*/
|
|
2187
|
-
participants?: Participants;
|
|
2187
|
+
participants?: Participants$1;
|
|
2188
2188
|
/**
|
|
2189
2189
|
* Online conferencing details.
|
|
2190
2190
|
*
|
|
2191
2191
|
* The conferencing details are inherited from the schedule and can be overridden.
|
|
2192
2192
|
*/
|
|
2193
|
-
conferencingDetails?: ConferencingDetails$
|
|
2193
|
+
conferencingDetails?: ConferencingDetails$2;
|
|
2194
2194
|
/** Additional notes and information about the event. */
|
|
2195
2195
|
notes?: string | null;
|
|
2196
2196
|
/**
|
|
@@ -2198,7 +2198,7 @@ interface UpdateEvent {
|
|
|
2198
2198
|
* if this event is an instance of recurring event.
|
|
2199
2199
|
* @readonly
|
|
2200
2200
|
*/
|
|
2201
|
-
inheritedFields?: Field[];
|
|
2201
|
+
inheritedFields?: Field$1[];
|
|
2202
2202
|
/**
|
|
2203
2203
|
* ID of the Wix app owning the event, as derived from the schedule.
|
|
2204
2204
|
* @readonly
|
|
@@ -2210,9 +2210,9 @@ interface UpdateEvent {
|
|
|
2210
2210
|
* Derived from the schedule and the resources of the the event.
|
|
2211
2211
|
* @readonly
|
|
2212
2212
|
*/
|
|
2213
|
-
permissions?: Permission$
|
|
2213
|
+
permissions?: Permission$2[];
|
|
2214
2214
|
/** Extensions enabling applications or users to save custom data related to the event. */
|
|
2215
|
-
extendedFields?: ExtendedFields$
|
|
2215
|
+
extendedFields?: ExtendedFields$3;
|
|
2216
2216
|
/**
|
|
2217
2217
|
* The event revision number, which incremented on updates.
|
|
2218
2218
|
*
|
|
@@ -2358,7 +2358,7 @@ interface GetEventSignature {
|
|
|
2358
2358
|
* @param - The ID of the event to retrieve. Required.
|
|
2359
2359
|
* @returns The event.
|
|
2360
2360
|
*/
|
|
2361
|
-
(eventId: string | null, options?: GetEventOptions | undefined): Promise<Event & EventNonNullableFields>;
|
|
2361
|
+
(eventId: string | null, options?: GetEventOptions | undefined): Promise<Event$1 & EventNonNullableFields>;
|
|
2362
2362
|
}
|
|
2363
2363
|
declare function listEvents$1(httpClient: HttpClient): ListEventsSignature;
|
|
2364
2364
|
interface ListEventsSignature {
|
|
@@ -2385,7 +2385,7 @@ interface CreateEventSignature {
|
|
|
2385
2385
|
* @param - The event to create.
|
|
2386
2386
|
* @returns The created event.
|
|
2387
2387
|
*/
|
|
2388
|
-
(event: Event, options?: CreateEventOptions | undefined): Promise<Event & EventNonNullableFields>;
|
|
2388
|
+
(event: Event$1, options?: CreateEventOptions | undefined): Promise<Event$1 & EventNonNullableFields>;
|
|
2389
2389
|
}
|
|
2390
2390
|
declare function bulkCreateEvent$1(httpClient: HttpClient): BulkCreateEventSignature;
|
|
2391
2391
|
interface BulkCreateEventSignature {
|
|
@@ -2402,7 +2402,7 @@ interface UpdateEventSignature {
|
|
|
2402
2402
|
* @param - The event ID.
|
|
2403
2403
|
* @returns The updated event.
|
|
2404
2404
|
*/
|
|
2405
|
-
(_id: string | null, event: UpdateEvent, options?: UpdateEventOptions | undefined): Promise<Event & EventNonNullableFields>;
|
|
2405
|
+
(_id: string | null, event: UpdateEvent, options?: UpdateEventOptions | undefined): Promise<Event$1 & EventNonNullableFields>;
|
|
2406
2406
|
}
|
|
2407
2407
|
declare function bulkUpdateEvent$1(httpClient: HttpClient): BulkUpdateEventSignature;
|
|
2408
2408
|
interface BulkUpdateEventSignature {
|
|
@@ -2419,7 +2419,7 @@ interface RestoreEventDefaultsSignature {
|
|
|
2419
2419
|
* @param - The ID of the event.
|
|
2420
2420
|
* @param - The fields for which to restore default values.
|
|
2421
2421
|
*/
|
|
2422
|
-
(eventId: string | null, fields: Field[], options?: RestoreEventDefaultsOptions | undefined): Promise<RestoreEventDefaultsResponse & RestoreEventDefaultsResponseNonNullableFields>;
|
|
2422
|
+
(eventId: string | null, fields: Field$1[], options?: RestoreEventDefaultsOptions | undefined): Promise<RestoreEventDefaultsResponse & RestoreEventDefaultsResponseNonNullableFields>;
|
|
2423
2423
|
}
|
|
2424
2424
|
declare function splitRecurringEvent$1(httpClient: HttpClient): SplitRecurringEventSignature;
|
|
2425
2425
|
interface SplitRecurringEventSignature {
|
|
@@ -2485,21 +2485,21 @@ interface ListEventsByMemberIdSignature {
|
|
|
2485
2485
|
*/
|
|
2486
2486
|
(memberId: string | null, options?: ListEventsByMemberIdOptions | undefined): Promise<ListEventsByMemberIdResponse & ListEventsByMemberIdResponseNonNullableFields>;
|
|
2487
2487
|
}
|
|
2488
|
-
declare const onEventCreated$1: EventDefinition$
|
|
2489
|
-
declare const onEventUpdated$1: EventDefinition$
|
|
2490
|
-
declare const onEventRecurringSplit$1: EventDefinition$
|
|
2491
|
-
declare const onEventCancelled$1: EventDefinition$
|
|
2488
|
+
declare const onEventCreated$1: EventDefinition$5<EventCreatedEnvelope, "wix.calendar.v3.event_created">;
|
|
2489
|
+
declare const onEventUpdated$1: EventDefinition$5<EventUpdatedEnvelope, "wix.calendar.v3.event_updated">;
|
|
2490
|
+
declare const onEventRecurringSplit$1: EventDefinition$5<EventRecurringSplitEnvelope, "wix.calendar.v3.event_recurring_split">;
|
|
2491
|
+
declare const onEventCancelled$1: EventDefinition$5<EventCancelledEnvelope, "wix.calendar.v3.event_cancelled">;
|
|
2492
2492
|
|
|
2493
|
-
type EventDefinition$
|
|
2493
|
+
type EventDefinition$4<Payload = unknown, Type extends string = string> = {
|
|
2494
2494
|
__type: 'event-definition';
|
|
2495
2495
|
type: Type;
|
|
2496
2496
|
isDomainEvent?: boolean;
|
|
2497
2497
|
transformations?: (envelope: unknown) => Payload;
|
|
2498
2498
|
__payload: Payload;
|
|
2499
2499
|
};
|
|
2500
|
-
declare function EventDefinition$
|
|
2501
|
-
type EventHandler$
|
|
2502
|
-
type BuildEventDefinition$
|
|
2500
|
+
declare function EventDefinition$4<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$4<Payload, Type>;
|
|
2501
|
+
type EventHandler$4<T extends EventDefinition$4> = (payload: T['__payload']) => void | Promise<void>;
|
|
2502
|
+
type BuildEventDefinition$4<T extends EventDefinition$4<any, string>> = (handler: EventHandler$4<T>) => void;
|
|
2503
2503
|
|
|
2504
2504
|
declare global {
|
|
2505
2505
|
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
@@ -2508,7 +2508,7 @@ declare global {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
2510
|
|
|
2511
|
-
declare function createEventModule$
|
|
2511
|
+
declare function createEventModule$4<T extends EventDefinition$4<any, string>>(eventDefinition: T): BuildEventDefinition$4<T> & T;
|
|
2512
2512
|
|
|
2513
2513
|
declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
|
|
2514
2514
|
declare const listEvents: MaybeContext<BuildRESTFunction<typeof listEvents$1> & typeof listEvents$1>;
|
|
@@ -2526,141 +2526,1455 @@ declare const listEventsByMemberId: MaybeContext<BuildRESTFunction<typeof listEv
|
|
|
2526
2526
|
|
|
2527
2527
|
type _publicOnEventCreatedType = typeof onEventCreated$1;
|
|
2528
2528
|
/** */
|
|
2529
|
-
declare const onEventCreated: ReturnType<typeof createEventModule$
|
|
2529
|
+
declare const onEventCreated: ReturnType<typeof createEventModule$4<_publicOnEventCreatedType>>;
|
|
2530
2530
|
|
|
2531
2531
|
type _publicOnEventUpdatedType = typeof onEventUpdated$1;
|
|
2532
2532
|
/** */
|
|
2533
|
-
declare const onEventUpdated: ReturnType<typeof createEventModule$
|
|
2533
|
+
declare const onEventUpdated: ReturnType<typeof createEventModule$4<_publicOnEventUpdatedType>>;
|
|
2534
2534
|
|
|
2535
2535
|
type _publicOnEventRecurringSplitType = typeof onEventRecurringSplit$1;
|
|
2536
2536
|
/** */
|
|
2537
|
-
declare const onEventRecurringSplit: ReturnType<typeof createEventModule$
|
|
2537
|
+
declare const onEventRecurringSplit: ReturnType<typeof createEventModule$4<_publicOnEventRecurringSplitType>>;
|
|
2538
2538
|
|
|
2539
2539
|
type _publicOnEventCancelledType = typeof onEventCancelled$1;
|
|
2540
2540
|
/** */
|
|
2541
|
-
declare const onEventCancelled: ReturnType<typeof createEventModule$
|
|
2541
|
+
declare const onEventCancelled: ReturnType<typeof createEventModule$4<_publicOnEventCancelledType>>;
|
|
2542
|
+
|
|
2543
|
+
type index_d$4_ApplicationError = ApplicationError;
|
|
2544
|
+
type index_d$4_BulkActionMetadata = BulkActionMetadata;
|
|
2545
|
+
type index_d$4_BulkCancelEventOptions = BulkCancelEventOptions;
|
|
2546
|
+
type index_d$4_BulkCancelEventRequest = BulkCancelEventRequest;
|
|
2547
|
+
type index_d$4_BulkCancelEventResponse = BulkCancelEventResponse;
|
|
2548
|
+
type index_d$4_BulkCancelEventResponseNonNullableFields = BulkCancelEventResponseNonNullableFields;
|
|
2549
|
+
type index_d$4_BulkCreateEventOptions = BulkCreateEventOptions;
|
|
2550
|
+
type index_d$4_BulkCreateEventRequest = BulkCreateEventRequest;
|
|
2551
|
+
type index_d$4_BulkCreateEventResponse = BulkCreateEventResponse;
|
|
2552
|
+
type index_d$4_BulkCreateEventResponseNonNullableFields = BulkCreateEventResponseNonNullableFields;
|
|
2553
|
+
type index_d$4_BulkEventResult = BulkEventResult;
|
|
2554
|
+
type index_d$4_BulkUpdateEventOptions = BulkUpdateEventOptions;
|
|
2555
|
+
type index_d$4_BulkUpdateEventRequest = BulkUpdateEventRequest;
|
|
2556
|
+
type index_d$4_BulkUpdateEventRequestMaskedEvent = BulkUpdateEventRequestMaskedEvent;
|
|
2557
|
+
type index_d$4_BulkUpdateEventResponse = BulkUpdateEventResponse;
|
|
2558
|
+
type index_d$4_BulkUpdateEventResponseNonNullableFields = BulkUpdateEventResponseNonNullableFields;
|
|
2559
|
+
type index_d$4_CancelEventOptions = CancelEventOptions;
|
|
2560
|
+
type index_d$4_CancelEventRequest = CancelEventRequest;
|
|
2561
|
+
type index_d$4_CancelEventResponse = CancelEventResponse;
|
|
2562
|
+
type index_d$4_CancelEventResponseNonNullableFields = CancelEventResponseNonNullableFields;
|
|
2563
|
+
type index_d$4_CommonCursorPaging = CommonCursorPaging;
|
|
2564
|
+
type index_d$4_CommonCursorPagingMetadata = CommonCursorPagingMetadata;
|
|
2565
|
+
type index_d$4_CommonCursors = CommonCursors;
|
|
2566
|
+
type index_d$4_CreateEventOptions = CreateEventOptions;
|
|
2567
|
+
type index_d$4_CreateEventRequest = CreateEventRequest;
|
|
2568
|
+
type index_d$4_CreateEventResponse = CreateEventResponse;
|
|
2569
|
+
type index_d$4_CreateEventResponseNonNullableFields = CreateEventResponseNonNullableFields;
|
|
2570
|
+
type index_d$4_DeleteTargetsRequest = DeleteTargetsRequest;
|
|
2571
|
+
type index_d$4_DeleteTargetsResponse = DeleteTargetsResponse;
|
|
2572
|
+
type index_d$4_EventCancelled = EventCancelled;
|
|
2573
|
+
type index_d$4_EventCancelledEnvelope = EventCancelledEnvelope;
|
|
2574
|
+
type index_d$4_EventCreatedEnvelope = EventCreatedEnvelope;
|
|
2575
|
+
type index_d$4_EventNonNullableFields = EventNonNullableFields;
|
|
2576
|
+
type index_d$4_EventRecurringSplitEnvelope = EventRecurringSplitEnvelope;
|
|
2577
|
+
type index_d$4_EventUpdatedEnvelope = EventUpdatedEnvelope;
|
|
2578
|
+
type index_d$4_EventUpdatedWithMetadata = EventUpdatedWithMetadata;
|
|
2579
|
+
type index_d$4_EventsQueryBuilder = EventsQueryBuilder;
|
|
2580
|
+
type index_d$4_EventsQueryResult = EventsQueryResult;
|
|
2581
|
+
type index_d$4_GetEventOptions = GetEventOptions;
|
|
2582
|
+
type index_d$4_GetEventRequest = GetEventRequest;
|
|
2583
|
+
type index_d$4_GetEventResponse = GetEventResponse;
|
|
2584
|
+
type index_d$4_GetEventResponseNonNullableFields = GetEventResponseNonNullableFields;
|
|
2585
|
+
type index_d$4_ItemMetadata = ItemMetadata;
|
|
2586
|
+
type index_d$4_ListEventsByContactIdOptions = ListEventsByContactIdOptions;
|
|
2587
|
+
type index_d$4_ListEventsByContactIdRequest = ListEventsByContactIdRequest;
|
|
2588
|
+
type index_d$4_ListEventsByContactIdResponse = ListEventsByContactIdResponse;
|
|
2589
|
+
type index_d$4_ListEventsByContactIdResponseNonNullableFields = ListEventsByContactIdResponseNonNullableFields;
|
|
2590
|
+
type index_d$4_ListEventsByMemberIdOptions = ListEventsByMemberIdOptions;
|
|
2591
|
+
type index_d$4_ListEventsByMemberIdRequest = ListEventsByMemberIdRequest;
|
|
2592
|
+
type index_d$4_ListEventsByMemberIdResponse = ListEventsByMemberIdResponse;
|
|
2593
|
+
type index_d$4_ListEventsByMemberIdResponseNonNullableFields = ListEventsByMemberIdResponseNonNullableFields;
|
|
2594
|
+
type index_d$4_ListEventsOptions = ListEventsOptions;
|
|
2595
|
+
type index_d$4_ListEventsRequest = ListEventsRequest;
|
|
2596
|
+
type index_d$4_ListEventsResponse = ListEventsResponse;
|
|
2597
|
+
type index_d$4_ListEventsResponseNonNullableFields = ListEventsResponseNonNullableFields;
|
|
2598
|
+
type index_d$4_ListRecurringEventInstancesHistoryRequest = ListRecurringEventInstancesHistoryRequest;
|
|
2599
|
+
type index_d$4_ListRecurringEventInstancesHistoryResponse = ListRecurringEventInstancesHistoryResponse;
|
|
2600
|
+
type index_d$4_MaskedEvent = MaskedEvent;
|
|
2601
|
+
type index_d$4_QueryEventsOptions = QueryEventsOptions;
|
|
2602
|
+
type index_d$4_QueryEventsRequest = QueryEventsRequest;
|
|
2603
|
+
type index_d$4_QueryEventsResponse = QueryEventsResponse;
|
|
2604
|
+
type index_d$4_QueryEventsResponseNonNullableFields = QueryEventsResponseNonNullableFields;
|
|
2605
|
+
type index_d$4_RecurringEventSplit = RecurringEventSplit;
|
|
2606
|
+
type index_d$4_RestoreEventDefaultsOptions = RestoreEventDefaultsOptions;
|
|
2607
|
+
type index_d$4_RestoreEventDefaultsRequest = RestoreEventDefaultsRequest;
|
|
2608
|
+
type index_d$4_RestoreEventDefaultsResponse = RestoreEventDefaultsResponse;
|
|
2609
|
+
type index_d$4_RestoreEventDefaultsResponseNonNullableFields = RestoreEventDefaultsResponseNonNullableFields;
|
|
2610
|
+
type index_d$4_SortOrder = SortOrder;
|
|
2611
|
+
declare const index_d$4_SortOrder: typeof SortOrder;
|
|
2612
|
+
type index_d$4_Sorting = Sorting;
|
|
2613
|
+
type index_d$4_SplitRecurringEventOptions = SplitRecurringEventOptions;
|
|
2614
|
+
type index_d$4_SplitRecurringEventRequest = SplitRecurringEventRequest;
|
|
2615
|
+
type index_d$4_SplitRecurringEventResponse = SplitRecurringEventResponse;
|
|
2616
|
+
type index_d$4_SplitRecurringEventResponseNonNullableFields = SplitRecurringEventResponseNonNullableFields;
|
|
2617
|
+
type index_d$4_UpdateEvent = UpdateEvent;
|
|
2618
|
+
type index_d$4_UpdateEventOptions = UpdateEventOptions;
|
|
2619
|
+
type index_d$4_UpdateEventParticipantsRequest = UpdateEventParticipantsRequest;
|
|
2620
|
+
type index_d$4_UpdateEventParticipantsResponse = UpdateEventParticipantsResponse;
|
|
2621
|
+
type index_d$4_UpdateEventRequest = UpdateEventRequest;
|
|
2622
|
+
type index_d$4_UpdateEventResponse = UpdateEventResponse;
|
|
2623
|
+
type index_d$4_UpdateEventResponseNonNullableFields = UpdateEventResponseNonNullableFields;
|
|
2624
|
+
type index_d$4__publicOnEventCancelledType = _publicOnEventCancelledType;
|
|
2625
|
+
type index_d$4__publicOnEventCreatedType = _publicOnEventCreatedType;
|
|
2626
|
+
type index_d$4__publicOnEventRecurringSplitType = _publicOnEventRecurringSplitType;
|
|
2627
|
+
type index_d$4__publicOnEventUpdatedType = _publicOnEventUpdatedType;
|
|
2628
|
+
declare const index_d$4_bulkCancelEvent: typeof bulkCancelEvent;
|
|
2629
|
+
declare const index_d$4_bulkCreateEvent: typeof bulkCreateEvent;
|
|
2630
|
+
declare const index_d$4_bulkUpdateEvent: typeof bulkUpdateEvent;
|
|
2631
|
+
declare const index_d$4_cancelEvent: typeof cancelEvent;
|
|
2632
|
+
declare const index_d$4_createEvent: typeof createEvent;
|
|
2633
|
+
declare const index_d$4_getEvent: typeof getEvent;
|
|
2634
|
+
declare const index_d$4_listEvents: typeof listEvents;
|
|
2635
|
+
declare const index_d$4_listEventsByContactId: typeof listEventsByContactId;
|
|
2636
|
+
declare const index_d$4_listEventsByMemberId: typeof listEventsByMemberId;
|
|
2637
|
+
declare const index_d$4_onEventCancelled: typeof onEventCancelled;
|
|
2638
|
+
declare const index_d$4_onEventCreated: typeof onEventCreated;
|
|
2639
|
+
declare const index_d$4_onEventRecurringSplit: typeof onEventRecurringSplit;
|
|
2640
|
+
declare const index_d$4_onEventUpdated: typeof onEventUpdated;
|
|
2641
|
+
declare const index_d$4_queryEvents: typeof queryEvents;
|
|
2642
|
+
declare const index_d$4_restoreEventDefaults: typeof restoreEventDefaults;
|
|
2643
|
+
declare const index_d$4_splitRecurringEvent: typeof splitRecurringEvent;
|
|
2644
|
+
declare const index_d$4_updateEvent: typeof updateEvent;
|
|
2645
|
+
declare namespace index_d$4 {
|
|
2646
|
+
export { type ActionEvent$4 as ActionEvent, type Address$2 as Address, type AddressHint$2 as AddressHint, type index_d$4_ApplicationError as ApplicationError, type BaseEventMetadata$4 as BaseEventMetadata, type index_d$4_BulkActionMetadata as BulkActionMetadata, type index_d$4_BulkCancelEventOptions as BulkCancelEventOptions, type index_d$4_BulkCancelEventRequest as BulkCancelEventRequest, type index_d$4_BulkCancelEventResponse as BulkCancelEventResponse, type index_d$4_BulkCancelEventResponseNonNullableFields as BulkCancelEventResponseNonNullableFields, type index_d$4_BulkCreateEventOptions as BulkCreateEventOptions, type index_d$4_BulkCreateEventRequest as BulkCreateEventRequest, type index_d$4_BulkCreateEventResponse as BulkCreateEventResponse, type index_d$4_BulkCreateEventResponseNonNullableFields as BulkCreateEventResponseNonNullableFields, type index_d$4_BulkEventResult as BulkEventResult, type index_d$4_BulkUpdateEventOptions as BulkUpdateEventOptions, type index_d$4_BulkUpdateEventRequest as BulkUpdateEventRequest, type index_d$4_BulkUpdateEventRequestMaskedEvent as BulkUpdateEventRequestMaskedEvent, type index_d$4_BulkUpdateEventResponse as BulkUpdateEventResponse, type index_d$4_BulkUpdateEventResponseNonNullableFields as BulkUpdateEventResponseNonNullableFields, type BusinessSchedule$2 as BusinessSchedule, type index_d$4_CancelEventOptions as CancelEventOptions, type index_d$4_CancelEventRequest as CancelEventRequest, type index_d$4_CancelEventResponse as CancelEventResponse, type index_d$4_CancelEventResponseNonNullableFields as CancelEventResponseNonNullableFields, type Categories$2 as Categories, type ChangeContext$2 as ChangeContext, type ChangeContextPayloadOneOf$2 as ChangeContextPayloadOneOf, type index_d$4_CommonCursorPaging as CommonCursorPaging, type index_d$4_CommonCursorPagingMetadata as CommonCursorPagingMetadata, type index_d$4_CommonCursors as CommonCursors, type CommonIdentificationData$2 as CommonIdentificationData, type CommonIdentificationDataIdOneOf$2 as CommonIdentificationDataIdOneOf, type ConferencingDetails$2 as ConferencingDetails, type ConsentPolicy$2 as ConsentPolicy, type index_d$4_CreateEventOptions as CreateEventOptions, type index_d$4_CreateEventRequest as CreateEventRequest, type index_d$4_CreateEventResponse as CreateEventResponse, type index_d$4_CreateEventResponseNonNullableFields as CreateEventResponseNonNullableFields, type CursorPaging$2 as CursorPaging, type CursorPagingMetadata$2 as CursorPagingMetadata, type CursorQuery$2 as CursorQuery, type CursorQueryPagingMethodOneOf$2 as CursorQueryPagingMethodOneOf, type Cursors$2 as Cursors, Day$1 as Day, DayOfWeek$2 as DayOfWeek, type index_d$4_DeleteTargetsRequest as DeleteTargetsRequest, type index_d$4_DeleteTargetsResponse as DeleteTargetsResponse, type DomainEvent$4 as DomainEvent, type DomainEventBodyOneOf$4 as DomainEventBodyOneOf, type Empty$4 as Empty, type EntityCreatedEvent$4 as EntityCreatedEvent, type EntityDeletedEvent$4 as EntityDeletedEvent, type EntityUpdatedEvent$4 as EntityUpdatedEvent, type Event$1 as Event, type index_d$4_EventCancelled as EventCancelled, type index_d$4_EventCancelledEnvelope as EventCancelledEnvelope, type index_d$4_EventCreatedEnvelope as EventCreatedEnvelope, type EventMetadata$4 as EventMetadata, type index_d$4_EventNonNullableFields as EventNonNullableFields, type index_d$4_EventRecurringSplitEnvelope as EventRecurringSplitEnvelope, type index_d$4_EventUpdatedEnvelope as EventUpdatedEnvelope, type index_d$4_EventUpdatedWithMetadata as EventUpdatedWithMetadata, type index_d$4_EventsQueryBuilder as EventsQueryBuilder, type index_d$4_EventsQueryResult as EventsQueryResult, type ExtendedFields$3 as ExtendedFields, Field$1 as Field, Frequency$1 as Frequency, type GeoCoordinates$2 as GeoCoordinates, type index_d$4_GetEventOptions as GetEventOptions, type index_d$4_GetEventRequest as GetEventRequest, type index_d$4_GetEventResponse as GetEventResponse, type index_d$4_GetEventResponseNonNullableFields as GetEventResponseNonNullableFields, type IdentificationData$4 as IdentificationData, type IdentificationDataIdOneOf$4 as IdentificationDataIdOneOf, IdentityType$2 as IdentityType, type index_d$4_ItemMetadata as ItemMetadata, type index_d$4_ListEventsByContactIdOptions as ListEventsByContactIdOptions, type index_d$4_ListEventsByContactIdRequest as ListEventsByContactIdRequest, type index_d$4_ListEventsByContactIdResponse as ListEventsByContactIdResponse, type index_d$4_ListEventsByContactIdResponseNonNullableFields as ListEventsByContactIdResponseNonNullableFields, type index_d$4_ListEventsByMemberIdOptions as ListEventsByMemberIdOptions, type index_d$4_ListEventsByMemberIdRequest as ListEventsByMemberIdRequest, type index_d$4_ListEventsByMemberIdResponse as ListEventsByMemberIdResponse, type index_d$4_ListEventsByMemberIdResponseNonNullableFields as ListEventsByMemberIdResponseNonNullableFields, type index_d$4_ListEventsOptions as ListEventsOptions, type index_d$4_ListEventsRequest as ListEventsRequest, type index_d$4_ListEventsResponse as ListEventsResponse, type index_d$4_ListEventsResponseNonNullableFields as ListEventsResponseNonNullableFields, type index_d$4_ListRecurringEventInstancesHistoryRequest as ListRecurringEventInstancesHistoryRequest, type index_d$4_ListRecurringEventInstancesHistoryResponse as ListRecurringEventInstancesHistoryResponse, type Locale$2 as Locale, type Location$2 as Location, LocationType$2 as LocationType, type index_d$4_MaskedEvent as MaskedEvent, type MessageEnvelope$4 as MessageEnvelope, type Multilingual$2 as Multilingual, type Participant$2 as Participant, type ParticipantNotification$1 as ParticipantNotification, type Participants$1 as Participants, ParticipantsStatus$1 as ParticipantsStatus, type Permission$2 as Permission, PlacementType$2 as PlacementType, type Properties$2 as Properties, type PropertiesChange$2 as PropertiesChange, type index_d$4_QueryEventsOptions as QueryEventsOptions, type index_d$4_QueryEventsRequest as QueryEventsRequest, type index_d$4_QueryEventsResponse as QueryEventsResponse, type index_d$4_QueryEventsResponseNonNullableFields as QueryEventsResponseNonNullableFields, type RecurrenceRule$1 as RecurrenceRule, RecurrenceType$1 as RecurrenceType, type index_d$4_RecurringEventSplit as RecurringEventSplit, RequestedFields$1 as RequestedFields, ResolutionMethod$2 as ResolutionMethod, type Resource$1 as Resource, type index_d$4_RestoreEventDefaultsOptions as RestoreEventDefaultsOptions, type index_d$4_RestoreEventDefaultsRequest as RestoreEventDefaultsRequest, type index_d$4_RestoreEventDefaultsResponse as RestoreEventDefaultsResponse, type index_d$4_RestoreEventDefaultsResponseNonNullableFields as RestoreEventDefaultsResponseNonNullableFields, type RestoreInfo$4 as RestoreInfo, Role$2 as Role, type SiteCloned$2 as SiteCloned, type SiteCreated$2 as SiteCreated, type SitePropertiesEvent$2 as SitePropertiesEvent, type SitePropertiesNotification$2 as SitePropertiesNotification, index_d$4_SortOrder as SortOrder, type index_d$4_Sorting as Sorting, type SpecialHourPeriod$2 as SpecialHourPeriod, type index_d$4_SplitRecurringEventOptions as SplitRecurringEventOptions, type index_d$4_SplitRecurringEventRequest as SplitRecurringEventRequest, type index_d$4_SplitRecurringEventResponse as SplitRecurringEventResponse, type index_d$4_SplitRecurringEventResponseNonNullableFields as SplitRecurringEventResponseNonNullableFields, Status$4 as Status, type SupportedLanguage$2 as SupportedLanguage, type TimePeriod$2 as TimePeriod, type Translation$2 as Translation, Transparency$1 as Transparency, Type$2 as Type, type index_d$4_UpdateEvent as UpdateEvent, type index_d$4_UpdateEventOptions as UpdateEventOptions, type index_d$4_UpdateEventParticipantsRequest as UpdateEventParticipantsRequest, type index_d$4_UpdateEventParticipantsResponse as UpdateEventParticipantsResponse, type index_d$4_UpdateEventRequest as UpdateEventRequest, type index_d$4_UpdateEventResponse as UpdateEventResponse, type index_d$4_UpdateEventResponseNonNullableFields as UpdateEventResponseNonNullableFields, WebhookIdentityType$4 as WebhookIdentityType, type ZonedDate$2 as ZonedDate, type index_d$4__publicOnEventCancelledType as _publicOnEventCancelledType, type index_d$4__publicOnEventCreatedType as _publicOnEventCreatedType, type index_d$4__publicOnEventRecurringSplitType as _publicOnEventRecurringSplitType, type index_d$4__publicOnEventUpdatedType as _publicOnEventUpdatedType, index_d$4_bulkCancelEvent as bulkCancelEvent, index_d$4_bulkCreateEvent as bulkCreateEvent, index_d$4_bulkUpdateEvent as bulkUpdateEvent, index_d$4_cancelEvent as cancelEvent, index_d$4_createEvent as createEvent, index_d$4_getEvent as getEvent, index_d$4_listEvents as listEvents, index_d$4_listEventsByContactId as listEventsByContactId, index_d$4_listEventsByMemberId as listEventsByMemberId, index_d$4_onEventCancelled as onEventCancelled, index_d$4_onEventCreated as onEventCreated, index_d$4_onEventRecurringSplit as onEventRecurringSplit, index_d$4_onEventUpdated as onEventUpdated, onEventCancelled$1 as publicOnEventCancelled, onEventCreated$1 as publicOnEventCreated, onEventRecurringSplit$1 as publicOnEventRecurringSplit, onEventUpdated$1 as publicOnEventUpdated, index_d$4_queryEvents as queryEvents, index_d$4_restoreEventDefaults as restoreEventDefaults, index_d$4_splitRecurringEvent as splitRecurringEvent, index_d$4_updateEvent as updateEvent };
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
interface EventsView {
|
|
2650
|
+
/**
|
|
2651
|
+
* The view end date.
|
|
2652
|
+
* @readonly
|
|
2653
|
+
*/
|
|
2654
|
+
endDate?: Date;
|
|
2655
|
+
/**
|
|
2656
|
+
* The number of days the view lasts into the future.
|
|
2657
|
+
* @readonly
|
|
2658
|
+
*/
|
|
2659
|
+
futureDurationInDays?: number | null;
|
|
2660
|
+
}
|
|
2661
|
+
interface EventsViewProjectionUpdated extends EventsViewProjectionUpdatedTypeOneOf {
|
|
2662
|
+
/** Event has been added or updated within the view. */
|
|
2663
|
+
eventAddedOrUpdated?: EventAddedOrUpdated;
|
|
2664
|
+
/** Event has been removed from the view. */
|
|
2665
|
+
eventRemoved?: EventRemoved;
|
|
2666
|
+
/** ID of the Wix app owning the event */
|
|
2667
|
+
appId?: string | null;
|
|
2668
|
+
}
|
|
2669
|
+
/** @oneof */
|
|
2670
|
+
interface EventsViewProjectionUpdatedTypeOneOf {
|
|
2671
|
+
/** Event has been added or updated within the view. */
|
|
2672
|
+
eventAddedOrUpdated?: EventAddedOrUpdated;
|
|
2673
|
+
/** Event has been removed from the view. */
|
|
2674
|
+
eventRemoved?: EventRemoved;
|
|
2675
|
+
}
|
|
2676
|
+
interface EventAddedOrUpdated {
|
|
2677
|
+
/** The event which was added or updated within the view. */
|
|
2678
|
+
event?: Event;
|
|
2679
|
+
/** Optionally, the previous event. */
|
|
2680
|
+
previousEvent?: Event;
|
|
2681
|
+
}
|
|
2682
|
+
interface Event {
|
|
2683
|
+
/**
|
|
2684
|
+
* The event ID.
|
|
2685
|
+
* @readonly
|
|
2686
|
+
*/
|
|
2687
|
+
_id?: string | null;
|
|
2688
|
+
/**
|
|
2689
|
+
* The ID of the schedule that the event belongs to.
|
|
2690
|
+
* Cannot change.
|
|
2691
|
+
*/
|
|
2692
|
+
scheduleId?: string | null;
|
|
2693
|
+
/**
|
|
2694
|
+
* The external schedule ID.
|
|
2695
|
+
* @readonly
|
|
2696
|
+
*/
|
|
2697
|
+
externalScheduleId?: string | null;
|
|
2698
|
+
/**
|
|
2699
|
+
* The schedule name.
|
|
2700
|
+
* @readonly
|
|
2701
|
+
*/
|
|
2702
|
+
scheduleName?: string | null;
|
|
2703
|
+
/**
|
|
2704
|
+
* The event type.
|
|
2705
|
+
* Cannot change.
|
|
2706
|
+
*
|
|
2707
|
+
* The possible values are:
|
|
2708
|
+
* - `"DEFAULT"` Default event.
|
|
2709
|
+
* - `"WORKING_HOURS"` The event represents a resource working hours. Working hours events are hidden by default from queries.
|
|
2710
|
+
*
|
|
2711
|
+
* The Wix Bookings App, once installed, also provides the following:
|
|
2712
|
+
* - `"APPOINTMENT"` Bookings Appointment event.
|
|
2713
|
+
* - `"CLASS"` Bookings Class event.
|
|
2714
|
+
* - `"COURSE"` Bookings Course event.
|
|
2715
|
+
*
|
|
2716
|
+
* See the [Event Type Provider](https://dev.wix.com/docs/rest/internal-only/calendar/event-type-provider-v3/introduction) for more details.
|
|
2717
|
+
*/
|
|
2718
|
+
type?: string | null;
|
|
2719
|
+
/**
|
|
2720
|
+
* The event status. Read only.
|
|
2721
|
+
*
|
|
2722
|
+
* The possible values are:
|
|
2723
|
+
* - `"CONFIRMED"` Event is confirmed. Default value.
|
|
2724
|
+
* - `"CANCELLED"` Event has been cancelled.
|
|
2725
|
+
* @readonly
|
|
2726
|
+
*/
|
|
2727
|
+
status?: Status$3;
|
|
2728
|
+
/**
|
|
2729
|
+
* The event title.
|
|
2730
|
+
*
|
|
2731
|
+
* The title is inherited from the schedule and can be overridden.
|
|
2732
|
+
*/
|
|
2733
|
+
title?: string | null;
|
|
2734
|
+
/**
|
|
2735
|
+
* The event start date.
|
|
2736
|
+
*
|
|
2737
|
+
* Recurring events must start from at least today.
|
|
2738
|
+
*/
|
|
2739
|
+
start?: ZonedDate$1;
|
|
2740
|
+
/** The event end date. */
|
|
2741
|
+
end?: ZonedDate$1;
|
|
2742
|
+
/**
|
|
2743
|
+
* Read-only start date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
2744
|
+
* @readonly
|
|
2745
|
+
*/
|
|
2746
|
+
adjustedStart?: ZonedDate$1;
|
|
2747
|
+
/**
|
|
2748
|
+
* Read-only end date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
2749
|
+
* @readonly
|
|
2750
|
+
*/
|
|
2751
|
+
adjustedEnd?: ZonedDate$1;
|
|
2752
|
+
/**
|
|
2753
|
+
* The event time zone, formatted according to the IANA time zone format.
|
|
2754
|
+
* Must be a regional time zone (Area/Location) or UTC.
|
|
2755
|
+
*
|
|
2756
|
+
* The time zone is inherited from the schedule and can be overridden.
|
|
2757
|
+
*/
|
|
2758
|
+
timeZone?: string | null;
|
|
2759
|
+
/**
|
|
2760
|
+
* Whether this event is a recurring event or an instance of recurring event.
|
|
2761
|
+
*
|
|
2762
|
+
* The possible values are:
|
|
2763
|
+
* - `"NONE"` No recurrence, i.e the event is a single event instance. Default.
|
|
2764
|
+
* - `"MASTER"` The event is the recurrence master defining the recurrence rule, which is the repeat pattern for the events.
|
|
2765
|
+
* - `"INSTANCE"` The event is an instance of a recurring event. Read only.
|
|
2766
|
+
* - `"EXCEPTION"` The event is an exceptional instance of a recurring event. Read only.
|
|
2767
|
+
* @readonly
|
|
2768
|
+
*/
|
|
2769
|
+
recurrenceType?: RecurrenceType;
|
|
2770
|
+
/**
|
|
2771
|
+
* The recurrence rule defining a repeating pattern for the event.
|
|
2772
|
+
* Required for `MASTER` recurrence, read only otherwise.
|
|
2773
|
+
*
|
|
2774
|
+
* For example, a event that repeats every second week on a Monday until January 7, 2024 at 8 AM, will have the following recurrence:
|
|
2775
|
+
* - `frequency = WEEKLY`
|
|
2776
|
+
* - `interval = 2`
|
|
2777
|
+
* - `days = [MONDAY]`
|
|
2778
|
+
* - `until = 20240107T08:00:00Z`
|
|
2779
|
+
*/
|
|
2780
|
+
recurrenceRule?: RecurrenceRule;
|
|
2781
|
+
/**
|
|
2782
|
+
* The ID of the recurring event that this event belongs to, if this event is an instance of recurring event.
|
|
2783
|
+
* @readonly
|
|
2784
|
+
*/
|
|
2785
|
+
recurringEventId?: string | null;
|
|
2786
|
+
/**
|
|
2787
|
+
* Specifies whether the event blocks the schedule time.
|
|
2788
|
+
* Default is true.
|
|
2789
|
+
*/
|
|
2790
|
+
transparency?: Transparency;
|
|
2791
|
+
/**
|
|
2792
|
+
* The event location.
|
|
2793
|
+
*
|
|
2794
|
+
* The location is inherited from the schedule and can be overridden.
|
|
2795
|
+
*/
|
|
2796
|
+
location?: Location$1;
|
|
2797
|
+
/**
|
|
2798
|
+
* List of resources affected by the event.
|
|
2799
|
+
*
|
|
2800
|
+
* For example:
|
|
2801
|
+
* - Event occupying a resource time, such as a room, equipment or person.
|
|
2802
|
+
* - The Bookings App Staff is affected by the Booking Class Sessions it provides.
|
|
2803
|
+
*/
|
|
2804
|
+
resources?: Resource[];
|
|
2805
|
+
/**
|
|
2806
|
+
* The event capacity, which is the max number of participants that can participate in the event.
|
|
2807
|
+
*
|
|
2808
|
+
* The total capacity is inherited from the schedule and can be overridden.
|
|
2809
|
+
*/
|
|
2810
|
+
totalCapacity?: number | null;
|
|
2811
|
+
/**
|
|
2812
|
+
* The remaining number of participants that can be added to the event.
|
|
2813
|
+
* @readonly
|
|
2814
|
+
*/
|
|
2815
|
+
remainingCapacity?: number | null;
|
|
2816
|
+
/**
|
|
2817
|
+
* The event participants.
|
|
2818
|
+
* @readonly
|
|
2819
|
+
*/
|
|
2820
|
+
participants?: Participants;
|
|
2821
|
+
/**
|
|
2822
|
+
* Online conferencing details.
|
|
2823
|
+
*
|
|
2824
|
+
* The conferencing details are inherited from the schedule and can be overridden.
|
|
2825
|
+
*/
|
|
2826
|
+
conferencingDetails?: ConferencingDetails$1;
|
|
2827
|
+
/** Additional notes and information about the event. */
|
|
2828
|
+
notes?: string | null;
|
|
2829
|
+
/**
|
|
2830
|
+
* A list of fields for which values were inherited from the schedule or the recurring event,
|
|
2831
|
+
* if this event is an instance of recurring event.
|
|
2832
|
+
* @readonly
|
|
2833
|
+
*/
|
|
2834
|
+
inheritedFields?: Field[];
|
|
2835
|
+
/**
|
|
2836
|
+
* ID of the Wix app owning the event, as derived from the schedule.
|
|
2837
|
+
* @readonly
|
|
2838
|
+
*/
|
|
2839
|
+
appId?: string | null;
|
|
2840
|
+
/**
|
|
2841
|
+
* List of granted permissions for this event.
|
|
2842
|
+
*
|
|
2843
|
+
* Derived from the schedule and the resources of the the event.
|
|
2844
|
+
* @readonly
|
|
2845
|
+
*/
|
|
2846
|
+
permissions?: Permission$1[];
|
|
2847
|
+
/** Extensions enabling applications or users to save custom data related to the event. */
|
|
2848
|
+
extendedFields?: ExtendedFields$2;
|
|
2849
|
+
/**
|
|
2850
|
+
* The event revision number, which incremented on updates.
|
|
2851
|
+
*
|
|
2852
|
+
* The current revision should be provided on updates to prevent conflicting changes.
|
|
2853
|
+
* @readonly
|
|
2854
|
+
*/
|
|
2855
|
+
revision?: string | null;
|
|
2856
|
+
/**
|
|
2857
|
+
* Date the event was created.
|
|
2858
|
+
* @readonly
|
|
2859
|
+
*/
|
|
2860
|
+
_createdDate?: Date;
|
|
2861
|
+
/**
|
|
2862
|
+
* Date the event was last updated.
|
|
2863
|
+
* @readonly
|
|
2864
|
+
*/
|
|
2865
|
+
_updatedDate?: Date;
|
|
2866
|
+
}
|
|
2867
|
+
declare enum Status$3 {
|
|
2868
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
2869
|
+
/** Event is confirmed. Default value. */
|
|
2870
|
+
CONFIRMED = "CONFIRMED",
|
|
2871
|
+
/** DEPRECATED! AND WILL BE REMOVED SOON */
|
|
2872
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION",
|
|
2873
|
+
/** Event has been cancelled. */
|
|
2874
|
+
CANCELLED = "CANCELLED"
|
|
2875
|
+
}
|
|
2876
|
+
/** A date time with a time zone, having the UTC offset and date determined by the server. */
|
|
2877
|
+
interface ZonedDate$1 {
|
|
2878
|
+
/**
|
|
2879
|
+
* Local date time, in ISO-8601 format.
|
|
2880
|
+
* E.g, "2024-01-30T13:30:00".
|
|
2881
|
+
*
|
|
2882
|
+
* Note: seconds are not supported and ignored.
|
|
2883
|
+
*/
|
|
2884
|
+
localDate?: string | null;
|
|
2885
|
+
/**
|
|
2886
|
+
* The event time zone.
|
|
2887
|
+
* @readonly
|
|
2888
|
+
*/
|
|
2889
|
+
timeZone?: string | null;
|
|
2890
|
+
/**
|
|
2891
|
+
* The UTC date determined by the server.
|
|
2892
|
+
* Not returned for adjusted dates.
|
|
2893
|
+
* @readonly
|
|
2894
|
+
*/
|
|
2895
|
+
utcDate?: Date;
|
|
2896
|
+
}
|
|
2897
|
+
declare enum RecurrenceType {
|
|
2898
|
+
UNKNOWN_RECURRENCE_TYPE = "UNKNOWN_RECURRENCE_TYPE",
|
|
2899
|
+
/** No recurrence, i.e the event is a single event instance. Default. */
|
|
2900
|
+
NONE = "NONE",
|
|
2901
|
+
/** The event is the recurrence master defining the recurrence rule, which is the repeat pattern for the events. */
|
|
2902
|
+
MASTER = "MASTER",
|
|
2903
|
+
/** The event is an instance of a recurring event. Read only. */
|
|
2904
|
+
INSTANCE = "INSTANCE",
|
|
2905
|
+
/** The event is an exceptional instance of a recurring event. Read only. */
|
|
2906
|
+
EXCEPTION = "EXCEPTION"
|
|
2907
|
+
}
|
|
2908
|
+
interface RecurrenceRule {
|
|
2909
|
+
/** The frequency with which the event should be repeated. */
|
|
2910
|
+
frequency?: Frequency;
|
|
2911
|
+
/**
|
|
2912
|
+
* Works together with `frequency` to specify how often the event should be repeated. Default is `1`.
|
|
2913
|
+
* For example, `WEEKLY` frequency and `interval` of `2` means once every two weeks.
|
|
2914
|
+
*/
|
|
2915
|
+
interval?: number | null;
|
|
2916
|
+
/**
|
|
2917
|
+
* The days of the week when the event should be repeated.
|
|
2918
|
+
* Currently, only a single day is supported.
|
|
2919
|
+
*/
|
|
2920
|
+
days?: Day[];
|
|
2921
|
+
/**
|
|
2922
|
+
* The date until which the event should be repeated.
|
|
2923
|
+
* When it is not specified, the event repeats forever.
|
|
2924
|
+
*/
|
|
2925
|
+
until?: ZonedDate$1;
|
|
2926
|
+
/**
|
|
2927
|
+
* Read-only until date adjusted to the Wix Business time zone, or `request.timeZone` if provided.
|
|
2928
|
+
* @readonly
|
|
2929
|
+
*/
|
|
2930
|
+
adjustedUntil?: ZonedDate$1;
|
|
2931
|
+
}
|
|
2932
|
+
declare enum Frequency {
|
|
2933
|
+
UNKNOWN_FREQUENCY = "UNKNOWN_FREQUENCY",
|
|
2934
|
+
/** The event repeats every few weeks. */
|
|
2935
|
+
WEEKLY = "WEEKLY"
|
|
2936
|
+
}
|
|
2937
|
+
declare enum Day {
|
|
2938
|
+
MONDAY = "MONDAY",
|
|
2939
|
+
TUESDAY = "TUESDAY",
|
|
2940
|
+
WEDNESDAY = "WEDNESDAY",
|
|
2941
|
+
THURSDAY = "THURSDAY",
|
|
2942
|
+
FRIDAY = "FRIDAY",
|
|
2943
|
+
SATURDAY = "SATURDAY",
|
|
2944
|
+
SUNDAY = "SUNDAY"
|
|
2945
|
+
}
|
|
2946
|
+
declare enum Transparency {
|
|
2947
|
+
UNKNOWN_TRANSPARENCY = "UNKNOWN_TRANSPARENCY",
|
|
2948
|
+
/** The event block time. Default. */
|
|
2949
|
+
OPAQUE = "OPAQUE",
|
|
2950
|
+
/** The event does not block the time. */
|
|
2951
|
+
TRANSPARENT = "TRANSPARENT"
|
|
2952
|
+
}
|
|
2953
|
+
interface Location$1 {
|
|
2954
|
+
/**
|
|
2955
|
+
* The location ID. Optional.
|
|
2956
|
+
* Currently only supported for locations of type `BUSINESS`, and used to reference the Wix Business Location.
|
|
2957
|
+
*/
|
|
2958
|
+
_id?: string | null;
|
|
2959
|
+
/**
|
|
2960
|
+
* The location type.
|
|
2961
|
+
* The possible values are:
|
|
2962
|
+
* - `"BUSINESS"` event takes place at the business location.
|
|
2963
|
+
* - `"CUSTOMER"` event takes place at the customer location.
|
|
2964
|
+
* - `"CUSTOM"` event takes place at the custom location.
|
|
2965
|
+
*/
|
|
2966
|
+
type?: LocationType$1;
|
|
2967
|
+
/**
|
|
2968
|
+
* The location name. Optional.
|
|
2969
|
+
* Derived from the Wix Business Location if the location is of type `BUSINESS`.
|
|
2970
|
+
*/
|
|
2971
|
+
name?: string | null;
|
|
2972
|
+
/**
|
|
2973
|
+
* The location address. Optional.
|
|
2974
|
+
* Derived from the Wix Business Location if the location is of type `BUSINESS`.
|
|
2975
|
+
*/
|
|
2976
|
+
address?: string | null;
|
|
2977
|
+
}
|
|
2978
|
+
declare enum LocationType$1 {
|
|
2979
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
2980
|
+
/** The event takes place at the business location. */
|
|
2981
|
+
BUSINESS = "BUSINESS",
|
|
2982
|
+
/** The event takes place at the customer location. */
|
|
2983
|
+
CUSTOMER = "CUSTOMER",
|
|
2984
|
+
/** The event takes place at the custom location. */
|
|
2985
|
+
CUSTOM = "CUSTOM"
|
|
2986
|
+
}
|
|
2987
|
+
interface Resource {
|
|
2988
|
+
/** The resource ID. */
|
|
2989
|
+
_id?: string | null;
|
|
2990
|
+
/**
|
|
2991
|
+
* The resource name.
|
|
2992
|
+
* @readonly
|
|
2993
|
+
*/
|
|
2994
|
+
name?: string | null;
|
|
2995
|
+
/**
|
|
2996
|
+
* The resource type.
|
|
2997
|
+
* @readonly
|
|
2998
|
+
*/
|
|
2999
|
+
type?: string | null;
|
|
3000
|
+
/**
|
|
3001
|
+
* Specifies whether the event blocks the resource time.
|
|
3002
|
+
* Default is `OPAQUE`.
|
|
3003
|
+
*/
|
|
3004
|
+
transparency?: Transparency;
|
|
3005
|
+
/** Optional permission role to grant the identities associated with the resource. */
|
|
3006
|
+
permissionRole?: Role$1;
|
|
3007
|
+
}
|
|
3008
|
+
declare enum Role$1 {
|
|
3009
|
+
UNKNOWN_ROLE = "UNKNOWN_ROLE",
|
|
3010
|
+
/** Role grants full write and read access. */
|
|
3011
|
+
WRITER = "WRITER",
|
|
3012
|
+
/** Role grants full read access and permission to edit notes. */
|
|
3013
|
+
COMMENTER = "COMMENTER"
|
|
3014
|
+
}
|
|
3015
|
+
interface Participants {
|
|
3016
|
+
/** The total number of participants. */
|
|
3017
|
+
total?: number | null;
|
|
3018
|
+
/** A full or partial list of the participants. */
|
|
3019
|
+
list?: Participant$1[];
|
|
3020
|
+
/** Whether there are more participants for the event which were not listed. */
|
|
3021
|
+
hasMore?: boolean | null;
|
|
3022
|
+
/**
|
|
3023
|
+
* The participants status.
|
|
3024
|
+
*
|
|
3025
|
+
* The possible values are:
|
|
3026
|
+
* - `"CONFIRMED"` All participants are confirmed.
|
|
3027
|
+
* - `"PENDING_CONFIRMATION"` Some participants are pending confirmation..
|
|
3028
|
+
*/
|
|
3029
|
+
status?: ParticipantsStatus;
|
|
3030
|
+
}
|
|
3031
|
+
interface Participant$1 {
|
|
3032
|
+
/** The participant name. */
|
|
3033
|
+
name?: string | null;
|
|
3034
|
+
/** The participant phone. */
|
|
3035
|
+
phone?: string | null;
|
|
3036
|
+
/** The participant email address. */
|
|
3037
|
+
email?: string | null;
|
|
3038
|
+
/** The ID of the Wix contact. */
|
|
3039
|
+
contactId?: string | null;
|
|
3040
|
+
}
|
|
3041
|
+
declare enum ParticipantsStatus {
|
|
3042
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
3043
|
+
/** All participants are confirmed. */
|
|
3044
|
+
CONFIRMED = "CONFIRMED",
|
|
3045
|
+
/** Some participants are pending confirmation. */
|
|
3046
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
3047
|
+
}
|
|
3048
|
+
interface ConferencingDetails$1 {
|
|
3049
|
+
/** World known conference type, such as Zoom. */
|
|
3050
|
+
type?: Type$1;
|
|
3051
|
+
/** URL used by the host to start the conference. */
|
|
3052
|
+
hostUrl?: string | null;
|
|
3053
|
+
/** URL used by a guest to join the conference. */
|
|
3054
|
+
guestUrl?: string | null;
|
|
3055
|
+
/** Optional conference password. */
|
|
3056
|
+
password?: string | null;
|
|
3057
|
+
/** Optional conference ID in an external system. */
|
|
3058
|
+
externalId?: string | null;
|
|
3059
|
+
}
|
|
3060
|
+
declare enum Type$1 {
|
|
3061
|
+
UNKNOWN_TYPE = "UNKNOWN_TYPE",
|
|
3062
|
+
ZOOM = "ZOOM",
|
|
3063
|
+
CUSTOM = "CUSTOM"
|
|
3064
|
+
}
|
|
3065
|
+
declare enum Field {
|
|
3066
|
+
UNKNOWN_FIELD = "UNKNOWN_FIELD",
|
|
3067
|
+
/** The title is inherited from the schedule or the recurring event. */
|
|
3068
|
+
TITLE = "TITLE",
|
|
3069
|
+
/** The time zone is inherited from the schedule or the recurring event. */
|
|
3070
|
+
TIME_ZONE = "TIME_ZONE",
|
|
3071
|
+
/** The time is inherited from the recurring event. */
|
|
3072
|
+
TIME = "TIME",
|
|
3073
|
+
/** The location is inherited from the schedule or the recurring event. */
|
|
3074
|
+
LOCATION = "LOCATION",
|
|
3075
|
+
/** The resources are inherited from the recurring event. */
|
|
3076
|
+
RESOURCES = "RESOURCES",
|
|
3077
|
+
/** The capacity is inherited from the schedule or the recurring event. */
|
|
3078
|
+
CAPACITY = "CAPACITY",
|
|
3079
|
+
/** The participants are inherited from the recurring event. */
|
|
3080
|
+
PARTICIPANTS = "PARTICIPANTS",
|
|
3081
|
+
/** The conferencing details are inherited from the schedule or the recurring event. */
|
|
3082
|
+
CONFERENCING_DETAILS = "CONFERENCING_DETAILS"
|
|
3083
|
+
}
|
|
3084
|
+
interface Permission$1 {
|
|
3085
|
+
/** The identity granted the permission. */
|
|
3086
|
+
identity?: CommonIdentificationData$1;
|
|
3087
|
+
/**
|
|
3088
|
+
* The permission role.
|
|
3089
|
+
*
|
|
3090
|
+
* The possible values are:
|
|
3091
|
+
* - `"WRITER"` Role grants full write and read access.
|
|
3092
|
+
* - `"COMMENTER"` Role grants full read access and permission to edit notes.
|
|
3093
|
+
*/
|
|
3094
|
+
role?: Role$1;
|
|
3095
|
+
}
|
|
3096
|
+
interface CommonIdentificationData$1 extends CommonIdentificationDataIdOneOf$1 {
|
|
3097
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3098
|
+
wixUserId?: string;
|
|
3099
|
+
}
|
|
3100
|
+
/** @oneof */
|
|
3101
|
+
interface CommonIdentificationDataIdOneOf$1 {
|
|
3102
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3103
|
+
wixUserId?: string;
|
|
3104
|
+
}
|
|
3105
|
+
declare enum IdentityType$1 {
|
|
3106
|
+
UNKNOWN = "UNKNOWN",
|
|
3107
|
+
WIX_USER = "WIX_USER"
|
|
3108
|
+
}
|
|
3109
|
+
interface ExtendedFields$2 {
|
|
3110
|
+
/**
|
|
3111
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
3112
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
3113
|
+
*
|
|
3114
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
3115
|
+
*
|
|
3116
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
3117
|
+
*/
|
|
3118
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
3119
|
+
}
|
|
3120
|
+
interface EventRemoved {
|
|
3121
|
+
/** The event which was removed from the view. */
|
|
3122
|
+
event?: Event;
|
|
3123
|
+
/** Optionally, the previous event. */
|
|
3124
|
+
previousEvent?: Event;
|
|
3125
|
+
}
|
|
3126
|
+
interface EventsViewExtended {
|
|
3127
|
+
/** The extended events view end date. */
|
|
3128
|
+
extendedEndDate?: Date;
|
|
3129
|
+
}
|
|
3130
|
+
interface GetEventsViewRequest {
|
|
3131
|
+
}
|
|
3132
|
+
interface GetEventsViewResponse {
|
|
3133
|
+
/** The events view. */
|
|
3134
|
+
eventsView?: EventsView;
|
|
3135
|
+
}
|
|
3136
|
+
interface ExtendEventsViewRequest {
|
|
3137
|
+
/**
|
|
3138
|
+
* The number of days the view lasts into the future.
|
|
3139
|
+
* Must be greater than the current value.
|
|
3140
|
+
*/
|
|
3141
|
+
futureDurationInDays?: number | null;
|
|
3142
|
+
}
|
|
3143
|
+
interface ExtendEventsViewResponse {
|
|
3144
|
+
/** The updated events view. */
|
|
3145
|
+
eventsView?: EventsView;
|
|
3146
|
+
}
|
|
3147
|
+
interface DomainEvent$3 extends DomainEventBodyOneOf$3 {
|
|
3148
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
3149
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
3150
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
3151
|
+
actionEvent?: ActionEvent$3;
|
|
3152
|
+
/**
|
|
3153
|
+
* Unique event ID.
|
|
3154
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3155
|
+
*/
|
|
3156
|
+
_id?: string;
|
|
3157
|
+
/**
|
|
3158
|
+
* Assumes actions are also always typed to an entity_type
|
|
3159
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3160
|
+
*/
|
|
3161
|
+
entityFqdn?: string;
|
|
3162
|
+
/**
|
|
3163
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3164
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3165
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3166
|
+
*/
|
|
3167
|
+
slug?: string;
|
|
3168
|
+
/** ID of the entity associated with the event. */
|
|
3169
|
+
entityId?: string;
|
|
3170
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3171
|
+
eventTime?: Date;
|
|
3172
|
+
/**
|
|
3173
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3174
|
+
* (for example, GDPR).
|
|
3175
|
+
*/
|
|
3176
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3177
|
+
/** If present, indicates the action that triggered the event. */
|
|
3178
|
+
originatedFrom?: string | null;
|
|
3179
|
+
/**
|
|
3180
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
3181
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
3182
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
3183
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
3184
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
3185
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
3186
|
+
*/
|
|
3187
|
+
entityEventSequence?: string | null;
|
|
3188
|
+
}
|
|
3189
|
+
/** @oneof */
|
|
3190
|
+
interface DomainEventBodyOneOf$3 {
|
|
3191
|
+
createdEvent?: EntityCreatedEvent$3;
|
|
3192
|
+
updatedEvent?: EntityUpdatedEvent$3;
|
|
3193
|
+
deletedEvent?: EntityDeletedEvent$3;
|
|
3194
|
+
actionEvent?: ActionEvent$3;
|
|
3195
|
+
}
|
|
3196
|
+
interface EntityCreatedEvent$3 {
|
|
3197
|
+
entity?: string;
|
|
3198
|
+
}
|
|
3199
|
+
interface RestoreInfo$3 {
|
|
3200
|
+
deletedDate?: Date;
|
|
3201
|
+
}
|
|
3202
|
+
interface EntityUpdatedEvent$3 {
|
|
3203
|
+
/**
|
|
3204
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3205
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3206
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3207
|
+
*/
|
|
3208
|
+
currentEntity?: string;
|
|
3209
|
+
}
|
|
3210
|
+
interface EntityDeletedEvent$3 {
|
|
3211
|
+
/** Entity that was deleted */
|
|
3212
|
+
deletedEntity?: string | null;
|
|
3213
|
+
}
|
|
3214
|
+
interface ActionEvent$3 {
|
|
3215
|
+
body?: string;
|
|
3216
|
+
}
|
|
3217
|
+
interface Empty$3 {
|
|
3218
|
+
}
|
|
3219
|
+
interface MessageEnvelope$3 {
|
|
3220
|
+
/** App instance ID. */
|
|
3221
|
+
instanceId?: string | null;
|
|
3222
|
+
/** Event type. */
|
|
3223
|
+
eventType?: string;
|
|
3224
|
+
/** The identification type and identity data. */
|
|
3225
|
+
identity?: IdentificationData$3;
|
|
3226
|
+
/** Stringify payload. */
|
|
3227
|
+
data?: string;
|
|
3228
|
+
}
|
|
3229
|
+
interface IdentificationData$3 extends IdentificationDataIdOneOf$3 {
|
|
3230
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
3231
|
+
anonymousVisitorId?: string;
|
|
3232
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
3233
|
+
memberId?: string;
|
|
3234
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3235
|
+
wixUserId?: string;
|
|
3236
|
+
/** ID of an app. */
|
|
3237
|
+
appId?: string;
|
|
3238
|
+
/** @readonly */
|
|
3239
|
+
identityType?: WebhookIdentityType$3;
|
|
3240
|
+
}
|
|
3241
|
+
/** @oneof */
|
|
3242
|
+
interface IdentificationDataIdOneOf$3 {
|
|
3243
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
3244
|
+
anonymousVisitorId?: string;
|
|
3245
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
3246
|
+
memberId?: string;
|
|
3247
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3248
|
+
wixUserId?: string;
|
|
3249
|
+
/** ID of an app. */
|
|
3250
|
+
appId?: string;
|
|
3251
|
+
}
|
|
3252
|
+
declare enum WebhookIdentityType$3 {
|
|
3253
|
+
UNKNOWN = "UNKNOWN",
|
|
3254
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3255
|
+
MEMBER = "MEMBER",
|
|
3256
|
+
WIX_USER = "WIX_USER",
|
|
3257
|
+
APP = "APP"
|
|
3258
|
+
}
|
|
3259
|
+
interface BaseEventMetadata$3 {
|
|
3260
|
+
/** App instance ID. */
|
|
3261
|
+
instanceId?: string | null;
|
|
3262
|
+
/** Event type. */
|
|
3263
|
+
eventType?: string;
|
|
3264
|
+
/** The identification type and identity data. */
|
|
3265
|
+
identity?: IdentificationData$3;
|
|
3266
|
+
}
|
|
3267
|
+
interface EventMetadata$3 extends BaseEventMetadata$3 {
|
|
3268
|
+
/**
|
|
3269
|
+
* Unique event ID.
|
|
3270
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3271
|
+
*/
|
|
3272
|
+
_id?: string;
|
|
3273
|
+
/**
|
|
3274
|
+
* Assumes actions are also always typed to an entity_type
|
|
3275
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3276
|
+
*/
|
|
3277
|
+
entityFqdn?: string;
|
|
3278
|
+
/**
|
|
3279
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3280
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3281
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3282
|
+
*/
|
|
3283
|
+
slug?: string;
|
|
3284
|
+
/** ID of the entity associated with the event. */
|
|
3285
|
+
entityId?: string;
|
|
3286
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3287
|
+
eventTime?: Date;
|
|
3288
|
+
/**
|
|
3289
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3290
|
+
* (for example, GDPR).
|
|
3291
|
+
*/
|
|
3292
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3293
|
+
/** If present, indicates the action that triggered the event. */
|
|
3294
|
+
originatedFrom?: string | null;
|
|
3295
|
+
/**
|
|
3296
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
3297
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
3298
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
3299
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
3300
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
3301
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
3302
|
+
*/
|
|
3303
|
+
entityEventSequence?: string | null;
|
|
3304
|
+
}
|
|
3305
|
+
interface EventsViewProjectionUpdatedEnvelope {
|
|
3306
|
+
data: EventsViewProjectionUpdated;
|
|
3307
|
+
metadata: EventMetadata$3;
|
|
3308
|
+
}
|
|
3309
|
+
interface EventsViewExtendedEnvelope {
|
|
3310
|
+
data: EventsViewExtended;
|
|
3311
|
+
metadata: EventMetadata$3;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
declare function getEventsView$1(httpClient: HttpClient): GetEventsViewSignature;
|
|
3315
|
+
interface GetEventsViewSignature {
|
|
3316
|
+
/**
|
|
3317
|
+
* Retrieves the events view information.
|
|
3318
|
+
* E.g. the current view end date, or the future duration in days the view should strive for.
|
|
3319
|
+
*/
|
|
3320
|
+
(): Promise<GetEventsViewResponse>;
|
|
3321
|
+
}
|
|
3322
|
+
declare const onEventsViewProjectionUpdated$1: EventDefinition$5<EventsViewProjectionUpdatedEnvelope, "wix.calendar.v3.events_view_projection_updated">;
|
|
3323
|
+
declare const onEventsViewExtended$1: EventDefinition$5<EventsViewExtendedEnvelope, "wix.calendar.v3.events_view_extended">;
|
|
3324
|
+
|
|
3325
|
+
type EventDefinition$3<Payload = unknown, Type extends string = string> = {
|
|
3326
|
+
__type: 'event-definition';
|
|
3327
|
+
type: Type;
|
|
3328
|
+
isDomainEvent?: boolean;
|
|
3329
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3330
|
+
__payload: Payload;
|
|
3331
|
+
};
|
|
3332
|
+
declare function EventDefinition$3<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$3<Payload, Type>;
|
|
3333
|
+
type EventHandler$3<T extends EventDefinition$3> = (payload: T['__payload']) => void | Promise<void>;
|
|
3334
|
+
type BuildEventDefinition$3<T extends EventDefinition$3<any, string>> = (handler: EventHandler$3<T>) => void;
|
|
3335
|
+
|
|
3336
|
+
declare global {
|
|
3337
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3338
|
+
interface SymbolConstructor {
|
|
3339
|
+
readonly observable: symbol;
|
|
3340
|
+
}
|
|
3341
|
+
}
|
|
3342
|
+
|
|
3343
|
+
declare function createEventModule$3<T extends EventDefinition$3<any, string>>(eventDefinition: T): BuildEventDefinition$3<T> & T;
|
|
3344
|
+
|
|
3345
|
+
declare const getEventsView: MaybeContext<BuildRESTFunction<typeof getEventsView$1> & typeof getEventsView$1>;
|
|
3346
|
+
|
|
3347
|
+
type _publicOnEventsViewProjectionUpdatedType = typeof onEventsViewProjectionUpdated$1;
|
|
3348
|
+
/** */
|
|
3349
|
+
declare const onEventsViewProjectionUpdated: ReturnType<typeof createEventModule$3<_publicOnEventsViewProjectionUpdatedType>>;
|
|
3350
|
+
|
|
3351
|
+
type _publicOnEventsViewExtendedType = typeof onEventsViewExtended$1;
|
|
3352
|
+
/** */
|
|
3353
|
+
declare const onEventsViewExtended: ReturnType<typeof createEventModule$3<_publicOnEventsViewExtendedType>>;
|
|
3354
|
+
|
|
3355
|
+
type index_d$3_Day = Day;
|
|
3356
|
+
declare const index_d$3_Day: typeof Day;
|
|
3357
|
+
type index_d$3_Event = Event;
|
|
3358
|
+
type index_d$3_EventAddedOrUpdated = EventAddedOrUpdated;
|
|
3359
|
+
type index_d$3_EventRemoved = EventRemoved;
|
|
3360
|
+
type index_d$3_EventsView = EventsView;
|
|
3361
|
+
type index_d$3_EventsViewExtended = EventsViewExtended;
|
|
3362
|
+
type index_d$3_EventsViewExtendedEnvelope = EventsViewExtendedEnvelope;
|
|
3363
|
+
type index_d$3_EventsViewProjectionUpdated = EventsViewProjectionUpdated;
|
|
3364
|
+
type index_d$3_EventsViewProjectionUpdatedEnvelope = EventsViewProjectionUpdatedEnvelope;
|
|
3365
|
+
type index_d$3_EventsViewProjectionUpdatedTypeOneOf = EventsViewProjectionUpdatedTypeOneOf;
|
|
3366
|
+
type index_d$3_ExtendEventsViewRequest = ExtendEventsViewRequest;
|
|
3367
|
+
type index_d$3_ExtendEventsViewResponse = ExtendEventsViewResponse;
|
|
3368
|
+
type index_d$3_Field = Field;
|
|
3369
|
+
declare const index_d$3_Field: typeof Field;
|
|
3370
|
+
type index_d$3_Frequency = Frequency;
|
|
3371
|
+
declare const index_d$3_Frequency: typeof Frequency;
|
|
3372
|
+
type index_d$3_GetEventsViewRequest = GetEventsViewRequest;
|
|
3373
|
+
type index_d$3_GetEventsViewResponse = GetEventsViewResponse;
|
|
3374
|
+
type index_d$3_Participants = Participants;
|
|
3375
|
+
type index_d$3_ParticipantsStatus = ParticipantsStatus;
|
|
3376
|
+
declare const index_d$3_ParticipantsStatus: typeof ParticipantsStatus;
|
|
3377
|
+
type index_d$3_RecurrenceRule = RecurrenceRule;
|
|
3378
|
+
type index_d$3_RecurrenceType = RecurrenceType;
|
|
3379
|
+
declare const index_d$3_RecurrenceType: typeof RecurrenceType;
|
|
3380
|
+
type index_d$3_Resource = Resource;
|
|
3381
|
+
type index_d$3_Transparency = Transparency;
|
|
3382
|
+
declare const index_d$3_Transparency: typeof Transparency;
|
|
3383
|
+
type index_d$3__publicOnEventsViewExtendedType = _publicOnEventsViewExtendedType;
|
|
3384
|
+
type index_d$3__publicOnEventsViewProjectionUpdatedType = _publicOnEventsViewProjectionUpdatedType;
|
|
3385
|
+
declare const index_d$3_getEventsView: typeof getEventsView;
|
|
3386
|
+
declare const index_d$3_onEventsViewExtended: typeof onEventsViewExtended;
|
|
3387
|
+
declare const index_d$3_onEventsViewProjectionUpdated: typeof onEventsViewProjectionUpdated;
|
|
3388
|
+
declare namespace index_d$3 {
|
|
3389
|
+
export { type ActionEvent$3 as ActionEvent, type BaseEventMetadata$3 as BaseEventMetadata, type CommonIdentificationData$1 as CommonIdentificationData, type CommonIdentificationDataIdOneOf$1 as CommonIdentificationDataIdOneOf, type ConferencingDetails$1 as ConferencingDetails, index_d$3_Day as Day, type DomainEvent$3 as DomainEvent, type DomainEventBodyOneOf$3 as DomainEventBodyOneOf, type Empty$3 as Empty, type EntityCreatedEvent$3 as EntityCreatedEvent, type EntityDeletedEvent$3 as EntityDeletedEvent, type EntityUpdatedEvent$3 as EntityUpdatedEvent, type index_d$3_Event as Event, type index_d$3_EventAddedOrUpdated as EventAddedOrUpdated, type EventMetadata$3 as EventMetadata, type index_d$3_EventRemoved as EventRemoved, type index_d$3_EventsView as EventsView, type index_d$3_EventsViewExtended as EventsViewExtended, type index_d$3_EventsViewExtendedEnvelope as EventsViewExtendedEnvelope, type index_d$3_EventsViewProjectionUpdated as EventsViewProjectionUpdated, type index_d$3_EventsViewProjectionUpdatedEnvelope as EventsViewProjectionUpdatedEnvelope, type index_d$3_EventsViewProjectionUpdatedTypeOneOf as EventsViewProjectionUpdatedTypeOneOf, type index_d$3_ExtendEventsViewRequest as ExtendEventsViewRequest, type index_d$3_ExtendEventsViewResponse as ExtendEventsViewResponse, type ExtendedFields$2 as ExtendedFields, index_d$3_Field as Field, index_d$3_Frequency as Frequency, type index_d$3_GetEventsViewRequest as GetEventsViewRequest, type index_d$3_GetEventsViewResponse as GetEventsViewResponse, type IdentificationData$3 as IdentificationData, type IdentificationDataIdOneOf$3 as IdentificationDataIdOneOf, IdentityType$1 as IdentityType, type Location$1 as Location, LocationType$1 as LocationType, type MessageEnvelope$3 as MessageEnvelope, type Participant$1 as Participant, type index_d$3_Participants as Participants, index_d$3_ParticipantsStatus as ParticipantsStatus, type Permission$1 as Permission, type index_d$3_RecurrenceRule as RecurrenceRule, index_d$3_RecurrenceType as RecurrenceType, type index_d$3_Resource as Resource, type RestoreInfo$3 as RestoreInfo, Role$1 as Role, Status$3 as Status, index_d$3_Transparency as Transparency, Type$1 as Type, WebhookIdentityType$3 as WebhookIdentityType, type ZonedDate$1 as ZonedDate, type index_d$3__publicOnEventsViewExtendedType as _publicOnEventsViewExtendedType, type index_d$3__publicOnEventsViewProjectionUpdatedType as _publicOnEventsViewProjectionUpdatedType, index_d$3_getEventsView as getEventsView, index_d$3_onEventsViewExtended as onEventsViewExtended, index_d$3_onEventsViewProjectionUpdated as onEventsViewProjectionUpdated, onEventsViewExtended$1 as publicOnEventsViewExtended, onEventsViewProjectionUpdated$1 as publicOnEventsViewProjectionUpdated };
|
|
3390
|
+
}
|
|
3391
|
+
|
|
3392
|
+
interface Participation extends ParticipationParticipatedItemOneOf {
|
|
3393
|
+
/** The ID of the schedule that the participant is participating in. */
|
|
3394
|
+
scheduleId?: string | null;
|
|
3395
|
+
/** The ID of the specific event that the participant is participating in. */
|
|
3396
|
+
eventId?: string | null;
|
|
3397
|
+
/**
|
|
3398
|
+
* The participation ID.
|
|
3399
|
+
* @readonly
|
|
3400
|
+
*/
|
|
3401
|
+
_id?: string | null;
|
|
3402
|
+
/** Optional external ID. */
|
|
3403
|
+
externalId?: string | null;
|
|
3404
|
+
/** The participant info. */
|
|
3405
|
+
participant?: Participant;
|
|
3406
|
+
/** Party size of the individual or group. */
|
|
3407
|
+
partySize?: number | null;
|
|
3408
|
+
/**
|
|
3409
|
+
* Participation status. Required.
|
|
3410
|
+
* One of:
|
|
3411
|
+
* - `"CONFIRMED"` Participation is confirmed. Default value.
|
|
3412
|
+
* - `"PENDING_CONFIRMATION"` Participation is pending confirmation.
|
|
3413
|
+
*/
|
|
3414
|
+
status?: Status$2;
|
|
3415
|
+
/**
|
|
3416
|
+
* Optional ID of the Wix app owning the participation, as derived from the schedule.
|
|
3417
|
+
* @readonly
|
|
3418
|
+
*/
|
|
3419
|
+
appId?: string | null;
|
|
3420
|
+
/**
|
|
3421
|
+
* The participation revision number, which incremented on updates.
|
|
3422
|
+
* The current revision should be provided on updates to prevent conflicting changes.
|
|
3423
|
+
* @readonly
|
|
3424
|
+
*/
|
|
3425
|
+
revision?: string | null;
|
|
3426
|
+
/**
|
|
3427
|
+
* Date the participation was created.
|
|
3428
|
+
* @readonly
|
|
3429
|
+
*/
|
|
3430
|
+
_createdDate?: Date;
|
|
3431
|
+
/**
|
|
3432
|
+
* Date the participation was last updated.
|
|
3433
|
+
* @readonly
|
|
3434
|
+
*/
|
|
3435
|
+
_updatedDate?: Date;
|
|
3436
|
+
/** Extensions enabling applications or users to save custom data. */
|
|
3437
|
+
extendedFields?: ExtendedFields$1;
|
|
3438
|
+
}
|
|
3439
|
+
/** @oneof */
|
|
3440
|
+
interface ParticipationParticipatedItemOneOf {
|
|
3441
|
+
/** The ID of the schedule that the participant is participating in. */
|
|
3442
|
+
scheduleId?: string | null;
|
|
3443
|
+
/** The ID of the specific event that the participant is participating in. */
|
|
3444
|
+
eventId?: string | null;
|
|
3445
|
+
}
|
|
3446
|
+
interface Participant {
|
|
3447
|
+
/** The participant's name. */
|
|
3448
|
+
name?: string | null;
|
|
3449
|
+
/** The participant's phone. */
|
|
3450
|
+
phone?: string | null;
|
|
3451
|
+
/** The participant's email address. */
|
|
3452
|
+
email?: string | null;
|
|
3453
|
+
/** The ID of the Wix Contact. */
|
|
3454
|
+
contactId?: string | null;
|
|
3455
|
+
}
|
|
3456
|
+
declare enum Status$2 {
|
|
3457
|
+
UNKNOWN_STATUS = "UNKNOWN_STATUS",
|
|
3458
|
+
/** Participation is confirmed. */
|
|
3459
|
+
CONFIRMED = "CONFIRMED",
|
|
3460
|
+
/** Participation is pending confirmation. */
|
|
3461
|
+
PENDING_CONFIRMATION = "PENDING_CONFIRMATION"
|
|
3462
|
+
}
|
|
3463
|
+
interface ExtendedFields$1 {
|
|
3464
|
+
/**
|
|
3465
|
+
* Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
|
|
3466
|
+
* The value of each key is structured according to the schema defined when the extended fields were configured.
|
|
3467
|
+
*
|
|
3468
|
+
* You can only access fields for which you have the appropriate permissions.
|
|
3469
|
+
*
|
|
3470
|
+
* Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
|
|
3471
|
+
*/
|
|
3472
|
+
namespaces?: Record<string, Record<string, any>>;
|
|
3473
|
+
}
|
|
3474
|
+
interface GetParticipationRequest {
|
|
3475
|
+
/** The participation ID. */
|
|
3476
|
+
participationId: string | null;
|
|
3477
|
+
}
|
|
3478
|
+
interface GetParticipationResponse {
|
|
3479
|
+
/** The participation. */
|
|
3480
|
+
participation?: Participation;
|
|
3481
|
+
}
|
|
3482
|
+
interface QueryParticipationsRequest {
|
|
3483
|
+
/** Query containing filters and paging. */
|
|
3484
|
+
query?: CursorQuery$1;
|
|
3485
|
+
}
|
|
3486
|
+
interface CursorQuery$1 extends CursorQueryPagingMethodOneOf$1 {
|
|
3487
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
3488
|
+
cursorPaging?: CursorPaging$1;
|
|
3489
|
+
/**
|
|
3490
|
+
* Filter object in the following format:
|
|
3491
|
+
* `"filter" : {
|
|
3492
|
+
* "fieldName1": "value1",
|
|
3493
|
+
* "fieldName2":{"$operator":"value2"}
|
|
3494
|
+
* }`
|
|
3495
|
+
* Example of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`
|
|
3496
|
+
*/
|
|
3497
|
+
filter?: Record<string, any> | null;
|
|
3498
|
+
}
|
|
3499
|
+
/** @oneof */
|
|
3500
|
+
interface CursorQueryPagingMethodOneOf$1 {
|
|
3501
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
3502
|
+
cursorPaging?: CursorPaging$1;
|
|
3503
|
+
}
|
|
3504
|
+
interface CursorPaging$1 {
|
|
3505
|
+
/** Number of participations to load. */
|
|
3506
|
+
limit?: number | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* Pointer to the next or previous page in the list of results.
|
|
3509
|
+
*
|
|
3510
|
+
* You can get the relevant cursor token
|
|
3511
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
3512
|
+
* Not relevant for the first request.
|
|
3513
|
+
*/
|
|
3514
|
+
cursor?: string | null;
|
|
3515
|
+
}
|
|
3516
|
+
interface QueryParticipationsResponse {
|
|
3517
|
+
/** The participations matching the provided query. */
|
|
3518
|
+
participations?: Participation[];
|
|
3519
|
+
/** Paging metadata. */
|
|
3520
|
+
pagingMetadata?: CursorPagingMetadata$1;
|
|
3521
|
+
}
|
|
3522
|
+
interface CursorPagingMetadata$1 {
|
|
3523
|
+
/** Number of items returned in the response. */
|
|
3524
|
+
count?: number | null;
|
|
3525
|
+
/** Offset that was requested. */
|
|
3526
|
+
cursors?: Cursors$1;
|
|
3527
|
+
/**
|
|
3528
|
+
* Indicates if there are more results after the current page.
|
|
3529
|
+
* If `true`, another page of results can be retrieved.
|
|
3530
|
+
* If `false`, this is the last page.
|
|
3531
|
+
*/
|
|
3532
|
+
hasNext?: boolean | null;
|
|
3533
|
+
}
|
|
3534
|
+
interface Cursors$1 {
|
|
3535
|
+
/** Cursor pointing to next page in the list of results. */
|
|
3536
|
+
next?: string | null;
|
|
3537
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
3538
|
+
prev?: string | null;
|
|
3539
|
+
}
|
|
3540
|
+
interface CreateParticipationRequest {
|
|
3541
|
+
/** The participation to create. */
|
|
3542
|
+
participation: Participation;
|
|
3543
|
+
/** Optional idempotency key to ensure that the participation is created only once, even if the same request is issued multiple times. */
|
|
3544
|
+
idempotencyKey?: string | null;
|
|
3545
|
+
}
|
|
3546
|
+
interface CreateParticipationResponse {
|
|
3547
|
+
/** The created participation. */
|
|
3548
|
+
participation?: Participation;
|
|
3549
|
+
}
|
|
3550
|
+
interface UpdateParticipationRequest {
|
|
3551
|
+
/** The participation to update. */
|
|
3552
|
+
participation: Participation;
|
|
3553
|
+
}
|
|
3554
|
+
interface UpdateParticipationResponse {
|
|
3555
|
+
/** The updated participation. */
|
|
3556
|
+
participation?: Participation;
|
|
3557
|
+
}
|
|
3558
|
+
interface ParticipationUpdatedWithMetadata {
|
|
3559
|
+
/** The updated participation. */
|
|
3560
|
+
participation?: Participation;
|
|
3561
|
+
}
|
|
3562
|
+
interface DeleteParticipationRequest {
|
|
3563
|
+
/** The ID of participation to delete. */
|
|
3564
|
+
participationId: string | null;
|
|
3565
|
+
}
|
|
3566
|
+
interface DeleteParticipationResponse {
|
|
3567
|
+
}
|
|
3568
|
+
interface DomainEvent$2 extends DomainEventBodyOneOf$2 {
|
|
3569
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
3570
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
3571
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
3572
|
+
actionEvent?: ActionEvent$2;
|
|
3573
|
+
/**
|
|
3574
|
+
* Unique event ID.
|
|
3575
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3576
|
+
*/
|
|
3577
|
+
_id?: string;
|
|
3578
|
+
/**
|
|
3579
|
+
* Assumes actions are also always typed to an entity_type
|
|
3580
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3581
|
+
*/
|
|
3582
|
+
entityFqdn?: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3585
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3586
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3587
|
+
*/
|
|
3588
|
+
slug?: string;
|
|
3589
|
+
/** ID of the entity associated with the event. */
|
|
3590
|
+
entityId?: string;
|
|
3591
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3592
|
+
eventTime?: Date;
|
|
3593
|
+
/**
|
|
3594
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3595
|
+
* (for example, GDPR).
|
|
3596
|
+
*/
|
|
3597
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3598
|
+
/** If present, indicates the action that triggered the event. */
|
|
3599
|
+
originatedFrom?: string | null;
|
|
3600
|
+
/**
|
|
3601
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
3602
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
3603
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
3604
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
3605
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
3606
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
3607
|
+
*/
|
|
3608
|
+
entityEventSequence?: string | null;
|
|
3609
|
+
}
|
|
3610
|
+
/** @oneof */
|
|
3611
|
+
interface DomainEventBodyOneOf$2 {
|
|
3612
|
+
createdEvent?: EntityCreatedEvent$2;
|
|
3613
|
+
updatedEvent?: EntityUpdatedEvent$2;
|
|
3614
|
+
deletedEvent?: EntityDeletedEvent$2;
|
|
3615
|
+
actionEvent?: ActionEvent$2;
|
|
3616
|
+
}
|
|
3617
|
+
interface EntityCreatedEvent$2 {
|
|
3618
|
+
entity?: string;
|
|
3619
|
+
}
|
|
3620
|
+
interface RestoreInfo$2 {
|
|
3621
|
+
deletedDate?: Date;
|
|
3622
|
+
}
|
|
3623
|
+
interface EntityUpdatedEvent$2 {
|
|
3624
|
+
/**
|
|
3625
|
+
* Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
|
|
3626
|
+
* This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
|
|
3627
|
+
* We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
|
|
3628
|
+
*/
|
|
3629
|
+
currentEntity?: string;
|
|
3630
|
+
}
|
|
3631
|
+
interface EntityDeletedEvent$2 {
|
|
3632
|
+
/** Entity that was deleted */
|
|
3633
|
+
deletedEntity?: string | null;
|
|
3634
|
+
}
|
|
3635
|
+
interface ActionEvent$2 {
|
|
3636
|
+
body?: string;
|
|
3637
|
+
}
|
|
3638
|
+
interface Empty$2 {
|
|
3639
|
+
}
|
|
3640
|
+
interface SumParticipationsPartySizeByScheduleIdRequest {
|
|
3641
|
+
/** The schedule IDs. */
|
|
3642
|
+
scheduleIds?: string[] | null;
|
|
3643
|
+
}
|
|
3644
|
+
interface SumParticipationsPartySizeByScheduleIdResponse {
|
|
3645
|
+
/** The sum of party size by schedule ID. */
|
|
3646
|
+
partySizeSumByScheduleId?: PartySizeSumByScheduleId[];
|
|
3647
|
+
}
|
|
3648
|
+
interface PartySizeSumByScheduleId {
|
|
3649
|
+
/** The ID of the schedule. */
|
|
3650
|
+
scheduleId?: string | null;
|
|
3651
|
+
/** The sum of the participations party size. */
|
|
3652
|
+
partySizeSum?: number | null;
|
|
3653
|
+
}
|
|
3654
|
+
interface MessageEnvelope$2 {
|
|
3655
|
+
/** App instance ID. */
|
|
3656
|
+
instanceId?: string | null;
|
|
3657
|
+
/** Event type. */
|
|
3658
|
+
eventType?: string;
|
|
3659
|
+
/** The identification type and identity data. */
|
|
3660
|
+
identity?: IdentificationData$2;
|
|
3661
|
+
/** Stringify payload. */
|
|
3662
|
+
data?: string;
|
|
3663
|
+
}
|
|
3664
|
+
interface IdentificationData$2 extends IdentificationDataIdOneOf$2 {
|
|
3665
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
3666
|
+
anonymousVisitorId?: string;
|
|
3667
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
3668
|
+
memberId?: string;
|
|
3669
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3670
|
+
wixUserId?: string;
|
|
3671
|
+
/** ID of an app. */
|
|
3672
|
+
appId?: string;
|
|
3673
|
+
/** @readonly */
|
|
3674
|
+
identityType?: WebhookIdentityType$2;
|
|
3675
|
+
}
|
|
3676
|
+
/** @oneof */
|
|
3677
|
+
interface IdentificationDataIdOneOf$2 {
|
|
3678
|
+
/** ID of a site visitor that has not logged in to the site. */
|
|
3679
|
+
anonymousVisitorId?: string;
|
|
3680
|
+
/** ID of a site visitor that has logged in to the site. */
|
|
3681
|
+
memberId?: string;
|
|
3682
|
+
/** ID of a Wix user (site owner, contributor, etc.). */
|
|
3683
|
+
wixUserId?: string;
|
|
3684
|
+
/** ID of an app. */
|
|
3685
|
+
appId?: string;
|
|
3686
|
+
}
|
|
3687
|
+
declare enum WebhookIdentityType$2 {
|
|
3688
|
+
UNKNOWN = "UNKNOWN",
|
|
3689
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
3690
|
+
MEMBER = "MEMBER",
|
|
3691
|
+
WIX_USER = "WIX_USER",
|
|
3692
|
+
APP = "APP"
|
|
3693
|
+
}
|
|
3694
|
+
interface ParticipationNonNullableFields {
|
|
3695
|
+
status: Status$2;
|
|
3696
|
+
}
|
|
3697
|
+
interface GetParticipationResponseNonNullableFields {
|
|
3698
|
+
participation?: ParticipationNonNullableFields;
|
|
3699
|
+
}
|
|
3700
|
+
interface QueryParticipationsResponseNonNullableFields {
|
|
3701
|
+
participations: ParticipationNonNullableFields[];
|
|
3702
|
+
}
|
|
3703
|
+
interface CreateParticipationResponseNonNullableFields {
|
|
3704
|
+
participation?: ParticipationNonNullableFields;
|
|
3705
|
+
}
|
|
3706
|
+
interface UpdateParticipationResponseNonNullableFields {
|
|
3707
|
+
participation?: ParticipationNonNullableFields;
|
|
3708
|
+
}
|
|
3709
|
+
interface BaseEventMetadata$2 {
|
|
3710
|
+
/** App instance ID. */
|
|
3711
|
+
instanceId?: string | null;
|
|
3712
|
+
/** Event type. */
|
|
3713
|
+
eventType?: string;
|
|
3714
|
+
/** The identification type and identity data. */
|
|
3715
|
+
identity?: IdentificationData$2;
|
|
3716
|
+
}
|
|
3717
|
+
interface EventMetadata$2 extends BaseEventMetadata$2 {
|
|
3718
|
+
/**
|
|
3719
|
+
* Unique event ID.
|
|
3720
|
+
* Allows clients to ignore duplicate webhooks.
|
|
3721
|
+
*/
|
|
3722
|
+
_id?: string;
|
|
3723
|
+
/**
|
|
3724
|
+
* Assumes actions are also always typed to an entity_type
|
|
3725
|
+
* Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
|
|
3726
|
+
*/
|
|
3727
|
+
entityFqdn?: string;
|
|
3728
|
+
/**
|
|
3729
|
+
* This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
|
|
3730
|
+
* This is although the created/updated/deleted notion is duplication of the oneof types
|
|
3731
|
+
* Example: created/updated/deleted/started/completed/email_opened
|
|
3732
|
+
*/
|
|
3733
|
+
slug?: string;
|
|
3734
|
+
/** ID of the entity associated with the event. */
|
|
3735
|
+
entityId?: string;
|
|
3736
|
+
/** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
|
|
3737
|
+
eventTime?: Date;
|
|
3738
|
+
/**
|
|
3739
|
+
* Whether the event was triggered as a result of a privacy regulation application
|
|
3740
|
+
* (for example, GDPR).
|
|
3741
|
+
*/
|
|
3742
|
+
triggeredByAnonymizeRequest?: boolean | null;
|
|
3743
|
+
/** If present, indicates the action that triggered the event. */
|
|
3744
|
+
originatedFrom?: string | null;
|
|
3745
|
+
/**
|
|
3746
|
+
* A sequence number defining the order of updates to the underlying entity.
|
|
3747
|
+
* For example, given that some entity was updated at 16:00 and than again at 16:01,
|
|
3748
|
+
* it is guaranteed that the sequence number of the second update is strictly higher than the first.
|
|
3749
|
+
* As the consumer, you can use this value to ensure that you handle messages in the correct order.
|
|
3750
|
+
* To do so, you will need to persist this number on your end, and compare the sequence number from the
|
|
3751
|
+
* message against the one you have stored. Given that the stored number is higher, you should ignore the message.
|
|
3752
|
+
*/
|
|
3753
|
+
entityEventSequence?: string | null;
|
|
3754
|
+
}
|
|
3755
|
+
interface ParticipationCreatedEnvelope {
|
|
3756
|
+
entity: Participation;
|
|
3757
|
+
metadata: EventMetadata$2;
|
|
3758
|
+
}
|
|
3759
|
+
interface ParticipationUpdatedEnvelope {
|
|
3760
|
+
entity: Participation;
|
|
3761
|
+
metadata: EventMetadata$2;
|
|
3762
|
+
}
|
|
3763
|
+
interface ParticipationDeletedEnvelope {
|
|
3764
|
+
metadata: EventMetadata$2;
|
|
3765
|
+
}
|
|
3766
|
+
interface QueryCursorResult$1 {
|
|
3767
|
+
cursors: Cursors$1;
|
|
3768
|
+
hasNext: () => boolean;
|
|
3769
|
+
hasPrev: () => boolean;
|
|
3770
|
+
length: number;
|
|
3771
|
+
pageSize: number;
|
|
3772
|
+
}
|
|
3773
|
+
interface ParticipationsQueryResult extends QueryCursorResult$1 {
|
|
3774
|
+
items: Participation[];
|
|
3775
|
+
query: ParticipationsQueryBuilder;
|
|
3776
|
+
next: () => Promise<ParticipationsQueryResult>;
|
|
3777
|
+
prev: () => Promise<ParticipationsQueryResult>;
|
|
3778
|
+
}
|
|
3779
|
+
interface ParticipationsQueryBuilder {
|
|
3780
|
+
/** @param propertyName - Property whose value is compared with `value`.
|
|
3781
|
+
* @param value - Value to compare against.
|
|
3782
|
+
* @documentationMaturity preview
|
|
3783
|
+
*/
|
|
3784
|
+
eq: (propertyName: 'scheduleId' | 'eventId' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
3785
|
+
/** @documentationMaturity preview */
|
|
3786
|
+
in: (propertyName: 'scheduleId' | 'eventId' | '_id' | 'externalId', value: any) => ParticipationsQueryBuilder;
|
|
3787
|
+
/** @param limit - Number of items to return, which is also the `pageSize` of the results object.
|
|
3788
|
+
* @documentationMaturity preview
|
|
3789
|
+
*/
|
|
3790
|
+
limit: (limit: number) => ParticipationsQueryBuilder;
|
|
3791
|
+
/** @param cursor - A pointer to specific record
|
|
3792
|
+
* @documentationMaturity preview
|
|
3793
|
+
*/
|
|
3794
|
+
skipTo: (cursor: string) => ParticipationsQueryBuilder;
|
|
3795
|
+
/** @documentationMaturity preview */
|
|
3796
|
+
find: () => Promise<ParticipationsQueryResult>;
|
|
3797
|
+
}
|
|
3798
|
+
interface CreateParticipationOptions {
|
|
3799
|
+
/** Optional idempotency key to ensure that the participation is created only once, even if the same request is issued multiple times. */
|
|
3800
|
+
idempotencyKey?: string | null;
|
|
3801
|
+
}
|
|
3802
|
+
interface UpdateParticipation {
|
|
3803
|
+
/** The ID of the schedule that the participant is participating in. */
|
|
3804
|
+
scheduleId?: string | null;
|
|
3805
|
+
/** The ID of the specific event that the participant is participating in. */
|
|
3806
|
+
eventId?: string | null;
|
|
3807
|
+
/**
|
|
3808
|
+
* The participation ID.
|
|
3809
|
+
* @readonly
|
|
3810
|
+
*/
|
|
3811
|
+
_id?: string | null;
|
|
3812
|
+
/** Optional external ID. */
|
|
3813
|
+
externalId?: string | null;
|
|
3814
|
+
/** The participant info. */
|
|
3815
|
+
participant?: Participant;
|
|
3816
|
+
/** Party size of the individual or group. */
|
|
3817
|
+
partySize?: number | null;
|
|
3818
|
+
/**
|
|
3819
|
+
* Participation status. Required.
|
|
3820
|
+
* One of:
|
|
3821
|
+
* - `"CONFIRMED"` Participation is confirmed. Default value.
|
|
3822
|
+
* - `"PENDING_CONFIRMATION"` Participation is pending confirmation.
|
|
3823
|
+
*/
|
|
3824
|
+
status?: Status$2;
|
|
3825
|
+
/**
|
|
3826
|
+
* Optional ID of the Wix app owning the participation, as derived from the schedule.
|
|
3827
|
+
* @readonly
|
|
3828
|
+
*/
|
|
3829
|
+
appId?: string | null;
|
|
3830
|
+
/**
|
|
3831
|
+
* The participation revision number, which incremented on updates.
|
|
3832
|
+
* The current revision should be provided on updates to prevent conflicting changes.
|
|
3833
|
+
* @readonly
|
|
3834
|
+
*/
|
|
3835
|
+
revision?: string | null;
|
|
3836
|
+
/**
|
|
3837
|
+
* Date the participation was created.
|
|
3838
|
+
* @readonly
|
|
3839
|
+
*/
|
|
3840
|
+
_createdDate?: Date;
|
|
3841
|
+
/**
|
|
3842
|
+
* Date the participation was last updated.
|
|
3843
|
+
* @readonly
|
|
3844
|
+
*/
|
|
3845
|
+
_updatedDate?: Date;
|
|
3846
|
+
/** Extensions enabling applications or users to save custom data. */
|
|
3847
|
+
extendedFields?: ExtendedFields$1;
|
|
3848
|
+
}
|
|
3849
|
+
|
|
3850
|
+
declare function getParticipation$1(httpClient: HttpClient): GetParticipationSignature;
|
|
3851
|
+
interface GetParticipationSignature {
|
|
3852
|
+
/**
|
|
3853
|
+
* Retrieves a participation by ID.
|
|
3854
|
+
* @param - The participation ID.
|
|
3855
|
+
* @returns The participation.
|
|
3856
|
+
*/
|
|
3857
|
+
(participationId: string | null): Promise<Participation & ParticipationNonNullableFields>;
|
|
3858
|
+
}
|
|
3859
|
+
declare function queryParticipations$1(httpClient: HttpClient): QueryParticipationsSignature;
|
|
3860
|
+
interface QueryParticipationsSignature {
|
|
3861
|
+
/**
|
|
3862
|
+
* Retrieves a list of participations, given the provided filters and paging.
|
|
3863
|
+
*
|
|
3864
|
+
* Sort: by `createdDate`, default order is `DESC`.
|
|
3865
|
+
*/
|
|
3866
|
+
(): ParticipationsQueryBuilder;
|
|
3867
|
+
}
|
|
3868
|
+
declare function createParticipation$1(httpClient: HttpClient): CreateParticipationSignature;
|
|
3869
|
+
interface CreateParticipationSignature {
|
|
3870
|
+
/**
|
|
3871
|
+
* Creates a schedule or event participation.
|
|
3872
|
+
* @param - The participation to create.
|
|
3873
|
+
* @returns The created participation.
|
|
3874
|
+
*/
|
|
3875
|
+
(participation: Participation, options?: CreateParticipationOptions | undefined): Promise<Participation & ParticipationNonNullableFields>;
|
|
3876
|
+
}
|
|
3877
|
+
declare function updateParticipation$1(httpClient: HttpClient): UpdateParticipationSignature;
|
|
3878
|
+
interface UpdateParticipationSignature {
|
|
3879
|
+
/**
|
|
3880
|
+
* Updates a participation.
|
|
3881
|
+
* @param - The participation ID.
|
|
3882
|
+
* @returns The updated participation.
|
|
3883
|
+
*/
|
|
3884
|
+
(_id: string | null, participation: UpdateParticipation): Promise<Participation & ParticipationNonNullableFields>;
|
|
3885
|
+
}
|
|
3886
|
+
declare function deleteParticipation$1(httpClient: HttpClient): DeleteParticipationSignature;
|
|
3887
|
+
interface DeleteParticipationSignature {
|
|
3888
|
+
/**
|
|
3889
|
+
* Deletes a participation.
|
|
3890
|
+
* @param - The ID of participation to delete.
|
|
3891
|
+
*/
|
|
3892
|
+
(participationId: string | null): Promise<void>;
|
|
3893
|
+
}
|
|
3894
|
+
declare const onParticipationCreated$1: EventDefinition$5<ParticipationCreatedEnvelope, "wix.calendar.v3.participation_created">;
|
|
3895
|
+
declare const onParticipationUpdated$1: EventDefinition$5<ParticipationUpdatedEnvelope, "wix.calendar.v3.participation_updated">;
|
|
3896
|
+
declare const onParticipationDeleted$1: EventDefinition$5<ParticipationDeletedEnvelope, "wix.calendar.v3.participation_deleted">;
|
|
3897
|
+
|
|
3898
|
+
type EventDefinition$2<Payload = unknown, Type extends string = string> = {
|
|
3899
|
+
__type: 'event-definition';
|
|
3900
|
+
type: Type;
|
|
3901
|
+
isDomainEvent?: boolean;
|
|
3902
|
+
transformations?: (envelope: unknown) => Payload;
|
|
3903
|
+
__payload: Payload;
|
|
3904
|
+
};
|
|
3905
|
+
declare function EventDefinition$2<Type extends string>(type: Type, isDomainEvent?: boolean, transformations?: (envelope: any) => unknown): <Payload = unknown>() => EventDefinition$2<Payload, Type>;
|
|
3906
|
+
type EventHandler$2<T extends EventDefinition$2> = (payload: T['__payload']) => void | Promise<void>;
|
|
3907
|
+
type BuildEventDefinition$2<T extends EventDefinition$2<any, string>> = (handler: EventHandler$2<T>) => void;
|
|
3908
|
+
|
|
3909
|
+
declare global {
|
|
3910
|
+
// eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
|
|
3911
|
+
interface SymbolConstructor {
|
|
3912
|
+
readonly observable: symbol;
|
|
3913
|
+
}
|
|
3914
|
+
}
|
|
3915
|
+
|
|
3916
|
+
declare function createEventModule$2<T extends EventDefinition$2<any, string>>(eventDefinition: T): BuildEventDefinition$2<T> & T;
|
|
3917
|
+
|
|
3918
|
+
declare const getParticipation: MaybeContext<BuildRESTFunction<typeof getParticipation$1> & typeof getParticipation$1>;
|
|
3919
|
+
declare const queryParticipations: MaybeContext<BuildRESTFunction<typeof queryParticipations$1> & typeof queryParticipations$1>;
|
|
3920
|
+
declare const createParticipation: MaybeContext<BuildRESTFunction<typeof createParticipation$1> & typeof createParticipation$1>;
|
|
3921
|
+
declare const updateParticipation: MaybeContext<BuildRESTFunction<typeof updateParticipation$1> & typeof updateParticipation$1>;
|
|
3922
|
+
declare const deleteParticipation: MaybeContext<BuildRESTFunction<typeof deleteParticipation$1> & typeof deleteParticipation$1>;
|
|
3923
|
+
|
|
3924
|
+
type _publicOnParticipationCreatedType = typeof onParticipationCreated$1;
|
|
3925
|
+
/** */
|
|
3926
|
+
declare const onParticipationCreated: ReturnType<typeof createEventModule$2<_publicOnParticipationCreatedType>>;
|
|
3927
|
+
|
|
3928
|
+
type _publicOnParticipationUpdatedType = typeof onParticipationUpdated$1;
|
|
3929
|
+
/** */
|
|
3930
|
+
declare const onParticipationUpdated: ReturnType<typeof createEventModule$2<_publicOnParticipationUpdatedType>>;
|
|
3931
|
+
|
|
3932
|
+
type _publicOnParticipationDeletedType = typeof onParticipationDeleted$1;
|
|
3933
|
+
/** */
|
|
3934
|
+
declare const onParticipationDeleted: ReturnType<typeof createEventModule$2<_publicOnParticipationDeletedType>>;
|
|
2542
3935
|
|
|
2543
|
-
type index_d$
|
|
2544
|
-
type index_d$
|
|
2545
|
-
type index_d$
|
|
2546
|
-
type index_d$
|
|
2547
|
-
type index_d$
|
|
2548
|
-
type index_d$
|
|
2549
|
-
type index_d$
|
|
2550
|
-
type index_d$
|
|
2551
|
-
type index_d$
|
|
2552
|
-
type index_d$2_BulkCreateEventResponseNonNullableFields = BulkCreateEventResponseNonNullableFields;
|
|
2553
|
-
type index_d$2_BulkEventResult = BulkEventResult;
|
|
2554
|
-
type index_d$2_BulkUpdateEventOptions = BulkUpdateEventOptions;
|
|
2555
|
-
type index_d$2_BulkUpdateEventRequest = BulkUpdateEventRequest;
|
|
2556
|
-
type index_d$2_BulkUpdateEventRequestMaskedEvent = BulkUpdateEventRequestMaskedEvent;
|
|
2557
|
-
type index_d$2_BulkUpdateEventResponse = BulkUpdateEventResponse;
|
|
2558
|
-
type index_d$2_BulkUpdateEventResponseNonNullableFields = BulkUpdateEventResponseNonNullableFields;
|
|
2559
|
-
type index_d$2_CancelEventOptions = CancelEventOptions;
|
|
2560
|
-
type index_d$2_CancelEventRequest = CancelEventRequest;
|
|
2561
|
-
type index_d$2_CancelEventResponse = CancelEventResponse;
|
|
2562
|
-
type index_d$2_CancelEventResponseNonNullableFields = CancelEventResponseNonNullableFields;
|
|
2563
|
-
type index_d$2_CommonCursorPaging = CommonCursorPaging;
|
|
2564
|
-
type index_d$2_CommonCursorPagingMetadata = CommonCursorPagingMetadata;
|
|
2565
|
-
type index_d$2_CommonCursors = CommonCursors;
|
|
2566
|
-
type index_d$2_CreateEventOptions = CreateEventOptions;
|
|
2567
|
-
type index_d$2_CreateEventRequest = CreateEventRequest;
|
|
2568
|
-
type index_d$2_CreateEventResponse = CreateEventResponse;
|
|
2569
|
-
type index_d$2_CreateEventResponseNonNullableFields = CreateEventResponseNonNullableFields;
|
|
2570
|
-
type index_d$2_Day = Day;
|
|
2571
|
-
declare const index_d$2_Day: typeof Day;
|
|
2572
|
-
type index_d$2_DeleteTargetsRequest = DeleteTargetsRequest;
|
|
2573
|
-
type index_d$2_DeleteTargetsResponse = DeleteTargetsResponse;
|
|
2574
|
-
type index_d$2_Event = Event;
|
|
2575
|
-
type index_d$2_EventCancelled = EventCancelled;
|
|
2576
|
-
type index_d$2_EventCancelledEnvelope = EventCancelledEnvelope;
|
|
2577
|
-
type index_d$2_EventCreatedEnvelope = EventCreatedEnvelope;
|
|
2578
|
-
type index_d$2_EventNonNullableFields = EventNonNullableFields;
|
|
2579
|
-
type index_d$2_EventRecurringSplitEnvelope = EventRecurringSplitEnvelope;
|
|
2580
|
-
type index_d$2_EventUpdatedEnvelope = EventUpdatedEnvelope;
|
|
2581
|
-
type index_d$2_EventUpdatedWithMetadata = EventUpdatedWithMetadata;
|
|
2582
|
-
type index_d$2_EventsQueryBuilder = EventsQueryBuilder;
|
|
2583
|
-
type index_d$2_EventsQueryResult = EventsQueryResult;
|
|
2584
|
-
type index_d$2_Field = Field;
|
|
2585
|
-
declare const index_d$2_Field: typeof Field;
|
|
2586
|
-
type index_d$2_Frequency = Frequency;
|
|
2587
|
-
declare const index_d$2_Frequency: typeof Frequency;
|
|
2588
|
-
type index_d$2_GetEventOptions = GetEventOptions;
|
|
2589
|
-
type index_d$2_GetEventRequest = GetEventRequest;
|
|
2590
|
-
type index_d$2_GetEventResponse = GetEventResponse;
|
|
2591
|
-
type index_d$2_GetEventResponseNonNullableFields = GetEventResponseNonNullableFields;
|
|
2592
|
-
type index_d$2_ItemMetadata = ItemMetadata;
|
|
2593
|
-
type index_d$2_ListEventsByContactIdOptions = ListEventsByContactIdOptions;
|
|
2594
|
-
type index_d$2_ListEventsByContactIdRequest = ListEventsByContactIdRequest;
|
|
2595
|
-
type index_d$2_ListEventsByContactIdResponse = ListEventsByContactIdResponse;
|
|
2596
|
-
type index_d$2_ListEventsByContactIdResponseNonNullableFields = ListEventsByContactIdResponseNonNullableFields;
|
|
2597
|
-
type index_d$2_ListEventsByMemberIdOptions = ListEventsByMemberIdOptions;
|
|
2598
|
-
type index_d$2_ListEventsByMemberIdRequest = ListEventsByMemberIdRequest;
|
|
2599
|
-
type index_d$2_ListEventsByMemberIdResponse = ListEventsByMemberIdResponse;
|
|
2600
|
-
type index_d$2_ListEventsByMemberIdResponseNonNullableFields = ListEventsByMemberIdResponseNonNullableFields;
|
|
2601
|
-
type index_d$2_ListEventsOptions = ListEventsOptions;
|
|
2602
|
-
type index_d$2_ListEventsRequest = ListEventsRequest;
|
|
2603
|
-
type index_d$2_ListEventsResponse = ListEventsResponse;
|
|
2604
|
-
type index_d$2_ListEventsResponseNonNullableFields = ListEventsResponseNonNullableFields;
|
|
2605
|
-
type index_d$2_ListRecurringEventInstancesHistoryRequest = ListRecurringEventInstancesHistoryRequest;
|
|
2606
|
-
type index_d$2_ListRecurringEventInstancesHistoryResponse = ListRecurringEventInstancesHistoryResponse;
|
|
2607
|
-
type index_d$2_MaskedEvent = MaskedEvent;
|
|
3936
|
+
type index_d$2_CreateParticipationOptions = CreateParticipationOptions;
|
|
3937
|
+
type index_d$2_CreateParticipationRequest = CreateParticipationRequest;
|
|
3938
|
+
type index_d$2_CreateParticipationResponse = CreateParticipationResponse;
|
|
3939
|
+
type index_d$2_CreateParticipationResponseNonNullableFields = CreateParticipationResponseNonNullableFields;
|
|
3940
|
+
type index_d$2_DeleteParticipationRequest = DeleteParticipationRequest;
|
|
3941
|
+
type index_d$2_DeleteParticipationResponse = DeleteParticipationResponse;
|
|
3942
|
+
type index_d$2_GetParticipationRequest = GetParticipationRequest;
|
|
3943
|
+
type index_d$2_GetParticipationResponse = GetParticipationResponse;
|
|
3944
|
+
type index_d$2_GetParticipationResponseNonNullableFields = GetParticipationResponseNonNullableFields;
|
|
2608
3945
|
type index_d$2_Participant = Participant;
|
|
2609
|
-
type index_d$
|
|
2610
|
-
type index_d$
|
|
2611
|
-
|
|
2612
|
-
type index_d$
|
|
2613
|
-
type index_d$
|
|
2614
|
-
type index_d$
|
|
2615
|
-
type index_d$
|
|
2616
|
-
type index_d$
|
|
2617
|
-
type index_d$
|
|
2618
|
-
|
|
2619
|
-
type index_d$
|
|
2620
|
-
type index_d$
|
|
2621
|
-
type index_d$
|
|
2622
|
-
type index_d$
|
|
2623
|
-
type index_d$
|
|
2624
|
-
type index_d$
|
|
2625
|
-
type index_d$
|
|
2626
|
-
|
|
2627
|
-
type index_d$
|
|
2628
|
-
type index_d$
|
|
2629
|
-
type index_d$
|
|
2630
|
-
type index_d$
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
declare const index_d$
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
type index_d$2_UpdateEventResponse = UpdateEventResponse;
|
|
2640
|
-
type index_d$2_UpdateEventResponseNonNullableFields = UpdateEventResponseNonNullableFields;
|
|
2641
|
-
type index_d$2__publicOnEventCancelledType = _publicOnEventCancelledType;
|
|
2642
|
-
type index_d$2__publicOnEventCreatedType = _publicOnEventCreatedType;
|
|
2643
|
-
type index_d$2__publicOnEventRecurringSplitType = _publicOnEventRecurringSplitType;
|
|
2644
|
-
type index_d$2__publicOnEventUpdatedType = _publicOnEventUpdatedType;
|
|
2645
|
-
declare const index_d$2_bulkCancelEvent: typeof bulkCancelEvent;
|
|
2646
|
-
declare const index_d$2_bulkCreateEvent: typeof bulkCreateEvent;
|
|
2647
|
-
declare const index_d$2_bulkUpdateEvent: typeof bulkUpdateEvent;
|
|
2648
|
-
declare const index_d$2_cancelEvent: typeof cancelEvent;
|
|
2649
|
-
declare const index_d$2_createEvent: typeof createEvent;
|
|
2650
|
-
declare const index_d$2_getEvent: typeof getEvent;
|
|
2651
|
-
declare const index_d$2_listEvents: typeof listEvents;
|
|
2652
|
-
declare const index_d$2_listEventsByContactId: typeof listEventsByContactId;
|
|
2653
|
-
declare const index_d$2_listEventsByMemberId: typeof listEventsByMemberId;
|
|
2654
|
-
declare const index_d$2_onEventCancelled: typeof onEventCancelled;
|
|
2655
|
-
declare const index_d$2_onEventCreated: typeof onEventCreated;
|
|
2656
|
-
declare const index_d$2_onEventRecurringSplit: typeof onEventRecurringSplit;
|
|
2657
|
-
declare const index_d$2_onEventUpdated: typeof onEventUpdated;
|
|
2658
|
-
declare const index_d$2_queryEvents: typeof queryEvents;
|
|
2659
|
-
declare const index_d$2_restoreEventDefaults: typeof restoreEventDefaults;
|
|
2660
|
-
declare const index_d$2_splitRecurringEvent: typeof splitRecurringEvent;
|
|
2661
|
-
declare const index_d$2_updateEvent: typeof updateEvent;
|
|
3946
|
+
type index_d$2_Participation = Participation;
|
|
3947
|
+
type index_d$2_ParticipationCreatedEnvelope = ParticipationCreatedEnvelope;
|
|
3948
|
+
type index_d$2_ParticipationDeletedEnvelope = ParticipationDeletedEnvelope;
|
|
3949
|
+
type index_d$2_ParticipationNonNullableFields = ParticipationNonNullableFields;
|
|
3950
|
+
type index_d$2_ParticipationParticipatedItemOneOf = ParticipationParticipatedItemOneOf;
|
|
3951
|
+
type index_d$2_ParticipationUpdatedEnvelope = ParticipationUpdatedEnvelope;
|
|
3952
|
+
type index_d$2_ParticipationUpdatedWithMetadata = ParticipationUpdatedWithMetadata;
|
|
3953
|
+
type index_d$2_ParticipationsQueryBuilder = ParticipationsQueryBuilder;
|
|
3954
|
+
type index_d$2_ParticipationsQueryResult = ParticipationsQueryResult;
|
|
3955
|
+
type index_d$2_PartySizeSumByScheduleId = PartySizeSumByScheduleId;
|
|
3956
|
+
type index_d$2_QueryParticipationsRequest = QueryParticipationsRequest;
|
|
3957
|
+
type index_d$2_QueryParticipationsResponse = QueryParticipationsResponse;
|
|
3958
|
+
type index_d$2_QueryParticipationsResponseNonNullableFields = QueryParticipationsResponseNonNullableFields;
|
|
3959
|
+
type index_d$2_SumParticipationsPartySizeByScheduleIdRequest = SumParticipationsPartySizeByScheduleIdRequest;
|
|
3960
|
+
type index_d$2_SumParticipationsPartySizeByScheduleIdResponse = SumParticipationsPartySizeByScheduleIdResponse;
|
|
3961
|
+
type index_d$2_UpdateParticipation = UpdateParticipation;
|
|
3962
|
+
type index_d$2_UpdateParticipationRequest = UpdateParticipationRequest;
|
|
3963
|
+
type index_d$2_UpdateParticipationResponse = UpdateParticipationResponse;
|
|
3964
|
+
type index_d$2_UpdateParticipationResponseNonNullableFields = UpdateParticipationResponseNonNullableFields;
|
|
3965
|
+
type index_d$2__publicOnParticipationCreatedType = _publicOnParticipationCreatedType;
|
|
3966
|
+
type index_d$2__publicOnParticipationDeletedType = _publicOnParticipationDeletedType;
|
|
3967
|
+
type index_d$2__publicOnParticipationUpdatedType = _publicOnParticipationUpdatedType;
|
|
3968
|
+
declare const index_d$2_createParticipation: typeof createParticipation;
|
|
3969
|
+
declare const index_d$2_deleteParticipation: typeof deleteParticipation;
|
|
3970
|
+
declare const index_d$2_getParticipation: typeof getParticipation;
|
|
3971
|
+
declare const index_d$2_onParticipationCreated: typeof onParticipationCreated;
|
|
3972
|
+
declare const index_d$2_onParticipationDeleted: typeof onParticipationDeleted;
|
|
3973
|
+
declare const index_d$2_onParticipationUpdated: typeof onParticipationUpdated;
|
|
3974
|
+
declare const index_d$2_queryParticipations: typeof queryParticipations;
|
|
3975
|
+
declare const index_d$2_updateParticipation: typeof updateParticipation;
|
|
2662
3976
|
declare namespace index_d$2 {
|
|
2663
|
-
export { type ActionEvent$2 as ActionEvent, type
|
|
3977
|
+
export { type ActionEvent$2 as ActionEvent, type BaseEventMetadata$2 as BaseEventMetadata, type index_d$2_CreateParticipationOptions as CreateParticipationOptions, type index_d$2_CreateParticipationRequest as CreateParticipationRequest, type index_d$2_CreateParticipationResponse as CreateParticipationResponse, type index_d$2_CreateParticipationResponseNonNullableFields as CreateParticipationResponseNonNullableFields, type CursorPaging$1 as CursorPaging, type CursorPagingMetadata$1 as CursorPagingMetadata, type CursorQuery$1 as CursorQuery, type CursorQueryPagingMethodOneOf$1 as CursorQueryPagingMethodOneOf, type Cursors$1 as Cursors, type index_d$2_DeleteParticipationRequest as DeleteParticipationRequest, type index_d$2_DeleteParticipationResponse as DeleteParticipationResponse, type DomainEvent$2 as DomainEvent, type DomainEventBodyOneOf$2 as DomainEventBodyOneOf, type Empty$2 as Empty, type EntityCreatedEvent$2 as EntityCreatedEvent, type EntityDeletedEvent$2 as EntityDeletedEvent, type EntityUpdatedEvent$2 as EntityUpdatedEvent, type EventMetadata$2 as EventMetadata, type ExtendedFields$1 as ExtendedFields, type index_d$2_GetParticipationRequest as GetParticipationRequest, type index_d$2_GetParticipationResponse as GetParticipationResponse, type index_d$2_GetParticipationResponseNonNullableFields as GetParticipationResponseNonNullableFields, type IdentificationData$2 as IdentificationData, type IdentificationDataIdOneOf$2 as IdentificationDataIdOneOf, type MessageEnvelope$2 as MessageEnvelope, type index_d$2_Participant as Participant, type index_d$2_Participation as Participation, type index_d$2_ParticipationCreatedEnvelope as ParticipationCreatedEnvelope, type index_d$2_ParticipationDeletedEnvelope as ParticipationDeletedEnvelope, type index_d$2_ParticipationNonNullableFields as ParticipationNonNullableFields, type index_d$2_ParticipationParticipatedItemOneOf as ParticipationParticipatedItemOneOf, type index_d$2_ParticipationUpdatedEnvelope as ParticipationUpdatedEnvelope, type index_d$2_ParticipationUpdatedWithMetadata as ParticipationUpdatedWithMetadata, type index_d$2_ParticipationsQueryBuilder as ParticipationsQueryBuilder, type index_d$2_ParticipationsQueryResult as ParticipationsQueryResult, type index_d$2_PartySizeSumByScheduleId as PartySizeSumByScheduleId, type index_d$2_QueryParticipationsRequest as QueryParticipationsRequest, type index_d$2_QueryParticipationsResponse as QueryParticipationsResponse, type index_d$2_QueryParticipationsResponseNonNullableFields as QueryParticipationsResponseNonNullableFields, type RestoreInfo$2 as RestoreInfo, Status$2 as Status, type index_d$2_SumParticipationsPartySizeByScheduleIdRequest as SumParticipationsPartySizeByScheduleIdRequest, type index_d$2_SumParticipationsPartySizeByScheduleIdResponse as SumParticipationsPartySizeByScheduleIdResponse, type index_d$2_UpdateParticipation as UpdateParticipation, type index_d$2_UpdateParticipationRequest as UpdateParticipationRequest, type index_d$2_UpdateParticipationResponse as UpdateParticipationResponse, type index_d$2_UpdateParticipationResponseNonNullableFields as UpdateParticipationResponseNonNullableFields, WebhookIdentityType$2 as WebhookIdentityType, type index_d$2__publicOnParticipationCreatedType as _publicOnParticipationCreatedType, type index_d$2__publicOnParticipationDeletedType as _publicOnParticipationDeletedType, type index_d$2__publicOnParticipationUpdatedType as _publicOnParticipationUpdatedType, index_d$2_createParticipation as createParticipation, index_d$2_deleteParticipation as deleteParticipation, index_d$2_getParticipation as getParticipation, index_d$2_onParticipationCreated as onParticipationCreated, index_d$2_onParticipationDeleted as onParticipationDeleted, index_d$2_onParticipationUpdated as onParticipationUpdated, onParticipationCreated$1 as publicOnParticipationCreated, onParticipationDeleted$1 as publicOnParticipationDeleted, onParticipationUpdated$1 as publicOnParticipationUpdated, index_d$2_queryParticipations as queryParticipations, index_d$2_updateParticipation as updateParticipation };
|
|
2664
3978
|
}
|
|
2665
3979
|
|
|
2666
3980
|
interface Schedule {
|
|
@@ -3962,10 +5276,10 @@ interface CancelScheduleSignature {
|
|
|
3962
5276
|
*/
|
|
3963
5277
|
(scheduleId: string | null, options?: CancelScheduleOptions | undefined): Promise<CancelScheduleResponse & CancelScheduleResponseNonNullableFields>;
|
|
3964
5278
|
}
|
|
3965
|
-
declare const onScheduleCreated$1: EventDefinition$
|
|
3966
|
-
declare const onScheduleUpdated$1: EventDefinition$
|
|
3967
|
-
declare const onScheduleCloned$1: EventDefinition$
|
|
3968
|
-
declare const onScheduleCancelled$1: EventDefinition$
|
|
5279
|
+
declare const onScheduleCreated$1: EventDefinition$5<ScheduleCreatedEnvelope, "wix.calendar.v3.schedule_created">;
|
|
5280
|
+
declare const onScheduleUpdated$1: EventDefinition$5<ScheduleUpdatedEnvelope, "wix.calendar.v3.schedule_updated">;
|
|
5281
|
+
declare const onScheduleCloned$1: EventDefinition$5<ScheduleClonedEnvelope, "wix.calendar.v3.schedule_cloned">;
|
|
5282
|
+
declare const onScheduleCancelled$1: EventDefinition$5<ScheduleCancelledEnvelope, "wix.calendar.v3.schedule_cancelled">;
|
|
3969
5283
|
|
|
3970
5284
|
type EventDefinition$1<Payload = unknown, Type extends string = string> = {
|
|
3971
5285
|
__type: 'event-definition';
|
|
@@ -4680,7 +5994,7 @@ interface ListScheduleTimeFramesSignature {
|
|
|
4680
5994
|
*/
|
|
4681
5995
|
(ids: string[], options?: ListScheduleTimeFramesOptions | undefined): Promise<ListScheduleTimeFramesResponse & ListScheduleTimeFramesResponseNonNullableFields>;
|
|
4682
5996
|
}
|
|
4683
|
-
declare const onScheduleTimeFrameUpdated$1: EventDefinition$
|
|
5997
|
+
declare const onScheduleTimeFrameUpdated$1: EventDefinition$5<ScheduleTimeFrameUpdatedEnvelope, "wix.calendar.v3.schedule_time_frame_updated">;
|
|
4684
5998
|
|
|
4685
5999
|
type EventDefinition<Payload = unknown, Type extends string = string> = {
|
|
4686
6000
|
__type: 'event-definition';
|
|
@@ -4773,4 +6087,4 @@ declare namespace index_d {
|
|
|
4773
6087
|
export { type index_d_ActionEvent as ActionEvent, type index_d_Address as Address, type index_d_AddressHint as AddressHint, type index_d_BaseEventMetadata as BaseEventMetadata, type index_d_BusinessSchedule as BusinessSchedule, type index_d_Categories as Categories, type index_d_ChangeContext as ChangeContext, type index_d_ChangeContextPayloadOneOf as ChangeContextPayloadOneOf, type index_d_ConsentPolicy as ConsentPolicy, index_d_DayOfWeek as DayOfWeek, type index_d_DomainEvent as DomainEvent, type index_d_DomainEventBodyOneOf as DomainEventBodyOneOf, type index_d_Empty as Empty, type index_d_EntityCreatedEvent as EntityCreatedEvent, type index_d_EntityDeletedEvent as EntityDeletedEvent, type index_d_EntityUpdatedEvent as EntityUpdatedEvent, type index_d_EventMetadata as EventMetadata, type index_d_GeoCoordinates as GeoCoordinates, type index_d_GetScheduleTimeFrameOptions as GetScheduleTimeFrameOptions, type index_d_GetScheduleTimeFrameRequest as GetScheduleTimeFrameRequest, type index_d_GetScheduleTimeFrameResponse as GetScheduleTimeFrameResponse, type index_d_GetScheduleTimeFrameResponseNonNullableFields as GetScheduleTimeFrameResponseNonNullableFields, type index_d_IdentificationData as IdentificationData, type index_d_IdentificationDataIdOneOf as IdentificationDataIdOneOf, type index_d_ListScheduleTimeFramesOptions as ListScheduleTimeFramesOptions, type index_d_ListScheduleTimeFramesRequest as ListScheduleTimeFramesRequest, type index_d_ListScheduleTimeFramesResponse as ListScheduleTimeFramesResponse, type index_d_ListScheduleTimeFramesResponseNonNullableFields as ListScheduleTimeFramesResponseNonNullableFields, type index_d_Locale as Locale, type index_d_MessageEnvelope as MessageEnvelope, type index_d_Multilingual as Multilingual, index_d_PlacementType as PlacementType, type index_d_Properties as Properties, type index_d_PropertiesChange as PropertiesChange, index_d_ResolutionMethod as ResolutionMethod, type index_d_RestoreInfo as RestoreInfo, type index_d_ScheduleTimeFrame as ScheduleTimeFrame, type index_d_ScheduleTimeFrameNonNullableFields as ScheduleTimeFrameNonNullableFields, type index_d_ScheduleTimeFrameUpdatedEnvelope as ScheduleTimeFrameUpdatedEnvelope, type index_d_ScheduleTimeFrameUpdatedWithMetadata as ScheduleTimeFrameUpdatedWithMetadata, type index_d_SiteCloned as SiteCloned, type index_d_SiteCreated as SiteCreated, type index_d_SitePropertiesEvent as SitePropertiesEvent, type index_d_SitePropertiesNotification as SitePropertiesNotification, type index_d_SpecialHourPeriod as SpecialHourPeriod, index_d_Status as Status, type index_d_SupportedLanguage as SupportedLanguage, type index_d_TimePeriod as TimePeriod, type index_d_Translation as Translation, index_d_WebhookIdentityType as WebhookIdentityType, type index_d_ZonedDate as ZonedDate, type index_d__publicOnScheduleTimeFrameUpdatedType as _publicOnScheduleTimeFrameUpdatedType, index_d_getScheduleTimeFrame as getScheduleTimeFrame, index_d_listScheduleTimeFrames as listScheduleTimeFrames, index_d_onScheduleTimeFrameUpdated as onScheduleTimeFrameUpdated, onScheduleTimeFrameUpdated$1 as publicOnScheduleTimeFrameUpdated };
|
|
4774
6088
|
}
|
|
4775
6089
|
|
|
4776
|
-
export { index_d$
|
|
6090
|
+
export { index_d$3 as eventViews, index_d$4 as events, index_d$2 as participations, index_d as scheduleTimeFrames, index_d$1 as schedules };
|