@wix/auto_sdk_events_notifications 1.0.20 → 1.0.21

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 (33) hide show
  1. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +1 -1
  2. package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +1 -1
  3. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +169 -101
  4. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js +22 -21
  5. package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +1 -1
  6. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts +181 -120
  7. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +25 -23
  8. package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +1 -1
  9. package/build/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +1 -1
  10. package/build/es/src/events-notifications-v2-notification-config-notifications.public.js.map +1 -1
  11. package/build/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +169 -101
  12. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js +22 -21
  13. package/build/es/src/events-notifications-v2-notification-config-notifications.types.js.map +1 -1
  14. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.d.ts +181 -120
  15. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js +25 -23
  16. package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +1 -1
  17. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +1 -1
  18. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +1 -1
  19. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +169 -101
  20. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js +22 -21
  21. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +1 -1
  22. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts +181 -120
  23. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +25 -23
  24. package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +1 -1
  25. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +1 -1
  26. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js.map +1 -1
  27. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +169 -101
  28. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js +22 -21
  29. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js.map +1 -1
  30. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.d.ts +181 -120
  31. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js +25 -23
  32. package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +1 -1
  33. package/package.json +2 -2
@@ -230,25 +230,21 @@ export interface DomainEvent extends DomainEventBodyOneOf {
230
230
  updatedEvent?: EntityUpdatedEvent;
231
231
  deletedEvent?: EntityDeletedEvent;
232
232
  actionEvent?: ActionEvent;
233
- /**
234
- * Unique event ID.
235
- * Allows clients to ignore duplicate webhooks.
236
- */
233
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
237
234
  _id?: string;
238
235
  /**
239
- * Assumes actions are also always typed to an entity_type
240
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
236
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
237
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
241
238
  */
242
239
  entityFqdn?: string;
243
240
  /**
244
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
245
- * This is although the created/updated/deleted notion is duplication of the oneof types
246
- * Example: created/updated/deleted/started/completed/email_opened
241
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
242
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
247
243
  */
248
244
  slug?: string;
249
245
  /** ID of the entity associated with the event. */
250
246
  entityId?: string;
251
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
247
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
252
248
  eventTime?: Date | null;
253
249
  /**
254
250
  * Whether the event was triggered as a result of a privacy regulation application
@@ -258,12 +254,8 @@ export interface DomainEvent extends DomainEventBodyOneOf {
258
254
  /** If present, indicates the action that triggered the event. */
259
255
  originatedFrom?: string | null;
260
256
  /**
261
- * A sequence number defining the order of updates to the underlying entity.
262
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
263
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
264
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
265
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
266
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
257
+ * 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.
258
+ * 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.
267
259
  */
268
260
  entityEventSequence?: string | null;
269
261
  }
@@ -289,7 +281,7 @@ export interface EntityUpdatedEvent {
289
281
  currentEntity?: string;
290
282
  }
291
283
  export interface EntityDeletedEvent {
292
- /** Entity that was deleted */
284
+ /** Entity that was deleted. */
293
285
  deletedEntity?: string | null;
294
286
  }
