@wix/auto_sdk_restaurants_menus 1.0.80 → 1.0.82

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 (38) hide show
  1. package/build/cjs/index.d.ts +10 -10
  2. package/build/cjs/index.js.map +1 -1
  3. package/build/cjs/index.typings.d.ts +11 -11
  4. package/build/cjs/index.typings.js.map +1 -1
  5. package/build/es/index.d.mts +10 -10
  6. package/build/es/index.mjs.map +1 -1
  7. package/build/es/index.typings.d.mts +11 -11
  8. package/build/es/index.typings.mjs.map +1 -1
  9. package/build/internal/cjs/index.d.ts +10 -10
  10. package/build/internal/cjs/index.typings.d.ts +11 -11
  11. package/build/internal/es/index.d.mts +10 -10
  12. package/build/internal/es/index.typings.d.mts +11 -11
  13. package/package.json +4 -11
  14. package/build/cjs/schemas.d.ts +0 -600
  15. package/build/cjs/schemas.js +0 -1149
  16. package/build/cjs/schemas.js.map +0 -1
  17. package/build/es/schemas.d.mts +0 -600
  18. package/build/es/schemas.mjs +0 -1089
  19. package/build/es/schemas.mjs.map +0 -1
  20. package/build/internal/cjs/index.js +0 -1319
  21. package/build/internal/cjs/index.js.map +0 -1
  22. package/build/internal/cjs/index.typings.js +0 -1126
  23. package/build/internal/cjs/index.typings.js.map +0 -1
  24. package/build/internal/cjs/meta.js +0 -970
  25. package/build/internal/cjs/meta.js.map +0 -1
  26. package/build/internal/cjs/schemas.d.ts +0 -600
  27. package/build/internal/cjs/schemas.js +0 -1149
  28. package/build/internal/cjs/schemas.js.map +0 -1
  29. package/build/internal/es/index.mjs +0 -1278
  30. package/build/internal/es/index.mjs.map +0 -1
  31. package/build/internal/es/index.typings.mjs +0 -1087
  32. package/build/internal/es/index.typings.mjs.map +0 -1
  33. package/build/internal/es/meta.mjs +0 -930
  34. package/build/internal/es/meta.mjs.map +0 -1
  35. package/build/internal/es/schemas.d.mts +0 -600
  36. package/build/internal/es/schemas.mjs +0 -1089
  37. package/build/internal/es/schemas.mjs.map +0 -1
  38. package/schemas/package.json +0 -3
