@wix/auto_sdk_restaurants_menus 1.0.74 → 1.0.76

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.
@@ -1,9 +1,7 @@
1
1
  "use strict";
2
- var __create = Object.create;
3
2
  var __defProp = Object.defineProperty;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
- var __getProtoOf = Object.getPrototypeOf;
7
5
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
6
  var __export = (target, all) => {
9
7
  for (var name in all)
@@ -17,14 +15,6 @@ var __copyProps = (to, from, except, desc) => {
17
15
  }
18
16
  return to;
19
17
  };
20
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
- // If the importer is in node compatibility mode or this is not an ESM
22
- // file that has been converted to a CommonJS file using a Babel-
23
- // compatible transform (i.e. "__esModule" has not been set), then set
24
- // "default" to the CommonJS "module.exports" for node compatibility.
25
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
- mod
27
- ));
28
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
19
 
30
20
  // index.ts
@@ -722,1065 +712,6 @@ function queryMenusSiteUrl(payload) {
722
712
 
723
713
  // src/restaurants-menus-v1-menu-menus.universal.ts
724
714
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
725
-
726
- // src/restaurants-menus-v1-menu-menus.schemas.ts
727
- var z = __toESM(require("zod"));
728
- var DuplicateMenuRequest = z.object({
729
- _id: z.string().describe("Menu id to be duplicated.").regex(
730
- /^[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}$/,
731
- "Must be a valid GUID"
732
- ),
733
- options: z.object({
734
- businessLocationIds: z.array(z.string()).max(100).optional(),
735
- duplicateSubEntities: z.boolean().describe(
736
- "Indicates whether sub-entities (such as items) should be duplicated as well."
737
- ).optional().nullable(),
738
- menuName: z.string().describe("The new name of the duplicated menu.").max(500).optional().nullable()
739
- }).optional()
740
- });
741
- var DuplicateMenuResponse = z.object({
742
- menuIds: z.array(z.string()).optional()
743
- });
744
- var CreateMenuRequest = z.object({
745
- menu: z.object({
746
- _id: z.string().describe("Menu ID.").regex(
747
- /^[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}$/,
748
- "Must be a valid GUID"
749
- ).optional().nullable(),
750
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
751
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
752
- ).optional().nullable(),
753
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
754
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
755
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
756
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
757
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
758
- sectionIds: z.array(z.string()).max(100).optional(),
759
- extendedFields: z.object({
760
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
761
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
762
- ).optional()
763
- }).describe("Extended fields.").optional(),
764
- urlQueryParam: z.string().describe(
765
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
766
- ).max(500).optional().nullable(),
767
- seoData: z.object({
768
- tags: z.array(
769
- z.object({
770
- type: z.string().describe(
771
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
772
- ).optional(),
773
- props: z.record(z.string(), z.any()).describe(
774
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
775
- ).optional().nullable(),
776
- meta: z.record(z.string(), z.any()).describe(
777
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
778
- ).optional().nullable(),
779
- children: z.string().describe(
780
- "SEO tag inner content. For example, `<title> inner content </title>`."
781
- ).optional(),
782
- custom: z.boolean().describe(
783
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
784
- ).optional(),
785
- disabled: z.boolean().describe(
786
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
787
- ).optional()
788
- })
789
- ).optional(),
790
- settings: z.object({
791
- preventAutoRedirect: z.boolean().describe(
792
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
793
- ).optional(),
794
- keywords: z.array(
795
- z.object({
796
- term: z.string().describe("Keyword value.").optional(),
797
- isMain: z.boolean().describe(
798
- "Whether the keyword is the main focus keyword."
799
- ).optional(),
800
- origin: z.string().describe(
801
- "The source that added the keyword terms to the SEO settings."
802
- ).max(1e3).optional().nullable()
803
- })
804
- ).max(5).optional()
805
- }).describe("SEO general settings.").optional()
806
- }).describe("Custom SEO data for the menu.").optional(),
807
- businessLocationId: z.string().describe(
808
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
809
- ).regex(
810
- /^[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}$/,
811
- "Must be a valid GUID"
812
- ).optional().nullable()
813
- }).describe("Menu details.")
814
- });
815
- var CreateMenuResponse = z.object({
816
- _id: z.string().describe("Menu ID.").regex(
817
- /^[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}$/,
818
- "Must be a valid GUID"
819
- ).optional().nullable(),
820
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
821
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
822
- ).optional().nullable(),
823
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
824
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
825
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
826
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
827
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
828
- sectionIds: z.array(z.string()).max(100).optional(),
829
- extendedFields: z.object({
830
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
831
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
832
- ).optional()
833
- }).describe("Extended fields.").optional(),
834
- urlQueryParam: z.string().describe(
835
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
836
- ).max(500).optional().nullable(),
837
- seoData: z.object({
838
- tags: z.array(
839
- z.object({
840
- type: z.string().describe(
841
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
842
- ).optional(),
843
- props: z.record(z.string(), z.any()).describe(
844
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
845
- ).optional().nullable(),
846
- meta: z.record(z.string(), z.any()).describe(
847
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
848
- ).optional().nullable(),
849
- children: z.string().describe(
850
- "SEO tag inner content. For example, `<title> inner content </title>`."
851
- ).optional(),
852
- custom: z.boolean().describe(
853
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
854
- ).optional(),
855
- disabled: z.boolean().describe(
856
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
857
- ).optional()
858
- })
859
- ).optional(),
860
- settings: z.object({
861
- preventAutoRedirect: z.boolean().describe(
862
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
863
- ).optional(),
864
- keywords: z.array(
865
- z.object({
866
- term: z.string().describe("Keyword value.").optional(),
867
- isMain: z.boolean().describe("Whether the keyword is the main focus keyword.").optional(),
868
- origin: z.string().describe(
869
- "The source that added the keyword terms to the SEO settings."
870
- ).max(1e3).optional().nullable()
871
- })
872
- ).max(5).optional()
873
- }).describe("SEO general settings.").optional()
874
- }).describe("Custom SEO data for the menu.").optional(),
875
- businessLocationId: z.string().describe(
876
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
877
- ).regex(
878
- /^[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}$/,
879
- "Must be a valid GUID"
880
- ).optional().nullable()
881
- });
882
- var BulkCreateMenusRequest = z.object({
883
- menus: z.array(
884
- z.object({
885
- _id: z.string().describe("Menu ID.").regex(
886
- /^[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}$/,
887
- "Must be a valid GUID"
888
- ).optional().nullable(),
889
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
890
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
891
- ).optional().nullable(),
892
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
893
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
894
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
895
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
896
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
897
- sectionIds: z.array(z.string()).max(100).optional(),
898
- extendedFields: z.object({
899
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
900
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
901
- ).optional()
902
- }).describe("Extended fields.").optional(),
903
- urlQueryParam: z.string().describe(
904
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
905
- ).max(500).optional().nullable(),
906
- seoData: z.object({
907
- tags: z.array(
908
- z.object({
909
- type: z.string().describe(
910
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
911
- ).optional(),
912
- props: z.record(z.string(), z.any()).describe(
913
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
914
- ).optional().nullable(),
915
- meta: z.record(z.string(), z.any()).describe(
916
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
917
- ).optional().nullable(),
918
- children: z.string().describe(
919
- "SEO tag inner content. For example, `<title> inner content </title>`."
920
- ).optional(),
921
- custom: z.boolean().describe(
922
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
923
- ).optional(),
924
- disabled: z.boolean().describe(
925
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
926
- ).optional()
927
- })
928
- ).optional(),
929
- settings: z.object({
930
- preventAutoRedirect: z.boolean().describe(
931
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
932
- ).optional(),
933
- keywords: z.array(
934
- z.object({
935
- term: z.string().describe("Keyword value.").optional(),
936
- isMain: z.boolean().describe(
937
- "Whether the keyword is the main focus keyword."
938
- ).optional(),
939
- origin: z.string().describe(
940
- "The source that added the keyword terms to the SEO settings."
941
- ).max(1e3).optional().nullable()
942
- })
943
- ).max(5).optional()
944
- }).describe("SEO general settings.").optional()
945
- }).describe("Custom SEO data for the menu.").optional(),
946
- businessLocationId: z.string().describe(
947
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
948
- ).regex(
949
- /^[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}$/,
950
- "Must be a valid GUID"
951
- ).optional().nullable()
952
- })
953
- ).max(100),
954
- options: z.object({
955
- returnEntity: z.boolean().describe("Whether to receive the created menus in the response.").optional()
956
- }).optional()
957
- });
958
- var BulkCreateMenusResponse = z.object({
959
- results: z.array(
960
- z.object({
961
- menuMetadata: z.object({
962
- _id: z.string().describe(
963
- "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
964
- ).optional().nullable(),
965
- originalIndex: z.number().int().describe(
966
- "Index of the item within the request array. Allows for correlation between request and response items."
967
- ).optional(),
968
- success: z.boolean().describe(
969
- "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
970
- ).optional(),
971
- error: z.object({
972
- code: z.string().describe("Error code.").optional(),
973
- description: z.string().describe("Description of the error.").optional(),
974
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
975
- }).describe("Details about the error in case of failure.").optional()
976
- }).describe("Whether to receive the created menus in the response.").optional(),
977
- menu: z.object({
978
- _id: z.string().describe("Menu ID.").regex(
979
- /^[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}$/,
980
- "Must be a valid GUID"
981
- ).optional().nullable(),
982
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
983
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
984
- ).optional().nullable(),
985
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
986
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
987
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
988
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
989
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
990
- sectionIds: z.array(z.string()).max(100).optional(),
991
- extendedFields: z.object({
992
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
993
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
994
- ).optional()
995
- }).describe("Extended fields.").optional(),
996
- urlQueryParam: z.string().describe(
997
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
998
- ).max(500).optional().nullable(),
999
- seoData: z.object({
1000
- tags: z.array(
1001
- z.object({
1002
- type: z.string().describe(
1003
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1004
- ).optional(),
1005
- props: z.record(z.string(), z.any()).describe(
1006
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1007
- ).optional().nullable(),
1008
- meta: z.record(z.string(), z.any()).describe(
1009
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1010
- ).optional().nullable(),
1011
- children: z.string().describe(
1012
- "SEO tag inner content. For example, `<title> inner content </title>`."
1013
- ).optional(),
1014
- custom: z.boolean().describe(
1015
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1016
- ).optional(),
1017
- disabled: z.boolean().describe(
1018
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1019
- ).optional()
1020
- })
1021
- ).optional(),
1022
- settings: z.object({
1023
- preventAutoRedirect: z.boolean().describe(
1024
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1025
- ).optional(),
1026
- keywords: z.array(
1027
- z.object({
1028
- term: z.string().describe("Keyword value.").optional(),
1029
- isMain: z.boolean().describe(
1030
- "Whether the keyword is the main focus keyword."
1031
- ).optional(),
1032
- origin: z.string().describe(
1033
- "The source that added the keyword terms to the SEO settings."
1034
- ).max(1e3).optional().nullable()
1035
- })
1036
- ).max(5).optional()
1037
- }).describe("SEO general settings.").optional()
1038
- }).describe("Custom SEO data for the menu.").optional(),
1039
- businessLocationId: z.string().describe(
1040
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1041
- ).regex(
1042
- /^[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}$/,
1043
- "Must be a valid GUID"
1044
- ).optional().nullable()
1045
- }).describe("Created menu.").optional()
1046
- })
1047
- ).optional(),
1048
- bulkActionMetadata: z.object({
1049
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
1050
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
1051
- undetailedFailures: z.number().int().describe(
1052
- "Number of failures without details because detailed failure threshold was exceeded."
1053
- ).optional()
1054
- }).describe("Metadata for the API call.").optional()
1055
- });
1056
- var GetMenuRequest = z.object({
1057
- menuId: z.string().describe("Menu ID.").regex(
1058
- /^[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}$/,
1059
- "Must be a valid GUID"
1060
- )
1061
- });
1062
- var GetMenuResponse = z.object({
1063
- _id: z.string().describe("Menu ID.").regex(
1064
- /^[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}$/,
1065
- "Must be a valid GUID"
1066
- ).optional().nullable(),
1067
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1068
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1069
- ).optional().nullable(),
1070
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1071
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1072
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1073
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1074
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1075
- sectionIds: z.array(z.string()).max(100).optional(),
1076
- extendedFields: z.object({
1077
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1078
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1079
- ).optional()
1080
- }).describe("Extended fields.").optional(),
1081
- urlQueryParam: z.string().describe(
1082
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1083
- ).max(500).optional().nullable(),
1084
- seoData: z.object({
1085
- tags: z.array(
1086
- z.object({
1087
- type: z.string().describe(
1088
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1089
- ).optional(),
1090
- props: z.record(z.string(), z.any()).describe(
1091
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1092
- ).optional().nullable(),
1093
- meta: z.record(z.string(), z.any()).describe(
1094
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1095
- ).optional().nullable(),
1096
- children: z.string().describe(
1097
- "SEO tag inner content. For example, `<title> inner content </title>`."
1098
- ).optional(),
1099
- custom: z.boolean().describe(
1100
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1101
- ).optional(),
1102
- disabled: z.boolean().describe(
1103
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1104
- ).optional()
1105
- })
1106
- ).optional(),
1107
- settings: z.object({
1108
- preventAutoRedirect: z.boolean().describe(
1109
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1110
- ).optional(),
1111
- keywords: z.array(
1112
- z.object({
1113
- term: z.string().describe("Keyword value.").optional(),
1114
- isMain: z.boolean().describe("Whether the keyword is the main focus keyword.").optional(),
1115
- origin: z.string().describe(
1116
- "The source that added the keyword terms to the SEO settings."
1117
- ).max(1e3).optional().nullable()
1118
- })
1119
- ).max(5).optional()
1120
- }).describe("SEO general settings.").optional()
1121
- }).describe("Custom SEO data for the menu.").optional(),
1122
- businessLocationId: z.string().describe(
1123
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1124
- ).regex(
1125
- /^[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}$/,
1126
- "Must be a valid GUID"
1127
- ).optional().nullable()
1128
- });
1129
- var ListMenusRequest = z.object({
1130
- options: z.object({
1131
- menuIds: z.array(z.string()).max(500).optional(),
1132
- paging: z.object({
1133
- limit: z.number().int().describe("Number of items to load.").min(0).max(500).optional().nullable(),
1134
- cursor: z.string().describe(
1135
- "Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
1136
- ).optional().nullable()
1137
- }).describe("The metadata of the paginated results.").optional(),
1138
- onlyVisible: z.boolean().describe(
1139
- "Whether to return only menus that are visible to site visitors."
1140
- ).optional().nullable()
1141
- }).optional()
1142
- });
1143
- var ListMenusResponse = z.object({
1144
- menus: z.array(
1145
- z.object({
1146
- _id: z.string().describe("Menu ID.").regex(
1147
- /^[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}$/,
1148
- "Must be a valid GUID"
1149
- ).optional().nullable(),
1150
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1151
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1152
- ).optional().nullable(),
1153
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1154
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1155
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1156
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1157
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1158
- sectionIds: z.array(z.string()).max(100).optional(),
1159
- extendedFields: z.object({
1160
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1161
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1162
- ).optional()
1163
- }).describe("Extended fields.").optional(),
1164
- urlQueryParam: z.string().describe(
1165
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1166
- ).max(500).optional().nullable(),
1167
- seoData: z.object({
1168
- tags: z.array(
1169
- z.object({
1170
- type: z.string().describe(
1171
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1172
- ).optional(),
1173
- props: z.record(z.string(), z.any()).describe(
1174
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1175
- ).optional().nullable(),
1176
- meta: z.record(z.string(), z.any()).describe(
1177
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1178
- ).optional().nullable(),
1179
- children: z.string().describe(
1180
- "SEO tag inner content. For example, `<title> inner content </title>`."
1181
- ).optional(),
1182
- custom: z.boolean().describe(
1183
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1184
- ).optional(),
1185
- disabled: z.boolean().describe(
1186
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1187
- ).optional()
1188
- })
1189
- ).optional(),
1190
- settings: z.object({
1191
- preventAutoRedirect: z.boolean().describe(
1192
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1193
- ).optional(),
1194
- keywords: z.array(
1195
- z.object({
1196
- term: z.string().describe("Keyword value.").optional(),
1197
- isMain: z.boolean().describe(
1198
- "Whether the keyword is the main focus keyword."
1199
- ).optional(),
1200
- origin: z.string().describe(
1201
- "The source that added the keyword terms to the SEO settings."
1202
- ).max(1e3).optional().nullable()
1203
- })
1204
- ).max(5).optional()
1205
- }).describe("SEO general settings.").optional()
1206
- }).describe("Custom SEO data for the menu.").optional(),
1207
- businessLocationId: z.string().describe(
1208
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1209
- ).regex(
1210
- /^[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}$/,
1211
- "Must be a valid GUID"
1212
- ).optional().nullable()
1213
- })
1214
- ).optional(),
1215
- pagingMetadata: z.object({
1216
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
1217
- cursors: z.object({
1218
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
1219
- prev: z.string().describe(
1220
- "Cursor pointing to previous page in the list of results."
1221
- ).optional().nullable()
1222
- }).describe("Offset that was requested.").optional(),
1223
- hasNext: z.boolean().describe(
1224
- "Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
1225
- ).optional().nullable()
1226
- }).describe("The metadata of the paginated results.").optional()
1227
- });
1228
- var QueryMenusRequest = z.object({
1229
- query: z.object({
1230
- filter: z.object({
1231
- _id: z.object({
1232
- $eq: z.string(),
1233
- $in: z.array(z.string()),
1234
- $ne: z.string(),
1235
- $nin: z.array(z.string())
1236
- }).partial().strict().optional(),
1237
- sectionIds: z.object({ $hasSome: z.array(z.string()) }).partial().strict().optional(),
1238
- name: z.object({
1239
- $eq: z.string(),
1240
- $in: z.array(z.string()),
1241
- $ne: z.string(),
1242
- $nin: z.array(z.string()),
1243
- $startsWith: z.string()
1244
- }).partial().strict().optional(),
1245
- description: z.object({
1246
- $eq: z.string(),
1247
- $in: z.array(z.string()),
1248
- $ne: z.string(),
1249
- $nin: z.array(z.string()),
1250
- $startsWith: z.string()
1251
- }).partial().strict().optional(),
1252
- urlQueryParam: z.object({
1253
- $eq: z.string(),
1254
- $in: z.array(z.string()),
1255
- $ne: z.string(),
1256
- $nin: z.array(z.string()),
1257
- $startsWith: z.string()
1258
- }).partial().strict().optional(),
1259
- _createdDate: z.object({
1260
- $eq: z.string(),
1261
- $gt: z.string(),
1262
- $gte: z.string(),
1263
- $lt: z.string(),
1264
- $lte: z.string(),
1265
- $ne: z.string()
1266
- }).partial().strict().optional(),
1267
- _updatedDate: z.object({
1268
- $eq: z.string(),
1269
- $gt: z.string(),
1270
- $gte: z.string(),
1271
- $lt: z.string(),
1272
- $lte: z.string(),
1273
- $ne: z.string()
1274
- }).partial().strict().optional(),
1275
- visible: z.object({ $eq: z.boolean(), $ne: z.boolean() }).partial().strict().optional(),
1276
- $and: z.array(z.any()).optional(),
1277
- $or: z.array(z.any()).optional(),
1278
- $not: z.any().optional()
1279
- }).strict().optional(),
1280
- sort: z.array(
1281
- z.object({
1282
- fieldName: z.enum([
1283
- "name",
1284
- "description",
1285
- "urlQueryParam",
1286
- "_createdDate",
1287
- "_updatedDate"
1288
- ]).optional(),
1289
- order: z.enum(["ASC", "DESC"]).optional()
1290
- })
1291
- ).optional()
1292
- }).catchall(z.any()).describe("Query options.")
1293
- });
1294
- var QueryMenusResponse = z.object({
1295
- menus: z.array(
1296
- z.object({
1297
- _id: z.string().describe("Menu ID.").regex(
1298
- /^[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}$/,
1299
- "Must be a valid GUID"
1300
- ).optional().nullable(),
1301
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1302
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1303
- ).optional().nullable(),
1304
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1305
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1306
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1307
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1308
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1309
- sectionIds: z.array(z.string()).max(100).optional(),
1310
- extendedFields: z.object({
1311
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1312
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1313
- ).optional()
1314
- }).describe("Extended fields.").optional(),
1315
- urlQueryParam: z.string().describe(
1316
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1317
- ).max(500).optional().nullable(),
1318
- seoData: z.object({
1319
- tags: z.array(
1320
- z.object({
1321
- type: z.string().describe(
1322
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1323
- ).optional(),
1324
- props: z.record(z.string(), z.any()).describe(
1325
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1326
- ).optional().nullable(),
1327
- meta: z.record(z.string(), z.any()).describe(
1328
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1329
- ).optional().nullable(),
1330
- children: z.string().describe(
1331
- "SEO tag inner content. For example, `<title> inner content </title>`."
1332
- ).optional(),
1333
- custom: z.boolean().describe(
1334
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1335
- ).optional(),
1336
- disabled: z.boolean().describe(
1337
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1338
- ).optional()
1339
- })
1340
- ).optional(),
1341
- settings: z.object({
1342
- preventAutoRedirect: z.boolean().describe(
1343
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1344
- ).optional(),
1345
- keywords: z.array(
1346
- z.object({
1347
- term: z.string().describe("Keyword value.").optional(),
1348
- isMain: z.boolean().describe(
1349
- "Whether the keyword is the main focus keyword."
1350
- ).optional(),
1351
- origin: z.string().describe(
1352
- "The source that added the keyword terms to the SEO settings."
1353
- ).max(1e3).optional().nullable()
1354
- })
1355
- ).max(5).optional()
1356
- }).describe("SEO general settings.").optional()
1357
- }).describe("Custom SEO data for the menu.").optional(),
1358
- businessLocationId: z.string().describe(
1359
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1360
- ).regex(
1361
- /^[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}$/,
1362
- "Must be a valid GUID"
1363
- ).optional().nullable()
1364
- })
1365
- ).optional(),
1366
- pagingMetadata: z.object({
1367
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
1368
- cursors: z.object({
1369
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
1370
- prev: z.string().describe(
1371
- "Cursor pointing to previous page in the list of results."
1372
- ).optional().nullable()
1373
- }).describe("Offset that was requested.").optional(),
1374
- hasNext: z.boolean().describe(
1375
- "Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
1376
- ).optional().nullable()
1377
- }).describe("The metadata of the paginated results.").optional()
1378
- });
1379
- var UpdateMenuRequest = z.object({
1380
- _id: z.string().describe("Menu ID.").regex(
1381
- /^[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}$/,
1382
- "Must be a valid GUID"
1383
- ),
1384
- menu: z.object({
1385
- _id: z.string().describe("Menu ID.").regex(
1386
- /^[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}$/,
1387
- "Must be a valid GUID"
1388
- ).optional().nullable(),
1389
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1390
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1391
- ),
1392
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1393
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1394
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1395
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1396
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1397
- sectionIds: z.array(z.string()).max(100).optional(),
1398
- extendedFields: z.object({
1399
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1400
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1401
- ).optional()
1402
- }).describe("Extended fields.").optional(),
1403
- urlQueryParam: z.string().describe(
1404
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1405
- ).max(500).optional().nullable(),
1406
- seoData: z.object({
1407
- tags: z.array(
1408
- z.object({
1409
- type: z.string().describe(
1410
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1411
- ).optional(),
1412
- props: z.record(z.string(), z.any()).describe(
1413
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1414
- ).optional().nullable(),
1415
- meta: z.record(z.string(), z.any()).describe(
1416
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1417
- ).optional().nullable(),
1418
- children: z.string().describe(
1419
- "SEO tag inner content. For example, `<title> inner content </title>`."
1420
- ).optional(),
1421
- custom: z.boolean().describe(
1422
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1423
- ).optional(),
1424
- disabled: z.boolean().describe(
1425
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1426
- ).optional()
1427
- })
1428
- ).optional(),
1429
- settings: z.object({
1430
- preventAutoRedirect: z.boolean().describe(
1431
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1432
- ).optional(),
1433
- keywords: z.array(
1434
- z.object({
1435
- term: z.string().describe("Keyword value.").optional(),
1436
- isMain: z.boolean().describe(
1437
- "Whether the keyword is the main focus keyword."
1438
- ).optional(),
1439
- origin: z.string().describe(
1440
- "The source that added the keyword terms to the SEO settings."
1441
- ).max(1e3).optional().nullable()
1442
- })
1443
- ).max(5).optional()
1444
- }).describe("SEO general settings.").optional()
1445
- }).describe("Custom SEO data for the menu.").optional(),
1446
- businessLocationId: z.string().describe(
1447
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1448
- ).regex(
1449
- /^[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}$/,
1450
- "Must be a valid GUID"
1451
- ).optional().nullable()
1452
- }).describe("Menu to update.")
1453
- });
1454
- var UpdateMenuResponse = z.object({
1455
- _id: z.string().describe("Menu ID.").regex(
1456
- /^[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}$/,
1457
- "Must be a valid GUID"
1458
- ).optional().nullable(),
1459
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1460
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1461
- ).optional().nullable(),
1462
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1463
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1464
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1465
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1466
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1467
- sectionIds: z.array(z.string()).max(100).optional(),
1468
- extendedFields: z.object({
1469
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1470
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1471
- ).optional()
1472
- }).describe("Extended fields.").optional(),
1473
- urlQueryParam: z.string().describe(
1474
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1475
- ).max(500).optional().nullable(),
1476
- seoData: z.object({
1477
- tags: z.array(
1478
- z.object({
1479
- type: z.string().describe(
1480
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1481
- ).optional(),
1482
- props: z.record(z.string(), z.any()).describe(
1483
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1484
- ).optional().nullable(),
1485
- meta: z.record(z.string(), z.any()).describe(
1486
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1487
- ).optional().nullable(),
1488
- children: z.string().describe(
1489
- "SEO tag inner content. For example, `<title> inner content </title>`."
1490
- ).optional(),
1491
- custom: z.boolean().describe(
1492
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1493
- ).optional(),
1494
- disabled: z.boolean().describe(
1495
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1496
- ).optional()
1497
- })
1498
- ).optional(),
1499
- settings: z.object({
1500
- preventAutoRedirect: z.boolean().describe(
1501
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1502
- ).optional(),
1503
- keywords: z.array(
1504
- z.object({
1505
- term: z.string().describe("Keyword value.").optional(),
1506
- isMain: z.boolean().describe("Whether the keyword is the main focus keyword.").optional(),
1507
- origin: z.string().describe(
1508
- "The source that added the keyword terms to the SEO settings."
1509
- ).max(1e3).optional().nullable()
1510
- })
1511
- ).max(5).optional()
1512
- }).describe("SEO general settings.").optional()
1513
- }).describe("Custom SEO data for the menu.").optional(),
1514
- businessLocationId: z.string().describe(
1515
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1516
- ).regex(
1517
- /^[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}$/,
1518
- "Must be a valid GUID"
1519
- ).optional().nullable()
1520
- });
1521
- var BulkUpdateMenuRequest = z.object({
1522
- menus: z.array(
1523
- z.object({
1524
- menu: z.object({
1525
- _id: z.string().describe("Menu ID.").regex(
1526
- /^[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}$/,
1527
- "Must be a valid GUID"
1528
- ),
1529
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1530
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1531
- ),
1532
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1533
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1534
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1535
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1536
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1537
- sectionIds: z.array(z.string()).max(100).optional(),
1538
- extendedFields: z.object({
1539
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1540
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1541
- ).optional()
1542
- }).describe("Extended fields.").optional(),
1543
- urlQueryParam: z.string().describe(
1544
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1545
- ).max(500).optional().nullable(),
1546
- seoData: z.object({
1547
- tags: z.array(
1548
- z.object({
1549
- type: z.string().describe(
1550
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1551
- ).optional(),
1552
- props: z.record(z.string(), z.any()).describe(
1553
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1554
- ).optional().nullable(),
1555
- meta: z.record(z.string(), z.any()).describe(
1556
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1557
- ).optional().nullable(),
1558
- children: z.string().describe(
1559
- "SEO tag inner content. For example, `<title> inner content </title>`."
1560
- ).optional(),
1561
- custom: z.boolean().describe(
1562
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1563
- ).optional(),
1564
- disabled: z.boolean().describe(
1565
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1566
- ).optional()
1567
- })
1568
- ).optional(),
1569
- settings: z.object({
1570
- preventAutoRedirect: z.boolean().describe(
1571
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1572
- ).optional(),
1573
- keywords: z.array(
1574
- z.object({
1575
- term: z.string().describe("Keyword value.").optional(),
1576
- isMain: z.boolean().describe(
1577
- "Whether the keyword is the main focus keyword."
1578
- ).optional(),
1579
- origin: z.string().describe(
1580
- "The source that added the keyword terms to the SEO settings."
1581
- ).max(1e3).optional().nullable()
1582
- })
1583
- ).max(5).optional()
1584
- }).describe("SEO general settings.").optional()
1585
- }).describe("Custom SEO data for the menu.").optional(),
1586
- businessLocationId: z.string().describe(
1587
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1588
- ).regex(
1589
- /^[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}$/,
1590
- "Must be a valid GUID"
1591
- ).optional().nullable()
1592
- }).describe("Menu to updated.").optional(),
1593
- mask: z.array(z.string()).optional()
1594
- })
1595
- ).min(1).max(100),
1596
- options: z.object({
1597
- returnEntity: z.boolean().describe("Whether to receive the entity in the response.").optional()
1598
- }).optional()
1599
- });
1600
- var BulkUpdateMenuResponse = z.object({
1601
- results: z.array(
1602
- z.object({
1603
- menuMetadata: z.object({
1604
- _id: z.string().describe(
1605
- "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
1606
- ).optional().nullable(),
1607
- originalIndex: z.number().int().describe(
1608
- "Index of the item within the request array. Allows for correlation between request and response items."
1609
- ).optional(),
1610
- success: z.boolean().describe(
1611
- "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
1612
- ).optional(),
1613
- error: z.object({
1614
- code: z.string().describe("Error code.").optional(),
1615
- description: z.string().describe("Description of the error.").optional(),
1616
- data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
1617
- }).describe("Details about the error in case of failure.").optional()
1618
- }).describe("Metadata for menu update.").optional(),
1619
- menu: z.object({
1620
- _id: z.string().describe("Menu ID.").regex(
1621
- /^[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}$/,
1622
- "Must be a valid GUID"
1623
- ).optional().nullable(),
1624
- revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1625
- "Revision number, which increments by 1 each time the menu is updated. To prevent conflicting changes, the current revision must be passed when updating the menu. Ignored when creating a menu."
1626
- ).optional().nullable(),
1627
- _createdDate: z.date().describe("Date and time the menu was created.").optional().nullable(),
1628
- _updatedDate: z.date().describe("Date and time the menu was updated.").optional().nullable(),
1629
- name: z.string().describe("Menu name.").min(1).max(500).optional(),
1630
- description: z.string().describe("Menu description.").max(1500).optional().nullable(),
1631
- visible: z.boolean().describe("Whether the menu visible to site visitors.").optional().nullable(),
1632
- sectionIds: z.array(z.string()).max(100).optional(),
1633
- extendedFields: z.object({
1634
- namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1635
- "Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
1636
- ).optional()
1637
- }).describe("Extended fields.").optional(),
1638
- urlQueryParam: z.string().describe(
1639
- "Part of the site URL, that redirects to the menu. For example, in the URL `www.mywebsite.com/our-menus/dinner-menu`, `dinner-menu` is the field value."
1640
- ).max(500).optional().nullable(),
1641
- seoData: z.object({
1642
- tags: z.array(
1643
- z.object({
1644
- type: z.string().describe(
1645
- "SEO tag type.\n\n\nSupported values: `title`, `meta`, `script`, `link`."
1646
- ).optional(),
1647
- props: z.record(z.string(), z.any()).describe(
1648
- 'A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.\nFor example: `{"name": "description", "content": "the description itself"}`.'
1649
- ).optional().nullable(),
1650
- meta: z.record(z.string(), z.any()).describe(
1651
- 'SEO tag metadata. For example, `{"height": 300, "width": 240}`.'
1652
- ).optional().nullable(),
1653
- children: z.string().describe(
1654
- "SEO tag inner content. For example, `<title> inner content </title>`."
1655
- ).optional(),
1656
- custom: z.boolean().describe(
1657
- "Whether the tag is a [custom tag](https://support.wix.com/en/article/adding-additional-meta-tags-to-your-sites-pages)."
1658
- ).optional(),
1659
- disabled: z.boolean().describe(
1660
- "Whether the tag is disabled. If the tag is disabled, people can't find your page when searching for this phrase in search engines."
1661
- ).optional()
1662
- })
1663
- ).optional(),
1664
- settings: z.object({
1665
- preventAutoRedirect: z.boolean().describe(
1666
- "Whether the [automatical redirect visits](https://support.wix.com/en/article/customizing-your-pages-seo-settings-in-the-seo-panel) from the old URL to the new one is enabled.\n\n\nDefault: `false` (automatical redirect is enabled)."
1667
- ).optional(),
1668
- keywords: z.array(
1669
- z.object({
1670
- term: z.string().describe("Keyword value.").optional(),
1671
- isMain: z.boolean().describe(
1672
- "Whether the keyword is the main focus keyword."
1673
- ).optional(),
1674
- origin: z.string().describe(
1675
- "The source that added the keyword terms to the SEO settings."
1676
- ).max(1e3).optional().nullable()
1677
- })
1678
- ).max(5).optional()
1679
- }).describe("SEO general settings.").optional()
1680
- }).describe("Custom SEO data for the menu.").optional(),
1681
- businessLocationId: z.string().describe(
1682
- "ID of the business location ([SDK](https://dev.wix.com/docs/sdk/backend-modules/restaurants/wix-restaurants-new/about-business-locations) | [REST](https://dev.wix.com/docs/rest/business-solutions/restaurants/wix-restaurants-new/about-business-locations)) where this menu is available."
1683
- ).regex(
1684
- /^[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}$/,
1685
- "Must be a valid GUID"
1686
- ).optional().nullable()
1687
- }).describe(
1688
- "Updated menu. Only returned if `returnEntity` is set to `true`."
1689
- ).optional()
1690
- })
1691
- ).min(1).max(100).optional(),
1692
- bulkActionMetadata: z.object({
1693
- totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
1694
- totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
1695
- undetailedFailures: z.number().int().describe(
1696
- "Number of failures without details because detailed failure threshold was exceeded."
1697
- ).optional()
1698
- }).describe("Metadata for the API call.").optional()
1699
- });
1700
- var UpdateExtendedFieldsRequest = z.object({
1701
- _id: z.string().describe("ID of the entity to update."),
1702
- namespace: z.string().describe(
1703
- "Identifier for the app whose extended fields are being updated."
1704
- ),
1705
- options: z.object({
1706
- namespaceData: z.record(z.string(), z.any()).describe(
1707
- "Data to update. Structured according to the [schema](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields#json-schema-for-extended-fields) defined when the extended fields were configured."
1708
- )
1709
- })
1710
- });
1711
- var UpdateExtendedFieldsResponse = z.object({
1712
- namespace: z.string().describe("Namespace of the app.").optional(),
1713
- namespaceData: z.record(z.string(), z.any()).describe("Updated extended fields data.").optional().nullable()
1714
- });
1715
- var DeleteMenuRequest = z.object({
1716
- menuId: z.string().describe("Menu ID.").regex(
1717
- /^[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}$/,
1718
- "Must be a valid GUID"
1719
- )
1720
- });
1721
- var DeleteMenuResponse = z.object({});
1722
- var GetMenuSiteUrlRequest = z.object({
1723
- _id: z.string().describe("Menu ID.").regex(
1724
- /^[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}$/,
1725
- "Must be a valid GUID"
1726
- )
1727
- });
1728
- var GetMenuSiteUrlResponse = z.object({
1729
- menuSiteUrl: z.object({
1730
- path: z.string().describe("Path URL.").min(1).max(1e3).optional()
1731
- }).describe("Retrieved menuInfo with path url.").optional()
1732
- });
1733
- var QueryMenusSiteUrlRequest = z.object({
1734
- options: z.object({
1735
- query: z.intersection(
1736
- z.object({
1737
- filter: z.record(z.string(), z.any()).describe(
1738
- 'Filter object in the following format:\n`"filter" : {\n"fieldName1": "value1",\n"fieldName2":{"$operator":"value2"}\n}`\nExample of operators: `$eq`, `$ne`, `$lt`, `$lte`, `$gt`, `$gte`, `$in`, `$hasSome`, `$hasAll`, `$startsWith`, `$contains`'
1739
- ).optional().nullable(),
1740
- sort: z.array(
1741
- z.object({
1742
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
1743
- order: z.enum(["ASC", "DESC"]).optional()
1744
- })
1745
- ).optional()
1746
- }),
1747
- z.xor([
1748
- z.object({ cursorPaging: z.never().optional() }),
1749
- z.object({
1750
- cursorPaging: z.object({
1751
- limit: z.number().int().describe("Number of items to load.").min(0).max(500).optional().nullable(),
1752
- cursor: z.string().describe(
1753
- "Pointer to the next or previous page in the list of results.\n\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
1754
- ).optional().nullable()
1755
- }).describe(
1756
- "Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`."
1757
- )
1758
- })
1759
- ])
1760
- ).describe("Query options").optional()
1761
- }).optional()
1762
- });
1763
- var QueryMenusSiteUrlResponse = z.object({
1764
- menuSiteUrls: z.array(
1765
- z.object({
1766
- path: z.string().describe("Path URL.").min(1).max(1e3).optional()
1767
- })
1768
- ).optional(),
1769
- pagingMetadata: z.object({
1770
- count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
1771
- cursors: z.object({
1772
- next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
1773
- prev: z.string().describe(
1774
- "Cursor pointing to previous page in the list of results."
1775
- ).optional().nullable()
1776
- }).describe("Offset that was requested.").optional(),
1777
- hasNext: z.boolean().describe(
1778
- "Indicates if there are more results after the current page.\nIf `true`, another page of results can be retrieved.\nIf `false`, this is the last page."
1779
- ).optional().nullable()
1780
- }).describe("The metadata of the paginated results.").optional()
1781
- });
1782
-
1783
- // src/restaurants-menus-v1-menu-menus.universal.ts
1784
715
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
1785
716
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1786
717
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
@@ -1796,10 +727,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
1796
727
  return SortOrder2;
