@wix/auto_sdk_restaurants_sections 1.0.69 → 1.0.70

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
@@ -662,574 +652,6 @@ function bulkDeleteSections(payload) {
662
652
  var import_image = require("@wix/sdk-runtime/transformations/image");
663
653
  var import_image2 = require("@wix/sdk-runtime/transformations/image");
664
654
  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
1233
655
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
1234
656
  var AvailabilityType = /* @__PURE__ */ ((AvailabilityType2) => {
1235
657
  AvailabilityType2["UNSPECIFIED_AVAILABILITY_OPTION"] = "UNSPECIFIED_AVAILABILITY_OPTION";
@@ -1262,10 +684,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
1262
684
  return WebhookIdentityType2;
1263
685
  })(WebhookIdentityType || {});
1264
686
  async function duplicateSection2(_id, options) {
1265
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1266
- if (validateRequestSchema) {
1267
- DuplicateSectionRequest.parse({ _id, options });
1268
- }
687
+ const { httpClient, sideEffects } = arguments[2];
1269
688
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1270
689
  id: _id,
1271
690
  businessLocationIds: options?.businessLocationIds,
@@ -1296,10 +715,7 @@ async function duplicateSection2(_id, options) {
1296
715
  }
1297
716
  }
1298
717
  async function createSection2(section) {
1299
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1300
- if (validateRequestSchema) {
1301
- CreateSectionRequest.parse({ section });
1302
- }
718
+ const { httpClient, sideEffects } = arguments[1];
1303
719
  const payload = (0, import_transform_paths2.transformPaths)(
1304
720
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section }),
1305
721
  [
@@ -1343,10 +759,7 @@ async function createSection2(section) {
1343
759
  }
1344
760
  }
1345
761
  async function bulkCreateSections2(sections, options) {
1346
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1347
- if (validateRequestSchema) {
1348
- BulkCreateSectionsRequest.parse({ sections, options });
1349
- }
762
+ const { httpClient, sideEffects } = arguments[2];
1350
763
  const payload = (0, import_transform_paths2.transformPaths)(
1351
764
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1352
765
  sections,
@@ -1396,10 +809,7 @@ async function bulkCreateSections2(sections, options) {
1396
809
  }
1397
810
  }
1398
811
  async function getSection2(sectionId) {
1399
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1400
- if (validateRequestSchema) {
1401
- GetSectionRequest.parse({ sectionId });
1402
- }
812
+ const { httpClient, sideEffects } = arguments[1];
1403
813
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1404
814
  sectionId
1405
815
  });
@@ -1434,10 +844,7 @@ async function getSection2(sectionId) {
1434
844
  }
1435
845
  }
1436
846
  async function listSections2(options) {
1437
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1438
- if (validateRequestSchema) {
1439
- ListSectionsRequest.parse({ options });
1440
- }
847
+ const { httpClient, sideEffects } = arguments[1];
1441
848
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1442
849
  sectionIds: options?.sectionIds,
1443
850
  paging: options?.paging,
@@ -1529,10 +936,7 @@ function querySections2() {
1529
936
  });
1530
937
  }
1531
938
  async function typedQuerySections(query) {
1532
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1533
- if (validateRequestSchema) {
1534
- QuerySectionsRequest.parse({ query });
1535
- }
939
+ const { httpClient, sideEffects } = arguments[1];
1536
940
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
1537
941
  const reqOpts = querySections(payload);
1538
942
  sideEffects?.onSiteCall?.();
@@ -1570,10 +974,7 @@ var utils = {
1570
974
  }
1571
975
  };
1572
976
  async function updateSection2(_id, section) {
1573
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1574
- if (validateRequestSchema) {
1575
- UpdateSectionRequest.parse({ _id, section });
1576
- }
977
+ const { httpClient, sideEffects } = arguments[2];
1577
978
  const payload = (0, import_transform_paths2.transformPaths)(
1578
979
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ section: { ...section, id: _id } }),
1579
980
  [
@@ -1617,10 +1018,7 @@ async function updateSection2(_id, section) {
1617
1018
  }
1618
1019
  }
1619
1020
  async function bulkUpdateSection2(sections, options) {
1620
- const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1621
- if (validateRequestSchema) {
1622
- BulkUpdateSectionRequest.parse({ sections, options });
1623
- }
1021
+ const { httpClient, sideEffects } = arguments[2];
1624
1022
  const payload = (0, import_transform_paths2.transformPaths)(
1625
1023
  (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1626
1024
  sections,
@@ -1670,10 +1068,7 @@ async function bulkUpdateSection2(sections, options) {
1670
1068
  }
1671
1069
  }
1672
1070
  async function deleteSection2(sectionId) {
1673
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1674
- if (validateRequestSchema) {
1675
- DeleteSectionRequest.parse({ sectionId });
1676
- }
1071
+ const { httpClient, sideEffects } = arguments[1];
1677
1072
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1678
1073
  sectionId
1679
1074
  });
@@ -1697,10 +1092,7 @@ async function deleteSection2(sectionId) {
1697
1092
  }
1698
1093
  }
