@wix/auto_sdk_standalone-forms_standalone-forms 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +114 -0
- package/build/cjs/index.js +865 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1409 -0
- package/build/cjs/index.typings.js +781 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1301 -0
- package/build/cjs/meta.js +709 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/es/index.d.mts +114 -0
- package/build/es/index.mjs +823 -0
- package/build/es/index.mjs.map +1 -0
- package/build/es/index.typings.d.mts +1409 -0
- package/build/es/index.typings.mjs +739 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +1301 -0
- package/build/es/meta.mjs +664 -0
- package/build/es/meta.mjs.map +1 -0
- package/build/es/package.json +3 -0
- package/build/internal/cjs/index.d.ts +114 -0
- package/build/internal/cjs/index.typings.d.ts +1409 -0
- package/build/internal/cjs/meta.d.ts +1343 -0
- package/build/internal/es/index.d.mts +114 -0
- package/build/internal/es/index.typings.d.mts +1409 -0
- package/build/internal/es/meta.d.mts +1343 -0
- package/meta/package.json +3 -0
- package/package.json +54 -0
|
@@ -0,0 +1,739 @@
|
|
|
1
|
+
// src/forms-v1-standalone-form-standalone-forms.universal.ts
|
|
2
|
+
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
3
|
+
import {
|
|
4
|
+
renameKeysFromSDKRequestToRESTRequest,
|
|
5
|
+
renameKeysFromRESTResponseToSDKResponse
|
|
6
|
+
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
7
|
+
|
|
8
|
+
// src/forms-v1-standalone-form-standalone-forms.http.ts
|
|
9
|
+
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
11
|
+
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
|
+
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
13
|
+
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
14
|
+
function resolveWixFormsV1FormStandaloneServiceUrl(opts) {
|
|
15
|
+
const domainToMappings = {
|
|
16
|
+
"manage._base_domain_": [
|
|
17
|
+
{
|
|
18
|
+
srcPath: "/_api/form-standalone-service",
|
|
19
|
+
destPath: ""
|
|
20
|
+
}
|
|
21
|
+
],
|
|
22
|
+
"api._api_base_domain_": [
|
|
23
|
+
{
|
|
24
|
+
srcPath: "/form-standalone-service",
|
|
25
|
+
destPath: ""
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"www._base_domain_": [
|
|
29
|
+
{
|
|
30
|
+
srcPath: "/_api/form-standalone-service",
|
|
31
|
+
destPath: ""
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
"bo._base_domain_": [
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/_api/form-standalone-service",
|
|
37
|
+
destPath: ""
|
|
38
|
+
}
|
|
39
|
+
],
|
|
40
|
+
"wixbo.ai": [
|
|
41
|
+
{
|
|
42
|
+
srcPath: "/_api/form-standalone-service",
|
|
43
|
+
destPath: ""
|
|
44
|
+
}
|
|
45
|
+
],
|
|
46
|
+
"wix-bo.com": [
|
|
47
|
+
{
|
|
48
|
+
srcPath: "/_api/form-standalone-service",
|
|
49
|
+
destPath: ""
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
_: [
|
|
53
|
+
{
|
|
54
|
+
srcPath: "/_api/form-standalone-service",
|
|
55
|
+
destPath: ""
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
srcPath: "/forms/v4/standalone-forms",
|
|
59
|
+
destPath: "/v4/standalone-forms"
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
"www.wixapis.com": [
|
|
63
|
+
{
|
|
64
|
+
srcPath: "/forms/v4/standalone-forms",
|
|
65
|
+
destPath: "/v4/standalone-forms"
|
|
66
|
+
}
|
|
67
|
+
],
|
|
68
|
+
"*.dev.wix-code.com": [
|
|
69
|
+
{
|
|
70
|
+
srcPath: "/forms/v4/standalone-forms",
|
|
71
|
+
destPath: "/v4/standalone-forms"
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"apps._base_domain_": [
|
|
75
|
+
{
|
|
76
|
+
srcPath: "/_api/form-standalone-service",
|
|
77
|
+
destPath: ""
|
|
78
|
+
}
|
|
79
|
+
]
|
|
80
|
+
};
|
|
81
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
82
|
+
}
|
|
83
|
+
var PACKAGE_NAME = "@wix/auto_sdk_standalone-forms_standalone-forms";
|
|
84
|
+
function getOrCreateFormStandaloneMetaSite(payload) {
|
|
85
|
+
function __getOrCreateFormStandaloneMetaSite({ host }) {
|
|
86
|
+
const metadata = {
|
|
87
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
88
|
+
method: "GET",
|
|
89
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.GetOrCreateFormStandaloneMetaSite",
|
|
90
|
+
packageName: PACKAGE_NAME,
|
|
91
|
+
migrationOptions: {
|
|
92
|
+
optInTransformResponse: true
|
|
93
|
+
},
|
|
94
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
95
|
+
protoPath: "/v4/standalone-forms/metasite",
|
|
96
|
+
data: payload,
|
|
97
|
+
host
|
|
98
|
+
}),
|
|
99
|
+
params: toURLSearchParams(payload)
|
|
100
|
+
};
|
|
101
|
+
return metadata;
|
|
102
|
+
}
|
|
103
|
+
return __getOrCreateFormStandaloneMetaSite;
|
|
104
|
+
}
|
|
105
|
+
function createStandaloneForm(payload) {
|
|
106
|
+
function __createStandaloneForm({ host }) {
|
|
107
|
+
const serializedData = transformPaths(payload, [
|
|
108
|
+
{
|
|
109
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
110
|
+
paths: [
|
|
111
|
+
{ path: "standaloneForm.createdDate" },
|
|
112
|
+
{ path: "standaloneForm.updatedDate" }
|
|
113
|
+
]
|
|
114
|
+
}
|
|
115
|
+
]);
|
|
116
|
+
const metadata = {
|
|
117
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
118
|
+
method: "POST",
|
|
119
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.CreateStandaloneForm",
|
|
120
|
+
packageName: PACKAGE_NAME,
|
|
121
|
+
migrationOptions: {
|
|
122
|
+
optInTransformResponse: true
|
|
123
|
+
},
|
|
124
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
125
|
+
protoPath: "/v4/standalone-forms",
|
|
126
|
+
data: serializedData,
|
|
127
|
+
host
|
|
128
|
+
}),
|
|
129
|
+
data: serializedData,
|
|
130
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
131
|
+
{
|
|
132
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
133
|
+
paths: [
|
|
134
|
+
{ path: "standaloneForm.createdDate" },
|
|
135
|
+
{ path: "standaloneForm.updatedDate" }
|
|
136
|
+
]
|
|
137
|
+
}
|
|
138
|
+
])
|
|
139
|
+
};
|
|
140
|
+
return metadata;
|
|
141
|
+
}
|
|
142
|
+
return __createStandaloneForm;
|
|
143
|
+
}
|
|
144
|
+
function getStandaloneForm(payload) {
|
|
145
|
+
function __getStandaloneForm({ host }) {
|
|
146
|
+
const metadata = {
|
|
147
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
148
|
+
method: "GET",
|
|
149
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.GetStandaloneForm",
|
|
150
|
+
packageName: PACKAGE_NAME,
|
|
151
|
+
migrationOptions: {
|
|
152
|
+
optInTransformResponse: true
|
|
153
|
+
},
|
|
154
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
155
|
+
protoPath: "/v4/standalone-forms/{standaloneFormId}",
|
|
156
|
+
data: payload,
|
|
157
|
+
host
|
|
158
|
+
}),
|
|
159
|
+
params: toURLSearchParams(payload),
|
|
160
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
161
|
+
{
|
|
162
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
163
|
+
paths: [
|
|
164
|
+
{ path: "standaloneForm.createdDate" },
|
|
165
|
+
{ path: "standaloneForm.updatedDate" }
|
|
166
|
+
]
|
|
167
|
+
}
|
|
168
|
+
])
|
|
169
|
+
};
|
|
170
|
+
return metadata;
|
|
171
|
+
}
|
|
172
|
+
return __getStandaloneForm;
|
|
173
|
+
}
|
|
174
|
+
function deleteStandaloneForm(payload) {
|
|
175
|
+
function __deleteStandaloneForm({ host }) {
|
|
176
|
+
const metadata = {
|
|
177
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
178
|
+
method: "DELETE",
|
|
179
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.DeleteStandaloneForm",
|
|
180
|
+
packageName: PACKAGE_NAME,
|
|
181
|
+
migrationOptions: {
|
|
182
|
+
optInTransformResponse: true
|
|
183
|
+
},
|
|
184
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
185
|
+
protoPath: "/v4/standalone-forms/{standaloneFormId}",
|
|
186
|
+
data: payload,
|
|
187
|
+
host
|
|
188
|
+
}),
|
|
189
|
+
params: toURLSearchParams(payload)
|
|
190
|
+
};
|
|
191
|
+
return metadata;
|
|
192
|
+
}
|
|
193
|
+
return __deleteStandaloneForm;
|
|
194
|
+
}
|
|
195
|
+
function removeStandaloneFormFromTrashBin(payload) {
|
|
196
|
+
function __removeStandaloneFormFromTrashBin({ host }) {
|
|
197
|
+
const metadata = {
|
|
198
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
199
|
+
method: "DELETE",
|
|
200
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.RemoveStandaloneFormFromTrashBin",
|
|
201
|
+
packageName: PACKAGE_NAME,
|
|
202
|
+
migrationOptions: {
|
|
203
|
+
optInTransformResponse: true
|
|
204
|
+
},
|
|
205
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
206
|
+
protoPath: "/v4/standalone-forms/trash-bin/{standaloneFormId}",
|
|
207
|
+
data: payload,
|
|
208
|
+
host
|
|
209
|
+
}),
|
|
210
|
+
params: toURLSearchParams(payload)
|
|
211
|
+
};
|
|
212
|
+
return metadata;
|
|
213
|
+
}
|
|
214
|
+
return __removeStandaloneFormFromTrashBin;
|
|
215
|
+
}
|
|
216
|
+
function restoreStandaloneFormFromTrashBin(payload) {
|
|
217
|
+
function __restoreStandaloneFormFromTrashBin({ host }) {
|
|
218
|
+
const metadata = {
|
|
219
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
220
|
+
method: "POST",
|
|
221
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.RestoreStandaloneFormFromTrashBin",
|
|
222
|
+
packageName: PACKAGE_NAME,
|
|
223
|
+
migrationOptions: {
|
|
224
|
+
optInTransformResponse: true
|
|
225
|
+
},
|
|
226
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
227
|
+
protoPath: "/v4/standalone-forms/trash-bin/{standaloneFormId}/restore",
|
|
228
|
+
data: payload,
|
|
229
|
+
host
|
|
230
|
+
}),
|
|
231
|
+
data: payload,
|
|
232
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
233
|
+
{
|
|
234
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
235
|
+
paths: [
|
|
236
|
+
{ path: "standaloneForm.createdDate" },
|
|
237
|
+
{ path: "standaloneForm.updatedDate" }
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
])
|
|
241
|
+
};
|
|
242
|
+
return metadata;
|
|
243
|
+
}
|
|
244
|
+
return __restoreStandaloneFormFromTrashBin;
|
|
245
|
+
}
|
|
246
|
+
function getDeletedStandaloneForm(payload) {
|
|
247
|
+
function __getDeletedStandaloneForm({ host }) {
|
|
248
|
+
const metadata = {
|
|
249
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
250
|
+
method: "GET",
|
|
251
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.GetDeletedStandaloneForm",
|
|
252
|
+
packageName: PACKAGE_NAME,
|
|
253
|
+
migrationOptions: {
|
|
254
|
+
optInTransformResponse: true
|
|
255
|
+
},
|
|
256
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
257
|
+
protoPath: "/v4/standalone-forms/trash-bin/{standaloneFormId}",
|
|
258
|
+
data: payload,
|
|
259
|
+
host
|
|
260
|
+
}),
|
|
261
|
+
params: toURLSearchParams(payload),
|
|
262
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
263
|
+
{
|
|
264
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
265
|
+
paths: [
|
|
266
|
+
{ path: "standaloneForm.createdDate" },
|
|
267
|
+
{ path: "standaloneForm.updatedDate" }
|
|
268
|
+
]
|
|
269
|
+
}
|
|
270
|
+
])
|
|
271
|
+
};
|
|
272
|
+
return metadata;
|
|
273
|
+
}
|
|
274
|
+
return __getDeletedStandaloneForm;
|
|
275
|
+
}
|
|
276
|
+
function listDeletedStandaloneForms(payload) {
|
|
277
|
+
function __listDeletedStandaloneForms({ host }) {
|
|
278
|
+
const metadata = {
|
|
279
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
280
|
+
method: "GET",
|
|
281
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.ListDeletedStandaloneForms",
|
|
282
|
+
packageName: PACKAGE_NAME,
|
|
283
|
+
migrationOptions: {
|
|
284
|
+
optInTransformResponse: true
|
|
285
|
+
},
|
|
286
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
287
|
+
protoPath: "/v4/standalone-forms/trash-bin",
|
|
288
|
+
data: payload,
|
|
289
|
+
host
|
|
290
|
+
}),
|
|
291
|
+
params: toURLSearchParams(payload),
|
|
292
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
293
|
+
{
|
|
294
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
295
|
+
paths: [
|
|
296
|
+
{ path: "standaloneForms.createdDate" },
|
|
297
|
+
{ path: "standaloneForms.updatedDate" }
|
|
298
|
+
]
|
|
299
|
+
}
|
|
300
|
+
])
|
|
301
|
+
};
|
|
302
|
+
return metadata;
|
|
303
|
+
}
|
|
304
|
+
return __listDeletedStandaloneForms;
|
|
305
|
+
}
|
|
306
|
+
function queryStandaloneForms(payload) {
|
|
307
|
+
function __queryStandaloneForms({ host }) {
|
|
308
|
+
const metadata = {
|
|
309
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
310
|
+
method: "POST",
|
|
311
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.QueryStandaloneForms",
|
|
312
|
+
packageName: PACKAGE_NAME,
|
|
313
|
+
migrationOptions: {
|
|
314
|
+
optInTransformResponse: true
|
|
315
|
+
},
|
|
316
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
317
|
+
protoPath: "/v4/standalone-forms/query",
|
|
318
|
+
data: payload,
|
|
319
|
+
host
|
|
320
|
+
}),
|
|
321
|
+
data: payload,
|
|
322
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
323
|
+
{
|
|
324
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
325
|
+
paths: [
|
|
326
|
+
{ path: "standaloneForms.createdDate" },
|
|
327
|
+
{ path: "standaloneForms.updatedDate" }
|
|
328
|
+
]
|
|
329
|
+
}
|
|
330
|
+
])
|
|
331
|
+
};
|
|
332
|
+
return metadata;
|
|
333
|
+
}
|
|
334
|
+
return __queryStandaloneForms;
|
|
335
|
+
}
|
|
336
|
+
function getSiteProperties(payload) {
|
|
337
|
+
function __getSiteProperties({ host }) {
|
|
338
|
+
const metadata = {
|
|
339
|
+
entityFqdn: "wix.forms.v1.standalone_form",
|
|
340
|
+
method: "GET",
|
|
341
|
+
methodFqn: "wix.forms.v1.FormStandaloneService.GetSiteProperties",
|
|
342
|
+
packageName: PACKAGE_NAME,
|
|
343
|
+
migrationOptions: {
|
|
344
|
+
optInTransformResponse: true
|
|
345
|
+
},
|
|
346
|
+
url: resolveWixFormsV1FormStandaloneServiceUrl({
|
|
347
|
+
protoPath: "/v4/standalone-forms/site-properties",
|
|
348
|
+
data: payload,
|
|
349
|
+
host
|
|
350
|
+
}),
|
|
351
|
+
params: toURLSearchParams(payload)
|
|
352
|
+
};
|
|
353
|
+
return metadata;
|
|
354
|
+
}
|
|
355
|
+
return __getSiteProperties;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
// src/forms-v1-standalone-form-standalone-forms.universal.ts
|
|
359
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
360
|
+
SortOrder2["ASC"] = "ASC";
|
|
361
|
+
SortOrder2["DESC"] = "DESC";
|
|
362
|
+
return SortOrder2;
|
|
363
|
+
})(SortOrder || {});
|
|
364
|
+
var PlacementType = /* @__PURE__ */ ((PlacementType2) => {
|
|
365
|
+
PlacementType2["BEFORE"] = "BEFORE";
|
|
366
|
+
PlacementType2["AFTER"] = "AFTER";
|
|
367
|
+
PlacementType2["REPLACE"] = "REPLACE";
|
|
368
|
+
return PlacementType2;
|
|
369
|
+
})(PlacementType || {});
|
|
370
|
+
var DayOfWeek = /* @__PURE__ */ ((DayOfWeek2) => {
|
|
371
|
+
DayOfWeek2["MONDAY"] = "MONDAY";
|
|
372
|
+
DayOfWeek2["TUESDAY"] = "TUESDAY";
|
|
373
|
+
DayOfWeek2["WEDNESDAY"] = "WEDNESDAY";
|
|
374
|
+
DayOfWeek2["THURSDAY"] = "THURSDAY";
|
|
375
|
+
DayOfWeek2["FRIDAY"] = "FRIDAY";
|
|
376
|
+
DayOfWeek2["SATURDAY"] = "SATURDAY";
|
|
377
|
+
DayOfWeek2["SUNDAY"] = "SUNDAY";
|
|
378
|
+
return DayOfWeek2;
|
|
379
|
+
})(DayOfWeek || {});
|
|
380
|
+
var ResolutionMethod = /* @__PURE__ */ ((ResolutionMethod2) => {
|
|
381
|
+
ResolutionMethod2["QUERY_PARAM"] = "QUERY_PARAM";
|
|
382
|
+
ResolutionMethod2["SUBDOMAIN"] = "SUBDOMAIN";
|
|
383
|
+
ResolutionMethod2["SUBDIRECTORY"] = "SUBDIRECTORY";
|
|
384
|
+
return ResolutionMethod2;
|
|
385
|
+
})(ResolutionMethod || {});
|
|
386
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
387
|
+
State2["UNKNOWN"] = "UNKNOWN";
|
|
388
|
+
State2["ENABLED"] = "ENABLED";
|
|
389
|
+
State2["DISABLED"] = "DISABLED";
|
|
390
|
+
State2["PENDING"] = "PENDING";
|
|
391
|
+
State2["DEMO"] = "DEMO";
|
|
392
|
+
return State2;
|
|
393
|
+
})(State || {});
|
|
394
|
+
var SiteCreatedContext = /* @__PURE__ */ ((SiteCreatedContext2) => {
|
|
395
|
+
SiteCreatedContext2["OTHER"] = "OTHER";
|
|
396
|
+
SiteCreatedContext2["FROM_TEMPLATE"] = "FROM_TEMPLATE";
|
|
397
|
+
SiteCreatedContext2["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
|
|
398
|
+
SiteCreatedContext2["DUPLICATE"] = "DUPLICATE";
|
|
399
|
+
SiteCreatedContext2["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
|
|
400
|
+
SiteCreatedContext2["FLASH"] = "FLASH";
|
|
401
|
+
return SiteCreatedContext2;
|
|
402
|
+
})(SiteCreatedContext || {});
|
|
403
|
+
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
404
|
+
Namespace2["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
|
|
405
|
+
Namespace2["WIX"] = "WIX";
|
|
406
|
+
Namespace2["SHOUT_OUT"] = "SHOUT_OUT";
|
|
407
|
+
Namespace2["ALBUMS"] = "ALBUMS";
|
|
408
|
+
Namespace2["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
|
|
409
|
+
Namespace2["HOTELS"] = "HOTELS";
|
|
410
|
+
Namespace2["CLUBS"] = "CLUBS";
|
|
411
|
+
Namespace2["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
|
|
412
|
+
Namespace2["DEV_SITE"] = "DEV_SITE";
|
|
413
|
+
Namespace2["LOGOS"] = "LOGOS";
|
|
414
|
+
Namespace2["VIDEO_MAKER"] = "VIDEO_MAKER";
|
|
415
|
+
Namespace2["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
|
|
416
|
+
Namespace2["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
|
|
417
|
+
Namespace2["HTML_DRAFT"] = "HTML_DRAFT";
|
|
418
|
+
Namespace2["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
|
|
419
|
+
Namespace2["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
|
|
420
|
+
Namespace2["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
|
|
421
|
+
Namespace2["ANYWHERE"] = "ANYWHERE";
|
|
422
|
+
Namespace2["HEADLESS"] = "HEADLESS";
|
|
423
|
+
Namespace2["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
|
|
424
|
+
Namespace2["RISE"] = "RISE";
|
|
425
|
+
Namespace2["BRANDED_FIRST"] = "BRANDED_FIRST";
|
|
426
|
+
Namespace2["NOWNIA"] = "NOWNIA";
|
|
427
|
+
Namespace2["UGC_TEMPLATE"] = "UGC_TEMPLATE";
|
|
428
|
+
Namespace2["CODUX"] = "CODUX";
|
|
429
|
+
Namespace2["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
|
|
430
|
+
Namespace2["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
|
|
431
|
+
Namespace2["STANDALONE_FORMS"] = "STANDALONE_FORMS";
|
|
432
|
+
Namespace2["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
|
|
433
|
+
Namespace2["MIMIR"] = "MIMIR";
|
|
434
|
+
Namespace2["TWINS"] = "TWINS";
|
|
435
|
+
Namespace2["NANO"] = "NANO";
|
|
436
|
+
Namespace2["BASE44"] = "BASE44";
|
|
437
|
+
Namespace2["CHANNELS"] = "CHANNELS";
|
|
438
|
+
Namespace2["NAUTILUS"] = "NAUTILUS";
|
|
439
|
+
Namespace2["SYMPHONY"] = "SYMPHONY";
|
|
440
|
+
Namespace2["NAUTILUS_APPS"] = "NAUTILUS_APPS";
|
|
441
|
+
Namespace2["VIBU"] = "VIBU";
|
|
442
|
+
Namespace2["ENTERPRISE_BRAND_KIT"] = "ENTERPRISE_BRAND_KIT";
|
|
443
|
+
Namespace2["DEV_CENTER_DEV_SITE"] = "DEV_CENTER_DEV_SITE";
|
|
444
|
+
return Namespace2;
|
|
445
|
+
})(Namespace || {});
|
|
446
|
+
var DeleteStatus = /* @__PURE__ */ ((DeleteStatus2) => {
|
|
447
|
+
DeleteStatus2["UNKNOWN"] = "UNKNOWN";
|
|
448
|
+
DeleteStatus2["TRASH"] = "TRASH";
|
|
449
|
+
DeleteStatus2["DELETED"] = "DELETED";
|
|
450
|
+
DeleteStatus2["PENDING_PURGE"] = "PENDING_PURGE";
|
|
451
|
+
DeleteStatus2["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
|
|
452
|
+
return DeleteStatus2;
|
|
453
|
+
})(DeleteStatus || {});
|
|
454
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
455
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
456
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
457
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
458
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
459
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
460
|
+
return WebhookIdentityType2;
|
|
461
|
+
})(WebhookIdentityType || {});
|
|
462
|
+
async function getOrCreateFormStandaloneMetaSite2() {
|
|
463
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
464
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
465
|
+
const reqOpts = getOrCreateFormStandaloneMetaSite(
|
|
466
|
+
payload
|
|
467
|
+
);
|
|
468
|
+
sideEffects?.onSiteCall?.();
|
|
469
|
+
try {
|
|
470
|
+
const result = await httpClient.request(reqOpts);
|
|
471
|
+
sideEffects?.onSuccess?.(result);
|
|
472
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
473
|
+
} catch (err) {
|
|
474
|
+
const transformedError = sdkTransformError(
|
|
475
|
+
err,
|
|
476
|
+
{
|
|
477
|
+
spreadPathsToArguments: {},
|
|
478
|
+
explicitPathsToArguments: {},
|
|
479
|
+
singleArgumentUnchanged: false
|
|
480
|
+
},
|
|
481
|
+
[]
|
|
482
|
+
);
|
|
483
|
+
sideEffects?.onError?.(err);
|
|
484
|
+
throw transformedError;
|
|
485
|
+
}
|
|
486
|
+
}
|
|
487
|
+
async function createStandaloneForm2(standaloneForm) {
|
|
488
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
489
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
490
|
+
standaloneForm
|
|
491
|
+
});
|
|
492
|
+
const reqOpts = createStandaloneForm(payload);
|
|
493
|
+
sideEffects?.onSiteCall?.();
|
|
494
|
+
try {
|
|
495
|
+
const result = await httpClient.request(reqOpts);
|
|
496
|
+
sideEffects?.onSuccess?.(result);
|
|
497
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.standaloneForm;
|
|
498
|
+
} catch (err) {
|
|
499
|
+
const transformedError = sdkTransformError(
|
|
500
|
+
err,
|
|
501
|
+
{
|
|
502
|
+
spreadPathsToArguments: {},
|
|
503
|
+
explicitPathsToArguments: { standaloneForm: "$[0]" },
|
|
504
|
+
singleArgumentUnchanged: false
|
|
505
|
+
},
|
|
506
|
+
["standaloneForm"]
|
|
507
|
+
);
|
|
508
|
+
sideEffects?.onError?.(err);
|
|
509
|
+
throw transformedError;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
async function getStandaloneForm2(standaloneFormId) {
|
|
513
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
514
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
515
|
+
standaloneFormId
|
|
516
|
+
});
|
|
517
|
+
const reqOpts = getStandaloneForm(payload);
|
|
518
|
+
sideEffects?.onSiteCall?.();
|
|
519
|
+
try {
|
|
520
|
+
const result = await httpClient.request(reqOpts);
|
|
521
|
+
sideEffects?.onSuccess?.(result);
|
|
522
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.standaloneForm;
|
|
523
|
+
} catch (err) {
|
|
524
|
+
const transformedError = sdkTransformError(
|
|
525
|
+
err,
|
|
526
|
+
{
|
|
527
|
+
spreadPathsToArguments: {},
|
|
528
|
+
explicitPathsToArguments: { standaloneFormId: "$[0]" },
|
|
529
|
+
singleArgumentUnchanged: false
|
|
530
|
+
},
|
|
531
|
+
["standaloneFormId"]
|
|
532
|
+
);
|
|
533
|
+
sideEffects?.onError?.(err);
|
|
534
|
+
throw transformedError;
|
|
535
|
+
}
|
|
536
|
+
}
|
|
537
|
+
async function deleteStandaloneForm2(standaloneFormId, options) {
|
|
538
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
539
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
540
|
+
standaloneFormId,
|
|
541
|
+
permanent: options?.permanent
|
|
542
|
+
});
|
|
543
|
+
const reqOpts = deleteStandaloneForm(payload);
|
|
544
|
+
sideEffects?.onSiteCall?.();
|
|
545
|
+
try {
|
|
546
|
+
const result = await httpClient.request(reqOpts);
|
|
547
|
+
sideEffects?.onSuccess?.(result);
|
|
548
|
+
} catch (err) {
|
|
549
|
+
const transformedError = sdkTransformError(
|
|
550
|
+
err,
|
|
551
|
+
{
|
|
552
|
+
spreadPathsToArguments: {},
|
|
553
|
+
explicitPathsToArguments: {
|
|
554
|
+
standaloneFormId: "$[0]",
|
|
555
|
+
permanent: "$[1].permanent"
|
|
556
|
+
},
|
|
557
|
+
singleArgumentUnchanged: false
|
|
558
|
+
},
|
|
559
|
+
["standaloneFormId", "options"]
|
|
560
|
+
);
|
|
561
|
+
sideEffects?.onError?.(err);
|
|
562
|
+
throw transformedError;
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
async function removeStandaloneFormFromTrashBin2(standaloneFormId) {
|
|
566
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
567
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
568
|
+
standaloneFormId
|
|
569
|
+
});
|
|
570
|
+
const reqOpts = removeStandaloneFormFromTrashBin(
|
|
571
|
+
payload
|
|
572
|
+
);
|
|
573
|
+
sideEffects?.onSiteCall?.();
|
|
574
|
+
try {
|
|
575
|
+
const result = await httpClient.request(reqOpts);
|
|
576
|
+
sideEffects?.onSuccess?.(result);
|
|
577
|
+
} catch (err) {
|
|
578
|
+
const transformedError = sdkTransformError(
|
|
579
|
+
err,
|
|
580
|
+
{
|
|
581
|
+
spreadPathsToArguments: {},
|
|
582
|
+
explicitPathsToArguments: { standaloneFormId: "$[0]" },
|
|
583
|
+
singleArgumentUnchanged: false
|
|
584
|
+
},
|
|
585
|
+
["standaloneFormId"]
|
|
586
|
+
);
|
|
587
|
+
sideEffects?.onError?.(err);
|
|
588
|
+
throw transformedError;
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
async function restoreStandaloneFormFromTrashBin2(standaloneFormId) {
|
|
592
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
593
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
594
|
+
standaloneFormId
|
|
595
|
+
});
|
|
596
|
+
const reqOpts = restoreStandaloneFormFromTrashBin(
|
|
597
|
+
payload
|
|
598
|
+
);
|
|
599
|
+
sideEffects?.onSiteCall?.();
|
|
600
|
+
try {
|
|
601
|
+
const result = await httpClient.request(reqOpts);
|
|
602
|
+
sideEffects?.onSuccess?.(result);
|
|
603
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
604
|
+
} catch (err) {
|
|
605
|
+
const transformedError = sdkTransformError(
|
|
606
|
+
err,
|
|
607
|
+
{
|
|
608
|
+
spreadPathsToArguments: {},
|
|
609
|
+
explicitPathsToArguments: { standaloneFormId: "$[0]" },
|
|
610
|
+
singleArgumentUnchanged: false
|
|
611
|
+
},
|
|
612
|
+
["standaloneFormId"]
|
|
613
|
+
);
|
|
614
|
+
sideEffects?.onError?.(err);
|
|
615
|
+
throw transformedError;
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
async function getDeletedStandaloneForm2(standaloneFormId) {
|
|
619
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
620
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
621
|
+
standaloneFormId
|
|
622
|
+
});
|
|
623
|
+
const reqOpts = getDeletedStandaloneForm(payload);
|
|
624
|
+
sideEffects?.onSiteCall?.();
|
|
625
|
+
try {
|
|
626
|
+
const result = await httpClient.request(reqOpts);
|
|
627
|
+
sideEffects?.onSuccess?.(result);
|
|
628
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
629
|
+
} catch (err) {
|
|
630
|
+
const transformedError = sdkTransformError(
|
|
631
|
+
err,
|
|
632
|
+
{
|
|
633
|
+
spreadPathsToArguments: {},
|
|
634
|
+
explicitPathsToArguments: { standaloneFormId: "$[0]" },
|
|
635
|
+
singleArgumentUnchanged: false
|
|
636
|
+
},
|
|
637
|
+
["standaloneFormId"]
|
|
638
|
+
);
|
|
639
|
+
sideEffects?.onError?.(err);
|
|
640
|
+
throw transformedError;
|
|
641
|
+
}
|
|
642
|
+
}
|
|
643
|
+
async function listDeletedStandaloneForms2(options) {
|
|
644
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
645
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
646
|
+
standaloneFormIds: options?.standaloneFormIds,
|
|
647
|
+
paging: options?.paging
|
|
648
|
+
});
|
|
649
|
+
const reqOpts = listDeletedStandaloneForms(payload);
|
|
650
|
+
sideEffects?.onSiteCall?.();
|
|
651
|
+
try {
|
|
652
|
+
const result = await httpClient.request(reqOpts);
|
|
653
|
+
sideEffects?.onSuccess?.(result);
|
|
654
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
655
|
+
} catch (err) {
|
|
656
|
+
const transformedError = sdkTransformError(
|
|
657
|
+
err,
|
|
658
|
+
{
|
|
659
|
+
spreadPathsToArguments: {},
|
|
660
|
+
explicitPathsToArguments: {
|
|
661
|
+
standaloneFormIds: "$[0].standaloneFormIds",
|
|
662
|
+
paging: "$[0].paging"
|
|
663
|
+
},
|
|
664
|
+
singleArgumentUnchanged: false
|
|
665
|
+
},
|
|
666
|
+
["options"]
|
|
667
|
+
);
|
|
668
|
+
sideEffects?.onError?.(err);
|
|
669
|
+
throw transformedError;
|
|
670
|
+
}
|
|
671
|
+
}
|
|
672
|
+
async function queryStandaloneForms2(query) {
|
|
673
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
674
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
675
|
+
const reqOpts = queryStandaloneForms(payload);
|
|
676
|
+
sideEffects?.onSiteCall?.();
|
|
677
|
+
try {
|
|
678
|
+
const result = await httpClient.request(reqOpts);
|
|
679
|
+
sideEffects?.onSuccess?.(result);
|
|
680
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
681
|
+
} catch (err) {
|
|
682
|
+
const transformedError = sdkTransformError(
|
|
683
|
+
err,
|
|
684
|
+
{
|
|
685
|
+
spreadPathsToArguments: {},
|
|
686
|
+
explicitPathsToArguments: { query: "$[0]" },
|
|
687
|
+
singleArgumentUnchanged: false
|
|
688
|
+
},
|
|
689
|
+
["query"]
|
|
690
|
+
);
|
|
691
|
+
sideEffects?.onError?.(err);
|
|
692
|
+
throw transformedError;
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
async function getSiteProperties2() {
|
|
696
|
+
const { httpClient, sideEffects } = arguments[0];
|
|
697
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({});
|
|
698
|
+
const reqOpts = getSiteProperties(payload);
|
|
699
|
+
sideEffects?.onSiteCall?.();
|
|
700
|
+
try {
|
|
701
|
+
const result = await httpClient.request(reqOpts);
|
|
702
|
+
sideEffects?.onSuccess?.(result);
|
|
703
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
704
|
+
} catch (err) {
|
|
705
|
+
const transformedError = sdkTransformError(
|
|
706
|
+
err,
|
|
707
|
+
{
|
|
708
|
+
spreadPathsToArguments: {},
|
|
709
|
+
explicitPathsToArguments: {},
|
|
710
|
+
singleArgumentUnchanged: false
|
|
711
|
+
},
|
|
712
|
+
[]
|
|
713
|
+
);
|
|
714
|
+
sideEffects?.onError?.(err);
|
|
715
|
+
throw transformedError;
|
|
716
|
+
}
|
|
717
|
+
}
|
|
718
|
+
export {
|
|
719
|
+
DayOfWeek,
|
|
720
|
+
DeleteStatus,
|
|
721
|
+
Namespace,
|
|
722
|
+
PlacementType,
|
|
723
|
+
ResolutionMethod,
|
|
724
|
+
SiteCreatedContext,
|
|
725
|
+
SortOrder,
|
|
726
|
+
State,
|
|
727
|
+
WebhookIdentityType,
|
|
728
|
+
createStandaloneForm2 as createStandaloneForm,
|
|
729
|
+
deleteStandaloneForm2 as deleteStandaloneForm,
|
|
730
|
+
getDeletedStandaloneForm2 as getDeletedStandaloneForm,
|
|
731
|
+
getOrCreateFormStandaloneMetaSite2 as getOrCreateFormStandaloneMetaSite,
|
|
732
|
+
getSiteProperties2 as getSiteProperties,
|
|
733
|
+
getStandaloneForm2 as getStandaloneForm,
|
|
734
|
+
listDeletedStandaloneForms2 as listDeletedStandaloneForms,
|
|
735
|
+
queryStandaloneForms2 as queryStandaloneForms,
|
|
736
|
+
removeStandaloneFormFromTrashBin2 as removeStandaloneFormFromTrashBin,
|
|
737
|
+
restoreStandaloneFormFromTrashBin2 as restoreStandaloneFormFromTrashBin
|
|
738
|
+
};
|
|
739
|
+
//# sourceMappingURL=index.typings.mjs.map
|