1797
728
  })(SortOrder || {});
1798
729
  async function duplicateMenu2(_id, options) {
1799
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1800
- if (validateRequestSchema) {
1801
- DuplicateMenuRequest.parse({ _id, options });
1802
- }
730
+ const { httpClient, sideEffects } = arguments[2];
1803
731
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1804
732
  id: _id,
1805
733
  businessLocationIds: options?.businessLocationIds,
@@ -1832,10 +760,7 @@ async function duplicateMenu2(_id, options) {
1832
760
  }
1833
761
  }
1834
762
  async function createMenu2(menu) {
1835
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1836
- if (validateRequestSchema) {
1837
- CreateMenuRequest.parse({ menu });
1838
- }
763
+ const { httpClient, sideEffects } = arguments[1];
1839
764
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ menu });
1840
765
  const reqOpts = createMenu(payload);
1841
766
  sideEffects?.onSiteCall?.();
@@ -1858,10 +783,7 @@ async function createMenu2(menu) {
1858
783
  }
1859
784
  }
1860
785
  async function bulkCreateMenus2(menus, options) {
1861
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1862
- if (validateRequestSchema) {
1863
- BulkCreateMenusRequest.parse({ menus, options });
1864
- }
786
+ const { httpClient, sideEffects } = arguments[2];
1865
787
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1866
788
  menus,
1867
789
  returnEntity: options?.returnEntity
@@ -1890,10 +812,7 @@ async function bulkCreateMenus2(menus, options) {
1890
812
  }
1891
813
  }