1699
1094
  async function bulkDeleteSections2(ids) {
1700
- const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1701
- if (validateRequestSchema) {
1702
- BulkDeleteSectionsRequest.parse({ ids });
1703
- }
1095
+ const { httpClient, sideEffects } = arguments[1];
1704
1096
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ ids });
1705
1097
  const reqOpts = bulkDeleteSections(payload);
1706
1098
  sideEffects?.onSiteCall?.();
@@ -1724,84 +1116,84 @@ async function bulkDeleteSections2(ids) {
1724
1116
  }
1725
1117
 
1726
1118
  // src/restaurants-menus-v1-section-sections.public.ts
1727
- function duplicateSection3(httpClient, __options) {
1119
+ function duplicateSection3(httpClient) {
1728
1120
  return (_id, options) => duplicateSection2(
1729
1121
  _id,
1730
1122
  options,
1731
1123
  // @ts-ignore
1732
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1124
+ { httpClient }
1733
1125
  );
1734
1126
  }
1735
- function createSection3(httpClient, __options) {
1127
+ function createSection3(httpClient) {
1736
1128
  return (section) => createSection2(
1737
1129
  section,
1738
1130
  // @ts-ignore
1739
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1131
+ { httpClient }
1740
1132
  );
1741
1133
  }
1742
- function bulkCreateSections3(httpClient, __options) {
1134
+ function bulkCreateSections3(httpClient) {
1743
1135
  return (sections, options) => bulkCreateSections2(
1744
1136
  sections,
1745
1137
  options,
1746
1138
  // @ts-ignore
1747
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1139
+ { httpClient }
1748
1140
  );
1749
1141
  }
1750
- function getSection3(httpClient, __options) {
1142
+ function getSection3(httpClient) {
1751
1143
  return (sectionId) => getSection2(
1752
1144
  sectionId,
1753
1145
  // @ts-ignore
1754
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1146
+ { httpClient }
1755
1147
  );
1756
1148
  }
1757
- function listSections3(httpClient, __options) {
1149
+ function listSections3(httpClient) {
1758
1150
  return (options) => listSections2(
1759
1151
  options,
1760
1152
  // @ts-ignore
1761
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1153
+ { httpClient }
1762
1154
  );
1763
1155
  }
1764
- function querySections3(httpClient, __options) {
1156
+ function querySections3(httpClient) {
1765
1157
  return () => querySections2(
1766
1158
  // @ts-ignore
1767
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1159
+ { httpClient }
1768
1160
  );
1769
1161
  }
1770
- function typedQuerySections2(httpClient, __options) {
1162
+ function typedQuerySections2(httpClient) {
1771
1163
  return (query) => typedQuerySections(
1772
1164
  query,
1773
1165
  // @ts-ignore
1774
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1166
+ { httpClient }
1775
1167
  );
1776
1168
  }
1777
- function updateSection3(httpClient, __options) {
1169
+ function updateSection3(httpClient) {
1778
1170
  return (_id, section) => updateSection2(
1779
1171
  _id,
1780
1172
  section,
1781
1173
  // @ts-ignore
1782
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1174
+ { httpClient }
1783
1175
  );
1784
1176
  }
1785
- function bulkUpdateSection3(httpClient, __options) {
1177
+ function bulkUpdateSection3(httpClient) {
1786
1178
  return (sections, options) => bulkUpdateSection2(
1787
1179
  sections,
1788
1180
  options,
1789
1181
  // @ts-ignore
1790
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1182
+ { httpClient }
1791
1183
  );
1792
1184
  }
1793
- function deleteSection3(httpClient, __options) {
1185
+ function deleteSection3(httpClient) {
1794
1186
  return (sectionId) => deleteSection2(
1795
1187
  sectionId,
1796
1188
  // @ts-ignore
1797
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1189
+ { httpClient }
1798
1190
  );
1799
1191
  }
1800
- function bulkDeleteSections3(httpClient, __options) {
1192
+ function bulkDeleteSections3(httpClient) {
1801
1193
  return (ids) => bulkDeleteSections2(
1802
1194
  ids,
1803
1195
  // @ts-ignore
1804
- { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1196
+ { httpClient }
1805
1197
  );
1806
1198
  }
1807
1199
  var onSectionCreated = (0, import_sdk_types.EventDefinition)(