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