@wix/auto_sdk_redirects_redirects 1.0.4 → 1.0.5

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.
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -685,7 +677,7 @@ export interface EntityUpdatedEvent {
685
677
  currentEntityAsJson?: string;
686
678
  }
687
679
  export interface EntityDeletedEvent {
688
- /** Entity that was deleted */
680
+ /** Entity that was deleted. */
689
681
  deletedEntityAsJson?: string | null;
690
682
  }
691
683
  export interface ActionEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":";;;AA6OA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AA+KD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAiBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AAmJD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":";;;AA6OA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;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ntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  _id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -683,7 +675,7 @@ export interface EntityUpdatedEvent {
683
675
  currentEntity?: string;
684
676
  }
685
677
  export interface EntityDeletedEvent {
686
- /** Entity that was deleted */
678
+ /** Entity that was deleted. */
687
679
  deletedEntity?: string | null;
688
680
  }
689
681
  export interface ActionEvent {
@@ -774,25 +766,21 @@ export interface BaseEventMetadata {
774
766
  identity?: IdentificationData;
775
767
  }
776
768
  export interface EventMetadata extends BaseEventMetadata {
777
- /**
778
- * Unique event ID.
779
- * Allows clients to ignore duplicate webhooks.
780
- */
769
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
781
770
  _id?: string;
782
771
  /**
783
- * Assumes actions are also always typed to an entity_type
784
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
772
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
773
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
785
774
  */
786
775
  entityFqdn?: string;
787
776
  /**
788
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
789
- * This is although the created/updated/deleted notion is duplication of the oneof types
790
- * Example: created/updated/deleted/started/completed/email_opened
777
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
778
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
791
779
  */
792
780
  slug?: string;
793
781
  /** ID of the entity associated with the event. */
794
782
  entityId?: string;
795
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
783
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
796
784
  eventTime?: Date | null;
797
785
  /**
798
786
  * Whether the event was triggered as a result of a privacy regulation application
@@ -802,12 +790,8 @@ export interface EventMetadata extends BaseEventMetadata {
802
790
  /** If present, indicates the action that triggered the event. */
803
791
  originatedFrom?: string | null;
804
792
  /**
805
- * A sequence number defining the order of updates to the underlying entity.
806
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
807
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
808
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
809
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
810
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
793
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
794
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
811
795
  */
812
796
  entityEventSequence?: string | null;
813
797
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,yHAA2G;AA+O3G,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,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AAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAjED,sDAiEC"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,yHAA2G;AA+O3G,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AA8KD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAiBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IA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IAExE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,gBAAgB,EAAE,uBAAuB;gBACzC,YAAY,EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,iBAAiB,EAAE,wBAAwB;gBAC3C,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,YAAY,EAAE,mBAAmB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,kBAAkB;aAChC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAjED,sDAiEC"}
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -685,7 +677,7 @@ export interface EntityUpdatedEvent {
685
677
  currentEntityAsJson?: string;
686
678
  }
687
679
  export interface EntityDeletedEvent {
688
- /** Entity that was deleted */
680
+ /** Entity that was deleted. */
689
681
  deletedEntityAsJson?: string | null;
690
682
  }
691
683
  export interface ActionEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":"AA6OA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AAWD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AA+KD,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AAiBD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AA2BD,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AAmJD,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":"AA6OA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AAWD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AA+KD,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AAiBD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AA2BD,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AA2ID,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  _id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -683,7 +675,7 @@ export interface EntityUpdatedEvent {
683
675
  currentEntity?: string;
684
676
  }
685
677
  export interface EntityDeletedEvent {
686
- /** Entity that was deleted */
678
+ /** Entity that was deleted. */
687
679
  deletedEntity?: string | null;
688
680
  }
689
681
  export interface ActionEvent {
@@ -774,25 +766,21 @@ export interface BaseEventMetadata {
774
766
  identity?: IdentificationData;
775
767
  }
776
768
  export interface EventMetadata extends BaseEventMetadata {
777
- /**
778
- * Unique event ID.
779
- * Allows clients to ignore duplicate webhooks.
780
- */
769
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
781
770
  _id?: string;
782
771
  /**
783
- * Assumes actions are also always typed to an entity_type
784
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
772
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
773
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
785
774
  */
786
775
  entityFqdn?: string;
787
776
  /**
788
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
789
- * This is although the created/updated/deleted notion is duplication of the oneof types
790
- * Example: created/updated/deleted/started/completed/email_opened
777
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
778
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
791
779
  */
792
780
  slug?: string;
793
781
  /** ID of the entity associated with the event. */
794
782
  entityId?: string;
795
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
783
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
796
784
  eventTime?: Date | null;
797
785
  /**
798
786
  * Whether the event was triggered as a result of a privacy regulation application
@@ -802,12 +790,8 @@ export interface EventMetadata extends BaseEventMetadata {
802
790
  /** If present, indicates the action that triggered the event. */
803
791
  originatedFrom?: string | null;
804
792
  /**
805
- * A sequence number defining the order of updates to the underlying entity.
806
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
807
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
808
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
809
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
810
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
793
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
794
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
811
795
  */
812
796
  entityEventSequence?: string | null;
813
797
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,sCAAsC,MAAM,kDAAkD,CAAC;AA+O3G,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AAWD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AA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
+ {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,sCAAsC,MAAM,kDAAkD,CAAC;AA+O3G,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AAWD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AA8KD,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AAiBD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,g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AC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAExE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,gBAAgB,EAAE,uBAAuB;gBACzC,YAAY,EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,iBAAiB,EAAE,wBAAwB;gBAC3C,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,YAAY,EAAE,mBAAmB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,kBAAkB;aAChC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -685,7 +677,7 @@ export interface EntityUpdatedEvent {
685
677
  currentEntityAsJson?: string;
686
678
  }
687
679
  export interface EntityDeletedEvent {
688
- /** Entity that was deleted */
680
+ /** Entity that was deleted. */
689
681
  deletedEntityAsJson?: string | null;
690
682
  }
691
683
  export interface ActionEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":";;;AA6OA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AA+KD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAiBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AAmJD,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":";;;AA6OA,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AA+KD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAiBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,4BAAZ,YAAY,QASvB;AA2BD,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,sBAAN,MAAM,QAOjB;AA2ID,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,mCAAnB,mBAAmB,QAM9B"}
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  _id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -683,7 +675,7 @@ export interface EntityUpdatedEvent {
683
675
  currentEntity?: string;
684
676
  }
685
677
  export interface EntityDeletedEvent {
686
- /** Entity that was deleted */
678
+ /** Entity that was deleted. */
687
679
  deletedEntity?: string | null;
688
680
  }
689
681
  export interface ActionEvent {
@@ -774,25 +766,21 @@ export interface BaseEventMetadata {
774
766
  identity?: IdentificationData;
775
767
  }
776
768
  export interface EventMetadata extends BaseEventMetadata {
777
- /**
778
- * Unique event ID.
779
- * Allows clients to ignore duplicate webhooks.
780
- */
769
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
781
770
  _id?: string;
782
771
  /**
783
- * Assumes actions are also always typed to an entity_type
784
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
772
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
773
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
785
774
  */
786
775
  entityFqdn?: string;
787
776
  /**
788
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
789
- * This is although the created/updated/deleted notion is duplication of the oneof types
790
- * Example: created/updated/deleted/started/completed/email_opened
777
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
778
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
791
779
  */
792
780
  slug?: string;
793
781
  /** ID of the entity associated with the event. */
794
782
  entityId?: string;
795
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
783
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
796
784
  eventTime?: Date | null;
797
785
  /**
798
786
  * Whether the event was triggered as a result of a privacy regulation application
@@ -802,12 +790,8 @@ export interface EventMetadata extends BaseEventMetadata {
802
790
  /** If present, indicates the action that triggered the event. */
803
791
  originatedFrom?: string | null;
804
792
  /**
805
- * A sequence number defining the order of updates to the underlying entity.
806
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
807
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
808
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
809
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
810
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
793
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
794
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
811
795
  */
812
796
  entityEventSequence?: string | null;
813
797
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,yHAA2G;AA+O3G,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,4BAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAWD,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,qCAArB,qBAAqB,QAWhC;AA8KD,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,yCAAzB,yBAAyB,QASpC;AAiBD,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB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,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAExE,WAAW,EAAE,UAAU,EAAE,EAAE,CAAC;IAC5B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,IAAA,gEAAuC,EAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,IAAA,gCAAiB,EACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,gBAAgB,EAAE,uBAAuB;gBACzC,YAAY,EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,iBAAiB,EAAE,wBAAwB;gBAC3C,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,YAAY,EAAE,mBAAmB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,kBAAkB;aAChC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAjED,sDAiEC"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sEAAuF;AACvF,oFAGiD;AAEjD,yHAA2G;AA+O3G,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,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EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,iBAAiB,EAAE,wBAAwB;gBAC3C,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,YAAY,EAAE,mBAAmB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,kBAAkB;aAChC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC;AAjED,sDAiEC"}
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -685,7 +677,7 @@ export interface EntityUpdatedEvent {
685
677
  currentEntityAsJson?: string;
686
678
  }
687
679
  export interface EntityDeletedEvent {
688
- /** Entity that was deleted */
680
+ /** Entity that was deleted. */
689
681
  deletedEntityAsJson?: string | null;
690
682
  }
691
683
  export interface ActionEvent {
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":"AA6OA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,MAAM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CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.types.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.types.ts"],"names":[],"mappings":"AA6OA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AAgJD,yGAAyG;AACzG,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,KAAN,MAAM,QASjB;AAWD,MAAM,CAAN,IAAY,qBAWX;AAXD,WAAY,qBAAqB;IAC/B,4CAA4C;IAC5C,sDAA6B,CAAA;IAC7B,2CAA2C;IAC3C,8CAAqB,CAAA;IACrB,yCAAyC;IACzC,0CAAiB,CAAA;IACjB,6CAA6C;IAC7C,wDAA+B,CAAA;IAC/B,sCAAsC;IACtC,0CAAiB,CAAA;AACnB,CAAC,EAXW,qBAAqB,KAArB,qBAAqB,QAWhC;AA+KD,MAAM,CAAN,IAAY,yBASX;AATD,WAAY,yBAAyB;IACnC,qBAAqB;IACrB,gDAAmB,CAAA;IACnB,wCAAwC;IACxC,gDAAmB,CAAA;IACnB,oEAAoE;IACpE,oDAAuB,CAAA;IACvB,oEAAoE;IACpE,4CAAe,CAAA;AACjB,CAAC,EATW,yBAAyB,KAAzB,yBAAyB,QASpC;AAiBD,MAAM,CAAN,IAAY,YASX;AATD,WAAY,YAAY;IACtB,qBAAqB;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,KAAZ,YAAY,QASvB;AA2BD,MAAM,CAAN,IAAY,MAOX;AAPD,WAAY,MAAM;IAChB,qBAAqB;IACrB,6BAAmB,CAAA;IACnB,4CAA4C;IAC5C,6BAAmB,CAAA;IACnB,yBAAyB;IACzB,yBAAe,CAAA;AACjB,CAAC,EAPW,MAAM,KAAN,MAAM,QAOjB;AA2ID,MAAM,CAAN,IAAY,mBAMX;AAND,WAAY,mBAAmB;IAC7B,0CAAmB,CAAA;IACnB,8DAAuC,CAAA;IACvC,wCAAiB,CAAA;IACjB,4CAAqB,CAAA;IACrB,kCAAW,CAAA;AACb,CAAC,EANW,mBAAmB,KAAnB,mBAAmB,QAM9B"}
@@ -624,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
624
624
  updatedEvent?: EntityUpdatedEvent;
625
625
  deletedEvent?: EntityDeletedEvent;
626
626
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
628
  _id?: string;
632
629
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
630
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
631
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
632
  */
636
633
  entityFqdn?: string;
637
634
  /**
638
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
639
- * This is although the created/updated/deleted notion is duplication of the oneof types
640
- * Example: created/updated/deleted/started/completed/email_opened
635
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
636
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
637
  */
642
638
  slug?: string;
643
639
  /** ID of the entity associated with the event. */
644
640
  entityId?: string;
645
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
641
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
646
642
  eventTime?: Date | null;
647
643
  /**
648
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
648
  /** If present, indicates the action that triggered the event. */
653
649
  originatedFrom?: string | null;
654
650
  /**
655
- * A sequence number defining the order of updates to the underlying entity.
656
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
657
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
658
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
659
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
660
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
651
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
652
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
661
653
  */
662
654
  entityEventSequence?: string | null;
663
655
  }
@@ -683,7 +675,7 @@ export interface EntityUpdatedEvent {
683
675
  currentEntity?: string;
684
676
  }
685
677
  export interface EntityDeletedEvent {
686
- /** Entity that was deleted */
678
+ /** Entity that was deleted. */
687
679
  deletedEntity?: string | null;
688
680
  }
689
681
  export interface ActionEvent {
@@ -774,25 +766,21 @@ export interface BaseEventMetadata {
774
766
  identity?: IdentificationData;
775
767
  }
776
768
  export interface EventMetadata extends BaseEventMetadata {
777
- /**
778
- * Unique event ID.
779
- * Allows clients to ignore duplicate webhooks.
780
- */
769
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
781
770
  _id?: string;
782
771
  /**
783
- * Assumes actions are also always typed to an entity_type
784
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
772
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
773
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
785
774
  */
786
775
  entityFqdn?: string;
787
776
  /**
788
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
789
- * This is although the created/updated/deleted notion is duplication of the oneof types
790
- * Example: created/updated/deleted/started/completed/email_opened
777
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
778
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
791
779
  */
792
780
  slug?: string;
793
781
  /** ID of the entity associated with the event. */
794
782
  entityId?: string;
795
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
783
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
796
784
  eventTime?: Date | null;
797
785
  /**
798
786
  * Whether the event was triggered as a result of a privacy regulation application
@@ -802,12 +790,8 @@ export interface EventMetadata extends BaseEventMetadata {
802
790
  /** If present, indicates the action that triggered the event. */
803
791
  originatedFrom?: string | null;
804
792
  /**
805
- * A sequence number defining the order of updates to the underlying entity.
806
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
807
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
808
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
809
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
810
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
793
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
794
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
811
795
  */
812
796
  entityEventSequence?: string | null;
813
797
  }
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":"AAAA,OAAO,E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AAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,WAAW,EAAE,SAAS,EAAE,CAAC,MAAM,CAAC,CAAC;QAEjC,OAAO,uCAAuC,CAAC,MAAM,CAAC,IAAI,CAAE,CAAC;IAC/D,CAAC;IAAC,OAAO,GAAQ,EAAE,CAAC;QAClB,MAAM,gBAAgB,GAAG,iBAAiB,CACxC,GAAG,EACH;YACE,sBAAsB,EAAE,EAAE;YAC1B,wBAAwB,EAAE;gBACxB,gBAAgB,EAAE,uBAAuB;gBACzC,YAAY,EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,iBAAiB,EAAE,wBAAwB;gBAC3C,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,YAAY,EAAE,mBAAmB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,kBAAkB;aAChC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.universal.js","sourceRoot":"","sources":["../../../../src/headless-v1-redirect-session-redirects.universal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,IAAI,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACL,qCAAqC,EACrC,uCAAuC,GACxC,MAAM,yCAAyC,CAAC;AAEjD,OAAO,KAAK,sCAAsC,MAAM,kDAAkD,CAAC;AA+O3G,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,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,EAAE,uBAAuB;gBACzC,YAAY,EAAE,mBAAmB;gBACjC,cAAc,EAAE,qBAAqB;gBACrC,iBAAiB,EAAE,wBAAwB;gBAC3C,KAAK,EAAE,YAAY;gBACnB,MAAM,EAAE,aAAa;gBACrB,IAAI,EAAE,WAAW;gBACjB,aAAa,EAAE,oBAAoB;gBACnC,YAAY,EAAE,mBAAmB;gBACjC,SAAS,EAAE,gBAAgB;gBAC3B,WAAW,EAAE,kBAAkB;aAChC;YACD,uBAAuB,EAAE,KAAK;SAC/B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;QACF,WAAW,EAAE,OAAO,EAAE,CAAC,GAAG,CAAC,CAAC;QAE5B,MAAM,gBAAgB,CAAC;IACzB,CAAC;AACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/auto_sdk_redirects_redirects",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -29,7 +29,7 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "@wix/sdk-runtime": "^0.3.49",
32
- "@wix/sdk-types": "^1.13.21"
32
+ "@wix/sdk-types": "^1.13.23"
33
33
  },
34
34
  "devDependencies": {
35
35
  "typescript": "^5.3.2"
@@ -48,5 +48,5 @@
48
48
  "fqdn": "wix.headless.v1.redirect_session"
49
49
  }
50
50
  },
51
- "falconPackageHash": "9554e4ff5429e972f84e494a65c4107c9d18f08b7651fcf0ec249ceb"
51
+ "falconPackageHash": "20d0481ff315d073bfc96ff807706e0296ddee981a18477fbf236698"
52
52
  }