@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.mjs';
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';
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 };
package/build/es/meta.mjs CHANGED
@@ -1,5 +1,6 @@
1
1
  // src/restaurants-menus-v1-menu-menus.http.ts
2
2
  import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
+ import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
3
4
  import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
4
5
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
5
6
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
@@ -100,7 +101,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaura
100
101
  };
101
102
  return resolveUrl(Object.assign(opts, { domainToMappings }));
102
103
  }
103
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
104
+ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
104
105
  const domainToMappings = {
105
106
  "manage._base_domain_": [
106
107
  {
@@ -195,7 +196,7 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
195
196
  };
196
197
  return resolveUrl(Object.assign(opts, { domainToMappings }));
197
198
  }
198
- function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaurantsDuplicateMenuUrl(opts) {
199
+ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl(opts) {
199
200
  const domainToMappings = {
200
201
  "manage._base_domain_": [
201
202
  {
@@ -291,25 +292,6 @@ function resolveComWixpressRestaurantsMenusMenuV1RestaurantsDuplicateMenuRestaur
291
292
  return resolveUrl(Object.assign(opts, { domainToMappings }));
292
293
  }
293
294
  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
- }
313
295
  function createMenu(payload) {
314
296
  function __createMenu({ host }) {
315
297
  const serializedData = transformPaths(payload, [
@@ -456,6 +438,15 @@ function listMenus(payload) {
456
438
  }
457
439
  function queryMenus(payload) {
458
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
+ ]);
459
450
  const metadata = {
460
451
  entityFqdn: "wix.restaurants.menus.v1.menu",
461
452
  method: "POST",
@@ -466,10 +457,10 @@ function queryMenus(payload) {
466
457
  },
467
458
  url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusMenuUrl({
468
459
  protoPath: "/v1/menus/query",
469
- data: payload,
460
+ data: serializedData,
470
461
  host
471
462
  }),
472
- data: payload,
463
+ data: serializedData,
473
464
  transformResponse: (payload2) => transformPaths(payload2, [
474
465
  {
475
466
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -617,6 +608,25 @@ function deleteMenu(payload) {
617
608
  }
618
609
  return __deleteMenu;
619
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
+ }
620
630
  function getMenuSiteUrl(payload) {
621
631
  function __getMenuSiteUrl({ host }) {
622
632
  const metadata = {
@@ -638,6 +648,15 @@ function getMenuSiteUrl(payload) {
638
648
  }
639
649
  function queryMenusSiteUrl(payload) {
640
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
+ ]);
641
660
  const metadata = {
642
661
  entityFqdn: "wix.restaurants.menus.v1.menu",
643
662
  method: "POST",
@@ -647,9 +666,13 @@ function queryMenusSiteUrl(payload) {
647
666
  optInTransformResponse: true
648
667
  },
649
668
  url: resolveComWixpressRestaurantsMenusMenuV1RestaurantsMenusSiteUrlRestaurantsMenusSiteUrlUrl(
650
- { protoPath: "/v1/menus-site-url/menus/query", data: payload, host }
669
+ {
670
+ protoPath: "/v1/menus-site-url/menus/query",
671
+ data: serializedData,
672
+ host
673
+ }
651
674
  ),
652
- data: payload
675
+ data: serializedData
653
676
  };
654
677
  return metadata;
655
678
  }
@@ -657,6 +680,11 @@ function queryMenusSiteUrl(payload) {
657
680
  }
658
681
 
659
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 || {});
660
688
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
661
689
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
662
690
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -665,31 +693,8 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
665
693
  WebhookIdentityType2["APP"] = "APP";
666
694
  return WebhookIdentityType2;
667
695
  })(WebhookIdentityType || {});
668
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
669
- SortOrder2["ASC"] = "ASC";
670
- SortOrder2["DESC"] = "DESC";
671
- return SortOrder2;
672
- })(SortOrder || {});
673
696
 
674
697
  // 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
- }
693
698
  function createMenu2() {
694
699
  const payload = {};
695
700
  const getRequestOptions = createMenu(payload);
@@ -852,6 +857,24 @@ function deleteMenu2() {
852
857
  __originalResponseType: null
853
858
  };
854
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
+ }
855
878
  function getMenuSiteUrl2() {
856
879
  const payload = { id: ":id" };
857
880
  const getRequestOptions = getMenuSiteUrl(payload);