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