@wix/auto_sdk_events_notifications 1.0.34 → 1.0.35
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.
- package/build/cjs/index.d.ts +2 -7
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -7
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +2 -7
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -7
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +2 -7
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2 -7
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +2 -7
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2 -7
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -2,7 +2,6 @@ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTF
|
|
|
2
2
|
import { TriggerNotificationOptions, ResolveNotificationConfigResponse, UpsertNotificationConfig, UpsertNotificationConfigResponse, NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope } from './index.typings.mjs';
|
|
3
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, PricingData, PushNotificationType, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, Resizing, ResolveEmailNotificationConfigRequest, ResolveEmailNotificationConfigResponse, ResolveNotificationConfigRequest, ResponseConfirmation, RestoreInfo, RibbonStyles, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpConfirmationMessages, RsvpConfirmationMessagesNegativeResponseConfirmation, RsvpConfirmationMessagesPositiveResponseConfirmation, 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, TicketsConfirmationMessages, 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.mjs';
|
|
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`;
|
|
6
5
|
declare function triggerNotification$1(httpClient: HttpClient): TriggerNotificationSignature;
|
|
7
6
|
interface TriggerNotificationSignature {
|
|
8
7
|
/**
|
|
@@ -16,9 +15,7 @@ interface ResolveNotificationConfigSignature {
|
|
|
16
15
|
* Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.
|
|
17
16
|
* @param - Id of the NotificationConfig to retrieve
|
|
18
17
|
*/
|
|
19
|
-
(notificationConfigId: string): Promise<NonNullablePaths<ResolveNotificationConfigResponse,
|
|
20
|
-
[P in NotificationConfigNonNullablePaths]: `notificationConfig.${P}`;
|
|
21
|
-
}[NotificationConfigNonNullablePaths]>>;
|
|
18
|
+
(notificationConfigId: string): Promise<NonNullablePaths<ResolveNotificationConfigResponse, `notificationConfig.rsvpConfirmation.notificationType` | `notificationConfig.rsvpConfirmation.reminderTime`>>;
|
|
22
19
|
}
|
|
23
20
|
declare function upsertNotificationConfig$1(httpClient: HttpClient): UpsertNotificationConfigSignature;
|
|
24
21
|
interface UpsertNotificationConfigSignature {
|
|
@@ -26,9 +23,7 @@ interface UpsertNotificationConfigSignature {
|
|
|
26
23
|
* Upsert a NotificationConfig
|
|
27
24
|
* @param - Event ID.
|
|
28
25
|
*/
|
|
29
|
-
(_id: string, notificationConfig: UpsertNotificationConfig): Promise<NonNullablePaths<UpsertNotificationConfigResponse,
|
|
30
|
-
[P in NotificationConfigNonNullablePaths]: `notificationConfig.${P}`;
|
|
31
|
-
}[NotificationConfigNonNullablePaths]>>;
|
|
26
|
+
(_id: string, notificationConfig: UpsertNotificationConfig): Promise<NonNullablePaths<UpsertNotificationConfigResponse, `notificationConfig.rsvpConfirmation.notificationType` | `notificationConfig.rsvpConfirmation.reminderTime`>>;
|
|
32
27
|
}
|
|
33
28
|
declare const onNotificationConfigCreated$1: EventDefinition<NotificationConfigCreatedEnvelope, "wix.events.notifications.v2.notification_config_created">;
|
|
34
29
|
declare const onNotificationConfigUpdated$1: EventDefinition<NotificationConfigUpdatedEnvelope, "wix.events.notifications.v2.notification_config_updated">;
|