@wix/auto_sdk_restaurants_sections 1.0.67 → 1.0.69

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,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
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
+ ));
18
28
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
29
 
20
30
  // index.ts
@@ -652,6 +662,574 @@ function bulkDeleteSections(payload) {
652
662
  var import_image = require("@wix/sdk-runtime/transformations/image");
653
663
  var import_image2 = require("@wix/sdk-runtime/transformations/image");
654
664
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
665
+
666
+ // src/restaurants-menus-v1-section-sections.schemas.ts
667
+ var z = __toESM(require("zod"));
668
+ var DuplicateSectionRequest = z.object({
669
+ _id: z.string().describe("ID of the section to be duplicated.").regex(
670
+ /^[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}$/,
671
+ "Must be a valid GUID"
672
+ ),
673
+ options: z.object({
674
+ businessLocationIds: z.array(z.string()).max(100).optional(),
675
+ duplicateSubEntities: z.boolean().describe(
676
+ "Whether to duplicate the section's sub-entities, such as its items.\n\nDefault: `false`"
677
+ ).optional().nullable()
678
+ }).optional()
679
+ });
680
+ var DuplicateSectionResponse = z.object({
681
+ sectionId: z.array(z.string()).optional()
682
+ });
683
+ var CreateSectionRequest = z.object({
684
+ section: z.object({
685
+ _id: z.string().describe("Section ID.").regex(
686
+ /^[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}$/,
687
+ "Must be a valid GUID"
688
+ ).optional().nullable(),
689
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
690
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
691
+ ).optional().nullable(),
692
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
693
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
694
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
695
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
696
+ image: z.string().describe("Main section image.").optional(),
697
+ additionalImages: z.array(z.string()).max(100).optional(),
698
+ itemIds: z.array(z.string()).max(300).optional(),
699
+ extendedFields: z.object({
700
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
701
+ "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)."
702
+ ).optional()
703
+ }).describe("Extended fields.").optional(),
704
+ visible: z.boolean().describe(
705
+ "Whether the section is visible in the menu for site visitors."
706
+ ).optional().nullable(),
707
+ businessLocationId: z.string().describe(
708
+ "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 section is available."
709
+ ).regex(
710
+ /^[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}$/,
711
+ "Must be a valid GUID"
712
+ ).optional().nullable()
713
+ }).describe("Section details.")
714
+ });
715
+ var CreateSectionResponse = z.object({
716
+ _id: z.string().describe("Section ID.").regex(
717
+ /^[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}$/,
718
+ "Must be a valid GUID"
719
+ ).optional().nullable(),
720
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
721
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
722
+ ).optional().nullable(),
723
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
724
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
725
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
726
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
727
+ image: z.string().describe("Main section image.").optional(),
728
+ additionalImages: z.array(z.string()).max(100).optional(),
729
+ itemIds: z.array(z.string()).max(300).optional(),
730
+ extendedFields: z.object({
731
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
732
+ "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)."
733
+ ).optional()
734
+ }).describe("Extended fields.").optional(),
735
+ visible: z.boolean().describe("Whether the section is visible in the menu for site visitors.").optional().nullable(),
736
+ businessLocationId: z.string().describe(
737
+ "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 section is available."
738
+ ).regex(
739
+ /^[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}$/,
740
+ "Must be a valid GUID"
741
+ ).optional().nullable()
742
+ });
743
+ var BulkCreateSectionsRequest = z.object({
744
+ sections: z.array(
745
+ z.object({
746
+ _id: z.string().describe("Section 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 section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
752
+ ).optional().nullable(),
753
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
754
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
755
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
756
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
757
+ image: z.string().describe("Main section image.").optional(),
758
+ additionalImages: z.array(z.string()).max(100).optional(),
759
+ itemIds: z.array(z.string()).max(300).optional(),
760
+ extendedFields: z.object({
761
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
762
+ "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)."
763
+ ).optional()
764
+ }).describe("Extended fields.").optional(),
765
+ visible: z.boolean().describe(
766
+ "Whether the section is visible in the menu for site visitors."
767
+ ).optional().nullable(),
768
+ businessLocationId: z.string().describe(
769
+ "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 section is available."
770
+ ).regex(
771
+ /^[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}$/,
772
+ "Must be a valid GUID"
773
+ ).optional().nullable()
774
+ })
775
+ ).max(100),
776
+ options: z.object({
777
+ returnEntity: z.boolean().describe("Whether to receive the created sections in the response.").optional()
778
+ }).optional()
779
+ });
780
+ var BulkCreateSectionsResponse = z.object({
781
+ results: z.array(
782
+ z.object({
783
+ itemMetadata: z.object({
784
+ _id: z.string().describe(
785
+ "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
786
+ ).optional().nullable(),
787
+ originalIndex: z.number().int().describe(
788
+ "Index of the item within the request array. Allows for correlation between request and response items."
789
+ ).optional(),
790
+ success: z.boolean().describe(
791
+ "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
792
+ ).optional(),
793
+ error: z.object({
794
+ code: z.string().describe("Error code.").optional(),
795
+ description: z.string().describe("Description of the error.").optional(),
796
+ data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
797
+ }).describe("Details about the error in case of failure.").optional()
798
+ }).describe("Metadata for created sections.").optional(),
799
+ item: z.object({
800
+ _id: z.string().describe("Section ID.").regex(
801
+ /^[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}$/,
802
+ "Must be a valid GUID"
803
+ ).optional().nullable(),
804
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
805
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
806
+ ).optional().nullable(),
807
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
808
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
809
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
810
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
811
+ image: z.string().describe("Main section image.").optional(),
812
+ additionalImages: z.array(z.string()).max(100).optional(),
813
+ itemIds: z.array(z.string()).max(300).optional(),
814
+ extendedFields: z.object({
815
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
816
+ "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)."
817
+ ).optional()
818
+ }).describe("Extended fields.").optional(),
819
+ visible: z.boolean().describe(
820
+ "Whether the section is visible in the menu for site visitors."
821
+ ).optional().nullable(),
822
+ businessLocationId: z.string().describe(
823
+ "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 section is available."
824
+ ).regex(
825
+ /^[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}$/,
826
+ "Must be a valid GUID"
827
+ ).optional().nullable()
828
+ }).describe(
829
+ "Created section. Only returned if `returnEntity` is set to `true`."
830
+ ).optional()
831
+ })
832
+ ).optional(),
833
+ bulkActionMetadata: z.object({
834
+ totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
835
+ totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
836
+ undetailedFailures: z.number().int().describe(
837
+ "Number of failures without details because detailed failure threshold was exceeded."
838
+ ).optional()
839
+ }).describe("Metadata for the API call.").optional()
840
+ });
841
+ var GetSectionRequest = z.object({
842
+ sectionId: z.string().describe("Section ID.").regex(
843
+ /^[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}$/,
844
+ "Must be a valid GUID"
845
+ )
846
+ });
847
+ var GetSectionResponse = z.object({
848
+ _id: z.string().describe("Section ID.").regex(
849
+ /^[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}$/,
850
+ "Must be a valid GUID"
851
+ ).optional().nullable(),
852
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
853
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
854
+ ).optional().nullable(),
855
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
856
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
857
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
858
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
859
+ image: z.string().describe("Main section image.").optional(),
860
+ additionalImages: z.array(z.string()).max(100).optional(),
861
+ itemIds: z.array(z.string()).max(300).optional(),
862
+ extendedFields: z.object({
863
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
864
+ "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)."
865
+ ).optional()
866
+ }).describe("Extended fields.").optional(),
867
+ visible: z.boolean().describe("Whether the section is visible in the menu for site visitors.").optional().nullable(),
868
+ businessLocationId: z.string().describe(
869
+ "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 section is available."
870
+ ).regex(
871
+ /^[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}$/,
872
+ "Must be a valid GUID"
873
+ ).optional().nullable()
874
+ });
875
+ var ListSectionsRequest = z.object({
876
+ options: z.object({
877
+ sectionIds: z.array(z.string()).max(500).optional(),
878
+ paging: z.object({
879
+ limit: z.number().int().describe("Number of items to load.").min(0).max(500).optional().nullable(),
880
+ cursor: z.string().describe(
881
+ "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."
882
+ ).optional().nullable()
883
+ }).describe("The metadata of the paginated results.").optional(),
884
+ onlyVisible: z.boolean().describe(
885
+ "Whether to return only sections that are visible to site visitors."
886
+ ).optional().nullable()
887
+ }).optional()
888
+ });
889
+ var ListSectionsResponse = z.object({
890
+ sections: z.array(
891
+ z.object({
892
+ _id: z.string().describe("Section ID.").regex(
893
+ /^[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}$/,
894
+ "Must be a valid GUID"
895
+ ).optional().nullable(),
896
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
897
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
898
+ ).optional().nullable(),
899
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
900
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
901
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
902
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
903
+ image: z.string().describe("Main section image.").optional(),
904
+ additionalImages: z.array(z.string()).max(100).optional(),
905
+ itemIds: z.array(z.string()).max(300).optional(),
906
+ extendedFields: z.object({
907
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
908
+ "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)."
909
+ ).optional()
910
+ }).describe("Extended fields.").optional(),
911
+ visible: z.boolean().describe(
912
+ "Whether the section is visible in the menu for site visitors."
913
+ ).optional().nullable(),
914
+ businessLocationId: z.string().describe(
915
+ "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 section is available."
916
+ ).regex(
917
+ /^[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}$/,
918
+ "Must be a valid GUID"
919
+ ).optional().nullable()
920
+ })
921
+ ).optional(),
922
+ pagingMetadata: z.object({
923
+ count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
924
+ cursors: z.object({
925
+ next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
926
+ prev: z.string().describe(
927
+ "Cursor pointing to previous page in the list of results."
928
+ ).optional().nullable()
929
+ }).describe("Offset that was requested.").optional(),
930
+ hasNext: z.boolean().describe(
931
+ "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."
932
+ ).optional().nullable()
933
+ }).describe("The metadata of the paginated results.").optional()
934
+ });
935
+ var QuerySectionsRequest = z.object({
936
+ query: z.object({
937
+ filter: z.object({
938
+ image: z.object({ $exists: z.boolean() }).partial().strict().optional(),
939
+ _id: z.object({
940
+ $eq: z.string(),
941
+ $in: z.array(z.string()),
942
+ $ne: z.string(),
943
+ $nin: z.array(z.string())
944
+ }).partial().strict().optional(),
945
+ name: z.object({
946
+ $eq: z.string(),
947
+ $in: z.array(z.string()),
948
+ $ne: z.string(),
949
+ $nin: z.array(z.string()),
950
+ $startsWith: z.string()
951
+ }).partial().strict().optional(),
952
+ description: z.object({
953
+ $eq: z.string(),
954
+ $in: z.array(z.string()),
955
+ $ne: z.string(),
956
+ $nin: z.array(z.string()),
957
+ $startsWith: z.string()
958
+ }).partial().strict().optional(),
959
+ itemIds: z.object({ $exists: z.boolean(), $hasSome: z.array(z.string()) }).partial().strict().optional(),
960
+ _createdDate: z.object({
961
+ $eq: z.string(),
962
+ $gt: z.string(),
963
+ $gte: z.string(),
964
+ $lt: z.string(),
965
+ $lte: z.string(),
966
+ $ne: z.string()
967
+ }).partial().strict().optional(),
968
+ _updatedDate: z.object({
969
+ $eq: z.string(),
970
+ $gt: z.string(),
971
+ $gte: z.string(),
972
+ $lt: z.string(),
973
+ $lte: z.string(),
974
+ $ne: z.string()
975
+ }).partial().strict().optional(),
976
+ $and: z.array(z.any()).optional(),
977
+ $or: z.array(z.any()).optional(),
978
+ $not: z.any().optional()
979
+ }).strict().optional(),
980
+ sort: z.array(z.object({})).optional()
981
+ }).catchall(z.any()).describe("Query options.")
982
+ });
983
+ var QuerySectionsResponse = z.object({
984
+ sections: z.array(
985
+ z.object({
986
+ _id: z.string().describe("Section ID.").regex(
987
+ /^[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}$/,
988
+ "Must be a valid GUID"
989
+ ).optional().nullable(),
990
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
991
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
992
+ ).optional().nullable(),
993
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
994
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
995
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
996
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
997
+ image: z.string().describe("Main section image.").optional(),
998
+ additionalImages: z.array(z.string()).max(100).optional(),
999
+ itemIds: z.array(z.string()).max(300).optional(),
1000
+ extendedFields: z.object({
1001
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1002
+ "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)."
1003
+ ).optional()
1004
+ }).describe("Extended fields.").optional(),
1005
+ visible: z.boolean().describe(
1006
+ "Whether the section is visible in the menu for site visitors."
1007
+ ).optional().nullable(),
1008
+ businessLocationId: z.string().describe(
1009
+ "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 section is available."
1010
+ ).regex(
1011
+ /^[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}$/,
1012
+ "Must be a valid GUID"
1013
+ ).optional().nullable()
1014
+ })
1015
+ ).optional(),
1016
+ pagingMetadata: z.object({
1017
+ count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
1018
+ cursors: z.object({
1019
+ next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
1020
+ prev: z.string().describe(
1021
+ "Cursor pointing to previous page in the list of results."
1022
+ ).optional().nullable()
1023
+ }).describe("Offset that was requested.").optional(),
1024
+ hasNext: z.boolean().describe(
1025
+ "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."
1026
+ ).optional().nullable()
1027
+ }).describe("The metadata of the paginated results.").optional()
1028
+ });
1029
+ var UpdateSectionRequest = z.object({
1030
+ _id: z.string().describe("Section ID.").regex(
1031
+ /^[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}$/,
1032
+ "Must be a valid GUID"
1033
+ ),
1034
+ section: z.object({
1035
+ _id: z.string().describe("Section ID.").regex(
1036
+ /^[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}$/,
1037
+ "Must be a valid GUID"
1038
+ ).optional().nullable(),
1039
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1040
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
1041
+ ),
1042
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1043
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1044
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1045
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1046
+ image: z.string().describe("Main section image.").optional(),
1047
+ additionalImages: z.array(z.string()).max(100).optional(),
1048
+ itemIds: z.array(z.string()).max(300).optional(),
1049
+ extendedFields: z.object({
1050
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1051
+ "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)."
1052
+ ).optional()
1053
+ }).describe("Extended fields.").optional(),
1054
+ visible: z.boolean().describe(
1055
+ "Whether the section is visible in the menu for site visitors."
1056
+ ).optional().nullable(),
1057
+ businessLocationId: z.string().describe(
1058
+ "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 section is available."
1059
+ ).regex(
1060
+ /^[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}$/,
1061
+ "Must be a valid GUID"
1062
+ ).optional().nullable()
1063
+ }).describe("Section update.")
1064
+ });
1065
+ var UpdateSectionResponse = z.object({
1066
+ _id: z.string().describe("Section ID.").regex(
1067
+ /^[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}$/,
1068
+ "Must be a valid GUID"
1069
+ ).optional().nullable(),
1070
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1071
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
1072
+ ).optional().nullable(),
1073
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1074
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1075
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1076
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1077
+ image: z.string().describe("Main section image.").optional(),
1078
+ additionalImages: z.array(z.string()).max(100).optional(),
1079
+ itemIds: z.array(z.string()).max(300).optional(),
1080
+ extendedFields: z.object({
1081
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1082
+ "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)."
1083
+ ).optional()
1084
+ }).describe("Extended fields.").optional(),
1085
+ visible: z.boolean().describe("Whether the section is visible in the menu for site visitors.").optional().nullable(),
1086
+ businessLocationId: z.string().describe(
1087
+ "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 section is available."
1088
+ ).regex(
1089
+ /^[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}$/,
1090
+ "Must be a valid GUID"
1091
+ ).optional().nullable()
1092
+ });
1093
+ var BulkUpdateSectionRequest = z.object({
1094
+ sections: z.array(
1095
+ z.object({
1096
+ section: z.object({
1097
+ _id: z.string().describe("Section ID.").regex(
1098
+ /^[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}$/,
1099
+ "Must be a valid GUID"
1100
+ ),
1101
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1102
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
1103
+ ),
1104
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1105
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1106
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1107
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1108
+ image: z.string().describe("Main section image.").optional(),
1109
+ additionalImages: z.array(z.string()).max(100).optional(),
1110
+ itemIds: z.array(z.string()).max(300).optional(),
1111
+ extendedFields: z.object({
1112
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1113
+ "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)."
1114
+ ).optional()
1115
+ }).describe("Extended fields.").optional(),
1116
+ visible: z.boolean().describe(
1117
+ "Whether the section is visible in the menu for site visitors."
1118
+ ).optional().nullable(),
1119
+ businessLocationId: z.string().describe(
1120
+ "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 section is available."
1121
+ ).regex(
1122
+ /^[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}$/,
1123
+ "Must be a valid GUID"
1124
+ ).optional().nullable()
1125
+ }).describe("Section update.").optional(),
1126
+ mask: z.array(z.string()).optional()
1127
+ })
1128
+ ).min(1).max(100),
1129
+ options: z.object({
1130
+ returnEntity: z.boolean().describe("Whether to receive the updated sections in the response.").optional()
1131
+ }).optional()
1132
+ });
1133
+ var BulkUpdateSectionResponse = z.object({
1134
+ results: z.array(
1135
+ z.object({
1136
+ sectionMetadata: z.object({
1137
+ _id: z.string().describe(
1138
+ "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
1139
+ ).optional().nullable(),
1140
+ originalIndex: z.number().int().describe(
1141
+ "Index of the item within the request array. Allows for correlation between request and response items."
1142
+ ).optional(),
1143
+ success: z.boolean().describe(
1144
+ "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
1145
+ ).optional(),
1146
+ error: z.object({
1147
+ code: z.string().describe("Error code.").optional(),
1148
+ description: z.string().describe("Description of the error.").optional(),
1149
+ data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
1150
+ }).describe("Details about the error in case of failure.").optional()
1151
+ }).describe("Whether to receive the updated sections in the response.").optional(),
1152
+ section: z.object({
1153
+ _id: z.string().describe("Section ID.").regex(
1154
+ /^[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}$/,
1155
+ "Must be a valid GUID"
1156
+ ).optional().nullable(),
1157
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1158
+ "Revision number, which increments by 1 each time the section is updated. To prevent conflicting changes, the current revision must be passed when updating the section. Ignored when creating a section."
1159
+ ).optional().nullable(),
1160
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1161
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1162
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1163
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1164
+ image: z.string().describe("Main section image.").optional(),
1165
+ additionalImages: z.array(z.string()).max(100).optional(),
1166
+ itemIds: z.array(z.string()).max(300).optional(),
1167
+ extendedFields: z.object({
1168
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1169
+ "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)."
1170
+ ).optional()
1171
+ }).describe("Extended fields.").optional(),
1172
+ visible: z.boolean().describe(
1173
+ "Whether the section is visible in the menu for site visitors."
1174
+ ).optional().nullable(),
1175
+ businessLocationId: z.string().describe(
1176
+ "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 section is available."
1177
+ ).regex(
1178
+ /^[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}$/,
1179
+ "Must be a valid GUID"
1180
+ ).optional().nullable()
1181
+ }).describe(
1182
+ "Updated section. Only returned if `returnEntity` is set to `true`."
1183
+ ).optional()
1184
+ })
1185
+ ).min(1).max(100).optional(),
1186
+ bulkActionMetadata: z.object({
1187
+ totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
1188
+ totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
1189
+ undetailedFailures: z.number().int().describe(
1190
+ "Number of failures without details because detailed failure threshold was exceeded."
1191
+ ).optional()
1192
+ }).describe("Metadata for the API call.").optional()
1193
+ });
1194
+ var DeleteSectionRequest = z.object({
1195
+ sectionId: z.string().describe("Section ID.").regex(
1196
+ /^[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}$/,
1197
+ "Must be a valid GUID"
1198
+ )
1199
+ });
1200
+ var DeleteSectionResponse = z.object({});
1201
+ var BulkDeleteSectionsRequest = z.object({ ids: z.array(z.string()) });
1202
+ var BulkDeleteSectionsResponse = z.object({
1203
+ results: z.array(
1204
+ z.object({
1205
+ itemMetadata: z.object({
1206
+ _id: z.string().describe(
1207
+ "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
1208
+ ).optional().nullable(),
1209
+ originalIndex: z.number().int().describe(
1210
+ "Index of the item within the request array. Allows for correlation between request and response items."
1211
+ ).optional(),
1212
+ success: z.boolean().describe(
1213
+ "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
1214
+ ).optional(),
1215
+ error: z.object({
1216
+ code: z.string().describe("Error code.").optional(),
1217
+ description: z.string().describe("Description of the error.").optional(),
1218
+ data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
1219
+ }).describe("Details about the error in case of failure.").optional()
1220
+ }).describe("Metadata for deleted sections.").optional()
1221
+ })
1222
+ ).optional(),
1223
+ bulkActionMetadata: z.object({
1224
+ totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
1225
+ totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
1226
+ undetailedFailures: z.number().int().describe(
1227
+ "Number of failures without details because detailed failure threshold was exceeded."
1228
+ ).optional()
1229
+ }).describe("Metadata for the API call.").optional()
1230
+ });
1231
+
1232
+ // src/restaurants-menus-v1-section-sections.universal.ts
655
1233
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
656
1234
  var AvailabilityType = /* @__PURE__ */ ((AvailabilityType2) => {
657
1235
  AvailabilityType2["UNSPECIFIED_AVAILABILITY_OPTION"] = "UNSPECIFIED_AVAILABILITY_OPTION";
@@ -684,7 +1262,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
684
1262
  return WebhookIdentityType2;
685
1263
  })(WebhookIdentityType || {});
