@wix/auto_sdk_redirects_redirects 1.0.3 → 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.
Files changed (41) hide show
  1. package/build/cjs/src/headless-v1-redirect-session-redirects.context.d.ts +1 -1
  2. package/build/cjs/src/headless-v1-redirect-session-redirects.meta.d.ts +1 -1
  3. package/build/cjs/src/headless-v1-redirect-session-redirects.meta.js.map +1 -1
  4. package/build/cjs/src/headless-v1-redirect-session-redirects.public.d.ts +3 -3
  5. package/build/cjs/src/headless-v1-redirect-session-redirects.public.js.map +1 -1
  6. package/build/cjs/src/headless-v1-redirect-session-redirects.types.d.ts +9 -30
  7. package/build/cjs/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  8. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts +27 -47
  9. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js +3 -1
  10. package/build/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  11. package/build/es/src/headless-v1-redirect-session-redirects.context.d.ts +1 -1
  12. package/build/es/src/headless-v1-redirect-session-redirects.meta.d.ts +1 -1
  13. package/build/es/src/headless-v1-redirect-session-redirects.meta.js.map +1 -1
  14. package/build/es/src/headless-v1-redirect-session-redirects.public.d.ts +3 -3
  15. package/build/es/src/headless-v1-redirect-session-redirects.public.js.map +1 -1
  16. package/build/es/src/headless-v1-redirect-session-redirects.types.d.ts +9 -30
  17. package/build/es/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  18. package/build/es/src/headless-v1-redirect-session-redirects.universal.d.ts +27 -47
  19. package/build/es/src/headless-v1-redirect-session-redirects.universal.js +3 -1
  20. package/build/es/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  21. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.context.d.ts +1 -1
  22. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.d.ts +1 -1
  23. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.meta.js.map +1 -1
  24. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.d.ts +3 -3
  25. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.public.js.map +1 -1
  26. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.d.ts +9 -30
  27. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  28. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.d.ts +27 -47
  29. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js +3 -1
  30. package/build/internal/cjs/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  31. package/build/internal/es/src/headless-v1-redirect-session-redirects.context.d.ts +1 -1
  32. package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.d.ts +1 -1
  33. package/build/internal/es/src/headless-v1-redirect-session-redirects.meta.js.map +1 -1
  34. package/build/internal/es/src/headless-v1-redirect-session-redirects.public.d.ts +3 -3
  35. package/build/internal/es/src/headless-v1-redirect-session-redirects.public.js.map +1 -1
  36. package/build/internal/es/src/headless-v1-redirect-session-redirects.types.d.ts +9 -30
  37. package/build/internal/es/src/headless-v1-redirect-session-redirects.types.js.map +1 -1
  38. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.d.ts +27 -47
  39. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js +3 -1
  40. package/build/internal/es/src/headless-v1-redirect-session-redirects.universal.js.map +1 -1
  41. package/package.json +4 -4
@@ -8,4 +8,4 @@ export declare const createRedirectSession: MaybeContext<BuildRESTFunction<typeo
8
8
  */
9
9
  export declare const onRedirectSessionCreated: ReturnType<typeof createEventModule<typeof publicOnRedirectSessionCreated>>;
10
10
  export { LocationType, Prompt, MembersAccountSection, AttachPagesResponseStatus, CallbackType, Status, WebhookIdentityType, } from './headless-v1-redirect-session-redirects.universal.js';
11
- export { RedirectSession, URLDetails, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, NestedTimeSlot, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionAuthParams, AuthorizeRequest, RedirectSessionMembersAccountParams, RedirectSessionStoresProductParams, RedirectSessionBookingsBookParams, CallbackParams, RedirectSessionPreferences, CustomMemberPaths, CreateRedirectSessionResponse, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, AttachPagesRequest, AttachPagesResponse, ValidateCallbackURLRequest, ValidateCallbackURLResponse, SignInURLRequest, SignInURLResponse, AttachAllTemplatesRequest, AttachAllTemplatesResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, CreateRedirectSessionResponseNonNullableFields, BaseEventMetadata, EventMetadata, RedirectSessionCreatedEnvelope, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, } from './headless-v1-redirect-session-redirects.universal.js';
11
+ export { RedirectSession, URLDetails, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, NestedTimeSlot, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionAuthParams, AuthorizeRequest, RedirectSessionMembersAccountParams, RedirectSessionStoresProductParams, RedirectSessionBookingsBookParams, CallbackParams, RedirectSessionPreferences, CustomMemberPaths, CreateRedirectSessionResponse, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, AttachPagesRequest, AttachPagesResponse, ValidateCallbackURLRequest, ValidateCallbackURLResponse, SignInURLRequest, SignInURLResponse, AttachAllTemplatesRequest, AttachAllTemplatesResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, RedirectSessionCreatedEnvelope, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, } from './headless-v1-redirect-session-redirects.universal.js';
@@ -10,4 +10,4 @@ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unk
10
10
  __responseType: Q;
