@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.
@@ -612,6 +612,574 @@ function bulkDeleteSections(payload) {
612
612
  import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
613
613
  import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
614
614
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
615
+
616
+ // src/restaurants-menus-v1-section-sections.schemas.ts
617
+ import * as z from "zod";
618
+ var DuplicateSectionRequest = z.object({
619
+ _id: z.string().describe("ID of the section to be duplicated.").regex(
620
+ /^[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}$/,
621
+ "Must be a valid GUID"
622
+ ),
623
+ options: z.object({
624
+ businessLocationIds: z.array(z.string()).max(100).optional(),
625
+ duplicateSubEntities: z.boolean().describe(
626
+ "Whether to duplicate the section's sub-entities, such as its items.\n\nDefault: `false`"
627
+ ).optional().nullable()
628
+ }).optional()
629
+ });
630
+ var DuplicateSectionResponse = z.object({
631
+ sectionId: z.array(z.string()).optional()
632
+ });
633
+ var CreateSectionRequest = z.object({
634
+ section: z.object({
635
+ _id: z.string().describe("Section ID.").regex(
636
+ /^[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}$/,
637
+ "Must be a valid GUID"
638
+ ).optional().nullable(),
639
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
640
+ "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."
641
+ ).optional().nullable(),
642
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
643
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
644
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
645
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
646
+ image: z.string().describe("Main section image.").optional(),
647
+ additionalImages: z.array(z.string()).max(100).optional(),
648
+ itemIds: z.array(z.string()).max(300).optional(),
649
+ extendedFields: z.object({
650
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
651
+ "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)."
652
+ ).optional()
653
+ }).describe("Extended fields.").optional(),
654
+ visible: z.boolean().describe(
655
+ "Whether the section is visible in the menu for site visitors."
656
+ ).optional().nullable(),
657
+ businessLocationId: z.string().describe(
658
+ "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."
659
+ ).regex(
660
+ /^[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}$/,
661
+ "Must be a valid GUID"
662
+ ).optional().nullable()
663
+ }).describe("Section details.")
664
+ });
665
+ var CreateSectionResponse = z.object({
666
+ _id: z.string().describe("Section ID.").regex(
667
+ /^[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}$/,
668
+ "Must be a valid GUID"
669
+ ).optional().nullable(),
670
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
671
+ "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."
672
+ ).optional().nullable(),
673
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
674
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
675
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
676
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
677
+ image: z.string().describe("Main section image.").optional(),
678
+ additionalImages: z.array(z.string()).max(100).optional(),
679
+ itemIds: z.array(z.string()).max(300).optional(),
680
+ extendedFields: z.object({
681
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
682
+ "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)."
683
+ ).optional()
684
+ }).describe("Extended fields.").optional(),
685
+ visible: z.boolean().describe("Whether the section is visible in the menu for site visitors.").optional().nullable(),
686
+ businessLocationId: z.string().describe(
687
+ "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."
688
+ ).regex(
689
+ /^[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}$/,
690
+ "Must be a valid GUID"
691
+ ).optional().nullable()
692
+ });
693
+ var BulkCreateSectionsRequest = z.object({
694
+ sections: z.array(
695
+ z.object({
696
+ _id: z.string().describe("Section ID.").regex(
697
+ /^[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}$/,
698
+ "Must be a valid GUID"
699
+ ).optional().nullable(),
700
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
701
+ "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."
702
+ ).optional().nullable(),
703
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
704
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
705
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
706
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
707
+ image: z.string().describe("Main section image.").optional(),
708
+ additionalImages: z.array(z.string()).max(100).optional(),
709
+ itemIds: z.array(z.string()).max(300).optional(),
710
+ extendedFields: z.object({
711
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
712
+ "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)."
713
+ ).optional()
714
+ }).describe("Extended fields.").optional(),
715
+ visible: z.boolean().describe(
716
+ "Whether the section is visible in the menu for site visitors."
717
+ ).optional().nullable(),
718
+ businessLocationId: z.string().describe(
719
+ "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."
720
+ ).regex(
721
+ /^[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}$/,
722
+ "Must be a valid GUID"
723
+ ).optional().nullable()
724
+ })
725
+ ).max(100),
726
+ options: z.object({
727
+ returnEntity: z.boolean().describe("Whether to receive the created sections in the response.").optional()
728
+ }).optional()
729
+ });
730
+ var BulkCreateSectionsResponse = z.object({
731
+ results: z.array(
732
+ z.object({
733
+ itemMetadata: z.object({
734
+ _id: z.string().describe(
735
+ "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
736
+ ).optional().nullable(),
737
+ originalIndex: z.number().int().describe(
738
+ "Index of the item within the request array. Allows for correlation between request and response items."
739
+ ).optional(),
740
+ success: z.boolean().describe(
741
+ "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
742
+ ).optional(),
743
+ error: z.object({
744
+ code: z.string().describe("Error code.").optional(),
745
+ description: z.string().describe("Description of the error.").optional(),
746
+ data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
747
+ }).describe("Details about the error in case of failure.").optional()
748
+ }).describe("Metadata for created sections.").optional(),
749
+ item: z.object({
750
+ _id: z.string().describe("Section ID.").regex(
751
+ /^[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}$/,
752
+ "Must be a valid GUID"
753
+ ).optional().nullable(),
754
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
755
+ "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."
756
+ ).optional().nullable(),
757
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
758
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
759
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
760
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
761
+ image: z.string().describe("Main section image.").optional(),
762
+ additionalImages: z.array(z.string()).max(100).optional(),
763
+ itemIds: z.array(z.string()).max(300).optional(),
764
+ extendedFields: z.object({
765
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
766
+ "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)."
767
+ ).optional()
768
+ }).describe("Extended fields.").optional(),
769
+ visible: z.boolean().describe(
770
+ "Whether the section is visible in the menu for site visitors."
771
+ ).optional().nullable(),
772
+ businessLocationId: z.string().describe(
773
+ "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."
774
+ ).regex(
775
+ /^[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}$/,
776
+ "Must be a valid GUID"
777
+ ).optional().nullable()
778
+ }).describe(
779
+ "Created section. Only returned if `returnEntity` is set to `true`."
780
+ ).optional()
781
+ })
782
+ ).optional(),
783
+ bulkActionMetadata: z.object({
784
+ totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
785
+ totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
786
+ undetailedFailures: z.number().int().describe(
787
+ "Number of failures without details because detailed failure threshold was exceeded."
788
+ ).optional()
789
+ }).describe("Metadata for the API call.").optional()
790
+ });
791
+ var GetSectionRequest = z.object({
792
+ sectionId: z.string().describe("Section ID.").regex(
793
+ /^[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}$/,
794
+ "Must be a valid GUID"
795
+ )
796
+ });
797
+ var GetSectionResponse = z.object({
798
+ _id: z.string().describe("Section ID.").regex(
799
+ /^[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}$/,
800
+ "Must be a valid GUID"
801
+ ).optional().nullable(),
802
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
803
+ "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."
804
+ ).optional().nullable(),
805
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
806
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
807
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
808
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
809
+ image: z.string().describe("Main section image.").optional(),
810
+ additionalImages: z.array(z.string()).max(100).optional(),
811
+ itemIds: z.array(z.string()).max(300).optional(),
812
+ extendedFields: z.object({
813
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
814
+ "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)."
815
+ ).optional()
816
+ }).describe("Extended fields.").optional(),
817
+ visible: z.boolean().describe("Whether the section is visible in the menu for site visitors.").optional().nullable(),
818
+ businessLocationId: z.string().describe(
819
+ "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."
820
+ ).regex(
821
+ /^[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}$/,
822
+ "Must be a valid GUID"
823
+ ).optional().nullable()
824
+ });
825
+ var ListSectionsRequest = z.object({
826
+ options: z.object({
827
+ sectionIds: z.array(z.string()).max(500).optional(),
828
+ paging: z.object({
829
+ limit: z.number().int().describe("Number of items to load.").min(0).max(500).optional().nullable(),
830
+ cursor: z.string().describe(
831
+ "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."
832
+ ).optional().nullable()
833
+ }).describe("The metadata of the paginated results.").optional(),
834
+ onlyVisible: z.boolean().describe(
835
+ "Whether to return only sections that are visible to site visitors."
836
+ ).optional().nullable()
837
+ }).optional()
838
+ });
839
+ var ListSectionsResponse = z.object({
840
+ sections: z.array(
841
+ z.object({
842
+ _id: 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
+ ).optional().nullable(),
846
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
847
+ "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."
848
+ ).optional().nullable(),
849
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
850
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
851
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
852
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
853
+ image: z.string().describe("Main section image.").optional(),
854
+ additionalImages: z.array(z.string()).max(100).optional(),
855
+ itemIds: z.array(z.string()).max(300).optional(),
856
+ extendedFields: z.object({
857
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
858
+ "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)."
859
+ ).optional()
860
+ }).describe("Extended fields.").optional(),
861
+ visible: z.boolean().describe(
862
+ "Whether the section is visible in the menu for site visitors."
863
+ ).optional().nullable(),
864
+ businessLocationId: z.string().describe(
865
+ "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."
866
+ ).regex(
867
+ /^[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}$/,
868
+ "Must be a valid GUID"
869
+ ).optional().nullable()
870
+ })
871
+ ).optional(),
872
+ pagingMetadata: z.object({
873
+ count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
874
+ cursors: z.object({
875
+ next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
876
+ prev: z.string().describe(
877
+ "Cursor pointing to previous page in the list of results."
878
+ ).optional().nullable()
879
+ }).describe("Offset that was requested.").optional(),
880
+ hasNext: z.boolean().describe(
881
+ "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."
882
+ ).optional().nullable()
883
+ }).describe("The metadata of the paginated results.").optional()
884
+ });
885
+ var QuerySectionsRequest = z.object({
886
+ query: z.object({
887
+ filter: z.object({
888
+ image: z.object({ $exists: z.boolean() }).partial().strict().optional(),
889
+ _id: z.object({
890
+ $eq: z.string(),
891
+ $in: z.array(z.string()),
892
+ $ne: z.string(),
893
+ $nin: z.array(z.string())
894
+ }).partial().strict().optional(),
895
+ name: z.object({
896
+ $eq: z.string(),
897
+ $in: z.array(z.string()),
898
+ $ne: z.string(),
899
+ $nin: z.array(z.string()),
900
+ $startsWith: z.string()
901
+ }).partial().strict().optional(),
902
+ description: z.object({
903
+ $eq: z.string(),
904
+ $in: z.array(z.string()),
905
+ $ne: z.string(),
906
+ $nin: z.array(z.string()),
907
+ $startsWith: z.string()
908
+ }).partial().strict().optional(),
909
+ itemIds: z.object({ $exists: z.boolean(), $hasSome: z.array(z.string()) }).partial().strict().optional(),
910
+ _createdDate: z.object({
911
+ $eq: z.string(),
912
+ $gt: z.string(),
913
+ $gte: z.string(),
914
+ $lt: z.string(),
915
+ $lte: z.string(),
916
+ $ne: z.string()
917
+ }).partial().strict().optional(),
918
+ _updatedDate: z.object({
919
+ $eq: z.string(),
920
+ $gt: z.string(),
921
+ $gte: z.string(),
922
+ $lt: z.string(),
923
+ $lte: z.string(),
924
+ $ne: z.string()
925
+ }).partial().strict().optional(),
926
+ $and: z.array(z.any()).optional(),
927
+ $or: z.array(z.any()).optional(),
928
+ $not: z.any().optional()
929
+ }).strict().optional(),
930
+ sort: z.array(z.object({})).optional()
931
+ }).catchall(z.any()).describe("Query options.")
932
+ });
933
+ var QuerySectionsResponse = z.object({
934
+ sections: z.array(
935
+ z.object({
936
+ _id: z.string().describe("Section ID.").regex(
937
+ /^[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}$/,
938
+ "Must be a valid GUID"
939
+ ).optional().nullable(),
940
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
941
+ "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."
942
+ ).optional().nullable(),
943
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
944
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
945
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
946
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
947
+ image: z.string().describe("Main section image.").optional(),
948
+ additionalImages: z.array(z.string()).max(100).optional(),
949
+ itemIds: z.array(z.string()).max(300).optional(),
950
+ extendedFields: z.object({
951
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
952
+ "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)."
953
+ ).optional()
954
+ }).describe("Extended fields.").optional(),
955
+ visible: z.boolean().describe(
956
+ "Whether the section is visible in the menu for site visitors."
957
+ ).optional().nullable(),
958
+ businessLocationId: z.string().describe(
959
+ "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."
960
+ ).regex(
961
+ /^[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}$/,
962
+ "Must be a valid GUID"
963
+ ).optional().nullable()
964
+ })
965
+ ).optional(),
966
+ pagingMetadata: z.object({
967
+ count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
968
+ cursors: z.object({
969
+ next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
970
+ prev: z.string().describe(
971
+ "Cursor pointing to previous page in the list of results."
972
+ ).optional().nullable()
973
+ }).describe("Offset that was requested.").optional(),
974
+ hasNext: z.boolean().describe(
975
+ "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."
976
+ ).optional().nullable()
977
+ }).describe("The metadata of the paginated results.").optional()
978
+ });
979
+ var UpdateSectionRequest = z.object({
980
+ _id: z.string().describe("Section ID.").regex(
981
+ /^[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}$/,
982
+ "Must be a valid GUID"
983
+ ),
984
+ section: z.object({
985
+ _id: z.string().describe("Section ID.").regex(
986
+ /^[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}$/,
987
+ "Must be a valid GUID"
988
+ ).optional().nullable(),
989
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
990
+ "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."
991
+ ),
992
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
993
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
994
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
995
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
996
+ image: z.string().describe("Main section image.").optional(),
997
+ additionalImages: z.array(z.string()).max(100).optional(),
998
+ itemIds: z.array(z.string()).max(300).optional(),
999
+ extendedFields: z.object({
1000
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1001
+ "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)."
1002
+ ).optional()
1003
+ }).describe("Extended fields.").optional(),
1004
+ visible: z.boolean().describe(
1005
+ "Whether the section is visible in the menu for site visitors."
1006
+ ).optional().nullable(),
1007
+ businessLocationId: z.string().describe(
1008
+ "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."
1009
+ ).regex(
1010
+ /^[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}$/,
1011
+ "Must be a valid GUID"
1012
+ ).optional().nullable()
1013
+ }).describe("Section update.")
1014
+ });
1015
+ var UpdateSectionResponse = z.object({
1016
+ _id: z.string().describe("Section ID.").regex(
1017
+ /^[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}$/,
1018
+ "Must be a valid GUID"
1019
+ ).optional().nullable(),
1020
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1021
+ "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."
1022
+ ).optional().nullable(),
1023
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1024
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1025
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1026
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1027
+ image: z.string().describe("Main section image.").optional(),
1028
+ additionalImages: z.array(z.string()).max(100).optional(),
1029
+ itemIds: z.array(z.string()).max(300).optional(),
1030
+ extendedFields: z.object({
1031
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1032
+ "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)."
1033
+ ).optional()
1034
+ }).describe("Extended fields.").optional(),
1035
+ visible: z.boolean().describe("Whether the section is visible in the menu for site visitors.").optional().nullable(),
1036
+ businessLocationId: z.string().describe(
1037
+ "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."
1038
+ ).regex(
1039
+ /^[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}$/,
1040
+ "Must be a valid GUID"
1041
+ ).optional().nullable()
1042
+ });
1043
+ var BulkUpdateSectionRequest = z.object({
1044
+ sections: z.array(
1045
+ z.object({
1046
+ section: z.object({
1047
+ _id: z.string().describe("Section ID.").regex(
1048
+ /^[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}$/,
1049
+ "Must be a valid GUID"
1050
+ ),
1051
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1052
+ "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."
1053
+ ),
1054
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1055
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1056
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1057
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1058
+ image: z.string().describe("Main section image.").optional(),
1059
+ additionalImages: z.array(z.string()).max(100).optional(),
1060
+ itemIds: z.array(z.string()).max(300).optional(),
1061
+ extendedFields: z.object({
1062
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1063
+ "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)."
1064
+ ).optional()
1065
+ }).describe("Extended fields.").optional(),
1066
+ visible: z.boolean().describe(
1067
+ "Whether the section is visible in the menu for site visitors."
1068
+ ).optional().nullable(),
1069
+ businessLocationId: z.string().describe(
1070
+ "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."
1071
+ ).regex(
1072
+ /^[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}$/,
1073
+ "Must be a valid GUID"
1074
+ ).optional().nullable()
1075
+ }).describe("Section update.").optional(),
1076
+ mask: z.array(z.string()).optional()
1077
+ })
1078
+ ).min(1).max(100),
1079
+ options: z.object({
1080
+ returnEntity: z.boolean().describe("Whether to receive the updated sections in the response.").optional()
1081
+ }).optional()
1082
+ });
1083
+ var BulkUpdateSectionResponse = z.object({
1084
+ results: z.array(
1085
+ z.object({
1086
+ sectionMetadata: z.object({
1087
+ _id: z.string().describe(
1088
+ "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
1089
+ ).optional().nullable(),
1090
+ originalIndex: z.number().int().describe(
1091
+ "Index of the item within the request array. Allows for correlation between request and response items."
1092
+ ).optional(),
1093
+ success: z.boolean().describe(
1094
+ "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
1095
+ ).optional(),
1096
+ error: z.object({
1097
+ code: z.string().describe("Error code.").optional(),
1098
+ description: z.string().describe("Description of the error.").optional(),
1099
+ data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
1100
+ }).describe("Details about the error in case of failure.").optional()
1101
+ }).describe("Whether to receive the updated sections in the response.").optional(),
1102
+ section: z.object({
1103
+ _id: z.string().describe("Section ID.").regex(
1104
+ /^[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}$/,
1105
+ "Must be a valid GUID"
1106
+ ).optional().nullable(),
1107
+ revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
1108
+ "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."
1109
+ ).optional().nullable(),
1110
+ _createdDate: z.date().describe("Date and time the section was created.").optional().nullable(),
1111
+ _updatedDate: z.date().describe("Date and time the section was updated.").optional().nullable(),
1112
+ name: z.string().describe("Section name.").min(1).max(500).optional(),
1113
+ description: z.string().describe("Section description.").max(1500).optional().nullable(),
1114
+ image: z.string().describe("Main section image.").optional(),
1115
+ additionalImages: z.array(z.string()).max(100).optional(),
1116
+ itemIds: z.array(z.string()).max(300).optional(),
1117
+ extendedFields: z.object({
1118
+ namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
1119
+ "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)."
1120
+ ).optional()
1121
+ }).describe("Extended fields.").optional(),
1122
+ visible: z.boolean().describe(
1123
+ "Whether the section is visible in the menu for site visitors."
1124
+ ).optional().nullable(),
1125
+ businessLocationId: z.string().describe(
1126
+ "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."
1127
+ ).regex(
1128
+ /^[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}$/,
1129
+ "Must be a valid GUID"
1130
+ ).optional().nullable()
1131
+ }).describe(
1132
+ "Updated section. Only returned if `returnEntity` is set to `true`."
1133
+ ).optional()
1134
+ })
1135
+ ).min(1).max(100).optional(),
1136
+ bulkActionMetadata: z.object({
1137
+ totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
1138
+ totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
1139
+ undetailedFailures: z.number().int().describe(
1140
+ "Number of failures without details because detailed failure threshold was exceeded."
1141
+ ).optional()
1142
+ }).describe("Metadata for the API call.").optional()
1143
+ });
1144
+ var DeleteSectionRequest = z.object({
1145
+ sectionId: z.string().describe("Section ID.").regex(
1146
+ /^[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}$/,
1147
+ "Must be a valid GUID"
1148
+ )
1149
+ });
1150
+ var DeleteSectionResponse = z.object({});
1151
+ var BulkDeleteSectionsRequest = z.object({ ids: z.array(z.string()) });
1152
+ var BulkDeleteSectionsResponse = z.object({
1153
+ results: z.array(
1154
+ z.object({
1155
+ itemMetadata: z.object({
1156
+ _id: z.string().describe(
1157
+ "Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
1158
+ ).optional().nullable(),
1159
+ originalIndex: z.number().int().describe(
1160
+ "Index of the item within the request array. Allows for correlation between request and response items."
1161
+ ).optional(),
1162
+ success: z.boolean().describe(
1163
+ "Whether the requested action was successful for this item. When `false`, the `error` field is populated."
1164
+ ).optional(),
1165
+ error: z.object({
1166
+ code: z.string().describe("Error code.").optional(),
1167
+ description: z.string().describe("Description of the error.").optional(),
1168
+ data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
1169
+ }).describe("Details about the error in case of failure.").optional()
1170
+ }).describe("Metadata for deleted sections.").optional()
1171
+ })
1172
+ ).optional(),
1173
+ bulkActionMetadata: z.object({
1174
+ totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
1175
+ totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
1176
+ undetailedFailures: z.number().int().describe(
1177
+ "Number of failures without details because detailed failure threshold was exceeded."
1178
+ ).optional()
1179
+ }).describe("Metadata for the API call.").optional()
1180
+ });
1181
+
1182
+ // src/restaurants-menus-v1-section-sections.universal.ts
615
1183
  import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