686
1264
  async function duplicateSection2(_id, options) {
687
- const { httpClient, sideEffects } = arguments[2];
1265
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1266
+ if (validateRequestSchema) {
1267
+ DuplicateSectionRequest.parse({ _id, options });
1268
+ }
688
1269
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
689
1270
  id: _id,
690
1271
  businessLocationIds: options?.businessLocationIds,
@@ -715,7 +1296,10 @@ async function duplicateSection2(_id, options) {
715
1296
  }
716
1297
  }
717
1298
  async function createSection2(section) {
718
- const { httpClient, sideEffects } = arguments[1];
1299
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1300
+ if (validateRequestSchema) {
1301
+ CreateSectionRequest.parse({ section });
1302
+ }
719
1303
  const payload = (0, import_transform_paths2.transformPaths)(
720
1304
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section }),
721
1305
  [
@@ -759,7 +1343,10 @@ async function createSection2(section) {
759
1343
  }
760
1344
  }
761
1345
  async function bulkCreateSections2(sections, options) {
762
- const { httpClient, sideEffects } = arguments[2];
1346
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1347
+ if (validateRequestSchema) {
1348
+ BulkCreateSectionsRequest.parse({ sections, options });
1349
+ }
763
1350
  const payload = (0, import_transform_paths2.transformPaths)(
764
1351
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
765
1352
  sections,
@@ -809,7 +1396,10 @@ async function bulkCreateSections2(sections, options) {
809
1396
  }
810
1397
  }
811
1398
  async function getSection2(sectionId) {
812
- const { httpClient, sideEffects } = arguments[1];
1399
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1400
+ if (validateRequestSchema) {
1401
+ GetSectionRequest.parse({ sectionId });
1402
+ }
813
1403
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
814
1404
  sectionId
815
1405
  });
