@wix/auto_sdk_events_notifications 1.0.27 → 1.0.28

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
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';
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">;