@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.
- package/build/cjs/index.d.ts +9 -27
- package/build/cjs/index.js +32 -640
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +10 -618
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +9 -27
- package/build/es/index.mjs +32 -630
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +10 -608
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +9 -27
- package/build/internal/cjs/index.js +32 -640
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +10 -618
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +9 -27
- package/build/internal/es/index.mjs +32 -630
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +10 -608
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -612,574 +612,6 @@ 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
|
|
1183
615
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
1184
616
|
var AvailabilityType = /* @__PURE__ */ ((AvailabilityType2) => {
|
|
1185
617
|
AvailabilityType2["UNSPECIFIED_AVAILABILITY_OPTION"] = "UNSPECIFIED_AVAILABILITY_OPTION";
|
|
@@ -1212,10 +644,7 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1212
644
|
return WebhookIdentityType2;
|
|
1213
645
|
})(WebhookIdentityType || {});
|
|
1214
646
|
async function duplicateSection2(_id, options) {
|
|
1215
|
-
const { httpClient, sideEffects
|
|
1216
|
-
if (validateRequestSchema) {
|
|
1217
|
-
DuplicateSectionRequest.parse({ _id, options });
|
|
1218
|
-
}
|
|
647
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1219
648
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1220
649
|
id: _id,
|
|
1221
650
|
businessLocationIds: options?.businessLocationIds,
|
|
@@ -1246,10 +675,7 @@ async function duplicateSection2(_id, options) {
|
|
|
1246
675
|
}
|
|
1247
676
|
}
|
|
1248
677
|
async function createSection2(section) {
|
|
1249
|
-
const { httpClient, sideEffects
|
|
1250
|
-
if (validateRequestSchema) {
|
|
1251
|
-
CreateSectionRequest.parse({ section });
|
|
1252
|
-
}
|
|
678
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1253
679
|
const payload = transformPaths2(
|
|
1254
680
|
renameKeysFromSDKRequestToRESTRequest({ section }),
|
|
1255
681
|
[
|
|
@@ -1293,10 +719,7 @@ async function createSection2(section) {
|
|
|
1293
719
|
}
|
|
1294
720
|
}
|
|
1295
721
|
async function bulkCreateSections2(sections, options) {
|
|
1296
|
-
const { httpClient, sideEffects
|
|
1297
|
-
if (validateRequestSchema) {
|
|
1298
|
-
BulkCreateSectionsRequest.parse({ sections, options });
|
|
1299
|
-
}
|
|
722
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1300
723
|
const payload = transformPaths2(
|
|
1301
724
|
renameKeysFromSDKRequestToRESTRequest({
|
|
1302
725
|
sections,
|
|
@@ -1346,10 +769,7 @@ async function bulkCreateSections2(sections, options) {
|
|
|
1346
769
|
}
|
|
1347
770
|
}
|
|
1348
771
|
async function getSection2(sectionId) {
|
|
1349
|
-
const { httpClient, sideEffects
|
|
1350
|
-
if (validateRequestSchema) {
|
|
1351
|
-
GetSectionRequest.parse({ sectionId });
|
|
1352
|
-
}
|
|
772
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1353
773
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1354
774
|
sectionId
|
|
1355
775
|
});
|
|
@@ -1384,10 +804,7 @@ async function getSection2(sectionId) {
|
|
|
1384
804
|
}
|
|
1385
805
|
}
|
|
1386
806
|
async function listSections2(options) {
|
|
1387
|
-
const { httpClient, sideEffects
|
|
1388
|
-
if (validateRequestSchema) {
|
|
1389
|
-
ListSectionsRequest.parse({ options });
|
|
1390
|
-
}
|
|
807
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1391
808
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1392
809
|
sectionIds: options?.sectionIds,
|
|
1393
810
|
paging: options?.paging,
|
|
@@ -1479,10 +896,7 @@ function querySections2() {
|
|
|
1479
896
|
});
|
|
1480
897
|
}
|
|
1481
898
|
async function typedQuerySections(query) {
|
|
1482
|
-
const { httpClient, sideEffects
|
|
1483
|
-
if (validateRequestSchema) {
|
|
1484
|
-
QuerySectionsRequest.parse({ query });
|
|
1485
|
-
}
|
|
899
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1486
900
|
const payload = renameKeysFromSDKRequestToRESTRequest({ query });
|
|
1487
901
|
const reqOpts = querySections(payload);
|
|
1488
902
|
sideEffects?.onSiteCall?.();
|
|
@@ -1520,10 +934,7 @@ var utils = {
|
|
|
1520
934
|
}
|
|
1521
935
|
};
|
|
1522
936
|
async function updateSection2(_id, section) {
|
|
1523
|
-
const { httpClient, sideEffects
|
|
1524
|
-
if (validateRequestSchema) {
|
|
1525
|
-
UpdateSectionRequest.parse({ _id, section });
|
|
1526
|
-
}
|
|
937
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1527
938
|
const payload = transformPaths2(
|
|
1528
939
|
renameKeysFromSDKRequestToRESTRequest({ section: { ...section, id: _id } }),
|
|
1529
940
|
[
|
|
@@ -1567,10 +978,7 @@ async function updateSection2(_id, section) {
|
|
|
1567
978
|
}
|
|
1568
979
|
}
|
|
1569
980
|
async function bulkUpdateSection2(sections, options) {
|
|
1570
|
-
const { httpClient, sideEffects
|
|
1571
|
-
if (validateRequestSchema) {
|
|
1572
|
-
BulkUpdateSectionRequest.parse({ sections, options });
|
|
1573
|
-
}
|
|
981
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1574
982
|
const payload = transformPaths2(
|
|
1575
983
|
renameKeysFromSDKRequestToRESTRequest({
|
|
1576
984
|
sections,
|
|
@@ -1620,10 +1028,7 @@ async function bulkUpdateSection2(sections, options) {
|
|
|
1620
1028
|
}
|
|
1621
1029
|
}
|
|
1622
1030
|
async function deleteSection2(sectionId) {
|
|
1623
|
-
const { httpClient, sideEffects
|
|
1624
|
-
if (validateRequestSchema) {
|
|
1625
|
-
DeleteSectionRequest.parse({ sectionId });
|
|
1626
|
-
}
|
|
1031
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1627
1032
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1628
1033
|
sectionId
|
|
1629
1034
|
});
|
|
@@ -1647,10 +1052,7 @@ async function deleteSection2(sectionId) {
|
|
|
1647
1052
|
}
|
|
1648
1053
|
}
|
|
1649
1054
|
async function bulkDeleteSections2(ids) {
|
|
1650
|
-
const { httpClient, sideEffects
|
|
1651
|
-
if (validateRequestSchema) {
|
|
1652
|
-
BulkDeleteSectionsRequest.parse({ ids });
|
|
1653
|
-
}
|
|
1055
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1654
1056
|
const payload = renameKeysFromSDKRequestToRESTRequest({ ids });
|
|
1655
1057
|
const reqOpts = bulkDeleteSections(payload);
|
|
1656
1058
|
sideEffects?.onSiteCall?.();
|
|
@@ -1674,84 +1076,84 @@ async function bulkDeleteSections2(ids) {
|
|
|
1674
1076
|
}
|
|
1675
1077
|
|
|
1676
1078
|
// src/restaurants-menus-v1-section-sections.public.ts
|
|
1677
|
-
function duplicateSection3(httpClient
|
|
1079
|
+
function duplicateSection3(httpClient) {
|
|
1678
1080
|
return (_id, options) => duplicateSection2(
|
|
1679
1081
|
_id,
|
|
1680
1082
|
options,
|
|
1681
1083
|
// @ts-ignore
|
|
1682
|
-
{ httpClient
|
|
1084
|
+
{ httpClient }
|
|
1683
1085
|
);
|
|
1684
1086
|
}
|
|
1685
|
-
function createSection3(httpClient
|
|
1087
|
+
function createSection3(httpClient) {
|
|
1686
1088
|
return (section) => createSection2(
|
|
1687
1089
|
section,
|
|
1688
1090
|
// @ts-ignore
|
|
1689
|
-
{ httpClient
|
|
1091
|
+
{ httpClient }
|
|
1690
1092
|
);
|
|
1691
1093
|
}
|
|
1692
|
-
function bulkCreateSections3(httpClient
|
|
1094
|
+
function bulkCreateSections3(httpClient) {
|
|
1693
1095
|
return (sections, options) => bulkCreateSections2(
|
|
1694
1096
|
sections,
|
|
1695
1097
|
options,
|
|
1696
1098
|
// @ts-ignore
|
|
1697
|
-
{ httpClient
|
|
1099
|
+
{ httpClient }
|
|
1698
1100
|
);
|
|
1699
1101
|
}
|
|
1700
|
-
function getSection3(httpClient
|
|
1102
|
+
function getSection3(httpClient) {
|
|
1701
1103
|
return (sectionId) => getSection2(
|
|
1702
1104
|
sectionId,
|
|
1703
1105
|
// @ts-ignore
|
|
1704
|
-
{ httpClient
|
|
1106
|
+
{ httpClient }
|
|
1705
1107
|
);
|
|
1706
1108
|
}
|
|
1707
|
-
function listSections3(httpClient
|
|
1109
|
+
function listSections3(httpClient) {
|
|
1708
1110
|
return (options) => listSections2(
|
|
1709
1111
|
options,
|
|
1710
1112
|
// @ts-ignore
|
|
1711
|
-
{ httpClient
|
|
1113
|
+
{ httpClient }
|
|
1712
1114
|
);
|
|
1713
1115
|
}
|
|
1714
|
-
function querySections3(httpClient
|
|
1116
|
+
function querySections3(httpClient) {
|
|
1715
1117
|
return () => querySections2(
|
|
1716
1118
|
// @ts-ignore
|
|
1717
|
-
{ httpClient
|
|
1119
|
+
{ httpClient }
|
|
1718
1120
|
);
|
|
1719
1121
|
}
|
|
1720
|
-
function typedQuerySections2(httpClient
|
|
1122
|
+
function typedQuerySections2(httpClient) {
|
|
1721
1123
|
return (query) => typedQuerySections(
|
|
1722
1124
|
query,
|
|
1723
1125
|
// @ts-ignore
|
|
1724
|
-
{ httpClient
|
|
1126
|
+
{ httpClient }
|
|
1725
1127
|
);
|
|
1726
1128
|
}
|
|
1727
|
-
function updateSection3(httpClient
|
|
1129
|
+
function updateSection3(httpClient) {
|
|
1728
1130
|
return (_id, section) => updateSection2(
|
|
1729
1131
|
_id,
|
|
1730
1132
|
section,
|
|
1731
1133
|
// @ts-ignore
|
|
1732
|
-
{ httpClient
|
|
1134
|
+
{ httpClient }
|
|
1733
1135
|
);
|
|
1734
1136
|
}
|
|
1735
|
-
function bulkUpdateSection3(httpClient
|
|
1137
|
+
function bulkUpdateSection3(httpClient) {
|
|
1736
1138
|
return (sections, options) => bulkUpdateSection2(
|
|
1737
1139
|
sections,
|
|
1738
1140
|
options,
|
|
1739
1141
|
// @ts-ignore
|
|
1740
|
-
{ httpClient
|
|
1142
|
+
{ httpClient }
|
|
1741
1143
|
);
|
|
1742
1144
|
}
|
|
1743
|
-
function deleteSection3(httpClient
|
|
1145
|
+
function deleteSection3(httpClient) {
|
|
1744
1146
|
return (sectionId) => deleteSection2(
|
|
1745
1147
|
sectionId,
|
|
1746
1148
|
// @ts-ignore
|
|
1747
|
-
{ httpClient
|
|
1149
|
+
{ httpClient }
|
|
1748
1150
|
);
|
|
1749
1151
|
}
|
|
1750
|
-
function bulkDeleteSections3(httpClient
|
|
1152
|
+
function bulkDeleteSections3(httpClient) {
|
|
1751
1153
|
return (ids) => bulkDeleteSections2(
|
|
1752
1154
|
ids,
|
|
1753
1155
|
// @ts-ignore
|
|
1754
|
-
{ httpClient
|
|
1156
|
+
{ httpClient }
|
|
1755
1157
|
);
|
|
1756
1158
|
}
|
|
1757
1159
|
var onSectionCreated = EventDefinition(
|