@wix/auto_sdk_events_notifications 1.0.21 → 1.0.23
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/{internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.mts} +326 -430
- package/build/{cjs/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.ts} +326 -430
- package/build/index.d.mts +39 -0
- package/build/index.d.ts +39 -0
- package/build/index.js +858 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +779 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.mts} +326 -430
- package/build/{es/src/events-notifications-v2-notification-config-notifications.universal.d.ts → internal/events-notifications-v2-notification-config-notifications.universal-D-36kOt1.d.ts} +326 -430
- package/build/internal/index.d.mts +39 -0
- package/build/internal/index.d.ts +39 -0
- package/build/internal/index.js +858 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +779 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +267 -0
- package/build/internal/meta.d.ts +267 -0
- package/build/internal/meta.js +258 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +229 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +267 -0
- package/build/meta.d.ts +267 -0
- package/build/meta.js +258 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +229 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +12 -11
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -571
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -732
- package/build/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
- package/build/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
- package/build/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
- package/build/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
- package/build/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
- package/build/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -567
- package/build/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -702
- package/build/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js +0 -69
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js +0 -168
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js +0 -87
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js +0 -101
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js +0 -571
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js +0 -732
- package/build/internal/cjs/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.d.ts +0 -14
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js +0 -14
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.context.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.d.ts +0 -7
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js +0 -162
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.http.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.d.ts +0 -19
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js +0 -58
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.meta.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.d.ts +0 -31
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js +0 -43
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.public.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.d.ts +0 -3737
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js +0 -567
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.types.js.map +0 -1
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js +0 -702
- package/build/internal/es/src/events-notifications-v2-notification-config-notifications.universal.js.map +0 -1
package/build/cjs/meta.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./src/events-notifications-v2-notification-config-notifications.meta.js"), exports);
|
|
18
|
-
//# sourceMappingURL=meta.js.map
|
package/build/cjs/meta.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sourceRoot":"","sources":["../../meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,0GAAwF"}
|
package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { triggerNotification as publicTriggerNotification, resolveNotificationConfig as publicResolveNotificationConfig, upsertNotificationConfig as publicUpsertNotificationConfig } from './events-notifications-v2-notification-config-notifications.public.js';
|
|
2
|
-
import { createEventModule } from '@wix/sdk-runtime/event-definition-modules';
|
|
3
|
-
import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
4
|
-
import { onNotificationConfigCreated as publicOnNotificationConfigCreated } from './events-notifications-v2-notification-config-notifications.public.js';
|
|
5
|
-
import { onNotificationConfigUpdated as publicOnNotificationConfigUpdated } from './events-notifications-v2-notification-config-notifications.public.js';
|
|
6
|
-
export declare const triggerNotification: MaybeContext<BuildRESTFunction<typeof publicTriggerNotification> & typeof publicTriggerNotification>;
|
|
7
|
-
export declare const resolveNotificationConfig: MaybeContext<BuildRESTFunction<typeof publicResolveNotificationConfig> & typeof publicResolveNotificationConfig>;
|
|
8
|
-
export declare const upsertNotificationConfig: MaybeContext<BuildRESTFunction<typeof publicUpsertNotificationConfig> & typeof publicUpsertNotificationConfig>;
|
|
9
|
-
/** */
|
|
10
|
-
export declare const onNotificationConfigCreated: ReturnType<typeof createEventModule<typeof publicOnNotificationConfigCreated>>;
|
|
11
|
-
/** */
|
|
12
|
-
export declare const onNotificationConfigUpdated: ReturnType<typeof createEventModule<typeof publicOnNotificationConfigUpdated>>;
|
|
13
|
-
export { EmailNotificationType, EmailNotificationReminderTime, PushNotificationType, LocationType, SubdivisionType, Status, EventStatus, EventType, RegistrationStatus, RsvpStatusOptions, TaxType, VisitorType, InputControlType, ValueType, ConferenceType, State, NodeType, WidthType, PluginContainerDataAlignment, ButtonDataType, Target, TextAlignment, LineStyle, Width, Alignment, ViewMode, LayoutType, Orientation, Crop, ThumbnailsAlignment, GIFType, Source, Position, MapType, ViewRole, VoteRole, PollLayoutType, PollLayoutDirection, BackgroundType, DecorationType, FontType, AppType, InitialExpandedItems, Direction, VerticalAlignment, NullValue, Type, OrderStatus, FeeName, FeeType, WebhookIdentityType, } from './events-notifications-v2-notification-config-notifications.universal.js';
|
|
14
|
-
export { NotificationConfig, EmailNotificationConfig, EmailTemplate, Link, TriggerNotificationRequest, TriggerNotificationRequestNotificationOneOf, TriggerNotificationRequestGuestsOneOf, RsvpGuest, OrderGuest, EventGuests, TicketGuest, TriggerNotificationResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, Empty, EventUpdated, Location, MapCoordinates, Address, AddressStreetOneOf, StreetAddress, AddressLocation, Subdivision, ScheduleConfig, Recurrences, Occurrence, Event, Scheduling, Registration, RsvpCollection, RsvpCollectionConfig, Ticketing, TicketingConfig, TaxConfig, Money, ExternalEvent, CalendarLinks, SiteUrl, Form, InputControl, Input, OptionSelection, OptionSelectionSelectedOptionOneOf, Label, FormMessages, RsvpFormMessages, PositiveResponseConfirmation, NegativeResponseConfirmation, Positive, Negative, CheckoutFormMessages, ResponseConfirmation, RegistrationClosedMessages, TicketsUnavailableMessages, Dashboard, RsvpSummary, TicketingSummary, GuestListConfig, Feed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingSession, SeoSettings, SeoSchema, Keyword, Tag, Settings, Agenda, Category, CategoryCounts, EventDisplaySettings, LabellingSettings, RichContent, Node, NodeDataOneOf, NodeStyle, ButtonData, Border, Colors, PluginContainerData, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Spoiler, Height, Styles, V1Link, V1LinkDataOneOf, Rel, CodeBlockData, TextStyle, DividerData, FileData, FileSource, FileSourceDataOneOf, PDFSettings, GalleryData, Media, Image, Video, GalleryDataItem, GalleryDataItemDataOneOf, GalleryOptions, Layout, ItemStyle, Thumbnails, GIFData, GIF, HeadingData, HTMLData, HTMLDataDataOneOf, ImageData, StylesBorder, ImageDataStyles, LinkPreviewData, LinkPreviewDataStyles, MapData, MapSettings, ParagraphData, PollData, Permissions, Option, PollSettings, PollLayout, OptionLayout, Gradient, Background, BackgroundBackgroundOneOf, PollDesign, OptionDesign, Poll, PollDataLayout, Design, TextData, Decoration, DecorationDataOneOf, AnchorData, ColorData, LinkData, MentionData, FontSizeData, SpoilerData, AppEmbedData, AppEmbedDataAppDataOneOf, BookingData, EventData, VideoData, PlaybackOptions, EmbedData, Oembed, CollapsibleListData, TableData, Dimensions, TableCellData, CellStyle, BorderColors, ListValue, AudioData, OrderedListData, BulletedListData, BlockquoteData, CaptionData, LayoutCellData, Metadata, DocumentStyle, TextNodeStyle, Badge, OrderConfirmed, FormResponse, InputValue, FormattedAddress, CommonAddress, CommonAddressStreetOneOf, CommonStreetAddress, CommonAddressLocation, CommonSubdivision, StandardDetails, Ticket, CheckIn, OnlineConferencingLogin, Invoice, Item, Discount, DiscountItem, DiscountItemDiscountOneOf, CouponDiscount, PaidPlanDiscount, PaidPlanDiscountDiscountOneOf, PercentDiscount, Tax, Fee, OrderEmailAdded, EventCanceled, EventReminder, TimeDuration, OrderPaid, TicketPdfResolved, TicketPdfResolveDelayed, OrderCanceled, EventEnded, EventStarted, ResolveNotificationConfigRequest, ResolveNotificationConfigResponse, UpsertNotificationConfigRequest, UpsertNotificationConfigResponse, ResolveEmailNotificationConfigRequest, ResolveEmailNotificationConfigResponse, EventDeleted, EventCopied, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, BaseEventMetadata, EventMetadata, NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope, TriggerNotificationOptions, TriggerNotificationOptionsNotificationOneOf, TriggerNotificationOptionsGuestsOneOf, UpsertNotificationConfig, } from './events-notifications-v2-notification-config-notifications.universal.js';
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerticalAlignment = exports.Direction = exports.InitialExpandedItems = exports.AppType = exports.FontType = exports.DecorationType = exports.BackgroundType = exports.PollLayoutDirection = exports.PollLayoutType = exports.VoteRole = exports.ViewRole = exports.MapType = exports.Position = exports.Source = exports.GIFType = exports.ThumbnailsAlignment = exports.Crop = exports.Orientation = exports.LayoutType = exports.ViewMode = exports.Alignment = exports.Width = exports.LineStyle = exports.TextAlignment = exports.Target = exports.ButtonDataType = exports.PluginContainerDataAlignment = exports.WidthType = exports.NodeType = exports.State = exports.ConferenceType = exports.ValueType = exports.InputControlType = exports.VisitorType = exports.TaxType = exports.RsvpStatusOptions = exports.RegistrationStatus = exports.EventType = exports.EventStatus = exports.Status = exports.SubdivisionType = exports.LocationType = exports.PushNotificationType = exports.EmailNotificationReminderTime = exports.EmailNotificationType = exports.onNotificationConfigUpdated = exports.onNotificationConfigCreated = exports.upsertNotificationConfig = exports.resolveNotificationConfig = exports.triggerNotification = void 0;
|
|
4
|
-
exports.WebhookIdentityType = exports.FeeType = exports.FeeName = exports.OrderStatus = exports.Type = exports.NullValue = void 0;
|
|
5
|
-
const events_notifications_v2_notification_config_notifications_public_js_1 = require("./events-notifications-v2-notification-config-notifications.public.js");
|
|
6
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
7
|
-
const event_definition_modules_1 = require("@wix/sdk-runtime/event-definition-modules");
|
|
8
|
-
const events_notifications_v2_notification_config_notifications_public_js_2 = require("./events-notifications-v2-notification-config-notifications.public.js");
|
|
9
|
-
const events_notifications_v2_notification_config_notifications_public_js_3 = require("./events-notifications-v2-notification-config-notifications.public.js");
|
|
10
|
-
exports.triggerNotification = (0, rest_modules_1.createRESTModule)(events_notifications_v2_notification_config_notifications_public_js_1.triggerNotification);
|
|
11
|
-
exports.resolveNotificationConfig = (0, rest_modules_1.createRESTModule)(events_notifications_v2_notification_config_notifications_public_js_1.resolveNotificationConfig);
|
|
12
|
-
exports.upsertNotificationConfig = (0, rest_modules_1.createRESTModule)(events_notifications_v2_notification_config_notifications_public_js_1.upsertNotificationConfig);
|
|
13
|
-
/** */
|
|
14
|
-
exports.onNotificationConfigCreated = (0, event_definition_modules_1.createEventModule)(events_notifications_v2_notification_config_notifications_public_js_2.onNotificationConfigCreated);
|
|
15
|
-
/** */
|
|
16
|
-
exports.onNotificationConfigUpdated = (0, event_definition_modules_1.createEventModule)(events_notifications_v2_notification_config_notifications_public_js_3.onNotificationConfigUpdated);
|
|
17
|
-
var events_notifications_v2_notification_config_notifications_universal_js_1 = require("./events-notifications-v2-notification-config-notifications.universal.js");
|
|
18
|
-
Object.defineProperty(exports, "EmailNotificationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.EmailNotificationType; } });
|
|
19
|
-
Object.defineProperty(exports, "EmailNotificationReminderTime", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.EmailNotificationReminderTime; } });
|
|
20
|
-
Object.defineProperty(exports, "PushNotificationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.PushNotificationType; } });
|
|
21
|
-
Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.LocationType; } });
|
|
22
|
-
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.SubdivisionType; } });
|
|
23
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Status; } });
|
|
24
|
-
Object.defineProperty(exports, "EventStatus", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.EventStatus; } });
|
|
25
|
-
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.EventType; } });
|
|
26
|
-
Object.defineProperty(exports, "RegistrationStatus", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.RegistrationStatus; } });
|
|
27
|
-
Object.defineProperty(exports, "RsvpStatusOptions", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.RsvpStatusOptions; } });
|
|
28
|
-
Object.defineProperty(exports, "TaxType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.TaxType; } });
|
|
29
|
-
Object.defineProperty(exports, "VisitorType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.VisitorType; } });
|
|
30
|
-
Object.defineProperty(exports, "InputControlType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.InputControlType; } });
|
|
31
|
-
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.ValueType; } });
|
|
32
|
-
Object.defineProperty(exports, "ConferenceType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.ConferenceType; } });
|
|
33
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.State; } });
|
|
34
|
-
Object.defineProperty(exports, "NodeType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.NodeType; } });
|
|
35
|
-
Object.defineProperty(exports, "WidthType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.WidthType; } });
|
|
36
|
-
Object.defineProperty(exports, "PluginContainerDataAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.PluginContainerDataAlignment; } });
|
|
37
|
-
Object.defineProperty(exports, "ButtonDataType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.ButtonDataType; } });
|
|
38
|
-
Object.defineProperty(exports, "Target", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Target; } });
|
|
39
|
-
Object.defineProperty(exports, "TextAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.TextAlignment; } });
|
|
40
|
-
Object.defineProperty(exports, "LineStyle", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.LineStyle; } });
|
|
41
|
-
Object.defineProperty(exports, "Width", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Width; } });
|
|
42
|
-
Object.defineProperty(exports, "Alignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Alignment; } });
|
|
43
|
-
Object.defineProperty(exports, "ViewMode", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.ViewMode; } });
|
|
44
|
-
Object.defineProperty(exports, "LayoutType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.LayoutType; } });
|
|
45
|
-
Object.defineProperty(exports, "Orientation", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Orientation; } });
|
|
46
|
-
Object.defineProperty(exports, "Crop", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Crop; } });
|
|
47
|
-
Object.defineProperty(exports, "ThumbnailsAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.ThumbnailsAlignment; } });
|
|
48
|
-
Object.defineProperty(exports, "GIFType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.GIFType; } });
|
|
49
|
-
Object.defineProperty(exports, "Source", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Source; } });
|
|
50
|
-
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Position; } });
|
|
51
|
-
Object.defineProperty(exports, "MapType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.MapType; } });
|
|
52
|
-
Object.defineProperty(exports, "ViewRole", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.ViewRole; } });
|
|
53
|
-
Object.defineProperty(exports, "VoteRole", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.VoteRole; } });
|
|
54
|
-
Object.defineProperty(exports, "PollLayoutType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.PollLayoutType; } });
|
|
55
|
-
Object.defineProperty(exports, "PollLayoutDirection", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.PollLayoutDirection; } });
|
|
56
|
-
Object.defineProperty(exports, "BackgroundType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.BackgroundType; } });
|
|
57
|
-
Object.defineProperty(exports, "DecorationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.DecorationType; } });
|
|
58
|
-
Object.defineProperty(exports, "FontType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.FontType; } });
|
|
59
|
-
Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.AppType; } });
|
|
60
|
-
Object.defineProperty(exports, "InitialExpandedItems", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.InitialExpandedItems; } });
|
|
61
|
-
Object.defineProperty(exports, "Direction", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Direction; } });
|
|
62
|
-
Object.defineProperty(exports, "VerticalAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.VerticalAlignment; } });
|
|
63
|
-
Object.defineProperty(exports, "NullValue", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.NullValue; } });
|
|
64
|
-
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.Type; } });
|
|
65
|
-
Object.defineProperty(exports, "OrderStatus", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.OrderStatus; } });
|
|
66
|
-
Object.defineProperty(exports, "FeeName", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.FeeName; } });
|
|
67
|
-
Object.defineProperty(exports, "FeeType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.FeeType; } });
|
|
68
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_1.WebhookIdentityType; } });
|
|
69
|
-
//# sourceMappingURL=events-notifications-v2-notification-config-notifications.context.js.map
|
package/build/cjs/src/events-notifications-v2-notification-config-notifications.context.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events-notifications-v2-notification-config-notifications.context.js","sourceRoot":"","sources":["../../../src/events-notifications-v2-notification-config-notifications.context.ts"],"names":[],"mappings":";;;;AAAA,+JAI+E;AAC/E,gEAAiE;AACjE,wFAA8E;AAE9E,+JAAyJ;AACzJ,+JAAyJ;AAE5I,QAAA,mBAAmB,GAGd,IAAA,+BAAgB,EAAC,yFAAyB,CAAC,CAAC;AACjD,QAAA,yBAAyB,GAGpB,IAAA,+BAAgB,EAAC,+FAA+B,CAAC,CAAC;AACvD,QAAA,wBAAwB,GAGnB,IAAA,+BAAgB,EAAC,8FAA8B,CAAC,CAAC;AACnE,MAAM;AACO,QAAA,2BAA2B,GAEpC,IAAA,4CAAiB,EAAC,iGAAiC,CAAC,CAAC;AACzD,MAAM;AACO,QAAA,2BAA2B,GAEpC,IAAA,4CAAiB,EAAC,iGAAiC,CAAC,CAAC;AAEzD,mKAoDkF;AAnDhF,+KAAA,qBAAqB,OAAA;AACrB,uLAAA,6BAA6B,OAAA;AAC7B,8KAAA,oBAAoB,OAAA;AACpB,sKAAA,YAAY,OAAA;AACZ,yKAAA,eAAe,OAAA;AACf,gKAAA,MAAM,OAAA;AACN,qKAAA,WAAW,OAAA;AACX,mKAAA,SAAS,OAAA;AACT,4KAAA,kBAAkB,OAAA;AAClB,2KAAA,iBAAiB,OAAA;AACjB,iKAAA,OAAO,OAAA;AACP,qKAAA,WAAW,OAAA;AACX,0KAAA,gBAAgB,OAAA;AAChB,mKAAA,SAAS,OAAA;AACT,wKAAA,cAAc,OAAA;AACd,+JAAA,KAAK,OAAA;AACL,kKAAA,QAAQ,OAAA;AACR,mKAAA,SAAS,OAAA;AACT,sLAAA,4BAA4B,OAAA;AAC5B,wKAAA,cAAc,OAAA;AACd,gKAAA,MAAM,OAAA;AACN,uKAAA,aAAa,OAAA;AACb,mKAAA,SAAS,OAAA;AACT,+JAAA,KAAK,OAAA;AACL,mKAAA,SAAS,OAAA;AACT,kKAAA,QAAQ,OAAA;AACR,oKAAA,UAAU,OAAA;AACV,qKAAA,WAAW,OAAA;AACX,8JAAA,IAAI,OAAA;AACJ,6KAAA,mBAAmB,OAAA;AACnB,iKAAA,OAAO,OAAA;AACP,gKAAA,MAAM,OAAA;AACN,kKAAA,QAAQ,OAAA;AACR,iKAAA,OAAO,OAAA;AACP,kKAAA,QAAQ,OAAA;AACR,kKAAA,QAAQ,OAAA;AACR,wKAAA,cAAc,OAAA;AACd,6KAAA,mBAAmB,OAAA;AACnB,wKAAA,cAAc,OAAA;AACd,wKAAA,cAAc,OAAA;AACd,kKAAA,QAAQ,OAAA;AACR,iKAAA,OAAO,OAAA;AACP,8KAAA,oBAAoB,OAAA;AACpB,mKAAA,SAAS,OAAA;AACT,2KAAA,iBAAiB,OAAA;AACjB,mKAAA,SAAS,OAAA;AACT,8JAAA,IAAI,OAAA;AACJ,qKAAA,WAAW,OAAA;AACX,iKAAA,OAAO,OAAA;AACP,iKAAA,OAAO,OAAA;AACP,6KAAA,mBAAmB,OAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
|
-
/** Triggers notification */
|
|
3
|
-
export declare function triggerNotification(payload: object): RequestOptionsFactory<any>;
|
|
4
|
-
/** Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet. */
|
|
5
|
-
export declare function resolveNotificationConfig(payload: object): RequestOptionsFactory<any>;
|
|
6
|
-
/** Upsert a NotificationConfig */
|
|
7
|
-
export declare function upsertNotificationConfig(payload: object): RequestOptionsFactory<any>;
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.upsertNotificationConfig = exports.resolveNotificationConfig = exports.triggerNotification = void 0;
|
|
4
|
-
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
|
5
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
6
|
-
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
-
const field_mask_1 = require("@wix/sdk-runtime/transformations/field-mask");
|
|
8
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
9
|
-
const rest_modules_2 = require("@wix/sdk-runtime/rest-modules");
|
|
10
|
-
function resolveWixEventsNotificationsV2NotificationConfigManagementUrl(opts) {
|
|
11
|
-
const domainToMappings = {
|
|
12
|
-
'api._api_base_domain_': [
|
|
13
|
-
{
|
|
14
|
-
srcPath: '/events-notifications',
|
|
15
|
-
destPath: '',
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
_: [
|
|
19
|
-
{
|
|
20
|
-
srcPath: '/_api/events-notifications',
|
|
21
|
-
destPath: '',
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
'manage._base_domain_': [
|
|
25
|
-
{
|
|
26
|
-
srcPath: '/_api/events-notifications',
|
|
27
|
-
destPath: '',
|
|
28
|
-
},
|
|
29
|
-
],
|
|
30
|
-
'www.wixapis.com': [
|
|
31
|
-
{
|
|
32
|
-
srcPath: '/events-notifications',
|
|
33
|
-
destPath: '',
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
srcPath: '/events/v2/notifications',
|
|
37
|
-
destPath: '/v2/notifications',
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
};
|
|
41
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
42
|
-
}
|
|
43
|
-
function resolveWixEventsNotificationsV2NotificationServiceUrl(opts) {
|
|
44
|
-
const domainToMappings = {
|
|
45
|
-
'api._api_base_domain_': [
|
|
46
|
-
{
|
|
47
|
-
srcPath: '/events-notifications',
|
|
48
|
-
destPath: '',
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
_: [
|
|
52
|
-
{
|
|
53
|
-
srcPath: '/_api/events-notifications',
|
|
54
|
-
destPath: '',
|
|
55
|
-
},
|
|
56
|
-
],
|
|
57
|
-
'manage._base_domain_': [
|
|
58
|
-
{
|
|
59
|
-
srcPath: '/_api/events-notifications',
|
|
60
|
-
destPath: '',
|
|
61
|
-
},
|
|
62
|
-
],
|
|
63
|
-
'www.wixapis.com': [
|
|
64
|
-
{
|
|
65
|
-
srcPath: '/events-notifications',
|
|
66
|
-
destPath: '',
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
srcPath: '/events/v2/notifications',
|
|
70
|
-
destPath: '/v2/notifications',
|
|
71
|
-
},
|
|
72
|
-
],
|
|
73
|
-
};
|
|
74
|
-
return (0, rest_modules_2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
75
|
-
}
|
|
76
|
-
const PACKAGE_NAME = '@wix/auto_sdk_events_notifications';
|
|
77
|
-
/** Triggers notification */
|
|
78
|
-
function triggerNotification(payload) {
|
|
79
|
-
function __triggerNotification({ host }) {
|
|
80
|
-
const metadata = {
|
|
81
|
-
entityFqdn: 'wix.events.notifications.v2.notification_config',
|
|
82
|
-
method: 'POST',
|
|
83
|
-
methodFqn: 'wix.events.notifications.v2.NotificationService.TriggerNotification',
|
|
84
|
-
packageName: PACKAGE_NAME,
|
|
85
|
-
url: resolveWixEventsNotificationsV2NotificationServiceUrl({
|
|
86
|
-
protoPath: '/v2/notifications/trigger',
|
|
87
|
-
data: payload,
|
|
88
|
-
host,
|
|
89
|
-
}),
|
|
90
|
-
data: payload,
|
|
91
|
-
};
|
|
92
|
-
return metadata;
|
|
93
|
-
}
|
|
94
|
-
return __triggerNotification;
|
|
95
|
-
}
|
|
96
|
-
exports.triggerNotification = triggerNotification;
|
|
97
|
-
/** Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet. */
|
|
98
|
-
function resolveNotificationConfig(payload) {
|
|
99
|
-
function __resolveNotificationConfig({ host }) {
|
|
100
|
-
const metadata = {
|
|
101
|
-
entityFqdn: 'wix.events.notifications.v2.notification_config',
|
|
102
|
-
method: 'GET',
|
|
103
|
-
methodFqn: 'wix.events.notifications.v2.NotificationConfigManagement.ResolveNotificationConfig',
|
|
104
|
-
packageName: PACKAGE_NAME,
|
|
105
|
-
url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({
|
|
106
|
-
protoPath: '/v2/notification-configs/resolve/{notificationConfigId}',
|
|
107
|
-
data: payload,
|
|
108
|
-
host,
|
|
109
|
-
}),
|
|
110
|
-
params: (0, rest_modules_1.toURLSearchParams)(payload),
|
|
111
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
112
|
-
{
|
|
113
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
114
|
-
paths: [
|
|
115
|
-
{ path: 'notificationConfig.createdDate' },
|
|
116
|
-
{ path: 'notificationConfig.updatedDate' },
|
|
117
|
-
],
|
|
118
|
-
},
|
|
119
|
-
]),
|
|
120
|
-
};
|
|
121
|
-
return metadata;
|
|
122
|
-
}
|
|
123
|
-
return __resolveNotificationConfig;
|
|
124
|
-
}
|
|
125
|
-
exports.resolveNotificationConfig = resolveNotificationConfig;
|
|
126
|
-
/** Upsert a NotificationConfig */
|
|
127
|
-
function upsertNotificationConfig(payload) {
|
|
128
|
-
function __upsertNotificationConfig({ host }) {
|
|
129
|
-
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
|
130
|
-
{
|
|
131
|
-
transformFn: field_mask_1.transformSDKFieldMaskToRESTFieldMask,
|
|
132
|
-
paths: [{ path: 'fieldMask' }],
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
|
136
|
-
paths: [
|
|
137
|
-
{ path: 'notificationConfig.createdDate' },
|
|
138
|
-
{ path: 'notificationConfig.updatedDate' },
|
|
139
|
-
],
|
|
140
|
-
},
|
|
141
|
-
]);
|
|
142
|
-
const metadata = {
|
|
143
|
-
entityFqdn: 'wix.events.notifications.v2.notification_config',
|
|
144
|
-
method: 'POST',
|
|
145
|
-
methodFqn: 'wix.events.notifications.v2.NotificationConfigManagement.UpsertNotificationConfig',
|
|
146
|
-
packageName: PACKAGE_NAME,
|
|
147
|
-
url: resolveWixEventsNotificationsV2NotificationConfigManagementUrl({
|
|
148
|
-
protoPath: '/v2/notification-configs/{notificationConfig.id}',
|
|
149
|
-
data: serializedData,
|
|
150
|
-
host,
|
|
151
|
-
}),
|
|
152
|
-
data: serializedData,
|
|
153
|
-
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
|
154
|
-
{
|
|
155
|
-
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
|
156
|
-
paths: [
|
|
157
|
-
{ path: 'notificationConfig.createdDate' },
|
|
158
|
-
{ path: 'notificationConfig.updatedDate' },
|
|
159
|
-
],
|
|
160
|
-
},
|
|
161
|
-
]),
|
|
162
|
-
};
|
|
163
|
-
return metadata;
|
|
164
|
-
}
|
|
165
|
-
return __upsertNotificationConfig;
|
|
166
|
-
}
|
|
167
|
-
exports.upsertNotificationConfig = upsertNotificationConfig;
|
|
168
|
-
//# sourceMappingURL=events-notifications-v2-notification-config-notifications.http.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events-notifications-v2-notification-config-notifications.http.js","sourceRoot":"","sources":["../../../src/events-notifications-v2-notification-config-notifications.http.ts"],"names":[],"mappings":";;;AAAA,gEAAkE;AAClE,0EAAkG;AAClG,0EAAkG;AAClG,4EAAmG;AACnG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,8DAA8D,CACrE,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,uBAA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G,IAAA,gCAAc,EAAC,OAAO,EAAE;YAC7C;gBACE,WAAW,EAAE,iDAAoC;gBACjD,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;aAC/B;YACD;gBACE,WAAW,EAAE,gDAAoC;gBACjD,KAAK,EAAE;oBACL,EAAE,IAAI,EAAE,gCAAgC,EAAE;oBAC1C,EAAE,IAAI,EAAE,gCAAgC,EAAE;iBAC3C;aACF;SACF,CAAC,CAAC;QACH,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,iDAAiD;YAC7D,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,mFAAmF;YACrF,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,8DAA8D,CAAC;gBAClE,SAAS,EAAE,kDAAkD;gBAC7D,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,gCAAgC,EAAE;wBAC1C,EAAE,IAAI,EAAE,gCAAgC,EAAE;qBAC3C;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,0BAA0B,CAAC;AACpC,CAAC;AA7CD,4DA6CC"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as ambassadorWixEventsNotificationsV2NotificationConfigTypes from './events-notifications-v2-notification-config-notifications.types.js';
|
|
2
|
-
import * as ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes from './events-notifications-v2-notification-config-notifications.universal.js';
|
|
3
|
-
export type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
|
4
|
-
getUrl: (context: any) => string;
|
|
5
|
-
httpMethod: K;
|
|
6
|
-
path: string;
|
|
7
|
-
pathParams: M;
|
|
8
|
-
__requestType: T;
|
|
9
|
-
__originalRequestType: S;
|
|
10
|
-
__responseType: Q;
|
|
11
|
-
__originalResponseType: R;
|
|
12
|
-
};
|
|
13
|
-
export declare function triggerNotification(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.TriggerNotificationRequest, ambassadorWixEventsNotificationsV2NotificationConfigTypes.TriggerNotificationRequest, ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.TriggerNotificationResponse, ambassadorWixEventsNotificationsV2NotificationConfigTypes.TriggerNotificationResponse>;
|
|
14
|
-
export declare function resolveNotificationConfig(): __PublicMethodMetaInfo<'GET', {
|
|
15
|
-
notificationConfigId: string;
|
|
16
|
-
}, ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.ResolveNotificationConfigRequest, ambassadorWixEventsNotificationsV2NotificationConfigTypes.ResolveNotificationConfigRequest, ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.ResolveNotificationConfigResponse, ambassadorWixEventsNotificationsV2NotificationConfigTypes.ResolveNotificationConfigResponse>;
|
|
17
|
-
export declare function upsertNotificationConfig(): __PublicMethodMetaInfo<'POST', {
|
|
18
|
-
notificationConfigId: string;
|
|
19
|
-
}, ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.UpsertNotificationConfigRequest, ambassadorWixEventsNotificationsV2NotificationConfigTypes.UpsertNotificationConfigRequest, ambassadorWixEventsNotificationsV2NotificationConfigUniversalTypes.UpsertNotificationConfigResponse, ambassadorWixEventsNotificationsV2NotificationConfigTypes.UpsertNotificationConfigResponse>;
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.upsertNotificationConfig = exports.resolveNotificationConfig = exports.triggerNotification = void 0;
|
|
27
|
-
const ambassadorWixEventsNotificationsV2NotificationConfig = __importStar(require("./events-notifications-v2-notification-config-notifications.http.js"));
|
|
28
|
-
function triggerNotification() {
|
|
29
|
-
const payload = {};
|
|
30
|
-
const getRequestOptions = ambassadorWixEventsNotificationsV2NotificationConfig.triggerNotification(payload);
|
|
31
|
-
const getUrl = (context) => {
|
|
32
|
-
const { url } = getRequestOptions(context);
|
|
33
|
-
return url;
|
|
34
|
-
};
|
|
35
|
-
return {
|
|
36
|
-
getUrl,
|
|
37
|
-
httpMethod: 'POST',
|
|
38
|
-
path: '/v2/notifications/trigger',
|
|
39
|
-
pathParams: {},
|
|
40
|
-
__requestType: null,
|
|
41
|
-
__originalRequestType: null,
|
|
42
|
-
__responseType: null,
|
|
43
|
-
__originalResponseType: null,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
exports.triggerNotification = triggerNotification;
|
|
47
|
-
function resolveNotificationConfig() {
|
|
48
|
-
const payload = { notificationConfigId: ':notificationConfigId' };
|
|
49
|
-
const getRequestOptions = ambassadorWixEventsNotificationsV2NotificationConfig.resolveNotificationConfig(payload);
|
|
50
|
-
const getUrl = (context) => {
|
|
51
|
-
const { url } = getRequestOptions(context);
|
|
52
|
-
return url;
|
|
53
|
-
};
|
|
54
|
-
return {
|
|
55
|
-
getUrl,
|
|
56
|
-
httpMethod: 'GET',
|
|
57
|
-
path: '/v2/notification-configs/resolve/{notificationConfigId}',
|
|
58
|
-
pathParams: { notificationConfigId: 'notificationConfigId' },
|
|
59
|
-
__requestType: null,
|
|
60
|
-
__originalRequestType: null,
|
|
61
|
-
__responseType: null,
|
|
62
|
-
__originalResponseType: null,
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
exports.resolveNotificationConfig = resolveNotificationConfig;
|
|
66
|
-
function upsertNotificationConfig() {
|
|
67
|
-
const payload = {
|
|
68
|
-
notificationConfig: { id: ':notificationConfigId' },
|
|
69
|
-
};
|
|
70
|
-
const getRequestOptions = ambassadorWixEventsNotificationsV2NotificationConfig.upsertNotificationConfig(payload);
|
|
71
|
-
const getUrl = (context) => {
|
|
72
|
-
const { url } = getRequestOptions(context);
|
|
73
|
-
return url;
|
|
74
|
-
};
|
|
75
|
-
return {
|
|
76
|
-
getUrl,
|
|
77
|
-
httpMethod: 'POST',
|
|
78
|
-
path: '/v2/notification-configs/{notificationConfig.id}',
|
|
79
|
-
pathParams: { notificationConfigId: 'notificationConfigId' },
|
|
80
|
-
__requestType: null,
|
|
81
|
-
__originalRequestType: null,
|
|
82
|
-
__responseType: null,
|
|
83
|
-
__originalResponseType: null,
|
|
84
|
-
};
|
|
85
|
-
}
|
|
86
|
-
exports.upsertNotificationConfig = upsertNotificationConfig;
|
|
87
|
-
//# sourceMappingURL=events-notifications-v2-notification-config-notifications.meta.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events-notifications-v2-notification-config-notifications.meta.js","sourceRoot":"","sources":["../../../src/events-notifications-v2-notification-config-notifications.meta.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,0JAA4I;AAsB5I,SAAgB,mBAAmB;IAQjC,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,oDAAoD,CAAC,mBAAmB,CACtE,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,2BAA2B;QACjC,UAAU,EAAE,EAAE;QACd,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,kDA8BC;AAED,SAAgB,yBAAyB;IAQvC,MAAM,OAAO,GAAG,EAAE,oBAAoB,EAAE,uBAAuB,EAAS,CAAC;IAEzE,MAAM,iBAAiB,GACrB,oDAAoD,CAAC,yBAAyB,CAC5E,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,KAAK;QACjB,IAAI,EAAE,yDAAyD;QAC/D,UAAU,EAAE,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;QAC5D,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AA9BD,8DA8BC;AAED,SAAgB,wBAAwB;IAQtC,MAAM,OAAO,GAAG;QACd,kBAAkB,EAAE,EAAE,EAAE,EAAE,uBAAuB,EAAE;KAC7C,CAAC;IAET,MAAM,iBAAiB,GACrB,oDAAoD,CAAC,wBAAwB,CAC3E,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;QACL,MAAM;QACN,UAAU,EAAE,MAAM;QAClB,IAAI,EAAE,kDAAkD;QACxD,UAAU,EAAE,EAAE,oBAAoB,EAAE,sBAAsB,EAAE;QAC5D,aAAa,EAAE,IAAW;QAC1B,qBAAqB,EAAE,IAAW;QAClC,cAAc,EAAE,IAAW;QAC3B,sBAAsB,EAAE,IAAW;KACpC,CAAC;AACJ,CAAC;AAhCD,4DAgCC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { EventDefinition, HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope, ResolveNotificationConfigResponse, TriggerNotificationOptions, UpsertNotificationConfig, UpsertNotificationConfigResponse } from './events-notifications-v2-notification-config-notifications.universal.js';
|
|
3
|
-
export declare const __metadata: {
|
|
4
|
-
PACKAGE_NAME: string;
|
|
5
|
-
};
|
|
6
|
-
export declare function triggerNotification(httpClient: HttpClient): TriggerNotificationSignature;
|
|
7
|
-
interface TriggerNotificationSignature {
|
|
8
|
-
/**
|
|
9
|
-
* Triggers notification
|
|
10
|
-
*/
|
|
11
|
-
(options: TriggerNotificationOptions): Promise<void>;
|
|
12
|
-
}
|
|
13
|
-
export declare function resolveNotificationConfig(httpClient: HttpClient): ResolveNotificationConfigSignature;
|
|
14
|
-
interface ResolveNotificationConfigSignature {
|
|
15
|
-
/**
|
|
16
|
-
* Resolves a NotificationConfig by id. Returns saved value or default value if not saved yet.
|
|
17
|
-
* @param - Id of the NotificationConfig to retrieve
|
|
18
|
-
*/
|
|
19
|
-
(notificationConfigId: string): Promise<ResolveNotificationConfigResponse>;
|
|
20
|
-
}
|
|
21
|
-
export declare function upsertNotificationConfig(httpClient: HttpClient): UpsertNotificationConfigSignature;
|
|
22
|
-
interface UpsertNotificationConfigSignature {
|
|
23
|
-
/**
|
|
24
|
-
* Upsert a NotificationConfig
|
|
25
|
-
* @param - Event ID.
|
|
26
|
-
*/
|
|
27
|
-
(_id: string, notificationConfig: UpsertNotificationConfig): Promise<UpsertNotificationConfigResponse>;
|
|
28
|
-
}
|
|
29
|
-
export declare const onNotificationConfigCreated: EventDefinition<NotificationConfigCreatedEnvelope, "wix.events.notifications.v2.notification_config_created">;
|
|
30
|
-
export declare const onNotificationConfigUpdated: EventDefinition<NotificationConfigUpdatedEnvelope, "wix.events.notifications.v2.notification_config_updated">;
|
|
31
|
-
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, NotificationConfigCreatedEnvelope, NotificationConfigUpdatedEnvelope, 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, ResolveNotificationConfigResponse, 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, TriggerNotificationOptions, TriggerNotificationOptionsGuestsOneOf, TriggerNotificationOptionsNotificationOneOf, TriggerNotificationRequest, TriggerNotificationRequestGuestsOneOf, TriggerNotificationRequestNotificationOneOf, TriggerNotificationResponse, Type, UpsertNotificationConfig, UpsertNotificationConfigRequest, UpsertNotificationConfigResponse, V1Link, V1LinkDataOneOf, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType, } from './events-notifications-v2-notification-config-notifications.universal.js';
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VerticalAlignment = exports.ValueType = exports.Type = exports.ThumbnailsAlignment = exports.TextAlignment = exports.TaxType = exports.Target = exports.SubdivisionType = exports.Status = exports.State = exports.Source = exports.RsvpStatusOptions = exports.RegistrationStatus = exports.PushNotificationType = exports.Position = exports.PollLayoutType = exports.PollLayoutDirection = exports.PluginContainerDataAlignment = exports.Orientation = exports.OrderStatus = exports.NullValue = exports.NodeType = exports.MapType = exports.LocationType = exports.LineStyle = exports.LayoutType = exports.InputControlType = exports.InitialExpandedItems = exports.GIFType = exports.FontType = exports.FeeType = exports.FeeName = exports.EventType = exports.EventStatus = exports.EmailNotificationType = exports.EmailNotificationReminderTime = exports.Direction = exports.DecorationType = exports.Crop = exports.ConferenceType = exports.ButtonDataType = exports.BackgroundType = exports.AppType = exports.Alignment = exports.onNotificationConfigUpdated = exports.onNotificationConfigCreated = exports.upsertNotificationConfig = exports.resolveNotificationConfig = exports.triggerNotification = exports.__metadata = void 0;
|
|
4
|
-
exports.WidthType = exports.Width = exports.WebhookIdentityType = exports.VoteRole = exports.VisitorType = exports.ViewRole = exports.ViewMode = void 0;
|
|
5
|
-
const rename_all_nested_keys_1 = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
6
|
-
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
7
|
-
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
8
|
-
const sdk_types_1 = require("@wix/sdk-types");
|
|
9
|
-
const events_notifications_v2_notification_config_notifications_universal_js_1 = require("./events-notifications-v2-notification-config-notifications.universal.js");
|
|
10
|
-
exports.__metadata = { PACKAGE_NAME: '@wix/events' };
|
|
11
|
-
function triggerNotification(httpClient) {
|
|
12
|
-
return (options) => (0, events_notifications_v2_notification_config_notifications_universal_js_1.triggerNotification)(options,
|
|
13
|
-
// @ts-ignore
|
|
14
|
-
{ httpClient });
|
|
15
|
-
}
|
|
16
|
-
exports.triggerNotification = triggerNotification;
|
|
17
|
-
function resolveNotificationConfig(httpClient) {
|
|
18
|
-
return (notificationConfigId) => (0, events_notifications_v2_notification_config_notifications_universal_js_1.resolveNotificationConfig)(notificationConfigId,
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
{ httpClient });
|
|
21
|
-
}
|
|
22
|
-
exports.resolveNotificationConfig = resolveNotificationConfig;
|
|
23
|
-
function upsertNotificationConfig(httpClient) {
|
|
24
|
-
return (_id, notificationConfig) => (0, events_notifications_v2_notification_config_notifications_universal_js_1.upsertNotificationConfig)(_id, notificationConfig,
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
{ httpClient });
|
|
27
|
-
}
|
|
28
|
-
exports.upsertNotificationConfig = upsertNotificationConfig;
|
|
29
|
-
exports.onNotificationConfigCreated = (0, sdk_types_1.EventDefinition)('wix.events.notifications.v2.notification_config_created', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
30
|
-
{
|
|
31
|
-
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
32
|
-
paths: [
|
|
33
|
-
{ path: 'entity.createdDate' },
|
|
34
|
-
{ path: 'entity.updatedDate' },
|
|
35
|
-
{ path: 'metadata.eventTime' },
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
])))();
|
|
39
|
-
exports.onNotificationConfigUpdated = (0, sdk_types_1.EventDefinition)('wix.events.notifications.v2.notification_config_updated', true, (event) => (0, rename_all_nested_keys_1.renameKeysFromRESTResponseToSDKResponse)((0, transform_paths_1.transformPaths)(event, [
|
|
40
|
-
{
|
|
41
|
-
transformFn: timestamp_1.transformRESTTimestampToSDKTimestamp,
|
|
42
|
-
paths: [
|
|
43
|
-
{ path: 'entity.createdDate' },
|
|
44
|
-
{ path: 'entity.updatedDate' },
|
|
45
|
-
{ path: 'metadata.eventTime' },
|
|
46
|
-
],
|
|
47
|
-
},
|
|
48
|
-
])))();
|
|
49
|
-
var events_notifications_v2_notification_config_notifications_universal_js_2 = require("./events-notifications-v2-notification-config-notifications.universal.js");
|
|
50
|
-
Object.defineProperty(exports, "Alignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Alignment; } });
|
|
51
|
-
Object.defineProperty(exports, "AppType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.AppType; } });
|
|
52
|
-
Object.defineProperty(exports, "BackgroundType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.BackgroundType; } });
|
|
53
|
-
Object.defineProperty(exports, "ButtonDataType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.ButtonDataType; } });
|
|
54
|
-
Object.defineProperty(exports, "ConferenceType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.ConferenceType; } });
|
|
55
|
-
Object.defineProperty(exports, "Crop", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Crop; } });
|
|
56
|
-
Object.defineProperty(exports, "DecorationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.DecorationType; } });
|
|
57
|
-
Object.defineProperty(exports, "Direction", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Direction; } });
|
|
58
|
-
Object.defineProperty(exports, "EmailNotificationReminderTime", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.EmailNotificationReminderTime; } });
|
|
59
|
-
Object.defineProperty(exports, "EmailNotificationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.EmailNotificationType; } });
|
|
60
|
-
Object.defineProperty(exports, "EventStatus", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.EventStatus; } });
|
|
61
|
-
Object.defineProperty(exports, "EventType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.EventType; } });
|
|
62
|
-
Object.defineProperty(exports, "FeeName", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.FeeName; } });
|
|
63
|
-
Object.defineProperty(exports, "FeeType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.FeeType; } });
|
|
64
|
-
Object.defineProperty(exports, "FontType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.FontType; } });
|
|
65
|
-
Object.defineProperty(exports, "GIFType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.GIFType; } });
|
|
66
|
-
Object.defineProperty(exports, "InitialExpandedItems", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.InitialExpandedItems; } });
|
|
67
|
-
Object.defineProperty(exports, "InputControlType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.InputControlType; } });
|
|
68
|
-
Object.defineProperty(exports, "LayoutType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.LayoutType; } });
|
|
69
|
-
Object.defineProperty(exports, "LineStyle", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.LineStyle; } });
|
|
70
|
-
Object.defineProperty(exports, "LocationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.LocationType; } });
|
|
71
|
-
Object.defineProperty(exports, "MapType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.MapType; } });
|
|
72
|
-
Object.defineProperty(exports, "NodeType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.NodeType; } });
|
|
73
|
-
Object.defineProperty(exports, "NullValue", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.NullValue; } });
|
|
74
|
-
Object.defineProperty(exports, "OrderStatus", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.OrderStatus; } });
|
|
75
|
-
Object.defineProperty(exports, "Orientation", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Orientation; } });
|
|
76
|
-
Object.defineProperty(exports, "PluginContainerDataAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.PluginContainerDataAlignment; } });
|
|
77
|
-
Object.defineProperty(exports, "PollLayoutDirection", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.PollLayoutDirection; } });
|
|
78
|
-
Object.defineProperty(exports, "PollLayoutType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.PollLayoutType; } });
|
|
79
|
-
Object.defineProperty(exports, "Position", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Position; } });
|
|
80
|
-
Object.defineProperty(exports, "PushNotificationType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.PushNotificationType; } });
|
|
81
|
-
Object.defineProperty(exports, "RegistrationStatus", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.RegistrationStatus; } });
|
|
82
|
-
Object.defineProperty(exports, "RsvpStatusOptions", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.RsvpStatusOptions; } });
|
|
83
|
-
Object.defineProperty(exports, "Source", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Source; } });
|
|
84
|
-
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.State; } });
|
|
85
|
-
Object.defineProperty(exports, "Status", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Status; } });
|
|
86
|
-
Object.defineProperty(exports, "SubdivisionType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.SubdivisionType; } });
|
|
87
|
-
Object.defineProperty(exports, "Target", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Target; } });
|
|
88
|
-
Object.defineProperty(exports, "TaxType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.TaxType; } });
|
|
89
|
-
Object.defineProperty(exports, "TextAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.TextAlignment; } });
|
|
90
|
-
Object.defineProperty(exports, "ThumbnailsAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.ThumbnailsAlignment; } });
|
|
91
|
-
Object.defineProperty(exports, "Type", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Type; } });
|
|
92
|
-
Object.defineProperty(exports, "ValueType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.ValueType; } });
|
|
93
|
-
Object.defineProperty(exports, "VerticalAlignment", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.VerticalAlignment; } });
|
|
94
|
-
Object.defineProperty(exports, "ViewMode", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.ViewMode; } });
|
|
95
|
-
Object.defineProperty(exports, "ViewRole", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.ViewRole; } });
|
|
96
|
-
Object.defineProperty(exports, "VisitorType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.VisitorType; } });
|
|
97
|
-
Object.defineProperty(exports, "VoteRole", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.VoteRole; } });
|
|
98
|
-
Object.defineProperty(exports, "WebhookIdentityType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.WebhookIdentityType; } });
|
|
99
|
-
Object.defineProperty(exports, "Width", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.Width; } });
|
|
100
|
-
Object.defineProperty(exports, "WidthType", { enumerable: true, get: function () { return events_notifications_v2_notification_config_notifications_universal_js_2.WidthType; } });
|
|
101
|
-
//# sourceMappingURL=events-notifications-v2-notification-config-notifications.public.js.map
|
package/build/cjs/src/events-notifications-v2-notification-config-notifications.public.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"events-notifications-v2-notification-config-notifications.public.js","sourceRoot":"","sources":["../../../src/events-notifications-v2-notification-config-notifications.public.ts"],"names":[],"mappings":";;;;AAAA,oFAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,8CAA6D;AAC7D,qKAUkF;AAErE,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC;AAE1D,SAAgB,mBAAmB,CACjC,UAAsB;IAEtB,OAAO,CAAC,OAAmC,EAAE,EAAE,CAC7C,IAAA,4FAA4B,EAC1B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf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