@wix/auto_sdk_restaurants_menus 1.0.76 → 1.0.78

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 +242 -224
  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 +204 -185
  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 +34 -28
  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 +242 -224
  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 +204 -185
  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 +34 -28
  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 +309 -224
  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 +282 -185
  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 +34 -28
  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 +309 -224
  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 +282 -185
  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 +34 -28
  48. package/build/internal/es/schemas.mjs.map +1 -1
  49. package/package.json +4 -4
@@ -1,16 +1,5 @@
1
1
  import * as z from 'zod';
2
2
 
3
- declare const DuplicateMenuRequest: z.ZodObject<{
4
- _id: z.ZodString;
5
- options: z.ZodOptional<z.ZodObject<{
6
- businessLocationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
7
- duplicateSubEntities: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
8
- menuName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
9
- }, z.core.$strip>>;
10
- }, z.core.$strip>;
11
- declare const DuplicateMenuResponse: z.ZodObject<{
12
- menuIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
13
- }, z.core.$strip>;
14
3
  declare const CreateMenuRequest: z.ZodObject<{
15
4
  menu: z.ZodObject<{
16
5
  _id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
@@ -317,9 +306,9 @@ declare const QueryMenusRequest: z.ZodObject<{
317
306
  }, z.core.$strict>>;
318
307
  sort: z.ZodOptional<z.ZodArray<z.ZodObject<{
319
308
  fieldName: z.ZodOptional<z.ZodEnum<{
309
+ name: "name";
320
310
  _createdDate: "_createdDate";
321
311
  _updatedDate: "_updatedDate";
322
- name: "name";
323
312
  description: "description";
324
313
  urlQueryParam: "urlQueryParam";
325
314
  }>>;
@@ -550,6 +539,17 @@ declare const DeleteMenuRequest: z.ZodObject<{
550
539
  menuId: z.ZodString;
551
540
  }, z.core.$strip>;
552
541
  declare const DeleteMenuResponse: z.ZodObject<{}, z.core.$strip>;
542
+ declare const DuplicateMenuRequest: z.ZodObject<{
543
+ _id: z.ZodString;
544
+ options: z.ZodOptional<z.ZodObject<{
545
+ businessLocationIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
546
+ duplicateSubEntities: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
547
+ menuName: z.ZodNullable<z.ZodOptional<z.ZodString>>;
548
+ }, z.core.$strip>>;
549
+ }, z.core.$strip>;
550
+ declare const DuplicateMenuResponse: z.ZodObject<{
551
+ menuIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
552
+ }, z.core.$strip>;
553
553
  declare const GetMenuSiteUrlRequest: z.ZodObject<{
554
554
  _id: z.ZodString;
555
555
  }, z.core.$strip>;
@@ -568,6 +568,10 @@ declare const QueryMenusSiteUrlRequest: z.ZodObject<{
568
568
  ASC: "ASC";
569
569
  DESC: "DESC";
570
570
  }>>;
571
+ origin: z.ZodOptional<z.ZodObject<{
572
+ latitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
573
+ longitude: z.ZodNullable<z.ZodOptional<z.ZodNumber>>;
574
+ }, z.core.$strip>>;
571
575
  }, z.core.$strip>>>;
572
576
  }, z.core.$strip>, z.ZodXor<readonly [z.ZodObject<{
573
577
  cursorPaging: z.ZodOptional<z.ZodNever>;
@@ -1,21 +1,5 @@
1
1
  // src/restaurants-menus-v1-menu-menus.schemas.ts
2
2
  import * as z from "zod";
3
- var DuplicateMenuRequest = z.object({
4
- _id: z.string().describe("Menu id to be duplicated.").regex(
5
- /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
6
- "Must be a valid GUID"
7
- ),
8
- options: z.object({
9
- businessLocationIds: z.array(z.string()).max(100).optional(),
10
- duplicateSubEntities: z.boolean().describe(
11
- "Indicates whether sub-entities (such as items) should be duplicated as well."
12
- ).optional().nullable(),
13
- menuName: z.string().describe("The new name of the duplicated menu.").max(500).optional().nullable()
14
- }).optional()
15
- });
16
- var DuplicateMenuResponse = z.object({
17
- menuIds: z.array(z.string()).optional()
18
- });
19
3
  var CreateMenuRequest = z.object({
20
4
  menu: z.object({
21
5
  _id: z.string().describe("Menu ID.").regex(
@@ -55,7 +39,7 @@ var CreateMenuRequest = z.object({
55
39
  "SEO tag inner content. For example, `<title> inner content </title>`."
56
40
  ).optional(),
57
41
  custom: z.boolean().describe(
58
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
42
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
59
43
  ).optional(),
60
44
  disabled: z.boolean().describe(
61
45
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -125,7 +109,7 @@ var CreateMenuResponse = z.object({
125
109
  "SEO tag inner content. For example, `<title> inner content </title>`."
126
110
  ).optional(),
127
111
  custom: z.boolean().describe(
128
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
112
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
129
113
  ).optional(),
130
114
  disabled: z.boolean().describe(
131
115
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -194,7 +178,7 @@ var BulkCreateMenusRequest = z.object({
194
178
  "SEO tag inner content. For example, `<title> inner content </title>`."
195
179
  ).optional(),
196
180
  custom: z.boolean().describe(
197
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
181
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
198
182
  ).optional(),
199
183
  disabled: z.boolean().describe(
200
184
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -287,7 +271,7 @@ var BulkCreateMenusResponse = z.object({
287
271
  "SEO tag inner content. For example, `<title> inner content </title>`."
288
272
  ).optional(),
289
273
  custom: z.boolean().describe(
290
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
274
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
291
275
  ).optional(),
292
276
  disabled: z.boolean().describe(
293
277
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -372,7 +356,7 @@ var GetMenuResponse = z.object({
372
356
  "SEO tag inner content. For example, `<title> inner content </title>`."
373
357
  ).optional(),
374
358
  custom: z.boolean().describe(
375
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
359
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
376
360
  ).optional(),
377
361
  disabled: z.boolean().describe(
378
362
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -455,7 +439,7 @@ var ListMenusResponse = z.object({
455
439
  "SEO tag inner content. For example, `<title> inner content </title>`."
456
440
  ).optional(),
457
441
  custom: z.boolean().describe(
458
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
442
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
459
443
  ).optional(),
460
444
  disabled: z.boolean().describe(
461
445
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -606,7 +590,7 @@ var QueryMenusResponse = z.object({
606
590
  "SEO tag inner content. For example, `<title> inner content </title>`."
607
591
  ).optional(),
608
592
  custom: z.boolean().describe(
609
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
593
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
610
594
  ).optional(),
611
595
  disabled: z.boolean().describe(
612
596
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -694,7 +678,7 @@ var UpdateMenuRequest = z.object({
694
678
  "SEO tag inner content. For example, `<title> inner content </title>`."
695
679
  ).optional(),
696
680
  custom: z.boolean().describe(
697
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
681
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
698
682
  ).optional(),
699
683
  disabled: z.boolean().describe(
700
684
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -764,7 +748,7 @@ var UpdateMenuResponse = z.object({
764
748
  "SEO tag inner content. For example, `<title> inner content </title>`."
765
749
  ).optional(),
766
750
  custom: z.boolean().describe(
767
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
751
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
768
752
  ).optional(),
769
753
  disabled: z.boolean().describe(
770
754
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -834,7 +818,7 @@ var BulkUpdateMenuRequest = z.object({
834
818
  "SEO tag inner content. For example, `<title> inner content </title>`."
835
819
  ).optional(),
836
820
  custom: z.boolean().describe(
837
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
821
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
838
822
  ).optional(),
839
823
  disabled: z.boolean().describe(
840
824
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -929,7 +913,7 @@ var BulkUpdateMenuResponse = z.object({
929
913
  "SEO tag inner content. For example, `<title> inner content </title>`."
930
914
  ).optional(),
931
915
  custom: z.boolean().describe(
932
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
916
+ 'Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages).\n\nLimitation: when `ResolveStaticPageSeoTags` is called without `seoData`, the per-page SEO data is read\nonly from the Vibe/Wix-managed-headless override store. That store holds nothing for classic Wix Editor\nor Wix Studio pages, so custom tags saved on those pages are missing from the response entirely. For\nthose pages `false` therefore does not mean "not a custom tag" \u2014 it means this API could not tell.\nPass `seoData` explicitly to resolve against a known set of tags.'
933
917
  ).optional(),
934
918
  disabled: z.boolean().describe(
935
919
  "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
@@ -994,6 +978,22 @@ var DeleteMenuRequest = z.object({
994
978
  )
995
979
  });
996
980
  var DeleteMenuResponse = z.object({});
981
+ var DuplicateMenuRequest = z.object({
982
+ _id: z.string().describe("Menu id to be duplicated.").regex(
983
+ /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
984
+ "Must be a valid GUID"
985
+ ),
986
+ options: z.object({
987
+ businessLocationIds: z.array(z.string()).max(100).optional(),
988
+ duplicateSubEntities: z.boolean().describe(
989
+ "Indicates whether sub-entities (such as items) should be duplicated as well."
990
+ ).optional().nullable(),
991
+ menuName: z.string().describe("The new name of the duplicated menu.").max(500).optional().nullable()
992
+ }).optional()
993
+ });
994
+ var DuplicateMenuResponse = z.object({
995
+ menuIds: z.array(z.string()).optional()
996
+ });
997
997
  var GetMenuSiteUrlRequest = z.object({
998
998
  _id: z.string().describe("Menu ID.").regex(
999
999
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
@@ -1015,7 +1015,13 @@ var QueryMenusSiteUrlRequest = z.object({
1015
1015
  sort: z.array(
1016
1016
  z.object({
1017
1017
  fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
1018
- order: z.enum(["ASC", "DESC"]).optional()
1018
+ order: z.enum(["ASC", "DESC"]).optional(),
1019
+ origin: z.object({
1020
+ latitude: z.number().describe("Address latitude.").optional().nullable(),
1021
+ longitude: z.number().describe("Address longitude.").optional().nullable()
1022
+ }).describe(
1023
+ "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
1024
+ ).optional()
1019
1025
  })
1020
1026
  ).optional()
1021
1027
  }),