@@ -844,7 +1434,10 @@ async function getSection2(sectionId) {
844
1434
  }
845
1435
  }
846
1436
  async function listSections2(options) {
847
- const { httpClient, sideEffects } = arguments[1];
1437
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1438
+ if (validateRequestSchema) {
1439
+ ListSectionsRequest.parse({ options });
1440
+ }
848
1441
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
849
1442
  sectionIds: options?.sectionIds,
850
1443
  paging: options?.paging,
@@ -936,7 +1529,10 @@ function querySections2() {
936
1529
  });
937
1530
  }
938
1531
  async function typedQuerySections(query) {
939
- const { httpClient, sideEffects } = arguments[1];
1532
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1533
+ if (validateRequestSchema) {
1534
+ QuerySectionsRequest.parse({ query });
1535
+ }
940
1536
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
941
1537
  const reqOpts = querySections(payload);
942
1538
  sideEffects?.onSiteCall?.();
@@ -974,7 +1570,10 @@ var utils = {
974
1570
  }
975
1571
  };
976
1572
  async function updateSection2(_id, section) {
977
- const { httpClient, sideEffects } = arguments[2];
1573
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1574
+ if (validateRequestSchema) {
1575
+ UpdateSectionRequest.parse({ _id, section });
1576
+ }
978
1577
  const payload = (0, import_transform_paths2.transformPaths)(
979
1578
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section: { ...section, id: _id } }),
980
1579
  [
@@ -1018,7 +1617,10 @@ async function updateSection2(_id, section) {
1018
1617
  }
1019
1618
  }
