@wix/auto_sdk_events_notifications 1.0.25 → 1.0.27
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 -2
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{events-notifications-v2-notification-config-notifications.universal-DK7vt86U.d.ts → index.typings.d.ts} +89 -1
- package/build/cjs/index.typings.js +785 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +2 -1
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs.map +1 -1
- package/build/es/{events-notifications-v2-notification-config-notifications.universal-DK7vt86U.d.mts → index.typings.d.mts} +89 -1
- package/build/es/index.typings.mjs +708 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +2 -1
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{events-notifications-v2-notification-config-notifications.universal-DK7vt86U.d.ts → index.typings.d.ts} +89 -1
- package/build/internal/cjs/index.typings.js +785 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{events-notifications-v2-notification-config-notifications.universal-DK7vt86U.d.mts → index.typings.d.mts} +89 -1
- package/build/internal/es/index.typings.mjs +708 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +3 -3
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
|
+
|
|
1
3
|
interface NotificationConfig {
|
|
2
4
|
/**
|
|
3
5
|
* Event ID.
|
|
@@ -441,6 +443,8 @@ declare enum SubdivisionType {
|
|
|
441
443
|
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
442
444
|
COUNTRY = "COUNTRY"
|
|
443
445
|
}
|
|
446
|
+
/** @enumType */
|
|
447
|
+
type SubdivisionTypeWithLiterals = SubdivisionType | 'UNKNOWN_SUBDIVISION_TYPE' | 'ADMINISTRATIVE_AREA_LEVEL_1' | 'ADMINISTRATIVE_AREA_LEVEL_2' | 'ADMINISTRATIVE_AREA_LEVEL_3' | 'ADMINISTRATIVE_AREA_LEVEL_4' | 'ADMINISTRATIVE_AREA_LEVEL_5' | 'COUNTRY';
|
|
444
448
|
interface ScheduleConfig {
|
|
445
449
|
/**
|
|
446
450
|
* Defines event as TBD (To Be Determined) schedule.
|
|
@@ -2719,6 +2723,8 @@ declare enum NullValue {
|
|
|
2719
2723
|
/** Null value. */
|
|
2720
2724
|
NULL_VALUE = "NULL_VALUE"
|
|
2721
2725
|
}
|
|
2726
|
+
/** @enumType */
|
|
2727
|
+
type NullValueWithLiterals = NullValue | 'NULL_VALUE';
|
|
2722
2728
|
/**
|
|
2723
2729
|
* `ListValue` is a wrapper around a repeated field of values.
|
|
2724
2730
|
*
|
|
@@ -3325,6 +3331,8 @@ interface OrderEmailAdded {
|
|
|
3325
3331
|
* @format GUID
|
|
3326
3332
|
*/
|
|
3327
3333
|
reservationId?: string;
|
|
3334
|
+
/** Whether marketing consent was given. */
|
|
3335
|
+
marketingConsent?: boolean | null;
|
|
3328
3336
|
}
|
|
3329
3337
|
interface EventCanceled {
|
|
3330
3338
|
/** Event canceled timestamp in ISO UTC format. */
|
|
@@ -3769,10 +3777,63 @@ interface NotificationConfigCreatedEnvelope {
|
|
|
3769
3777
|
entity: NotificationConfig;
|
|
3770
3778
|
metadata: EventMetadata;
|
|
3771
3779
|
}
|
|
3780
|
+
/** @permissionScope Read Events - all read permissions
|
|
3781
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
3782
|
+
* @permissionScope Manage Events - all permissions
|
|
3783
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3784
|
+
* @permissionScope Manage Events
|
|
3785
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
3786
|
+
* @permissionScope Read Events
|
|
3787
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS
|
|
3788
|
+
* @permissionScope Manage Guest List
|
|
3789
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
3790
|
+
* @permissionScope Manage Events
|
|
3791
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
3792
|
+
* @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG
|
|
3793
|
+
* @webhook
|
|
3794
|
+
* @eventType wix.events.notifications.v2.notification_config_created
|
|
3795
|
+
* @serviceIdentifier wix.events.notifications.v2.NotificationConfigManagement
|
|
3796
|
+
* @slug created
|
|
3797
|
+
* @documentationMaturity preview
|
|
3798
|
+
*/
|
|
3799
|
+
declare function onNotificationConfigCreated(handler: (event: NotificationConfigCreatedEnvelope) => void | Promise<void>): void;
|
|
3772
3800
|
interface NotificationConfigUpdatedEnvelope {
|
|
3773
3801
|
entity: NotificationConfig;
|
|
3774
3802
|
metadata: EventMetadata;
|
|
3775
3803
|
}
|
|
3804
|
+
/** @permissionScope Read Events - all read permissions
|
|
3805
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
3806
|
+
* @permissionScope Manage Events - all permissions
|
|
3807
|
+
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
3808
|
+
* @permissionScope Manage Events
|
|
3809
|
+
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
3810
|
+
* @permissionScope Read Events
|
|
3811
|
+
* @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS
|
|
3812
|
+
* @permissionScope Manage Guest List
|
|
3813
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
3814
|
+
* @permissionScope Manage Events
|
|
3815
|
+
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
3816
|
+
* @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG
|
|
3817
|
+
* @webhook
|
|
3818
|
+
* @eventType wix.events.notifications.v2.notification_config_updated
|
|
3819
|
+
* @serviceIdentifier wix.events.notifications.v2.NotificationConfigManagement
|
|
3820
|
+
* @slug updated
|
|
3821
|
+
* @documentationMaturity preview
|
|
3822
|
+
*/
|
|
3823
|
+
declare function onNotificationConfigUpdated(handler: (event: NotificationConfigUpdatedEnvelope) => void | Promise<void>): void;
|
|
3824
|
+
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`;
|
|
3825
|
+
/**
|
|
3826
|
+
* Triggers notification
|
|
3827
|
+
* @public
|
|
3828
|
+
* @documentationMaturity preview
|
|
3829
|
+
* @requiredField options
|
|
3830
|
+
* @requiredField options.guests
|
|
3831
|
+
* @requiredField options.notification
|
|
3832
|
+
* @permissionId WIX_EVENTS.MANAGE
|
|
3833
|
+
* @applicableIdentity APP
|
|
3834
|
+
* @fqn wix.events.notifications.v2.NotificationService.TriggerNotification
|
|
3835
|
+
*/
|
|
3836
|
+
declare function triggerNotification(options: TriggerNotificationOptions): Promise<void>;
|
|
3776
3837
|
interface TriggerNotificationOptions extends TriggerNotificationOptionsNotificationOneOf, TriggerNotificationOptionsGuestsOneOf {
|
|
3777
3838
|
/** Email notification type */
|
|
3778
3839
|
emailNotificationType?: EmailNotificationTypeWithLiterals;
|
|
@@ -3805,6 +3866,33 @@ interface TriggerNotificationOptionsGuestsOneOf {
|
|
|
3805
3866
|
/** Ticket guests info */
|
|
3806
3867
|
ticketGuest?: TicketGuest;
|
|
3807
3868
|
}
|
|
3869
|
+
/**
|
|
3870
|
+
* Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.
|
|
3871
|
+
* @param notificationConfigId - Id of the NotificationConfig to retrieve
|
|
3872
|
+
* @public
|
|
3873
|
+
* @documentationMaturity preview
|
|
3874
|
+
* @requiredField notificationConfigId
|
|
3875
|
+
* @permissionId WIX_EVENTS.READ_NOTIFICATION_CONFIG
|
|
3876
|
+
* @applicableIdentity APP
|
|
3877
|
+
* @fqn wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig
|
|
3878
|
+
*/
|
|
3879
|
+
declare function resolveNotificationConfig(notificationConfigId: string): Promise<NonNullablePaths<ResolveNotificationConfigResponse, {
|
|
3880
|
+
[P in NotificationConfigNonNullablePaths]: `notificationConfig.${P}`;
|
|
3881
|
+
}[NotificationConfigNonNullablePaths]>>;
|
|
3882
|
+
/**
|
|
3883
|
+
* Upsert a NotificationConfig
|
|
3884
|
+
* @param _id - Event ID.
|
|
3885
|
+
* @public
|
|
3886
|
+
* @documentationMaturity preview
|
|
3887
|
+
* @requiredField _id
|
|
3888
|
+
* @requiredField notificationConfig
|
|
3889
|
+
* @permissionId WIX_EVENTS.UPDATE_NOTIFICATION_CONFIG
|
|
3890
|
+
* @applicableIdentity APP
|
|
3891
|
+
* @fqn wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig
|
|
3892
|
+
*/
|
|
3893
|
+
declare function upsertNotificationConfig(_id: string, notificationConfig: UpsertNotificationConfig): Promise<NonNullablePaths<UpsertNotificationConfigResponse, {
|
|
3894
|
+
[P in NotificationConfigNonNullablePaths]: `notificationConfig.${P}`;
|
|
3895
|
+
}[NotificationConfigNonNullablePaths]>>;
|
|
3808
3896
|
interface UpsertNotificationConfig {
|
|
3809
3897
|
/**
|
|
3810
3898
|
* Event ID.
|
|
@@ -3845,4 +3933,4 @@ interface UpsertNotificationConfig {
|
|
|
3845
3933
|
orderConfirmationWithTicketsLink?: EmailNotificationConfig;
|
|
3846
3934
|
}
|
|
3847
3935
|
|
|
3848
|
-
export {
|
|
3936
|
+
export { type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, type Agenda, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type Badge, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type CalendarLinks, type CaptionData, type Category, type CategoryCounts, type CellStyle, type CheckIn, type CheckoutFormMessages, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type CommonAddress, type CommonAddressLocation, type CommonAddressStreetOneOf, type CommonStreetAddress, type CommonSubdivision, ConferenceType, type ConferenceTypeWithLiterals, type CouponDiscount, Crop, type CropWithLiterals, type Dashboard, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type Design, type Dimensions, Direction, type DirectionWithLiterals, type Discount, type DiscountItem, type DiscountItemDiscountOneOf, type DividerData, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmailNotificationConfig, EmailNotificationReminderTime, type EmailNotificationReminderTimeWithLiterals, EmailNotificationType, type EmailNotificationTypeWithLiterals, type EmailTemplate, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Event, type EventCanceled, type EventCopied, type EventData, type EventDeleted, type EventDisplaySettings, type EventEnded, type EventGuests, type EventMetadata, type EventReminder, type EventStarted, EventStatus, type EventStatusWithLiterals, EventType, type EventTypeWithLiterals, type EventUpdated, type ExternalEvent, type Fee, FeeName, type FeeNameWithLiterals, FeeType, type FeeTypeWithLiterals, type Feed, type FileData, type FileSource, type FileSourceDataOneOf, type FontSizeData, FontType, type FontTypeWithLiterals, type Form, type FormMessages, type FormResponse, type FormattedAddress, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryDataItem, type GalleryDataItemDataOneOf, type GalleryOptions, type Gradient, type GuestListConfig, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, type Input, type InputControl, InputControlType, type InputControlTypeWithLiterals, type InputValue, type Invoice, type Item, type ItemStyle, type Keyword, type Label, type LabellingSettings, type Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkPreviewData, type LinkPreviewDataStyles, type ListValue, type Location, LocationType, type LocationTypeWithLiterals, type MapCoordinates, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type MessageEnvelope, type Metadata, type Money, type Negative, type NegativeResponseConfirmation, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, type NotificationConfig, type NotificationConfigCreatedEnvelope, type NotificationConfigUpdatedEnvelope, NullValue, type NullValueWithLiterals, type Occurrence, type Oembed, type OnlineConferencing, type OnlineConferencingConfig, type OnlineConferencingLogin, type OnlineConferencingSession, type Option, type OptionDesign, type OptionLayout, type OptionSelection, type OptionSelectionSelectedOptionOneOf, type OrderCanceled, type OrderConfirmed, type OrderEmailAdded, type OrderGuest, type OrderPaid, OrderStatus, type OrderStatusWithLiterals, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type PaidPlanDiscount, type PaidPlanDiscountDiscountOneOf, type ParagraphData, type PercentDiscount, type Permissions, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Positive, type PositiveResponseConfirmation, PushNotificationType, type PushNotificationTypeWithLiterals, type Recurrences, type Registration, type RegistrationClosedMessages, RegistrationStatus, type RegistrationStatusWithLiterals, type Rel, type ResolveEmailNotificationConfigRequest, type ResolveEmailNotificationConfigResponse, type ResolveNotificationConfigRequest, type ResolveNotificationConfigResponse, type ResponseConfirmation, type RestoreInfo, type RichContent, type RsvpCollection, type RsvpCollectionConfig, type RsvpFormMessages, type RsvpGuest, RsvpStatusOptions, type RsvpStatusOptionsWithLiterals, type RsvpSummary, type ScheduleConfig, type Scheduling, type SeoSchema, type SeoSettings, type Settings, type SiteUrl, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, type StandardDetails, State, type StateWithLiterals, Status, type StatusWithLiterals, type StreetAddress, type Styles, type StylesBorder, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, type Tax, type TaxConfig, TaxType, type TaxTypeWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type Ticket, type TicketGuest, type TicketPdfResolveDelayed, type TicketPdfResolved, type Ticketing, type TicketingConfig, type TicketingSummary, type TicketsUnavailableMessages, type TimeDuration, type TriggerNotificationOptions, type TriggerNotificationOptionsGuestsOneOf, type TriggerNotificationOptionsNotificationOneOf, type TriggerNotificationRequest, type TriggerNotificationRequestGuestsOneOf, type TriggerNotificationRequestNotificationOneOf, type TriggerNotificationResponse, Type, type TypeWithLiterals, type UpsertNotificationConfig, type UpsertNotificationConfigRequest, type UpsertNotificationConfigResponse, type V1Link, type V1LinkDataOneOf, ValueType, type ValueTypeWithLiterals, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VisitorType, type VisitorTypeWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, onNotificationConfigCreated, onNotificationConfigUpdated, resolveNotificationConfig, triggerNotification, upsertNotificationConfig };
|