616
1184
  var AvailabilityType = /* @__PURE__ */ ((AvailabilityType2) => {
617
1185
  AvailabilityType2["UNSPECIFIED_AVAILABILITY_OPTION"] = "UNSPECIFIED_AVAILABILITY_OPTION";
@@ -644,7 +1212,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
644
1212
  return WebhookIdentityType2;
645
1213
  })(WebhookIdentityType || {});
646
1214
  async function duplicateSection2(_id, options) {
647
- const { httpClient, sideEffects } = arguments[2];
1215
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1216
+ if (validateRequestSchema) {
1217
+ DuplicateSectionRequest.parse({ _id, options });
1218
+ }
648
1219
  const payload = renameKeysFromSDKRequestToRESTRequest({
649
1220
  id: _id,
650
1221
  businessLocationIds: options?.businessLocationIds,
@@ -675,7 +1246,10 @@ async function duplicateSection2(_id, options) {
675
1246
  }
676
1247
  }
677
1248
  async function createSection2(section) {
678
- const { httpClient, sideEffects } = arguments[1];
1249
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1250
+ if (validateRequestSchema) {
1251
+ CreateSectionRequest.parse({ section });
1252
+ }
679
1253
  const payload = transformPaths2(
680
1254
  renameKeysFromSDKRequestToRESTRequest({ section }),
681
1255
  [
@@ -719,7 +1293,10 @@ async function createSection2(section) {
719
1293
  }
720
1294
  }
721
1295
  async function bulkCreateSections2(sections, options) {
722
- const { httpClient, sideEffects } = arguments[2];
1296
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1297
+ if (validateRequestSchema) {
1298
+ BulkCreateSectionsRequest.parse({ sections, options });
1299
+ }
723
1300
  const payload = transformPaths2(
724
1301
  renameKeysFromSDKRequestToRESTRequest({
725
1302
  sections,
@@ -769,7 +1346,10 @@ async function bulkCreateSections2(sections, options) {
769
1346
  }
770
1347
  }
771
1348
  async function getSection2(sectionId) {
772
- const { httpClient, sideEffects } = arguments[1];
1349
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1350
+ if (validateRequestSchema) {
1351
+ GetSectionRequest.parse({ sectionId });
1352
+ }
773
1353
  const payload = renameKeysFromSDKRequestToRESTRequest({
774
1354
  sectionId
775
1355
  });
@@ -804,7 +1384,10 @@ async function getSection2(sectionId) {
804
1384
  }
805
1385
  }
806
1386
  async function listSections2(options) {
807
- const { httpClient, sideEffects } = arguments[1];
1387
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1388
+ if (validateRequestSchema) {
1389
+ ListSectionsRequest.parse({ options });
1390
+ }
808
1391
  const payload = renameKeysFromSDKRequestToRESTRequest({
809
1392
  sectionIds: options?.sectionIds,
810
1393
  paging: options?.paging,
@@ -896,7 +1479,10 @@ function querySections2() {
896
1479
  });
897
1480
  }
898
1481
  async function typedQuerySections(query) {
899
- const { httpClient, sideEffects } = arguments[1];
1482
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1483
+ if (validateRequestSchema) {
1484
+ QuerySectionsRequest.parse({ query });
1485
+ }
900
1486
  const payload = renameKeysFromSDKRequestToRESTRequest({ query });
901
1487
  const reqOpts = querySections(payload);
902
1488
  sideEffects?.onSiteCall?.();
@@ -934,7 +1520,10 @@ var utils = {
934
1520
  }
935
1521
  };
936
1522
  async function updateSection2(_id, section) {
937
- const { httpClient, sideEffects } = arguments[2];
1523
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1524
+ if (validateRequestSchema) {
1525
+ UpdateSectionRequest.parse({ _id, section });
1526
+ }
938
1527
  const payload = transformPaths2(
939
1528
  renameKeysFromSDKRequestToRESTRequest({ section: { ...section, id: _id } }),
940
1529
  [
@@ -978,7 +1567,10 @@ async function updateSection2(_id, section) {
978
1567
  }
979
1568
  }
980
1569
  async function bulkUpdateSection2(sections, options) {
981
- const { httpClient, sideEffects } = arguments[2];
1570
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
1571
+ if (validateRequestSchema) {
1572
+ BulkUpdateSectionRequest.parse({ sections, options });
1573
+ }
982
1574
  const payload = transformPaths2(
983
1575
  renameKeysFromSDKRequestToRESTRequest({
984
1576
  sections,
@@ -1028,7 +1620,10 @@ async function bulkUpdateSection2(sections, options) {
1028
1620
  }
1029
1621
  }
1030
1622
  async function deleteSection2(sectionId) {
1031
- const { httpClient, sideEffects } = arguments[1];
1623
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1624
+ if (validateRequestSchema) {
1625
+ DeleteSectionRequest.parse({ sectionId });
1626
+ }
1032
1627
  const payload = renameKeysFromSDKRequestToRESTRequest({
1033
1628
  sectionId
1034
1629
  });
@@ -1052,7 +1647,10 @@ async function deleteSection2(sectionId) {
1052
1647
  }
1053
1648
  }
1054
1649
  async function bulkDeleteSections2(ids) {
1055
- const { httpClient, sideEffects } = arguments[1];
1650
+ const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
1651
+ if (validateRequestSchema) {
1652
+ BulkDeleteSectionsRequest.parse({ ids });
1653
+ }
1056
1654
  const payload = renameKeysFromSDKRequestToRESTRequest({ ids });
1057
1655
  const reqOpts = bulkDeleteSections(payload);
1058
1656
  sideEffects?.onSiteCall?.();
@@ -1076,84 +1674,84 @@ async function bulkDeleteSections2(ids) {
1076
1674
  }
1077
1675
 
1078
1676
  // src/restaurants-menus-v1-section-sections.public.ts
1079
- function duplicateSection3(httpClient) {
1677
+ function duplicateSection3(httpClient, __options) {
1080
1678
  return (_id, options) => duplicateSection2(
1081
1679
  _id,
1082
1680
  options,
1083
1681
  // @ts-ignore
1084
- { httpClient }
1682
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1085
1683
  );
1086
1684
  }
1087
- function createSection3(httpClient) {
1685
+ function createSection3(httpClient, __options) {
1088
1686
  return (section) => createSection2(
1089
1687
  section,
1090
1688
  // @ts-ignore
1091
- { httpClient }
1689
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1092
1690
  );
1093
1691
  }
1094
- function bulkCreateSections3(httpClient) {
1692
+ function bulkCreateSections3(httpClient, __options) {
1095
1693
  return (sections, options) => bulkCreateSections2(
1096
1694
  sections,
1097
1695
  options,
1098
1696
  // @ts-ignore
1099
- { httpClient }
1697
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1100
1698
  );
1101
1699
  }
1102
- function getSection3(httpClient) {
1700
+ function getSection3(httpClient, __options) {
1103
1701
  return (sectionId) => getSection2(
1104
1702
  sectionId,
1105
1703
  // @ts-ignore
1106
- { httpClient }
1704
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1107
1705
  );
1108
1706
  }
1109
- function listSections3(httpClient) {
1707
+ function listSections3(httpClient, __options) {
1110
1708
  return (options) => listSections2(
1111
1709
  options,
1112
1710
  // @ts-ignore
1113
- { httpClient }
1711
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1114
1712
  );
1115
1713
  }
1116
- function querySections3(httpClient) {
1714
+ function querySections3(httpClient, __options) {
1117
1715
  return () => querySections2(
1118
1716
  // @ts-ignore
1119
- { httpClient }
1717
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1120
1718
  );
1121
1719
  }
1122
- function typedQuerySections2(httpClient) {
1720
+ function typedQuerySections2(httpClient, __options) {
1123
1721
  return (query) => typedQuerySections(
1124
1722
  query,
1125
1723
  // @ts-ignore
1126
- { httpClient }
1724
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1127
1725
  );
1128
1726
  }
1129
- function updateSection3(httpClient) {
1727
+ function updateSection3(httpClient, __options) {
1130
1728
  return (_id, section) => updateSection2(
1131
1729
  _id,
1132
1730
  section,
1133
1731
  // @ts-ignore
1134
- { httpClient }
1732
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1135
1733
  );
1136
1734
  }
1137
- function bulkUpdateSection3(httpClient) {
1735
+ function bulkUpdateSection3(httpClient, __options) {
1138
1736
  return (sections, options) => bulkUpdateSection2(
1139
1737
  sections,
1140
1738
  options,
1141
1739
  // @ts-ignore
1142
- { httpClient }
1740
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1143
1741
  );
1144
1742
  }
1145
- function deleteSection3(httpClient) {
1743
+ function deleteSection3(httpClient, __options) {
1146
1744
  return (sectionId) => deleteSection2(
1147
1745
  sectionId,
1148
1746
  // @ts-ignore
1149
- { httpClient }
1747
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1150
1748
  );
1151
1749
  }
1152
- function bulkDeleteSections3(httpClient) {
1750
+ function bulkDeleteSections3(httpClient, __options) {
1153
1751
  return (ids) => bulkDeleteSections2(
1154
1752
  ids,
1155
1753
  // @ts-ignore
1156
- { httpClient }
1754
+ { httpClient, validateRequestSchema: __options?.validateRequestSchema }
1157
1755
  );
1158
1756
  }
1159
1757
  var onSectionCreated = EventDefinition(