@wix/auto_sdk_restaurants_menus 1.0.76 → 1.0.77

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 +11 -11
  2. package/build/cjs/index.js +113 -90
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +233 -223
  5. package/build/cjs/index.typings.js +86 -63
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +195 -184
  8. package/build/cjs/meta.js +71 -48
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +16 -12
  11. package/build/cjs/schemas.js +23 -17
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +11 -11
  14. package/build/es/index.mjs +113 -90
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +233 -223
  17. package/build/es/index.typings.mjs +86 -63
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +195 -184
  20. package/build/es/meta.mjs +71 -48
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +16 -12
  23. package/build/es/schemas.mjs +23 -17
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +11 -11
  26. package/build/internal/cjs/index.js +113 -90
  27. package/build/internal/cjs/index.js.map +1 -1
  28. package/build/internal/cjs/index.typings.d.ts +233 -223
  29. package/build/internal/cjs/index.typings.js +86 -63
  30. package/build/internal/cjs/index.typings.js.map +1 -1
  31. package/build/internal/cjs/meta.d.ts +195 -184
  32. package/build/internal/cjs/meta.js +71 -48
  33. package/build/internal/cjs/meta.js.map +1 -1
  34. package/build/internal/cjs/schemas.d.ts +16 -12
  35. package/build/internal/cjs/schemas.js +23 -17
  36. package/build/internal/cjs/schemas.js.map +1 -1
  37. package/build/internal/es/index.d.mts +11 -11
  38. package/build/internal/es/index.mjs +113 -90
  39. package/build/internal/es/index.mjs.map +1 -1
  40. package/build/internal/es/index.typings.d.mts +233 -223
  41. package/build/internal/es/index.typings.mjs +86 -63
  42. package/build/internal/es/index.typings.mjs.map +1 -1
  43. package/build/internal/es/meta.d.mts +195 -184
  44. package/build/internal/es/meta.mjs +71 -48
  45. package/build/internal/es/meta.mjs.map +1 -1
  46. package/build/internal/es/schemas.d.mts +16 -12
  47. package/build/internal/es/schemas.mjs +23 -17
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +2 -2
@@ -1,4 +1,4 @@
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.js';
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.js';
2
2
  import '@wix/sdk-types';
3
3
 
4
4
  interface Menu {
@@ -164,185 +164,6 @@ 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
- }
346
167
  interface InvalidateCache extends InvalidateCacheGetByOneOf {
347
168
  /**
348
169
  * Invalidate by msId. NOT recommended, as this will invalidate the entire site cache!
@@ -658,6 +479,11 @@ interface Sorting {
658
479
  fieldName?: string;
659
480
  /** Sort order. */
660
481
  order?: SortOrderWithLiterals;
482
+ /**
483
+ * Origin point for geo-distance sorting on a GEO field
484
+ * results are ordered by distance from this point (ASC = nearest first, DESC = farthest first).
485
+ */
486
+ origin?: AddressLocation;
661
487
  }