1892
814
  async function getMenu2(menuId) {
1893
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1894
- if (validateRequestSchema) {
1895
- GetMenuRequest.parse({ menuId });
1896
- }
815
+ const { httpClient, sideEffects } = arguments[1];
1897
816
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ menuId });
1898
817
  const reqOpts = getMenu(payload);
1899
818
  sideEffects?.onSiteCall?.();
@@ -1916,10 +835,7 @@ async function getMenu2(menuId) {
1916
835
  }
1917
836
  }
1918
837
  async function listMenus2(options) {
1919
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1920
- if (validateRequestSchema) {
1921
- ListMenusRequest.parse({ options });
1922
- }
838
+ const { httpClient, sideEffects } = arguments[1];
1923
839
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1924
840
  menuIds: options?.menuIds,
1925
841
  paging: options?.paging,
@@ -1993,10 +909,7 @@ function queryMenus2() {
1993
909
  });
1994
910
  }
1995
911
  async function typedQueryMenus(query) {
1996
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1997
- if (validateRequestSchema) {
1998
- QueryMenusRequest.parse({ query });
1999
- }
912
+ const { httpClient, sideEffects } = arguments[1];
2000
913
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
2001
914
  const reqOpts = queryMenus(payload);
2002
915
  sideEffects?.onSiteCall?.();
@@ -2024,10 +937,7 @@ var utils = {
2024
937
  }
2025
938
  };