1020
1619
  async function bulkUpdateSection2(sections, options) {
1021
- const { httpClient, sideEffects } = arguments[2];
1620
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1621
+ if (validateRequestSchema) {
1622
+ BulkUpdateSectionRequest.parse({ sections, options });
1623
+ }
1022
1624
  const payload = (0, import_transform_paths2.transformPaths)(
1023
1625
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1024
1626
  sections,
@@ -1068,7 +1670,10 @@ async function bulkUpdateSection2(sections, options) {
1068
1670
  }
1069
1671
  }
1070
1672
  async function deleteSection2(sectionId) {
1071
- const { httpClient, sideEffects } = arguments[1];
1673
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1674
+ if (validateRequestSchema) {
1675
+ DeleteSectionRequest.parse({ sectionId });
1676
+ }
1072
1677
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1073
1678
  sectionId
1074
1679
  });
@@ -1092,7 +1697,10 @@ async function deleteSection2(sectionId) {
1092
1697
  }
1093
1698
  }
1094
1699
  async function bulkDeleteSections2(ids) {
1095
- const { httpClient, sideEffects } = arguments[1];
1700
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1701
+ if (validateRequestSchema) {
1702
+ BulkDeleteSectionsRequest.parse({ ids });
1703
+ }
1096
1704
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ ids });
1097
1705
  const reqOpts = bulkDeleteSections(payload);