662
488
  declare enum SortOrder {
663
489
  ASC = "ASC",
@@ -665,6 +491,12 @@ declare enum SortOrder {
665
491
  }
666
492
  /** @enumType */
667
493
  type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
494
+ interface AddressLocation {
495
+ /** Address latitude. */
496
+ latitude?: number | null;
497
+ /** Address longitude. */
498
+ longitude?: number | null;
499
+ }
668
500
  interface QueryMenusResponse {
669
501
  /** Retrieved menus. */
670
502
  menus?: Menu[];
@@ -762,6 +594,70 @@ interface CloneMenusRequest {
762
594
  }
763
595
  interface CloneMenusResponse {
764
596
  }
597
+ interface DomainEvent extends DomainEventBodyOneOf {
598
+ createdEvent?: EntityCreatedEvent;
599
+ updatedEvent?: EntityUpdatedEvent;
600
+ deletedEvent?: EntityDeletedEvent;
601
+ actionEvent?: ActionEvent;
602
+ /** Event ID. With this ID you can easily spot duplicated events and ignore them. */
603
+ id?: string;
604
+ /**
605
+ * Fully Qualified Domain Name of an entity. This is a unique identifier assigned to the API main business entities.
606
+ * For example, `wix.stores.catalog.product`, `wix.bookings.session`, `wix.payments.transaction`.
607
+ */
608
+ entityFqdn?: string;
609
+ /**
610
+ * Event action name, placed at the top level to make it easier for users to dispatch messages.
611
+ * For example: `created`/`updated`/`deleted`/`started`/`completed`/`email_opened`.
612
+ */
613
+ slug?: string;
614
+ /** ID of the entity associated with the event. */
615
+ entityId?: string;
616
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example, `2020-04-26T13:57:50.699Z`. */
617
+ eventTime?: Date | null;
618
+ /**
619
+ * Whether the event was triggered as a result of a privacy regulation application
620
+ * (for example, GDPR).
621
+ */
622
+ triggeredByAnonymizeRequest?: boolean | null;
623
+ /** If present, indicates the action that triggered the event. */
624
+ originatedFrom?: string | null;
625
+ /**
626
+ * 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.
627
+ * 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.
628
+ */
629
+ entityEventSequence?: string | null;
630
+ }
631
+ /** @oneof */
632
+ interface DomainEventBodyOneOf {
633
+ createdEvent?: EntityCreatedEvent;
634
+ updatedEvent?: EntityUpdatedEvent;
635
+ deletedEvent?: EntityDeletedEvent;
636
+ actionEvent?: ActionEvent;
637
+ }
638
+ interface EntityCreatedEvent {
639
+ entityAsJson?: string;
640
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
641
+ restoreInfo?: RestoreInfo;
642
+ }
643
+ interface RestoreInfo {
644
+ deletedDate?: Date | null;
645
+ }
646
+ interface EntityUpdatedEvent {
647
+ /**
648
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
649
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
650
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
651
+ */
652
+ currentEntityAsJson?: string;
653
+ }
654
+ interface EntityDeletedEvent {
655
+ /** Entity that was deleted. */
656
+ deletedEntityAsJson?: string | null;
657
+ }
658
+ interface ActionEvent {
659
+ bodyAsJson?: string;
660
+ }
765
661
  interface Empty {
766
662
  }
767
663
  interface SyncContentToMultilingualRequest {
@@ -773,6 +669,121 @@ interface SyncContentToMultilingualRequest {
773
669
  }
774
670
  interface SyncContentToMultilingualResponse {
775
671
  }
672
+ interface MessageEnvelope {
673
+ /**
674
+ * App instance ID.
675
+ * @format GUID
676
+ */
677
+ instanceId?: string | null;
678
+ /**
679
+ * Event type.
680
+ * @maxLength 150
681
+ */
682
+ eventType?: string;
683
+ /** The identification type and identity data. */
684
+ identity?: IdentificationData;
685
+ /** Stringify payload. */
686
+ data?: string;
687
+ /** Details related to the account */
688
+ accountInfo?: AccountInfo;
689
+ }
690
+ interface IdentificationData extends IdentificationDataIdOneOf {
691
+ /**
692
+ * ID of a site visitor that has not logged in to the site.
693
+ * @format GUID
694
+ */
695
+ anonymousVisitorId?: string;
696
+ /**
697
+ * ID of a site visitor that has logged in to the site.
698
+ * @format GUID
699
+ */
700
+ memberId?: string;
701
+ /**
702
+ * ID of a Wix user (site owner, contributor, etc.).
703
+ * @format GUID
704
+ */
705
+ wixUserId?: string;
706
+ /**
707
+ * ID of an app.
708
+ * @format GUID
709
+ */
710
+ appId?: string;
711
+ /** @readonly */
712
+ identityType?: WebhookIdentityTypeWithLiterals;
713
+ }
714
+ /** @oneof */
715
+ interface IdentificationDataIdOneOf {
716
+ /**
717
+ * ID of a site visitor that has not logged in to the site.
718
+ * @format GUID
719
+ */
720
+ anonymousVisitorId?: string;
721
+ /**
722
+ * ID of a site visitor that has logged in to the site.
723
+ * @format GUID
724
+ */
725
+ memberId?: string;
726
+ /**
727
+ * ID of a Wix user (site owner, contributor, etc.).
728
+ * @format GUID
729
+ */
730
+ wixUserId?: string;
731
+ /**
732
+ * ID of an app.
733
+ * @format GUID
734
+ */
735
+ appId?: string;
736
+ }
737
+ declare enum WebhookIdentityType {
738
+ UNKNOWN = "UNKNOWN",
739
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
740
+ MEMBER = "MEMBER",
741
+ WIX_USER = "WIX_USER",
742
+ APP = "APP"
743
+ }
744
+ /** @enumType */
745
+ type WebhookIdentityTypeWithLiterals = WebhookIdentityType | 'UNKNOWN' | 'ANONYMOUS_VISITOR' | 'MEMBER' | 'WIX_USER' | 'APP';
746
+ interface AccountInfo {
747
+ /**
748
+ * ID of the Wix account associated with the event.
749
+ * @format GUID
750
+ */
751
+ accountId?: string | null;
752
+ /**
753
+ * ID of the parent Wix account. Only included when accountId belongs to a child account.
754
+ * @format GUID
755
+ */
756
+ parentAccountId?: string | null;
757
+ /**
758
+ * ID of the Wix site associated with the event. Only included when the event is tied to a specific site.
759
+ * @format GUID
760
+ */
761
+ siteId?: string | null;
762
+ }
763
+ interface DuplicateMenuRequest {
764
+ /**
765
+ * Menu id to be duplicated.
766
+ * @format GUID
767
+ */
768
+ id: string;
769
+ /**
770
+ * Business location ids to duplicate the menu to.
771
+ * @format GUID
772
+ * @maxSize 100
773
+ */
774
+ businessLocationIds?: string[] | null;
775
+ /** Indicates whether sub-entities (such as items) should be duplicated as well. */
776
+ duplicateSubEntities?: boolean | null;
777
+ /**
778
+ * The new name of the duplicated menu.
779
+ * @maxLength 500
780
+ */
781
+ menuName?: string | null;
782
+ }
783
+ interface DuplicateMenuResponse {
784
+ /** @format GUID */
785
+ menuIds?: string[];
786
+ }
776
787
  interface GetMenuSiteUrlRequest {
777
788
  /**
778
789
  * Menu ID.
@@ -814,9 +825,6 @@ type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q
814
825
  __responseType: Q;
815
826
  __originalResponseType: R;
816
827
  };
817
- declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
818
- id: string;
819
- }, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
820
828
  declare function createMenu(): __PublicMethodMetaInfo<'POST', {}, CreateMenuRequest$1, CreateMenuRequest, CreateMenuResponse$1, CreateMenuResponse>;
821
829
  declare function bulkCreateMenus(): __PublicMethodMetaInfo<'POST', {}, BulkCreateMenusRequest$1, BulkCreateMenusRequest, BulkCreateMenusResponse$1, BulkCreateMenusResponse>;
822
830
  declare function getMenu(): __PublicMethodMetaInfo<'GET', {
@@ -834,9 +842,12 @@ declare function updateExtendedFields(): __PublicMethodMetaInfo<'POST', {
834
842
  declare function deleteMenu(): __PublicMethodMetaInfo<'DELETE', {
835
843
  menuId: string;
836
844
  }, DeleteMenuRequest$1, DeleteMenuRequest, DeleteMenuResponse$1, DeleteMenuResponse>;
845
+ declare function duplicateMenu(): __PublicMethodMetaInfo<'POST', {
846
+ id: string;
847
+ }, DuplicateMenuRequest$1, DuplicateMenuRequest, DuplicateMenuResponse$1, DuplicateMenuResponse>;
837
848
  declare function getMenuSiteUrl(): __PublicMethodMetaInfo<'GET', {
838
849
  id: string;
839
850
  }, GetMenuSiteUrlRequest$1, GetMenuSiteUrlRequest, GetMenuSiteUrlResponse$1, GetMenuSiteUrlResponse>;
840
851
  declare function queryMenusSiteUrl(): __PublicMethodMetaInfo<'POST', {}, QueryMenusSiteUrlRequest$1, QueryMenusSiteUrlRequest, QueryMenusSiteUrlResponse$1, QueryMenusSiteUrlResponse>;
841
852
 
842
- export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateMenuResult as BulkCreateMenuResultOriginal, type BulkCreateMenusRequest as BulkCreateMenusRequestOriginal, type BulkCreateMenusResponse as BulkCreateMenusResponseOriginal, type BulkMenuResult as BulkMenuResultOriginal, type BulkUpdateMenuRequest as BulkUpdateMenuRequestOriginal, type BulkUpdateMenuResponse as BulkUpdateMenuResponseOriginal, type BusinessLocationDetails as BusinessLocationDetailsOriginal, type CloneMenusRequest as CloneMenusRequestOriginal, type CloneMenusResponse as CloneMenusResponseOriginal, type CreateMenuRequest as CreateMenuRequestOriginal, type CreateMenuResponse as CreateMenuResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteMenuRequest as DeleteMenuRequestOriginal, type DeleteMenuResponse as DeleteMenuResponseOriginal, type DeleteOrphanSections as DeleteOrphanSectionsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateMenuRequest as DuplicateMenuRequestOriginal, type DuplicateMenuResponse as DuplicateMenuResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReferenceInfo as ExternalReferenceInfoOriginal, type File as FileOriginal, type GetMenuRequest as GetMenuRequestOriginal, type GetMenuResponse as GetMenuResponseOriginal, type GetMenuSiteUrlRequest as GetMenuSiteUrlRequestOriginal, type GetMenuSiteUrlResponse as GetMenuSiteUrlResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type Keyword as KeywordOriginal, type ListMenusRequest as ListMenusRequestOriginal, type ListMenusResponse as ListMenusResponseOriginal, type MaskedMenu as MaskedMenuOriginal, type Menu as MenuOriginal, type MenuSiteUrl as MenuSiteUrlOriginal, type MenusDataCloningCompleted as MenusDataCloningCompletedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type QueryMenusRequest as QueryMenusRequestOriginal, type QueryMenusResponse as QueryMenusResponseOriginal, type QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequestOriginal, type QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RunMenusMultiLocationMigrationRequest as RunMenusMultiLocationMigrationRequestOriginal, type RunMenusMultiLocationMigrationResponse as RunMenusMultiLocationMigrationResponseOriginal, type SeoSchema as SeoSchemaOriginal, type Settings as SettingsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncContentToMultilingualRequest as SyncContentToMultilingualRequestOriginal, type SyncContentToMultilingualResponse as SyncContentToMultilingualResponseOriginal, type Tag as TagOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UpdateBusinessLocationIdRequest as UpdateBusinessLocationIdRequestOriginal, type UpdateBusinessLocationIdResponse as UpdateBusinessLocationIdResponseOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateMenuRequest as UpdateMenuRequestOriginal, type UpdateMenuResponse as UpdateMenuResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };
853
+ export { type AccountInfo as AccountInfoOriginal, type ActionEvent as ActionEventOriginal, type AddressLocation as AddressLocationOriginal, type App as AppOriginal, type ApplicationError as ApplicationErrorOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkCreateMenuResult as BulkCreateMenuResultOriginal, type BulkCreateMenusRequest as BulkCreateMenusRequestOriginal, type BulkCreateMenusResponse as BulkCreateMenusResponseOriginal, type BulkMenuResult as BulkMenuResultOriginal, type BulkUpdateMenuRequest as BulkUpdateMenuRequestOriginal, type BulkUpdateMenuResponse as BulkUpdateMenuResponseOriginal, type BusinessLocationDetails as BusinessLocationDetailsOriginal, type CloneMenusRequest as CloneMenusRequestOriginal, type CloneMenusResponse as CloneMenusResponseOriginal, type CreateMenuRequest as CreateMenuRequestOriginal, type CreateMenuResponse as CreateMenuResponseOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type CursorQuery as CursorQueryOriginal, type CursorQueryPagingMethodOneOf as CursorQueryPagingMethodOneOfOriginal, type Cursors as CursorsOriginal, type CustomTag as CustomTagOriginal, type DeleteMenuRequest as DeleteMenuRequestOriginal, type DeleteMenuResponse as DeleteMenuResponseOriginal, type DeleteOrphanSections as DeleteOrphanSectionsOriginal, type DomainEventBodyOneOf as DomainEventBodyOneOfOriginal, type DomainEvent as DomainEventOriginal, type DuplicateMenuRequest as DuplicateMenuRequestOriginal, type DuplicateMenuResponse as DuplicateMenuResponseOriginal, type Empty as EmptyOriginal, type EntityCreatedEvent as EntityCreatedEventOriginal, type EntityDeletedEvent as EntityDeletedEventOriginal, type EntityUpdatedEvent as EntityUpdatedEventOriginal, type ExtendedFields as ExtendedFieldsOriginal, type ExternalReferenceInfo as ExternalReferenceInfoOriginal, type File as FileOriginal, type GetMenuRequest as GetMenuRequestOriginal, type GetMenuResponse as GetMenuResponseOriginal, type GetMenuSiteUrlRequest as GetMenuSiteUrlRequestOriginal, type GetMenuSiteUrlResponse as GetMenuSiteUrlResponseOriginal, type IdentificationDataIdOneOf as IdentificationDataIdOneOfOriginal, type IdentificationData as IdentificationDataOriginal, type InvalidateCacheGetByOneOf as InvalidateCacheGetByOneOfOriginal, type InvalidateCache as InvalidateCacheOriginal, type ItemMetadata as ItemMetadataOriginal, type Keyword as KeywordOriginal, type ListMenusRequest as ListMenusRequestOriginal, type ListMenusResponse as ListMenusResponseOriginal, type MaskedMenu as MaskedMenuOriginal, type Menu as MenuOriginal, type MenuSiteUrl as MenuSiteUrlOriginal, type MenusDataCloningCompleted as MenusDataCloningCompletedOriginal, type MessageEnvelope as MessageEnvelopeOriginal, type Page as PageOriginal, type Pages as PagesOriginal, type QueryMenusRequest as QueryMenusRequestOriginal, type QueryMenusResponse as QueryMenusResponseOriginal, type QueryMenusSiteUrlRequest as QueryMenusSiteUrlRequestOriginal, type QueryMenusSiteUrlResponse as QueryMenusSiteUrlResponseOriginal, type RestoreInfo as RestoreInfoOriginal, type RunMenusMultiLocationMigrationRequest as RunMenusMultiLocationMigrationRequestOriginal, type RunMenusMultiLocationMigrationResponse as RunMenusMultiLocationMigrationResponseOriginal, type SeoSchema as SeoSchemaOriginal, type Settings as SettingsOriginal, SortOrder as SortOrderOriginal, type SortOrderWithLiterals as SortOrderWithLiteralsOriginal, type Sorting as SortingOriginal, type SyncContentToMultilingualRequest as SyncContentToMultilingualRequestOriginal, type SyncContentToMultilingualResponse as SyncContentToMultilingualResponseOriginal, type Tag as TagOriginal, type URI as URIOriginal, type URIs as URIsOriginal, type UpdateBusinessLocationIdRequest as UpdateBusinessLocationIdRequestOriginal, type UpdateBusinessLocationIdResponse as UpdateBusinessLocationIdResponseOriginal, type UpdateExtendedFieldsRequest as UpdateExtendedFieldsRequestOriginal, type UpdateExtendedFieldsResponse as UpdateExtendedFieldsResponseOriginal, type UpdateMenuRequest as UpdateMenuRequestOriginal, type UpdateMenuResponse as UpdateMenuResponseOriginal, WebhookIdentityType as WebhookIdentityTypeOriginal, type WebhookIdentityTypeWithLiterals as WebhookIdentityTypeWithLiteralsOriginal, type __PublicMethodMetaInfo, bulkCreateMenus, bulkUpdateMenu, createMenu, deleteMenu, duplicateMenu, getMenu, getMenuSiteUrl, listMenus, queryMenus, queryMenusSiteUrl, updateExtendedFields, updateMenu };
@@ -39,6 +39,7 @@ module.exports = __toCommonJS(meta_exports);
39
39
 
40
40
  // src/restaurants-menus-v1-menu-menus.http.ts
41
41
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
42
+ var import_float = require("@wix/sdk-runtime/transformations/float");
42
43
  var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
43
44
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
44
45
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
@@ -139,7 +140,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaura
139
140
  };
140
141
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
141
142
  }
142
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
143
+ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
143
144
  const domainToMappings = {
144
145
  "manage._base_domain_": [
145
146
  {
@@ -234,7 +235,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
234
235
  };
235
236
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
236
237
  }
237
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
238
+ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
238
239
  const domainToMappings = {
239
240
  "manage._base_domain_": [
240
241
  {
@@ -330,25 +331,6 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaur
330
331
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
331
332
  }
332
333
  var PACKAGE_NAME = "@wix/auto_sdk_restaurants_menus";
333
- function duplicateMenu(payload) {
334
- function __duplicateMenu({ host }) {
335
- const metadata = {
336
- entityFqdn: "wix.restaurants.menus.v1.menu",
337
- method: "POST",
338
- methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
339
- packageName: PACKAGE_NAME,
340
- migrationOptions: {
341
- optInTransformResponse: true
342
- },
343
- url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
344
- { protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
345
- ),
346
- data: payload
347
- };
348
- return metadata;
349
- }
350
- return __duplicateMenu;
351
- }
352
334
  function createMenu(payload) {
353
335
  function __createMenu({ host }) {
354
336
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
@@ -495,6 +477,15 @@ function listMenus(payload) {
495
477
  }
496
478
  function queryMenus(payload) {
497
479
  function __queryMenus({ host }) {
480
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
481
+ {
482
+ transformFn: import_float.transformSDKFloatToRESTFloat,
483
+ paths: [
484
+ { path: "query.sort.origin.latitude" },
485
+ { path: "query.sort.origin.longitude" }
486
+ ]
487
+ }
488
+ ]);
498
489
  const metadata = {
499
490
  entityFqdn: "wix.restaurants.menus.v1.menu",
500
491
  method: "POST",
@@ -505,10 +496,10 @@ function queryMenus(payload) {
505
496
  },
506
497
  url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
507
498
  protoPath: "/v1/menus/query",
508
- data: payload,
499
+ data: serializedData,
509
500
  host
510
501
  }),
511
- data: payload,
502
+ data: serializedData,
512
503
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
513
504
  {
514
505
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
@@ -656,6 +647,25 @@ function deleteMenu(payload) {
656
647
  }
657
648
  return __deleteMenu;
658
649
  }
650
+ function duplicateMenu(payload) {
651
+ function __duplicateMenu({ host }) {
652
+ const metadata = {
653
+ entityFqdn: "wix.restaurants.menus.v1.menu",
654
+ method: "POST",
655
+ methodFqn: "com.wixpress.restaurants.menus_menu.v1.restaurants_duplicate_menu.RestaurantsDuplicateMenu.DuplicateMenu",
656
+ packageName: PACKAGE_NAME,
657
+ migrationOptions: {
658
+ optInTransformResponse: true
659
+ },
660
+ url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(
661
+ { protoPath: "/v1/menus/{id}/duplicate", data: payload, host }
662
+ ),
663
+ data: payload
664
+ };
665
+ return metadata;
666
+ }
667
+ return __duplicateMenu;
668
+ }
659
669
  function getMenuSiteUrl(payload) {
660
670
  function __getMenuSiteUrl({ host }) {
661
671
  const metadata = {
@@ -677,6 +687,15 @@ function getMenuSiteUrl(payload) {
677
687
  }
678
688
  function queryMenusSiteUrl(payload) {
679
689
  function __queryMenusSiteUrl({ host }) {
690
+ const serializedData = (0, import_transform_paths.transformPaths)(payload, [
691
+ {
692
+ transformFn: import_float.transformSDKFloatToRESTFloat,
693
+ paths: [
694
+ { path: "query.sort.origin.latitude" },
695
+ { path: "query.sort.origin.longitude" }
696
+ ]
697
+ }
698
+ ]);
680
699
  const metadata = {
681
700
  entityFqdn: "wix.restaurants.menus.v1.menu",
682
701
  method: "POST",
@@ -686,9 +705,13 @@ function queryMenusSiteUrl(payload) {
686
705
  optInTransformResponse: true
687
706
  },
688
707
  url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaurantsMenusSiteUrlUrl(
689
- { protoPath: "/v1/menus-site-url/menus/query", data: payload, host }
708
+ {
709
+ protoPath: "/v1/menus-site-url/menus/query",
710
+ data: serializedData,
711
+ host
712
+ }
690
713
  ),
691
- data: payload
714
+ data: serializedData
692
715
  };
693
716
  return metadata;
694
717
  }
@@ -696,6 +719,11 @@ function queryMenusSiteUrl(payload) {
696
719
  }
697
720
 
698
721
  // src/restaurants-menus-v1-menu-menus.types.ts
722
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
723
+ SortOrder2["ASC"] = "ASC";
724
+ SortOrder2["DESC"] = "DESC";
725
+ return SortOrder2;
726
+ })(SortOrder || {});
699
727
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
700
728
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
701
729
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -704,31 +732,8 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
704
732
  WebhookIdentityType2["APP"] = "APP";
705
733
  return WebhookIdentityType2;
706
734
  })(WebhookIdentityType || {});
707
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
708
- SortOrder2["ASC"] = "ASC";
709
- SortOrder2["DESC"] = "DESC";
710
- return SortOrder2;
711
- })(SortOrder || {});
712
735
 
713
736
  // src/restaurants-menus-v1-menu-menus.meta.ts
714
- function duplicateMenu2() {
715
- const payload = { id: ":id" };
716
- const getRequestOptions = duplicateMenu(payload);
717
- const getUrl = (context) => {
718
- const { url } = getRequestOptions(context);
719
- return url;
720
- };
721
- return {
722
- getUrl,
723
- httpMethod: "POST",
724
- path: "/v1/menus/{id}/duplicate",
725
- pathParams: { id: "id" },
726
- __requestType: null,
727
- __originalRequestType: null,
728
- __responseType: null,
729
- __originalResponseType: null
730
- };
731
- }
732
737
  function createMenu2() {
733
738
  const payload = {};
734
739
  const getRequestOptions = createMenu(payload);
@@ -891,6 +896,24 @@ function deleteMenu2() {
891
896
  __originalResponseType: null
892
897
  };
893
898
  }
899
+ function duplicateMenu2() {
900
+ const payload = { id: ":id" };
901
+ const getRequestOptions = duplicateMenu(payload);
902
+ const getUrl = (context) => {
903
+ const { url } = getRequestOptions(context);
904
+ return url;
905
+ };
906
+ return {
907
+ getUrl,
908
+ httpMethod: "POST",
909
+ path: "/v1/menus/{id}/duplicate",
910
+ pathParams: { id: "id" },
911
+ __requestType: null,
912
+ __originalRequestType: null,
913
+ __responseType: null,
914
+ __originalResponseType: null
915
+ };
916
+ }
894
917
  function getMenuSiteUrl2() {
895
918
  const payload = { id: ":id" };
896
919
  const getRequestOptions = getMenuSiteUrl(payload);