@wix/auto_sdk_events_categories 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.
Files changed (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/events-v1-category-categories.context.d.ts +17 -0
  11. package/build/cjs/src/events-v1-category-categories.context.js +24 -0
  12. package/build/cjs/src/events-v1-category-categories.context.js.map +1 -0
  13. package/build/cjs/src/events-v1-category-categories.http.d.ts +57 -0
  14. package/build/cjs/src/events-v1-category-categories.http.js +851 -0
  15. package/build/cjs/src/events-v1-category-categories.http.js.map +1 -0
  16. package/build/cjs/src/events-v1-category-categories.meta.d.ts +37 -0
  17. package/build/cjs/src/events-v1-category-categories.meta.js +275 -0
  18. package/build/cjs/src/events-v1-category-categories.meta.js.map +1 -0
  19. package/build/cjs/src/events-v1-category-categories.public.d.ts +141 -0
  20. package/build/cjs/src/events-v1-category-categories.public.js +89 -0
  21. package/build/cjs/src/events-v1-category-categories.public.js.map +1 -0
  22. package/build/cjs/src/events-v1-category-categories.types.d.ts +430 -0
  23. package/build/cjs/src/events-v1-category-categories.types.js +33 -0
  24. package/build/cjs/src/events-v1-category-categories.types.js.map +1 -0
  25. package/build/cjs/src/events-v1-category-categories.universal.d.ts +748 -0
  26. package/build/cjs/src/events-v1-category-categories.universal.js +605 -0
  27. package/build/cjs/src/events-v1-category-categories.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/events-v1-category-categories.context.d.ts +17 -0
  39. package/build/es/src/events-v1-category-categories.context.js +17 -0
  40. package/build/es/src/events-v1-category-categories.context.js.map +1 -0
  41. package/build/es/src/events-v1-category-categories.http.d.ts +57 -0
  42. package/build/es/src/events-v1-category-categories.http.js +835 -0
  43. package/build/es/src/events-v1-category-categories.http.js.map +1 -0
  44. package/build/es/src/events-v1-category-categories.meta.d.ts +37 -0
  45. package/build/es/src/events-v1-category-categories.meta.js +236 -0
  46. package/build/es/src/events-v1-category-categories.meta.js.map +1 -0
  47. package/build/es/src/events-v1-category-categories.public.d.ts +141 -0
  48. package/build/es/src/events-v1-category-categories.public.js +69 -0
  49. package/build/es/src/events-v1-category-categories.public.js.map +1 -0
  50. package/build/es/src/events-v1-category-categories.types.d.ts +430 -0
  51. package/build/es/src/events-v1-category-categories.types.js +30 -0
  52. package/build/es/src/events-v1-category-categories.types.js.map +1 -0
  53. package/build/es/src/events-v1-category-categories.universal.d.ts +748 -0
  54. package/build/es/src/events-v1-category-categories.universal.js +566 -0
  55. package/build/es/src/events-v1-category-categories.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/events-v1-category-categories.context.d.ts +17 -0
  66. package/build/internal/cjs/src/events-v1-category-categories.context.js +24 -0
  67. package/build/internal/cjs/src/events-v1-category-categories.context.js.map +1 -0
  68. package/build/internal/cjs/src/events-v1-category-categories.http.d.ts +57 -0
  69. package/build/internal/cjs/src/events-v1-category-categories.http.js +851 -0
  70. package/build/internal/cjs/src/events-v1-category-categories.http.js.map +1 -0
  71. package/build/internal/cjs/src/events-v1-category-categories.meta.d.ts +37 -0
  72. package/build/internal/cjs/src/events-v1-category-categories.meta.js +275 -0
  73. package/build/internal/cjs/src/events-v1-category-categories.meta.js.map +1 -0
  74. package/build/internal/cjs/src/events-v1-category-categories.public.d.ts +141 -0
  75. package/build/internal/cjs/src/events-v1-category-categories.public.js +89 -0
  76. package/build/internal/cjs/src/events-v1-category-categories.public.js.map +1 -0
  77. package/build/internal/cjs/src/events-v1-category-categories.types.d.ts +430 -0
  78. package/build/internal/cjs/src/events-v1-category-categories.types.js +33 -0
  79. package/build/internal/cjs/src/events-v1-category-categories.types.js.map +1 -0
  80. package/build/internal/cjs/src/events-v1-category-categories.universal.d.ts +748 -0
  81. package/build/internal/cjs/src/events-v1-category-categories.universal.js +605 -0
  82. package/build/internal/cjs/src/events-v1-category-categories.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/events-v1-category-categories.context.d.ts +17 -0
  93. package/build/internal/es/src/events-v1-category-categories.context.js +17 -0
  94. package/build/internal/es/src/events-v1-category-categories.context.js.map +1 -0
  95. package/build/internal/es/src/events-v1-category-categories.http.d.ts +57 -0
  96. package/build/internal/es/src/events-v1-category-categories.http.js +835 -0
  97. package/build/internal/es/src/events-v1-category-categories.http.js.map +1 -0
  98. package/build/internal/es/src/events-v1-category-categories.meta.d.ts +37 -0
  99. package/build/internal/es/src/events-v1-category-categories.meta.js +236 -0
  100. package/build/internal/es/src/events-v1-category-categories.meta.js.map +1 -0
  101. package/build/internal/es/src/events-v1-category-categories.public.d.ts +141 -0
  102. package/build/internal/es/src/events-v1-category-categories.public.js +69 -0
  103. package/build/internal/es/src/events-v1-category-categories.public.js.map +1 -0
  104. package/build/internal/es/src/events-v1-category-categories.types.d.ts +430 -0
  105. package/build/internal/es/src/events-v1-category-categories.types.js +30 -0
  106. package/build/internal/es/src/events-v1-category-categories.types.js.map +1 -0
  107. package/build/internal/es/src/events-v1-category-categories.universal.d.ts +748 -0
  108. package/build/internal/es/src/events-v1-category-categories.universal.js +566 -0
  109. package/build/internal/es/src/events-v1-category-categories.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,835 @@
1
+ import { toURLSearchParams } from '@wix/sdk-runtime/rest-modules';
2
+ import { transformSDKTimestampToRESTTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
3
+ import { transformRESTTimestampToSDKTimestamp } from '@wix/sdk-runtime/transformations/timestamp';
4
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
5
+ import { resolveUrl } from '@wix/sdk-runtime/rest-modules';
6
+ function resolveWixEventsCategoriesCategoryManagementUrl(opts) {
7
+ const domainToMappings = {
8
+ 'events._base_domain_': [
9
+ {
10
+ srcPath: '',
11
+ destPath: '',
12
+ },
13
+ {
14
+ srcPath: '/_api/wix-events-web',
15
+ destPath: '/api',
16
+ },
17
+ ],
18
+ 'www.wixevents.com': [
19
+ {
20
+ srcPath: '/_api/wix-events-web',
21
+ destPath: '/api',
22
+ },
23
+ {
24
+ srcPath: '/api',
25
+ destPath: '/api',
26
+ },
27
+ {
28
+ srcPath: '/viewEvent',
29
+ destPath: '/viewEvent',
30
+ },
31
+ {
32
+ srcPath: '/viewRsvpDashboard',
33
+ destPath: '/viewRsvpDashboard',
34
+ },
35
+ {
36
+ srcPath: '/viewOrderDashboard',
37
+ destPath: '/viewOrderDashboard',
38
+ },
39
+ {
40
+ srcPath: '/viewSummarySubscription',
41
+ destPath: '/viewSummarySubscription',
42
+ },
43
+ {
44
+ srcPath: '/check-in',
45
+ destPath: '/check-in',
46
+ },
47
+ {
48
+ srcPath: '/v2',
49
+ destPath: '/v2',
50
+ },
51
+ {
52
+ srcPath: '/export',
53
+ destPath: '/export',
54
+ },
55
+ {
56
+ srcPath: '/tickets',
57
+ destPath: '/tickets',
58
+ },
59
+ {
60
+ srcPath: '/payment-redirect',
61
+ destPath: '/payment-redirect',
62
+ },
63
+ {
64
+ srcPath: '/admin',
65
+ destPath: '/admin',
66
+ },
67
+ {
68
+ srcPath: '/ticket',
69
+ destPath: '/ticket',
70
+ },
71
+ {
72
+ srcPath: '/media',
73
+ destPath: '/media',
74
+ },
75
+ ],
76
+ 'api._api_base_domain_': [
77
+ {
78
+ srcPath: '/wix-events-web',
79
+ destPath: '',
80
+ },
81
+ ],
82
+ 'events.wixapps.net': [
83
+ {
84
+ srcPath: '/_api/wix-events-web',
85
+ destPath: '/api',
86
+ },
87
+ {
88
+ srcPath: '/events',
89
+ destPath: '',
90
+ },
91
+ ],
92
+ 'www._base_domain_': [
93
+ {
94
+ srcPath: '/_api/wix-events-web',
95
+ destPath: '/api',
96
+ },
97
+ {
98
+ srcPath: '/_api/wix-events-web/v2',
99
+ destPath: '/v2',
100
+ },
101
+ {
102
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
103
+ destPath: '/v1/bulk-async/categories',
104
+ },
105
+ {
106
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
107
+ destPath: '/v1/bulk/categories',
108
+ },
109
+ {
110
+ srcPath: '/_api/wix-events-web/v1/categories',
111
+ destPath: '/v1/categories',
112
+ },
113
+ {
114
+ srcPath: '/_api/wix-events-web/v1/events',
115
+ destPath: '/v1/events',
116
+ },
117
+ {
118
+ srcPath: '/_api/wix-events-web/v1/orders',
119
+ destPath: '/v1/orders',
120
+ },
121
+ {
122
+ srcPath: '/_api/wix-events-web/v1/tickets',
123
+ destPath: '/v1/tickets',
124
+ },
125
+ ],
126
+ 'apps._base_domain_': [
127
+ {
128
+ srcPath: '/_api/wix-events-web',
129
+ destPath: '/api',
130
+ },
131
+ {
132
+ srcPath: '/events',
133
+ destPath: '',
134
+ },
135
+ ],
136
+ 'manage._base_domain_': [
137
+ {
138
+ srcPath: '/_api/wix-events-web',
139
+ destPath: '/api',
140
+ },
141
+ {
142
+ srcPath: '/_api/wix-events-web/v1/events',
143
+ destPath: '/v1/events',
144
+ },
145
+ {
146
+ srcPath: '/_api/wix-events-web/v1/categories',
147
+ destPath: '/v1/categories',
148
+ },
149
+ {
150
+ srcPath: '/_api/wix-events-web/v2/events',
151
+ destPath: '/v2/events',
152
+ },
153
+ {
154
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
155
+ destPath: '/v1/bulk/categories',
156
+ },
157
+ {
158
+ srcPath: '/_api/wix-events-web/v1/bulk/events',
159
+ destPath: '/v1/bulk/events',
160
+ },
161
+ {
162
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
163
+ destPath: '/v1/bulk-async/categories',
164
+ },
165
+ {
166
+ srcPath: '/_api/wix-events-web/v1/tickets',
167
+ destPath: '/v1/tickets',
168
+ },
169
+ {
170
+ srcPath: '/events/v1/events',
171
+ destPath: '/v1/events',
172
+ },
173
+ {
174
+ srcPath: '/events/v1/categories',
175
+ destPath: '/v1/categories',
176
+ },
177
+ {
178
+ srcPath: '/events/v1/bulk/categories',
179
+ destPath: '/v1/bulk/categories',
180
+ },
181
+ {
182
+ srcPath: '/events/v1/bulk-async/categories',
183
+ destPath: '/v1/bulk-async/categories',
184
+ },
185
+ {
186
+ srcPath: '/events/v1/bulk/events',
187
+ destPath: '/v1/bulk/events',
188
+ },
189
+ {
190
+ srcPath: '/events/v1/reports',
191
+ destPath: '/v1/reports',
192
+ },
193
+ {
194
+ srcPath: '/events/v1/tickets',
195
+ destPath: '/v1/tickets',
196
+ },
197
+ {
198
+ srcPath: '/events/v1/orders',
199
+ destPath: '/v1/orders',
200
+ },
201
+ {
202
+ srcPath: '/events/v1/web',
203
+ destPath: '/v1/web',
204
+ },
205
+ {
206
+ srcPath: '/events/v2/tickets',
207
+ destPath: '/v2/tickets',
208
+ },
209
+ {
210
+ srcPath: '/events/v2/events',
211
+ destPath: '/v2/events',
212
+ },
213
+ ],
214
+ 'www.wixapis.com': [
215
+ {
216
+ srcPath: '/events/v1/events',
217
+ destPath: '/v1/events',
218
+ },
219
+ {
220
+ srcPath: '/events/v1/tickets',
221
+ destPath: '/v1/tickets',
222
+ },
223
+ {
224
+ srcPath: '/events/v1/categories',
225
+ destPath: '/v1/categories',
226
+ },
227
+ {
228
+ srcPath: '/events/v1/orders',
229
+ destPath: '/v1/orders',
230
+ },
231
+ {
232
+ srcPath: '/events/v1/bulk/categories',
233
+ destPath: '/v1/bulk/categories',
234
+ },
235
+ {
236
+ srcPath: '/events/v2/events',
237
+ destPath: '/v2/events',
238
+ },
239
+ {
240
+ srcPath: '/events/v1/bulk-async/categories',
241
+ destPath: '/v1/bulk-async/categories',
242
+ },
243
+ ],
244
+ 'api._base_domain_': [
245
+ {
246
+ srcPath: '/events/v2',
247
+ destPath: '/v2',
248
+ },
249
+ {
250
+ srcPath: '/events/v1/bulk-async/categories',
251
+ destPath: '/v1/bulk-async/categories',
252
+ },
253
+ {
254
+ srcPath: '/events/v1/bulk/categories',
255
+ destPath: '/v1/bulk/categories',
256
+ },
257
+ {
258
+ srcPath: '/events/v1/categories',
259
+ destPath: '/v1/categories',
260
+ },
261
+ {
262
+ srcPath: '/events/v1/events',
263
+ destPath: '/v1/events',
264
+ },
265
+ {
266
+ srcPath: '/events/v1/orders',
267
+ destPath: '/v1/orders',
268
+ },
269
+ {
270
+ srcPath: '/events/v1/tickets',
271
+ destPath: '/v1/tickets',
272
+ },
273
+ ],
274
+ _: [
275
+ {
276
+ srcPath: '/_api/wix-events-web/v2',
277
+ destPath: '/v2',
278
+ },
279
+ {
280
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
281
+ destPath: '/v1/bulk-async/categories',
282
+ },
283
+ {
284
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
285
+ destPath: '/v1/bulk/categories',
286
+ },
287
+ {
288
+ srcPath: '/_api/wix-events-web/v1/categories',
289
+ destPath: '/v1/categories',
290
+ },
291
+ {
292
+ srcPath: '/_api/wix-events-web/v1/events',
293
+ destPath: '/v1/events',
294
+ },
295
+ {
296
+ srcPath: '/_api/wix-events-web/v1/orders',
297
+ destPath: '/v1/orders',
298
+ },
299
+ {
300
+ srcPath: '/_api/wix-events-web/v1/tickets',
301
+ destPath: '/v1/tickets',
302
+ },
303
+ ],
304
+ 'editor.wixapps.net': [
305
+ {
306
+ srcPath: '/events/v2/events',
307
+ destPath: '/v2/events',
308
+ },
309
+ {
310
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
311
+ destPath: '/v1/bulk-async/categories',
312
+ },
313
+ {
314
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
315
+ destPath: '/v1/bulk/categories',
316
+ },
317
+ {
318
+ srcPath: '/_api/wix-events-web/v1/categories',
319
+ destPath: '/v1/categories',
320
+ },
321
+ {
322
+ srcPath: '/_api/wix-events-web/v1/events',
323
+ destPath: '/v1/events',
324
+ },
325
+ {
326
+ srcPath: '/_api/wix-events-web/v1/orders',
327
+ destPath: '/v1/orders',
328
+ },
329
+ {
330
+ srcPath: '/_api/wix-events-web/v1/tickets',
331
+ destPath: '/v1/tickets',
332
+ },
333
+ ],
334
+ '*.dev.wix-code.com': [
335
+ {
336
+ srcPath: '/_api/wix-events-web/v2',
337
+ destPath: '/v2',
338
+ },
339
+ {
340
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
341
+ destPath: '/v1/bulk-async/categories',
342
+ },
343
+ {
344
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
345
+ destPath: '/v1/bulk/categories',
346
+ },
347
+ {
348
+ srcPath: '/_api/wix-events-web/v1/categories',
349
+ destPath: '/v1/categories',
350
+ },
351
+ {
352
+ srcPath: '/_api/wix-events-web/v1/events',
353
+ destPath: '/v1/events',
354
+ },
355
+ {
356
+ srcPath: '/_api/wix-events-web/v1/orders',
357
+ destPath: '/v1/orders',
358
+ },
359
+ {
360
+ srcPath: '/_api/wix-events-web/v1/tickets',
361
+ destPath: '/v1/tickets',
362
+ },
363
+ ],
364
+ '*.pub.wix-code.com': [
365
+ {
366
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
367
+ destPath: '/v1/bulk-async/categories',
368
+ },
369
+ {
370
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
371
+ destPath: '/v1/bulk/categories',
372
+ },
373
+ {
374
+ srcPath: '/_api/wix-events-web/v1/categories',
375
+ destPath: '/v1/categories',
376
+ },
377
+ {
378
+ srcPath: '/_api/wix-events-web/v1/events',
379
+ destPath: '/v1/events',
380
+ },
381
+ {
382
+ srcPath: '/_api/wix-events-web/v1/orders',
383
+ destPath: '/v1/orders',
384
+ },
385
+ {
386
+ srcPath: '/_api/wix-events-web/v1/tickets',
387
+ destPath: '/v1/tickets',
388
+ },
389
+ ],
390
+ 'editor-flow.wixapps.net': [
391
+ {
392
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
393
+ destPath: '/v1/bulk-async/categories',
394
+ },
395
+ {
396
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
397
+ destPath: '/v1/bulk/categories',
398
+ },
399
+ {
400
+ srcPath: '/_api/wix-events-web/v1/categories',
401
+ destPath: '/v1/categories',
402
+ },
403
+ {
404
+ srcPath: '/_api/wix-events-web/v1/events',
405
+ destPath: '/v1/events',
406
+ },
407
+ {
408
+ srcPath: '/_api/wix-events-web/v1/orders',
409
+ destPath: '/v1/orders',
410
+ },
411
+ {
412
+ srcPath: '/_api/wix-events-web/v1/tickets',
413
+ destPath: '/v1/tickets',
414
+ },
415
+ ],
416
+ 'editor._base_domain_': [
417
+ {
418
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
419
+ destPath: '/v1/bulk-async/categories',
420
+ },
421
+ {
422
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
423
+ destPath: '/v1/bulk/categories',
424
+ },
425
+ {
426
+ srcPath: '/_api/wix-events-web/v1/categories',
427
+ destPath: '/v1/categories',
428
+ },
429
+ {
430
+ srcPath: '/_api/wix-events-web/v1/events',
431
+ destPath: '/v1/events',
432
+ },
433
+ {
434
+ srcPath: '/_api/wix-events-web/v1/orders',
435
+ destPath: '/v1/orders',
436
+ },
437
+ {
438
+ srcPath: '/_api/wix-events-web/v1/tickets',
439
+ destPath: '/v1/tickets',
440
+ },
441
+ ],
442
+ 'blocks._base_domain_': [
443
+ {
444
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
445
+ destPath: '/v1/bulk-async/categories',
446
+ },
447
+ {
448
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
449
+ destPath: '/v1/bulk/categories',
450
+ },
451
+ {
452
+ srcPath: '/_api/wix-events-web/v1/categories',
453
+ destPath: '/v1/categories',
454
+ },
455
+ {
456
+ srcPath: '/_api/wix-events-web/v1/events',
457
+ destPath: '/v1/events',
458
+ },
459
+ {
460
+ srcPath: '/_api/wix-events-web/v1/orders',
461
+ destPath: '/v1/orders',
462
+ },
463
+ {
464
+ srcPath: '/_api/wix-events-web/v1/tickets',
465
+ destPath: '/v1/tickets',
466
+ },
467
+ ],
468
+ 'create.editorx': [
469
+ {
470
+ srcPath: '/_api/wix-events-web/v1/bulk-async/categories',
471
+ destPath: '/v1/bulk-async/categories',
472
+ },
473
+ {
474
+ srcPath: '/_api/wix-events-web/v1/bulk/categories',
475
+ destPath: '/v1/bulk/categories',
476
+ },
477
+ {
478
+ srcPath: '/_api/wix-events-web/v1/categories',
479
+ destPath: '/v1/categories',
480
+ },
481
+ {
482
+ srcPath: '/_api/wix-events-web/v1/events',
483
+ destPath: '/v1/events',
484
+ },
485
+ {
486
+ srcPath: '/_api/wix-events-web/v1/orders',
487
+ destPath: '/v1/orders',
488
+ },
489
+ {
490
+ srcPath: '/_api/wix-events-web/v1/tickets',
491
+ destPath: '/v1/tickets',
492
+ },
493
+ ],
494
+ };
495
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
496
+ }
497
+ const PACKAGE_NAME = '@wix/auto_sdk_events_categories';
498
+ /** Creates a category. */
499
+ export function createCategory(payload) {
500
+ function __createCategory({ host }) {
501
+ const serializedData = transformPaths(payload, [
502
+ {
503
+ transformFn: transformSDKTimestampToRESTTimestamp,
504
+ paths: [{ path: 'category.createdDate' }],
505
+ },
506
+ ]);
507
+ const metadata = {
508
+ entityFqdn: 'wix.events.v1.category',
509
+ method: 'POST',
510
+ methodFqn: 'wix.events.categories.CategoryManagement.CreateCategory',
511
+ packageName: PACKAGE_NAME,
512
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
513
+ protoPath: '/v1/categories',
514
+ data: serializedData,
515
+ host,
516
+ }),
517
+ data: serializedData,
518
+ transformResponse: (payload) => transformPaths(payload, [
519
+ {
520
+ transformFn: transformRESTTimestampToSDKTimestamp,
521
+ paths: [{ path: 'category.createdDate' }],
522
+ },
523
+ ]),
524
+ };
525
+ return metadata;
526
+ }
527
+ return __createCategory;
528
+ }
529
+ /** Creates multipe categories at once. */
530
+ export function bulkCreateCategory(payload) {
531
+ function __bulkCreateCategory({ host }) {
532
+ const serializedData = transformPaths(payload, [
533
+ {
534
+ transformFn: transformSDKTimestampToRESTTimestamp,
535
+ paths: [{ path: 'categories.createdDate' }],
536
+ },
537
+ ]);
538
+ const metadata = {
539
+ entityFqdn: 'wix.events.v1.category',
540
+ method: 'POST',
541
+ methodFqn: 'wix.events.categories.CategoryManagement.BulkCreateCategory',
542
+ packageName: PACKAGE_NAME,
543
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
544
+ protoPath: '/v1/bulk/categories/create',
545
+ data: serializedData,
546
+ host,
547
+ }),
548
+ data: serializedData,
549
+ transformResponse: (payload) => transformPaths(payload, [
550
+ {
551
+ transformFn: transformRESTTimestampToSDKTimestamp,
552
+ paths: [{ path: 'results.item.createdDate' }],
553
+ },
554
+ ]),
555
+ };
556
+ return metadata;
557
+ }
558
+ return __bulkCreateCategory;
559
+ }
560
+ /** Updates an existing category. */
561
+ export function updateCategory(payload) {
562
+ function __updateCategory({ host }) {
563
+ const serializedData = transformPaths(payload, [
564
+ {
565
+ transformFn: transformSDKTimestampToRESTTimestamp,
566
+ paths: [{ path: 'category.createdDate' }],
567
+ },
568
+ ]);
569
+ const metadata = {
570
+ entityFqdn: 'wix.events.v1.category',
571
+ method: 'PATCH',
572
+ methodFqn: 'wix.events.categories.CategoryManagement.UpdateCategory',
573
+ packageName: PACKAGE_NAME,
574
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
575
+ protoPath: '/v1/categories/{category.id}',
576
+ data: serializedData,
577
+ host,
578
+ }),
579
+ data: serializedData,
580
+ transformResponse: (payload) => transformPaths(payload, [
581
+ {
582
+ transformFn: transformRESTTimestampToSDKTimestamp,
583
+ paths: [{ path: 'category.createdDate' }],
584
+ },
585
+ ]),
586
+ };
587
+ return metadata;
588
+ }
589
+ return __updateCategory;
590
+ }
591
+ /** Deletes a category. */
592
+ export function deleteCategory(payload) {
593
+ function __deleteCategory({ host }) {
594
+ const metadata = {
595
+ entityFqdn: 'wix.events.v1.category',
596
+ method: 'DELETE',
597
+ methodFqn: 'wix.events.categories.CategoryManagement.DeleteCategory',
598
+ packageName: PACKAGE_NAME,
599
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
600
+ protoPath: '/v1/categories/{categoryId}',
601
+ data: payload,
602
+ host,
603
+ }),
604
+ params: toURLSearchParams(payload),
605
+ };
606
+ return metadata;
607
+ }
608
+ return __deleteCategory;
609
+ }
610
+ /**
611
+ * Creates a query to retrieve a list of categories.
612
+ *
613
+ *
614
+ * The `queryCategories()` function builds a query to retrieve a list of categories and returns a `CategoriesQueryBuilder` object.
615
+ *
616
+ * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/find) function.
617
+ *
618
+ * You can refine the query by chaining `CategoriesQueryBuilder` functions onto the query. `CategoriesQueryBuilder` functions enable you to sort, filter, and control the results `queryCategories()` returns.
619
+ *
620
+ * `queryCategories()` runs with these `CategoriesQueryBuilder` defaults, which you can override:
621
+ *
622
+ * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/categories/categoriesquerybuilder/limit)
623
+ */
624
+ export function queryCategories(payload) {
625
+ function __queryCategories({ host }) {
626
+ const metadata = {
627
+ entityFqdn: 'wix.events.v1.category',
628
+ method: 'POST',
629
+ methodFqn: 'wix.events.categories.CategoryManagement.QueryCategories',
630
+ packageName: PACKAGE_NAME,
631
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
632
+ protoPath: '/v1/categories/query',
633
+ data: payload,
634
+ host,
635
+ }),
636
+ data: payload,
637
+ transformResponse: (payload) => transformPaths(payload, [
638
+ {
639
+ transformFn: transformRESTTimestampToSDKTimestamp,
640
+ paths: [{ path: 'categories.createdDate' }],
641
+ },
642
+ ]),
643
+ };
644
+ return metadata;
645
+ }
646
+ return __queryCategories;
647
+ }
648
+ /** Assigns events to a single category. */
649
+ export function assignEvents(payload) {
650
+ function __assignEvents({ host }) {
651
+ const metadata = {
652
+ entityFqdn: 'wix.events.v1.category',
653
+ method: 'POST',
654
+ methodFqn: 'wix.events.categories.CategoryManagement.AssignEvents',
655
+ packageName: PACKAGE_NAME,
656
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
657
+ protoPath: '/v1/categories/{categoryId}/events',
658
+ data: payload,
659
+ host,
660
+ }),
661
+ data: payload,
662
+ };
663
+ return metadata;
664
+ }
665
+ return __assignEvents;
666
+ }
667
+ /** Assigns events to multiple categories at once. */
668
+ export function bulkAssignEvents(payload) {
669
+ function __bulkAssignEvents({ host }) {
670
+ const metadata = {
671
+ entityFqdn: 'wix.events.v1.category',
672
+ method: 'POST',
673
+ methodFqn: 'wix.events.categories.CategoryManagement.BulkAssignEvents',
674
+ packageName: PACKAGE_NAME,
675
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
676
+ protoPath: '/v1/bulk/categories/events',
677
+ data: payload,
678
+ host,
679
+ }),
680
+ data: payload,
681
+ transformResponse: (payload) => transformPaths(payload, [
682
+ {
683
+ transformFn: transformRESTTimestampToSDKTimestamp,
684
+ paths: [{ path: 'results.item.createdDate' }],
685
+ },
686
+ ]),
687
+ };
688
+ return metadata;
689
+ }
690
+ return __bulkAssignEvents;
691
+ }
692
+ /**
693
+ * Assigns events that match given filter criteria to multiple categories.
694
+ *
695
+ * Unlike the [`bulkAssignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkassignevents) function, this function can handle numerous requests and is less prone to failures.
696
+ *
697
+ * However, the events will not be instantly assigned to the categories (as with `bulkAssignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.
698
+ */
699
+ export function bulkAssignEventsAsync(payload) {
700
+ function __bulkAssignEventsAsync({ host }) {
701
+ const metadata = {
702
+ entityFqdn: 'wix.events.v1.category',
703
+ method: 'POST',
704
+ methodFqn: 'wix.events.categories.CategoryManagement.BulkAssignEventsAsync',
705
+ packageName: PACKAGE_NAME,
706
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
707
+ protoPath: '/v1/bulk-async/categories/assign-events-by-filter',
708
+ data: payload,
709
+ host,
710
+ }),
711
+ data: payload,
712
+ };
713
+ return metadata;
714
+ }
715
+ return __bulkAssignEventsAsync;
716
+ }
717
+ /** Unassigns events from a category. */
718
+ export function unassignEvents(payload) {
719
+ function __unassignEvents({ host }) {
720
+ const metadata = {
721
+ entityFqdn: 'wix.events.v1.category',
722
+ method: 'DELETE',
723
+ methodFqn: 'wix.events.categories.CategoryManagement.UnassignEvents',
724
+ packageName: PACKAGE_NAME,
725
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
726
+ protoPath: '/v1/categories/{categoryId}/events',
727
+ data: payload,
728
+ host,
729
+ }),
730
+ params: toURLSearchParams(payload),
731
+ };
732
+ return metadata;
733
+ }
734
+ return __unassignEvents;
735
+ }
736
+ /** Unassigns events from multiple categories at once. */
737
+ export function bulkUnassignEvents(payload) {
738
+ function __bulkUnassignEvents({ host }) {
739
+ const metadata = {
740
+ entityFqdn: 'wix.events.v1.category',
741
+ method: 'DELETE',
742
+ methodFqn: 'wix.events.categories.CategoryManagement.BulkUnassignEvents',
743
+ packageName: PACKAGE_NAME,
744
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
745
+ protoPath: '/v1/bulk/categories/events',
746
+ data: payload,
747
+ host,
748
+ }),
749
+ params: toURLSearchParams(payload),
750
+ transformResponse: (payload) => transformPaths(payload, [
751
+ {
752
+ transformFn: transformRESTTimestampToSDKTimestamp,
753
+ paths: [{ path: 'results.item.createdDate' }],
754
+ },
755
+ ]),
756
+ };
757
+ return metadata;
758
+ }
759
+ return __bulkUnassignEvents;
760
+ }
761
+ /**
762
+ * Removes events that match given filter criteria from multiple categories.
763
+ *
764
+ * Unlike the [`bulkUnassignEvents()`](https://www.wix.com/velo/reference/wix-events-v2/categories/bulkunassignevents) function, this function can handle numerous requests and is less prone to failures.
765
+ *
766
+ * However, the events will not be instantly removed from the categories (as with `bulkUnassignEvents()`), but rather after some time. In this case, if try to [`listEventCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/listeventcategories) or [`queryCategories`](https://www.wix.com/velo/reference/wix-events-v2/categories/querycategories), you might not get the correct response.
767
+ */
768
+ export function bulkUnassignEventsAsync(payload) {
769
+ function __bulkUnassignEventsAsync({ host }) {
770
+ const metadata = {
771
+ entityFqdn: 'wix.events.v1.category',
772
+ method: 'POST',
773
+ methodFqn: 'wix.events.categories.CategoryManagement.BulkUnassignEventsAsync',
774
+ packageName: PACKAGE_NAME,
775
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
776
+ protoPath: '/v1/bulk-async/categories/unassign-events-by-filter',
777
+ data: payload,
778
+ host,
779
+ }),
780
+ data: payload,
781
+ };
782
+ return metadata;
783
+ }
784
+ return __bulkUnassignEventsAsync;
785
+ }
786
+ /** Retrieves a list of categories that are not in the `HIDDEN` state. */
787
+ export function listEventCategories(payload) {
788
+ function __listEventCategories({ host }) {
789
+ const metadata = {
790
+ entityFqdn: 'wix.events.v1.category',
791
+ method: 'GET',
792
+ methodFqn: 'wix.events.categories.CategoryManagement.ListEventCategories',
793
+ packageName: PACKAGE_NAME,
794
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
795
+ protoPath: '/v1/categories/{eventId}',
796
+ data: payload,
797
+ host,
798
+ }),
799
+ params: toURLSearchParams(payload),
800
+ transformResponse: (payload) => transformPaths(payload, [
801
+ {
802
+ transformFn: transformRESTTimestampToSDKTimestamp,
803
+ paths: [{ path: 'categories.createdDate' }],
804
+ },
805
+ ]),
806
+ };
807
+ return metadata;
808
+ }
809
+ return __listEventCategories;
810
+ }
811
+ /**
812
+ * Change the order of events that are assigned to the same category on the Events Widget.
813
+ *
814
+ *
815
+ * For more information see [this article](https://support.wix.com/en/article/creating-and-displaying-event-categories)
816
+ */
817
+ export function reorderCategoryEvents(payload) {
818
+ function __reorderCategoryEvents({ host }) {
819
+ const metadata = {
820
+ entityFqdn: 'wix.events.v1.category',
821
+ method: 'POST',
822
+ methodFqn: 'wix.events.categories.CategoryManagement.ReorderCategoryEvents',
823
+ packageName: PACKAGE_NAME,
824
+ url: resolveWixEventsCategoriesCategoryManagementUrl({
825
+ protoPath: '/v1/categories/{categoryId}/reorder',
826
+ data: payload,
827
+ host,
828
+ }),
829
+ data: payload,
830
+ };
831
+ return metadata;
832
+ }
833
+ return __reorderCategoryEvents;
834
+ }
835
+ //# sourceMappingURL=events-v1-category-categories.http.js.map