@wix/auto_sdk_events_forms 1.0.36 → 1.0.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,8 @@
1
- import { HttpClient, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
1
+ import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
2
  import { Form, AddControlOptions, AddControlResponse, AddControlApplicationErrors, UpdateControlIdentifiers, UpdateControlOptions, UpdateControlResponse, UpdateControlApplicationErrors, DeleteControlIdentifiers, DeleteControlResponse, DeleteControlApplicationErrors, UpdateMessagesOptions, UpdateMessagesResponse, PublishDraftResponse, FormEventUpdatedEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, AddControlOptionsControlOneOf, AddControlRequest, AddControlRequestControlOneOf, AdditionalGuestsControl, Address, AddressControl, AddressControlLabels, 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, CheckboxControl, CheckoutFormMessages, CodeBlockData, CollapsibleListData, ColorData, Colors, ConferenceType, Crop, Dashboard, DateControl, Decoration, DecorationDataOneOf, DecorationType, DeleteControlRequest, Design, Dimensions, Direction, DiscardDraftRequest, DiscardDraftResponse, DividerData, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DropdownControl, EmailControl, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Event, EventData, EventDisplaySettings, EventStatus, EventType, EventUpdated, ExternalEvent, Feed, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, FormInputControlAdded, FormInputControlDeleted, FormInputControlUpdated, FormMessages, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GetFormRequest, GetFormResponse, Gradient, GuestListConfig, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, InitialExpandedItems, Input, InputControl, InputControlType, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Labels, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, Location, LocationType, MapCoordinates, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Money, NameControl, NameControlLabels, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Occurrence, Oembed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingSession, Option, OptionDesign, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderedListData, Orientation, PDFSettings, ParagraphData, Permissions, PhoneControl, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Positive, PositiveResponseConfirmation, PublishDraftRequest, RadioButtonControl, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, RequestedFields, ResponseConfirmation, RestoreInfo, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpFormMessages, RsvpStatusOptions, RsvpSummary, ScheduleConfig, Scheduling, SeoSchema, SeoSettings, Settings, SiteUrl, Source, Spoiler, SpoilerData, State, Status, StreetAddress, Styles, StylesBorder, Subdivision, SubdivisionType, TableCellData, TableData, Tag, Target, TaxConfig, TaxType, TextAlignment, TextControl, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Ticketing, TicketingConfig, TicketingSummary, TicketsUnavailableMessages, Type, UpdateControlIdentifiersControlOneOf, UpdateControlOptionsControlOneOf, UpdateControlRequest, UpdateControlRequestControlOneOf, UpdateMessagesRequest, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.mjs';
3
+ export { ActionEvent, AddControlOptionsControlOneOf, AddControlRequest, AddControlRequestControlOneOf, AdditionalGuestsControl, Address, AddressControl, AddressControlLabels, 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, CheckboxControl, CheckoutFormMessages, CodeBlockData, CollapsibleListData, ColorData, Colors, ConferenceType, Crop, Dashboard, DateControl, Decoration, DecorationDataOneOf, DecorationType, DeleteControlRequest, Design, Dimensions, Direction, DiscardDraftRequest, DiscardDraftResponse, DividerData, DividerDataAlignment, DocumentStyle, DomainEvent, DomainEventBodyOneOf, DropdownControl, EmailControl, EmbedData, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, Event, EventData, EventDisplaySettings, EventStatus, EventType, EventUpdated, ExternalEvent, Feed, FileData, FileSource, FileSourceDataOneOf, FontSizeData, FontType, FormInputControlAdded, FormInputControlDeleted, FormInputControlUpdated, FormMessages, GIF, GIFData, GIFType, GalleryData, GalleryOptions, GalleryOptionsLayout, GetFormRequest, GetFormResponse, Gradient, GuestListConfig, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImageStyles, InitialExpandedItems, Input, InputControl, InputControlType, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Labels, Layout, LayoutCellData, LayoutType, LineStyle, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListValue, Location, LocationType, MapCoordinates, MapData, MapSettings, MapType, Media, MentionData, MessageEnvelope, Metadata, Money, NameControl, NameControlLabels, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NullValue, Occurrence, Oembed, OnlineConferencing, OnlineConferencingConfig, OnlineConferencingSession, Option, OptionDesign, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderedListData, Orientation, PDFSettings, ParagraphData, Permissions, PhoneControl, Placement, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollLayout, PollLayoutDirection, PollLayoutType, PollSettings, Position, Positive, PositiveResponseConfirmation, PublishDraftRequest, RadioButtonControl, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatus, Rel, RequestedFields, Resizing, ResponseConfirmation, RestoreInfo, RibbonStyles, RichContent, RsvpCollection, RsvpCollectionConfig, RsvpFormMessages, RsvpStatusOptions, RsvpSummary, ScheduleConfig, Scheduling, SeoSchema, SeoSettings, Settings, SiteUrl, Source, Spoiler, SpoilerData, State, Status, StreetAddress, Styles, StylesBorder, StylesPosition, Subdivision, SubdivisionType, TableCellData, TableData, Tag, Target, TaxConfig, TaxType, TextAlignment, TextControl, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, Ticketing, TicketingConfig, TicketingSummary, TicketsUnavailableMessages, Type, UpdateControlIdentifiersControlOneOf, UpdateControlOptionsControlOneOf, UpdateControlRequest, UpdateControlRequestControlOneOf, UpdateMessagesRequest, ValueType, VerticalAlignment, Video, VideoData, ViewMode, ViewRole, VisitorType, VoteRole, WebhookIdentityType, Width, WidthType } from './index.typings.mjs';
4
4
 
5
+ type FormNonNullablePaths = `controls` | `controls.${number}.type` | `controls.${number}.system` | `controls.${number}.name` | `controls.${number}.label` | `controls.${number}.orderIndex` | `controls.${number}._id` | `messages.rsvp.rsvpYesOption` | `messages.rsvp.rsvpNoOption` | `messages.rsvp.positiveMessages.title` | `messages.rsvp.positiveMessages.confirmation.title` | `messages.rsvp.positiveMessages.confirmation.message` | `messages.rsvp.positiveMessages.confirmation.addToCalendarActionLabel` | `messages.rsvp.positiveMessages.confirmation.shareActionLabel` | `messages.rsvp.negativeMessages.title` | `messages.rsvp.negativeMessages.confirmation.title` | `messages.rsvp.negativeMessages.confirmation.shareActionLabel` | `messages.rsvp.submitActionLabel` | `messages.checkout.title` | `messages.checkout.submitActionLabel` | `messages.checkout.confirmation.title` | `messages.checkout.confirmation.message` | `messages.checkout.confirmation.downloadTicketsLabel` | `messages.checkout.confirmation.addToCalendarLabel` | `messages.checkout.confirmation.shareEventLabel` | `messages.registrationClosed.message` | `messages.registrationClosed.exploreEventsActionLabel` | `messages.ticketsUnavailable.message` | `messages.ticketsUnavailable.exploreEventsActionLabel`;
5
6
  declare function getForm$1(httpClient: HttpClient): GetFormSignature;
6
7
  interface GetFormSignature {
7
8
  /**
@@ -13,7 +14,7 @@ interface GetFormSignature {
13
14
  * @returns Currently published event form.
14
15
  * Published form is visible to site visitors.
15
16
  */
16
- (eventId: string): Promise<Form>;
17
+ (eventId: string): Promise<NonNullablePaths<Form, FormNonNullablePaths>>;
17
18
  }
18
19
  declare function addControl$1(httpClient: HttpClient): AddControlSignature;
19
20
  interface AddControlSignature {
@@ -22,8 +23,10 @@ interface AddControlSignature {
22
23
  * @param - Event ID to which the form belongs.
23
24
  * @param - Optional fields.
24
25
  */
25
- (eventId: string, options: AddControlOptions): Promise<AddControlResponse & {
26
- __applicationErrorsType?: AddControlApplicationErrors | undefined;
26
+ (eventId: string, options: AddControlOptions): Promise<NonNullablePaths<AddControlResponse, `_id` | {
27
+ [P in FormNonNullablePaths]: `form.${P}`;
28
+ }[FormNonNullablePaths]> & {
29
+ __applicationErrorsType?: AddControlApplicationErrors;
27
30
  }>;
28
31
  }
29
32
  declare function updateControl$1(httpClient: HttpClient): UpdateControlSignature;
@@ -33,8 +36,10 @@ interface UpdateControlSignature {
33
36
  * @param - Optional fields.
34
37
  * @param - Identifies what form to update.
35
38
  */
36
- (identifiers: UpdateControlIdentifiers, options?: UpdateControlOptions | undefined): Promise<UpdateControlResponse & {
37
- __applicationErrorsType?: UpdateControlApplicationErrors | undefined;
39
+ (identifiers: NonNullablePaths<UpdateControlIdentifiers, `_id` | `eventId`>, options?: UpdateControlOptions): Promise<NonNullablePaths<UpdateControlResponse, {
40
+ [P in FormNonNullablePaths]: `form.${P}`;
41
+ }[FormNonNullablePaths]> & {
42
+ __applicationErrorsType?: UpdateControlApplicationErrors;
38
43
  }>;
39
44
  }
40
45
  declare function deleteControl$1(httpClient: HttpClient): DeleteControlSignature;
@@ -43,8 +48,10 @@ interface DeleteControlSignature {
43
48
  * Deletes an input control from the draft form.
44
49
  * @param - Identifies what form to delete.
45
50
  */
46
- (identifiers: DeleteControlIdentifiers): Promise<DeleteControlResponse & {
47
- __applicationErrorsType?: DeleteControlApplicationErrors | undefined;
51
+ (identifiers: NonNullablePaths<DeleteControlIdentifiers, `_id` | `eventId`>): Promise<NonNullablePaths<DeleteControlResponse, {
52
+ [P in FormNonNullablePaths]: `form.${P}`;
53
+ }[FormNonNullablePaths]> & {
54
+ __applicationErrorsType?: DeleteControlApplicationErrors;
48
55
  }>;
49
56
  }
50
57
  declare function updateMessages$1(httpClient: HttpClient): UpdateMessagesSignature;
@@ -55,7 +62,9 @@ interface UpdateMessagesSignature {
55
62
  * @param - Event ID to which the form belongs.
56
63
  * @param - Optional fields.
57
64
  */
58
- (eventId: string, options?: UpdateMessagesOptions | undefined): Promise<UpdateMessagesResponse>;
65
+ (eventId: string, options?: UpdateMessagesOptions): Promise<NonNullablePaths<UpdateMessagesResponse, {
66
+ [P in FormNonNullablePaths]: `form.${P}`;
67
+ }[FormNonNullablePaths]>>;
59
68
  }
60
69
  declare function publishDraft$1(httpClient: HttpClient): PublishDraftSignature;
61
70
  interface PublishDraftSignature {
@@ -63,7 +72,9 @@ interface PublishDraftSignature {
63
72
  * Publishes the draft form.
64
73
  * @param - Event ID to which the form belongs.
65
74
  */
66
- (eventId: string): Promise<PublishDraftResponse>;
75
+ (eventId: string): Promise<NonNullablePaths<PublishDraftResponse, {
76
+ [P in FormNonNullablePaths]: `form.${P}`;
77
+ }[FormNonNullablePaths]>>;
67
78
  }
68
79
  declare function discardDraft$1(httpClient: HttpClient): DiscardDraftSignature;
69
80
  interface DiscardDraftSignature {
@@ -832,12 +832,12 @@ var Width = /* @__PURE__ */ ((Width2) => {
832
832
  Width2["SMALL"] = "SMALL";
833
833
  return Width2;
834
834
  })(Width || {});
835
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
836
- Alignment2["CENTER"] = "CENTER";
837
- Alignment2["LEFT"] = "LEFT";
838
- Alignment2["RIGHT"] = "RIGHT";
839
- return Alignment2;
840
- })(Alignment || {});
835
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
836
+ DividerDataAlignment2["CENTER"] = "CENTER";
837
+ DividerDataAlignment2["LEFT"] = "LEFT";
838
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
839
+ return DividerDataAlignment2;
840
+ })(DividerDataAlignment || {});
841
841
  var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
842
842
  ViewMode2["NONE"] = "NONE";
843
843
  ViewMode2["FULL"] = "FULL";
@@ -885,13 +885,13 @@ var Source = /* @__PURE__ */ ((Source2) => {
885
885
  Source2["ADSENSE"] = "ADSENSE";
886
886
  return Source2;
887
887
  })(Source || {});
888
- var Position = /* @__PURE__ */ ((Position2) => {
889
- Position2["START"] = "START";
890
- Position2["END"] = "END";
891
- Position2["TOP"] = "TOP";
892
- Position2["HIDDEN"] = "HIDDEN";
893
- return Position2;
894
- })(Position || {});
888
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
889
+ StylesPosition2["START"] = "START";
890
+ StylesPosition2["END"] = "END";
891
+ StylesPosition2["TOP"] = "TOP";
892
+ StylesPosition2["HIDDEN"] = "HIDDEN";
893
+ return StylesPosition2;
894
+ })(StylesPosition || {});
895
895
  var MapType = /* @__PURE__ */ ((MapType2) => {
896
896
  MapType2["ROADMAP"] = "ROADMAP";
897
897
  MapType2["SATELITE"] = "SATELITE";
@@ -947,6 +947,43 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
947
947
  FontType2["EM"] = "EM";
948
948
  return FontType2;
949
949
  })(FontType || {});
950
+ var Position = /* @__PURE__ */ ((Position2) => {
951
+ Position2["START"] = "START";
952
+ Position2["END"] = "END";
953
+ Position2["TOP"] = "TOP";
954
+ return Position2;
955
+ })(Position || {});
956
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
957
+ AspectRatio2["SQUARE"] = "SQUARE";
958
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
959
+ return AspectRatio2;
960
+ })(AspectRatio || {});
961
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
962
+ Resizing2["FILL"] = "FILL";
963
+ Resizing2["FIT"] = "FIT";
964
+ return Resizing2;
965
+ })(Resizing || {});
966
+ var Placement = /* @__PURE__ */ ((Placement2) => {
967
+ Placement2["IMAGE"] = "IMAGE";
968
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
969
+ return Placement2;
970
+ })(Placement || {});
971
+ var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
972
+ CardStylesType2["CONTAINED"] = "CONTAINED";
973
+ CardStylesType2["FRAMELESS"] = "FRAMELESS";
974
+ return CardStylesType2;
975
+ })(CardStylesType || {});
976
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
977
+ Alignment2["START"] = "START";
978
+ Alignment2["CENTER"] = "CENTER";
979
+ Alignment2["END"] = "END";
980
+ return Alignment2;
981
+ })(Alignment || {});
982
+ var Layout = /* @__PURE__ */ ((Layout2) => {
983
+ Layout2["STACKED"] = "STACKED";
984
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
985
+ return Layout2;
986
+ })(Layout || {});
950
987
  var AppType = /* @__PURE__ */ ((AppType2) => {
951
988
  AppType2["PRODUCT"] = "PRODUCT";
952
989
  AppType2["EVENT"] = "EVENT";
@@ -1381,18 +1418,22 @@ var onFormEventUpdated2 = createEventModule(onFormEventUpdated);
1381
1418
  export {
1382
1419
  Alignment,
1383
1420
  AppType,
1421
+ AspectRatio,
1384
1422
  BackgroundType,
1385
1423
  ButtonDataType,
1424
+ CardStylesType,
1386
1425
  ConferenceType,
1387
1426
  Crop,
1388
1427
  DecorationType,
1389
1428
  Direction,
1429
+ DividerDataAlignment,
1390
1430
  EventStatus,
1391
1431
  EventType,
1392
1432
  FontType,
1393
1433
  GIFType,
1394
1434
  InitialExpandedItems,
1395
1435
  InputControlType,
1436
+ Layout,
1396
1437
  LayoutType,
1397
1438
  LineStyle,
1398
1439
  LocationType,
@@ -1400,16 +1441,19 @@ export {
1400
1441
  NodeType,
1401
1442
  NullValue,
1402
1443
  Orientation,
1444
+ Placement,
1403
1445
  PluginContainerDataAlignment,
1404
1446
  PollLayoutDirection,
1405
1447
  PollLayoutType,
1406
1448
  Position,
1407
1449
  RegistrationStatus,
1408
1450
  RequestedFields,
1451
+ Resizing,
1409
1452
  RsvpStatusOptions,
1410
1453
  Source,
1411
1454
  State,
1412
1455
  Status,
1456
+ StylesPosition,
1413
1457
  SubdivisionType,
1414
1458
  Target,
1415
1459
  TaxType,