@wix/auto_sdk_events_forms 1.0.19 → 1.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{cjs/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.mts} +430 -392
- package/build/{internal/cjs/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.ts} +430 -392
- package/build/index.d.mts +84 -0
- package/build/index.d.ts +84 -0
- package/build/index.js +1512 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +1435 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/events-v1-form-forms.types.d.ts → internal/events-v1-form-forms.universal-DsBBfrf9.d.mts} +430 -392
- package/build/internal/{es/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.ts} +430 -392
- package/build/internal/index.d.mts +84 -0
- package/build/internal/index.d.ts +84 -0
- package/build/internal/index.js +1512 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +1435 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +648 -0
- package/build/internal/meta.d.ts +648 -0
- package/build/internal/meta.js +800 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +767 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +648 -0
- package/build/meta.d.ts +648 -0
- package/build/meta.js +800 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +767 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- 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-v1-form-forms.context.d.ts +0 -17
- package/build/cjs/src/events-v1-form-forms.context.js +0 -67
- package/build/cjs/src/events-v1-form-forms.context.js.map +0 -1
- package/build/cjs/src/events-v1-form-forms.http.d.ts +0 -22
- package/build/cjs/src/events-v1-form-forms.http.js +0 -653
- package/build/cjs/src/events-v1-form-forms.http.js.map +0 -1
- package/build/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
- package/build/cjs/src/events-v1-form-forms.meta.js +0 -161
- package/build/cjs/src/events-v1-form-forms.meta.js.map +0 -1
- package/build/cjs/src/events-v1-form-forms.public.d.ts +0 -72
- package/build/cjs/src/events-v1-form-forms.public.js +0 -202
- package/build/cjs/src/events-v1-form-forms.public.js.map +0 -1
- package/build/cjs/src/events-v1-form-forms.types.js +0 -487
- package/build/cjs/src/events-v1-form-forms.types.js.map +0 -1
- package/build/cjs/src/events-v1-form-forms.universal.d.ts +0 -3423
- package/build/cjs/src/events-v1-form-forms.universal.js +0 -880
- package/build/cjs/src/events-v1-form-forms.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-v1-form-forms.context.d.ts +0 -17
- package/build/es/src/events-v1-form-forms.context.js +0 -17
- package/build/es/src/events-v1-form-forms.context.js.map +0 -1
- package/build/es/src/events-v1-form-forms.http.d.ts +0 -22
- package/build/es/src/events-v1-form-forms.http.js +0 -643
- package/build/es/src/events-v1-form-forms.http.js.map +0 -1
- package/build/es/src/events-v1-form-forms.meta.d.ts +0 -35
- package/build/es/src/events-v1-form-forms.meta.js +0 -128
- package/build/es/src/events-v1-form-forms.meta.js.map +0 -1
- package/build/es/src/events-v1-form-forms.public.d.ts +0 -72
- package/build/es/src/events-v1-form-forms.public.js +0 -145
- package/build/es/src/events-v1-form-forms.public.js.map +0 -1
- package/build/es/src/events-v1-form-forms.types.js +0 -484
- package/build/es/src/events-v1-form-forms.types.js.map +0 -1
- package/build/es/src/events-v1-form-forms.universal.d.ts +0 -3423
- package/build/es/src/events-v1-form-forms.universal.js +0 -846
- package/build/es/src/events-v1-form-forms.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-v1-form-forms.context.d.ts +0 -17
- package/build/internal/cjs/src/events-v1-form-forms.context.js +0 -67
- package/build/internal/cjs/src/events-v1-form-forms.context.js.map +0 -1
- package/build/internal/cjs/src/events-v1-form-forms.http.d.ts +0 -22
- package/build/internal/cjs/src/events-v1-form-forms.http.js +0 -653
- package/build/internal/cjs/src/events-v1-form-forms.http.js.map +0 -1
- package/build/internal/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
- package/build/internal/cjs/src/events-v1-form-forms.meta.js +0 -161
- package/build/internal/cjs/src/events-v1-form-forms.meta.js.map +0 -1
- package/build/internal/cjs/src/events-v1-form-forms.public.d.ts +0 -72
- package/build/internal/cjs/src/events-v1-form-forms.public.js +0 -202
- package/build/internal/cjs/src/events-v1-form-forms.public.js.map +0 -1
- package/build/internal/cjs/src/events-v1-form-forms.types.js +0 -487
- package/build/internal/cjs/src/events-v1-form-forms.types.js.map +0 -1
- package/build/internal/cjs/src/events-v1-form-forms.universal.d.ts +0 -3423
- package/build/internal/cjs/src/events-v1-form-forms.universal.js +0 -880
- package/build/internal/cjs/src/events-v1-form-forms.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-v1-form-forms.context.d.ts +0 -17
- package/build/internal/es/src/events-v1-form-forms.context.js +0 -17
- package/build/internal/es/src/events-v1-form-forms.context.js.map +0 -1
- package/build/internal/es/src/events-v1-form-forms.http.d.ts +0 -22
- package/build/internal/es/src/events-v1-form-forms.http.js +0 -643
- package/build/internal/es/src/events-v1-form-forms.http.js.map +0 -1
- package/build/internal/es/src/events-v1-form-forms.meta.d.ts +0 -35
- package/build/internal/es/src/events-v1-form-forms.meta.js +0 -128
- package/build/internal/es/src/events-v1-form-forms.meta.js.map +0 -1
- package/build/internal/es/src/events-v1-form-forms.public.d.ts +0 -72
- package/build/internal/es/src/events-v1-form-forms.public.js +0 -145
- package/build/internal/es/src/events-v1-form-forms.public.js.map +0 -1
- package/build/internal/es/src/events-v1-form-forms.types.js +0 -484
- package/build/internal/es/src/events-v1-form-forms.types.js.map +0 -1
- package/build/internal/es/src/events-v1-form-forms.universal.d.ts +0 -3423
- package/build/internal/es/src/events-v1-form-forms.universal.js +0 -846
- package/build/internal/es/src/events-v1-form-forms.universal.js.map +0 -1
|
@@ -1,846 +0,0 @@
|
|
|
1
|
-
import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
|
|
2
|
-
import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
|
|
3
|
-
import * as ambassadorWixEventsV1Form from './events-v1-form-forms.http.js';
|
|
4
|
-
export var InputControlType;
|
|
5
|
-
(function (InputControlType) {
|
|
6
|
-
/** Single text value field. */
|
|
7
|
-
InputControlType["INPUT"] = "INPUT";
|
|
8
|
-
/** Single text value field with multiple lines. */
|
|
9
|
-
InputControlType["TEXTAREA"] = "TEXTAREA";
|
|
10
|
-
/** Single-choice field with predefined values. */
|
|
11
|
-
InputControlType["DROPDOWN"] = "DROPDOWN";
|
|
12
|
-
/** Single-choice field with predefined values. */
|
|
13
|
-
InputControlType["RADIO"] = "RADIO";
|
|
14
|
-
/** Multiple-choice field with predefined values. */
|
|
15
|
-
InputControlType["CHECKBOX"] = "CHECKBOX";
|
|
16
|
-
/** Fields for entering first and last names. */
|
|
17
|
-
InputControlType["NAME"] = "NAME";
|
|
18
|
-
/** Fields for additional guests and their respective names. */
|
|
19
|
-
InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
|
|
20
|
-
/** Single-line address field. */
|
|
21
|
-
InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
|
|
22
|
-
/** Full address field with multiple lines. */
|
|
23
|
-
InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
|
|
24
|
-
/** Fields for entering year, month, and day. */
|
|
25
|
-
InputControlType["DATE"] = "DATE";
|
|
26
|
-
})(InputControlType || (InputControlType = {}));
|
|
27
|
-
export var ValueType;
|
|
28
|
-
(function (ValueType) {
|
|
29
|
-
ValueType["TEXT"] = "TEXT";
|
|
30
|
-
ValueType["NUMBER"] = "NUMBER";
|
|
31
|
-
ValueType["TEXT_ARRAY"] = "TEXT_ARRAY";
|
|
32
|
-
ValueType["DATE_TIME"] = "DATE_TIME";
|
|
33
|
-
ValueType["ADDRESS"] = "ADDRESS";
|
|
34
|
-
})(ValueType || (ValueType = {}));
|
|
35
|
-
export var RequestedFields;
|
|
36
|
-
(function (RequestedFields) {
|
|
37
|
-
RequestedFields["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
|
|
38
|
-
/** Include soft deleted input controls in the response. */
|
|
39
|
-
RequestedFields["DELETED"] = "DELETED";
|
|
40
|
-
})(RequestedFields || (RequestedFields = {}));
|
|
41
|
-
export var LocationType;
|
|
42
|
-
(function (LocationType) {
|
|
43
|
-
LocationType["VENUE"] = "VENUE";
|
|
44
|
-
LocationType["ONLINE"] = "ONLINE";
|
|
45
|
-
})(LocationType || (LocationType = {}));
|
|
46
|
-
export var SubdivisionType;
|
|
47
|
-
(function (SubdivisionType) {
|
|
48
|
-
SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
49
|
-
/** State */
|
|
50
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
51
|
-
/** County */
|
|
52
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
|
|
53
|
-
/** City/town */
|
|
54
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
|
|
55
|
-
/** Neighborhood/quarter */
|
|
56
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
|
|
57
|
-
/** Street/block */
|
|
58
|
-
SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
|
|
59
|
-
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
60
|
-
SubdivisionType["COUNTRY"] = "COUNTRY";
|
|
61
|
-
})(SubdivisionType || (SubdivisionType = {}));
|
|
62
|
-
export var Status;
|
|
63
|
-
(function (Status) {
|
|
64
|
-
/** Event occurs only once. */
|
|
65
|
-
Status["ONE_TIME"] = "ONE_TIME";
|
|
66
|
-
/** Event is recurring. */
|
|
67
|
-
Status["RECURRING"] = "RECURRING";
|
|
68
|
-
/** Marks the next upcoming occurrence of the recurring event. */
|
|
69
|
-
Status["RECURRING_NEXT"] = "RECURRING_NEXT";
|
|
70
|
-
/** Marks the most recent ended occurrence of the recurring event. */
|
|
71
|
-
Status["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
|
|
72
|
-
/** Marks the most recent canceled occurrence of the recurring event. */
|
|
73
|
-
Status["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
|
|
74
|
-
})(Status || (Status = {}));
|
|
75
|
-
export var EventStatus;
|
|
76
|
-
(function (EventStatus) {
|
|
77
|
-
/** Event is public and scheduled to start */
|
|
78
|
-
EventStatus["SCHEDULED"] = "SCHEDULED";
|
|
79
|
-
/** Event has started */
|
|
80
|
-
EventStatus["STARTED"] = "STARTED";
|
|
81
|
-
/** Event has ended */
|
|
82
|
-
EventStatus["ENDED"] = "ENDED";
|
|
83
|
-
/** Event was canceled */
|
|
84
|
-
EventStatus["CANCELED"] = "CANCELED";
|
|
85
|
-
})(EventStatus || (EventStatus = {}));
|
|
86
|
-
export var EventType;
|
|
87
|
-
(function (EventType) {
|
|
88
|
-
/** Type not available for this request fieldset */
|
|
89
|
-
EventType["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
|
|
90
|
-
/** Registration via RSVP */
|
|
91
|
-
EventType["RSVP"] = "RSVP";
|
|
92
|
-
/** Registration via ticket purchase */
|
|
93
|
-
EventType["TICKETS"] = "TICKETS";
|
|
94
|
-
/** External registration */
|
|
95
|
-
EventType["EXTERNAL"] = "EXTERNAL";
|
|
96
|
-
/** Registration not available */
|
|
97
|
-
EventType["NO_REGISTRATION"] = "NO_REGISTRATION";
|
|
98
|
-
})(EventType || (EventType = {}));
|
|
99
|
-
export var RegistrationStatus;
|
|
100
|
-
(function (RegistrationStatus) {
|
|
101
|
-
/** Registration status is not applicable */
|
|
102
|
-
RegistrationStatus["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
|
|
103
|
-
/** Registration to event is closed */
|
|
104
|
-
RegistrationStatus["CLOSED"] = "CLOSED";
|
|
105
|
-
/** Registration to event is closed manually */
|
|
106
|
-
RegistrationStatus["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
|
|
107
|
-
/** Registration is open via RSVP */
|
|
108
|
-
RegistrationStatus["OPEN_RSVP"] = "OPEN_RSVP";
|
|
109
|
-
/** Registration to event waitlist is open via RSVP */
|
|
110
|
-
RegistrationStatus["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
|
|
111
|
-
/** Registration is open via ticket purchase */
|
|
112
|
-
RegistrationStatus["OPEN_TICKETS"] = "OPEN_TICKETS";
|
|
113
|
-
/** Registration is open via external URL */
|
|
114
|
-
RegistrationStatus["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
|
|
115
|
-
/** Registration will be open via RSVP */
|
|
116
|
-
RegistrationStatus["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
|
|
117
|
-
})(RegistrationStatus || (RegistrationStatus = {}));
|
|
118
|
-
export var RsvpStatusOptions;
|
|
119
|
-
(function (RsvpStatusOptions) {
|
|
120
|
-
/** Only YES RSVP status is available for RSVP registration */
|
|
121
|
-
RsvpStatusOptions["YES_ONLY"] = "YES_ONLY";
|
|
122
|
-
/** YES and NO RSVP status options are available for the registration */
|
|
123
|
-
RsvpStatusOptions["YES_AND_NO"] = "YES_AND_NO";
|
|
124
|
-
})(RsvpStatusOptions || (RsvpStatusOptions = {}));
|
|
125
|
-
export var TaxType;
|
|
126
|
-
(function (TaxType) {
|
|
127
|
-
/** Tax is included in the ticket price. */
|
|
128
|
-
TaxType["INCLUDED"] = "INCLUDED";
|
|
129
|
-
/** Tax is added to the order at the checkout. */
|
|
130
|
-
TaxType["ADDED"] = "ADDED";
|
|
131
|
-
/** Tax is added to the final total at the checkout. */
|
|
132
|
-
TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
|
|
133
|
-
})(TaxType || (TaxType = {}));
|
|
134
|
-
export var VisitorType;
|
|
135
|
-
(function (VisitorType) {
|
|
136
|
-
/** Site visitor (including member) */
|
|
137
|
-
VisitorType["VISITOR"] = "VISITOR";
|
|
138
|
-
/** Site member */
|
|
139
|
-
VisitorType["MEMBER"] = "MEMBER";
|
|
140
|
-
/** Site visitor or member */
|
|
141
|
-
VisitorType["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
|
|
142
|
-
})(VisitorType || (VisitorType = {}));
|
|
143
|
-
export var ConferenceType;
|
|
144
|
-
(function (ConferenceType) {
|
|
145
|
-
/** Everyone in the meeting can publish and subscribe video and audio. */
|
|
146
|
-
ConferenceType["MEETING"] = "MEETING";
|
|
147
|
-
/** Guests can only subscribe to video and audio. */
|
|
148
|
-
ConferenceType["WEBINAR"] = "WEBINAR";
|
|
149
|
-
})(ConferenceType || (ConferenceType = {}));
|
|
150
|
-
export var State;
|
|
151
|
-
(function (State) {
|
|
152
|
-
/** Created manually by the user. */
|
|
153
|
-
State["MANUAL"] = "MANUAL";
|
|
154
|
-
/** Created automatically. */
|
|
155
|
-
State["AUTO"] = "AUTO";
|
|
156
|
-
/** Created when publishing recurring events. */
|
|
157
|
-
State["RECURRING_EVENT"] = "RECURRING_EVENT";
|
|
158
|
-
/** Category is hidden. */
|
|
159
|
-
State["HIDDEN"] = "HIDDEN";
|
|
160
|
-
})(State || (State = {}));
|
|
161
|
-
export var NodeType;
|
|
162
|
-
(function (NodeType) {
|
|
163
|
-
NodeType["PARAGRAPH"] = "PARAGRAPH";
|
|
164
|
-
NodeType["TEXT"] = "TEXT";
|
|
165
|
-
NodeType["HEADING"] = "HEADING";
|
|
166
|
-
NodeType["BULLETED_LIST"] = "BULLETED_LIST";
|
|
167
|
-
NodeType["ORDERED_LIST"] = "ORDERED_LIST";
|
|
168
|
-
NodeType["LIST_ITEM"] = "LIST_ITEM";
|
|
169
|
-
NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
|
|
170
|
-
NodeType["CODE_BLOCK"] = "CODE_BLOCK";
|
|
171
|
-
NodeType["VIDEO"] = "VIDEO";
|
|
172
|
-
NodeType["DIVIDER"] = "DIVIDER";
|
|
173
|
-
NodeType["FILE"] = "FILE";
|
|
174
|
-
NodeType["GALLERY"] = "GALLERY";
|
|
175
|
-
NodeType["GIF"] = "GIF";
|
|
176
|
-
NodeType["HTML"] = "HTML";
|
|
177
|
-
NodeType["IMAGE"] = "IMAGE";
|
|
178
|
-
NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
|
|
179
|
-
/** @deprecated */
|
|
180
|
-
NodeType["MAP"] = "MAP";
|
|
181
|
-
NodeType["POLL"] = "POLL";
|
|
182
|
-
NodeType["APP_EMBED"] = "APP_EMBED";
|
|
183
|
-
NodeType["BUTTON"] = "BUTTON";
|
|
184
|
-
NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
|
|
185
|
-
NodeType["TABLE"] = "TABLE";
|
|
186
|
-
NodeType["EMBED"] = "EMBED";
|
|
187
|
-
NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
|
|
188
|
-
NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
|
|
189
|
-
NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
|
|
190
|
-
NodeType["TABLE_CELL"] = "TABLE_CELL";
|
|
191
|
-
NodeType["TABLE_ROW"] = "TABLE_ROW";
|
|
192
|
-
NodeType["EXTERNAL"] = "EXTERNAL";
|
|
193
|
-
NodeType["AUDIO"] = "AUDIO";
|
|
194
|
-
NodeType["CAPTION"] = "CAPTION";
|
|
195
|
-
NodeType["LAYOUT"] = "LAYOUT";
|
|
196
|
-
NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
|
|
197
|
-
})(NodeType || (NodeType = {}));
|
|
198
|
-
export var WidthType;
|
|
199
|
-
(function (WidthType) {
|
|
200
|
-
/** Width matches the content width */
|
|
201
|
-
WidthType["CONTENT"] = "CONTENT";
|
|
202
|
-
/** Small Width */
|
|
203
|
-
WidthType["SMALL"] = "SMALL";
|
|
204
|
-
/** Width will match the original asset width */
|
|
205
|
-
WidthType["ORIGINAL"] = "ORIGINAL";
|
|
206
|
-
/** coast-to-coast display */
|
|
207
|
-
WidthType["FULL_WIDTH"] = "FULL_WIDTH";
|
|
208
|
-
})(WidthType || (WidthType = {}));
|
|
209
|
-
export var PluginContainerDataAlignment;
|
|
210
|
-
(function (PluginContainerDataAlignment) {
|
|
211
|
-
/** Center Alignment */
|
|
212
|
-
PluginContainerDataAlignment["CENTER"] = "CENTER";
|
|
213
|
-
/** Left Alignment */
|
|
214
|
-
PluginContainerDataAlignment["LEFT"] = "LEFT";
|
|
215
|
-
/** Right Alignment */
|
|
216
|
-
PluginContainerDataAlignment["RIGHT"] = "RIGHT";
|
|
217
|
-
})(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
|
|
218
|
-
export var ButtonDataType;
|
|
219
|
-
(function (ButtonDataType) {
|
|
220
|
-
/** Regular link button */
|
|
221
|
-
ButtonDataType["LINK"] = "LINK";
|
|
222
|
-
/** Triggers custom action that is defined in plugin configuration by the consumer */
|
|
223
|
-
ButtonDataType["ACTION"] = "ACTION";
|
|
224
|
-
})(ButtonDataType || (ButtonDataType = {}));
|
|
225
|
-
export var Target;
|
|
226
|
-
(function (Target) {
|
|
227
|
-
/** Opens the linked document in the same frame as it was clicked (this is default) */
|
|
228
|
-
Target["SELF"] = "SELF";
|
|
229
|
-
/** Opens the linked document in a new window or tab */
|
|
230
|
-
Target["BLANK"] = "BLANK";
|
|
231
|
-
/** Opens the linked document in the parent frame */
|
|
232
|
-
Target["PARENT"] = "PARENT";
|
|
233
|
-
/** Opens the linked document in the full body of the window */
|
|
234
|
-
Target["TOP"] = "TOP";
|
|
235
|
-
})(Target || (Target = {}));
|
|
236
|
-
export var TextAlignment;
|
|
237
|
-
(function (TextAlignment) {
|
|
238
|
-
/** browser default, eqivalent to `initial` */
|
|
239
|
-
TextAlignment["AUTO"] = "AUTO";
|
|
240
|
-
/** Left align */
|
|
241
|
-
TextAlignment["LEFT"] = "LEFT";
|
|
242
|
-
/** Right align */
|
|
243
|
-
TextAlignment["RIGHT"] = "RIGHT";
|
|
244
|
-
/** Center align */
|
|
245
|
-
TextAlignment["CENTER"] = "CENTER";
|
|
246
|
-
/** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
|
|
247
|
-
TextAlignment["JUSTIFY"] = "JUSTIFY";
|
|
248
|
-
})(TextAlignment || (TextAlignment = {}));
|
|
249
|
-
export var LineStyle;
|
|
250
|
-
(function (LineStyle) {
|
|
251
|
-
/** Single Line */
|
|
252
|
-
LineStyle["SINGLE"] = "SINGLE";
|
|
253
|
-
/** Double Line */
|
|
254
|
-
LineStyle["DOUBLE"] = "DOUBLE";
|
|
255
|
-
/** Dashed Line */
|
|
256
|
-
LineStyle["DASHED"] = "DASHED";
|
|
257
|
-
/** Dotted Line */
|
|
258
|
-
LineStyle["DOTTED"] = "DOTTED";
|
|
259
|
-
})(LineStyle || (LineStyle = {}));
|
|
260
|
-
export var Width;
|
|
261
|
-
(function (Width) {
|
|
262
|
-
/** Large line */
|
|
263
|
-
Width["LARGE"] = "LARGE";
|
|
264
|
-
/** Medium line */
|
|
265
|
-
Width["MEDIUM"] = "MEDIUM";
|
|
266
|
-
/** Small line */
|
|
267
|
-
Width["SMALL"] = "SMALL";
|
|
268
|
-
})(Width || (Width = {}));
|
|
269
|
-
export var Alignment;
|
|
270
|
-
(function (Alignment) {
|
|
271
|
-
/** Center alignment */
|
|
272
|
-
Alignment["CENTER"] = "CENTER";
|
|
273
|
-
/** Left alignment */
|
|
274
|
-
Alignment["LEFT"] = "LEFT";
|
|
275
|
-
/** Right alignment */
|
|
276
|
-
Alignment["RIGHT"] = "RIGHT";
|
|
277
|
-
})(Alignment || (Alignment = {}));
|
|
278
|
-
export var ViewMode;
|
|
279
|
-
(function (ViewMode) {
|
|
280
|
-
/** No PDF view */
|
|
281
|
-
ViewMode["NONE"] = "NONE";
|
|
282
|
-
/** Full PDF view */
|
|
283
|
-
ViewMode["FULL"] = "FULL";
|
|
284
|
-
/** Mini PDF view */
|
|
285
|
-
ViewMode["MINI"] = "MINI";
|
|
286
|
-
})(ViewMode || (ViewMode = {}));
|
|
287
|
-
export var LayoutType;
|
|
288
|
-
(function (LayoutType) {
|
|
289
|
-
/** Collage type */
|
|
290
|
-
LayoutType["COLLAGE"] = "COLLAGE";
|
|
291
|
-
/** Masonry type */
|
|
292
|
-
LayoutType["MASONRY"] = "MASONRY";
|
|
293
|
-
/** Grid type */
|
|
294
|
-
LayoutType["GRID"] = "GRID";
|
|
295
|
-
/** Thumbnail type */
|
|
296
|
-
LayoutType["THUMBNAIL"] = "THUMBNAIL";
|
|
297
|
-
/** Slider type */
|
|
298
|
-
LayoutType["SLIDER"] = "SLIDER";
|
|
299
|
-
/** Slideshow type */
|
|
300
|
-
LayoutType["SLIDESHOW"] = "SLIDESHOW";
|
|
301
|
-
/** Panorama type */
|
|
302
|
-
LayoutType["PANORAMA"] = "PANORAMA";
|
|
303
|
-
/** Column type */
|
|
304
|
-
LayoutType["COLUMN"] = "COLUMN";
|
|
305
|
-
/** Magic type */
|
|
306
|
-
LayoutType["MAGIC"] = "MAGIC";
|
|
307
|
-
/** Fullsize images type */
|
|
308
|
-
LayoutType["FULLSIZE"] = "FULLSIZE";
|
|
309
|
-
})(LayoutType || (LayoutType = {}));
|
|
310
|
-
export var Orientation;
|
|
311
|
-
(function (Orientation) {
|
|
312
|
-
/** Rows Orientation */
|
|
313
|
-
Orientation["ROWS"] = "ROWS";
|
|
314
|
-
/** Columns Orientation */
|
|
315
|
-
Orientation["COLUMNS"] = "COLUMNS";
|
|
316
|
-
})(Orientation || (Orientation = {}));
|
|
317
|
-
export var Crop;
|
|
318
|
-
(function (Crop) {
|
|
319
|
-
/** Crop to fill */
|
|
320
|
-
Crop["FILL"] = "FILL";
|
|
321
|
-
/** Crop to fit */
|
|
322
|
-
Crop["FIT"] = "FIT";
|
|
323
|
-
})(Crop || (Crop = {}));
|
|
324
|
-
export var ThumbnailsAlignment;
|
|
325
|
-
(function (ThumbnailsAlignment) {
|
|
326
|
-
/** Top alignment */
|
|
327
|
-
ThumbnailsAlignment["TOP"] = "TOP";
|
|
328
|
-
/** Right alignment */
|
|
329
|
-
ThumbnailsAlignment["RIGHT"] = "RIGHT";
|
|
330
|
-
/** Bottom alignment */
|
|
331
|
-
ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
|
|
332
|
-
/** Left alignment */
|
|
333
|
-
ThumbnailsAlignment["LEFT"] = "LEFT";
|
|
334
|
-
/** No thumbnail */
|
|
335
|
-
ThumbnailsAlignment["NONE"] = "NONE";
|
|
336
|
-
})(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
|
|
337
|
-
export var GIFType;
|
|
338
|
-
(function (GIFType) {
|
|
339
|
-
GIFType["NORMAL"] = "NORMAL";
|
|
340
|
-
GIFType["STICKER"] = "STICKER";
|
|
341
|
-
})(GIFType || (GIFType = {}));
|
|
342
|
-
export var Source;
|
|
343
|
-
(function (Source) {
|
|
344
|
-
Source["HTML"] = "HTML";
|
|
345
|
-
Source["ADSENSE"] = "ADSENSE";
|
|
346
|
-
})(Source || (Source = {}));
|
|
347
|
-
export var Position;
|
|
348
|
-
(function (Position) {
|
|
349
|
-
/** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
|
|
350
|
-
Position["START"] = "START";
|
|
351
|
-
/** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
|
|
352
|
-
Position["END"] = "END";
|
|
353
|
-
/** Thumbnail positioned at the top */
|
|
354
|
-
Position["TOP"] = "TOP";
|
|
355
|
-
/** Thumbnail hidden and not displayed */
|
|
356
|
-
Position["HIDDEN"] = "HIDDEN";
|
|
357
|
-
})(Position || (Position = {}));
|
|
358
|
-
export var MapType;
|
|
359
|
-
(function (MapType) {
|
|
360
|
-
/** Roadmap map type */
|
|
361
|
-
MapType["ROADMAP"] = "ROADMAP";
|
|
362
|
-
/** Satellite map type */
|
|
363
|
-
MapType["SATELITE"] = "SATELITE";
|
|
364
|
-
/** Hybrid map type */
|
|
365
|
-
MapType["HYBRID"] = "HYBRID";
|
|
366
|
-
/** Terrain map type */
|
|
367
|
-
MapType["TERRAIN"] = "TERRAIN";
|
|
368
|
-
})(MapType || (MapType = {}));
|
|
369
|
-
export var ViewRole;
|
|
370
|
-
(function (ViewRole) {
|
|
371
|
-
/** Only Poll creator can view the results */
|
|
372
|
-
ViewRole["CREATOR"] = "CREATOR";
|
|
373
|
-
/** Anyone who voted can see the results */
|
|
374
|
-
ViewRole["VOTERS"] = "VOTERS";
|
|
375
|
-
/** Anyone can see the results, even if one didn't vote */
|
|
376
|
-
ViewRole["EVERYONE"] = "EVERYONE";
|
|
377
|
-
})(ViewRole || (ViewRole = {}));
|
|
378
|
-
export var VoteRole;
|
|
379
|
-
(function (VoteRole) {
|
|
380
|
-
/** Logged in member */
|
|
381
|
-
VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
|
|
382
|
-
/** Anyone */
|
|
383
|
-
VoteRole["ALL"] = "ALL";
|
|
384
|
-
})(VoteRole || (VoteRole = {}));
|
|
385
|
-
export var PollLayoutType;
|
|
386
|
-
(function (PollLayoutType) {
|
|
387
|
-
/** List */
|
|
388
|
-
PollLayoutType["LIST"] = "LIST";
|
|
389
|
-
/** Grid */
|
|
390
|
-
PollLayoutType["GRID"] = "GRID";
|
|
391
|
-
})(PollLayoutType || (PollLayoutType = {}));
|
|
392
|
-
export var PollLayoutDirection;
|
|
393
|
-
(function (PollLayoutDirection) {
|
|
394
|
-
/** Left-to-right */
|
|
395
|
-
PollLayoutDirection["LTR"] = "LTR";
|
|
396
|
-
/** Right-to-left */
|
|
397
|
-
PollLayoutDirection["RTL"] = "RTL";
|
|
398
|
-
})(PollLayoutDirection || (PollLayoutDirection = {}));
|
|
399
|
-
export var BackgroundType;
|
|
400
|
-
(function (BackgroundType) {
|
|
401
|
-
/** Color background type */
|
|
402
|
-
BackgroundType["COLOR"] = "COLOR";
|
|
403
|
-
/** Image background type */
|
|
404
|
-
BackgroundType["IMAGE"] = "IMAGE";
|
|
405
|
-
/** Gradiant background type */
|
|
406
|
-
BackgroundType["GRADIENT"] = "GRADIENT";
|
|
407
|
-
})(BackgroundType || (BackgroundType = {}));
|
|
408
|
-
export var DecorationType;
|
|
409
|
-
(function (DecorationType) {
|
|
410
|
-
DecorationType["BOLD"] = "BOLD";
|
|
411
|
-
DecorationType["ITALIC"] = "ITALIC";
|
|
412
|
-
DecorationType["UNDERLINE"] = "UNDERLINE";
|
|
413
|
-
DecorationType["SPOILER"] = "SPOILER";
|
|
414
|
-
DecorationType["ANCHOR"] = "ANCHOR";
|
|
415
|
-
DecorationType["MENTION"] = "MENTION";
|
|
416
|
-
DecorationType["LINK"] = "LINK";
|
|
417
|
-
DecorationType["COLOR"] = "COLOR";
|
|
418
|
-
DecorationType["FONT_SIZE"] = "FONT_SIZE";
|
|
419
|
-
DecorationType["EXTERNAL"] = "EXTERNAL";
|
|
420
|
-
})(DecorationType || (DecorationType = {}));
|
|
421
|
-
export var FontType;
|
|
422
|
-
(function (FontType) {
|
|
423
|
-
FontType["PX"] = "PX";
|
|
424
|
-
FontType["EM"] = "EM";
|
|
425
|
-
})(FontType || (FontType = {}));
|
|
426
|
-
export var AppType;
|
|
427
|
-
(function (AppType) {
|
|
428
|
-
AppType["PRODUCT"] = "PRODUCT";
|
|
429
|
-
AppType["EVENT"] = "EVENT";
|
|
430
|
-
AppType["BOOKING"] = "BOOKING";
|
|
431
|
-
})(AppType || (AppType = {}));
|
|
432
|
-
export var InitialExpandedItems;
|
|
433
|
-
(function (InitialExpandedItems) {
|
|
434
|
-
/** First item will be expended initally */
|
|
435
|
-
InitialExpandedItems["FIRST"] = "FIRST";
|
|
436
|
-
/** All items will expended initally */
|
|
437
|
-
InitialExpandedItems["ALL"] = "ALL";
|
|
438
|
-
/** All items collapsed initally */
|
|
439
|
-
InitialExpandedItems["NONE"] = "NONE";
|
|
440
|
-
})(InitialExpandedItems || (InitialExpandedItems = {}));
|
|
441
|
-
export var Direction;
|
|
442
|
-
(function (Direction) {
|
|
443
|
-
/** Left-to-right */
|
|
444
|
-
Direction["LTR"] = "LTR";
|
|
445
|
-
/** Right-to-left */
|
|
446
|
-
Direction["RTL"] = "RTL";
|
|
447
|
-
})(Direction || (Direction = {}));
|
|
448
|
-
export var VerticalAlignment;
|
|
449
|
-
(function (VerticalAlignment) {
|
|
450
|
-
/** Top alignment */
|
|
451
|
-
VerticalAlignment["TOP"] = "TOP";
|
|
452
|
-
/** Middle alignment */
|
|
453
|
-
VerticalAlignment["MIDDLE"] = "MIDDLE";
|
|
454
|
-
/** Bottom alignment */
|
|
455
|
-
VerticalAlignment["BOTTOM"] = "BOTTOM";
|
|
456
|
-
})(VerticalAlignment || (VerticalAlignment = {}));
|
|
457
|
-
/**
|
|
458
|
-
* `NullValue` is a singleton enumeration to represent the null value for the
|
|
459
|
-
* `Value` type union.
|
|
460
|
-
*
|
|
461
|
-
* The JSON representation for `NullValue` is JSON `null`.
|
|
462
|
-
*/
|
|
463
|
-
export var NullValue;
|
|
464
|
-
(function (NullValue) {
|
|
465
|
-
/** Null value. */
|
|
466
|
-
NullValue["NULL_VALUE"] = "NULL_VALUE";
|
|
467
|
-
})(NullValue || (NullValue = {}));
|
|
468
|
-
export var Type;
|
|
469
|
-
(function (Type) {
|
|
470
|
-
/** Unknown badge type. */
|
|
471
|
-
Type["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
|
|
472
|
-
/** 1st priority badge type. */
|
|
473
|
-
Type["FIRST_PRIORITY"] = "FIRST_PRIORITY";
|
|
474
|
-
/** 2nd priority badge type. */
|
|
475
|
-
Type["SECOND_PRIORITY"] = "SECOND_PRIORITY";
|
|
476
|
-
/** 3rd priority badge type. */
|
|
477
|
-
Type["THIRD_PRIORITY"] = "THIRD_PRIORITY";
|
|
478
|
-
})(Type || (Type = {}));
|
|
479
|
-
export var WebhookIdentityType;
|
|
480
|
-
(function (WebhookIdentityType) {
|
|
481
|
-
WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
|
|
482
|
-
WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
483
|
-
WebhookIdentityType["MEMBER"] = "MEMBER";
|
|
484
|
-
WebhookIdentityType["WIX_USER"] = "WIX_USER";
|
|
485
|
-
WebhookIdentityType["APP"] = "APP";
|
|
486
|
-
})(WebhookIdentityType || (WebhookIdentityType = {}));
|
|
487
|
-
/**
|
|
488
|
-
* Retrieves an event registration form.
|
|
489
|
-
*
|
|
490
|
-
* Retrieves both the draft and published versions.
|
|
491
|
-
* @param eventId - Event ID to which the form belongs.
|
|
492
|
-
* @public
|
|
493
|
-
* @requiredField eventId
|
|
494
|
-
* @param options - Optional fields.
|
|
495
|
-
* @permissionId WIX_EVENTS.READ_EVENTS
|
|
496
|
-
* @permissionScope Read Events - all read permissions
|
|
497
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
|
|
498
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
499
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
500
|
-
* @permissionScope Manage Events - all permissions
|
|
501
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
502
|
-
* @permissionScope Manage Events
|
|
503
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
504
|
-
* @permissionScope Read Events
|
|
505
|
-
* @permissionScopeId SCOPE.DC-EVENTS.READ-EVENTS
|
|
506
|
-
* @permissionScope Manage Challenges
|
|
507
|
-
* @permissionScopeId SCOPE.CHALLENGES.MANAGE
|
|
508
|
-
* @permissionScope Manage Portfolio
|
|
509
|
-
* @permissionScopeId SCOPE.PORTFOLIO.MANAGE-PORTFOLIO
|
|
510
|
-
* @permissionScope Access Verticals by Automations
|
|
511
|
-
* @permissionScopeId SCOPE.CRM.ACCESS-VERTICALS-BY-AUTOMATIONS
|
|
512
|
-
* @permissionScope Manage Restaurants - all permissions
|
|
513
|
-
* @permissionScopeId SCOPE.RESTAURANTS.MEGA-SCOPES
|
|
514
|
-
* @permissionScope Set Up Automations
|
|
515
|
-
* @permissionScopeId SCOPE.CRM.SETUP-AUTOMATIONS
|
|
516
|
-
* @permissionScope Manage Guest List
|
|
517
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-GUEST-LIST
|
|
518
|
-
* @permissionScope Picasso private app mega scope
|
|
519
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
520
|
-
* @permissionScope Manage Events
|
|
521
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
522
|
-
* @applicableIdentity APP
|
|
523
|
-
* @applicableIdentity VISITOR
|
|
524
|
-
* @returns Currently published event form.
|
|
525
|
-
* Published form is visible to site visitors.
|
|
526
|
-
* @fqn wix.events.form.FormBuilder.GetForm
|
|
527
|
-
*/
|
|
528
|
-
export async function getForm(eventId) {
|
|
529
|
-
// @ts-ignore
|
|
530
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
531
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
|
|
532
|
-
const reqOpts = ambassadorWixEventsV1Form.getForm(payload);
|
|
533
|
-
sideEffects?.onSiteCall?.();
|
|
534
|
-
try {
|
|
535
|
-
const result = await httpClient.request(reqOpts);
|
|
536
|
-
sideEffects?.onSuccess?.(result);
|
|
537
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)?.form;
|
|
538
|
-
}
|
|
539
|
-
catch (err) {
|
|
540
|
-
const transformedError = sdkTransformError(err, {
|
|
541
|
-
spreadPathsToArguments: {},
|
|
542
|
-
explicitPathsToArguments: { eventId: '$[0]' },
|
|
543
|
-
singleArgumentUnchanged: false,
|
|
544
|
-
}, ['eventId']);
|
|
545
|
-
sideEffects?.onError?.(err);
|
|
546
|
-
throw transformedError;
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
/**
|
|
550
|
-
* Adds an input control to the draft form.
|
|
551
|
-
* @param eventId - Event ID to which the form belongs.
|
|
552
|
-
* @public
|
|
553
|
-
* @requiredField eventId
|
|
554
|
-
* @requiredField options
|
|
555
|
-
* @requiredField options.control
|
|
556
|
-
* @param options - Optional fields.
|
|
557
|
-
* @permissionId WIX_EVENTS.MANAGE_EVENTS
|
|
558
|
-
* @permissionScope Manage Events - all permissions
|
|
559
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
560
|
-
* @permissionScope Manage Events
|
|
561
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
562
|
-
* @permissionScope Picasso private app mega scope
|
|
563
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
564
|
-
* @permissionScope Manage Events
|
|
565
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
566
|
-
* @applicableIdentity APP
|
|
567
|
-
* @fqn wix.events.form.FormBuilder.AddControl
|
|
568
|
-
*/
|
|
569
|
-
export async function addControl(eventId, options) {
|
|
570
|
-
// @ts-ignore
|
|
571
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
572
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
573
|
-
eventId: eventId,
|
|
574
|
-
phone: options?.phone,
|
|
575
|
-
address: options?.address,
|
|
576
|
-
date: options?.date,
|
|
577
|
-
additionalGuests: options?.additionalGuests,
|
|
578
|
-
dropdown: options?.dropdown,
|
|
579
|
-
checkbox: options?.checkbox,
|
|
580
|
-
text: options?.text,
|
|
581
|
-
radioButton: options?.radioButton,
|
|
582
|
-
});
|
|
583
|
-
const reqOpts = ambassadorWixEventsV1Form.addControl(payload);
|
|
584
|
-
sideEffects?.onSiteCall?.();
|
|
585
|
-
try {
|
|
586
|
-
const result = await httpClient.request(reqOpts);
|
|
587
|
-
sideEffects?.onSuccess?.(result);
|
|
588
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
589
|
-
}
|
|
590
|
-
catch (err) {
|
|
591
|
-
const transformedError = sdkTransformError(err, {
|
|
592
|
-
spreadPathsToArguments: {},
|
|
593
|
-
explicitPathsToArguments: {
|
|
594
|
-
eventId: '$[0]',
|
|
595
|
-
phone: '$[1].phone',
|
|
596
|
-
address: '$[1].address',
|
|
597
|
-
date: '$[1].date',
|
|
598
|
-
additionalGuests: '$[1].additionalGuests',
|
|
599
|
-
dropdown: '$[1].dropdown',
|
|
600
|
-
checkbox: '$[1].checkbox',
|
|
601
|
-
text: '$[1].text',
|
|
602
|
-
radioButton: '$[1].radioButton',
|
|
603
|
-
},
|
|
604
|
-
singleArgumentUnchanged: false,
|
|
605
|
-
}, ['eventId', 'options']);
|
|
606
|
-
sideEffects?.onError?.(err);
|
|
607
|
-
throw transformedError;
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* Updates an existing input control in the draft form.
|
|
612
|
-
* @public
|
|
613
|
-
* @requiredField identifiers
|
|
614
|
-
* @requiredField identifiers._id
|
|
615
|
-
* @requiredField identifiers.eventId
|
|
616
|
-
* @requiredField options.control
|
|
617
|
-
* @param options - Optional fields.
|
|
618
|
-
* @param identifiers - Identifies what form to update.
|
|
619
|
-
* @permissionId WIX_EVENTS.MANAGE_EVENTS
|
|
620
|
-
* @permissionScope Manage Events - all permissions
|
|
621
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
622
|
-
* @permissionScope Manage Events
|
|
623
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
624
|
-
* @permissionScope Picasso private app mega scope
|
|
625
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
626
|
-
* @permissionScope Manage Events
|
|
627
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
628
|
-
* @applicableIdentity APP
|
|
629
|
-
* @fqn wix.events.form.FormBuilder.UpdateControl
|
|
630
|
-
*/
|
|
631
|
-
export async function updateControl(identifiers, options) {
|
|
632
|
-
// @ts-ignore
|
|
633
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
634
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
635
|
-
eventId: identifiers?.eventId,
|
|
636
|
-
id: identifiers?._id,
|
|
637
|
-
orderIndex: options?.orderIndex,
|
|
638
|
-
phone: options?.phone,
|
|
639
|
-
address: options?.address,
|
|
640
|
-
date: options?.date,
|
|
641
|
-
additionalGuests: options?.additionalGuests,
|
|
642
|
-
dropdown: options?.dropdown,
|
|
643
|
-
checkbox: options?.checkbox,
|
|
644
|
-
text: options?.text,
|
|
645
|
-
name: options?.name,
|
|
646
|
-
email: options?.email,
|
|
647
|
-
radioButton: options?.radioButton,
|
|
648
|
-
});
|
|
649
|
-
const reqOpts = ambassadorWixEventsV1Form.updateControl(payload);
|
|
650
|
-
sideEffects?.onSiteCall?.();
|
|
651
|
-
try {
|
|
652
|
-
const result = await httpClient.request(reqOpts);
|
|
653
|
-
sideEffects?.onSuccess?.(result);
|
|
654
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
655
|
-
}
|
|
656
|
-
catch (err) {
|
|
657
|
-
const transformedError = sdkTransformError(err, {
|
|
658
|
-
spreadPathsToArguments: {},
|
|
659
|
-
explicitPathsToArguments: {
|
|
660
|
-
eventId: '$[0].eventId',
|
|
661
|
-
id: '$[0]._id',
|
|
662
|
-
orderIndex: '$[1].orderIndex',
|
|
663
|
-
phone: '$[1].phone',
|
|
664
|
-
address: '$[1].address',
|
|
665
|
-
date: '$[1].date',
|
|
666
|
-
additionalGuests: '$[1].additionalGuests',
|
|
667
|
-
dropdown: '$[1].dropdown',
|
|
668
|
-
checkbox: '$[1].checkbox',
|
|
669
|
-
text: '$[1].text',
|
|
670
|
-
name: '$[1].name',
|
|
671
|
-
email: '$[1].email',
|
|
672
|
-
radioButton: '$[1].radioButton',
|
|
673
|
-
},
|
|
674
|
-
singleArgumentUnchanged: false,
|
|
675
|
-
}, ['identifiers', 'options']);
|
|
676
|
-
sideEffects?.onError?.(err);
|
|
677
|
-
throw transformedError;
|
|
678
|
-
}
|
|
679
|
-
}
|
|
680
|
-
/**
|
|
681
|
-
* Deletes an input control from the draft form.
|
|
682
|
-
* @public
|
|
683
|
-
* @requiredField identifiers
|
|
684
|
-
* @requiredField identifiers._id
|
|
685
|
-
* @requiredField identifiers.eventId
|
|
686
|
-
* @param identifiers - Identifies what form to delete.
|
|
687
|
-
* @permissionId WIX_EVENTS.MANAGE_EVENTS
|
|
688
|
-
* @permissionScope Manage Events - all permissions
|
|
689
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
690
|
-
* @permissionScope Manage Events
|
|
691
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
692
|
-
* @permissionScope Picasso private app mega scope
|
|
693
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
694
|
-
* @permissionScope Manage Events
|
|
695
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
696
|
-
* @applicableIdentity APP
|
|
697
|
-
* @fqn wix.events.form.FormBuilder.DeleteControl
|
|
698
|
-
*/
|
|
699
|
-
export async function deleteControl(identifiers) {
|
|
700
|
-
// @ts-ignore
|
|
701
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
702
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
703
|
-
eventId: identifiers?.eventId,
|
|
704
|
-
id: identifiers?._id,
|
|
705
|
-
});
|
|
706
|
-
const reqOpts = ambassadorWixEventsV1Form.deleteControl(payload);
|
|
707
|
-
sideEffects?.onSiteCall?.();
|
|
708
|
-
try {
|
|
709
|
-
const result = await httpClient.request(reqOpts);
|
|
710
|
-
sideEffects?.onSuccess?.(result);
|
|
711
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
712
|
-
}
|
|
713
|
-
catch (err) {
|
|
714
|
-
const transformedError = sdkTransformError(err, {
|
|
715
|
-
spreadPathsToArguments: {},
|
|
716
|
-
explicitPathsToArguments: { eventId: '$[0].eventId', id: '$[0]._id' },
|
|
717
|
-
singleArgumentUnchanged: false,
|
|
718
|
-
}, ['identifiers']);
|
|
719
|
-
sideEffects?.onError?.(err);
|
|
720
|
-
throw transformedError;
|
|
721
|
-
}
|
|
722
|
-
}
|
|
723
|
-
/**
|
|
724
|
-
* Updates a set of defined form messages that are displayed to a site visitor before, during, and after the registration flow.
|
|
725
|
-
* Includes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
|
|
726
|
-
* @param eventId - Event ID to which the form belongs.
|
|
727
|
-
* @public
|
|
728
|
-
* @requiredField eventId
|
|
729
|
-
* @param options - Optional fields.
|
|
730
|
-
* @permissionId WIX_EVENTS.MANAGE_EVENTS
|
|
731
|
-
* @permissionScope Manage Events - all permissions
|
|
732
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
733
|
-
* @permissionScope Manage Events
|
|
734
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
735
|
-
* @permissionScope Picasso private app mega scope
|
|
736
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
737
|
-
* @permissionScope Manage Events
|
|
738
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
739
|
-
* @applicableIdentity APP
|
|
740
|
-
* @fqn wix.events.form.FormBuilder.UpdateMessages
|
|
741
|
-
*/
|
|
742
|
-
export async function updateMessages(eventId, options) {
|
|
743
|
-
// @ts-ignore
|
|
744
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
745
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
746
|
-
eventId: eventId,
|
|
747
|
-
fields: options?.fields,
|
|
748
|
-
messages: options?.messages,
|
|
749
|
-
});
|
|
750
|
-
const reqOpts = ambassadorWixEventsV1Form.updateMessages(payload);
|
|
751
|
-
sideEffects?.onSiteCall?.();
|
|
752
|
-
try {
|
|
753
|
-
const result = await httpClient.request(reqOpts);
|
|
754
|
-
sideEffects?.onSuccess?.(result);
|
|
755
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
756
|
-
}
|
|
757
|
-
catch (err) {
|
|
758
|
-
const transformedError = sdkTransformError(err, {
|
|
759
|
-
spreadPathsToArguments: {},
|
|
760
|
-
explicitPathsToArguments: {
|
|
761
|
-
eventId: '$[0]',
|
|
762
|
-
fields: '$[1].fields',
|
|
763
|
-
messages: '$[1].messages',
|
|
764
|
-
},
|
|
765
|
-
singleArgumentUnchanged: false,
|
|
766
|
-
}, ['eventId', 'options']);
|
|
767
|
-
sideEffects?.onError?.(err);
|
|
768
|
-
throw transformedError;
|
|
769
|
-
}
|
|
770
|
-
}
|
|
771
|
-
/**
|
|
772
|
-
* Publishes the draft form.
|
|
773
|
-
* @param eventId - Event ID to which the form belongs.
|
|
774
|
-
* @public
|
|
775
|
-
* @requiredField eventId
|
|
776
|
-
* @permissionId WIX_EVENTS.MANAGE_EVENTS
|
|
777
|
-
* @permissionScope Manage Events - all permissions
|
|
778
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
779
|
-
* @permissionScope Manage Events
|
|
780
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
781
|
-
* @permissionScope Picasso private app mega scope
|
|
782
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
783
|
-
* @permissionScope Manage Events
|
|
784
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
785
|
-
* @applicableIdentity APP
|
|
786
|
-
* @fqn wix.events.form.FormBuilder.PublishDraft
|
|
787
|
-
*/
|
|
788
|
-
export async function publishDraft(eventId) {
|
|
789
|
-
// @ts-ignore
|
|
790
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
791
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
|
|
792
|
-
const reqOpts = ambassadorWixEventsV1Form.publishDraft(payload);
|
|
793
|
-
sideEffects?.onSiteCall?.();
|
|
794
|
-
try {
|
|
795
|
-
const result = await httpClient.request(reqOpts);
|
|
796
|
-
sideEffects?.onSuccess?.(result);
|
|
797
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
798
|
-
}
|
|
799
|
-
catch (err) {
|
|
800
|
-
const transformedError = sdkTransformError(err, {
|
|
801
|
-
spreadPathsToArguments: {},
|
|
802
|
-
explicitPathsToArguments: { eventId: '$[0]' },
|
|
803
|
-
singleArgumentUnchanged: false,
|
|
804
|
-
}, ['eventId']);
|
|
805
|
-
sideEffects?.onError?.(err);
|
|
806
|
-
throw transformedError;
|
|
807
|
-
}
|
|
808
|
-
}
|
|
809
|
-
/**
|
|
810
|
-
* Clears all changes to the draft form.
|
|
811
|
-
* @param eventId - Event ID to which the form belongs.
|
|
812
|
-
* @public
|
|
813
|
-
* @requiredField eventId
|
|
814
|
-
* @permissionId WIX_EVENTS.MANAGE_EVENTS
|
|
815
|
-
* @permissionScope Manage Events - all permissions
|
|
816
|
-
* @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
|
|
817
|
-
* @permissionScope Manage Events
|
|
818
|
-
* @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
|
|
819
|
-
* @permissionScope Picasso private app mega scope
|
|
820
|
-
* @permissionScopeId SCOPE.TEST.MEGA-PICASSO-MANAGE-SITE
|
|
821
|
-
* @permissionScope Manage Events
|
|
822
|
-
* @permissionScopeId SCOPE.DC-EVENTS.MANAGE-EVENTS
|
|
823
|
-
* @applicableIdentity APP
|
|
824
|
-
* @fqn wix.events.form.FormBuilder.DiscardDraft
|
|
825
|
-
*/
|
|
826
|
-
export async function discardDraft(eventId) {
|
|
827
|
-
// @ts-ignore
|
|
828
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
829
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ eventId: eventId });
|
|
830
|
-
const reqOpts = ambassadorWixEventsV1Form.discardDraft(payload);
|
|
831
|
-
sideEffects?.onSiteCall?.();
|
|
832
|
-
try {
|
|
833
|
-
const result = await httpClient.request(reqOpts);
|
|
834
|
-
sideEffects?.onSuccess?.(result);
|
|
835
|
-
}
|
|
836
|
-
catch (err) {
|
|
837
|
-
const transformedError = sdkTransformError(err, {
|
|
838
|
-
spreadPathsToArguments: {},
|
|
839
|
-
explicitPathsToArguments: { eventId: '$[0]' },
|
|
840
|
-
singleArgumentUnchanged: false,
|
|
841
|
-
}, ['eventId']);
|
|
842
|
-
sideEffects?.onError?.(err);
|
|
843
|
-
throw transformedError;
|
|
844
|
-
}
|
|
845
|
-
}
|
|
846
|
-
//# sourceMappingURL=events-v1-form-forms.universal.js.map
|