@wix/auto_sdk_redirects_redirects 1.0.4 → 1.0.6

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.
@@ -223,7 +223,7 @@ export interface Location {
223
223
  * - `"OWNER_CUSTOM"`: The address as set when creating the service.
224
224
  * - `"CUSTOM"`: The address as set for the individual session.
225
225
  */
226
- locationType?: LocationType;
226
+ locationType?: LocationTypeWithLiterals;
227
227
  }
228
228
  export declare enum LocationType {
229
229
  UNDEFINED = "UNDEFINED",
@@ -231,6 +231,8 @@ export declare enum LocationType {
231
231
  OWNER_CUSTOM = "OWNER_CUSTOM",
232
232
  CUSTOM = "CUSTOM"
233
233
  }
234
+ /** @enumType */
235
+ export type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
234
236
  export interface WaitingList {
235
237
  /**
236
238
  * Total number of spots and open spots for this waitlist.
@@ -293,7 +295,7 @@ export interface RedirectSessionLogoutParams {
293
295
  export interface RedirectSessionAuthParams {
294
296
  authRequest?: AuthorizeRequest;
295
297
  /** The type of prompt to use during the authorization process. */
296
- prompt?: Prompt;
298
+ prompt?: PromptWithLiterals;
297
299
  }
298
300
  /**
299
301
  * AuthorizeRequest is sent by the client to the authorization server to initiate
@@ -375,13 +377,15 @@ export declare enum Prompt {
375
377
  */
376
378
  none = "none"
377
379
  }
380
+ /** @enumType */
381
+ export type PromptWithLiterals = Prompt | 'login' | 'none';
378
382
  export interface RedirectSessionMembersAccountParams {
379
383
  /**
380
384
  * The member account page to redirect to.
381
385
  *
382
386
  * Default: `ACCOUNT_INFO`
383
387
  */
384
- section?: MembersAccountSection;
388
+ section?: MembersAccountSectionWithLiterals;
385
389
  }