2026
939
  async function updateMenu2(_id, menu) {
2027
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
2028
- if (validateRequestSchema) {
2029
- UpdateMenuRequest.parse({ _id, menu });
2030
- }
940
+ const { httpClient, sideEffects } = arguments[2];
2031
941
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2032
942
  menu: { ...menu, id: _id }
2033
943
  });
@@ -2052,10 +962,7 @@ async function updateMenu2(_id, menu) {
2052
962
  }
2053
963
  }
2054
964
  async function bulkUpdateMenu2(menus, options) {
2055
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
2056
- if (validateRequestSchema) {
2057
- BulkUpdateMenuRequest.parse({ menus, options });
2058
- }
965
+ const { httpClient, sideEffects } = arguments[2];
2059
966
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2060
967
  menus,
2061
968
  returnEntity: options?.returnEntity
@@ -2084,10 +991,7 @@ async function bulkUpdateMenu2(menus, options) {
2084
991
  }
2085
992
  }
2086
993
  async function updateExtendedFields2(_id, namespace, options) {
2087
- const { httpClient, sideEffects, validateRequestSchema } = arguments[3];
2088
- if (validateRequestSchema) {
2089
- UpdateExtendedFieldsRequest.parse({ _id, namespace, options });
2090
- }
994
+ const { httpClient, sideEffects } = arguments[3];
2091
995
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2092
996
  id: _id,
2093
997
  namespace,
@@ -2118,10 +1022,7 @@ async function updateExtendedFields2(_id, namespace, options) {
2118
1022
  }
2119
1023
  }
