@wix/auto_sdk_restaurants_menus 1.0.72 → 1.0.73

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 (49) hide show
  1. package/build/cjs/index.d.ts +10 -10
  2. package/build/cjs/index.js +86 -86
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +216 -216
  5. package/build/cjs/index.typings.js +59 -59
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +183 -183
  8. package/build/cjs/meta.js +44 -44
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +12 -12
  11. package/build/cjs/schemas.js +16 -16
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +10 -10
  14. package/build/es/index.mjs +86 -86
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +216 -216
  17. package/build/es/index.typings.mjs +59 -59
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +183 -183
  20. package/build/es/meta.mjs +44 -44
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +12 -12
  23. package/build/es/schemas.mjs +16 -16
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +10 -10
  26. package/build/internal/cjs/index.js +86 -86
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +216 -216
  29. package/build/internal/cjs/index.typings.js +59 -59
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +183 -183
  32. package/build/internal/cjs/meta.js +44 -44
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +12 -12
  35. package/build/internal/cjs/schemas.js +16 -16
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +10 -10
  38. package/build/internal/es/index.mjs +86 -86
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +216 -216
  41. package/build/internal/es/index.typings.mjs +59 -59
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +183 -183
  44. package/build/internal/es/meta.mjs +44 -44
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +12 -12
  47. package/build/internal/es/schemas.mjs +16 -16
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- import { CreateMenuRequest as CreateMenuRequest$1, CreateMenuResponse as CreateMenuResponse$1, BulkCreateMenusRequest as BulkCreateMenusRequest$1, BulkCreateMenusResponse as BulkCreateMenusResponse$1, GetMenuRequest as GetMenuRequest$1, GetMenuResponse as GetMenuResponse$1, ListMenusRequest as ListMenusRequest$1, ListMenusResponse as ListMenusResponse$1, QueryMenusRequest as QueryMenusRequest$1, QueryMenusResponse as QueryMenusResponse$1, UpdateMenuRequest as UpdateMenuRequest$1, UpdateMenuResponse as UpdateMenuResponse$1, BulkUpdateMenuRequest as BulkUpdateMenuRequest$1, BulkUpdateMenuResponse as BulkUpdateMenuResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeleteMenuRequest as DeleteMenuRequest$1, DeleteMenuResponse as DeleteMenuResponse$1, DuplicateMenuRequest as DuplicateMenuRequest$1, DuplicateMenuResponse as DuplicateMenuResponse$1, GetMenuSiteUrlRequest as GetMenuSiteUrlRequest$1, GetMenuSiteUrlResponse as GetMenuSiteUrlResponse$1, QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponse$1 } from './index.typings.mjs';
1
+ import { DuplicateMenuRequest as DuplicateMenuRequest$1, DuplicateMenuResponse as DuplicateMenuResponse$1, CreateMenuRequest as CreateMenuRequest$1, CreateMenuResponse as CreateMenuResponse$1, BulkCreateMenusRequest as BulkCreateMenusRequest$1, BulkCreateMenusResponse as BulkCreateMenusResponse$1, GetMenuRequest as GetMenuRequest$1, GetMenuResponse as GetMenuResponse$1, ListMenusRequest as ListMenusRequest$1, ListMenusResponse as ListMenusResponse$1, QueryMenusRequest as QueryMenusRequest$1, QueryMenusResponse as QueryMenusResponse$1, UpdateMenuRequest as UpdateMenuRequest$1, UpdateMenuResponse as UpdateMenuResponse$1, BulkUpdateMenuRequest as BulkUpdateMenuRequest$1, BulkUpdateMenuResponse as BulkUpdateMenuResponse$1, UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequest$1, UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponse$1, DeleteMenuRequest as DeleteMenuRequest$1, DeleteMenuResponse as DeleteMenuResponse$1, GetMenuSiteUrlRequest as GetMenuSiteUrlRequest$1, GetMenuSiteUrlResponse as GetMenuSiteUrlResponse$1, QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponse$1 } from './index.typings.mjs';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Menu {
@@ -164,6 +164,185 @@ interface ExternalReferenceInfo {
164
164
  /** Whether the connection to the external system is currently active. */
165
165
  connected?: boolean | null;
166
166
  }
167
+ interface DuplicateMenuRequest {
168
+ /**
169
+ * Menu id to be duplicated.
170
+ * @format GUID
171
+ */
172
+ id: string;
173
+ /**
174
+ * Business location ids to duplicate the menu to.
175
+ * @format GUID
176
+ * @maxSize 100
177
+ */
178
+ businessLocationIds?: string[] | null;
179
+ /** Indicates whether sub-entities (such as items) should be duplicated as well. */
180
+ duplicateSubEntities?: boolean | null;
181
+ /**
182
+ * The new name of the duplicated menu.
183
+ * @maxLength 500
184
+ */
185
+ menuName?: string | null;
186
+ }
187
+ interface DuplicateMenuResponse {
188
+ /** @format GUID */
189
+ menuIds?: string[];
190
+ }
191
+ interface DomainEvent extends DomainEventBodyOneOf {
192
+ createdEvent?: EntityCreatedEvent;
193
+ updatedEvent?: EntityUpdatedEvent;
194
+ deletedEvent?: EntityDeletedEvent;
195
+ actionEvent?: ActionEvent;
196
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
197
+ id?: string;
198
+ /**
199
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
200
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
201
+ */
202
+ entityFqdn?: string;
203
+ /**
204
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
205
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
206
+ */
207
+ slug?: string;
208
+ /** ID of the entity associated with the event. */
209
+ entityId?: string;
210
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
211
+ eventTime?: Date | null;
212
+ /**
213
+ * Whether the event was triggered as a result of a privacy regulation application
214
+ * (for example, GDPR).
215
+ */
216
+ triggeredByAnonymizeRequest?: boolean | null;
217
+ /** If present, indicates the action that triggered the event. */
218
+ originatedFrom?: string | null;
219
+ /**
220
+ * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
221
+ * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
222
+ */
223
+ entityEventSequence?: string | null;
224
+ }
225
+ /** @oneof */
226
+ interface DomainEventBodyOneOf {
227
+ createdEvent?: EntityCreatedEvent;
228
+ updatedEvent?: EntityUpdatedEvent;
229
+ deletedEvent?: EntityDeletedEvent;
230
+ actionEvent?: ActionEvent;
231
+ }
232
+ interface EntityCreatedEvent {
233
+ entityAsJson?: string;
234
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
235
+ restoreInfo?: RestoreInfo;
236
+ }
237
+ interface RestoreInfo {
238
+ deletedDate?: Date | null;
239
+ }
240
+ interface EntityUpdatedEvent {
241
+ /**
242
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
243
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
244
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
245
+ */
246
+ currentEntityAsJson?: string;
247
+ }
248
+ interface EntityDeletedEvent {
249
+ /** Entity that was deleted. */
250
+ deletedEntityAsJson?: string | null;
251
+ }
252
+ interface ActionEvent {
253
+ bodyAsJson?: string;
254
+ }
255
+ interface MessageEnvelope {
256
+ /**
257
+ * App instance ID.
258
+ * @format GUID
259
+ */
260
+ instanceId?: string | null;
261
+ /**
262
+ * Event type.
263
+ * @maxLength 150
264
+ */
265
+ eventType?: string;
266
+ /** The identification type and identity data. */
267
+ identity?: IdentificationData;
268
+ /** Stringify payload. */
269
+ data?: string;
270
+ /** Details related to the account */
271
+ accountInfo?: AccountInfo;
272
+ }
273
+ interface IdentificationData extends IdentificationDataIdOneOf {
274
+ /**
275
+ * ID of a site visitor that has not logged in to the site.
276
+ * @format GUID
277
+ */
278
+ anonymousVisitorId?: string;
279
+ /**
280
+ * ID of a site visitor that has logged in to the site.
281
+ * @format GUID
282
+ */
283
+ memberId?: string;
284
+ /**
285
+ * ID of a Wix user (site owner, contributor, etc.).
286
+ * @format GUID
287
+ */
288
+ wixUserId?: string;
289
+ /**
290
+ * ID of an app.
291
+ * @format GUID
292
+ */
293
+ appId?: string;
294
+ /** @readonly */
295
+ identityType?: WebhookIdentityTypeWithLiterals;
296
+ }
297
+ /** @oneof */
298
+ interface IdentificationDataIdOneOf {
299
+ /**
300
+ * ID of a site visitor that has not logged in to the site.
301
+ * @format GUID
302
+ */
303
+ anonymousVisitorId?: string;
304
+ /**
305
+ * ID of a site visitor that has logged in to the site.
306
+ * @format GUID
307
+ */
308
+ memberId?: string;
309
+ /**
310
+ * ID of a Wix user (site owner, contributor, etc.).
311
+ * @format GUID
312
+ */
313
+ wixUserId?: string;
314
+ /**
315
+ * ID of an app.
316
+ * @format GUID
317
+ */
318
+ appId?: string;
319
+ }
320
+ declare enum WebhookIdentityType {
321
+ UNKNOWN = "UNKNOWN",
322
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
323
+ MEMBER = "MEMBER",
324
+ WIX_USER = "WIX_USER",
325
+ APP = "APP"
326
+ }
327
+ /** @enumType */
328
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
329
+ interface AccountInfo {
330
+ /**
331
+ * ID of the Wix account associated with the event.
332
+ * @format GUID
333
+ */
334
+ accountId?: string | null;
335
+ /**
336
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
337
+ * @format GUID
338
+ */
339
+ parentAccountId?: string | null;
340
+ /**
341
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
342
+ * @format GUID
343
+ */
344
+ siteId?: string | null;
345
+ }
167
346
  interface InvalidateCache extends InvalidateCacheGetByOneOf {
168
347
  /**
169
348
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
@@ -583,70 +762,6 @@ interface CloneMenusRequest {
583
762
  }
584
763
  interface CloneMenusResponse {
585
764
  }
586
- interface DomainEvent extends DomainEventBodyOneOf {
587
- createdEvent?: EntityCreatedEvent;
588
- updatedEvent?: EntityUpdatedEvent;
589
- deletedEvent?: EntityDeletedEvent;
590
- actionEvent?: ActionEvent;
591
- /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
592
- id?: string;
593
- /**
594
- * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
595
- * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
596
- */
597
- entityFqdn?: string;
598
- /**
599
- * Event action name, placed at the top level to make it easier for users to dispatch messages.
600
- * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
601
- */
602
- slug?: string;
603
- /** ID of the entity associated with the event. */
604
- entityId?: string;
605
- /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
606
- eventTime?: Date | null;
607
- /**
608
- * Whether the event was triggered as a result of a privacy regulation application
609
- * (for example, GDPR).
610
- */
611
- triggeredByAnonymizeRequest?: boolean | null;
612
- /** If present, indicates the action that triggered the event. */
613
- originatedFrom?: string | null;
614
- /**
615
- * A sequence number that indicates the order of updates to an entity. For example, if an entity was updated at 16:00 and then again at 16:01, the second update will always have a higher sequence number.
616
- * You can use this number to make sure you're handling updates in the right order. Just save the latest sequence number on your end and compare it to the one in each new message. If the new message has an older (lower) number, you can safely ignore it.
617
- */
618
- entityEventSequence?: string | null;
619
- }
620
- /** @oneof */
621
- interface DomainEventBodyOneOf {
622
- createdEvent?: EntityCreatedEvent;
623
- updatedEvent?: EntityUpdatedEvent;
624
- deletedEvent?: EntityDeletedEvent;
625
- actionEvent?: ActionEvent;
626
- }
627
- interface EntityCreatedEvent {
628
- entityAsJson?: string;
629
- /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
630
- restoreInfo?: RestoreInfo;
631
- }
632
- interface RestoreInfo {
633
- deletedDate?: Date | null;
634
- }
635
- interface EntityUpdatedEvent {
636
- /**
637
- * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
638
- * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
639
- * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
640
- */
641
- currentEntityAsJson?: string;
642
- }
643
- interface EntityDeletedEvent {
644
- /** Entity that was deleted. */
645
- deletedEntityAsJson?: string | null;
646
- }
647
- interface ActionEvent {
648
- bodyAsJson?: string;
649
- }
650
765
  interface Empty {
651
766
  }
652
767
  interface SyncContentToMultilingualRequest {
@@ -658,121 +773,6 @@ interface SyncContentToMultilingualRequest {
658
773
  }
659
774
  interface SyncContentToMultilingualResponse {
660
775
  }
661
- interface MessageEnvelope {
662
- /**
663
- * App instance ID.
664
- * @format GUID
665
- */
666
- instanceId?: string | null;
667
- /**
668
- * Event type.
669
- * @maxLength 150
670
- */
671
- eventType?: string;
672
- /** The identification type and identity data. */
673
- identity?: IdentificationData;
674
- /** Stringify payload. */
675
- data?: string;
676
- /** Details related to the account */
677
- accountInfo?: AccountInfo;
678
- }
679
- interface IdentificationData extends IdentificationDataIdOneOf {
680
- /**
681
- * ID of a site visitor that has not logged in to the site.
682
- * @format GUID
683
- */
684
- anonymousVisitorId?: string;
685
- /**
686
- * ID of a site visitor that has logged in to the site.
687
- * @format GUID
688
- */
689
- memberId?: string;
690
- /**
691
- * ID of a Wix user (site owner, contributor, etc.).
692
- * @format GUID
693
- */
694
- wixUserId?: string;
695
- /**
696
- * ID of an app.
697
- * @format GUID
698
- */
699
- appId?: string;
700
- /** @readonly */
701
- identityType?: WebhookIdentityTypeWithLiterals;
702
- }
703
- /** @oneof */
704
- interface IdentificationDataIdOneOf {
705
- /**
706
- * ID of a site visitor that has not logged in to the site.
707
- * @format GUID
708
- */
709
- anonymousVisitorId?: string;
710
- /**
711
- * ID of a site visitor that has logged in to the site.
712
- * @format GUID
713
- */
714
- memberId?: string;
715
- /**
716
- * ID of a Wix user (site owner, contributor, etc.).
717
- * @format GUID
718
- */
719
- wixUserId?: string;
720
- /**
721
- * ID of an app.
722
- * @format GUID
723
- */
724
- appId?: string;
725
- }
726
- declare enum WebhookIdentityType {
727
- UNKNOWN = "UNKNOWN",
728
- ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
729
- MEMBER = "MEMBER",
730
- WIX_USER = "WIX_USER",
731
- APP = "APP"
732
- }
733
- /** @enumType */
734
- type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
735
- interface AccountInfo {
736
- /**
737
- * ID of the Wix account associated with the event.
738
- * @format GUID
739
- */
740
- accountId?: string | null;
741
- /**
742
- * ID of the parent Wix account. Only included when accountId belongs to a child account.
743
- * @format GUID
744
- */
745
- parentAccountId?: string | null;
746
- /**
747
- * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
748
- * @format GUID
749
- */
750
- siteId?: string | null;
751
- }
752
- interface DuplicateMenuRequest {
753
- /**
754
- * Menu id to be duplicated.
755
- * @format GUID
756
- */
757
- id: string;
758
- /**
759
- * Business location ids to duplicate the menu to.
760
- * @format GUID
761
- * @maxSize 100
762
- */
763
- businessLocationIds?: string[] | null;
764
- /** Indicates whether sub-entities (such as items) should be duplicated as well. */
765
- duplicateSubEntities?: boolean | null;
766
- /**
767
- * The new name of the duplicated menu.
768
- * @maxLength 500
769
- */
770
- menuName?: string | null;
771
- }
772
- interface DuplicateMenuResponse {
773
- /** @format GUID */
774
- menuIds?: string[];
775
- }
776
776
  interface GetMenuSiteUrlRequest {
777
777
  /**
778
778
  * Menu ID.
@@ -814,6 +814,9 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
814
814
  __responseType: Q;
815
815
  __originalResponseType: R;
816
816
  };
817
+ declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
818
+ id: string;
819
+ }, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
817
820
  declare function createMenu(): __PublicMethodMetaInfo<'POST', {}, CreateMenuRequest$1, CreateMenuRequest, CreateMenuResponse$1, CreateMenuResponse>;
818
821
  declare function bulkCreateMenus(): __PublicMethodMetaInfo<'POST', {}, BulkCreateMenusRequest$1, BulkCreateMenusRequest, BulkCreateMenusResponse$1, BulkCreateMenusResponse>;
819
822
  declare function getMenu(): __PublicMethodMetaInfo<'GET', {
@@ -831,9 +834,6 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
831
834
  declare function deleteMenu(): __PublicMethodMetaInfo<'DELETE', {
832
835
  menuId: string;
833
836
  }, DeleteMenuRequest$1, DeleteMenuRequest, DeleteMenuResponse$1, DeleteMenuResponse>;
834
- declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
835
- id: string;
836
- }, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
837
837
  declare function getMenuSiteUrl(): __PublicMethodMetaInfo<'GET', {
838
838
  id: string;
839
839
  }, GetMenuSiteUrlRequest$1, GetMenuSiteUrlRequest, GetMenuSiteUrlResponse$1, GetMenuSiteUrlResponse>;
package/build/es/meta.mjs CHANGED
@@ -100,7 +100,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaura
100
100
  };
101
101
  return resolveUrl(Object.assign(opts, { domainToMappings }));
102
102
  }
103
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
103
+ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
104
104
  const domainToMappings = {
105
105
  "manage._base_domain_": [
106
106
  {
@@ -195,7 +195,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaur
195
195
  };
196
196
  return resolveUrl(Object.assign(opts, { domainToMappings }));
197
197
  }
198
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
198
+ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
199
199
  const domainToMappings = {
200
200
  "manage._base_domain_": [
201
201
  {
@@ -291,6 +291,25 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
291
291
  return resolveUrl(Object.assign(opts, { domainToMappings }));
292
292
  }
293
293
  var PACKAGE_NAME = "@wix/auto_sdk_restaurants_menus";
294
+ function duplicateMenu(payload) {
295
+ function __duplicateMenu({ host }) {
296
+ const metadata = {
297
+ entityFqdn: "wix.restaurants.menus.v1.menu",
298
+ method: "POST",
299
+ methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
300
+ packageName: PACKAGE_NAME,
301
+ migrationOptions: {
302
+ optInTransformResponse: true
303
+ },
304
+ url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
305
+ { protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
306
+ ),
307
+ data: payload
308
+ };
309
+ return metadata;
310
+ }
311
+ return __duplicateMenu;
312
+ }
294
313
  function createMenu(payload) {
295
314
  function __createMenu({ host }) {
296
315
  const serializedData = transformPaths(payload, [
@@ -598,25 +617,6 @@ function deleteMenu(payload) {
598
617
  }
599
618
  return __deleteMenu;
600
619
  }
601
- function duplicateMenu(payload) {
602
- function __duplicateMenu({ host }) {
603
- const metadata = {
604
- entityFqdn: "wix.restaurants.menus.v1.menu",
605
- method: "POST",
606
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
607
- packageName: PACKAGE_NAME,
608
- migrationOptions: {
609
- optInTransformResponse: true
610
- },
611
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
612
- { protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
613
- ),
614
- data: payload
615
- };
616
- return metadata;
617
- }
618
- return __duplicateMenu;
619
- }
620
620
  function getMenuSiteUrl(payload) {
621
621
  function __getMenuSiteUrl({ host }) {
622
622
  const metadata = {
@@ -657,11 +657,6 @@ function queryMenusSiteUrl(payload) {
657
657
  }
658
658
 
659
659
  // src/restaurants-menus-v1-menu-menus.types.ts
660
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
661
- SortOrder2["ASC"] = "ASC";
662
- SortOrder2["DESC"] = "DESC";
663
- return SortOrder2;
664
- })(SortOrder || {});
665
660
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
666
661
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
667
662
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -670,8 +665,31 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
670
665
  WebhookIdentityType2["APP"] = "APP";
671
666
  return WebhookIdentityType2;
672
667
  })(WebhookIdentityType || {});
668
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
669
+ SortOrder2["ASC"] = "ASC";
670
+ SortOrder2["DESC"] = "DESC";
671
+ return SortOrder2;
672
+ })(SortOrder || {});
673
673
 
674
674
  // src/restaurants-menus-v1-menu-menus.meta.ts
675
+ function duplicateMenu2() {
676
+ const payload = { id: ":id" };
677
+ const getRequestOptions = duplicateMenu(payload);
678
+ const getUrl = (context) => {
679
+ const { url } = getRequestOptions(context);
680
+ return url;
681
+ };
682
+ return {
683
+ getUrl,
684
+ httpMethod: "POST",
685
+ path: "/v1/menus/{id}/duplicate",
686
+ pathParams: { id: "id" },
687
+ __requestType: null,
688
+ __originalRequestType: null,
689
+ __responseType: null,
690
+ __originalResponseType: null
691
+ };
692
+ }
675
693
  function createMenu2() {
676
694
  const payload = {};
677
695
  const getRequestOptions = createMenu(payload);
@@ -834,24 +852,6 @@ function deleteMenu2() {
834
852
  __originalResponseType: null
835
853
  };
836
854
  }
837
- function duplicateMenu2() {
838
- const payload = { id: ":id" };
839
- const getRequestOptions = duplicateMenu(payload);
840
- const getUrl = (context) => {
841
- const { url } = getRequestOptions(context);
842
- return url;
843
- };
844
- return {
845
- getUrl,
846
- httpMethod: "POST",
847
- path: "/v1/menus/{id}/duplicate",
848
- pathParams: { id: "id" },
849
- __requestType: null,
850
- __originalRequestType: null,
851
- __responseType: null,
852
- __originalResponseType: null
853
- };
854
- }
855
855
  function getMenuSiteUrl2() {
856
856
  const payload = { id: ":id" };
857
857
  const getRequestOptions = getMenuSiteUrl(payload);