386
390
  export declare enum MembersAccountSection {
387
391
  /** Account info section in "my account". */
@@ -395,6 +399,8 @@ export declare enum MembersAccountSection {
395
399
  /** Events section in "my account". */
396
400
  EVENTS = "EVENTS"
397
401
  }
402
+ /** @enumType */
403
+ export type MembersAccountSectionWithLiterals = MembersAccountSection | 'ACCOUNT_INFO' | 'BOOKINGS' | 'ORDERS' | 'SUBSCRIPTIONS' | 'EVENTS';
398
404
  export interface RedirectSessionStoresProductParams {
399
405
  /** @maxLength 150 */
400
406
  productSlug?: string;
@@ -545,7 +551,7 @@ export interface AttachPagesRequest {
545
551
  }
546
552
  export interface AttachPagesResponse {
547
553
  /** The status of the operation. */
548
- status?: AttachPagesResponseStatus;
554
+ status?: AttachPagesResponseStatusWithLiterals;
549
555
  /**
550
556
  * A descriptive message about the operation
551
557
  * @maxLength 2048
@@ -566,6 +572,8 @@ export declare enum AttachPagesResponseStatus {
566
572
  /** An error occurred, such as when the site or app is not found. */
567
573
  ERROR = "ERROR"
568
574
  }
575
+ /** @enumType */
576
+ export type AttachPagesResponseStatusWithLiterals = AttachPagesResponseStatus | 'UNKNOWN' | 'SUCCESS' | 'NO_ACTION' | 'ERROR';
569
577
  export interface ValidateCallbackURLRequest {
570
578
  /**
571
579
  * An external URL to validate
@@ -573,7 +581,7 @@ export interface ValidateCallbackURLRequest {
573
581
  */
574
582
  callbackUrl?: string;
575
583
  /** Type of the callback URL. */
576
- callbackType?: CallbackType;
584
+ callbackType?: CallbackTypeWithLiterals;
577
585
  /**
578
586
  * The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context
579
587
  * @format GUID
@@ -590,6 +598,8 @@ export declare enum CallbackType {
590
598
  /** Callback URL is used for the authorize flow. */
591
599
  AUTHORIZE = "AUTHORIZE"
592
600
  }
601
+ /** @enumType */
602
+ export type CallbackTypeWithLiterals = CallbackType | 'UNKNOWN' | 'LOGOUT' | 'CHECKOUT' | 'AUTHORIZE';
593
603
  export interface ValidateCallbackURLResponse {
594
604
  /** Indicates if the provided URL is allowed for the given client id */
595
605
  isValid?: boolean;
@@ -609,7 +619,7 @@ export interface AttachAllTemplatesRequest {
609
619
  }
610
620
  export interface AttachAllTemplatesResponse {
611
621
  /** The status of the operation. */
612
- status?: Status;
622
+ status?: StatusWithLiterals;
613
623
  }
614
624
  export declare enum Status {
615
625
  /** Invalid value. */
@@ -619,30 +629,28 @@ export declare enum Status {
619
629
  /** An error occurred. */
620
630
  ERROR = "ERROR"
621
631
  }
632
+ /** @enumType */
633
+ export type StatusWithLiterals = Status | 'UNKNOWN' | 'SUCCESS' | 'ERROR';
622
634
  export interface DomainEvent extends DomainEventBodyOneOf {
623
635
  createdEvent?: EntityCreatedEvent;
624
636
  updatedEvent?: EntityUpdatedEvent;
625
637
  deletedEvent?: EntityDeletedEvent;
626
638
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
639
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
640
  id?: string;
632
641
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
642
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
643
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
644
  */
636
645
  entityFqdn?: string;
637
646
  /**
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
647
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
648
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
649
  */
642
650
  slug?: string;
643
651
  /** ID of the entity associated with the event. */
644
652
  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 */
653
+ /** 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
654
  eventTime?: Date | null;
647
655
  /**
648
656
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +660,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
660
  /** If present, indicates the action that triggered the event. */
653
661
  originatedFrom?: string | null;
654
662
  /**
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.
663
+ * 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.
664
+ * 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
665
  */
662
666
  entityEventSequence?: string | null;
663
667
  }
@@ -685,7 +689,7 @@ export interface EntityUpdatedEvent {
685
689
  currentEntityAsJson?: string;
686
690
  }
687
691
  export interface EntityDeletedEvent {
688
- /** Entity that was deleted */
692
+ /** Entity that was deleted. */
689
693
  deletedEntityAsJson?: string | null;
690
694
  }
691
695
  export interface ActionEvent {
@@ -729,7 +733,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
729
733
  */
730
734
  appId?: string;
731
735
  /** @readonly */
732
- identityType?: WebhookIdentityType;
736
+ identityType?: WebhookIdentityTypeWithLiterals;
733
737
  }
734
738
  /** @oneof */
735
739
  export interface IdentificationDataIdOneOf {
@@ -761,3 +765,5 @@ export declare enum WebhookIdentityType {
761
765
  WIX_USER = "WIX_USER",
762
766
  APP = "APP"
763
767
  }
768
+ /** @enumType */
769
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -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":";;;AA6O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MX;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;AAwJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAcD,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;AAwLD,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;AAyBD,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;AAmCD,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;AA8ID,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"}
@@ -224,7 +224,7 @@ export interface Location {
224
224
  * - `"OWNER_CUSTOM"`: The address as set when creating the service.
225
225
  * - `"CUSTOM"`: The address as set for the individual session.
226
226
  */
227
- locationType?: LocationType;
227
+ locationType?: LocationTypeWithLiterals;
228
228
  }
229
229
  export declare enum LocationType {
230
230
  UNDEFINED = "UNDEFINED",
@@ -232,6 +232,8 @@ export declare enum LocationType {
232
232
  OWNER_CUSTOM = "OWNER_CUSTOM",
233
233
  CUSTOM = "CUSTOM"
234
234
  }
235
+ /** @enumType */
236
+ export type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
235
237
  export interface WaitingList {
236
238
  /**
237
239
  * Total number of spots and open spots for this waitlist.
@@ -294,7 +296,7 @@ export interface RedirectSessionLogoutParams {
294
296
  export interface RedirectSessionAuthParams {
295
297
  authRequest?: AuthorizeRequest;
296
298
  /** The type of prompt to use during the authorization process. */
297
- prompt?: Prompt;
299
+ prompt?: PromptWithLiterals;
298
300
  }
299
301
  /**
300
302
  * AuthorizeRequest is sent by the client to the authorization server to initiate
@@ -376,13 +378,15 @@ export declare enum Prompt {
376
378
  */
377
379
  none = "none"
378
380
  }
381
+ /** @enumType */
382
+ export type PromptWithLiterals = Prompt | 'login' | 'none';
379
383
  export interface RedirectSessionMembersAccountParams {
380
384
  /**
381
385
  * The member account page to redirect to.
382
386
  *
383
387
  * Default: `ACCOUNT_INFO`
384
388
  */
385
- section?: MembersAccountSection;
389
+ section?: MembersAccountSectionWithLiterals;
386
390
  }
387
391
  export declare enum MembersAccountSection {
388
392
  /** Account info section in "my account". */
@@ -396,6 +400,8 @@ export declare enum MembersAccountSection {
396
400
  /** Events section in "my account". */
397
401
  EVENTS = "EVENTS"
398
402
  }
403
+ /** @enumType */
404
+ export type MembersAccountSectionWithLiterals = MembersAccountSection | 'ACCOUNT_INFO' | 'BOOKINGS' | 'ORDERS' | 'SUBSCRIPTIONS' | 'EVENTS';
399
405
  export interface RedirectSessionStoresProductParams {
400
406
  /** @maxLength 150 */
401
407
  productSlug?: string;
@@ -545,7 +551,7 @@ export interface AttachPagesRequest {
545
551
  }
546
552
  export interface AttachPagesResponse {
547
553
  /** The status of the operation. */
548
- status?: AttachPagesResponseStatus;
554
+ status?: AttachPagesResponseStatusWithLiterals;
549
555
  /**
550
556
  * A descriptive message about the operation
551
557
  * @maxLength 2048
@@ -566,6 +572,8 @@ export declare enum AttachPagesResponseStatus {
566
572
  /** An error occurred, such as when the site or app is not found. */
567
573
  ERROR = "ERROR"
568
574
  }
575
+ /** @enumType */
576
+ export type AttachPagesResponseStatusWithLiterals = AttachPagesResponseStatus | 'UNKNOWN' | 'SUCCESS' | 'NO_ACTION' | 'ERROR';
569
577
  export interface ValidateCallbackURLRequest {
570
578
  /**
571
579
  * An external URL to validate
@@ -573,7 +581,7 @@ export interface ValidateCallbackURLRequest {
573
581
  */
574
582
  callbackUrl?: string;
575
583
  /** Type of the callback URL. */
576
- callbackType?: CallbackType;
584
+ callbackType?: CallbackTypeWithLiterals;
577
585
  /**
578
586
  * The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context
579
587
  * @format GUID
@@ -590,6 +598,8 @@ export declare enum CallbackType {
590
598
  /** Callback URL is used for the authorize flow. */
591
599
  AUTHORIZE = "AUTHORIZE"
592
600
  }
601
+ /** @enumType */
602
+ export type CallbackTypeWithLiterals = CallbackType | 'UNKNOWN' | 'LOGOUT' | 'CHECKOUT' | 'AUTHORIZE';
593
603
  export interface ValidateCallbackURLResponse {
594
604
  /** Indicates if the provided URL is allowed for the given client id */
595
605
  isValid?: boolean;
@@ -609,7 +619,7 @@ export interface AttachAllTemplatesRequest {
609
619
  }
610
620
  export interface AttachAllTemplatesResponse {
611
621
  /** The status of the operation. */
612
- status?: Status;
622
+ status?: StatusWithLiterals;
613
623
  }
614
624
  export declare enum Status {
615
625
  /** Invalid value. */
@@ -619,30 +629,28 @@ export declare enum Status {
619
629
  /** An error occurred. */
620
630
  ERROR = "ERROR"
621
631
  }
632
+ /** @enumType */
633
+ export type StatusWithLiterals = Status | 'UNKNOWN' | 'SUCCESS' | 'ERROR';
622
634
  export interface DomainEvent extends DomainEventBodyOneOf {
623
635
  createdEvent?: EntityCreatedEvent;
624
636
  updatedEvent?: EntityUpdatedEvent;
625
637
  deletedEvent?: EntityDeletedEvent;
626
638
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
639
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
640
  _id?: string;
632
641
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
642
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
643
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
644
  */
636
645
  entityFqdn?: string;
637
646
  /**
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
647
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
648
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
649
  */
642
650
  slug?: string;
643
651
  /** ID of the entity associated with the event. */
644
652
  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 */
653
+ /** 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
654
  eventTime?: Date | null;
647
655
  /**
648
656
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +660,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
660
  /** If present, indicates the action that triggered the event. */
653
661
  originatedFrom?: string | null;
654
662
  /**
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.
663
+ * 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.
664
+ * 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
665
  */
662
666
  entityEventSequence?: string | null;
663
667
  }
@@ -683,7 +687,7 @@ export interface EntityUpdatedEvent {
683
687
  currentEntity?: string;
684
688
  }
685
689
  export interface EntityDeletedEvent {
686
- /** Entity that was deleted */
690
+ /** Entity that was deleted. */
687
691
  deletedEntity?: string | null;
688
692
  }
689
693
  export interface ActionEvent {
@@ -727,7 +731,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
727
731
  */
728
732
  appId?: string;
729
733
  /** @readonly */
730
- identityType?: WebhookIdentityType;
734
+ identityType?: WebhookIdentityTypeWithLiterals;
731
735
  }
732
736
  /** @oneof */
733
737
  export interface IdentificationDataIdOneOf {
@@ -759,6 +763,8 @@ export declare enum WebhookIdentityType {
759
763
  WIX_USER = "WIX_USER",
760
764
  APP = "APP"
761
765
  }
766
+ /** @enumType */
767
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
762
768
  export interface BaseEventMetadata {
763
769
  /**
764
770
  * App instance ID.
@@ -774,25 +780,21 @@ export interface BaseEventMetadata {
774
780
  identity?: IdentificationData;
775
781
  }
776
782
  export interface EventMetadata extends BaseEventMetadata {
777
- /**
778
- * Unique event ID.
779
- * Allows clients to ignore duplicate webhooks.
780
- */
783
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
781
784
  _id?: string;
782
785
  /**
783
- * Assumes actions are also always typed to an entity_type
784
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
786
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
787
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
785
788
  */
786
789
  entityFqdn?: string;
787
790
  /**
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
791
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
792
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
791
793
  */
792
794
  slug?: string;
793
795
  /** ID of the entity associated with the event. */
794
796
  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 */
797
+ /** 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
798
  eventTime?: Date | null;
797
799
  /**
798
800
  * Whether the event was triggered as a result of a privacy regulation application
@@ -802,12 +804,8 @@ export interface EventMetadata extends BaseEventMetadata {
802
804
  /** If present, indicates the action that triggered the event. */
803
805
  originatedFrom?: string | null;
804
806
  /**
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.
807
+ * 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.
808
+ * 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
809
  */
812
810
  entityEventSequence?: string | null;
813
811
  }
@@ -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,CA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C;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;AAwJD,yGAAyG;AACzG,IAAY,MASX;AATD,WAAY,MAAM;IAChB,uFAAuF;IACvF,yBAAe,CAAA;IACf;;;;OAIG;IACH,uBAAa,CAAA;AACf,CAAC,EATW,MAAM,sBAAN,MAAM,QASjB;AAcD,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;AAuLD,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;AAyBD,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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AC;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"}
@@ -223,7 +223,7 @@ export interface Location {
223
223
  * - `"OWNER_CUSTOM"`: The address as set when creating the service.
224
224
  * - `"CUSTOM"`: The address as set for the individual session.
225
225
  */
226
- locationType?: LocationType;
226
+ locationType?: LocationTypeWithLiterals;
227
227
  }
228
228
  export declare enum LocationType {
229
229
  UNDEFINED = "UNDEFINED",
@@ -231,6 +231,8 @@ export declare enum LocationType {
231
231
  OWNER_CUSTOM = "OWNER_CUSTOM",
232
232
  CUSTOM = "CUSTOM"
233
233
  }
234
+ /** @enumType */
235
+ export type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
234
236
  export interface WaitingList {
235
237
  /**
236
238
  * Total number of spots and open spots for this waitlist.
@@ -293,7 +295,7 @@ export interface RedirectSessionLogoutParams {
293
295
  export interface RedirectSessionAuthParams {
294
296
  authRequest?: AuthorizeRequest;
295
297
  /** The type of prompt to use during the authorization process. */
296
- prompt?: Prompt;
298
+ prompt?: PromptWithLiterals;
297
299
  }
298
300
  /**
299
301
  * AuthorizeRequest is sent by the client to the authorization server to initiate
@@ -375,13 +377,15 @@ export declare enum Prompt {
375
377
  */
376
378
  none = "none"
377
379
  }
380
+ /** @enumType */
381
+ export type PromptWithLiterals = Prompt | 'login' | 'none';
378
382
  export interface RedirectSessionMembersAccountParams {
379
383
  /**
380
384
  * The member account page to redirect to.
381
385
  *
382
386
  * Default: `ACCOUNT_INFO`
383
387
  */
384
- section?: MembersAccountSection;
388
+ section?: MembersAccountSectionWithLiterals;
385
389
  }
386
390
  export declare enum MembersAccountSection {
387
391
  /** Account info section in "my account". */
@@ -395,6 +399,8 @@ export declare enum MembersAccountSection {
395
399
  /** Events section in "my account". */
396
400
  EVENTS = "EVENTS"
397
401
  }
402
+ /** @enumType */
403
+ export type MembersAccountSectionWithLiterals = MembersAccountSection | 'ACCOUNT_INFO' | 'BOOKINGS' | 'ORDERS' | 'SUBSCRIPTIONS' | 'EVENTS';
398
404
  export interface RedirectSessionStoresProductParams {
399
405
  /** @maxLength 150 */
400
406
  productSlug?: string;
@@ -545,7 +551,7 @@ export interface AttachPagesRequest {
545
551
  }
546
552
  export interface AttachPagesResponse {
547
553
  /** The status of the operation. */
548
- status?: AttachPagesResponseStatus;
554
+ status?: AttachPagesResponseStatusWithLiterals;
549
555
  /**
550
556
  * A descriptive message about the operation
551
557
  * @maxLength 2048
@@ -566,6 +572,8 @@ export declare enum AttachPagesResponseStatus {
566
572
  /** An error occurred, such as when the site or app is not found. */
567
573
  ERROR = "ERROR"
568
574
  }
575
+ /** @enumType */
576
+ export type AttachPagesResponseStatusWithLiterals = AttachPagesResponseStatus | 'UNKNOWN' | 'SUCCESS' | 'NO_ACTION' | 'ERROR';
569
577
  export interface ValidateCallbackURLRequest {
570
578
  /**
571
579
  * An external URL to validate
@@ -573,7 +581,7 @@ export interface ValidateCallbackURLRequest {
573
581
  */
574
582
  callbackUrl?: string;
575
583
  /** Type of the callback URL. */
576
- callbackType?: CallbackType;
584
+ callbackType?: CallbackTypeWithLiterals;
577
585
  /**
578
586
  * The oauth app id used in order to pull the allowed domains from, has to correspond to the same metasite as the site in context
579
587
  * @format GUID
@@ -590,6 +598,8 @@ export declare enum CallbackType {
590
598
  /** Callback URL is used for the authorize flow. */
591
599
  AUTHORIZE = "AUTHORIZE"
592
600
  }
601
+ /** @enumType */
602
+ export type CallbackTypeWithLiterals = CallbackType | 'UNKNOWN' | 'LOGOUT' | 'CHECKOUT' | 'AUTHORIZE';
593
603
  export interface ValidateCallbackURLResponse {
594
604
  /** Indicates if the provided URL is allowed for the given client id */
595
605
  isValid?: boolean;
@@ -609,7 +619,7 @@ export interface AttachAllTemplatesRequest {
609
619
  }
610
620
  export interface AttachAllTemplatesResponse {
611
621
  /** The status of the operation. */
612
- status?: Status;
622
+ status?: StatusWithLiterals;
613
623
  }
614
624
  export declare enum Status {
615
625
  /** Invalid value. */
@@ -619,30 +629,28 @@ export declare enum Status {
619
629
  /** An error occurred. */
620
630
  ERROR = "ERROR"
621
631
  }
632
+ /** @enumType */
633
+ export type StatusWithLiterals = Status | 'UNKNOWN' | 'SUCCESS' | 'ERROR';
622
634
  export interface DomainEvent extends DomainEventBodyOneOf {
623
635
  createdEvent?: EntityCreatedEvent;
624
636
  updatedEvent?: EntityUpdatedEvent;
625
637
  deletedEvent?: EntityDeletedEvent;
626
638
  actionEvent?: ActionEvent;
627
- /**
628
- * Unique event ID.
629
- * Allows clients to ignore duplicate webhooks.
630
- */
639
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
631
640
  id?: string;
632
641
  /**
633
- * Assumes actions are also always typed to an entity_type
634
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
642
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
643
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
635
644
  */
636
645
  entityFqdn?: string;
637
646
  /**
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
647
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
648
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
641
649
  */
642
650
  slug?: string;
643
651
  /** ID of the entity associated with the event. */
644
652
  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 */
653
+ /** 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
654
  eventTime?: Date | null;
647
655
  /**
648
656
  * Whether the event was triggered as a result of a privacy regulation application
@@ -652,12 +660,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
652
660
  /** If present, indicates the action that triggered the event. */
653
661
  originatedFrom?: string | null;
654
662
  /**
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.
663
+ * 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.
664
+ * 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
665
  */
662
666
  entityEventSequence?: string | null;
663
667
  }
@@ -685,7 +689,7 @@ export interface EntityUpdatedEvent {
685
689
  currentEntityAsJson?: string;
686
690
  }
687
691
  export interface EntityDeletedEvent {
688
- /** Entity that was deleted */
692
+ /** Entity that was deleted. */
689
693
  deletedEntityAsJson?: string | null;
690
694
  }
691
695
  export interface ActionEvent {
@@ -729,7 +733,7 @@ export interface IdentificationData extends IdentificationDataIdOneOf {
729
733
  */
730
734
  appId?: string;
731
735
  /** @readonly */
732
- identityType?: WebhookIdentityType;
736
+ identityType?: WebhookIdentityTypeWithLiterals;
733
737
  }
734
738
  /** @oneof */
735
739
  export interface IdentificationDataIdOneOf {
@@ -761,3 +765,5 @@ export declare enum WebhookIdentityType {
761
765
  WIX_USER = "WIX_USER",
762
766
  APP = "APP"
763
767
  }
768
+ /** @enumType */
769
+ export type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
@@ -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;AAwJD,yGAAyG;AACzG,MAAM,CAAN,IAAY,MASX;AATD,WAAY,MAAM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