2120
1024
  async function deleteMenu2(menuId) {
2121
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
2122
- if (validateRequestSchema) {
2123
- DeleteMenuRequest.parse({ menuId });
2124
- }
1025
+ const { httpClient, sideEffects } = arguments[1];
2125
1026
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ menuId });
2126
1027
  const reqOpts = deleteMenu(payload);
2127
1028
  sideEffects?.onSiteCall?.();
@@ -2143,10 +1044,7 @@ async function deleteMenu2(menuId) {
2143
1044
  }
2144
1045
  }
2145
1046
  async function getMenuSiteUrl2(_id) {
2146
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
2147
- if (validateRequestSchema) {
2148
- GetMenuSiteUrlRequest.parse({ _id });
2149
- }
1047
+ const { httpClient, sideEffects } = arguments[1];
2150
1048
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
2151
1049
  const reqOpts = getMenuSiteUrl(payload);
2152
1050
  sideEffects?.onSiteCall?.();
@@ -2169,10 +1067,7 @@ async function getMenuSiteUrl2(_id) {
2169
1067
  }
2170
1068
  }
2171
1069
  async function queryMenusSiteUrl2(options) {
2172
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
2173
- if (validateRequestSchema) {
2174
- QueryMenusSiteUrlRequest.parse({ options });
2175
- }
1070
+ const { httpClient, sideEffects } = arguments[1];
2176
1071
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
2177
1072
  query: options?.query
2178
1073
  });
