@wix/auto_sdk_events_notifications 1.0.27 → 1.0.29

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.
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { TriggerNotificationOptions, ResolveNotificationConfigResponse, UpsertNotificationConfig, UpsertNotificationConfigResponse, NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope } from './index.typings.js';
3
- export { ActionEvent, Address, AddressLocation, AddressStreetOneOf, Agenda, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, Badge, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, CalendarLinks, CaptionData, Category, CategoryCounts, CellStyle, CheckIn, CheckoutFormMessages, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonAddress, CommonAddressLocation, CommonAddressStreetOneOf, CommonStreetAddress, CommonSubdivision, ConferenceType, CouponDiscount, Crop, Dashboard, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, Discount, DiscountItem, DiscountItemDiscountOneOf, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmailNotificationConfig, EmailNotificationReminderTime, EmailNotificationType, EmailTemplate, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Event, EventCanceled, EventCopied, EventData, EventDeleted, EventDisplaySettings, EventEnded, EventGuests, EventMetadata, EventReminder, EventStarted, EventStatus, EventType, EventUpdated, ExternalEvent, Fee, FeeName, FeeType, Feed, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, Form, FormMessages, FormResponse, FormattedAddress, GIF, GIFData, GIFType, GalleryData, GalleryDataItem, GalleryDataItemDataOneOf, GalleryOptions, Gradient, GuestListConfig, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InitialExpandedItems, Input, InputControl, InputControlType, InputValue, Invoice, Item, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkPreviewData, LinkPreviewDataStyles, ListValue, Location, LocationType, MapCoordinates, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Money, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NotificationConfig, NullValue, Occurrence, Oembed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingLogin, OnlineConferencingSession, Option, OptionDesign, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderCanceled, OrderConfirmed, OrderEmailAdded, OrderGuest, OrderPaid, OrderStatus, OrderedListData, Orientation, PDFSettings, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, ParagraphData, PercentDiscount, Permissions, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Positive, PositiveResponseConfirmation, PushNotificationType, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, ResolveEmailNotificationConfigRequest, ResolveEmailNotificationConfigResponse, ResolveNotificationConfigRequest, ResponseConfirmation, RestoreInfo, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpFormMessages, RsvpGuest, RsvpStatusOptions, RsvpSummary, ScheduleConfig, Scheduling, SeoSchema, SeoSettings, Settings, SiteUrl, Source, Spoiler, SpoilerData, StandardDetails, State, Status, StreetAddress, Styles, StylesBorder, Subdivision, SubdivisionType, TableCellData, TableData, Tag, Target, Tax, TaxConfig, TaxType, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Ticket, TicketGuest, TicketPdfResolveDelayed, TicketPdfResolved, Ticketing, TicketingConfig, TicketingSummary, TicketsUnavailableMessages, TimeDuration, TriggerNotificationOptionsGuestsOneOf, TriggerNotificationOptionsNotificationOneOf, TriggerNotificationRequest, TriggerNotificationRequestGuestsOneOf, TriggerNotificationRequestNotificationOneOf, TriggerNotificationResponse, Type, UpsertNotificationConfigRequest, V1Link, V1LinkDataOneOf, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.js';
3
+ export { ActionEvent, Address, AddressLocation, AddressStreetOneOf, Agenda, Alignment, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AspectRatio, AudioData, Background, BackgroundBackgroundOneOf, BackgroundType, Badge, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulletedListData, ButtonData, ButtonDataType, ButtonStyles, CalendarLinks, CaptionData, CardStyles, CardStylesType, Category, CategoryCounts, CellStyle, CheckIn, CheckoutFormMessages, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonAddress, CommonAddressLocation, CommonAddressStreetOneOf, CommonStreetAddress, CommonSubdivision, ConferenceType, CouponDiscount, Crop, Dashboard, Decoration, DecorationDataOneOf, DecorationType, Design, Dimensions, Direction, Discount, DiscountItem, DiscountItemDiscountOneOf, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmailNotificationConfig, EmailNotificationReminderTime, EmailNotificationType, EmailTemplate, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Event, EventCanceled, EventCopied, EventData, EventDeleted, EventDisplaySettings, EventEnded, EventGuests, EventMetadata, EventReminder, EventStarted, EventStatus, EventType, EventUpdated, ExternalEvent, Fee, FeeName, FeeType, Feed, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, Form, FormMessages, FormResponse, FormattedAddress, GIF, GIFData, GIFType, GalleryData, GalleryDataItem, GalleryDataItemDataOneOf, GalleryOptions, GalleryOptionsLayout, Gradient, GuestListConfig, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, Input, InputControl, InputControlType, InputValue, Invoice, Item, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkPreviewData, LinkPreviewDataStyles, ListValue, Location, LocationType, MapCoordinates, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Money, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NotificationConfig, NullValue, Occurrence, Oembed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingLogin, OnlineConferencingSession, Option, OptionDesign, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderCanceled, OrderConfirmed, OrderEmailAdded, OrderGuest, OrderPaid, OrderStatus, OrderedListData, Orientation, PDFSettings, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, ParagraphData, PercentDiscount, Permissions, Placement, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Positive, PositiveResponseConfirmation, PushNotificationType, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, Resizing, ResolveEmailNotificationConfigRequest, ResolveEmailNotificationConfigResponse, ResolveNotificationConfigRequest, ResponseConfirmation, RestoreInfo, RibbonStyles, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpFormMessages, RsvpGuest, RsvpStatusOptions, RsvpSummary, ScheduleConfig, Scheduling, SeoSchema, SeoSettings, Settings, SiteUrl, Source, Spoiler, SpoilerData, StandardDetails, State, Status, StreetAddress, Styles, StylesBorder, StylesPosition, Subdivision, SubdivisionType, TableCellData, TableData, Tag, Target, Tax, TaxConfig, TaxType, TextAlignment, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Ticket, TicketGuest, TicketPdfResolveDelayed, TicketPdfResolved, Ticketing, TicketingConfig, TicketingSummary, TicketsUnavailableMessages, TimeDuration, TriggerNotificationOptionsGuestsOneOf, TriggerNotificationOptionsNotificationOneOf, TriggerNotificationRequest, TriggerNotificationRequestGuestsOneOf, TriggerNotificationRequestNotificationOneOf, TriggerNotificationResponse, Type, UpsertNotificationConfigRequest, V1Link, V1LinkDataOneOf, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.js';
4
4
 
5
+ type NotificationConfigNonNullablePaths = `rsvpConfirmation.notificationType` | `rsvpConfirmation.reminderTime` | `newSpotsAvailable.notificationType` | `newSpotsAvailable.reminderTime` | `eventCancelation.notificationType` | `eventCancelation.reminderTime` | `upcomingEventReminder.notificationType` | `upcomingEventReminder.reminderTime` | `orderConfirmation.notificationType` | `orderConfirmation.reminderTime` | `ticketConfirmation.notificationType` | `ticketConfirmation.reminderTime` | `invoice.notificationType` | `invoice.reminderTime` | `orderConfirmationWithTicketsLink.notificationType` | `orderConfirmationWithTicketsLink.reminderTime`;
5
6
  declare function triggerNotification$1(httpClient: HttpClient): TriggerNotificationSignature;
6
7
  interface TriggerNotificationSignature {
7
8
  /**
@@ -15,7 +16,9 @@ interface ResolveNotificationConfigSignature {
15
16
  * Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.
16
17
  * @param - Id of the NotificationConfig to retrieve
17
18
  */
18
- (notificationConfigId: string): Promise<ResolveNotificationConfigResponse>;
19
+ (notificationConfigId: string): Promise<NonNullablePaths<ResolveNotificationConfigResponse, {
20
+ [P in NotificationConfigNonNullablePaths]: `notificationConfig.${P}`;
21
+ }[NotificationConfigNonNullablePaths]>>;
19
22
  }
20
23
  declare function upsertNotificationConfig$1(httpClient: HttpClient): UpsertNotificationConfigSignature;
21
24
  interface UpsertNotificationConfigSignature {
@@ -23,7 +26,9 @@ interface UpsertNotificationConfigSignature {
23
26
  * Upsert a NotificationConfig
24
27
  * @param - Event ID.
25
28
  */
26
- (_id: string, notificationConfig: UpsertNotificationConfig): Promise<UpsertNotificationConfigResponse>;
29
+ (_id: string, notificationConfig: UpsertNotificationConfig): Promise<NonNullablePaths<UpsertNotificationConfigResponse, {
30
+ [P in NotificationConfigNonNullablePaths]: `notificationConfig.${P}`;
31
+ }[NotificationConfigNonNullablePaths]>>;
27
32
  }
28
33
  declare const onNotificationConfigCreated$1: EventDefinition<NotificationConfigCreatedEnvelope, "wix.events.notifications.v2.notification_config_created">;
29
34
  declare const onNotificationConfigUpdated$1: EventDefinition<NotificationConfigUpdatedEnvelope, "wix.events.notifications.v2.notification_config_updated">;
@@ -22,12 +22,15 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  Alignment: () => Alignment,
24
24
  AppType: () => AppType,
25
+ AspectRatio: () => AspectRatio,
25
26
  BackgroundType: () => BackgroundType,
26
27
  ButtonDataType: () => ButtonDataType,
28
+ CardStylesType: () => CardStylesType,
27
29
  ConferenceType: () => ConferenceType,
28
30
  Crop: () => Crop,
29
31
  DecorationType: () => DecorationType,
30
32
  Direction: () => Direction,
33
+ DividerDataAlignment: () => DividerDataAlignment,
31
34
  EmailNotificationReminderTime: () => EmailNotificationReminderTime,
32
35
  EmailNotificationType: () => EmailNotificationType,
33
36
  EventStatus: () => EventStatus,
@@ -38,6 +41,7 @@ __export(index_exports, {
38
41
  GIFType: () => GIFType,
39
42
  InitialExpandedItems: () => InitialExpandedItems,
40
43
  InputControlType: () => InputControlType,
44
+ Layout: () => Layout,
41
45
  LayoutType: () => LayoutType,
42
46
  LineStyle: () => LineStyle,
43
47
  LocationType: () => LocationType,
@@ -46,16 +50,19 @@ __export(index_exports, {
46
50
  NullValue: () => NullValue,
47
51
  OrderStatus: () => OrderStatus,
48
52
  Orientation: () => Orientation,
53
+ Placement: () => Placement,
49
54
  PluginContainerDataAlignment: () => PluginContainerDataAlignment,
50
55
  PollLayoutDirection: () => PollLayoutDirection,
51
56
  PollLayoutType: () => PollLayoutType,
52
57
  Position: () => Position,
53
58
  PushNotificationType: () => PushNotificationType,
54
59
  RegistrationStatus: () => RegistrationStatus,
60
+ Resizing: () => Resizing,
55
61
  RsvpStatusOptions: () => RsvpStatusOptions,
56
62
  Source: () => Source,
57
63
  State: () => State,
58
64
  Status: () => Status,
65
+ StylesPosition: () => StylesPosition,
59
66
  SubdivisionType: () => SubdivisionType,
60
67
  Target: () => Target,
61
68
  TaxType: () => TaxType,
@@ -460,12 +467,12 @@ var Width = /* @__PURE__ */ ((Width2) => {
460
467
  Width2["SMALL"] = "SMALL";
461
468
  return Width2;
462
469
  })(Width || {});
463
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
464
- Alignment2["CENTER"] = "CENTER";
465
- Alignment2["LEFT"] = "LEFT";
466
- Alignment2["RIGHT"] = "RIGHT";
467
- return Alignment2;
468
- })(Alignment || {});
470
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
471
+ DividerDataAlignment2["CENTER"] = "CENTER";
472
+ DividerDataAlignment2["LEFT"] = "LEFT";
473
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
474
+ return DividerDataAlignment2;
475
+ })(DividerDataAlignment || {});
469
476
  var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
470
477
  ViewMode2["NONE"] = "NONE";
471
478
  ViewMode2["FULL"] = "FULL";
@@ -513,13 +520,13 @@ var Source = /* @__PURE__ */ ((Source2) => {
513
520
  Source2["ADSENSE"] = "ADSENSE";
514
521
  return Source2;
515
522
  })(Source || {});
516
- var Position = /* @__PURE__ */ ((Position2) => {
517
- Position2["START"] = "START";
518
- Position2["END"] = "END";
519
- Position2["TOP"] = "TOP";
520
- Position2["HIDDEN"] = "HIDDEN";
521
- return Position2;
522
- })(Position || {});
523
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
524
+ StylesPosition2["START"] = "START";
525
+ StylesPosition2["END"] = "END";
526
+ StylesPosition2["TOP"] = "TOP";
527
+ StylesPosition2["HIDDEN"] = "HIDDEN";
528
+ return StylesPosition2;
529
+ })(StylesPosition || {});
523
530
  var MapType = /* @__PURE__ */ ((MapType2) => {
524
531
  MapType2["ROADMAP"] = "ROADMAP";
525
532
  MapType2["SATELITE"] = "SATELITE";
@@ -575,6 +582,43 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
575
582
  FontType2["EM"] = "EM";
576
583
  return FontType2;
577
584
  })(FontType || {});
585
+ var Position = /* @__PURE__ */ ((Position2) => {
586
+ Position2["START"] = "START";
587
+ Position2["END"] = "END";
588
+ Position2["TOP"] = "TOP";
589
+ return Position2;
590
+ })(Position || {});
591
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
592
+ AspectRatio2["SQUARE"] = "SQUARE";
593
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
594
+ return AspectRatio2;
595
+ })(AspectRatio || {});
596
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
597
+ Resizing2["FILL"] = "FILL";
598
+ Resizing2["FIT"] = "FIT";
599
+ return Resizing2;
600
+ })(Resizing || {});
601
+ var Placement = /* @__PURE__ */ ((Placement2) => {
602
+ Placement2["IMAGE"] = "IMAGE";
603
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
604
+ return Placement2;
605
+ })(Placement || {});
606
+ var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
607
+ CardStylesType2["CONTAINED"] = "CONTAINED";
608
+ CardStylesType2["FRAMELESS"] = "FRAMELESS";
609
+ return CardStylesType2;
610
+ })(CardStylesType || {});
611
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
612
+ Alignment2["START"] = "START";
613
+ Alignment2["CENTER"] = "CENTER";
614
+ Alignment2["END"] = "END";
615
+ return Alignment2;
616
+ })(Alignment || {});
617
+ var Layout = /* @__PURE__ */ ((Layout2) => {
618
+ Layout2["STACKED"] = "STACKED";
619
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
620
+ return Layout2;
621
+ })(Layout || {});
578
622
  var AppType = /* @__PURE__ */ ((AppType2) => {
579
623
  AppType2["PRODUCT"] = "PRODUCT";
580
624
  AppType2["EVENT"] = "EVENT";
@@ -802,12 +846,15 @@ var onNotificationConfigUpdated2 = (0, import_event_definition_modules.createEve
802
846
  0 && (module.exports = {
803
847
  Alignment,
804
848
  AppType,
849
+ AspectRatio,
805
850
  BackgroundType,
806
851
  ButtonDataType,
852
+ CardStylesType,
807
853
  ConferenceType,
808
854
  Crop,
809
855
  DecorationType,
810
856
  Direction,
857
+ DividerDataAlignment,
811
858
  EmailNotificationReminderTime,
812
859
  EmailNotificationType,
813
860
  EventStatus,
@@ -818,6 +865,7 @@ var onNotificationConfigUpdated2 = (0, import_event_definition_modules.createEve
818
865
  GIFType,
819
866
  InitialExpandedItems,
820
867
  InputControlType,
868
+ Layout,
821
869
  LayoutType,
822
870
  LineStyle,
823
871
  LocationType,
@@ -826,16 +874,19 @@ var onNotificationConfigUpdated2 = (0, import_event_definition_modules.createEve
826
874
  NullValue,
827
875
  OrderStatus,
828
876
  Orientation,
877
+ Placement,
829
878
  PluginContainerDataAlignment,
830
879
  PollLayoutDirection,
831
880
  PollLayoutType,
832
881
  Position,
833
882
  PushNotificationType,
834
883
  RegistrationStatus,
884
+ Resizing,
835
885
  RsvpStatusOptions,
836
886
  Source,
837
887
  State,
838
888
  Status,
889
+ StylesPosition,
839
890
  SubdivisionType,
840
891
  Target,
841
892
  TaxType,