@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.
Files changed (134) hide show
  1. package/build/{cjs/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.mts} +430 -392
  2. package/build/{internal/cjs/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.ts} +430 -392
  3. package/build/index.d.mts +84 -0
  4. package/build/index.d.ts +84 -0
  5. package/build/index.js +1512 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1435 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/events-v1-form-forms.types.d.ts → internal/events-v1-form-forms.universal-DsBBfrf9.d.mts} +430 -392
  10. package/build/internal/{es/src/events-v1-form-forms.types.d.ts → events-v1-form-forms.universal-DsBBfrf9.d.ts} +430 -392
  11. package/build/internal/index.d.mts +84 -0
  12. package/build/internal/index.d.ts +84 -0
  13. package/build/internal/index.js +1512 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1435 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +648 -0
  18. package/build/internal/meta.d.ts +648 -0
  19. package/build/internal/meta.js +800 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +767 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +648 -0
  24. package/build/meta.d.ts +648 -0
  25. package/build/meta.js +800 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +767 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/events-v1-form-forms.context.d.ts +0 -17
  40. package/build/cjs/src/events-v1-form-forms.context.js +0 -67
  41. package/build/cjs/src/events-v1-form-forms.context.js.map +0 -1
  42. package/build/cjs/src/events-v1-form-forms.http.d.ts +0 -22
  43. package/build/cjs/src/events-v1-form-forms.http.js +0 -653
  44. package/build/cjs/src/events-v1-form-forms.http.js.map +0 -1
  45. package/build/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
  46. package/build/cjs/src/events-v1-form-forms.meta.js +0 -161
  47. package/build/cjs/src/events-v1-form-forms.meta.js.map +0 -1
  48. package/build/cjs/src/events-v1-form-forms.public.d.ts +0 -72
  49. package/build/cjs/src/events-v1-form-forms.public.js +0 -202
  50. package/build/cjs/src/events-v1-form-forms.public.js.map +0 -1
  51. package/build/cjs/src/events-v1-form-forms.types.js +0 -487
  52. package/build/cjs/src/events-v1-form-forms.types.js.map +0 -1
  53. package/build/cjs/src/events-v1-form-forms.universal.d.ts +0 -3423
  54. package/build/cjs/src/events-v1-form-forms.universal.js +0 -880
  55. package/build/cjs/src/events-v1-form-forms.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/package.json +0 -3
  66. package/build/es/src/events-v1-form-forms.context.d.ts +0 -17
  67. package/build/es/src/events-v1-form-forms.context.js +0 -17
  68. package/build/es/src/events-v1-form-forms.context.js.map +0 -1
  69. package/build/es/src/events-v1-form-forms.http.d.ts +0 -22
  70. package/build/es/src/events-v1-form-forms.http.js +0 -643
  71. package/build/es/src/events-v1-form-forms.http.js.map +0 -1
  72. package/build/es/src/events-v1-form-forms.meta.d.ts +0 -35
  73. package/build/es/src/events-v1-form-forms.meta.js +0 -128
  74. package/build/es/src/events-v1-form-forms.meta.js.map +0 -1
  75. package/build/es/src/events-v1-form-forms.public.d.ts +0 -72
  76. package/build/es/src/events-v1-form-forms.public.js +0 -145
  77. package/build/es/src/events-v1-form-forms.public.js.map +0 -1
  78. package/build/es/src/events-v1-form-forms.types.js +0 -484
  79. package/build/es/src/events-v1-form-forms.types.js.map +0 -1
  80. package/build/es/src/events-v1-form-forms.universal.d.ts +0 -3423
  81. package/build/es/src/events-v1-form-forms.universal.js +0 -846
  82. package/build/es/src/events-v1-form-forms.universal.js.map +0 -1
  83. package/build/internal/cjs/index.d.ts +0 -1
  84. package/build/internal/cjs/index.js +0 -18
  85. package/build/internal/cjs/index.js.map +0 -1
  86. package/build/internal/cjs/index.typings.d.ts +0 -1
  87. package/build/internal/cjs/index.typings.js +0 -18
  88. package/build/internal/cjs/index.typings.js.map +0 -1
  89. package/build/internal/cjs/meta.d.ts +0 -1
  90. package/build/internal/cjs/meta.js +0 -18
  91. package/build/internal/cjs/meta.js.map +0 -1
  92. package/build/internal/cjs/src/events-v1-form-forms.context.d.ts +0 -17
  93. package/build/internal/cjs/src/events-v1-form-forms.context.js +0 -67
  94. package/build/internal/cjs/src/events-v1-form-forms.context.js.map +0 -1
  95. package/build/internal/cjs/src/events-v1-form-forms.http.d.ts +0 -22
  96. package/build/internal/cjs/src/events-v1-form-forms.http.js +0 -653
  97. package/build/internal/cjs/src/events-v1-form-forms.http.js.map +0 -1
  98. package/build/internal/cjs/src/events-v1-form-forms.meta.d.ts +0 -35
  99. package/build/internal/cjs/src/events-v1-form-forms.meta.js +0 -161
  100. package/build/internal/cjs/src/events-v1-form-forms.meta.js.map +0 -1
  101. package/build/internal/cjs/src/events-v1-form-forms.public.d.ts +0 -72
  102. package/build/internal/cjs/src/events-v1-form-forms.public.js +0 -202
  103. package/build/internal/cjs/src/events-v1-form-forms.public.js.map +0 -1
  104. package/build/internal/cjs/src/events-v1-form-forms.types.js +0 -487
  105. package/build/internal/cjs/src/events-v1-form-forms.types.js.map +0 -1
  106. package/build/internal/cjs/src/events-v1-form-forms.universal.d.ts +0 -3423
  107. package/build/internal/cjs/src/events-v1-form-forms.universal.js +0 -880
  108. package/build/internal/cjs/src/events-v1-form-forms.universal.js.map +0 -1
  109. package/build/internal/es/index.d.ts +0 -1
  110. package/build/internal/es/index.js +0 -2
  111. package/build/internal/es/index.js.map +0 -1
  112. package/build/internal/es/index.typings.d.ts +0 -1
  113. package/build/internal/es/index.typings.js +0 -2
  114. package/build/internal/es/index.typings.js.map +0 -1
  115. package/build/internal/es/meta.d.ts +0 -1
  116. package/build/internal/es/meta.js +0 -2
  117. package/build/internal/es/meta.js.map +0 -1
  118. package/build/internal/es/src/events-v1-form-forms.context.d.ts +0 -17
  119. package/build/internal/es/src/events-v1-form-forms.context.js +0 -17
  120. package/build/internal/es/src/events-v1-form-forms.context.js.map +0 -1
  121. package/build/internal/es/src/events-v1-form-forms.http.d.ts +0 -22
  122. package/build/internal/es/src/events-v1-form-forms.http.js +0 -643
  123. package/build/internal/es/src/events-v1-form-forms.http.js.map +0 -1
  124. package/build/internal/es/src/events-v1-form-forms.meta.d.ts +0 -35
  125. package/build/internal/es/src/events-v1-form-forms.meta.js +0 -128
  126. package/build/internal/es/src/events-v1-form-forms.meta.js.map +0 -1
  127. package/build/internal/es/src/events-v1-form-forms.public.d.ts +0 -72
  128. package/build/internal/es/src/events-v1-form-forms.public.js +0 -145
  129. package/build/internal/es/src/events-v1-form-forms.public.js.map +0 -1
  130. package/build/internal/es/src/events-v1-form-forms.types.js +0 -484
  131. package/build/internal/es/src/events-v1-form-forms.types.js.map +0 -1
  132. package/build/internal/es/src/events-v1-form-forms.universal.d.ts +0 -3423
  133. package/build/internal/es/src/events-v1-form-forms.universal.js +0 -846
  134. package/build/internal/es/src/events-v1-form-forms.universal.js.map +0 -1
