@wix/auto_sdk_restaurants_item-modifier-groups 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 +27 -9
- package/build/cjs/index.js +806 -32
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +784 -10
- package/build/cjs/index.typings.js.map +1 -1
- package/build/es/index.d.mts +27 -9
- package/build/es/index.mjs +796 -32
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +774 -10
- package/build/es/index.typings.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +27 -9
- package/build/internal/cjs/index.js +806 -32
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +784 -10
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/es/index.d.mts +27 -9
- package/build/internal/es/index.mjs +796 -32
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +774 -10
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
5
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
8
|
var __export = (target, all) => {
|
|
7
9
|
for (var name in all)
|
|
@@ -15,6 +17,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
17
|
}
|
|
16
18
|
return to;
|
|
17
19
|
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
18
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
29
|
|
|
20
30
|
// index.ts
|
|
@@ -514,6 +524,740 @@ function bulkDeleteModifierGroups(payload) {
|
|
|
514
524
|
|
|
515
525
|
// src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.ts
|
|
516
526
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
527
|
+
|
|
528
|
+
// src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.schemas.ts
|
|
529
|
+
var z = __toESM(require("zod"));
|
|
530
|
+
var CreateModifierGroupRequest = z.object({
|
|
531
|
+
modifierGroup: z.object({
|
|
532
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
533
|
+
/^[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}$/,
|
|
534
|
+
"Must be a valid GUID"
|
|
535
|
+
).optional().nullable(),
|
|
536
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
537
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
538
|
+
).optional().nullable(),
|
|
539
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
540
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
541
|
+
name: z.string().describe("Modifier group name.").min(1).max(100),
|
|
542
|
+
modifiers: z.array(
|
|
543
|
+
z.object({
|
|
544
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
545
|
+
/^[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}$/,
|
|
546
|
+
"Must be a valid GUID"
|
|
547
|
+
).optional(),
|
|
548
|
+
preSelected: z.boolean().describe(
|
|
549
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
550
|
+
).optional().nullable(),
|
|
551
|
+
additionalChargeInfo: z.object({
|
|
552
|
+
additionalCharge: z.string().describe(
|
|
553
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
554
|
+
).optional().nullable()
|
|
555
|
+
}).describe("Item modifier price details.").optional()
|
|
556
|
+
})
|
|
557
|
+
).min(0).max(500).optional(),
|
|
558
|
+
rule: z.object({
|
|
559
|
+
required: z.boolean().describe(
|
|
560
|
+
"Whether the items from the modifier group must be selected."
|
|
561
|
+
).optional().nullable(),
|
|
562
|
+
minSelections: z.number().int().describe(
|
|
563
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
564
|
+
).min(0).max(25).optional().nullable(),
|
|
565
|
+
maxSelections: z.number().int().describe(
|
|
566
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
567
|
+
).min(0).max(25).optional().nullable()
|
|
568
|
+
}).describe("Modifier group details.").optional(),
|
|
569
|
+
extendedFields: z.object({
|
|
570
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
571
|
+
"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)."
|
|
572
|
+
).optional()
|
|
573
|
+
}).describe("Extended fields.").optional(),
|
|
574
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
575
|
+
}).describe("Modifier group details.")
|
|
576
|
+
});
|
|
577
|
+
var CreateModifierGroupResponse = z.object({
|
|
578
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
579
|
+
/^[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}$/,
|
|
580
|
+
"Must be a valid GUID"
|
|
581
|
+
).optional().nullable(),
|
|
582
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
583
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
584
|
+
).optional().nullable(),
|
|
585
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
586
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
587
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
588
|
+
modifiers: z.array(
|
|
589
|
+
z.object({
|
|
590
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
591
|
+
/^[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}$/,
|
|
592
|
+
"Must be a valid GUID"
|
|
593
|
+
).optional(),
|
|
594
|
+
preSelected: z.boolean().describe(
|
|
595
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
596
|
+
).optional().nullable(),
|
|
597
|
+
additionalChargeInfo: z.object({
|
|
598
|
+
additionalCharge: z.string().describe(
|
|
599
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
600
|
+
).optional().nullable()
|
|
601
|
+
}).describe("Item modifier price details.").optional()
|
|
602
|
+
})
|
|
603
|
+
).min(0).max(500).optional(),
|
|
604
|
+
rule: z.object({
|
|
605
|
+
required: z.boolean().describe("Whether the items from the modifier group must be selected.").optional().nullable(),
|
|
606
|
+
minSelections: z.number().int().describe(
|
|
607
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
608
|
+
).min(0).max(25).optional().nullable(),
|
|
609
|
+
maxSelections: z.number().int().describe(
|
|
610
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
611
|
+
).min(0).max(25).optional().nullable()
|
|
612
|
+
}).describe("Modifier group details.").optional(),
|
|
613
|
+
extendedFields: z.object({
|
|
614
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
615
|
+
"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)."
|
|
616
|
+
).optional()
|
|
617
|
+
}).describe("Extended fields.").optional(),
|
|
618
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
619
|
+
});
|
|
620
|
+
var GetModifierGroupRequest = z.object({
|
|
621
|
+
modifierGroupId: z.string().describe("Modifier group ID.").regex(
|
|
622
|
+
/^[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}$/,
|
|
623
|
+
"Must be a valid GUID"
|
|
624
|
+
)
|
|
625
|
+
});
|
|
626
|
+
var GetModifierGroupResponse = z.object({
|
|
627
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
628
|
+
/^[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}$/,
|
|
629
|
+
"Must be a valid GUID"
|
|
630
|
+
).optional().nullable(),
|
|
631
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
632
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
633
|
+
).optional().nullable(),
|
|
634
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
635
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
636
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
637
|
+
modifiers: z.array(
|
|
638
|
+
z.object({
|
|
639
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
640
|
+
/^[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}$/,
|
|
641
|
+
"Must be a valid GUID"
|
|
642
|
+
).optional(),
|
|
643
|
+
preSelected: z.boolean().describe(
|
|
644
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
645
|
+
).optional().nullable(),
|
|
646
|
+
additionalChargeInfo: z.object({
|
|
647
|
+
additionalCharge: z.string().describe(
|
|
648
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
649
|
+
).optional().nullable()
|
|
650
|
+
}).describe("Item modifier price details.").optional()
|
|
651
|
+
})
|
|
652
|
+
).min(0).max(500).optional(),
|
|
653
|
+
rule: z.object({
|
|
654
|
+
required: z.boolean().describe("Whether the items from the modifier group must be selected.").optional().nullable(),
|
|
655
|
+
minSelections: z.number().int().describe(
|
|
656
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
657
|
+
).min(0).max(25).optional().nullable(),
|
|
658
|
+
maxSelections: z.number().int().describe(
|
|
659
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
660
|
+
).min(0).max(25).optional().nullable()
|
|
661
|
+
}).describe("Modifier group details.").optional(),
|
|
662
|
+
extendedFields: z.object({
|
|
663
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
664
|
+
"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)."
|
|
665
|
+
).optional()
|
|
666
|
+
}).describe("Extended fields.").optional(),
|
|
667
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
668
|
+
});
|
|
669
|
+
var ListModifierGroupsRequest = z.object({
|
|
670
|
+
options: z.object({
|
|
671
|
+
modifierGroupIds: z.array(z.string()).max(500).optional(),
|
|
672
|
+
paging: z.object({
|
|
673
|
+
limit: z.number().int().describe("Number of items to load.").min(0).max(500).optional().nullable(),
|
|
674
|
+
cursor: z.string().describe(
|
|
675
|
+
"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."
|
|
676
|
+
).optional().nullable()
|
|
677
|
+
}).describe("The metadata of the paginated results.").optional()
|
|
678
|
+
}).optional()
|
|
679
|
+
});
|
|
680
|
+
var ListModifierGroupsResponse = z.object({
|
|
681
|
+
modifierGroups: z.array(
|
|
682
|
+
z.object({
|
|
683
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
684
|
+
/^[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}$/,
|
|
685
|
+
"Must be a valid GUID"
|
|
686
|
+
).optional().nullable(),
|
|
687
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
688
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
689
|
+
).optional().nullable(),
|
|
690
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
691
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
692
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
693
|
+
modifiers: z.array(
|
|
694
|
+
z.object({
|
|
695
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
696
|
+
/^[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}$/,
|
|
697
|
+
"Must be a valid GUID"
|
|
698
|
+
).optional(),
|
|
699
|
+
preSelected: z.boolean().describe(
|
|
700
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
701
|
+
).optional().nullable(),
|
|
702
|
+
additionalChargeInfo: z.object({
|
|
703
|
+
additionalCharge: z.string().describe(
|
|
704
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
705
|
+
).optional().nullable()
|
|
706
|
+
}).describe("Item modifier price details.").optional()
|
|
707
|
+
})
|
|
708
|
+
).min(0).max(500).optional(),
|
|
709
|
+
rule: z.object({
|
|
710
|
+
required: z.boolean().describe(
|
|
711
|
+
"Whether the items from the modifier group must be selected."
|
|
712
|
+
).optional().nullable(),
|
|
713
|
+
minSelections: z.number().int().describe(
|
|
714
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
715
|
+
).min(0).max(25).optional().nullable(),
|
|
716
|
+
maxSelections: z.number().int().describe(
|
|
717
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
718
|
+
).min(0).max(25).optional().nullable()
|
|
719
|
+
}).describe("Modifier group details.").optional(),
|
|
720
|
+
extendedFields: z.object({
|
|
721
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
722
|
+
"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)."
|
|
723
|
+
).optional()
|
|
724
|
+
}).describe("Extended fields.").optional(),
|
|
725
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
726
|
+
})
|
|
727
|
+
).optional(),
|
|
728
|
+
metadata: z.object({
|
|
729
|
+
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
730
|
+
cursors: z.object({
|
|
731
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
732
|
+
prev: z.string().describe(
|
|
733
|
+
"Cursor pointing to previous page in the list of results."
|
|
734
|
+
).optional().nullable()
|
|
735
|
+
}).describe("Offset that was requested.").optional(),
|
|
736
|
+
hasNext: z.boolean().describe(
|
|
737
|
+
"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."
|
|
738
|
+
).optional().nullable()
|
|
739
|
+
}).describe("The metadata of the paginated results.").optional()
|
|
740
|
+
});
|
|
741
|
+
var QueryModifierGroupsRequest = z.object({
|
|
742
|
+
query: z.object({
|
|
743
|
+
filter: z.object({
|
|
744
|
+
_id: z.object({
|
|
745
|
+
$eq: z.string(),
|
|
746
|
+
$in: z.array(z.string()),
|
|
747
|
+
$ne: z.string(),
|
|
748
|
+
$nin: z.array(z.string())
|
|
749
|
+
}).partial().strict().optional(),
|
|
750
|
+
_createdDate: z.object({
|
|
751
|
+
$eq: z.string(),
|
|
752
|
+
$gt: z.string(),
|
|
753
|
+
$gte: z.string(),
|
|
754
|
+
$lt: z.string(),
|
|
755
|
+
$lte: z.string(),
|
|
756
|
+
$ne: z.string()
|
|
757
|
+
}).partial().strict().optional(),
|
|
758
|
+
_updatedDate: z.object({
|
|
759
|
+
$eq: z.string(),
|
|
760
|
+
$gt: z.string(),
|
|
761
|
+
$gte: z.string(),
|
|
762
|
+
$lt: z.string(),
|
|
763
|
+
$lte: z.string(),
|
|
764
|
+
$ne: z.string()
|
|
765
|
+
}).partial().strict().optional(),
|
|
766
|
+
"modifiers._id": z.object({
|
|
767
|
+
$hasSome: z.array(z.string()),
|
|
768
|
+
$in: z.array(z.string()),
|
|
769
|
+
$nin: z.array(z.string())
|
|
770
|
+
}).partial().strict().optional(),
|
|
771
|
+
"modifiers.preSelected": z.object({ $eq: z.boolean(), $ne: z.boolean() }).partial().strict().optional(),
|
|
772
|
+
"rule.minSelections": z.object({ $eq: z.number(), $ne: z.number() }).partial().strict().optional(),
|
|
773
|
+
"rule.maxSelections": z.object({ $eq: z.number(), $ne: z.number() }).partial().strict().optional(),
|
|
774
|
+
modifiers: z.object({ $exists: z.boolean() }).partial().strict().optional(),
|
|
775
|
+
"rule.required": z.object({
|
|
776
|
+
$eq: z.boolean(),
|
|
777
|
+
$in: z.array(z.boolean()),
|
|
778
|
+
$ne: z.boolean(),
|
|
779
|
+
$nin: z.array(z.boolean())
|
|
780
|
+
}).partial().strict().optional(),
|
|
781
|
+
rule: z.object({ $exists: z.boolean() }).partial().strict().optional(),
|
|
782
|
+
name: z.object({
|
|
783
|
+
$eq: z.string(),
|
|
784
|
+
$in: z.array(z.string()),
|
|
785
|
+
$ne: z.string(),
|
|
786
|
+
$nin: z.array(z.string()),
|
|
787
|
+
$startsWith: z.string()
|
|
788
|
+
}).partial().strict().optional(),
|
|
789
|
+
$and: z.array(z.any()).optional(),
|
|
790
|
+
$or: z.array(z.any()).optional(),
|
|
791
|
+
$not: z.any().optional()
|
|
792
|
+
}).strict().optional(),
|
|
793
|
+
sort: z.array(z.object({})).optional()
|
|
794
|
+
}).catchall(z.any()).describe("Query options.")
|
|
795
|
+
});
|
|
796
|
+
var QueryModifierGroupsResponse = z.object({
|
|
797
|
+
modifierGroups: z.array(
|
|
798
|
+
z.object({
|
|
799
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
800
|
+
/^[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}$/,
|
|
801
|
+
"Must be a valid GUID"
|
|
802
|
+
).optional().nullable(),
|
|
803
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
804
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
805
|
+
).optional().nullable(),
|
|
806
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
807
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
808
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
809
|
+
modifiers: z.array(
|
|
810
|
+
z.object({
|
|
811
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
812
|
+
/^[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}$/,
|
|
813
|
+
"Must be a valid GUID"
|
|
814
|
+
).optional(),
|
|
815
|
+
preSelected: z.boolean().describe(
|
|
816
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
817
|
+
).optional().nullable(),
|
|
818
|
+
additionalChargeInfo: z.object({
|
|
819
|
+
additionalCharge: z.string().describe(
|
|
820
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
821
|
+
).optional().nullable()
|
|
822
|
+
}).describe("Item modifier price details.").optional()
|
|
823
|
+
})
|
|
824
|
+
).min(0).max(500).optional(),
|
|
825
|
+
rule: z.object({
|
|
826
|
+
required: z.boolean().describe(
|
|
827
|
+
"Whether the items from the modifier group must be selected."
|
|
828
|
+
).optional().nullable(),
|
|
829
|
+
minSelections: z.number().int().describe(
|
|
830
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
831
|
+
).min(0).max(25).optional().nullable(),
|
|
832
|
+
maxSelections: z.number().int().describe(
|
|
833
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
834
|
+
).min(0).max(25).optional().nullable()
|
|
835
|
+
}).describe("Modifier group details.").optional(),
|
|
836
|
+
extendedFields: z.object({
|
|
837
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
838
|
+
"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)."
|
|
839
|
+
).optional()
|
|
840
|
+
}).describe("Extended fields.").optional(),
|
|
841
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
842
|
+
})
|
|
843
|
+
).optional(),
|
|
844
|
+
pagingMetadata: z.object({
|
|
845
|
+
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
846
|
+
cursors: z.object({
|
|
847
|
+
next: z.string().describe("Cursor pointing to next page in the list of results.").optional().nullable(),
|
|
848
|
+
prev: z.string().describe(
|
|
849
|
+
"Cursor pointing to previous page in the list of results."
|
|
850
|
+
).optional().nullable()
|
|
851
|
+
}).describe("Offset that was requested.").optional(),
|
|
852
|
+
hasNext: z.boolean().describe(
|
|
853
|
+
"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."
|
|
854
|
+
).optional().nullable()
|
|
855
|
+
}).describe("Metadata of the paginated results.").optional()
|
|
856
|
+
});
|
|
857
|
+
var CountModifierGroupsRequest = z.object({
|
|
858
|
+
options: z.object({
|
|
859
|
+
filter: z.record(z.string(), z.any()).describe("Filter for counting modifier groups.").optional().nullable()
|
|
860
|
+
}).optional()
|
|
861
|
+
});
|
|
862
|
+
var CountModifierGroupsResponse = z.object({
|
|
863
|
+
count: z.number().int().describe("Counted modifier groups.").optional()
|
|
864
|
+
});
|
|
865
|
+
var UpdateModifierGroupRequest = z.object({
|
|
866
|
+
_id: z.string().describe("Modifier group ID.").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
|
+
),
|
|
870
|
+
modifierGroup: z.object({
|
|
871
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
872
|
+
/^[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}$/,
|
|
873
|
+
"Must be a valid GUID"
|
|
874
|
+
).optional().nullable(),
|
|
875
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
876
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
877
|
+
),
|
|
878
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
879
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
880
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
881
|
+
modifiers: z.array(
|
|
882
|
+
z.object({
|
|
883
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
884
|
+
/^[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}$/,
|
|
885
|
+
"Must be a valid GUID"
|
|
886
|
+
).optional(),
|
|
887
|
+
preSelected: z.boolean().describe(
|
|
888
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
889
|
+
).optional().nullable(),
|
|
890
|
+
additionalChargeInfo: z.object({
|
|
891
|
+
additionalCharge: z.string().describe(
|
|
892
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
893
|
+
).optional().nullable()
|
|
894
|
+
}).describe("Item modifier price details.").optional()
|
|
895
|
+
})
|
|
896
|
+
).min(0).max(500).optional(),
|
|
897
|
+
rule: z.object({
|
|
898
|
+
required: z.boolean().describe(
|
|
899
|
+
"Whether the items from the modifier group must be selected."
|
|
900
|
+
).optional().nullable(),
|
|
901
|
+
minSelections: z.number().int().describe(
|
|
902
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
903
|
+
).min(0).max(25).optional().nullable(),
|
|
904
|
+
maxSelections: z.number().int().describe(
|
|
905
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
906
|
+
).min(0).max(25).optional().nullable()
|
|
907
|
+
}).describe("Modifier group details.").optional(),
|
|
908
|
+
extendedFields: z.object({
|
|
909
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
910
|
+
"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)."
|
|
911
|
+
).optional()
|
|
912
|
+
}).describe("Extended fields.").optional(),
|
|
913
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
914
|
+
}).describe("Modifier group to update.")
|
|
915
|
+
});
|
|
916
|
+
var UpdateModifierGroupResponse = z.object({
|
|
917
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
918
|
+
/^[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}$/,
|
|
919
|
+
"Must be a valid GUID"
|
|
920
|
+
).optional().nullable(),
|
|
921
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
922
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
923
|
+
).optional().nullable(),
|
|
924
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
925
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
926
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
927
|
+
modifiers: z.array(
|
|
928
|
+
z.object({
|
|
929
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
930
|
+
/^[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}$/,
|
|
931
|
+
"Must be a valid GUID"
|
|
932
|
+
).optional(),
|
|
933
|
+
preSelected: z.boolean().describe(
|
|
934
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
935
|
+
).optional().nullable(),
|
|
936
|
+
additionalChargeInfo: z.object({
|
|
937
|
+
additionalCharge: z.string().describe(
|
|
938
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
939
|
+
).optional().nullable()
|
|
940
|
+
}).describe("Item modifier price details.").optional()
|
|
941
|
+
})
|
|
942
|
+
).min(0).max(500).optional(),
|
|
943
|
+
rule: z.object({
|
|
944
|
+
required: z.boolean().describe("Whether the items from the modifier group must be selected.").optional().nullable(),
|
|
945
|
+
minSelections: z.number().int().describe(
|
|
946
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
947
|
+
).min(0).max(25).optional().nullable(),
|
|
948
|
+
maxSelections: z.number().int().describe(
|
|
949
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
950
|
+
).min(0).max(25).optional().nullable()
|
|
951
|
+
}).describe("Modifier group details.").optional(),
|
|
952
|
+
extendedFields: z.object({
|
|
953
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
954
|
+
"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)."
|
|
955
|
+
).optional()
|
|
956
|
+
}).describe("Extended fields.").optional(),
|
|
957
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
958
|
+
});
|
|
959
|
+
var DeleteModifierGroupRequest = z.object({
|
|
960
|
+
modifierGroupId: z.string().describe("Modifier group ID.").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
|
+
)
|
|
964
|
+
});
|
|
965
|
+
var DeleteModifierGroupResponse = z.object({});
|
|
966
|
+
var BulkCreateModifierGroupsRequest = z.object({
|
|
967
|
+
modifierGroups: z.array(
|
|
968
|
+
z.object({
|
|
969
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
970
|
+
/^[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}$/,
|
|
971
|
+
"Must be a valid GUID"
|
|
972
|
+
).optional().nullable(),
|
|
973
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
974
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
975
|
+
).optional().nullable(),
|
|
976
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
977
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
978
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
979
|
+
modifiers: z.array(
|
|
980
|
+
z.object({
|
|
981
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
982
|
+
/^[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}$/,
|
|
983
|
+
"Must be a valid GUID"
|
|
984
|
+
).optional(),
|
|
985
|
+
preSelected: z.boolean().describe(
|
|
986
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
987
|
+
).optional().nullable(),
|
|
988
|
+
additionalChargeInfo: z.object({
|
|
989
|
+
additionalCharge: z.string().describe(
|
|
990
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
991
|
+
).optional().nullable()
|
|
992
|
+
}).describe("Item modifier price details.").optional()
|
|
993
|
+
})
|
|
994
|
+
).min(0).max(500).optional(),
|
|
995
|
+
rule: z.object({
|
|
996
|
+
required: z.boolean().describe(
|
|
997
|
+
"Whether the items from the modifier group must be selected."
|
|
998
|
+
).optional().nullable(),
|
|
999
|
+
minSelections: z.number().int().describe(
|
|
1000
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
1001
|
+
).min(0).max(25).optional().nullable(),
|
|
1002
|
+
maxSelections: z.number().int().describe(
|
|
1003
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
1004
|
+
).min(0).max(25).optional().nullable()
|
|
1005
|
+
}).describe("Modifier group details.").optional(),
|
|
1006
|
+
extendedFields: z.object({
|
|
1007
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1008
|
+
"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)."
|
|
1009
|
+
).optional()
|
|
1010
|
+
}).describe("Extended fields.").optional(),
|
|
1011
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
1012
|
+
})
|
|
1013
|
+
).max(100),
|
|
1014
|
+
options: z.object({
|
|
1015
|
+
returnEntity: z.boolean().describe(
|
|
1016
|
+
"Whether to receive the created modifier groups in the response."
|
|
1017
|
+
).optional()
|
|
1018
|
+
}).optional()
|
|
1019
|
+
});
|
|
1020
|
+
var BulkCreateModifierGroupsResponse = z.object({
|
|
1021
|
+
results: z.array(
|
|
1022
|
+
z.object({
|
|
1023
|
+
itemMetadata: z.object({
|
|
1024
|
+
_id: z.string().describe(
|
|
1025
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
1026
|
+
).optional().nullable(),
|
|
1027
|
+
originalIndex: z.number().int().describe(
|
|
1028
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
1029
|
+
).optional(),
|
|
1030
|
+
success: z.boolean().describe(
|
|
1031
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
1032
|
+
).optional(),
|
|
1033
|
+
error: z.object({
|
|
1034
|
+
code: z.string().describe("Error code.").optional(),
|
|
1035
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
1036
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
1037
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
1038
|
+
}).describe("Metadata for group modifier creation.").optional(),
|
|
1039
|
+
modifierGroup: z.object({
|
|
1040
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
1041
|
+
/^[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}$/,
|
|
1042
|
+
"Must be a valid GUID"
|
|
1043
|
+
).optional().nullable(),
|
|
1044
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1045
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
1046
|
+
).optional().nullable(),
|
|
1047
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
1048
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
1049
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
1050
|
+
modifiers: z.array(
|
|
1051
|
+
z.object({
|
|
1052
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
1053
|
+
/^[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}$/,
|
|
1054
|
+
"Must be a valid GUID"
|
|
1055
|
+
).optional(),
|
|
1056
|
+
preSelected: z.boolean().describe(
|
|
1057
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
1058
|
+
).optional().nullable(),
|
|
1059
|
+
additionalChargeInfo: z.object({
|
|
1060
|
+
additionalCharge: z.string().describe(
|
|
1061
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
1062
|
+
).optional().nullable()
|
|
1063
|
+
}).describe("Item modifier price details.").optional()
|
|
1064
|
+
})
|
|
1065
|
+
).min(0).max(500).optional(),
|
|
1066
|
+
rule: z.object({
|
|
1067
|
+
required: z.boolean().describe(
|
|
1068
|
+
"Whether the items from the modifier group must be selected."
|
|
1069
|
+
).optional().nullable(),
|
|
1070
|
+
minSelections: z.number().int().describe(
|
|
1071
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
1072
|
+
).min(0).max(25).optional().nullable(),
|
|
1073
|
+
maxSelections: z.number().int().describe(
|
|
1074
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
1075
|
+
).min(0).max(25).optional().nullable()
|
|
1076
|
+
}).describe("Modifier group details.").optional(),
|
|
1077
|
+
extendedFields: z.object({
|
|
1078
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1079
|
+
"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)."
|
|
1080
|
+
).optional()
|
|
1081
|
+
}).describe("Extended fields.").optional(),
|
|
1082
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
1083
|
+
}).describe("Created modifier group.").optional()
|
|
1084
|
+
})
|
|
1085
|
+
).optional(),
|
|
1086
|
+
bulkActionMetadata: z.object({
|
|
1087
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1088
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1089
|
+
undetailedFailures: z.number().int().describe(
|
|
1090
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1091
|
+
).optional()
|
|
1092
|
+
}).describe("Metadata for the API call.").optional()
|
|
1093
|
+
});
|
|
1094
|
+
var BulkUpdateModifierGroupsRequest = z.object({
|
|
1095
|
+
modifierGroups: z.array(
|
|
1096
|
+
z.object({
|
|
1097
|
+
modifierGroup: z.object({
|
|
1098
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
1099
|
+
/^[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}$/,
|
|
1100
|
+
"Must be a valid GUID"
|
|
1101
|
+
),
|
|
1102
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1103
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
1104
|
+
),
|
|
1105
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
1106
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
1107
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
1108
|
+
modifiers: z.array(
|
|
1109
|
+
z.object({
|
|
1110
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
1111
|
+
/^[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}$/,
|
|
1112
|
+
"Must be a valid GUID"
|
|
1113
|
+
).optional(),
|
|
1114
|
+
preSelected: z.boolean().describe(
|
|
1115
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
1116
|
+
).optional().nullable(),
|
|
1117
|
+
additionalChargeInfo: z.object({
|
|
1118
|
+
additionalCharge: z.string().describe(
|
|
1119
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
1120
|
+
).optional().nullable()
|
|
1121
|
+
}).describe("Item modifier price details.").optional()
|
|
1122
|
+
})
|
|
1123
|
+
).min(0).max(500).optional(),
|
|
1124
|
+
rule: z.object({
|
|
1125
|
+
required: z.boolean().describe(
|
|
1126
|
+
"Whether the items from the modifier group must be selected."
|
|
1127
|
+
).optional().nullable(),
|
|
1128
|
+
minSelections: z.number().int().describe(
|
|
1129
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
1130
|
+
).min(0).max(25).optional().nullable(),
|
|
1131
|
+
maxSelections: z.number().int().describe(
|
|
1132
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
1133
|
+
).min(0).max(25).optional().nullable()
|
|
1134
|
+
}).describe("Modifier group details.").optional(),
|
|
1135
|
+
extendedFields: z.object({
|
|
1136
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1137
|
+
"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)."
|
|
1138
|
+
).optional()
|
|
1139
|
+
}).describe("Extended fields.").optional(),
|
|
1140
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
1141
|
+
}).describe("Modifier group to update.").optional(),
|
|
1142
|
+
mask: z.array(z.string()).optional()
|
|
1143
|
+
})
|
|
1144
|
+
).min(1).max(100),
|
|
1145
|
+
options: z.object({
|
|
1146
|
+
returnEntity: z.boolean().describe(
|
|
1147
|
+
"Whether to receive the updated modifier groups in the response."
|
|
1148
|
+
).optional()
|
|
1149
|
+
}).optional()
|
|
1150
|
+
});
|
|
1151
|
+
var BulkUpdateModifierGroupsResponse = z.object({
|
|
1152
|
+
results: z.array(
|
|
1153
|
+
z.object({
|
|
1154
|
+
itemMetadata: z.object({
|
|
1155
|
+
_id: z.string().describe(
|
|
1156
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
1157
|
+
).optional().nullable(),
|
|
1158
|
+
originalIndex: z.number().int().describe(
|
|
1159
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
1160
|
+
).optional(),
|
|
1161
|
+
success: z.boolean().describe(
|
|
1162
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
1163
|
+
).optional(),
|
|
1164
|
+
error: z.object({
|
|
1165
|
+
code: z.string().describe("Error code.").optional(),
|
|
1166
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
1167
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
1168
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
1169
|
+
}).describe("Metadata for group modifier update.").optional(),
|
|
1170
|
+
modifierGroup: z.object({
|
|
1171
|
+
_id: z.string().describe("Modifier group ID.").regex(
|
|
1172
|
+
/^[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}$/,
|
|
1173
|
+
"Must be a valid GUID"
|
|
1174
|
+
).optional().nullable(),
|
|
1175
|
+
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1176
|
+
"Revision number, which increments by 1 each time the modifier group is updated. To prevent conflicting changes, the current revision must be passed when updating the modifier group. Ignored when creating a modifier group."
|
|
1177
|
+
).optional().nullable(),
|
|
1178
|
+
_createdDate: z.date().describe("Date and time the modifier group was created.").optional().nullable(),
|
|
1179
|
+
_updatedDate: z.date().describe("Date and time the modifier group was updated.").optional().nullable(),
|
|
1180
|
+
name: z.string().describe("Modifier group name.").min(1).max(100).optional().nullable(),
|
|
1181
|
+
modifiers: z.array(
|
|
1182
|
+
z.object({
|
|
1183
|
+
_id: z.string().describe("Item modifier ID.").regex(
|
|
1184
|
+
/^[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}$/,
|
|
1185
|
+
"Must be a valid GUID"
|
|
1186
|
+
).optional(),
|
|
1187
|
+
preSelected: z.boolean().describe(
|
|
1188
|
+
"Whether the item modifier is pre-selected.\nDefault: `false`."
|
|
1189
|
+
).optional().nullable(),
|
|
1190
|
+
additionalChargeInfo: z.object({
|
|
1191
|
+
additionalCharge: z.string().describe(
|
|
1192
|
+
"Additional charge for the item modifier. A value of `0` means the item modifier is free."
|
|
1193
|
+
).optional().nullable()
|
|
1194
|
+
}).describe("Item modifier price details.").optional()
|
|
1195
|
+
})
|
|
1196
|
+
).min(0).max(500).optional(),
|
|
1197
|
+
rule: z.object({
|
|
1198
|
+
required: z.boolean().describe(
|
|
1199
|
+
"Whether the items from the modifier group must be selected."
|
|
1200
|
+
).optional().nullable(),
|
|
1201
|
+
minSelections: z.number().int().describe(
|
|
1202
|
+
"Minimum number of item modifiers a site visitor must select. The value must be lower or equal to the available item modifiers in the group.\nDefault: `0`."
|
|
1203
|
+
).min(0).max(25).optional().nullable(),
|
|
1204
|
+
maxSelections: z.number().int().describe(
|
|
1205
|
+
"Maximum number of item modifiers a site visitor may select. Must be greater than or equal to the value of `minSelections`."
|
|
1206
|
+
).min(0).max(25).optional().nullable()
|
|
1207
|
+
}).describe("Modifier group details.").optional(),
|
|
1208
|
+
extendedFields: z.object({
|
|
1209
|
+
namespaces: z.record(z.string(), z.record(z.string(), z.any())).describe(
|
|
1210
|
+
"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)."
|
|
1211
|
+
).optional()
|
|
1212
|
+
}).describe("Extended fields.").optional(),
|
|
1213
|
+
businessLocationIds: z.array(z.string()).max(100).optional()
|
|
1214
|
+
}).describe(
|
|
1215
|
+
"Updated modifier group. Only returned if `returnEntity` is set to `true`."
|
|
1216
|
+
).optional()
|
|
1217
|
+
})
|
|
1218
|
+
).min(1).max(100).optional(),
|
|
1219
|
+
bulkActionMetadata: z.object({
|
|
1220
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1221
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1222
|
+
undetailedFailures: z.number().int().describe(
|
|
1223
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1224
|
+
).optional()
|
|
1225
|
+
}).describe("Metadata for the API call.").optional()
|
|
1226
|
+
});
|
|
1227
|
+
var BulkDeleteModifierGroupsRequest = z.object({
|
|
1228
|
+
ids: z.array(z.string()).max(200)
|
|
1229
|
+
});
|
|
1230
|
+
var BulkDeleteModifierGroupsResponse = z.object({
|
|
1231
|
+
results: z.array(
|
|
1232
|
+
z.object({
|
|
1233
|
+
itemMetadata: z.object({
|
|
1234
|
+
_id: z.string().describe(
|
|
1235
|
+
"Item ID. Should always be available, unless it's impossible (for example, when failing to create an item)."
|
|
1236
|
+
).optional().nullable(),
|
|
1237
|
+
originalIndex: z.number().int().describe(
|
|
1238
|
+
"Index of the item within the request array. Allows for correlation between request and response items."
|
|
1239
|
+
).optional(),
|
|
1240
|
+
success: z.boolean().describe(
|
|
1241
|
+
"Whether the requested action was successful for this item. When `false`, the `error` field is populated."
|
|
1242
|
+
).optional(),
|
|
1243
|
+
error: z.object({
|
|
1244
|
+
code: z.string().describe("Error code.").optional(),
|
|
1245
|
+
description: z.string().describe("Description of the error.").optional(),
|
|
1246
|
+
data: z.record(z.string(), z.any()).describe("Data related to the error.").optional().nullable()
|
|
1247
|
+
}).describe("Details about the error in case of failure.").optional()
|
|
1248
|
+
}).describe("Metadata for group modifier deletion.").optional()
|
|
1249
|
+
})
|
|
1250
|
+
).optional(),
|
|
1251
|
+
bulkActionMetadata: z.object({
|
|
1252
|
+
totalSuccesses: z.number().int().describe("Number of items that were successfully processed.").optional(),
|
|
1253
|
+
totalFailures: z.number().int().describe("Number of items that couldn't be processed.").optional(),
|
|
1254
|
+
undetailedFailures: z.number().int().describe(
|
|
1255
|
+
"Number of failures without details because detailed failure threshold was exceeded."
|
|
1256
|
+
).optional()
|
|
1257
|
+
}).describe("Metadata for the API call.").optional()
|
|
1258
|
+
});
|
|
1259
|
+
|
|
1260
|
+
// src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.universal.ts
|
|
517
1261
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
518
1262
|
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
519
1263
|
SortOrder2["ASC"] = "ASC";
|
|
@@ -529,7 +1273,10 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
529
1273
|
return WebhookIdentityType2;
|
|
530
1274
|
})(WebhookIdentityType || {});
|
|
531
1275
|
async function createModifierGroup2(modifierGroup) {
|
|
532
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1276
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1277
|
+
if (validateRequestSchema) {
|
|
1278
|
+
CreateModifierGroupRequest.parse({ modifierGroup });
|
|
1279
|
+
}
|
|
533
1280
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
534
1281
|
modifierGroup
|
|
535
1282
|
});
|
|
@@ -556,7 +1303,10 @@ async function createModifierGroup2(modifierGroup) {
|
|
|
556
1303
|
}
|
|
557
1304
|
}
|
|
558
1305
|
async function getModifierGroup2(modifierGroupId) {
|
|
559
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1306
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1307
|
+
if (validateRequestSchema) {
|
|
1308
|
+
GetModifierGroupRequest.parse({ modifierGroupId });
|
|
1309
|
+
}
|
|
560
1310
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
561
1311
|
modifierGroupId
|
|
562
1312
|
});
|
|
@@ -581,7 +1331,10 @@ async function getModifierGroup2(modifierGroupId) {
|
|
|
581
1331
|
}
|
|
582
1332
|
}
|
|
583
1333
|
async function listModifierGroups2(options) {
|
|
584
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1334
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1335
|
+
if (validateRequestSchema) {
|
|
1336
|
+
ListModifierGroupsRequest.parse({ options });
|
|
1337
|
+
}
|
|
585
1338
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
586
1339
|
modifierGroupIds: options?.modifierGroupIds,
|
|
587
1340
|
paging: options?.paging
|
|
@@ -659,7 +1412,10 @@ function queryModifierGroups2() {
|
|
|
659
1412
|
});
|
|
660
1413
|
}
|
|
661
1414
|
async function typedQueryModifierGroups(query) {
|
|
662
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1415
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1416
|
+
if (validateRequestSchema) {
|
|
1417
|
+
QueryModifierGroupsRequest.parse({ query });
|
|
1418
|
+
}
|
|
663
1419
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ query });
|
|
664
1420
|
const reqOpts = queryModifierGroups(
|
|
665
1421
|
payload
|
|
@@ -689,7 +1445,10 @@ var utils = {
|
|
|
689
1445
|
}
|
|
690
1446
|
};
|
|
691
1447
|
async function countModifierGroups2(options) {
|
|
692
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1448
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1449
|
+
if (validateRequestSchema) {
|
|
1450
|
+
CountModifierGroupsRequest.parse({ options });
|
|
1451
|
+
}
|
|
693
1452
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
694
1453
|
filter: options?.filter
|
|
695
1454
|
});
|
|
@@ -716,7 +1475,10 @@ async function countModifierGroups2(options) {
|
|
|
716
1475
|
}
|
|
717
1476
|
}
|
|
718
1477
|
async function updateModifierGroup2(_id, modifierGroup) {
|
|
719
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1478
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
|
|
1479
|
+
if (validateRequestSchema) {
|
|
1480
|
+
UpdateModifierGroupRequest.parse({ _id, modifierGroup });
|
|
1481
|
+
}
|
|
720
1482
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
721
1483
|
modifierGroup: { ...modifierGroup, id: _id }
|
|
722
1484
|
});
|
|
@@ -743,7 +1505,10 @@ async function updateModifierGroup2(_id, modifierGroup) {
|
|
|
743
1505
|
}
|
|
744
1506
|
}
|
|
745
1507
|
async function deleteModifierGroup2(modifierGroupId) {
|
|
746
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1508
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1509
|
+
if (validateRequestSchema) {
|
|
1510
|
+
DeleteModifierGroupRequest.parse({ modifierGroupId });
|
|
1511
|
+
}
|
|
747
1512
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
748
1513
|
modifierGroupId
|
|
749
1514
|
});
|
|
@@ -769,7 +1534,10 @@ async function deleteModifierGroup2(modifierGroupId) {
|
|
|
769
1534
|
}
|
|
770
1535
|
}
|
|
771
1536
|
async function bulkCreateModifierGroups2(modifierGroups, options) {
|
|
772
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1537
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
|
|
1538
|
+
if (validateRequestSchema) {
|
|
1539
|
+
BulkCreateModifierGroupsRequest.parse({ modifierGroups, options });
|
|
1540
|
+
}
|
|
773
1541
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
774
1542
|
modifierGroups,
|
|
775
1543
|
returnEntity: options?.returnEntity
|
|
@@ -800,7 +1568,10 @@ async function bulkCreateModifierGroups2(modifierGroups, options) {
|
|
|
800
1568
|
}
|
|
801
1569
|
}
|
|
802
1570
|
async function bulkUpdateModifierGroups2(modifierGroups, options) {
|
|
803
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1571
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[2];
|
|
1572
|
+
if (validateRequestSchema) {
|
|
1573
|
+
BulkUpdateModifierGroupsRequest.parse({ modifierGroups, options });
|
|
1574
|
+
}
|
|
804
1575
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
805
1576
|
modifierGroups,
|
|
806
1577
|
returnEntity: options?.returnEntity
|
|
@@ -831,7 +1602,10 @@ async function bulkUpdateModifierGroups2(modifierGroups, options) {
|
|
|
831
1602
|
}
|
|
832
1603
|
}
|
|
833
1604
|
async function bulkDeleteModifierGroups2(ids) {
|
|
834
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1605
|
+
const { httpClient, sideEffects, validateRequestSchema } = arguments[1];
|
|
1606
|
+
if (validateRequestSchema) {
|
|
1607
|
+
BulkDeleteModifierGroupsRequest.parse({ ids });
|
|
1608
|
+
}
|
|
835
1609
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ ids });
|
|
836
1610
|
const reqOpts = bulkDeleteModifierGroups(
|
|
837
1611
|
payload
|
|
@@ -857,83 +1631,83 @@ async function bulkDeleteModifierGroups2(ids) {
|
|
|
857
1631
|
}
|
|
858
1632
|
|
|
859
1633
|
// src/restaurants-menus-v1-item-modifier-group-item-modifier-groups.public.ts
|
|
860
|
-
function createModifierGroup3(httpClient) {
|
|
1634
|
+
function createModifierGroup3(httpClient, __options) {
|
|
861
1635
|
return (modifierGroup) => createModifierGroup2(
|
|
862
1636
|
modifierGroup,
|
|
863
1637
|
// @ts-ignore
|
|
864
|
-
{ httpClient }
|
|
1638
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
865
1639
|
);
|
|
866
1640
|
}
|
|
867
|
-
function getModifierGroup3(httpClient) {
|
|
1641
|
+
function getModifierGroup3(httpClient, __options) {
|
|
868
1642
|
return (modifierGroupId) => getModifierGroup2(
|
|
869
1643
|
modifierGroupId,
|
|
870
1644
|
// @ts-ignore
|
|
871
|
-
{ httpClient }
|
|
1645
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
872
1646
|
);
|
|
873
1647
|
}
|
|
874
|
-
function listModifierGroups3(httpClient) {
|
|
1648
|
+
function listModifierGroups3(httpClient, __options) {
|
|
875
1649
|
return (options) => listModifierGroups2(
|
|
876
1650
|
options,
|
|
877
1651
|
// @ts-ignore
|
|
878
|
-
{ httpClient }
|
|
1652
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
879
1653
|
);
|
|
880
1654
|
}
|
|
881
|
-
function queryModifierGroups3(httpClient) {
|
|
1655
|
+
function queryModifierGroups3(httpClient, __options) {
|
|
882
1656
|
return () => queryModifierGroups2(
|
|
883
1657
|
// @ts-ignore
|
|
884
|
-
{ httpClient }
|
|
1658
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
885
1659
|
);
|
|
886
1660
|
}
|
|
887
|
-
function typedQueryModifierGroups2(httpClient) {
|
|
1661
|
+
function typedQueryModifierGroups2(httpClient, __options) {
|
|
888
1662
|
return (query) => typedQueryModifierGroups(
|
|
889
1663
|
query,
|
|
890
1664
|
// @ts-ignore
|
|
891
|
-
{ httpClient }
|
|
1665
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
892
1666
|
);
|
|
893
1667
|
}
|
|
894
|
-
function countModifierGroups3(httpClient) {
|
|
1668
|
+
function countModifierGroups3(httpClient, __options) {
|
|
895
1669
|
return (options) => countModifierGroups2(
|
|
896
1670
|
options,
|
|
897
1671
|
// @ts-ignore
|
|
898
|
-
{ httpClient }
|
|
1672
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
899
1673
|
);
|
|
900
1674
|
}
|
|
901
|
-
function updateModifierGroup3(httpClient) {
|
|
1675
|
+
function updateModifierGroup3(httpClient, __options) {
|
|
902
1676
|
return (_id, modifierGroup) => updateModifierGroup2(
|
|
903
1677
|
_id,
|
|
904
1678
|
modifierGroup,
|
|
905
1679
|
// @ts-ignore
|
|
906
|
-
{ httpClient }
|
|
1680
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
907
1681
|
);
|
|
908
1682
|
}
|
|
909
|
-
function deleteModifierGroup3(httpClient) {
|
|
1683
|
+
function deleteModifierGroup3(httpClient, __options) {
|
|
910
1684
|
return (modifierGroupId) => deleteModifierGroup2(
|
|
911
1685
|
modifierGroupId,
|
|
912
1686
|
// @ts-ignore
|
|
913
|
-
{ httpClient }
|
|
1687
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
914
1688
|
);
|
|
915
1689
|
}
|
|
916
|
-
function bulkCreateModifierGroups3(httpClient) {
|
|
1690
|
+
function bulkCreateModifierGroups3(httpClient, __options) {
|
|
917
1691
|
return (modifierGroups, options) => bulkCreateModifierGroups2(
|
|
918
1692
|
modifierGroups,
|
|
919
1693
|
options,
|
|
920
1694
|
// @ts-ignore
|
|
921
|
-
{ httpClient }
|
|
1695
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
922
1696
|
);
|
|
923
1697
|
}
|
|
924
|
-
function bulkUpdateModifierGroups3(httpClient) {
|
|
1698
|
+
function bulkUpdateModifierGroups3(httpClient, __options) {
|
|
925
1699
|
return (modifierGroups, options) => bulkUpdateModifierGroups2(
|
|
926
1700
|
modifierGroups,
|
|
927
1701
|
options,
|
|
928
1702
|
// @ts-ignore
|
|
929
|
-
{ httpClient }
|
|
1703
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
930
1704
|
);
|
|
931
1705
|
}
|
|
932
|
-
function bulkDeleteModifierGroups3(httpClient) {
|
|
1706
|
+
function bulkDeleteModifierGroups3(httpClient, __options) {
|
|
933
1707
|
return (ids) => bulkDeleteModifierGroups2(
|
|
934
1708
|
ids,
|
|
935
1709
|
// @ts-ignore
|
|
936
|
-
{ httpClient }
|
|
1710
|
+
{ httpClient, validateRequestSchema: __options?.validateRequestSchema }
|
|
937
1711
|
);
|
|
938
1712
|
}
|
|
939
1713
|
var onItemModifierGroupCreated = (0, import_sdk_types.EventDefinition)(
|