1098
1706
  sideEffects?.onSiteCall?.();
@@ -1116,84 +1724,84 @@ async function bulkDeleteSections2(ids) {
1116
1724
  }
1117
1725
 
1118
1726
  // src/restaurants-menus-v1-section-sections.public.ts
1119
- function duplicateSection3(httpClient) {
1727
+ function duplicateSection3(httpClient, __options) {
1120
1728
  return (_id, options) => duplicateSection2(
1121
1729
  _id,
1122
1730
  options,
1123
1731
  // @ts-ignore
1124
- { httpClient }
1732
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1125
1733
  );
1126
1734
  }
1127
- function createSection3(httpClient) {
1735
+ function createSection3(httpClient, __options) {
1128
1736
  return (section) => createSection2(
1129
1737
  section,
1130
1738
  // @ts-ignore
1131
- { httpClient }
1739
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1132
1740
  );
1133
1741
  }
1134
- function bulkCreateSections3(httpClient) {
1742
+ function bulkCreateSections3(httpClient, __options) {
1135
1743
  return (sections, options) => bulkCreateSections2(
1136
1744
  sections,
1137
1745
  options,
1138
1746
  // @ts-ignore
1139
- { httpClient }
1747
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1140
1748
  );
1141
1749
  }
1142
- function getSection3(httpClient) {
1750
+ function getSection3(httpClient, __options) {
1143
1751
  return (sectionId) => getSection2(
1144
1752
  sectionId,
1145
1753
  // @ts-ignore
1146
- { httpClient }
1754
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1147
1755
  );
1148
1756
  }
1149
- function listSections3(httpClient) {
1757
+ function listSections3(httpClient, __options) {
1150
1758
  return (options) => listSections2(
1151
1759
  options,
1152
1760
  // @ts-ignore
1153
- { httpClient }
1761
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1154
1762
  );
1155
1763
  }
1156
- function querySections3(httpClient) {
1764
+ function querySections3(httpClient, __options) {
1157
1765
  return () => querySections2(
1158
1766
  // @ts-ignore
1159
- { httpClient }
1767
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1160
1768
  );
1161
1769
  }
1162
- function typedQuerySections2(httpClient) {
1770
+ function typedQuerySections2(httpClient, __options) {
1163
1771
  return (query) => typedQuerySections(
1164
1772
  query,
1165
1773
  // @ts-ignore
1166
- { httpClient }
1774
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1167
1775
  );
1168
1776
  }
1169
- function updateSection3(httpClient) {
1777
+ function updateSection3(httpClient, __options) {
1170
1778
  return (_id, section) => updateSection2(
1171
1779
  _id,
1172
1780
  section,
1173
1781
  // @ts-ignore
1174
- { httpClient }
1782
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1175
1783
  );
1176
1784
  }
1177
- function bulkUpdateSection3(httpClient) {
1785
+ function bulkUpdateSection3(httpClient, __options) {
1178
1786
  return (sections, options) => bulkUpdateSection2(
1179
1787
  sections,
1180
1788
  options,
1181
1789
  // @ts-ignore
1182
- { httpClient }
1790
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1183
1791
  );
1184
1792
  }
1185
- function deleteSection3(httpClient) {
1793
+ function deleteSection3(httpClient, __options) {
1186
1794
  return (sectionId) => deleteSection2(
1187
1795
  sectionId,
1188
1796
  // @ts-ignore
1189
- { httpClient }
1797
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1190
1798
  );
1191
1799
  }
1192
- function bulkDeleteSections3(httpClient) {
1800
+ function bulkDeleteSections3(httpClient, __options) {
1193
1801
  return (ids) => bulkDeleteSections2(
1194
1802
  ids,
1195
1803
  // @ts-ignore
1196
- { httpClient }
1804
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1197
1805
  );
1198
1806
  }
1199
1807
  var onSectionCreated = (0, import_sdk_types.EventDefinition)(