@mercurjs/b2c-core 1.4.4 → 1.5.0
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/.medusa/server/src/api/admin/products/validators.d.ts +54 -54
- package/.medusa/server/src/api/admin/stock-locations/route.d.ts +1 -1
- package/.medusa/server/src/api/admin/stock-locations/route.js +21 -8
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.d.ts +55 -4
- package/.medusa/server/src/api/vendor/campaigns/[id]/route.js +59 -3
- package/.medusa/server/src/api/vendor/campaigns/helpers.d.ts +4 -0
- package/.medusa/server/src/api/vendor/campaigns/helpers.js +34 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.js +11 -11
- package/.medusa/server/src/api/vendor/campaigns/route.d.ts +2 -2
- package/.medusa/server/src/api/vendor/campaigns/route.js +34 -15
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +191 -3
- package/.medusa/server/src/api/vendor/campaigns/validators.js +24 -15
- package/.medusa/server/src/api/vendor/product-types/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/product-types/route.js +8 -1
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +15 -4
- package/.medusa/server/src/api/vendor/product-types/validators.js +9 -3
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.d.ts +127 -2
- package/.medusa/server/src/api/vendor/products/[id]/variants/route.js +149 -4
- package/.medusa/server/src/api/vendor/products/middlewares.js +12 -1
- package/.medusa/server/src/api/vendor/products/query-config.d.ts +12 -0
- package/.medusa/server/src/api/vendor/products/query-config.js +42 -2
- package/.medusa/server/src/api/vendor/products/route.js +3 -1
- package/.medusa/server/src/api/vendor/products/validators.d.ts +391 -54
- package/.medusa/server/src/api/vendor/products/validators.js +33 -2
- package/.medusa/server/src/api/vendor/promotions/middlewares.js +3 -1
- package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.d.ts +2 -1
- package/.medusa/server/src/api/vendor/promotions/rule-attribute-options/[rule_type]/route.js +8 -8
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.d.ts +3 -64
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +47 -24
- package/.medusa/server/src/api/vendor/promotions/utils.d.ts +4 -4
- package/.medusa/server/src/api/vendor/promotions/utils.js +50 -50
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +11 -10
- package/.medusa/server/src/api/vendor/promotions/validators.js +17 -5
- package/.medusa/server/src/api/vendor/uploads/route.js +1 -1
- package/.medusa/server/src/shared/infra/http/middlewares/types.d.ts +14 -0
- package/.medusa/server/src/shared/infra/http/middlewares/types.js +3 -0
- package/.medusa/server/src/shared/infra/http/middlewares/vendor-promotions-rule-attribute-options-path-params-guard.d.ts +3 -0
- package/.medusa/server/src/shared/infra/http/middlewares/vendor-promotions-rule-attribute-options-path-params-guard.js +24 -0
- package/.medusa/server/src/shared/infra/http/middlewares/vendor-promotions-rule-value-options-path-params-guard.d.ts +2 -1
- package/.medusa/server/src/shared/infra/http/middlewares/vendor-promotions-rule-value-options-path-params-guard.js +9 -1
- package/.medusa/server/src/shared/infra/http/utils/zod.d.ts +33 -0
- package/.medusa/server/src/shared/infra/http/utils/zod.js +28 -2
- package/.medusa/server/src/workflows/seller/steps/send-invitation-email.js +6 -2
- package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +4 -3
- package/package.json +1 -1
|
@@ -841,6 +841,320 @@ export declare const VendorGetProductParams: z.ZodEffects<z.ZodObject<{
|
|
|
841
841
|
updated_at?: unknown;
|
|
842
842
|
deleted_at?: unknown;
|
|
843
843
|
}>;
|
|
844
|
+
export type VendorGetProductVariantsParamsType = z.infer<typeof VendorGetProductVariantsParams>;
|
|
845
|
+
export declare const VendorGetProductVariantsParams: z.ZodObject<{
|
|
846
|
+
[x: string]: any;
|
|
847
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
848
|
+
q: z.ZodOptional<z.ZodString>;
|
|
849
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
850
|
+
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
851
|
+
allow_backorder: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
852
|
+
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
853
|
+
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
854
|
+
barcode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
855
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
856
|
+
$eq: any;
|
|
857
|
+
$ne: any;
|
|
858
|
+
$in: any;
|
|
859
|
+
$nin: any;
|
|
860
|
+
$like: any;
|
|
861
|
+
$ilike: any;
|
|
862
|
+
$re: any;
|
|
863
|
+
$contains: any;
|
|
864
|
+
$gt: any;
|
|
865
|
+
$gte: any;
|
|
866
|
+
$lt: any;
|
|
867
|
+
$lte: any;
|
|
868
|
+
}, "strip", z.ZodTypeAny, {
|
|
869
|
+
$eq?: any;
|
|
870
|
+
$ne?: any;
|
|
871
|
+
$in?: any;
|
|
872
|
+
$nin?: any;
|
|
873
|
+
$like?: any;
|
|
874
|
+
$ilike?: any;
|
|
875
|
+
$re?: any;
|
|
876
|
+
$contains?: any;
|
|
877
|
+
$gt?: any;
|
|
878
|
+
$gte?: any;
|
|
879
|
+
$lt?: any;
|
|
880
|
+
$lte?: any;
|
|
881
|
+
}, {
|
|
882
|
+
$eq?: any;
|
|
883
|
+
$ne?: any;
|
|
884
|
+
$in?: any;
|
|
885
|
+
$nin?: any;
|
|
886
|
+
$like?: any;
|
|
887
|
+
$ilike?: any;
|
|
888
|
+
$re?: any;
|
|
889
|
+
$contains?: any;
|
|
890
|
+
$gt?: any;
|
|
891
|
+
$gte?: any;
|
|
892
|
+
$lt?: any;
|
|
893
|
+
$lte?: any;
|
|
894
|
+
}>]>>;
|
|
895
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
896
|
+
$eq: any;
|
|
897
|
+
$ne: any;
|
|
898
|
+
$in: any;
|
|
899
|
+
$nin: any;
|
|
900
|
+
$like: any;
|
|
901
|
+
$ilike: any;
|
|
902
|
+
$re: any;
|
|
903
|
+
$contains: any;
|
|
904
|
+
$gt: any;
|
|
905
|
+
$gte: any;
|
|
906
|
+
$lt: any;
|
|
907
|
+
$lte: any;
|
|
908
|
+
}, "strip", z.ZodTypeAny, {
|
|
909
|
+
$eq?: any;
|
|
910
|
+
$ne?: any;
|
|
911
|
+
$in?: any;
|
|
912
|
+
$nin?: any;
|
|
913
|
+
$like?: any;
|
|
914
|
+
$ilike?: any;
|
|
915
|
+
$re?: any;
|
|
916
|
+
$contains?: any;
|
|
917
|
+
$gt?: any;
|
|
918
|
+
$gte?: any;
|
|
919
|
+
$lt?: any;
|
|
920
|
+
$lte?: any;
|
|
921
|
+
}, {
|
|
922
|
+
$eq?: any;
|
|
923
|
+
$ne?: any;
|
|
924
|
+
$in?: any;
|
|
925
|
+
$nin?: any;
|
|
926
|
+
$like?: any;
|
|
927
|
+
$ilike?: any;
|
|
928
|
+
$re?: any;
|
|
929
|
+
$contains?: any;
|
|
930
|
+
$gt?: any;
|
|
931
|
+
$gte?: any;
|
|
932
|
+
$lt?: any;
|
|
933
|
+
$lte?: any;
|
|
934
|
+
}>]>>;
|
|
935
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
936
|
+
$eq: any;
|
|
937
|
+
$ne: any;
|
|
938
|
+
$in: any;
|
|
939
|
+
$nin: any;
|
|
940
|
+
$like: any;
|
|
941
|
+
$ilike: any;
|
|
942
|
+
$re: any;
|
|
943
|
+
$contains: any;
|
|
944
|
+
$gt: any;
|
|
945
|
+
$gte: any;
|
|
946
|
+
$lt: any;
|
|
947
|
+
$lte: any;
|
|
948
|
+
}, "strip", z.ZodTypeAny, {
|
|
949
|
+
$eq?: any;
|
|
950
|
+
$ne?: any;
|
|
951
|
+
$in?: any;
|
|
952
|
+
$nin?: any;
|
|
953
|
+
$like?: any;
|
|
954
|
+
$ilike?: any;
|
|
955
|
+
$re?: any;
|
|
956
|
+
$contains?: any;
|
|
957
|
+
$gt?: any;
|
|
958
|
+
$gte?: any;
|
|
959
|
+
$lt?: any;
|
|
960
|
+
$lte?: any;
|
|
961
|
+
}, {
|
|
962
|
+
$eq?: any;
|
|
963
|
+
$ne?: any;
|
|
964
|
+
$in?: any;
|
|
965
|
+
$nin?: any;
|
|
966
|
+
$like?: any;
|
|
967
|
+
$ilike?: any;
|
|
968
|
+
$re?: any;
|
|
969
|
+
$contains?: any;
|
|
970
|
+
$gt?: any;
|
|
971
|
+
$gte?: any;
|
|
972
|
+
$lt?: any;
|
|
973
|
+
$lte?: any;
|
|
974
|
+
}>]>>;
|
|
975
|
+
}, "strip", z.ZodTypeAny, {
|
|
976
|
+
id?: string | string[] | undefined;
|
|
977
|
+
created_at?: any;
|
|
978
|
+
updated_at?: any;
|
|
979
|
+
deleted_at?: any;
|
|
980
|
+
q?: string | undefined;
|
|
981
|
+
barcode?: string | string[] | undefined;
|
|
982
|
+
allow_backorder?: boolean | undefined;
|
|
983
|
+
ean?: string | string[] | undefined;
|
|
984
|
+
upc?: string | string[] | undefined;
|
|
985
|
+
manage_inventory?: boolean | undefined;
|
|
986
|
+
}, {
|
|
987
|
+
id?: string | string[] | undefined;
|
|
988
|
+
created_at?: any;
|
|
989
|
+
updated_at?: any;
|
|
990
|
+
deleted_at?: any;
|
|
991
|
+
q?: string | undefined;
|
|
992
|
+
barcode?: string | string[] | undefined;
|
|
993
|
+
allow_backorder?: string | boolean | undefined;
|
|
994
|
+
ean?: string | string[] | undefined;
|
|
995
|
+
upc?: string | string[] | undefined;
|
|
996
|
+
manage_inventory?: string | boolean | undefined;
|
|
997
|
+
}>, "many">>>;
|
|
998
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
999
|
+
q: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1001
|
+
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
1002
|
+
allow_backorder: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
1003
|
+
ean: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1004
|
+
upc: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1005
|
+
barcode: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1006
|
+
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
1007
|
+
$eq: any;
|
|
1008
|
+
$ne: any;
|
|
1009
|
+
$in: any;
|
|
1010
|
+
$nin: any;
|
|
1011
|
+
$like: any;
|
|
1012
|
+
$ilike: any;
|
|
1013
|
+
$re: any;
|
|
1014
|
+
$contains: any;
|
|
1015
|
+
$gt: any;
|
|
1016
|
+
$gte: any;
|
|
1017
|
+
$lt: any;
|
|
1018
|
+
$lte: any;
|
|
1019
|
+
}, "strip", z.ZodTypeAny, {
|
|
1020
|
+
$eq?: any;
|
|
1021
|
+
$ne?: any;
|
|
1022
|
+
$in?: any;
|
|
1023
|
+
$nin?: any;
|
|
1024
|
+
$like?: any;
|
|
1025
|
+
$ilike?: any;
|
|
1026
|
+
$re?: any;
|
|
1027
|
+
$contains?: any;
|
|
1028
|
+
$gt?: any;
|
|
1029
|
+
$gte?: any;
|
|
1030
|
+
$lt?: any;
|
|
1031
|
+
$lte?: any;
|
|
1032
|
+
}, {
|
|
1033
|
+
$eq?: any;
|
|
1034
|
+
$ne?: any;
|
|
1035
|
+
$in?: any;
|
|
1036
|
+
$nin?: any;
|
|
1037
|
+
$like?: any;
|
|
1038
|
+
$ilike?: any;
|
|
1039
|
+
$re?: any;
|
|
1040
|
+
$contains?: any;
|
|
1041
|
+
$gt?: any;
|
|
1042
|
+
$gte?: any;
|
|
1043
|
+
$lt?: any;
|
|
1044
|
+
$lte?: any;
|
|
1045
|
+
}>]>>;
|
|
1046
|
+
updated_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
1047
|
+
$eq: any;
|
|
1048
|
+
$ne: any;
|
|
1049
|
+
$in: any;
|
|
1050
|
+
$nin: any;
|
|
1051
|
+
$like: any;
|
|
1052
|
+
$ilike: any;
|
|
1053
|
+
$re: any;
|
|
1054
|
+
$contains: any;
|
|
1055
|
+
$gt: any;
|
|
1056
|
+
$gte: any;
|
|
1057
|
+
$lt: any;
|
|
1058
|
+
$lte: any;
|
|
1059
|
+
}, "strip", z.ZodTypeAny, {
|
|
1060
|
+
$eq?: any;
|
|
1061
|
+
$ne?: any;
|
|
1062
|
+
$in?: any;
|
|
1063
|
+
$nin?: any;
|
|
1064
|
+
$like?: any;
|
|
1065
|
+
$ilike?: any;
|
|
1066
|
+
$re?: any;
|
|
1067
|
+
$contains?: any;
|
|
1068
|
+
$gt?: any;
|
|
1069
|
+
$gte?: any;
|
|
1070
|
+
$lt?: any;
|
|
1071
|
+
$lte?: any;
|
|
1072
|
+
}, {
|
|
1073
|
+
$eq?: any;
|
|
1074
|
+
$ne?: any;
|
|
1075
|
+
$in?: any;
|
|
1076
|
+
$nin?: any;
|
|
1077
|
+
$like?: any;
|
|
1078
|
+
$ilike?: any;
|
|
1079
|
+
$re?: any;
|
|
1080
|
+
$contains?: any;
|
|
1081
|
+
$gt?: any;
|
|
1082
|
+
$gte?: any;
|
|
1083
|
+
$lt?: any;
|
|
1084
|
+
$lte?: any;
|
|
1085
|
+
}>]>>;
|
|
1086
|
+
deleted_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
1087
|
+
$eq: any;
|
|
1088
|
+
$ne: any;
|
|
1089
|
+
$in: any;
|
|
1090
|
+
$nin: any;
|
|
1091
|
+
$like: any;
|
|
1092
|
+
$ilike: any;
|
|
1093
|
+
$re: any;
|
|
1094
|
+
$contains: any;
|
|
1095
|
+
$gt: any;
|
|
1096
|
+
$gte: any;
|
|
1097
|
+
$lt: any;
|
|
1098
|
+
$lte: any;
|
|
1099
|
+
}, "strip", z.ZodTypeAny, {
|
|
1100
|
+
$eq?: any;
|
|
1101
|
+
$ne?: any;
|
|
1102
|
+
$in?: any;
|
|
1103
|
+
$nin?: any;
|
|
1104
|
+
$like?: any;
|
|
1105
|
+
$ilike?: any;
|
|
1106
|
+
$re?: any;
|
|
1107
|
+
$contains?: any;
|
|
1108
|
+
$gt?: any;
|
|
1109
|
+
$gte?: any;
|
|
1110
|
+
$lt?: any;
|
|
1111
|
+
$lte?: any;
|
|
1112
|
+
}, {
|
|
1113
|
+
$eq?: any;
|
|
1114
|
+
$ne?: any;
|
|
1115
|
+
$in?: any;
|
|
1116
|
+
$nin?: any;
|
|
1117
|
+
$like?: any;
|
|
1118
|
+
$ilike?: any;
|
|
1119
|
+
$re?: any;
|
|
1120
|
+
$contains?: any;
|
|
1121
|
+
$gt?: any;
|
|
1122
|
+
$gte?: any;
|
|
1123
|
+
$lt?: any;
|
|
1124
|
+
$lte?: any;
|
|
1125
|
+
}>]>>;
|
|
1126
|
+
}, "strip", z.ZodTypeAny, {
|
|
1127
|
+
id?: string | string[] | undefined;
|
|
1128
|
+
created_at?: any;
|
|
1129
|
+
updated_at?: any;
|
|
1130
|
+
deleted_at?: any;
|
|
1131
|
+
q?: string | undefined;
|
|
1132
|
+
barcode?: string | string[] | undefined;
|
|
1133
|
+
allow_backorder?: boolean | undefined;
|
|
1134
|
+
ean?: string | string[] | undefined;
|
|
1135
|
+
upc?: string | string[] | undefined;
|
|
1136
|
+
manage_inventory?: boolean | undefined;
|
|
1137
|
+
}, {
|
|
1138
|
+
id?: string | string[] | undefined;
|
|
1139
|
+
created_at?: any;
|
|
1140
|
+
updated_at?: any;
|
|
1141
|
+
deleted_at?: any;
|
|
1142
|
+
q?: string | undefined;
|
|
1143
|
+
barcode?: string | string[] | undefined;
|
|
1144
|
+
allow_backorder?: string | boolean | undefined;
|
|
1145
|
+
ean?: string | string[] | undefined;
|
|
1146
|
+
upc?: string | string[] | undefined;
|
|
1147
|
+
manage_inventory?: string | boolean | undefined;
|
|
1148
|
+
}>, "many">>>;
|
|
1149
|
+
}, "strip", z.ZodTypeAny, {
|
|
1150
|
+
[x: string]: any;
|
|
1151
|
+
$and?: unknown;
|
|
1152
|
+
$or?: unknown;
|
|
1153
|
+
}, {
|
|
1154
|
+
[x: string]: any;
|
|
1155
|
+
$and?: unknown;
|
|
1156
|
+
$or?: unknown;
|
|
1157
|
+
}>;
|
|
844
1158
|
/**
|
|
845
1159
|
* @schema CreateProductOption
|
|
846
1160
|
* type: object
|
|
@@ -856,17 +1170,23 @@ export declare const VendorGetProductParams: z.ZodEffects<z.ZodObject<{
|
|
|
856
1170
|
* description: The values that the product option can take (e.g. ["Small", "Medium", "Large"]).
|
|
857
1171
|
* items:
|
|
858
1172
|
* type: string
|
|
1173
|
+
* metadata:
|
|
1174
|
+
* type: object
|
|
1175
|
+
* description: Custom key-value pairs for additional option data. If "author" key is provided, value must be "admin" or "vendor".
|
|
859
1176
|
*/
|
|
860
1177
|
export type CreateProductOptionType = z.infer<typeof CreateProductOption>;
|
|
861
1178
|
export declare const CreateProductOption: z.ZodObject<{
|
|
862
1179
|
title: z.ZodString;
|
|
863
1180
|
values: z.ZodArray<z.ZodString, "many">;
|
|
1181
|
+
metadata: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
864
1182
|
}, "strip", z.ZodTypeAny, {
|
|
865
1183
|
values: string[];
|
|
866
1184
|
title: string;
|
|
1185
|
+
metadata?: Record<string, unknown> | undefined;
|
|
867
1186
|
}, {
|
|
868
1187
|
values: string[];
|
|
869
1188
|
title: string;
|
|
1189
|
+
metadata?: Record<string, unknown> | undefined;
|
|
870
1190
|
}>;
|
|
871
1191
|
/**
|
|
872
1192
|
* @schema UpdateProductOption
|
|
@@ -883,20 +1203,27 @@ export declare const CreateProductOption: z.ZodObject<{
|
|
|
883
1203
|
* description: The values that the product option can take (e.g. ["Small", "Medium", "Large"]).
|
|
884
1204
|
* items:
|
|
885
1205
|
* type: string
|
|
1206
|
+
* metadata:
|
|
1207
|
+
* type: object
|
|
1208
|
+
* nullable: true
|
|
1209
|
+
* description: Custom key-value pairs for additional option data. If "author" key is provided, value must be "admin" or "vendor".
|
|
886
1210
|
*/
|
|
887
1211
|
export type UpdateProductOptionType = z.infer<typeof UpdateProductOption>;
|
|
888
1212
|
export declare const UpdateProductOption: z.ZodObject<{
|
|
889
1213
|
id: z.ZodOptional<z.ZodString>;
|
|
890
1214
|
title: z.ZodOptional<z.ZodString>;
|
|
891
1215
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1216
|
+
metadata: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | null | undefined, Record<string, unknown> | null | undefined>;
|
|
892
1217
|
}, "strip", z.ZodTypeAny, {
|
|
893
1218
|
values?: string[] | undefined;
|
|
894
1219
|
id?: string | undefined;
|
|
895
1220
|
title?: string | undefined;
|
|
1221
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
896
1222
|
}, {
|
|
897
1223
|
values?: string[] | undefined;
|
|
898
1224
|
id?: string | undefined;
|
|
899
1225
|
title?: string | undefined;
|
|
1226
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
900
1227
|
}>;
|
|
901
1228
|
/**
|
|
902
1229
|
* @schema CreateProductVariant
|
|
@@ -1025,6 +1352,8 @@ export declare const CreateProductVariant: z.ZodObject<{
|
|
|
1025
1352
|
}>, "many">>;
|
|
1026
1353
|
}, "strict", z.ZodTypeAny, {
|
|
1027
1354
|
title: string;
|
|
1355
|
+
allow_backorder: false;
|
|
1356
|
+
manage_inventory: true;
|
|
1028
1357
|
prices: {
|
|
1029
1358
|
currency_code: string;
|
|
1030
1359
|
amount: number;
|
|
@@ -1032,8 +1361,6 @@ export declare const CreateProductVariant: z.ZodObject<{
|
|
|
1032
1361
|
max_quantity?: number | null | undefined;
|
|
1033
1362
|
rules?: Record<string, string> | undefined;
|
|
1034
1363
|
}[];
|
|
1035
|
-
allow_backorder: false;
|
|
1036
|
-
manage_inventory: true;
|
|
1037
1364
|
length?: number | undefined;
|
|
1038
1365
|
options?: Record<string, string> | undefined;
|
|
1039
1366
|
width?: number | undefined;
|
|
@@ -1045,10 +1372,10 @@ export declare const CreateProductVariant: z.ZodObject<{
|
|
|
1045
1372
|
material?: string | undefined;
|
|
1046
1373
|
metadata?: Record<string, unknown> | undefined;
|
|
1047
1374
|
sku?: string | undefined;
|
|
1375
|
+
variant_rank?: number | undefined;
|
|
1048
1376
|
ean?: string | undefined;
|
|
1049
1377
|
upc?: string | undefined;
|
|
1050
1378
|
barcode?: string | undefined;
|
|
1051
|
-
variant_rank?: number | undefined;
|
|
1052
1379
|
inventory_items?: {
|
|
1053
1380
|
inventory_item_id: string;
|
|
1054
1381
|
required_quantity: number;
|
|
@@ -1073,12 +1400,12 @@ export declare const CreateProductVariant: z.ZodObject<{
|
|
|
1073
1400
|
material?: string | undefined;
|
|
1074
1401
|
metadata?: Record<string, unknown> | undefined;
|
|
1075
1402
|
sku?: string | undefined;
|
|
1076
|
-
ean?: string | undefined;
|
|
1077
|
-
upc?: string | undefined;
|
|
1078
|
-
barcode?: string | undefined;
|
|
1079
1403
|
allow_backorder?: false | undefined;
|
|
1080
1404
|
manage_inventory?: true | undefined;
|
|
1081
1405
|
variant_rank?: number | undefined;
|
|
1406
|
+
ean?: string | undefined;
|
|
1407
|
+
upc?: string | undefined;
|
|
1408
|
+
barcode?: string | undefined;
|
|
1082
1409
|
inventory_items?: {
|
|
1083
1410
|
inventory_item_id: string;
|
|
1084
1411
|
required_quantity: number;
|
|
@@ -1223,6 +1550,12 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
1223
1550
|
material?: string | null | undefined;
|
|
1224
1551
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1225
1552
|
sku?: string | null | undefined;
|
|
1553
|
+
allow_backorder?: boolean | undefined;
|
|
1554
|
+
manage_inventory?: boolean | undefined;
|
|
1555
|
+
variant_rank?: number | undefined;
|
|
1556
|
+
ean?: string | null | undefined;
|
|
1557
|
+
upc?: string | null | undefined;
|
|
1558
|
+
barcode?: string | null | undefined;
|
|
1226
1559
|
prices?: {
|
|
1227
1560
|
id?: string | undefined;
|
|
1228
1561
|
currency_code?: string | undefined;
|
|
@@ -1231,12 +1564,6 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
1231
1564
|
max_quantity?: number | null | undefined;
|
|
1232
1565
|
rules?: Record<string, string> | undefined;
|
|
1233
1566
|
}[] | undefined;
|
|
1234
|
-
ean?: string | null | undefined;
|
|
1235
|
-
upc?: string | null | undefined;
|
|
1236
|
-
barcode?: string | null | undefined;
|
|
1237
|
-
allow_backorder?: boolean | undefined;
|
|
1238
|
-
manage_inventory?: boolean | undefined;
|
|
1239
|
-
variant_rank?: number | undefined;
|
|
1240
1567
|
}, {
|
|
1241
1568
|
length?: number | null | undefined;
|
|
1242
1569
|
options?: Record<string, string> | undefined;
|
|
@@ -1251,6 +1578,12 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
1251
1578
|
material?: string | null | undefined;
|
|
1252
1579
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1253
1580
|
sku?: string | null | undefined;
|
|
1581
|
+
allow_backorder?: boolean | undefined;
|
|
1582
|
+
manage_inventory?: boolean | undefined;
|
|
1583
|
+
variant_rank?: number | undefined;
|
|
1584
|
+
ean?: string | null | undefined;
|
|
1585
|
+
upc?: string | null | undefined;
|
|
1586
|
+
barcode?: string | null | undefined;
|
|
1254
1587
|
prices?: {
|
|
1255
1588
|
id?: string | undefined;
|
|
1256
1589
|
currency_code?: string | undefined;
|
|
@@ -1259,12 +1592,6 @@ export declare const UpdateProductVariant: z.ZodObject<{
|
|
|
1259
1592
|
max_quantity?: number | null | undefined;
|
|
1260
1593
|
rules?: Record<string, string> | undefined;
|
|
1261
1594
|
}[] | undefined;
|
|
1262
|
-
ean?: string | null | undefined;
|
|
1263
|
-
upc?: string | null | undefined;
|
|
1264
|
-
barcode?: string | null | undefined;
|
|
1265
|
-
allow_backorder?: boolean | undefined;
|
|
1266
|
-
manage_inventory?: boolean | undefined;
|
|
1267
|
-
variant_rank?: number | undefined;
|
|
1268
1595
|
}>;
|
|
1269
1596
|
/**
|
|
1270
1597
|
* @schema CreateProduct
|
|
@@ -1424,12 +1751,15 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1424
1751
|
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1425
1752
|
title: z.ZodString;
|
|
1426
1753
|
values: z.ZodArray<z.ZodString, "many">;
|
|
1754
|
+
metadata: z.ZodEffects<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>, Record<string, unknown> | undefined, Record<string, unknown> | undefined>;
|
|
1427
1755
|
}, "strip", z.ZodTypeAny, {
|
|
1428
1756
|
values: string[];
|
|
1429
1757
|
title: string;
|
|
1758
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1430
1759
|
}, {
|
|
1431
1760
|
values: string[];
|
|
1432
1761
|
title: string;
|
|
1762
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1433
1763
|
}>, "many">>;
|
|
1434
1764
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1435
1765
|
title: z.ZodString;
|
|
@@ -1481,6 +1811,8 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1481
1811
|
}>, "many">>;
|
|
1482
1812
|
}, "strict", z.ZodTypeAny, {
|
|
1483
1813
|
title: string;
|
|
1814
|
+
allow_backorder: false;
|
|
1815
|
+
manage_inventory: true;
|
|
1484
1816
|
prices: {
|
|
1485
1817
|
currency_code: string;
|
|
1486
1818
|
amount: number;
|
|
@@ -1488,8 +1820,6 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1488
1820
|
max_quantity?: number | null | undefined;
|
|
1489
1821
|
rules?: Record<string, string> | undefined;
|
|
1490
1822
|
}[];
|
|
1491
|
-
allow_backorder: false;
|
|
1492
|
-
manage_inventory: true;
|
|
1493
1823
|
length?: number | undefined;
|
|
1494
1824
|
options?: Record<string, string> | undefined;
|
|
1495
1825
|
width?: number | undefined;
|
|
@@ -1501,10 +1831,10 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1501
1831
|
material?: string | undefined;
|
|
1502
1832
|
metadata?: Record<string, unknown> | undefined;
|
|
1503
1833
|
sku?: string | undefined;
|
|
1834
|
+
variant_rank?: number | undefined;
|
|
1504
1835
|
ean?: string | undefined;
|
|
1505
1836
|
upc?: string | undefined;
|
|
1506
1837
|
barcode?: string | undefined;
|
|
1507
|
-
variant_rank?: number | undefined;
|
|
1508
1838
|
inventory_items?: {
|
|
1509
1839
|
inventory_item_id: string;
|
|
1510
1840
|
required_quantity: number;
|
|
@@ -1529,12 +1859,12 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1529
1859
|
material?: string | undefined;
|
|
1530
1860
|
metadata?: Record<string, unknown> | undefined;
|
|
1531
1861
|
sku?: string | undefined;
|
|
1532
|
-
ean?: string | undefined;
|
|
1533
|
-
upc?: string | undefined;
|
|
1534
|
-
barcode?: string | undefined;
|
|
1535
1862
|
allow_backorder?: false | undefined;
|
|
1536
1863
|
manage_inventory?: true | undefined;
|
|
1537
1864
|
variant_rank?: number | undefined;
|
|
1865
|
+
ean?: string | undefined;
|
|
1866
|
+
upc?: string | undefined;
|
|
1867
|
+
barcode?: string | undefined;
|
|
1538
1868
|
inventory_items?: {
|
|
1539
1869
|
inventory_item_id: string;
|
|
1540
1870
|
required_quantity: number;
|
|
@@ -1565,11 +1895,14 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1565
1895
|
options?: {
|
|
1566
1896
|
values: string[];
|
|
1567
1897
|
title: string;
|
|
1898
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1568
1899
|
}[] | undefined;
|
|
1569
1900
|
handle?: string | undefined;
|
|
1570
1901
|
description?: string | undefined;
|
|
1571
1902
|
variants?: {
|
|
1572
1903
|
title: string;
|
|
1904
|
+
allow_backorder: false;
|
|
1905
|
+
manage_inventory: true;
|
|
1573
1906
|
prices: {
|
|
1574
1907
|
currency_code: string;
|
|
1575
1908
|
amount: number;
|
|
@@ -1577,8 +1910,6 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1577
1910
|
max_quantity?: number | null | undefined;
|
|
1578
1911
|
rules?: Record<string, string> | undefined;
|
|
1579
1912
|
}[];
|
|
1580
|
-
allow_backorder: false;
|
|
1581
|
-
manage_inventory: true;
|
|
1582
1913
|
length?: number | undefined;
|
|
1583
1914
|
options?: Record<string, string> | undefined;
|
|
1584
1915
|
width?: number | undefined;
|
|
@@ -1590,10 +1921,10 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1590
1921
|
material?: string | undefined;
|
|
1591
1922
|
metadata?: Record<string, unknown> | undefined;
|
|
1592
1923
|
sku?: string | undefined;
|
|
1924
|
+
variant_rank?: number | undefined;
|
|
1593
1925
|
ean?: string | undefined;
|
|
1594
1926
|
upc?: string | undefined;
|
|
1595
1927
|
barcode?: string | undefined;
|
|
1596
|
-
variant_rank?: number | undefined;
|
|
1597
1928
|
inventory_items?: {
|
|
1598
1929
|
inventory_item_id: string;
|
|
1599
1930
|
required_quantity: number;
|
|
@@ -1631,6 +1962,7 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1631
1962
|
options?: {
|
|
1632
1963
|
values: string[];
|
|
1633
1964
|
title: string;
|
|
1965
|
+
metadata?: Record<string, unknown> | undefined;
|
|
1634
1966
|
}[] | undefined;
|
|
1635
1967
|
handle?: string | undefined;
|
|
1636
1968
|
description?: string | undefined;
|
|
@@ -1654,12 +1986,12 @@ export declare const CreateProduct: z.ZodObject<{
|
|
|
1654
1986
|
material?: string | undefined;
|
|
1655
1987
|
metadata?: Record<string, unknown> | undefined;
|
|
1656
1988
|
sku?: string | undefined;
|
|
1657
|
-
ean?: string | undefined;
|
|
1658
|
-
upc?: string | undefined;
|
|
1659
|
-
barcode?: string | undefined;
|
|
1660
1989
|
allow_backorder?: false | undefined;
|
|
1661
1990
|
manage_inventory?: true | undefined;
|
|
1662
1991
|
variant_rank?: number | undefined;
|
|
1992
|
+
ean?: string | undefined;
|
|
1993
|
+
upc?: string | undefined;
|
|
1994
|
+
barcode?: string | undefined;
|
|
1663
1995
|
inventory_items?: {
|
|
1664
1996
|
inventory_item_id: string;
|
|
1665
1997
|
required_quantity: number;
|
|
@@ -1846,14 +2178,17 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1846
2178
|
id: z.ZodOptional<z.ZodString>;
|
|
1847
2179
|
title: z.ZodOptional<z.ZodString>;
|
|
1848
2180
|
values: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2181
|
+
metadata: z.ZodEffects<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>, Record<string, unknown> | null | undefined, Record<string, unknown> | null | undefined>;
|
|
1849
2182
|
}, "strip", z.ZodTypeAny, {
|
|
1850
2183
|
values?: string[] | undefined;
|
|
1851
2184
|
id?: string | undefined;
|
|
1852
2185
|
title?: string | undefined;
|
|
2186
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1853
2187
|
}, {
|
|
1854
2188
|
values?: string[] | undefined;
|
|
1855
2189
|
id?: string | undefined;
|
|
1856
2190
|
title?: string | undefined;
|
|
2191
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
1857
2192
|
}>, "many">>;
|
|
1858
2193
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1859
2194
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1911,6 +2246,12 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1911
2246
|
material?: string | null | undefined;
|
|
1912
2247
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1913
2248
|
sku?: string | null | undefined;
|
|
2249
|
+
allow_backorder?: boolean | undefined;
|
|
2250
|
+
manage_inventory?: boolean | undefined;
|
|
2251
|
+
variant_rank?: number | undefined;
|
|
2252
|
+
ean?: string | null | undefined;
|
|
2253
|
+
upc?: string | null | undefined;
|
|
2254
|
+
barcode?: string | null | undefined;
|
|
1914
2255
|
prices?: {
|
|
1915
2256
|
id?: string | undefined;
|
|
1916
2257
|
currency_code?: string | undefined;
|
|
@@ -1919,12 +2260,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1919
2260
|
max_quantity?: number | null | undefined;
|
|
1920
2261
|
rules?: Record<string, string> | undefined;
|
|
1921
2262
|
}[] | undefined;
|
|
1922
|
-
ean?: string | null | undefined;
|
|
1923
|
-
upc?: string | null | undefined;
|
|
1924
|
-
barcode?: string | null | undefined;
|
|
1925
|
-
allow_backorder?: boolean | undefined;
|
|
1926
|
-
manage_inventory?: boolean | undefined;
|
|
1927
|
-
variant_rank?: number | undefined;
|
|
1928
2263
|
}, {
|
|
1929
2264
|
length?: number | null | undefined;
|
|
1930
2265
|
options?: Record<string, string> | undefined;
|
|
@@ -1939,6 +2274,12 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1939
2274
|
material?: string | null | undefined;
|
|
1940
2275
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1941
2276
|
sku?: string | null | undefined;
|
|
2277
|
+
allow_backorder?: boolean | undefined;
|
|
2278
|
+
manage_inventory?: boolean | undefined;
|
|
2279
|
+
variant_rank?: number | undefined;
|
|
2280
|
+
ean?: string | null | undefined;
|
|
2281
|
+
upc?: string | null | undefined;
|
|
2282
|
+
barcode?: string | null | undefined;
|
|
1942
2283
|
prices?: {
|
|
1943
2284
|
id?: string | undefined;
|
|
1944
2285
|
currency_code?: string | undefined;
|
|
@@ -1947,12 +2288,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
1947
2288
|
max_quantity?: number | null | undefined;
|
|
1948
2289
|
rules?: Record<string, string> | undefined;
|
|
1949
2290
|
}[] | undefined;
|
|
1950
|
-
ean?: string | null | undefined;
|
|
1951
|
-
upc?: string | null | undefined;
|
|
1952
|
-
barcode?: string | null | undefined;
|
|
1953
|
-
allow_backorder?: boolean | undefined;
|
|
1954
|
-
manage_inventory?: boolean | undefined;
|
|
1955
|
-
variant_rank?: number | undefined;
|
|
1956
2291
|
}>, "many">>;
|
|
1957
2292
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1958
2293
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -2004,6 +2339,7 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
2004
2339
|
values?: string[] | undefined;
|
|
2005
2340
|
id?: string | undefined;
|
|
2006
2341
|
title?: string | undefined;
|
|
2342
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2007
2343
|
}[] | undefined;
|
|
2008
2344
|
handle?: string | null | undefined;
|
|
2009
2345
|
description?: string | null | undefined;
|
|
@@ -2021,6 +2357,12 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
2021
2357
|
material?: string | null | undefined;
|
|
2022
2358
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2023
2359
|
sku?: string | null | undefined;
|
|
2360
|
+
allow_backorder?: boolean | undefined;
|
|
2361
|
+
manage_inventory?: boolean | undefined;
|
|
2362
|
+
variant_rank?: number | undefined;
|
|
2363
|
+
ean?: string | null | undefined;
|
|
2364
|
+
upc?: string | null | undefined;
|
|
2365
|
+
barcode?: string | null | undefined;
|
|
2024
2366
|
prices?: {
|
|
2025
2367
|
id?: string | undefined;
|
|
2026
2368
|
currency_code?: string | undefined;
|
|
@@ -2029,12 +2371,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
2029
2371
|
max_quantity?: number | null | undefined;
|
|
2030
2372
|
rules?: Record<string, string> | undefined;
|
|
2031
2373
|
}[] | undefined;
|
|
2032
|
-
ean?: string | null | undefined;
|
|
2033
|
-
upc?: string | null | undefined;
|
|
2034
|
-
barcode?: string | null | undefined;
|
|
2035
|
-
allow_backorder?: boolean | undefined;
|
|
2036
|
-
manage_inventory?: boolean | undefined;
|
|
2037
|
-
variant_rank?: number | undefined;
|
|
2038
2374
|
}[] | undefined;
|
|
2039
2375
|
title?: string | undefined;
|
|
2040
2376
|
subtitle?: string | null | undefined;
|
|
@@ -2070,6 +2406,7 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
2070
2406
|
values?: string[] | undefined;
|
|
2071
2407
|
id?: string | undefined;
|
|
2072
2408
|
title?: string | undefined;
|
|
2409
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
2073
2410
|
}[] | undefined;
|
|
2074
2411
|
handle?: string | null | undefined;
|
|
2075
2412
|
description?: string | null | undefined;
|
|
@@ -2087,6 +2424,12 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
2087
2424
|
material?: string | null | undefined;
|
|
2088
2425
|
metadata?: Record<string, unknown> | null | undefined;
|
|
2089
2426
|
sku?: string | null | undefined;
|
|
2427
|
+
allow_backorder?: boolean | undefined;
|
|
2428
|
+
manage_inventory?: boolean | undefined;
|
|
2429
|
+
variant_rank?: number | undefined;
|
|
2430
|
+
ean?: string | null | undefined;
|
|
2431
|
+
upc?: string | null | undefined;
|
|
2432
|
+
barcode?: string | null | undefined;
|
|
2090
2433
|
prices?: {
|
|
2091
2434
|
id?: string | undefined;
|
|
2092
2435
|
currency_code?: string | undefined;
|
|
@@ -2095,12 +2438,6 @@ export declare const UpdateProduct: z.ZodObject<{
|
|
|
2095
2438
|
max_quantity?: number | null | undefined;
|
|
2096
2439
|
rules?: Record<string, string> | undefined;
|
|
2097
2440
|
}[] | undefined;
|
|
2098
|
-
ean?: string | null | undefined;
|
|
2099
|
-
upc?: string | null | undefined;
|
|
2100
|
-
barcode?: string | null | undefined;
|
|
2101
|
-
allow_backorder?: boolean | undefined;
|
|
2102
|
-
manage_inventory?: boolean | undefined;
|
|
2103
|
-
variant_rank?: number | undefined;
|
|
2104
2441
|
}[] | undefined;
|
|
2105
2442
|
title?: string | undefined;
|
|
2106
2443
|
subtitle?: string | null | undefined;
|