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