11
11
  __originalResponseType: R;
12
12
  };
13
- export declare function createRedirectSession(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionResponse & ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionResponseNonNullableFields, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionResponse & ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionResponseNonNullableFields>;
13
+ export declare function createRedirectSession(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionResponse, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.meta.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yHAA2G;AAsB3G,SAAgB,qBAAqB;IAUnC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,sDA8BC"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.meta.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yHAA2G;AAsB3G,SAAgB,qBAAqB;IAQnC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA5BD,sDA4BC"}
@@ -1,5 +1,5 @@
1
1
  import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { CreateRedirectSessionOptions, CreateRedirectSessionResponse, CreateRedirectSessionResponseNonNullableFields, RedirectSessionCreatedEnvelope } from './headless-v1-redirect-session-redirects.universal.js';
2
+ import { CreateRedirectSessionOptions, CreateRedirectSessionResponse, RedirectSessionCreatedEnvelope } from './headless-v1-redirect-session-redirects.universal.js';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
@@ -18,7 +18,7 @@ interface CreateRedirectSessionSignature {
18
18
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
19
19
  * @param - Options for creating a redirect session.
20
20
  */
21
- (options?: CreateRedirectSessionOptions | undefined): Promise<CreateRedirectSessionResponse & CreateRedirectSessionResponseNonNullableFields>;
21
+ (options?: CreateRedirectSessionOptions | undefined): Promise<CreateRedirectSessionResponse>;
22
22
  }
23
23
  export declare const onRedirectSessionCreated: EventDefinition<RedirectSessionCreatedEnvelope, "wix.headless.v1.redirect_session_created">;
24
- export { ActionEvent, AttachAllTemplatesRequest, AttachAllTemplatesResponse, AttachPagesRequest, AttachPagesResponse, AttachPagesResponseStatus, AuthorizeRequest, BaseEventMetadata, BookingPolicyViolations, CallbackParams, CallbackType, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, CreateRedirectSessionResponse, CreateRedirectSessionResponseNonNullableFields, CustomMemberPaths, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, IdentificationData, IdentificationDataIdOneOf, Location, LocationType, MembersAccountSection, MessageEnvelope, NestedTimeSlot, Prompt, RedirectSession, RedirectSessionAuthParams, RedirectSessionBookingsBookParams, RedirectSessionBookingsCheckoutParams, RedirectSessionCreatedEnvelope, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionMembersAccountParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionPreferences, RedirectSessionStoresProductParams, RestoreInfo, SignInURLRequest, SignInURLResponse, Slot, SlotAvailability, SlotResource, Status, URLDetails, ValidateCallbackURLRequest, ValidateCallbackURLResponse, WaitingList, WebhookIdentityType, } from './headless-v1-redirect-session-redirects.universal.js';
24
+ export { ActionEvent, AttachAllTemplatesRequest, AttachAllTemplatesResponse, AttachPagesRequest, AttachPagesResponse, AttachPagesResponseStatus, AuthorizeRequest, BaseEventMetadata, BookingPolicyViolations, CallbackParams, CallbackType, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, CreateRedirectSessionResponse, CustomMemberPaths, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, IdentificationData, IdentificationDataIdOneOf, Location, LocationType, MembersAccountSection, MessageEnvelope, NestedTimeSlot, Prompt, RedirectSession, RedirectSessionAuthParams, RedirectSessionBookingsBookParams, RedirectSessionBookingsCheckoutParams, RedirectSessionCreatedEnvelope, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionMembersAccountParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionPreferences, RedirectSessionStoresProductParams, RestoreInfo, SignInURLRequest, SignInURLResponse, Slot, SlotAvailability, SlotResource, Status, URLDetails, ValidateCallbackURLRequest, ValidateCallbackURLResponse, WaitingList, WebhookIdentityType, } from './headless-v1-redirect-session-redirects.universal.js';
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.public.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,+HAM+D;AAElD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAE7D,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,OAAsC,EAAE,EAAE,CAChD,IAAA,2EAA8B,EAC5B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sDASC;AAsBY,QAAA,wBAAwB,GAAG,IAAA,2BAAe,EACrD,0CAA0C,EAC1C,IAAI,EACJ,CAAC,KAAqC,EAAE,EAAE,CACxC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;KACxC;CACF,CAAC,CACH,CACJ,EAAkC,CAAC;AAEpC,6HA6D+D;AAvD7D,gKAAA,yBAAyB,OAAA;AAKzB,mJAAA,YAAY,OAAA;AAoBZ,mJAAA,YAAY,OAAA;AACZ,4JAAA,qBAAqB,OAAA;AAGrB,6IAAA,MAAM,OAAA;AAoBN,6IAAA,MAAM,OAAA;AAKN,0JAAA,mBAAmB,OAAA"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.public.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.public.ts"],"names":[],"mappings":";;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,+HAK+D;AAElD,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAE7D,SAAgB,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,OAAsC,EAAE,EAAE,CAChD,IAAA,2EAA8B,EAC5B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sDASC;AAqBY,QAAA,wBAAwB,GAAG,IAAA,2BAAe,EACrD,0CAA0C,EAC1C,IAAI,EACJ,CAAC,KAAqC,EAAE,EAAE,CACxC,IAAA,gEAAuC,EACrC,IAAA,gCAAc,EAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,gDAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;KACxC;CACF,CAAC,CACH,CACJ,EAAkC,CAAC;AAEpC,6HA4D+D;AAtD7D,gKAAA,yBAAyB,OAAA;AAKzB,mJAAA,YAAY,OAAA;AAmBZ,mJAAA,YAAY,OAAA;AACZ,4JAAA,qBAAqB,OAAA;AAGrB,6IAAA,MAAM,OAAA;AAoBN,6IAAA,MAAM,OAAA;AAKN,0JAAA,mBAAmB,OAAA"}
@@ -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 {
@@ -761,16 +753,3 @@ export declare enum WebhookIdentityType {
761
753
  WIX_USER = "WIX_USER",
762
754
  APP = "APP"
763
755
  }
764
- interface URLDetailsNonNullableFields {
765
- endpoint: string;
766
- }
767
- interface RedirectSessionNonNullableFields {
768
- id: string;
769
- fullUrl: string;
770
- urlDetails?: URLDetailsNonNullableFields;
771
- shortUrl: string;
772
- }
773
- export interface CreateRedirectSessionResponseNonNullableFields {
774
- redirectSession?: RedirectSessionNonNullableFields;
775
- }
776
- export {};
@@ -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"}
@@ -1,3 +1,4 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
1
2
  /** Information for redirecting a visitor from an external Wix Headless client site to a Wix page for Wix-managed functionality. */
2
3
  export interface RedirectSession {
3
4
  /**
@@ -623,25 +624,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
623
624
  updatedEvent?: EntityUpdatedEvent;
624
625
  deletedEvent?: EntityDeletedEvent;
625
626
  actionEvent?: ActionEvent;
626
- /**
627
- * Unique event ID.
628
- * Allows clients to ignore duplicate webhooks.
629
- */
627
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
630
628
  _id?: string;
631
629
  /**
632
- * Assumes actions are also always typed to an entity_type
633
- * 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`.
634
632
  */
635
633
  entityFqdn?: string;
636
634
  /**
637
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
638
- * This is although the created/updated/deleted notion is duplication of the oneof types
639
- * 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`.
640
637
  */
641
638
  slug?: string;
642
639
  /** ID of the entity associated with the event. */
643
640
  entityId?: string;
644
- /** 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`. */
645
642
  eventTime?: Date | null;
646
643
  /**
647
644
  * Whether the event was triggered as a result of a privacy regulation application
@@ -651,12 +648,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
651
648
  /** If present, indicates the action that triggered the event. */
652
649
  originatedFrom?: string | null;
653
650
  /**
654
- * A sequence number defining the order of updates to the underlying entity.
655
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
656
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
657
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
658
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
659
- * 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.
660
653
  */
661
654
  entityEventSequence?: string | null;
662
655
  }
@@ -682,7 +675,7 @@ export interface EntityUpdatedEvent {
682
675
  currentEntity?: string;
683
676
  }
684
677
  export interface EntityDeletedEvent {
685
- /** Entity that was deleted */
678
+ /** Entity that was deleted. */
686
679
  deletedEntity?: string | null;
687
680
  }
688
681
  export interface ActionEvent {
@@ -758,18 +751,6 @@ export declare enum WebhookIdentityType {
758
751
  WIX_USER = "WIX_USER",
759
752
  APP = "APP"
760
753
  }
761
- interface URLDetailsNonNullableFields {
762
- endpoint: string;
763
- }
764
- interface RedirectSessionNonNullableFields {
765
- _id: string;
766
- fullUrl: string;
767
- urlDetails?: URLDetailsNonNullableFields;
768
- shortUrl: string;
769
- }
770
- export interface CreateRedirectSessionResponseNonNullableFields {
771
- redirectSession?: RedirectSessionNonNullableFields;
772
- }
773
754
  export interface BaseEventMetadata {
774
755
  /**
775
756
  * App instance ID.
@@ -785,25 +766,21 @@ export interface BaseEventMetadata {
785
766
  identity?: IdentificationData;
786
767
  }
787
768
  export interface EventMetadata extends BaseEventMetadata {
788
- /**
789
- * Unique event ID.
790
- * Allows clients to ignore duplicate webhooks.
791
- */
769
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
792
770
  _id?: string;
793
771
  /**
794
- * Assumes actions are also always typed to an entity_type
795
- * 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`.
796
774
  */
797
775
  entityFqdn?: string;
798
776
  /**
799
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
800
- * This is although the created/updated/deleted notion is duplication of the oneof types
801
- * 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`.
802
779
  */
803
780
  slug?: string;
804
781
  /** ID of the entity associated with the event. */
805
782
  entityId?: string;
806
- /** 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`. */
807
784
  eventTime?: Date | null;
808
785
  /**
809
786
  * Whether the event was triggered as a result of a privacy regulation application
@@ -813,12 +790,8 @@ export interface EventMetadata extends BaseEventMetadata {
813
790
  /** If present, indicates the action that triggered the event. */
814
791
  originatedFrom?: string | null;
815
792
  /**
816
- * A sequence number defining the order of updates to the underlying entity.
817
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
818
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
819
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
820
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
821
- * 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.
822
795
  */
823
796
  entityEventSequence?: string | null;
824
797
  }
@@ -828,6 +801,8 @@ export interface RedirectSessionCreatedEnvelope {
828
801
  }
829
802
  /**
830
803
  * Triggered when a redirect session is created.
804
+ * @permissionScope Manage Stores
805
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
831
806
  * @permissionScope Manage Bookings Services and Settings
832
807
  * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
833
808
  * @permissionScope Manage Events
@@ -849,6 +824,7 @@ export interface RedirectSessionCreatedEnvelope {
849
824
  * @slug created
850
825
  */
851
826
  export declare function onRedirectSessionCreated(handler: (event: RedirectSessionCreatedEnvelope) => void | Promise<void>): void;
827
+ type RedirectSessionNonNullablePaths = `_id` | `fullUrl` | `urlDetails.endpoint` | `shortUrl`;
852
828
  /**
853
829
  * Creates a URL for redirecting a visitor from an external client site to a Wix page for Wix-managed functionality.
854
830
  *
@@ -861,9 +837,11 @@ export declare function onRedirectSessionCreated(handler: (event: RedirectSessio
861
837
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
862
838
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
863
839
  * @public
864
- * @requiredField intent
840
+ * @requiredField options.intent
865
841
  * @param options - Options for creating a redirect session.
866
842
  * @permissionId WIX_HEADLESS.WIX_URL_CREATE
843
+ * @permissionScope Manage Stores
844
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
867
845
  * @permissionScope Manage Bookings Services and Settings
868
846
  * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
869
847
  * @permissionScope Manage Events
@@ -882,7 +860,9 @@ export declare function onRedirectSessionCreated(handler: (event: RedirectSessio
882
860
  * @applicableIdentity VISITOR
883
861
  * @fqn wix.headless.v1.RedirectSessionService.CreateRedirectSession
884
862
  */
885
- export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<CreateRedirectSessionResponse & CreateRedirectSessionResponseNonNullableFields>;
863
+ export declare function createRedirectSession(options?: CreateRedirectSessionOptions): Promise<NonNullablePaths<CreateRedirectSessionResponse, {
864
+ [P in RedirectSessionNonNullablePaths]: `redirectSession.${P}`;
865
+ }[RedirectSessionNonNullablePaths]>>;
886
866
  export interface CreateRedirectSessionOptions extends CreateRedirectSessionOptionsIntentOneOf {
887
867
  /** Information required for generating a custom URL for a Wix Bookings checkout. */
888
868
  bookingsCheckout?: RedirectSessionBookingsCheckoutParams;
@@ -110,9 +110,11 @@ var WebhookIdentityType;
110
110
  * 1. Redirect your visitor to the URL provided in the response. This URL includes query parameters informing Wix where to redirect the visitor back to on your external site.
111
111
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
112
112
  * @public
113
- * @requiredField intent
113
+ * @requiredField options.intent
114
114
  * @param options - Options for creating a redirect session.
115
115
  * @permissionId WIX_HEADLESS.WIX_URL_CREATE
116
+ * @permissionScope Manage Stores
117
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
116
118
  * @permissionScope Manage Bookings Services and Settings
117
119
  * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
118
120
  * @permissionScope Manage Events
@@ -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;IACrB,mCAAmB,CAAA;IACnB,gDAAgD;IAChD,iCAAiB,CAAA;IACjB,gDAAgD;IAChD,qCAAqB,CAAA;IACrB,mDAAmD;IACnD,uCAAuB,CAAA;AACzB,CAAC,EATW,YAAY,4BA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AAO,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;AA5DD,sDA4DC"}
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,uB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,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"}
@@ -8,4 +8,4 @@ export declare const createRedirectSession: MaybeContext<BuildRESTFunction<typeo
8
8
  */
9
9
  export declare const onRedirectSessionCreated: ReturnType<typeof createEventModule<typeof publicOnRedirectSessionCreated>>;
10
10
  export { LocationType, Prompt, MembersAccountSection, AttachPagesResponseStatus, CallbackType, Status, WebhookIdentityType, } from './headless-v1-redirect-session-redirects.universal.js';
11
- export { RedirectSession, URLDetails, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, NestedTimeSlot, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionAuthParams, AuthorizeRequest, RedirectSessionMembersAccountParams, RedirectSessionStoresProductParams, RedirectSessionBookingsBookParams, CallbackParams, RedirectSessionPreferences, CustomMemberPaths, CreateRedirectSessionResponse, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, AttachPagesRequest, AttachPagesResponse, ValidateCallbackURLRequest, ValidateCallbackURLResponse, SignInURLRequest, SignInURLResponse, AttachAllTemplatesRequest, AttachAllTemplatesResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, CreateRedirectSessionResponseNonNullableFields, BaseEventMetadata, EventMetadata, RedirectSessionCreatedEnvelope, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, } from './headless-v1-redirect-session-redirects.universal.js';
11
+ export { RedirectSession, URLDetails, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, RedirectSessionBookingsCheckoutParams, SlotAvailability, Slot, SlotResource, Location, WaitingList, BookingPolicyViolations, NestedTimeSlot, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionAuthParams, AuthorizeRequest, RedirectSessionMembersAccountParams, RedirectSessionStoresProductParams, RedirectSessionBookingsBookParams, CallbackParams, RedirectSessionPreferences, CustomMemberPaths, CreateRedirectSessionResponse, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, AttachPagesRequest, AttachPagesResponse, ValidateCallbackURLRequest, ValidateCallbackURLResponse, SignInURLRequest, SignInURLResponse, AttachAllTemplatesRequest, AttachAllTemplatesResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, RedirectSessionCreatedEnvelope, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, } from './headless-v1-redirect-session-redirects.universal.js';
@@ -10,4 +10,4 @@ export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unk
10
10
  __responseType: Q;
11
11
  __originalResponseType: R;
12
12
  };
13
- export declare function createRedirectSession(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionResponse & ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionResponseNonNullableFields, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionResponse & ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionResponseNonNullableFields>;
13
+ export declare function createRedirectSession(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionRequest, ambassadorWixHeadlessV1RedirectSessionUniversalTypes.CreateRedirectSessionResponse, ambassadorWixHeadlessV1RedirectSessionTypes.CreateRedirectSessionResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.meta.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,sCAAsC,MAAM,kDAAkD,CAAC;AAsB3G,MAAM,UAAU,qBAAqB;IAUnC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.meta.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,sCAAsC,MAAM,kDAAkD,CAAC;AAsB3G,MAAM,UAAU,qBAAqB;IAQnC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,sCAAsC,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAExE,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,sBAAsB;QAC5B,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { EventDefinition, HttpClient } from '@wix/sdk-types';
2
- import { CreateRedirectSessionOptions, CreateRedirectSessionResponse, CreateRedirectSessionResponseNonNullableFields, RedirectSessionCreatedEnvelope } from './headless-v1-redirect-session-redirects.universal.js';
2
+ import { CreateRedirectSessionOptions, CreateRedirectSessionResponse, RedirectSessionCreatedEnvelope } from './headless-v1-redirect-session-redirects.universal.js';
3
3
  export declare const __metadata: {
4
4
  PACKAGE_NAME: string;
5
5
  };
@@ -18,7 +18,7 @@ interface CreateRedirectSessionSignature {
18
18
  * 1. Make sure the pages at the callback URLs you provided take care of the next stages in your visitor flow.
19
19
  * @param - Options for creating a redirect session.
20
20
  */
21
- (options?: CreateRedirectSessionOptions | undefined): Promise<CreateRedirectSessionResponse & CreateRedirectSessionResponseNonNullableFields>;
21
+ (options?: CreateRedirectSessionOptions | undefined): Promise<CreateRedirectSessionResponse>;
22
22
  }
23
23
  export declare const onRedirectSessionCreated: EventDefinition<RedirectSessionCreatedEnvelope, "wix.headless.v1.redirect_session_created">;
24
- export { ActionEvent, AttachAllTemplatesRequest, AttachAllTemplatesResponse, AttachPagesRequest, AttachPagesResponse, AttachPagesResponseStatus, AuthorizeRequest, BaseEventMetadata, BookingPolicyViolations, CallbackParams, CallbackType, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, CreateRedirectSessionResponse, CreateRedirectSessionResponseNonNullableFields, CustomMemberPaths, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, IdentificationData, IdentificationDataIdOneOf, Location, LocationType, MembersAccountSection, MessageEnvelope, NestedTimeSlot, Prompt, RedirectSession, RedirectSessionAuthParams, RedirectSessionBookingsBookParams, RedirectSessionBookingsCheckoutParams, RedirectSessionCreatedEnvelope, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionMembersAccountParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionPreferences, RedirectSessionStoresProductParams, RestoreInfo, SignInURLRequest, SignInURLResponse, Slot, SlotAvailability, SlotResource, Status, URLDetails, ValidateCallbackURLRequest, ValidateCallbackURLResponse, WaitingList, WebhookIdentityType, } from './headless-v1-redirect-session-redirects.universal.js';
24
+ export { ActionEvent, AttachAllTemplatesRequest, AttachAllTemplatesResponse, AttachPagesRequest, AttachPagesResponse, AttachPagesResponseStatus, AuthorizeRequest, BaseEventMetadata, BookingPolicyViolations, CallbackParams, CallbackType, CreateAnonymousRedirectSessionRequest, CreateAnonymousRedirectSessionRequestIntentOneOf, CreateAnonymousRedirectSessionResponse, CreateRedirectSessionOptions, CreateRedirectSessionOptionsIntentOneOf, CreateRedirectSessionRequest, CreateRedirectSessionRequestIntentOneOf, CreateRedirectSessionResponse, CustomMemberPaths, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, IdentificationData, IdentificationDataIdOneOf, Location, LocationType, MembersAccountSection, MessageEnvelope, NestedTimeSlot, Prompt, RedirectSession, RedirectSessionAuthParams, RedirectSessionBookingsBookParams, RedirectSessionBookingsCheckoutParams, RedirectSessionCreatedEnvelope, RedirectSessionEcomCheckoutParams, RedirectSessionEventsCheckoutParams, RedirectSessionLoginParams, RedirectSessionLogoutParams, RedirectSessionMembersAccountParams, RedirectSessionPaidPlansCheckoutParams, RedirectSessionPreferences, RedirectSessionStoresProductParams, RestoreInfo, SignInURLRequest, SignInURLResponse, Slot, SlotAvailability, SlotResource, Status, URLDetails, ValidateCallbackURLRequest, ValidateCallbackURLResponse, WaitingList, WebhookIdentityType, } from './headless-v1-redirect-session-redirects.universal.js';
@@ -1 +1 @@
1
- {"version":3,"file":"headless-v1-redirect-session-redirects.public.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAKL,qBAAqB,IAAI,8BAA8B,GACxD,MAAM,uDAAuD,CAAC;AAE/D,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAE7D,MAAM,UAAU,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,OAAsC,EAAE,EAAE,CAChD,8BAA8B,CAC5B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAsBD,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CACrD,0CAA0C,EAC1C,IAAI,EACJ,CAAC,KAAqC,EAAE,EAAE,CACxC,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;KACxC;CACF,CAAC,CACH,CACJ,EAAkC,CAAC;AAEpC,OAAO,EAML,yBAAyB,EAKzB,YAAY,EAoBZ,YAAY,EACZ,qBAAqB,EAGrB,MAAM,EAoBN,MAAM,EAKN,mBAAmB,GACpB,MAAM,uDAAuD,CAAC"}
1
+ {"version":3,"file":"headless-v1-redirect-session-redirects.public.js","sourceRoot":"","sources":["../../../src/headless-v1-redirect-session-redirects.public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uCAAuC,EAAE,MAAM,yCAAyC,CAAC;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4CAA4C,CAAC;AAClG,OAAO,EAAE,cAAc,EAAE,MAAM,kDAAkD,CAAC;AAClF,OAAO,EAAE,eAAe,EAAc,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAIL,qBAAqB,IAAI,8BAA8B,GACxD,MAAM,uDAAuD,CAAC;AAE/D,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,gBAAgB,EAAE,CAAC;AAE7D,MAAM,UAAU,qBAAqB,CACnC,UAAsB;IAEtB,OAAO,CAAC,OAAsC,EAAE,EAAE,CAChD,8BAA8B,CAC5B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAqBD,MAAM,CAAC,MAAM,wBAAwB,GAAG,eAAe,CACrD,0CAA0C,EAC1C,IAAI,EACJ,CAAC,KAAqC,EAAE,EAAE,CACxC,uCAAuC,CACrC,cAAc,CAAC,KAAK,EAAE;IACpB;QACE,WAAW,EAAE,oCAAoC;QACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,oBAAoB,EAAE,CAAC;KACxC;CACF,CAAC,CACH,CACJ,EAAkC,CAAC;AAEpC,OAAO,EAML,yBAAyB,EAKzB,YAAY,EAmBZ,YAAY,EACZ,qBAAqB,EAGrB,MAAM,EAoBN,MAAM,EAKN,mBAAmB,GACpB,MAAM,uDAAuD,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 {
@@ -761,16 +753,3 @@ export declare enum WebhookIdentityType {
761
753
  WIX_USER = "WIX_USER",
762
754
  APP = "APP"
763
755
  }
764
- interface URLDetailsNonNullableFields {
765
- endpoint: string;
766
- }
767
- interface RedirectSessionNonNullableFields {
768
- id: string;
769
- fullUrl: string;
770
- urlDetails?: URLDetailsNonNullableFields;
771
- shortUrl: string;
772
- }
773
- export interface CreateRedirectSessionResponseNonNullableFields {
774
- redirectSession?: RedirectSessionNonNullableFields;
775
- }
776
- export {};
@@ -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,I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b,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,Q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