@@ -1,930 +0,0 @@
1
- // src/restaurants-menus-v1-menu-menus.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
7
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
8
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
9
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaurantsMenusSiteUrlUrl(opts) {
10
- const domainToMappings = {
11
- "manage._base_domain_": [
12
- {
13
- srcPath: "/_api/restaurants-menus-menu",
14
- destPath: ""
15
- }
16
- ],
17
- _: [
18
- {
19
- srcPath: "/_api/restaurants-menus-menu",
20
- destPath: ""
21
- },
22
- {
23
- srcPath: "/restaurants/menus/v1/menus",
24
- destPath: "/v1/menus"
25
- },
26
- {
27
- srcPath: "/restaurants/menus/v1/bulk/menus",
28
- destPath: "/v1/bulk/menus"
29
- }
30
- ],
31
- "editor._base_domain_": [
32
- {
33
- srcPath: "/_api/restaurants-menus-menu",
34
- destPath: ""
35
- }
36
- ],
37
- "blocks._base_domain_": [
38
- {
39
- srcPath: "/_api/restaurants-menus-menu",
40
- destPath: ""
41
- }
42
- ],
43
- "create.editorx": [
44
- {
45
- srcPath: "/_api/restaurants-menus-menu",
46
- destPath: ""
47
- }
48
- ],
49
- "editor.wixapps.net": [
50
- {
51
- srcPath: "/_api/restaurants-menus-menu",
52
- destPath: ""
53
- }
54
- ],
55
- "*.dev.wix-code.com": [
56
- {
57
- srcPath: "/_api/restaurants-menus-menu",
58
- destPath: ""
59
- },
60
- {
61
- srcPath: "/restaurants/menus/v1/menus",
62
- destPath: "/v1/menus"
63
- },
64
- {
65
- srcPath: "/restaurants/menus/v1/bulk/menus",
66
- destPath: "/v1/bulk/menus"
67
- }
68
- ],
69
- "www._base_domain_": [
70
- {
71
- srcPath: "/_api/restaurants-menus-menu",
72
- destPath: ""
73
- }
74
- ],
75
- "api._api_base_domain_": [
76
- {
77
- srcPath: "/restaurants-menus-menu",
78
- destPath: ""
79
- }
80
- ],
81
- "www.wixapis.com": [
82
- {
83
- srcPath: "/restaurants/menus-menu",
84
- destPath: ""
85
- },
86
- {
87
- srcPath: "/restaurants/menus/v1/bulk/menus",
88
- destPath: "/v1/bulk/menus"
89
- },
90
- {
91
- srcPath: "/restaurants/menus/v1/menus",
92
- destPath: "/v1/menus"
93
- }
94
- ],
95
- "apps._base_domain_": [
96
- {
97
- srcPath: "/_api/restaurants-menus-menu",
98
- destPath: ""
99
- }
100
- ]
101
- };
102
- return resolveUrl(Object.assign(opts, { domainToMappings }));
103
- }
104
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
105
- const domainToMappings = {
106
- "manage._base_domain_": [
107
- {
108
- srcPath: "/_api/restaurants-menus-menu",
109
- destPath: ""
110
- }
111
- ],
112
- _: [
113
- {
114
- srcPath: "/_api/restaurants-menus-menu",
115
- destPath: ""
116
- },
117
- {
118
- srcPath: "/restaurants/menus/v1/menus",
119
- destPath: "/v1/menus"
120
- },
121
- {
122
- srcPath: "/restaurants/menus/v1/bulk/menus",
123
- destPath: "/v1/bulk/menus"
124
- }
125
- ],
126
- "editor._base_domain_": [
127
- {
128
- srcPath: "/_api/restaurants-menus-menu",
129
- destPath: ""
130
- }
131
- ],
132
- "blocks._base_domain_": [
133
- {
134
- srcPath: "/_api/restaurants-menus-menu",
135
- destPath: ""
136
- }
137
- ],
138
- "create.editorx": [
139
- {
140
- srcPath: "/_api/restaurants-menus-menu",
141
- destPath: ""
142
- }
143
- ],
144
- "editor.wixapps.net": [
145
- {
146
- srcPath: "/_api/restaurants-menus-menu",
147
- destPath: ""
148
- }
149
- ],
150
- "*.dev.wix-code.com": [
151
- {
152
- srcPath: "/_api/restaurants-menus-menu",
153
- destPath: ""
154
- },
155
- {
156
- srcPath: "/restaurants/menus/v1/menus",
157
- destPath: "/v1/menus"
158
- },
159
- {
160
- srcPath: "/restaurants/menus/v1/bulk/menus",
161
- destPath: "/v1/bulk/menus"
162
- }
163
- ],
164
- "www._base_domain_": [
165
- {
166
- srcPath: "/_api/restaurants-menus-menu",
167
- destPath: ""
168
- }
169
- ],
170
- "api._api_base_domain_": [
171
- {
172
- srcPath: "/restaurants-menus-menu",
173
- destPath: ""
174
- }
175
- ],
176
- "www.wixapis.com": [
177
- {
178
- srcPath: "/restaurants/menus-menu",
179
- destPath: ""
180
- },
181
- {
182
- srcPath: "/restaurants/menus/v1/bulk/menus",
183
- destPath: "/v1/bulk/menus"
184
- },
185
- {
186
- srcPath: "/restaurants/menus/v1/menus",
187
- destPath: "/v1/menus"
188
- }
189
- ],
190
- "apps._base_domain_": [
191
- {
192
- srcPath: "/_api/restaurants-menus-menu",
193
- destPath: ""
194
- }
195
- ]
196
- };
197
- return resolveUrl(Object.assign(opts, { domainToMappings }));
198
- }
199
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
200
- const domainToMappings = {
201
- "manage._base_domain_": [
202
- {
203
- srcPath: "/_api/restaurants-menus-menu",
204
- destPath: ""
205
- }
206
- ],
207
- _: [
208
- {
209
- srcPath: "/_api/restaurants-menus-menu",
210
- destPath: ""
211
- },
212
- {
213
- srcPath: "/restaurants/menus/v1/menus",
214
- destPath: "/v1/menus"
215
- },
216
- {
217
- srcPath: "/restaurants/menus/v1/bulk/menus",
218
- destPath: "/v1/bulk/menus"
219
- }
220
- ],
221
- "editor._base_domain_": [
222
- {
223
- srcPath: "/_api/restaurants-menus-menu",
224
- destPath: ""
225
- }
226
- ],
227
- "blocks._base_domain_": [
228
- {
229
- srcPath: "/_api/restaurants-menus-menu",
230
- destPath: ""
231
- }
232
- ],
233
- "create.editorx": [
234
- {
235
- srcPath: "/_api/restaurants-menus-menu",
236
- destPath: ""
237
- }
238
- ],
239
- "editor.wixapps.net": [
240
- {
241
- srcPath: "/_api/restaurants-menus-menu",
242
- destPath: ""
243
- }
244
- ],
245
- "*.dev.wix-code.com": [
246
- {
247
- srcPath: "/_api/restaurants-menus-menu",
248
- destPath: ""
249
- },
250
- {
251
- srcPath: "/restaurants/menus/v1/menus",
252
- destPath: "/v1/menus"
253
- },
254
- {
255
- srcPath: "/restaurants/menus/v1/bulk/menus",
256
- destPath: "/v1/bulk/menus"
257
- }
258
- ],
259
- "www._base_domain_": [
260
- {
261
- srcPath: "/_api/restaurants-menus-menu",
262
- destPath: ""
263
- }
264
- ],
265
- "api._api_base_domain_": [
266
- {
267
- srcPath: "/restaurants-menus-menu",
268
- destPath: ""
269
- }
270
- ],
271
- "www.wixapis.com": [
272
- {
273
- srcPath: "/restaurants/menus-menu",
274
- destPath: ""
275
- },
276
- {
277
- srcPath: "/restaurants/menus/v1/bulk/menus",
278
- destPath: "/v1/bulk/menus"
279
- },
280
- {
281
- srcPath: "/restaurants/menus/v1/menus",
282
- destPath: "/v1/menus"
283
- }
284
- ],
285
- "apps._base_domain_": [
286
- {
287
- srcPath: "/_api/restaurants-menus-menu",
288
- destPath: ""
289
- }
290
- ]
291
- };
292
- return resolveUrl(Object.assign(opts, { domainToMappings }));
293
- }
294
- var PACKAGE_NAME = "@wix/auto_sdk_restaurants_menus";
295
- function createMenu(payload) {
296
- function __createMenu({ host }) {
297
- const serializedData = transformPaths(payload, [
298
- {
299
- transformFn: transformSDKTimestampToRESTTimestamp,
300
- paths: [
301
- { path: "menu.createdDate" },
302
- { path: "menu.updatedDate" },
303
- { path: "menu.externalReferenceInfo.lastSyncDate" }
304
- ]
305
- }
306
- ]);
307
- const metadata = {
308
- entityFqdn: "wix.restaurants.menus.v1.menu",
309
- method: "POST",
310
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.CreateMenu",
311
- packageName: PACKAGE_NAME,
312
- migrationOptions: {
313
- optInTransformResponse: true
314
- },
315
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
316
- protoPath: "/v1/menus",
317
- data: serializedData,
318
- host
319
- }),
320
- data: serializedData,
321
- transformResponse: (payload2) => transformPaths(payload2, [
322
- {
323
- transformFn: transformRESTTimestampToSDKTimestamp,
324
- paths: [
325
- { path: "menu.createdDate" },
326
- { path: "menu.updatedDate" },
327
- { path: "menu.externalReferenceInfo.lastSyncDate" }
328
- ]
329
- }
330
- ])
331
- };
332
- return metadata;
333
- }
334
- return __createMenu;
335
- }
336
- function bulkCreateMenus(payload) {
337
- function __bulkCreateMenus({ host }) {
338
- const serializedData = transformPaths(payload, [
339
- {
340
- transformFn: transformSDKTimestampToRESTTimestamp,
341
- paths: [
342
- { path: "menus.createdDate" },
343
- { path: "menus.updatedDate" },
344
- { path: "menus.externalReferenceInfo.lastSyncDate" }
345
- ]
346
- }
347
- ]);
348
- const metadata = {
349
- entityFqdn: "wix.restaurants.menus.v1.menu",
350
- method: "POST",
351
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.BulkCreateMenus",
352
- packageName: PACKAGE_NAME,
353
- migrationOptions: {
354
- optInTransformResponse: true
355
- },
356
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
357
- protoPath: "/v1/bulk/menus/create",
358
- data: serializedData,
359
- host
360
- }),
361
- data: serializedData,
362
- transformResponse: (payload2) => transformPaths(payload2, [
363
- {
364
- transformFn: transformRESTTimestampToSDKTimestamp,
365
- paths: [
366
- { path: "results.menu.createdDate" },
367
- { path: "results.menu.updatedDate" },
368
- { path: "results.menu.externalReferenceInfo.lastSyncDate" }
369
- ]
370
- }
371
- ])
372
- };
373
- return metadata;
374
- }
375
- return __bulkCreateMenus;
376
- }
377
- function getMenu(payload) {
378
- function __getMenu({ host }) {
379
- const metadata = {
380
- entityFqdn: "wix.restaurants.menus.v1.menu",
381
- method: "GET",
382
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.GetMenu",
383
- packageName: PACKAGE_NAME,
384
- migrationOptions: {
385
- optInTransformResponse: true
386
- },
387
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
388
- protoPath: "/v1/menus/{menuId}",
389
- data: payload,
390
- host
391
- }),
392
- params: toURLSearchParams(payload),
393
- transformResponse: (payload2) => transformPaths(payload2, [
394
- {
395
- transformFn: transformRESTTimestampToSDKTimestamp,
396
- paths: [
397
- { path: "menu.createdDate" },
398
- { path: "menu.updatedDate" },
399
- { path: "menu.externalReferenceInfo.lastSyncDate" }
400
- ]
401
- }
402
- ])
403
- };
404
- return metadata;
405
- }
406
- return __getMenu;
407
- }
408
- function listMenus(payload) {
409
- function __listMenus({ host }) {
410
- const metadata = {
411
- entityFqdn: "wix.restaurants.menus.v1.menu",
412
- method: "GET",
413
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.ListMenus",
414
- packageName: PACKAGE_NAME,
415
- migrationOptions: {
416
- optInTransformResponse: true
417
- },
418
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
419
- protoPath: "/v1/menus",
420
- data: payload,
421
- host
422
- }),
423
- params: toURLSearchParams(payload),
424
- transformResponse: (payload2) => transformPaths(payload2, [
425
- {
426
- transformFn: transformRESTTimestampToSDKTimestamp,
427
- paths: [
428
- { path: "menus.createdDate" },
429
- { path: "menus.updatedDate" },
430
- { path: "menus.externalReferenceInfo.lastSyncDate" }
431
- ]
432
- }
433
- ])
434
- };
435
- return metadata;
436
- }
437
- return __listMenus;
438
- }
439
- function queryMenus(payload) {
440
- function __queryMenus({ host }) {
441
- const serializedData = transformPaths(payload, [
442
- {
443
- transformFn: transformSDKFloatToRESTFloat,
444
- paths: [
445
- { path: "query.sort.origin.latitude" },
446
- { path: "query.sort.origin.longitude" }
447
- ]
448
- }
449
- ]);
450
- const metadata = {
451
- entityFqdn: "wix.restaurants.menus.v1.menu",
452
- method: "POST",
453
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.QueryMenus",
454
- packageName: PACKAGE_NAME,
455
- migrationOptions: {
456
- optInTransformResponse: true
457
- },
458
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
459
- protoPath: "/v1/menus/query",
460
- data: serializedData,
461
- host
462
- }),
463
- data: serializedData,
464
- transformResponse: (payload2) => transformPaths(payload2, [
465
- {
466
- transformFn: transformRESTTimestampToSDKTimestamp,
467
- paths: [
468
- { path: "menus.createdDate" },
469
- { path: "menus.updatedDate" },
470
- { path: "menus.externalReferenceInfo.lastSyncDate" }
471
- ]
472
- }
473
- ])
474
- };
475
- return metadata;
476
- }
477
- return __queryMenus;
478
- }
479
- function updateMenu(payload) {
480
- function __updateMenu({ host }) {
481
- const serializedData = transformPaths(payload, [
482
- {
483
- transformFn: transformSDKFieldMaskToRESTFieldMask,
484
- paths: [{ path: "mask" }]
485
- },
486
- {
487
- transformFn: transformSDKTimestampToRESTTimestamp,
488
- paths: [
489
- { path: "menu.createdDate" },
490
- { path: "menu.updatedDate" },
491
- { path: "menu.externalReferenceInfo.lastSyncDate" }
492
- ]
493
- }
494
- ]);
495
- const metadata = {
496
- entityFqdn: "wix.restaurants.menus.v1.menu",
497
- method: "PATCH",
498
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.UpdateMenu",
499
- packageName: PACKAGE_NAME,
500
- migrationOptions: {
501
- optInTransformResponse: true
502
- },
503
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
504
- protoPath: "/v1/menus/{menu.id}",
505
- data: serializedData,
506
- host
507
- }),
508
- data: serializedData,
509
- transformResponse: (payload2) => transformPaths(payload2, [
510
- {
511
- transformFn: transformRESTTimestampToSDKTimestamp,
512
- paths: [
513
- { path: "menu.createdDate" },
514
- { path: "menu.updatedDate" },
515
- { path: "menu.externalReferenceInfo.lastSyncDate" }
516
- ]
517
- }
518
- ])
519
- };
520
- return metadata;
521
- }
522
- return __updateMenu;
523
- }
524
- function bulkUpdateMenu(payload) {
525
- function __bulkUpdateMenu({ host }) {
526
- const serializedData = transformPaths(payload, [
527
- {
528
- transformFn: transformSDKFieldMaskToRESTFieldMask,
529
- paths: [{ path: "menus.mask" }]
530
- },
531
- {
532
- transformFn: transformSDKTimestampToRESTTimestamp,
533
- paths: [
534
- { path: "menus.menu.createdDate" },
535
- { path: "menus.menu.updatedDate" },
536
- { path: "menus.menu.externalReferenceInfo.lastSyncDate" }
537
- ]
538
- }
539
- ]);
540
- const metadata = {
541
- entityFqdn: "wix.restaurants.menus.v1.menu",
542
- method: "POST",
543
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.BulkUpdateMenu",
544
- packageName: PACKAGE_NAME,
545
- migrationOptions: {
546
- optInTransformResponse: true
547
- },
548
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
549
- protoPath: "/v1/bulk/menus/update",
550
- data: serializedData,
551
- host
552
- }),
553
- data: serializedData,
554
- transformResponse: (payload2) => transformPaths(payload2, [
555
- {
556
- transformFn: transformRESTTimestampToSDKTimestamp,
557
- paths: [
558
- { path: "results.menu.createdDate" },
559
- { path: "results.menu.updatedDate" },
560
- { path: "results.menu.externalReferenceInfo.lastSyncDate" }
561
- ]
562
- }
563
- ])
564
- };
565
- return metadata;
566
- }
567
- return __bulkUpdateMenu;
568
- }
569
- function updateExtendedFields(payload) {
570
- function __updateExtendedFields({ host }) {
571
- const metadata = {
572
- entityFqdn: "wix.restaurants.menus.v1.menu",
573
- method: "POST",
574
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.UpdateExtendedFields",
575
- packageName: PACKAGE_NAME,
576
- migrationOptions: {
577
- optInTransformResponse: true
578
- },
579
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
580
- protoPath: "/v1/menus/{id}/updateExtendedFields",
581
- data: payload,
582
- host
583
- }),
584
- data: payload
585
- };
586
- return metadata;
587
- }
588
- return __updateExtendedFields;
589
- }
590
- function deleteMenu(payload) {
591
- function __deleteMenu({ host }) {
592
- const metadata = {
593
- entityFqdn: "wix.restaurants.menus.v1.menu",
594
- method: "DELETE",
595
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.RestaurantsMenusMenu.DeleteMenu",
596
- packageName: PACKAGE_NAME,
597
- migrationOptions: {
598
- optInTransformResponse: true
599
- },
600
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
601
- protoPath: "/v1/menus/{menuId}",
602
- data: payload,
603
- host
604
- }),
605
- params: toURLSearchParams(payload)
606
- };
607
- return metadata;
608
- }
609
- return __deleteMenu;
610
- }
611
- function duplicateMenu(payload) {
612
- function __duplicateMenu({ host }) {
613
- const metadata = {
614
- entityFqdn: "wix.restaurants.menus.v1.menu",
615
- method: "POST",
616
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
617
- packageName: PACKAGE_NAME,
618
- migrationOptions: {
619
- optInTransformResponse: true
620
- },
621
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
622
- { protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
623
- ),
624
- data: payload
625
- };
626
- return metadata;
627
- }
628
- return __duplicateMenu;
629
- }
630
- function getMenuSiteUrl(payload) {
631
- function __getMenuSiteUrl({ host }) {
632
- const metadata = {
633
- entityFqdn: "wix.restaurants.menus.v1.menu",
634
- method: "GET",
635
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_menus_site_url.RestaurantsMenusSiteUrl.GetMenuSiteUrl",
636
- packageName: PACKAGE_NAME,
637
- migrationOptions: {
638
- optInTransformResponse: true
639
- },
640
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaurantsMenusSiteUrlUrl(
641
- { protoPath: "/v1/menus-site-url/menus/{id}", data: payload, host }
642
- ),
643
- params: toURLSearchParams(payload)
644
- };
645
- return metadata;
646
- }
647
- return __getMenuSiteUrl;
648
- }
649
- function queryMenusSiteUrl(payload) {
650
- function __queryMenusSiteUrl({ host }) {
651
- const serializedData = transformPaths(payload, [
652
- {
653
- transformFn: transformSDKFloatToRESTFloat,
654
- paths: [
655
- { path: "query.sort.origin.latitude" },
656
- { path: "query.sort.origin.longitude" }
657
- ]
658
- }
659
- ]);
660
- const metadata = {
661
- entityFqdn: "wix.restaurants.menus.v1.menu",
662
- method: "POST",
663
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_menus_site_url.RestaurantsMenusSiteUrl.QueryMenusSiteUrl",
664
- packageName: PACKAGE_NAME,
665
- migrationOptions: {
666
- optInTransformResponse: true
667
- },
668
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaurantsMenusSiteUrlUrl(
669
- {
670
- protoPath: "/v1/menus-site-url/menus/query",
671
- data: serializedData,
672
- host
673
- }
674
- ),
675
- data: serializedData
676
- };
677
- return metadata;
678
- }
679
- return __queryMenusSiteUrl;
680
- }
681
-
682
- // src/restaurants-menus-v1-menu-menus.types.ts
683
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
684
- SortOrder2["ASC"] = "ASC";
685
- SortOrder2["DESC"] = "DESC";
686
- return SortOrder2;
687
- })(SortOrder || {});
688
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
689
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
690
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
691
- WebhookIdentityType2["MEMBER"] = "MEMBER";
692
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
693
- WebhookIdentityType2["APP"] = "APP";
694
- return WebhookIdentityType2;
695
- })(WebhookIdentityType || {});
696
-
697
- // src/restaurants-menus-v1-menu-menus.meta.ts
698
- function createMenu2() {
699
- const payload = {};
700
- const getRequestOptions = createMenu(payload);
701
- const getUrl = (context) => {
702
- const { url } = getRequestOptions(context);
703
- return url;
704
- };
705
- return {
706
- getUrl,
707
- httpMethod: "POST",
708
- path: "/v1/menus",
709
- pathParams: {},
710
- __requestType: null,
711
- __originalRequestType: null,
712
- __responseType: null,
713
- __originalResponseType: null
714
- };
715
- }
716
- function bulkCreateMenus2() {
717
- const payload = {};
718
- const getRequestOptions = bulkCreateMenus(payload);
719
- const getUrl = (context) => {
720
- const { url } = getRequestOptions(context);
721
- return url;
722
- };
723
- return {
724
- getUrl,
725
- httpMethod: "POST",
726
- path: "/v1/bulk/menus/create",
727
- pathParams: {},
728
- __requestType: null,
729
- __originalRequestType: null,
730
- __responseType: null,
731
- __originalResponseType: null
732
- };
733
- }
734
- function getMenu2() {
735
- const payload = { menuId: ":menuId" };
736
- const getRequestOptions = getMenu(payload);
737
- const getUrl = (context) => {
738
- const { url } = getRequestOptions(context);
739
- return url;
740
- };
741
- return {
742
- getUrl,
743
- httpMethod: "GET",
744
- path: "/v1/menus/{menuId}",
745
- pathParams: { menuId: "menuId" },
746
- __requestType: null,
747
- __originalRequestType: null,
748
- __responseType: null,
749
- __originalResponseType: null
750
- };
751
- }
752
- function listMenus2() {
753
- const payload = {};
754
- const getRequestOptions = listMenus(payload);
755
- const getUrl = (context) => {
756
- const { url } = getRequestOptions(context);
757
- return url;
758
- };
759
- return {
760
- getUrl,
761
- httpMethod: "GET",
762
- path: "/v1/menus",
763
- pathParams: {},
764
- __requestType: null,
765
- __originalRequestType: null,
766
- __responseType: null,
767
- __originalResponseType: null
768
- };
769
- }
770
- function queryMenus2() {
771
- const payload = {};
772
- const getRequestOptions = queryMenus(payload);
773
- const getUrl = (context) => {
774
- const { url } = getRequestOptions(context);
775
- return url;
776
- };
777
- return {
778
- getUrl,
779
- httpMethod: "POST",
780
- path: "/v1/menus/query",
781
- pathParams: {},
782
- __requestType: null,
783
- __originalRequestType: null,
784
- __responseType: null,
785
- __originalResponseType: null
786
- };
787
- }
788
- function updateMenu2() {
789
- const payload = { menu: { id: ":menuId" } };
790
- const getRequestOptions = updateMenu(payload);
791
- const getUrl = (context) => {
792
- const { url } = getRequestOptions(context);
793
- return url;
794
- };
795
- return {
796
- getUrl,
797
- httpMethod: "PATCH",
798
- path: "/v1/menus/{menu.id}",
799
- pathParams: { menuId: "menuId" },
800
- __requestType: null,
801
- __originalRequestType: null,
802
- __responseType: null,
803
- __originalResponseType: null
804
- };
805
- }
806
- function bulkUpdateMenu2() {
807
- const payload = {};
808
- const getRequestOptions = bulkUpdateMenu(payload);
809
- const getUrl = (context) => {
810
- const { url } = getRequestOptions(context);
811
- return url;
812
- };
813
- return {
814
- getUrl,
815
- httpMethod: "POST",
816
- path: "/v1/bulk/menus/update",
817
- pathParams: {},
818
- __requestType: null,
819
- __originalRequestType: null,
820
- __responseType: null,
821
- __originalResponseType: null
822
- };
823
- }
824
- function updateExtendedFields2() {
825
- const payload = { id: ":id" };
826
- const getRequestOptions = updateExtendedFields(payload);
827
- const getUrl = (context) => {
828
- const { url } = getRequestOptions(context);
829
- return url;
830
- };
831
- return {
832
- getUrl,
833
- httpMethod: "POST",
834
- path: "/v1/menus/{id}/updateExtendedFields",
835
- pathParams: { id: "id" },
836
- __requestType: null,
837
- __originalRequestType: null,
838
- __responseType: null,
839
- __originalResponseType: null
840
- };
841
- }
842
- function deleteMenu2() {
843
- const payload = { menuId: ":menuId" };
844
- const getRequestOptions = deleteMenu(payload);
845
- const getUrl = (context) => {
846
- const { url } = getRequestOptions(context);
847
- return url;
848
- };
849
- return {
850
- getUrl,
851
- httpMethod: "DELETE",
852
- path: "/v1/menus/{menuId}",
853
- pathParams: { menuId: "menuId" },
854
- __requestType: null,
855
- __originalRequestType: null,
856
- __responseType: null,
857
- __originalResponseType: null
858
- };
859
- }
860
- function duplicateMenu2() {
861
- const payload = { id: ":id" };
862
- const getRequestOptions = duplicateMenu(payload);
863
- const getUrl = (context) => {
864
- const { url } = getRequestOptions(context);
865
- return url;
866
- };
867
- return {
868
- getUrl,
869
- httpMethod: "POST",
870
- path: "/v1/menus/{id}/duplicate",
871
- pathParams: { id: "id" },
872
- __requestType: null,
873
- __originalRequestType: null,
874
- __responseType: null,
875
- __originalResponseType: null
876
- };
877
- }
878
- function getMenuSiteUrl2() {
879
- const payload = { id: ":id" };
880
- const getRequestOptions = getMenuSiteUrl(payload);
881
- const getUrl = (context) => {
882
- const { url } = getRequestOptions(context);
883
- return url;
884
- };
885
- return {
886
- getUrl,
887
- httpMethod: "GET",
888
- path: "/v1/menus-site-url/menus/{id}",
889
- pathParams: { id: "id" },
890
- __requestType: null,
891
- __originalRequestType: null,
892
- __responseType: null,
893
- __originalResponseType: null
894
- };
895
- }
896
- function queryMenusSiteUrl2() {
897
- const payload = {};
898
- const getRequestOptions = queryMenusSiteUrl(payload);
899
- const getUrl = (context) => {
900
- const { url } = getRequestOptions(context);
901
- return url;
902
- };
903
- return {
904
- getUrl,
905
- httpMethod: "POST",
906
- path: "/v1/menus-site-url/menus/query",
907
- pathParams: {},
908
- __requestType: null,
909
- __originalRequestType: null,
910
- __responseType: null,
911
- __originalResponseType: null
912
- };
913
- }
914
- export {
915
- SortOrder as SortOrderOriginal,
916
- WebhookIdentityType as WebhookIdentityTypeOriginal,
917
- bulkCreateMenus2 as bulkCreateMenus,
918
- bulkUpdateMenu2 as bulkUpdateMenu,
919
- createMenu2 as createMenu,
920
- deleteMenu2 as deleteMenu,
921
- duplicateMenu2 as duplicateMenu,
922
- getMenu2 as getMenu,
923
- getMenuSiteUrl2 as getMenuSiteUrl,
924
- listMenus2 as listMenus,
925
- queryMenus2 as queryMenus,
926
- queryMenusSiteUrl2 as queryMenusSiteUrl,
927
- updateExtendedFields2 as updateExtendedFields,
928
- updateMenu2 as updateMenu
929
- };
930
- //# sourceMappingURL=meta.mjs.map