@@ -0,0 +1,800 @@
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
+ addControl: () => addControl2,
24
+ deleteControl: () => deleteControl2,
25
+ discardDraft: () => discardDraft2,
26
+ getForm: () => getForm2,
27
+ publishDraft: () => publishDraft2,
28
+ updateControl: () => updateControl2,
29
+ updateMessages: () => updateMessages2
30
+ });
31
+ module.exports = __toCommonJS(meta_exports);
32
+
33
+ // src/events-v1-form-forms.http.ts
34
+ var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
35
+ var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
36
+ var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
37
+ var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
38
+ function resolveWixEventsFormFormBuilderUrl(opts) {
39
+ const domainToMappings = {
40
+ "events._base_domain_": [
41
+ {
42
+ srcPath: "",
43
+ destPath: ""
44
+ },
45
+ {
46
+ srcPath: "/_api/wix-events-web",
47
+ destPath: "/api"
48
+ }
49
+ ],
50
+ "www.wixevents.com": [
51
+ {
52
+ srcPath: "/_api/wix-events-web",
53
+ destPath: "/api"
54
+ },
55
+ {
56
+ srcPath: "/api",
57
+ destPath: "/api"
58
+ },
59
+ {
60
+ srcPath: "/viewEvent",
61
+ destPath: "/viewEvent"
62
+ },
63
+ {
64
+ srcPath: "/viewRsvpDashboard",
65
+ destPath: "/viewRsvpDashboard"
66
+ },
67
+ {
68
+ srcPath: "/viewOrderDashboard",
69
+ destPath: "/viewOrderDashboard"
70
+ },
71
+ {
72
+ srcPath: "/viewSummarySubscription",
73
+ destPath: "/viewSummarySubscription"
74
+ },
75
+ {
76
+ srcPath: "/check-in",
77
+ destPath: "/check-in"
78
+ },
79
+ {
80
+ srcPath: "/v2",
81
+ destPath: "/v2"
82
+ },
83
+ {
84
+ srcPath: "/export",
85
+ destPath: "/export"
86
+ },
87
+ {
88
+ srcPath: "/tickets",
89
+ destPath: "/tickets"
90
+ },
91
+ {
92
+ srcPath: "/payment-redirect",
93
+ destPath: "/payment-redirect"
94
+ },
95
+ {
96
+ srcPath: "/admin",
97
+ destPath: "/admin"
98
+ },
99
+ {
100
+ srcPath: "/ticket",
101
+ destPath: "/ticket"
102
+ },
103
+ {
104
+ srcPath: "/media",
105
+ destPath: "/media"
106
+ }
107
+ ],
108
+ "api._api_base_domain_": [
109
+ {
110
+ srcPath: "/wix-events-web",
111
+ destPath: ""
112
+ }
113
+ ],
114
+ "events.wixapps.net": [
115
+ {
116
+ srcPath: "/_api/wix-events-web",
117
+ destPath: "/api"
118
+ },
119
+ {
120
+ srcPath: "/events",
121
+ destPath: ""
122
+ }
123
+ ],
124
+ "www._base_domain_": [
125
+ {
126
+ srcPath: "/_api/wix-events-web",
127
+ destPath: "/api"
128
+ },
129
+ {
130
+ srcPath: "/_api/wix-events-web/v2",
131
+ destPath: "/v2"
132
+ },
133
+ {
134
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
135
+ destPath: "/v1/bulk-async/categories"
136
+ },
137
+ {
138
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
139
+ destPath: "/v1/bulk/categories"
140
+ },
141
+ {
142
+ srcPath: "/_api/wix-events-web/v1/categories",
143
+ destPath: "/v1/categories"
144
+ },
145
+ {
146
+ srcPath: "/_api/wix-events-web/v1/events",
147
+ destPath: "/v1/events"
148
+ },
149
+ {
150
+ srcPath: "/_api/wix-events-web/v1/orders",
151
+ destPath: "/v1/orders"
152
+ },
153
+ {
154
+ srcPath: "/_api/wix-events-web/v1/tickets",
155
+ destPath: "/v1/tickets"
156
+ }
157
+ ],
158
+ "apps._base_domain_": [
159
+ {
160
+ srcPath: "/_api/wix-events-web",
161
+ destPath: "/api"
162
+ },
163
+ {
164
+ srcPath: "/events",
165
+ destPath: ""
166
+ }
167
+ ],
168
+ "manage._base_domain_": [
169
+ {
170
+ srcPath: "/_api/wix-events-web",
171
+ destPath: "/api"
172
+ },
173
+ {
174
+ srcPath: "/_api/wix-events-web/v1/events",
175
+ destPath: "/v1/events"
176
+ },
177
+ {
178
+ srcPath: "/_api/wix-events-web/v1/categories",
179
+ destPath: "/v1/categories"
180
+ },
181
+ {
182
+ srcPath: "/_api/wix-events-web/v2/events",
183
+ destPath: "/v2/events"
184
+ },
185
+ {
186
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
187
+ destPath: "/v1/bulk/categories"
188
+ },
189
+ {
190
+ srcPath: "/_api/wix-events-web/v1/bulk/events",
191
+ destPath: "/v1/bulk/events"
192
+ },
193
+ {
194
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
195
+ destPath: "/v1/bulk-async/categories"
196
+ },
197
+ {
198
+ srcPath: "/_api/wix-events-web/v1/tickets",
199
+ destPath: "/v1/tickets"
200
+ },
201
+ {
202
+ srcPath: "/events/v1/events",
203
+ destPath: "/v1/events"
204
+ },
205
+ {
206
+ srcPath: "/events/v1/categories",
207
+ destPath: "/v1/categories"
208
+ },
209
+ {
210
+ srcPath: "/events/v1/bulk/categories",
211
+ destPath: "/v1/bulk/categories"
212
+ },
213
+ {
214
+ srcPath: "/events/v1/bulk-async/categories",
215
+ destPath: "/v1/bulk-async/categories"
216
+ },
217
+ {
218
+ srcPath: "/events/v1/bulk/events",
219
+ destPath: "/v1/bulk/events"
220
+ },
221
+ {
222
+ srcPath: "/events/v1/reports",
223
+ destPath: "/v1/reports"
224
+ },
225
+ {
226
+ srcPath: "/events/v1/tickets",
227
+ destPath: "/v1/tickets"
228
+ },
229
+ {
230
+ srcPath: "/events/v1/orders",
231
+ destPath: "/v1/orders"
232
+ },
233
+ {
234
+ srcPath: "/events/v1/web",
235
+ destPath: "/v1/web"
236
+ },
237
+ {
238
+ srcPath: "/events/v2/tickets",
239
+ destPath: "/v2/tickets"
240
+ },
241
+ {
242
+ srcPath: "/events/v2/events",
243
+ destPath: "/v2/events"
244
+ }
245
+ ],
246
+ "www.wixapis.com": [
247
+ {
248
+ srcPath: "/events/v1/events",
249
+ destPath: "/v1/events"
250
+ },
251
+ {
252
+ srcPath: "/events/v1/tickets",
253
+ destPath: "/v1/tickets"
254
+ },
255
+ {
256
+ srcPath: "/events/v1/categories",
257
+ destPath: "/v1/categories"
258
+ },
259
+ {
260
+ srcPath: "/events/v1/orders",
261
+ destPath: "/v1/orders"
262
+ },
263
+ {
264
+ srcPath: "/events/v1/bulk/categories",
265
+ destPath: "/v1/bulk/categories"
266
+ },
267
+ {
268
+ srcPath: "/events/v2/events",
269
+ destPath: "/v2/events"
270
+ },
271
+ {
272
+ srcPath: "/events/v1/bulk-async/categories",
273
+ destPath: "/v1/bulk-async/categories"
274
+ }
275
+ ],
276
+ "api._base_domain_": [
277
+ {
278
+ srcPath: "/events/v2",
279
+ destPath: "/v2"
280
+ },
281
+ {
282
+ srcPath: "/events/v1/bulk-async/categories",
283
+ destPath: "/v1/bulk-async/categories"
284
+ },
285
+ {
286
+ srcPath: "/events/v1/bulk/categories",
287
+ destPath: "/v1/bulk/categories"
288
+ },
289
+ {
290
+ srcPath: "/events/v1/categories",
291
+ destPath: "/v1/categories"
292
+ },
293
+ {
294
+ srcPath: "/events/v1/events",
295
+ destPath: "/v1/events"
296
+ },
297
+ {
298
+ srcPath: "/events/v1/orders",
299
+ destPath: "/v1/orders"
300
+ },
301
+ {
302
+ srcPath: "/events/v1/tickets",
303
+ destPath: "/v1/tickets"
304
+ }
305
+ ],
306
+ _: [
307
+ {
308
+ srcPath: "/_api/wix-events-web/v2",
309
+ destPath: "/v2"
310
+ },
311
+ {
312
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
313
+ destPath: "/v1/bulk-async/categories"
314
+ },
315
+ {
316
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
317
+ destPath: "/v1/bulk/categories"
318
+ },
319
+ {
320
+ srcPath: "/_api/wix-events-web/v1/categories",
321
+ destPath: "/v1/categories"
322
+ },
323
+ {
324
+ srcPath: "/_api/wix-events-web/v1/events",
325
+ destPath: "/v1/events"
326
+ },
327
+ {
328
+ srcPath: "/_api/wix-events-web/v1/orders",
329
+ destPath: "/v1/orders"
330
+ },
331
+ {
332
+ srcPath: "/_api/wix-events-web/v1/tickets",
333
+ destPath: "/v1/tickets"
334
+ }
335
+ ],
336
+ "editor.wixapps.net": [
337
+ {
338
+ srcPath: "/events/v2/events",
339
+ destPath: "/v2/events"
340
+ },
341
+ {
342
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
343
+ destPath: "/v1/bulk-async/categories"
344
+ },
345
+ {
346
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
347
+ destPath: "/v1/bulk/categories"
348
+ },
349
+ {
350
+ srcPath: "/_api/wix-events-web/v1/categories",
351
+ destPath: "/v1/categories"
352
+ },
353
+ {
354
+ srcPath: "/_api/wix-events-web/v1/events",
355
+ destPath: "/v1/events"
356
+ },
357
+ {
358
+ srcPath: "/_api/wix-events-web/v1/orders",
359
+ destPath: "/v1/orders"
360
+ },
361
+ {
362
+ srcPath: "/_api/wix-events-web/v1/tickets",
363
+ destPath: "/v1/tickets"
364
+ }
365
+ ],
366
+ "*.dev.wix-code.com": [
367
+ {
368
+ srcPath: "/_api/wix-events-web/v2",
369
+ destPath: "/v2"
370
+ },
371
+ {
372
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
373
+ destPath: "/v1/bulk-async/categories"
374
+ },
375
+ {
376
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
377
+ destPath: "/v1/bulk/categories"
378
+ },
379
+ {
380
+ srcPath: "/_api/wix-events-web/v1/categories",
381
+ destPath: "/v1/categories"
382
+ },
383
+ {
384
+ srcPath: "/_api/wix-events-web/v1/events",
385
+ destPath: "/v1/events"
386
+ },
387
+ {
388
+ srcPath: "/_api/wix-events-web/v1/orders",
389
+ destPath: "/v1/orders"
390
+ },
391
+ {
392
+ srcPath: "/_api/wix-events-web/v1/tickets",
393
+ destPath: "/v1/tickets"
394
+ }
395
+ ],
396
+ "*.pub.wix-code.com": [
397
+ {
398
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
399
+ destPath: "/v1/bulk-async/categories"
400
+ },
401
+ {
402
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
403
+ destPath: "/v1/bulk/categories"
404
+ },
405
+ {
406
+ srcPath: "/_api/wix-events-web/v1/categories",
407
+ destPath: "/v1/categories"
408
+ },
409
+ {
410
+ srcPath: "/_api/wix-events-web/v1/events",
411
+ destPath: "/v1/events"
412
+ },
413
+ {
414
+ srcPath: "/_api/wix-events-web/v1/orders",
415
+ destPath: "/v1/orders"
416
+ },
417
+ {
418
+ srcPath: "/_api/wix-events-web/v1/tickets",
419
+ destPath: "/v1/tickets"
420
+ }
421
+ ],
422
+ "editor-flow.wixapps.net": [
423
+ {
424
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
425
+ destPath: "/v1/bulk-async/categories"
426
+ },
427
+ {
428
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
429
+ destPath: "/v1/bulk/categories"
430
+ },
431
+ {
432
+ srcPath: "/_api/wix-events-web/v1/categories",
433
+ destPath: "/v1/categories"
434
+ },
435
+ {
436
+ srcPath: "/_api/wix-events-web/v1/events",
437
+ destPath: "/v1/events"
438
+ },
439
+ {
440
+ srcPath: "/_api/wix-events-web/v1/orders",
441
+ destPath: "/v1/orders"
442
+ },
443
+ {
444
+ srcPath: "/_api/wix-events-web/v1/tickets",
445
+ destPath: "/v1/tickets"
446
+ }
447
+ ],
448
+ "editor._base_domain_": [
449
+ {
450
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
451
+ destPath: "/v1/bulk-async/categories"
452
+ },
453
+ {
454
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
455
+ destPath: "/v1/bulk/categories"
456
+ },
457
+ {
458
+ srcPath: "/_api/wix-events-web/v1/categories",
459
+ destPath: "/v1/categories"
460
+ },
461
+ {
462
+ srcPath: "/_api/wix-events-web/v1/events",
463
+ destPath: "/v1/events"
464
+ },
465
+ {
466
+ srcPath: "/_api/wix-events-web/v1/orders",
467
+ destPath: "/v1/orders"
468
+ },
469
+ {
470
+ srcPath: "/_api/wix-events-web/v1/tickets",
471
+ destPath: "/v1/tickets"
472
+ }
473
+ ],
474
+ "blocks._base_domain_": [
475
+ {
476
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
477
+ destPath: "/v1/bulk-async/categories"
478
+ },
479
+ {
480
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
481
+ destPath: "/v1/bulk/categories"
482
+ },
483
+ {
484
+ srcPath: "/_api/wix-events-web/v1/categories",
485
+ destPath: "/v1/categories"
486
+ },
487
+ {
488
+ srcPath: "/_api/wix-events-web/v1/events",
489
+ destPath: "/v1/events"
490
+ },
491
+ {
492
+ srcPath: "/_api/wix-events-web/v1/orders",
493
+ destPath: "/v1/orders"
494
+ },
495
+ {
496
+ srcPath: "/_api/wix-events-web/v1/tickets",
497
+ destPath: "/v1/tickets"
498
+ }
499
+ ],
500
+ "create.editorx": [
501
+ {
502
+ srcPath: "/_api/wix-events-web/v1/bulk-async/categories",
503
+ destPath: "/v1/bulk-async/categories"
504
+ },
505
+ {
506
+ srcPath: "/_api/wix-events-web/v1/bulk/categories",
507
+ destPath: "/v1/bulk/categories"
508
+ },
509
+ {
510
+ srcPath: "/_api/wix-events-web/v1/categories",
511
+ destPath: "/v1/categories"
512
+ },
513
+ {
514
+ srcPath: "/_api/wix-events-web/v1/events",
515
+ destPath: "/v1/events"
516
+ },
517
+ {
518
+ srcPath: "/_api/wix-events-web/v1/orders",
519
+ destPath: "/v1/orders"
520
+ },
521
+ {
522
+ srcPath: "/_api/wix-events-web/v1/tickets",
523
+ destPath: "/v1/tickets"
524
+ }
525
+ ]
526
+ };
527
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
528
+ }
529
+ var PACKAGE_NAME = "@wix/auto_sdk_events_forms";
530
+ function getForm(payload) {
531
+ function __getForm({ host }) {
532
+ const metadata = {
533
+ entityFqdn: "wix.events.v1.form",
534
+ method: "GET",
535
+ methodFqn: "wix.events.form.FormBuilder.GetForm",
536
+ packageName: PACKAGE_NAME,
537
+ url: resolveWixEventsFormFormBuilderUrl({
538
+ protoPath: "/v1/events/{eventId}/form",
539
+ data: payload,
540
+ host
541
+ }),
542
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
543
+ };
544
+ return metadata;
545
+ }
546
+ return __getForm;
547
+ }
548
+ function addControl(payload) {
549
+ function __addControl({ host }) {
550
+ const metadata = {
551
+ entityFqdn: "wix.events.v1.form",
552
+ method: "POST",
553
+ methodFqn: "wix.events.form.FormBuilder.AddControl",
554
+ packageName: PACKAGE_NAME,
555
+ url: resolveWixEventsFormFormBuilderUrl({
556
+ protoPath: "/v1/events/{eventId}/form/control",
557
+ data: payload,
558
+ host
559
+ }),
560
+ data: payload
561
+ };
562
+ return metadata;
563
+ }
564
+ return __addControl;
565
+ }
566
+ function updateControl(payload) {
567
+ function __updateControl({ host }) {
568
+ const metadata = {
569
+ entityFqdn: "wix.events.v1.form",
570
+ method: "PUT",
571
+ methodFqn: "wix.events.form.FormBuilder.UpdateControl",
572
+ packageName: PACKAGE_NAME,
573
+ url: resolveWixEventsFormFormBuilderUrl({
574
+ protoPath: "/v1/events/{eventId}/form/controls/{id}",
575
+ data: payload,
576
+ host
577
+ }),
578
+ data: payload
579
+ };
580
+ return metadata;
581
+ }
582
+ return __updateControl;
583
+ }
584
+ function deleteControl(payload) {
585
+ function __deleteControl({ host }) {
586
+ const metadata = {
587
+ entityFqdn: "wix.events.v1.form",
588
+ method: "DELETE",
589
+ methodFqn: "wix.events.form.FormBuilder.DeleteControl",
590
+ packageName: PACKAGE_NAME,
591
+ url: resolveWixEventsFormFormBuilderUrl({
592
+ protoPath: "/v1/events/{eventId}/form/controls/{id}",
593
+ data: payload,
594
+ host
595
+ }),
596
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
597
+ };
598
+ return metadata;
599
+ }
600
+ return __deleteControl;
601
+ }
602
+ function updateMessages(payload) {
603
+ function __updateMessages({ host }) {
604
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
605
+ {
606
+ transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
607
+ paths: [{ path: "fields" }]
608
+ }
609
+ ]);
610
+ const metadata = {
611
+ entityFqdn: "wix.events.v1.form",
612
+ method: "PATCH",
613
+ methodFqn: "wix.events.form.FormBuilder.UpdateMessages",
614
+ packageName: PACKAGE_NAME,
615
+ url: resolveWixEventsFormFormBuilderUrl({
616
+ protoPath: "/v1/events/{eventId}/form/messages",
617
+ data: serializedData,
618
+ host
619
+ }),
620
+ data: serializedData
621
+ };
622
+ return metadata;
623
+ }
624
+ return __updateMessages;
625
+ }
626
+ function publishDraft(payload) {
627
+ function __publishDraft({ host }) {
628
+ const metadata = {
629
+ entityFqdn: "wix.events.v1.form",
630
+ method: "POST",
631
+ methodFqn: "wix.events.form.FormBuilder.PublishDraft",
632
+ packageName: PACKAGE_NAME,
633
+ url: resolveWixEventsFormFormBuilderUrl({
634
+ protoPath: "/v1/events/{eventId}/form/publish",
635
+ data: payload,
636
+ host
637
+ }),
638
+ data: payload
639
+ };
640
+ return metadata;
641
+ }
642
+ return __publishDraft;
643
+ }
644
+ function discardDraft(payload) {
645
+ function __discardDraft({ host }) {
646
+ const metadata = {
647
+ entityFqdn: "wix.events.v1.form",
648
+ method: "DELETE",
649
+ methodFqn: "wix.events.form.FormBuilder.DiscardDraft",
650
+ packageName: PACKAGE_NAME,
651
+ url: resolveWixEventsFormFormBuilderUrl({
652
+ protoPath: "/v1/events/{eventId}/form",
653
+ data: payload,
654
+ host
655
+ }),
656
+ params: (0, import_rest_modules.toURLSearchParams)(payload)
657
+ };
658
+ return metadata;
659
+ }
660
+ return __discardDraft;
661
+ }
662
+
663
+ // src/events-v1-form-forms.meta.ts
664
+ function getForm2() {
665
+ const payload = { eventId: ":eventId" };
666
+ const getRequestOptions = getForm(payload);
667
+ const getUrl = (context) => {
668
+ const { url } = getRequestOptions(context);
669
+ return url;
670
+ };
671
+ return {
672
+ getUrl,
673
+ httpMethod: "GET",
674
+ path: "/v1/events/{eventId}/form",
675
+ pathParams: { eventId: "eventId" },
676
+ __requestType: null,
677
+ __originalRequestType: null,
678
+ __responseType: null,
679
+ __originalResponseType: null
680
+ };
681
+ }
682
+ function addControl2() {
683
+ const payload = { eventId: ":eventId" };
684
+ const getRequestOptions = addControl(payload);
685
+ const getUrl = (context) => {
686
+ const { url } = getRequestOptions(context);
687
+ return url;
688
+ };
689
+ return {
690
+ getUrl,
691
+ httpMethod: "POST",
692
+ path: "/v1/events/{eventId}/form/control",
693
+ pathParams: { eventId: "eventId" },
694
+ __requestType: null,
695
+ __originalRequestType: null,
696
+ __responseType: null,
697
+ __originalResponseType: null
698
+ };
699
+ }
700
+ function updateControl2() {
701
+ const payload = { eventId: ":eventId", id: ":id" };
702
+ const getRequestOptions = updateControl(payload);
703
+ const getUrl = (context) => {
704
+ const { url } = getRequestOptions(context);
705
+ return url;
706
+ };
707
+ return {
708
+ getUrl,
709
+ httpMethod: "PUT",
710
+ path: "/v1/events/{eventId}/form/controls/{id}",
711
+ pathParams: { eventId: "eventId", id: "id" },
712
+ __requestType: null,
713
+ __originalRequestType: null,
714
+ __responseType: null,
715
+ __originalResponseType: null
716
+ };
717
+ }
718
+ function deleteControl2() {
719
+ const payload = { eventId: ":eventId", id: ":id" };
720
+ const getRequestOptions = deleteControl(payload);
721
+ const getUrl = (context) => {
722
+ const { url } = getRequestOptions(context);
723
+ return url;
724
+ };
725
+ return {
726
+ getUrl,
727
+ httpMethod: "DELETE",
728
+ path: "/v1/events/{eventId}/form/controls/{id}",
729
+ pathParams: { eventId: "eventId", id: "id" },
730
+ __requestType: null,
731
+ __originalRequestType: null,
732
+ __responseType: null,
733
+ __originalResponseType: null
734
+ };
735
+ }
736
+ function updateMessages2() {
737
+ const payload = { eventId: ":eventId" };
738
+ const getRequestOptions = updateMessages(payload);
739
+ const getUrl = (context) => {
740
+ const { url } = getRequestOptions(context);
741
+ return url;
742
+ };
743
+ return {
744
+ getUrl,
745
+ httpMethod: "PATCH",
746
+ path: "/v1/events/{eventId}/form/messages",
747
+ pathParams: { eventId: "eventId" },
748
+ __requestType: null,
749
+ __originalRequestType: null,
750
+ __responseType: null,
751
+ __originalResponseType: null
752
+ };
753
+ }
754
+ function publishDraft2() {
755
+ const payload = { eventId: ":eventId" };
756
+ const getRequestOptions = publishDraft(payload);
757
+ const getUrl = (context) => {
758
+ const { url } = getRequestOptions(context);
759
+ return url;
760
+ };
761
+ return {
762
+ getUrl,
763
+ httpMethod: "POST",
764
+ path: "/v1/events/{eventId}/form/publish",
765
+ pathParams: { eventId: "eventId" },
766
+ __requestType: null,
767
+ __originalRequestType: null,
768
+ __responseType: null,
769
+ __originalResponseType: null
770
+ };
771
+ }
772
+ function discardDraft2() {
773
+ const payload = { eventId: ":eventId" };
774
+ const getRequestOptions = discardDraft(payload);
775
+ const getUrl = (context) => {
776
+ const { url } = getRequestOptions(context);
777
+ return url;
778
+ };
779
+ return {
780
+ getUrl,
781
+ httpMethod: "DELETE",
782
+ path: "/v1/events/{eventId}/form",
783
+ pathParams: { eventId: "eventId" },
784
+ __requestType: null,
785
+ __originalRequestType: null,
786
+ __responseType: null,
787
+ __originalResponseType: null
788
+ };
789
+ }
790
+ // Annotate the CommonJS export names for ESM import in node:
791
+ 0 && (module.exports = {
792
+ addControl,
793
+ deleteControl,
794
+ discardDraft,
795
+ getForm,
796
+ publishDraft,
797
+ updateControl,
798
+ updateMessages
799
+ });
800
+ //# sourceMappingURL=meta.js.map