@@ -2198,100 +1093,100 @@ async function queryMenusSiteUrl2(options) {
2198
1093
  }
2199
1094
 
2200
1095
  // src/restaurants-menus-v1-menu-menus.public.ts
2201
- function duplicateMenu3(httpClient, __options) {
1096
+ function duplicateMenu3(httpClient) {
2202
1097
  return (_id, options) => duplicateMenu2(
2203
1098
  _id,
2204
1099
  options,
2205
1100
  // @ts-ignore
2206
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1101
+ { httpClient }
2207
1102
  );
2208
1103
  }
2209
- function createMenu3(httpClient, __options) {
1104
+ function createMenu3(httpClient) {
2210
1105
  return (menu) => createMenu2(
2211
1106
  menu,
2212
1107
  // @ts-ignore
2213
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1108
+ { httpClient }
2214
1109
  );
2215
1110
  }
2216
- function bulkCreateMenus3(httpClient, __options) {
1111
+ function bulkCreateMenus3(httpClient) {
2217
1112
  return (menus, options) => bulkCreateMenus2(
2218
1113
  menus,
2219
1114
  options,
2220
1115
  // @ts-ignore
2221
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1116
+ { httpClient }
2222
1117
  );
2223
1118
  }
2224
- function getMenu3(httpClient, __options) {
1119
+ function getMenu3(httpClient) {
2225
1120
  return (menuId) => getMenu2(
2226
1121
  menuId,
2227
1122
  // @ts-ignore
2228
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1123
+ { httpClient }
2229
1124
  );
2230
1125
  }
2231
- function listMenus3(httpClient, __options) {
1126
+ function listMenus3(httpClient) {
2232
1127
  return (options) => listMenus2(
2233
1128
  options,
2234
1129
  // @ts-ignore
2235
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1130
+ { httpClient }
2236
1131
  );
2237
1132
  }
2238
- function queryMenus3(httpClient, __options) {
1133
+ function queryMenus3(httpClient) {
2239
1134
  return () => queryMenus2(
2240
1135
  // @ts-ignore
2241
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1136
+ { httpClient }
2242
1137
  );
2243
1138
  }
2244
- function typedQueryMenus2(httpClient, __options) {
1139
+ function typedQueryMenus2(httpClient) {
2245
1140
  return (query) => typedQueryMenus(
2246
1141
  query,
2247
1142
  // @ts-ignore
2248
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1143
+ { httpClient }
2249
1144
  );
2250
1145
  }
2251
- function updateMenu3(httpClient, __options) {
1146
+ function updateMenu3(httpClient) {
2252
1147
  return (_id, menu) => updateMenu2(
2253
1148
  _id,
2254
1149
  menu,
2255
1150
  // @ts-ignore
2256
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1151
+ { httpClient }
2257
1152
  );
2258
1153
  }
2259
- function bulkUpdateMenu3(httpClient, __options) {
1154
+ function bulkUpdateMenu3(httpClient) {
2260
1155
  return (menus, options) => bulkUpdateMenu2(
2261
1156
  menus,
2262
1157
  options,
2263
1158
  // @ts-ignore
2264
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1159
+ { httpClient }
2265
1160
  );
2266
1161
  }
2267
- function updateExtendedFields3(httpClient, __options) {
1162
+ function updateExtendedFields3(httpClient) {
2268
1163
  return (_id, namespace, options) => updateExtendedFields2(
2269
1164
  _id,
2270
1165
  namespace,
2271
1166
  options,
2272
1167
  // @ts-ignore
2273
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1168
+ { httpClient }
2274
1169
  );
2275
1170
  }
2276
- function deleteMenu3(httpClient, __options) {
1171
+ function deleteMenu3(httpClient) {
2277
1172
  return (menuId) => deleteMenu2(
2278
1173
  menuId,
2279
1174
  // @ts-ignore
2280
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1175
+ { httpClient }
2281
1176
  );
2282
1177
  }
2283
- function getMenuSiteUrl3(httpClient, __options) {
1178
+ function getMenuSiteUrl3(httpClient) {
2284
1179
  return (_id) => getMenuSiteUrl2(
2285
1180
  _id,
2286
1181
  // @ts-ignore
2287
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1182
+ { httpClient }
2288
1183
  );
2289
1184
  }
2290
- function queryMenusSiteUrl3(httpClient, __options) {
1185
+ function queryMenusSiteUrl3(httpClient) {
2291
1186
  return (options) => queryMenusSiteUrl2(
2292
1187
  options,
2293
1188
  // @ts-ignore
2294
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1189
+ { httpClient }
2295
1190
  );
2296
1191
  }
2297
1192
  var onMenuUpdated = (0, import_sdk_types.EventDefinition)(