@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.js';
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.js';
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.js';
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 {
@@ -22,18 +22,22 @@ var index_exports = {};
22
22
  __export(index_exports, {
23
23
  Alignment: () => Alignment,
24
24
  AppType: () => AppType,
25
+ AspectRatio: () => AspectRatio,
25
26
  BackgroundType: () => BackgroundType,
26
27
  ButtonDataType: () => ButtonDataType,
28
+ CardStylesType: () => CardStylesType,
27
29
  ConferenceType: () => ConferenceType,
28
30
  Crop: () => Crop,
29
31
  DecorationType: () => DecorationType,
30
32
  Direction: () => Direction,
33
+ DividerDataAlignment: () => DividerDataAlignment,
31
34
  EventStatus: () => EventStatus,
32
35
  EventType: () => EventType,
33
36
  FontType: () => FontType,
34
37
  GIFType: () => GIFType,
35
38
  InitialExpandedItems: () => InitialExpandedItems,
36
39
  InputControlType: () => InputControlType,
40
+ Layout: () => Layout,
37
41
  LayoutType: () => LayoutType,
38
42
  LineStyle: () => LineStyle,
39
43
  LocationType: () => LocationType,
@@ -41,16 +45,19 @@ __export(index_exports, {
41
45
  NodeType: () => NodeType,
42
46
  NullValue: () => NullValue,
43
47
  Orientation: () => Orientation,
48
+ Placement: () => Placement,
44
49
  PluginContainerDataAlignment: () => PluginContainerDataAlignment,
45
50
  PollLayoutDirection: () => PollLayoutDirection,
46
51
  PollLayoutType: () => PollLayoutType,
47
52
  Position: () => Position,
48
53
  RegistrationStatus: () => RegistrationStatus,
49
54
  RequestedFields: () => RequestedFields,
55
+ Resizing: () => Resizing,
50
56
  RsvpStatusOptions: () => RsvpStatusOptions,
51
57
  Source: () => Source,
52
58
  State: () => State,
53
59
  Status: () => Status,
60
+ StylesPosition: () => StylesPosition,
54
61
  SubdivisionType: () => SubdivisionType,
55
62
  Target: () => Target,
56
63
  TaxType: () => TaxType,
@@ -908,12 +915,12 @@ var Width = /* @__PURE__ */ ((Width2) => {
908
915
  Width2["SMALL"] = "SMALL";
909
916
  return Width2;
910
917
  })(Width || {});
911
- var Alignment = /* @__PURE__ */ ((Alignment2) => {
912
- Alignment2["CENTER"] = "CENTER";
913
- Alignment2["LEFT"] = "LEFT";
914
- Alignment2["RIGHT"] = "RIGHT";
915
- return Alignment2;
916
- })(Alignment || {});
918
+ var DividerDataAlignment = /* @__PURE__ */ ((DividerDataAlignment2) => {
919
+ DividerDataAlignment2["CENTER"] = "CENTER";
920
+ DividerDataAlignment2["LEFT"] = "LEFT";
921
+ DividerDataAlignment2["RIGHT"] = "RIGHT";
922
+ return DividerDataAlignment2;
923
+ })(DividerDataAlignment || {});
917
924
  var ViewMode = /* @__PURE__ */ ((ViewMode2) => {
918
925
  ViewMode2["NONE"] = "NONE";
919
926
  ViewMode2["FULL"] = "FULL";
@@ -961,13 +968,13 @@ var Source = /* @__PURE__ */ ((Source2) => {
961
968
  Source2["ADSENSE"] = "ADSENSE";
962
969
  return Source2;
963
970
  })(Source || {});
964
- var Position = /* @__PURE__ */ ((Position2) => {
965
- Position2["START"] = "START";
966
- Position2["END"] = "END";
967
- Position2["TOP"] = "TOP";
968
- Position2["HIDDEN"] = "HIDDEN";
969
- return Position2;
970
- })(Position || {});
971
+ var StylesPosition = /* @__PURE__ */ ((StylesPosition2) => {
972
+ StylesPosition2["START"] = "START";
973
+ StylesPosition2["END"] = "END";
974
+ StylesPosition2["TOP"] = "TOP";
975
+ StylesPosition2["HIDDEN"] = "HIDDEN";
976
+ return StylesPosition2;
977
+ })(StylesPosition || {});
971
978
  var MapType = /* @__PURE__ */ ((MapType2) => {
972
979
  MapType2["ROADMAP"] = "ROADMAP";
973
980
  MapType2["SATELITE"] = "SATELITE";
@@ -1023,6 +1030,43 @@ var FontType = /* @__PURE__ */ ((FontType2) => {
1023
1030
  FontType2["EM"] = "EM";
1024
1031
  return FontType2;
1025
1032
  })(FontType || {});
1033
+ var Position = /* @__PURE__ */ ((Position2) => {
1034
+ Position2["START"] = "START";
1035
+ Position2["END"] = "END";
1036
+ Position2["TOP"] = "TOP";
1037
+ return Position2;
1038
+ })(Position || {});
1039
+ var AspectRatio = /* @__PURE__ */ ((AspectRatio2) => {
1040
+ AspectRatio2["SQUARE"] = "SQUARE";
1041
+ AspectRatio2["RECTANGLE"] = "RECTANGLE";
1042
+ return AspectRatio2;
1043
+ })(AspectRatio || {});
1044
+ var Resizing = /* @__PURE__ */ ((Resizing2) => {
1045
+ Resizing2["FILL"] = "FILL";
1046
+ Resizing2["FIT"] = "FIT";
1047
+ return Resizing2;
1048
+ })(Resizing || {});
1049
+ var Placement = /* @__PURE__ */ ((Placement2) => {
1050
+ Placement2["IMAGE"] = "IMAGE";
1051
+ Placement2["PRODUCT_INFO"] = "PRODUCT_INFO";
1052
+ return Placement2;
1053
+ })(Placement || {});
1054
+ var CardStylesType = /* @__PURE__ */ ((CardStylesType2) => {
1055
+ CardStylesType2["CONTAINED"] = "CONTAINED";
1056
+ CardStylesType2["FRAMELESS"] = "FRAMELESS";
1057
+ return CardStylesType2;
1058
+ })(CardStylesType || {});
1059
+ var Alignment = /* @__PURE__ */ ((Alignment2) => {
1060
+ Alignment2["START"] = "START";
1061
+ Alignment2["CENTER"] = "CENTER";
1062
+ Alignment2["END"] = "END";
1063
+ return Alignment2;
1064
+ })(Alignment || {});
1065
+ var Layout = /* @__PURE__ */ ((Layout2) => {
1066
+ Layout2["STACKED"] = "STACKED";
1067
+ Layout2["SIDE_BY_SIDE"] = "SIDE_BY_SIDE";
1068
+ return Layout2;
1069
+ })(Layout || {});
1026
1070
  var AppType = /* @__PURE__ */ ((AppType2) => {
1027
1071
  AppType2["PRODUCT"] = "PRODUCT";
1028
1072
  AppType2["EVENT"] = "EVENT";
@@ -1458,18 +1502,22 @@ var onFormEventUpdated2 = (0, import_event_definition_modules.createEventModule)
1458
1502
  0 && (module.exports = {
1459
1503
  Alignment,
1460
1504
  AppType,
1505
+ AspectRatio,
1461
1506
  BackgroundType,
1462
1507
  ButtonDataType,
1508
+ CardStylesType,
1463
1509
  ConferenceType,
1464
1510
  Crop,
1465
1511
  DecorationType,
1466
1512
  Direction,
1513
+ DividerDataAlignment,
1467
1514
  EventStatus,
1468
1515
  EventType,
1469
1516
  FontType,
1470
1517
  GIFType,
1471
1518
  InitialExpandedItems,
1472
1519
  InputControlType,
1520
+ Layout,
1473
1521
  LayoutType,
1474
1522
  LineStyle,
1475
1523
  LocationType,
@@ -1477,16 +1525,19 @@ var onFormEventUpdated2 = (0, import_event_definition_modules.createEventModule)
1477
1525
  NodeType,
1478
1526
  NullValue,
1479
1527
  Orientation,
1528
+ Placement,
1480
1529
  PluginContainerDataAlignment,
1481
1530
  PollLayoutDirection,
1482
1531
  PollLayoutType,
1483
1532
  Position,
1484
1533
  RegistrationStatus,
1485
1534
  RequestedFields,
1535
+ Resizing,
1486
1536
  RsvpStatusOptions,
1487
1537
  Source,
1488
1538
  State,
1489
1539
  Status,
1540
+ StylesPosition,
1490
1541
  SubdivisionType,
1491
1542
  Target,
1492
1543
  TaxType,