295
287
  export interface ActionEvent {
@@ -539,7 +531,7 @@ export interface Event {
539
531
  title?: string;
540
532
  /** Event description. */
541
533
  description?: string;
542
- /** Rich-text content displayed in Wix UI - "About Event" section (HTML). */
534
+ /** Rich-text content that are displayed in a site's "About Event" section (HTML). */
543
535
  about?: string;
544
536
  /** Main event image. */
545
537
  mainImage?: string;
@@ -586,7 +578,7 @@ export interface Event {
586
578
  categories?: Category[];
587
579
  /** Visual settings for event. */
588
580
  eventDisplaySettings?: EventDisplaySettings;
589
- /** Rich content displayed in Wix UI - "About Event" section. Successor to `about` field. */
581
+ /** Rich content that are displayed in a site's "About Event" section. Successor to `about` field. */
590
582
  longDescription?: RichContent;
591
583
  /**
592
584
  * Event publish timestamp.
@@ -790,7 +782,7 @@ export interface Money {
790
782
  */
791
783
  amount?: string;
792
784
  /**
793
- * ISO 4217 format of the currency e.g., `USD`.
785
+ * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
794
786
  * @format CURRENCY
795
787
  */
796
788
  currency?: string;
@@ -831,7 +823,7 @@ export interface SiteUrl {
831
823
  path?: string;
832
824
  }
833
825
  /**
834
- * The form defines which elements are rendered in the Wix UI during the registration process (RSVP or checkout).
826
+ * The form defines which elements are displayed to a site visitor during the registration process (RSVP or checkout).
835
827
  * It also contains customizable messages and labels.
836
828
  *
837
829
  *
@@ -846,7 +838,10 @@ export interface SiteUrl {
846
838
  export interface Form {
847
839
  /** Nested fields as an ordered list. */
848
840
  controls?: InputControl[];
849
- /** Set of configured form messages. */
841
+ /**
842
+ * Set of defined form messages displayed in the UI before, during, and after a registration flow.
843
+ * Includes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
844
+ */
850
845
  messages?: FormMessages;
851
846
  }
852
847
  /**
@@ -856,17 +851,17 @@ export interface Form {
856
851
  export interface InputControl {
857
852
  /** Field control type. */
858
853
  type?: InputControlTypeWithLiterals;
859
- /** Whether control is mandatory (such as name & email). When true, only label can be changed. */
854
+ /** Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed. */
860
855
  system?: boolean;
861
856
  /**
862
- * Deprecated: Use `id`.
857
+ * Deprecated: Use `id` or `_id`.
863
858
  * @deprecated
864
859
  */
865
860
  name?: string;
866
861
  /** Child inputs. */
867
862
  inputs?: Input[];
868
863
  /**
869
- * Deprecated: use `inputs.label`.
864
+ * *Deprecated:** Use `controls.inputs.label`.
870
865
  * @deprecated
871
866
  */
872
867
  label?: string;
@@ -875,7 +870,7 @@ export interface InputControl {
875
870
  /** Unique control ID. */
876
871
  _id?: string;
877
872
  /**
878
- * Whether input control is deleted.
873
+ * Whether the input control is deleted.
879
874
  * @readonly
880
875
  */
881
876
  deleted?: boolean | null;
@@ -883,37 +878,37 @@ export interface InputControl {
883
878
  export declare enum InputControlType {
884
879
  /** Single text value field. */
885
880
  INPUT = "INPUT",
886
- /** Single text value field. */
881
+ /** Single text value field with multiple lines. */
887
882
  TEXTAREA = "TEXTAREA",
888
- /** Single-choice field of predefined values. */
883
+ /** Single-choice field with predefined values. */
889
884
  DROPDOWN = "DROPDOWN",
890
- /** Single-choice field of predefined values. */
885
+ /** Single-choice field with predefined values. */
891
886
  RADIO = "RADIO",
892
- /** Multiple-choice field of predefined values. */
887
+ /** Multiple-choice field with predefined values. */
893
888
  CHECKBOX = "CHECKBOX",
894
- /** First and last name fields. */
889
+ /** Fields for entering first and last names. */
895
890
  NAME = "NAME",
896
- /** Additional guests and respective guest names fields. */
891
+ /** Fields for additional guests and their respective names. */
897
892
  GUEST_CONTROL = "GUEST_CONTROL",
898
893
  /** Single-line address field. */
899
894
  ADDRESS_SHORT = "ADDRESS_SHORT",
900
- /** Full address field. */
895
+ /** Full address field with multiple lines. */
901
896
  ADDRESS_FULL = "ADDRESS_FULL",
902
- /** Year, month and day fields. */
897
+ /** Fields for entering year, month, and day. */
903
898
  DATE = "DATE"
904
899
  }
905
900
  /** @enumType */
906
901
  export type InputControlTypeWithLiterals = InputControlType | 'INPUT' | 'TEXTAREA' | 'DROPDOWN' | 'RADIO' | 'CHECKBOX' | 'NAME' | 'GUEST_CONTROL' | 'ADDRESS_SHORT' | 'ADDRESS_FULL' | 'DATE';
907
- /** An input of one or multiple text values */
902
+ /** Child inputs. */
908
903
  export interface Input {
909
904
  /** Field name. */
910
905
  name?: string;
911
906
  /**
912
- * Deprecated: use `ValueType.TEXT_ARRAY`.
907
+ * *Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`.
913
908
  * @deprecated
914
909
  */
915
910
  array?: boolean;
916
- /** Main field label */
911
+ /** Main field label. */
917
912
  label?: string;
918
913
  /** Additional labels for multi-valued fields such as address. */
919
914
  additionalLabels?: Record<string, string>;
@@ -929,17 +924,20 @@ export interface Input {
929
924
  */
930
925
  type?: ValueTypeWithLiterals;
931
926
  /**
932
- * A maximum accepted values for array input.
933
- * Only applicable for inputs of valueType: TEXT_ARRAY.
927
+ * The maximum number of accepted values for array input.
928
+ *
929
+ * **Note:** Only applicable for `TEXT_ARRAY` input fields.
934
930
  */
935
931
  maxSize?: number | null;
936
932
  /**
937
- * Preselected option.
938
- * Currently only applicable for dropdown.
933
+ * Default option initially selected when an input has multiple choices.
934
+ *
935
+ * Defaults to first (0th) option, if not configured.
936
+ * Currently only applicable for `type.dropdown`.
939
937
  */
940
938
  defaultOptionSelection?: OptionSelection;
941
939
  /**
942
- * Additional labels for multi-valued fields such as address.
940
+ * Additional labels for multi-valued fields, such as address.
943
941
  * @readonly
944
942
  */
945
943
  labels?: Label[];
@@ -959,12 +957,12 @@ export type ValueTypeWithLiterals = ValueType | 'TEXT' | 'NUMBER' | 'TEXT_ARRAY'
959
957
  */
960
958
  export interface OptionSelection extends OptionSelectionSelectedOptionOneOf {
961
959
  /**
962
- * 0-based index from predefined `input.options` which is selected initially.
960
+ * 0-based index from predefined `controls.inputs.options` which is initial selection.
963
961
  * @max 199
964
962
  */
965
963
  optionIndex?: number;
966
964
  /**
967
- * Placeholder hint describing expected choices (such as "Please select").
965
+ * Placeholder hint describing expected choices, such as "Please select".
968
966
  * Considered an empty choice.
969
967
  * @maxLength 200
970
968
  */
@@ -973,12 +971,12 @@ export interface OptionSelection extends OptionSelectionSelectedOptionOneOf {
973
971
  /** @oneof */
974
972
  export interface OptionSelectionSelectedOptionOneOf {
975
973
  /**
976
- * 0-based index from predefined `input.options` which is selected initially.
974
+ * 0-based index from predefined `controls.inputs.options` which is initial selection.
977
975
  * @max 199
978
976
  */
979
977
  optionIndex?: number;
980
978
  /**
981
- * Placeholder hint describing expected choices (such as "Please select").
979
+ * Placeholder hint describing expected choices, such as "Please select".
982
980
  * Considered an empty choice.
983
981
  * @maxLength 200
984
982
  */
@@ -995,7 +993,7 @@ export interface Label {
995
993
  * It enables configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
996
994
  */
997
995
  export interface FormMessages {
998
- /** RSVP form messages. */
996
+ /** RSVP form ([SDK](https://dev.wix.com/docs/sdk/backend-modules/events/rsvp-v2/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction)) messages. */
999
997
  rsvp?: RsvpFormMessages;
1000
998
  /** Checkout form messages. */
1001
999
  checkout?: CheckoutFormMessages;
@@ -1005,15 +1003,15 @@ export interface FormMessages {
1005
1003
  ticketsUnavailable?: TicketsUnavailableMessages;
1006
1004
  }
1007
1005
  export interface RsvpFormMessages {
1008
- /** Label text indicating RSVP `YES` response. */
1006
+ /** Label text indicating RSVP's `status` is `"YES"`. */
1009
1007
  rsvpYesOption?: string;
1010
- /** Label text indicating RSVP `NO` response. */
1008
+ /** Label text indicating RSVP's `status` is `"NO"`. */
1011
1009
  rsvpNoOption?: string;
1012
- /** Messages shown for RSVP = `YES`. */
1010
+ /** Messages displayed when an RSVP's `status` is set to `"YES"`. */
1013
1011
  positiveMessages?: Positive;
1014
- /** Messages shown for RSVP = `WAITING` (when event is full and waitlist is available). */
1012
+ /** Messages displayed when an RSVP's `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available). */
1015
1013
  waitlistMessages?: Positive;
1016
- /** Messages shown for RSVP = `NO`. */
1014
+ /** Messages displayed when an RSVP's `status` is set to `"NO"`. */
1017
1015
  negativeMessages?: Negative;
1018
1016
  /** "Submit form" call-to-action label text. */
1019
1017
  submitActionLabel?: string;
@@ -1511,17 +1509,32 @@ export interface ButtonData {
1511
1509
  link?: V1Link;
1512
1510
  }
1513
1511
  export interface Border {
1514
- /** Border width in pixels. */
1512
+ /**
1513
+ * Deprecated: Use `borderWidth` in `styles` instead.
1514
+ * @deprecated
1515
+ */
1515
1516
  width?: number | null;
1516
- /** Border radius in pixels. */
1517
+ /**
1518
+ * Deprecated: Use `borderRadius` in `styles` instead.
1519
+ * @deprecated
1520
+ */
1517
1521
  radius?: number | null;
1518
1522
  }
1519
1523
  export interface Colors {
1520
- /** The text color as a hexadecimal value. */
1524
+ /**
1525
+ * Deprecated: Use `textColor` in `styles` instead.
1526
+ * @deprecated
1527
+ */
1521
1528
  text?: string | null;
1522
- /** The border color as a hexadecimal value. */
1529
+ /**
1530
+ * Deprecated: Use `borderColor` in `styles` instead.
1531
+ * @deprecated
1532
+ */
1523
1533
  border?: string | null;
1524
- /** The background color as a hexadecimal value. */
1534
+ /**
1535
+ * Deprecated: Use `backgroundColor` in `styles` instead.
1536
+ * @deprecated
1537
+ */
1525
1538
  background?: string | null;
1526
1539
  }
1527
1540
  export interface PluginContainerData {
@@ -1604,10 +1617,57 @@ export declare enum ButtonDataType {
1604
1617
  /** @enumType */
1605
1618
  export type ButtonDataTypeWithLiterals = ButtonDataType | 'LINK' | 'ACTION';
1606
1619
  export interface Styles {
1607
- /** Border attributes. */
1620
+ /**
1621
+ * Deprecated: Use `borderWidth` and `borderRadius` instead.
1622
+ * @deprecated
1623
+ */
1608
1624
  border?: Border;
1609
- /** Color attributes. */
1625
+ /**
1626
+ * Deprecated: Use `textColor`, `borderColor` and `backgroundColor` instead.
1627
+ * @deprecated
1628
+ */
1610
1629
  colors?: Colors;
1630
+ /** Border width in pixels. */
1631
+ borderWidth?: number | null;
1632
+ /**
1633
+ * Deprecated: Use `borderWidth` for normal/hover states instead.
1634
+ * @deprecated
1635
+ */
1636
+ borderWidthHover?: number | null;
1637
+ /** Border radius in pixels. */
1638
+ borderRadius?: number | null;
1639
+ /**
1640
+ * Border color as a hexadecimal value.
1641
+ * @format COLOR_HEX
1642
+ */
1643
+ borderColor?: string | null;
1644
+ /**
1645
+ * Border color as a hexadecimal value (hover state).
1646
+ * @format COLOR_HEX
1647
+ */
1648
+ borderColorHover?: string | null;
1649
+ /**
1650
+ * Text color as a hexadecimal value.
1651
+ * @format COLOR_HEX
1652
+ */
1653
+ textColor?: string | null;
1654
+ /**
1655
+ * Text color as a hexadecimal value (hover state).
1656
+ * @format COLOR_HEX
1657
+ */
1658
+ textColorHover?: string | null;
1659
+ /**
1660
+ * Background color as a hexadecimal value.
1661
+ * @format COLOR_HEX
1662
+ */
1663
+ backgroundColor?: string | null;
1664
+ /**
1665
+ * Background color as a hexadecimal value (hover state).
1666
+ * @format COLOR_HEX
1667
+ */
1668
+ backgroundColorHover?: string | null;
1669
+ /** Button size option, one of `SMALL`, `MEDIUM` or `LARGE`. Defaults to `MEDIUM`. */
1670
+ buttonSize?: string | null;
1611
1671
  }
1612
1672
  export interface V1Link extends V1LinkDataOneOf {
1613
1673
  /** The absolute URL for the linked document. */
@@ -2354,6 +2414,8 @@ export interface Decoration extends DecorationDataOneOf {
2354
2414
  underlineData?: boolean | null;
2355
2415
  /** Data for a spoiler decoration. */
2356
2416
  spoilerData?: SpoilerData;
2417
+ /** Data for a strikethrough decoration. Defaults to `true`. */
2418
+ strikethroughData?: boolean | null;
2357
2419
  /** The type of decoration to apply. */
2358
2420
  type?: DecorationTypeWithLiterals;
2359
2421
  }
@@ -2377,6 +2439,8 @@ export interface DecorationDataOneOf {
2377
2439
  underlineData?: boolean | null;
2378
2440
  /** Data for a spoiler decoration. */
2379
2441
  spoilerData?: SpoilerData;
2442
+ /** Data for a strikethrough decoration. Defaults to `true`. */
2443
+ strikethroughData?: boolean | null;
2380
2444
  }
2381
2445
  export declare enum DecorationType {
2382
2446
  BOLD = "BOLD",
@@ -2388,10 +2452,11 @@ export declare enum DecorationType {
2388
2452
  LINK = "LINK",
2389
2453
  COLOR = "COLOR",
2390
2454
  FONT_SIZE = "FONT_SIZE",
2391
- EXTERNAL = "EXTERNAL"
2455
+ EXTERNAL = "EXTERNAL",
2456
+ STRIKETHROUGH = "STRIKETHROUGH"
2392
2457
  }
2393
2458
  /** @enumType */
2394
- export type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL';
2459
+ export type DecorationTypeWithLiterals = DecorationType | 'BOLD' | 'ITALIC' | 'UNDERLINE' | 'SPOILER' | 'ANCHOR' | 'MENTION' | 'LINK' | 'COLOR' | 'FONT_SIZE' | 'EXTERNAL' | 'STRIKETHROUGH';
2395
2460
  export interface AnchorData {
2396
2461
  /** The target node's ID. */
2397
2462
  anchor?: string;
@@ -2756,46 +2821,47 @@ export interface Badge {
2756
2821
  export declare enum Type {
2757
2822
  /** Unknown badge type. */
2758
2823
  UNKNOWN_BADGE_TYPE = "UNKNOWN_BADGE_TYPE",
2759
- /** Urgent badge type. */
2760
- URGENT = "URGENT",
2761
- /** Informational badge type. */
2762
- INFO = "INFO",
2763
- /** General badge type. */
2764
- GENERAL = "GENERAL"
2824
+ /** 1st priority badge type. */
2825
+ FIRST_PRIORITY = "FIRST_PRIORITY",
2826
+ /** 2nd priority badge type. */
2827
+ SECOND_PRIORITY = "SECOND_PRIORITY",
2828
+ /** 3rd priority badge type. */
2829
+ THIRD_PRIORITY = "THIRD_PRIORITY"
2765
2830
  }
2766
2831
  /** @enumType */
2767
- export type TypeWithLiterals = Type | 'UNKNOWN_BADGE_TYPE' | 'URGENT' | 'INFO' | 'GENERAL';
2832
+ export type TypeWithLiterals = Type | 'UNKNOWN_BADGE_TYPE' | 'FIRST_PRIORITY' | 'SECOND_PRIORITY' | 'THIRD_PRIORITY';
2833
+ /** Triggered when an order is confirmed. */
2768
2834
  export interface OrderConfirmed {
2769
- /** Order confirmation timestamp in ISO UTC. */
2835
+ /** Date and time the order was confirmed. */
2770
2836
  timestamp?: Date | null;
2771
2837
  /**
2772
- * Site language when Order initiated
2838
+ * Site language when the order was initiated.
2773
2839
  * @format LANGUAGE
2774
2840
  */
2775
2841
  language?: string | null;
2776
2842
  /** Notifications silenced for this domain event. */
2777
2843
  silent?: boolean | null;
2778
2844
  /**
2779
- * Locale in which Order was created.
2845
+ * Locale in which the order was created.
2780
2846
  * @format LANGUAGE_TAG
2781
2847
  */
2782
2848
  locale?: string | null;
2783
2849
  /**
2784
- * Event ID.
2850
+ * Event ID to which the order belongs.
2785
2851
  * @format GUID
2786
2852
  */
2787
2853
  eventId?: string;
2788
2854
  /** Unique order number. */
2789
2855
  orderNumber?: string;
2790
- /** Contact ID associated with this order. */
2856
+ /** Contact ID associated with the order. */
2791
2857
  contactId?: string;
2792
2858
  /**
2793
- * Member ID associated with this order.
2859
+ * Member ID associated with the order.
2794
2860
  * @format GUID
2795
2861
  */
2796
2862
  memberId?: string | null;
2797
2863
  /**
2798
- * Order created timestamp
2864
+ * Date and time the order was created.
2799
2865
  * @readonly
2800
2866
  */
2801
2867
  created?: Date | null;
@@ -2815,7 +2881,7 @@ export interface OrderConfirmed {
2815
2881
  tickets?: Ticket[];
2816
2882
  /** Invoice. */
2817
2883
  invoice?: Invoice;
2818
- /** Reservation ID associated with this order. */
2884
+ /** Reservation ID associated with the order. */
2819
2885
  reservationId?: string;
2820
2886
  }
2821
2887
  export interface FormResponse {
@@ -2837,7 +2903,7 @@ export interface InputValue {
2837
2903
  */
2838
2904
  value?: string;
2839
2905
  /**
2840
- * Multiple selection values. For example, the array is filled if several checkboxes are ticked.
2906
+ * Multiple input values. For example, the array is filled if several checkboxes are ticked.
2841
2907
  * @maxSize 100
2842
2908
  * @maxLength 5000
2843
2909
  */
@@ -2906,17 +2972,17 @@ export interface StandardDetails {
2906
2972
  iso31662?: string | null;
2907
2973
  }
2908
2974
  export declare enum OrderStatus {
2909
- /** Order status not available for this request fieldset. */
2975
+ /** Order status is not available for this request fieldset. */
2910
2976
  NA_ORDER_STATUS = "NA_ORDER_STATUS",
2911
- /** Order is confirmed and payment isn't required. */
2977
+ /** Order is confirmed, no payment is required. */
2912
2978
  FREE = "FREE",
2913
- /** Order is paid for but the payment gateway has suspended the payment. */
2979
+ /** Order was paid, but the payment gateway suspended the payment. */
2914
2980
  PENDING = "PENDING",
2915
- /** Order is paid via a payment gateway. */
2981
+ /** Order is paid. */
2916
2982
  PAID = "PAID",
2917
- /** Order is confirmed but must be paid via offline payment. Status needs to be manually updated to `PAID`. */
2983
+ /** Order is confirmed but has be paid via offline payment. Status needs to be manually updated to `"PAID"`. */
2918
2984
  OFFLINE_PENDING = "OFFLINE_PENDING",
2919
- /** Order is awaiting payment at the cashier. */
2985
+ /** Order is awaiting for payment at the cashier. */
2920
2986
  INITIATED = "INITIATED",
2921
2987
  /** Order is canceled. */
2922
2988
  CANCELED = "CANCELED",
@@ -2980,7 +3046,7 @@ export interface Ticket {
2980
3046
  canceled?: boolean | null;
2981
3047
  }
2982
3048
  export interface CheckIn {
2983
- /** Time of check-in */
3049
+ /** Time of check-in. */
2984
3050
  created?: Date | null;
2985
3051
  }
2986
3052
  export interface OnlineConferencingLogin {
@@ -3003,14 +3069,14 @@ export interface Invoice {
3003
3069
  * @deprecated
3004
3070
  */
3005
3071
  total?: Money;
3006
- /** Discount applied to cart. */
3072
+ /** Discount applied to a cart. */
3007
3073
  discount?: Discount;
3008
- /** Tax applied to cart. */
3074
+ /** Tax applied to a cart. */
3009
3075
  tax?: Tax;
3010
3076
  /** Total cart amount before discount, tax, and fees. */
3011
3077
  subTotal?: Money;
3012
3078
  /**
3013
- * Total amount of cart after discount, tax, and fees.
3079
+ * Total amount of a cart after discount, tax, and fees.
3014
3080
  * Grand total is calculated in the following order:
3015
3081
  * 1. Total prices of all items in the cart are calculated.
3016
3082
  * 2. Discount is subtracted from the cart (if applicable).
@@ -3025,7 +3091,7 @@ export interface Invoice {
3025
3091
  fees?: Fee[];
3026
3092
  /** Total revenue, excluding fees. (Taxes and payment provider fees are not deducted). */
3027
3093
  revenue?: Money;
3028
- /** URL to invoice preview. Returned only if order is paid. */
3094
+ /** Invoice preview URL. Only returned if the order is paid. */
3029
3095
  previewUrl?: string | null;
3030
3096
  }
3031
3097
  export interface Item {
@@ -3059,7 +3125,7 @@ export interface Item {
3059
3125
  export interface Discount {
3060
3126
  /** Total discount amount. */
3061
3127
  amount?: Money;
3062
- /** Total charge after applied discount. */
3128
+ /** Total sum after the discount. */
3063
3129
  afterDiscount?: Money;
3064
3130
  /**
3065
3131
  * Discount coupon code.
@@ -3095,11 +3161,11 @@ export interface DiscountItemDiscountOneOf {
3095
3161
  paidPlan?: PaidPlanDiscount;
3096
3162
  }
3097
3163
  export interface CouponDiscount {
3098
- /** Discount coupon name. */
3164
+ /** Discount coupon name. **Deprecated:** Use `invoice.discounts.coupon.name` instead. */
3099
3165
  name?: string;
3100
- /** Discount coupon code. */
3166
+ /** Discount coupon code. **Deprecated:** Use `invoice.discounts.coupon.code` instead. */
3101
3167
  code?: string;
3102
- /** Discount coupon ID. */
3168
+ /** Discount coupon ID. **Deprecated:** Use `invoice.discounts.coupon.couponId` instead. */
3103
3169
  couponId?: string;
3104
3170
  }
3105
3171
  export interface PaidPlanDiscount extends PaidPlanDiscountDiscountOneOf {
@@ -3163,7 +3229,7 @@ export type FeeNameWithLiterals = FeeName | 'WIX_FEE';
3163
3229
  export declare enum FeeType {
3164
3230
  /** Fee is added to the ticket price at checkout. */
3165
3231
  FEE_ADDED = "FEE_ADDED",
3166
- /** Seller absorbs the fee. It is deducted from the ticket price. */
3232
+ /** Seller absorbs the fee. It's deducted from the ticket price. */
3167
3233
  FEE_INCLUDED = "FEE_INCLUDED",
3168
3234
  /** Fee is added to the ticket price at checkout. */
3169
3235
  FEE_ADDED_AT_CHECKOUT = "FEE_ADDED_AT_CHECKOUT"
@@ -3315,23 +3381,24 @@ export interface TimeDuration {
3315
3381
  */
3316
3382
  minutes?: number;
3317
3383
  }
3384
+ /** Triggered when an order is paid. */
3318
3385
  export interface OrderPaid {
3319
- /** Order paid timestamp in ISO UTC. */
3386
+ /** Date and time the order was paid. */
3320
3387
  timestamp?: Date | null;
3321
3388
  /**
3322
- * Site language when Order initiated
3389
+ * Site language when the order was initiated.
3323
3390
  * @format LANGUAGE
3324
3391
  */
3325
3392
  language?: string | null;
3326
3393
  /** Notifications silenced for this domain event. */
3327
3394
  silent?: boolean | null;
3328
3395
  /**
3329
- * Locale in which Order was created.
3396
+ * Locale in which the order was created.
3330
3397
  * @format LANGUAGE_TAG
3331
3398
  */
3332
3399
  locale?: string | null;
3333
3400
  /**
3334
- * Event ID.
3401
+ * Event ID to which the order belongs.
3335
3402
  * @format GUID
3336
3403
  */
3337
3404
  eventId?: string;
@@ -3350,7 +3417,7 @@ export interface OrderPaid {
3350
3417
  */
3351
3418
  memberId?: string | null;
3352
3419
  /**
3353
- * Order created timestamp
3420
+ * Date and time the order was created.
3354
3421
  * @readonly
3355
3422
  */
3356
3423
  created?: Date | null;
@@ -3427,9 +3494,10 @@ export interface TicketPdfResolveDelayed {
3427
3494
  */
3428
3495
  documentId?: string | null;
3429
3496
  }
3497
+ /** Triggered when an order is canceled. */
3430
3498
  export interface OrderCanceled {
3431
3499
  /**
3432
- * Event ID.
3500
+ * Event ID to which the order belongs.
3433
3501
  * @format GUID
3434
3502
  */
3435
3503
  eventId?: string;
@@ -3439,12 +3507,12 @@ export interface OrderCanceled {
3439
3507
  */
3440
3508
  orderNumber?: string;
3441
3509
  /**
3442
- * Reservation ID associated with this order.
3510
+ * Reservation ID associated with the order.
3443
3511
  * @format GUID
3444
3512
  */
3445
3513
  reservationId?: string;
3446
3514
  /**
3447
- * Contact ID associated with this order.
3515
+ * Contact ID associated with the order.
3448
3516
  * @maxLength 36
3449
3517
  */
3450
3518
  contactId?: string;
@@ -3663,25 +3731,21 @@ export interface BaseEventMetadata {
3663
3731
  identity?: IdentificationData;
3664
3732
  }
3665
3733
  export interface EventMetadata extends BaseEventMetadata {
3666
- /**
3667
- * Unique event ID.
3668
- * Allows clients to ignore duplicate webhooks.
3669
- */
3734
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
3670
3735
  _id?: string;
3671
3736
  /**
3672
- * Assumes actions are also always typed to an entity_type
3673
- * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
3737
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
3738
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
3674
3739
  */
3675
3740
  entityFqdn?: string;
3676
3741
  /**
3677
- * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
3678
- * This is although the created/updated/deleted notion is duplication of the oneof types
3679
- * Example: created/updated/deleted/started/completed/email_opened
3742
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
3743
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
3680
3744
  */
3681
3745
  slug?: string;
3682
3746
  /** ID of the entity associated with the event. */
3683
3747
  entityId?: string;
3684
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
3748
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
3685
3749
  eventTime?: Date | null;
3686
3750
  /**
3687
3751
  * Whether the event was triggered as a result of a privacy regulation application
@@ -3691,12 +3755,8 @@ export interface EventMetadata extends BaseEventMetadata {
3691
3755
  /** If present, indicates the action that triggered the event. */
3692
3756
  originatedFrom?: string | null;
3693
3757
  /**
3694
- * A sequence number defining the order of updates to the underlying entity.
3695
- * For example, given that some entity was updated at 16:00 and than again at 16:01,
3696
- * it is guaranteed that the sequence number of the second update is strictly higher than the first.
3697
- * As the consumer, you can use this value to ensure that you handle messages in the correct order.
3698
- * To do so, you will need to persist this number on your end, and compare the sequence number from the
3699
- * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
3758
+ * 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.
3759
+ * 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.
3700
3760
  */
3701
3761
  entityEventSequence?: string | null;
3702
3762
  }
@@ -3753,15 +3813,16 @@ type NotificationConfigNonNullablePaths = `rsvpConfirmation.notificationType` |
3753
3813
  * Triggers notification
3754
3814
  * @public
3755
3815
  * @documentationMaturity preview
3756
- * @requiredField guests
3757
- * @requiredField notification
3816
+ * @requiredField options
3817
+ * @requiredField options.guests
3818
+ * @requiredField options.notification
3758
3819
  * @permissionId WIX_EVENTS.MANAGE
3759
3820
  * @permissionScope Manage Events
3760
3821
  * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
3761
3822
  * @applicableIdentity APP
3762
3823
  * @fqn wix.events.notifications.v2.NotificationService.TriggerNotification
3763
3824
  */
3764
- export declare function triggerNotification(options?: TriggerNotificationOptions): Promise<void>;
3825
+ export declare function triggerNotification(options: TriggerNotificationOptions): Promise<void>;
3765
3826
  export interface TriggerNotificationOptions extends TriggerNotificationOptionsNotificationOneOf, TriggerNotificationOptionsGuestsOneOf {
3766
3827
  /** Email notification type */
3767
3828
  emailNotificationType?: EmailNotificationTypeWithLiterals;