@8medusa/medusa 2.11.1 → 2.12.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/dist/api/admin/draft-orders/validators.d.ts +4 -4
- package/dist/api/admin/products/validators.d.ts +12 -12
- package/dist/api/admin/promotions/query-config.d.ts.map +1 -1
- package/dist/api/admin/promotions/query-config.js +1 -0
- package/dist/api/admin/promotions/query-config.js.map +1 -1
- package/dist/api/admin/promotions/validators.d.ts +38 -32
- package/dist/api/admin/promotions/validators.d.ts.map +1 -1
- package/dist/api/admin/promotions/validators.js +2 -0
- package/dist/api/admin/promotions/validators.js.map +1 -1
- package/dist/api/admin/shipping-options/validators.d.ts +74 -74
- package/package.json +3 -3
|
@@ -200,8 +200,8 @@ declare const CreateDraftOrder: z.ZodObject<{
|
|
|
200
200
|
precision: number;
|
|
201
201
|
}>]>;
|
|
202
202
|
}, "strip", z.ZodTypeAny, {
|
|
203
|
-
shipping_option_id: string;
|
|
204
203
|
name: string;
|
|
204
|
+
shipping_option_id: string;
|
|
205
205
|
amount: (string | number | {
|
|
206
206
|
value: string;
|
|
207
207
|
precision: number;
|
|
@@ -212,8 +212,8 @@ declare const CreateDraftOrder: z.ZodObject<{
|
|
|
212
212
|
shipping_method_id?: string | null | undefined;
|
|
213
213
|
data?: Record<string, unknown> | undefined;
|
|
214
214
|
}, {
|
|
215
|
-
shipping_option_id: string;
|
|
216
215
|
name: string;
|
|
216
|
+
shipping_option_id: string;
|
|
217
217
|
amount: (string | number | {
|
|
218
218
|
value: string;
|
|
219
219
|
precision: number;
|
|
@@ -275,8 +275,8 @@ declare const CreateDraftOrder: z.ZodObject<{
|
|
|
275
275
|
currency_code?: string | null | undefined;
|
|
276
276
|
no_notification_order?: boolean | undefined;
|
|
277
277
|
shipping_methods?: {
|
|
278
|
-
shipping_option_id: string;
|
|
279
278
|
name: string;
|
|
279
|
+
shipping_option_id: string;
|
|
280
280
|
amount: (string | number | {
|
|
281
281
|
value: string;
|
|
282
282
|
precision: number;
|
|
@@ -338,8 +338,8 @@ declare const CreateDraftOrder: z.ZodObject<{
|
|
|
338
338
|
currency_code?: string | null | undefined;
|
|
339
339
|
no_notification_order?: boolean | undefined;
|
|
340
340
|
shipping_methods?: {
|
|
341
|
-
shipping_option_id: string;
|
|
342
341
|
name: string;
|
|
342
|
+
shipping_option_id: string;
|
|
343
343
|
amount: (string | number | {
|
|
344
344
|
value: string;
|
|
345
345
|
precision: number;
|
|
@@ -959,6 +959,8 @@ export type AdminBatchUpdateProductVariantType = z.infer<typeof AdminBatchUpdate
|
|
|
959
959
|
export declare const AdminBatchUpdateProductVariant: z.ZodObject<{
|
|
960
960
|
length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
961
961
|
options: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
962
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
963
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
962
964
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
963
965
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
964
966
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -991,8 +993,6 @@ export declare const AdminBatchUpdateProductVariant: z.ZodObject<{
|
|
|
991
993
|
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
992
994
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
993
995
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
994
|
-
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
995
|
-
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
996
996
|
ean: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
997
997
|
upc: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
998
998
|
manage_inventory: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
@@ -1002,6 +1002,8 @@ export declare const AdminBatchUpdateProductVariant: z.ZodObject<{
|
|
|
1002
1002
|
id: string;
|
|
1003
1003
|
length?: number | null | undefined;
|
|
1004
1004
|
options?: Record<string, string> | undefined;
|
|
1005
|
+
height?: number | null | undefined;
|
|
1006
|
+
width?: number | null | undefined;
|
|
1005
1007
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1006
1008
|
prices?: {
|
|
1007
1009
|
id?: string | undefined;
|
|
@@ -1020,8 +1022,6 @@ export declare const AdminBatchUpdateProductVariant: z.ZodObject<{
|
|
|
1020
1022
|
mid_code?: string | null | undefined;
|
|
1021
1023
|
material?: string | null | undefined;
|
|
1022
1024
|
weight?: number | null | undefined;
|
|
1023
|
-
height?: number | null | undefined;
|
|
1024
|
-
width?: number | null | undefined;
|
|
1025
1025
|
ean?: string | null | undefined;
|
|
1026
1026
|
upc?: string | null | undefined;
|
|
1027
1027
|
manage_inventory?: boolean | undefined;
|
|
@@ -1030,6 +1030,8 @@ export declare const AdminBatchUpdateProductVariant: z.ZodObject<{
|
|
|
1030
1030
|
id: string;
|
|
1031
1031
|
length?: number | null | undefined;
|
|
1032
1032
|
options?: Record<string, string> | undefined;
|
|
1033
|
+
height?: number | null | undefined;
|
|
1034
|
+
width?: number | null | undefined;
|
|
1033
1035
|
metadata?: Record<string, unknown> | null | undefined;
|
|
1034
1036
|
prices?: {
|
|
1035
1037
|
id?: string | undefined;
|
|
@@ -1048,8 +1050,6 @@ export declare const AdminBatchUpdateProductVariant: z.ZodObject<{
|
|
|
1048
1050
|
mid_code?: string | null | undefined;
|
|
1049
1051
|
material?: string | null | undefined;
|
|
1050
1052
|
weight?: number | null | undefined;
|
|
1051
|
-
height?: number | null | undefined;
|
|
1052
|
-
width?: number | null | undefined;
|
|
1053
1053
|
ean?: string | null | undefined;
|
|
1054
1054
|
upc?: string | null | undefined;
|
|
1055
1055
|
manage_inventory?: string | boolean | undefined;
|
|
@@ -1697,6 +1697,8 @@ export declare const AdminBatchUpdateProduct: z.ZodObject<{
|
|
|
1697
1697
|
title?: string | undefined;
|
|
1698
1698
|
values?: string[] | undefined;
|
|
1699
1699
|
}>, "many">>;
|
|
1700
|
+
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1701
|
+
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1700
1702
|
variants: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1701
1703
|
id: z.ZodOptional<z.ZodString>;
|
|
1702
1704
|
title: z.ZodOptional<z.ZodString>;
|
|
@@ -1812,8 +1814,6 @@ export declare const AdminBatchUpdateProduct: z.ZodObject<{
|
|
|
1812
1814
|
mid_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1813
1815
|
material: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1814
1816
|
weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1815
|
-
height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1816
|
-
width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
1817
1817
|
subtitle: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1818
1818
|
discountable: z.ZodOptional<z.ZodEffects<z.ZodEffects<z.ZodUnion<[z.ZodBoolean, z.ZodString]>, string | boolean, string | boolean>, boolean, string | boolean>>;
|
|
1819
1819
|
categories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -1853,6 +1853,8 @@ export declare const AdminBatchUpdateProduct: z.ZodObject<{
|
|
|
1853
1853
|
title?: string | undefined;
|
|
1854
1854
|
values?: string[] | undefined;
|
|
1855
1855
|
}[] | undefined;
|
|
1856
|
+
height?: number | null | undefined;
|
|
1857
|
+
width?: number | null | undefined;
|
|
1856
1858
|
variants?: {
|
|
1857
1859
|
id?: string | undefined;
|
|
1858
1860
|
title?: string | undefined;
|
|
@@ -1898,8 +1900,6 @@ export declare const AdminBatchUpdateProduct: z.ZodObject<{
|
|
|
1898
1900
|
mid_code?: string | null | undefined;
|
|
1899
1901
|
material?: string | null | undefined;
|
|
1900
1902
|
weight?: number | null | undefined;
|
|
1901
|
-
height?: number | null | undefined;
|
|
1902
|
-
width?: number | null | undefined;
|
|
1903
1903
|
subtitle?: string | null | undefined;
|
|
1904
1904
|
discountable?: boolean | undefined;
|
|
1905
1905
|
categories?: {
|
|
@@ -1922,6 +1922,8 @@ export declare const AdminBatchUpdateProduct: z.ZodObject<{
|
|
|
1922
1922
|
title?: string | undefined;
|
|
1923
1923
|
values?: string[] | undefined;
|
|
1924
1924
|
}[] | undefined;
|
|
1925
|
+
height?: number | null | undefined;
|
|
1926
|
+
width?: number | null | undefined;
|
|
1925
1927
|
variants?: {
|
|
1926
1928
|
id?: string | undefined;
|
|
1927
1929
|
title?: string | undefined;
|
|
@@ -1967,8 +1969,6 @@ export declare const AdminBatchUpdateProduct: z.ZodObject<{
|
|
|
1967
1969
|
mid_code?: string | null | undefined;
|
|
1968
1970
|
material?: string | null | undefined;
|
|
1969
1971
|
weight?: number | null | undefined;
|
|
1970
|
-
height?: number | null | undefined;
|
|
1971
|
-
width?: number | null | undefined;
|
|
1972
1972
|
subtitle?: string | null | undefined;
|
|
1973
1973
|
discountable?: string | boolean | undefined;
|
|
1974
1974
|
categories?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-config.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/promotions/query-config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"query-config.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/promotions/query-config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,UAqBvC,CAAA;AAED,eAAO,MAAM,+BAA+B,UAM3C,CAAA;AAED,eAAO,MAAM,4BAA4B;;;CAGxC,CAAA;AAED,eAAO,MAAM,wBAAwB;;;CAGpC,CAAA;AAED,eAAO,MAAM,gCAAgC;;;CAG5C,CAAA;AAED,eAAO,MAAM,4BAA4B;;;CAGxC,CAAA;AAED,eAAO,MAAM,iCAAiC;;;;CAI7C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query-config.js","sourceRoot":"","sources":["../../../../src/api/admin/promotions/query-config.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;IACzC,IAAI;IACJ,MAAM;IACN,cAAc;IACd,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,kBAAkB;IAClB,qBAAqB;IACrB,+BAA+B;IAC/B,2CAA2C;IAC3C,kCAAkC;IAClC,8CAA8C;IAC9C,UAAU;IACV,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;CACrB,CAAA;AAEY,QAAA,+BAA+B,GAAG;IAC7C,IAAI;IACJ,aAAa;IACb,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAA;AAEY,QAAA,4BAA4B,GAAG;IAC1C,QAAQ,EAAE,mCAA2B;IACrC,MAAM,EAAE,KAAK;CACd,CAAA;AAEY,QAAA,wBAAwB,GAAG;IACtC,GAAG,oCAA4B;IAC/B,MAAM,EAAE,IAAI;CACb,CAAA;AAEY,QAAA,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,uCAA+B;IACzC,MAAM,EAAE,KAAK;CACd,CAAA;AAEY,QAAA,4BAA4B,GAAG;IAC1C,GAAG,wCAAgC;IACnC,MAAM,EAAE,IAAI;CACb,CAAA;AAEY,QAAA,iCAAiC,GAAG;IAC/C,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,IAAI;CACb,CAAA"}
|
|
1
|
+
{"version":3,"file":"query-config.js","sourceRoot":"","sources":["../../../../src/api/admin/promotions/query-config.ts"],"names":[],"mappings":";;;AAAa,QAAA,2BAA2B,GAAG;IACzC,IAAI;IACJ,MAAM;IACN,cAAc;IACd,kBAAkB;IAClB,MAAM;IACN,QAAQ;IACR,YAAY;IACZ,YAAY;IACZ,YAAY;IACZ,WAAW;IACX,kBAAkB;IAClB,qBAAqB;IACrB,+BAA+B;IAC/B,2CAA2C;IAC3C,kCAAkC;IAClC,8CAA8C;IAC9C,UAAU;IACV,iBAAiB;IACjB,gBAAgB;IAChB,oBAAoB;CACrB,CAAA;AAEY,QAAA,+BAA+B,GAAG;IAC7C,IAAI;IACJ,aAAa;IACb,WAAW;IACX,UAAU;IACV,cAAc;CACf,CAAA;AAEY,QAAA,4BAA4B,GAAG;IAC1C,QAAQ,EAAE,mCAA2B;IACrC,MAAM,EAAE,KAAK;CACd,CAAA;AAEY,QAAA,wBAAwB,GAAG;IACtC,GAAG,oCAA4B;IAC/B,MAAM,EAAE,IAAI;CACb,CAAA;AAEY,QAAA,gCAAgC,GAAG;IAC9C,QAAQ,EAAE,uCAA+B;IACzC,MAAM,EAAE,KAAK;CACd,CAAA;AAEY,QAAA,4BAA4B,GAAG;IAC1C,GAAG,wCAAgC;IACnC,MAAM,EAAE,IAAI;CACb,CAAA;AAEY,QAAA,iCAAiC,GAAG;IAC/C,QAAQ,EAAE,EAAE;IACZ,OAAO,EAAE,EAAE;IACX,MAAM,EAAE,IAAI;CACb,CAAA"}
|
|
@@ -291,13 +291,13 @@ export declare const AdminCreatePromotionRule: z.ZodObject<{
|
|
|
291
291
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
292
292
|
}, "strict", z.ZodTypeAny, {
|
|
293
293
|
values: (string | string[]) & (string | string[] | undefined);
|
|
294
|
-
attribute: string;
|
|
295
294
|
operator: PromotionRuleOperator;
|
|
295
|
+
attribute: string;
|
|
296
296
|
description?: string | null | undefined;
|
|
297
297
|
}, {
|
|
298
298
|
values: (string | string[]) & (string | string[] | undefined);
|
|
299
|
-
attribute: string;
|
|
300
299
|
operator: PromotionRuleOperator;
|
|
300
|
+
attribute: string;
|
|
301
301
|
description?: string | null | undefined;
|
|
302
302
|
}>;
|
|
303
303
|
export type AdminUpdatePromotionRuleType = z.infer<typeof AdminUpdatePromotionRule>;
|
|
@@ -336,13 +336,13 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
|
336
336
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
337
337
|
}, "strict", z.ZodTypeAny, {
|
|
338
338
|
values: (string | string[]) & (string | string[] | undefined);
|
|
339
|
-
attribute: string;
|
|
340
339
|
operator: PromotionRuleOperator;
|
|
340
|
+
attribute: string;
|
|
341
341
|
description?: string | null | undefined;
|
|
342
342
|
}, {
|
|
343
343
|
values: (string | string[]) & (string | string[] | undefined);
|
|
344
|
-
attribute: string;
|
|
345
344
|
operator: PromotionRuleOperator;
|
|
345
|
+
attribute: string;
|
|
346
346
|
description?: string | null | undefined;
|
|
347
347
|
}>, "many">>;
|
|
348
348
|
buy_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -352,20 +352,20 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
|
352
352
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
353
353
|
}, "strict", z.ZodTypeAny, {
|
|
354
354
|
values: (string | string[]) & (string | string[] | undefined);
|
|
355
|
-
attribute: string;
|
|
356
355
|
operator: PromotionRuleOperator;
|
|
356
|
+
attribute: string;
|
|
357
357
|
description?: string | null | undefined;
|
|
358
358
|
}, {
|
|
359
359
|
values: (string | string[]) & (string | string[] | undefined);
|
|
360
|
-
attribute: string;
|
|
361
360
|
operator: PromotionRuleOperator;
|
|
361
|
+
attribute: string;
|
|
362
362
|
description?: string | null | undefined;
|
|
363
363
|
}>, "many">>;
|
|
364
364
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
365
365
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
366
366
|
}, "strict", z.ZodTypeAny, {
|
|
367
|
-
type: ApplicationMethodType;
|
|
368
367
|
value: number;
|
|
368
|
+
type: ApplicationMethodType;
|
|
369
369
|
target_type: ApplicationMethodTargetType;
|
|
370
370
|
description?: string | null | undefined;
|
|
371
371
|
currency_code?: string | null | undefined;
|
|
@@ -373,21 +373,21 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
|
373
373
|
allocation?: ApplicationMethodAllocation | undefined;
|
|
374
374
|
target_rules?: {
|
|
375
375
|
values: (string | string[]) & (string | string[] | undefined);
|
|
376
|
-
attribute: string;
|
|
377
376
|
operator: PromotionRuleOperator;
|
|
377
|
+
attribute: string;
|
|
378
378
|
description?: string | null | undefined;
|
|
379
379
|
}[] | undefined;
|
|
380
380
|
buy_rules?: {
|
|
381
381
|
values: (string | string[]) & (string | string[] | undefined);
|
|
382
|
-
attribute: string;
|
|
383
382
|
operator: PromotionRuleOperator;
|
|
383
|
+
attribute: string;
|
|
384
384
|
description?: string | null | undefined;
|
|
385
385
|
}[] | undefined;
|
|
386
386
|
apply_to_quantity?: number | null | undefined;
|
|
387
387
|
buy_rules_min_quantity?: number | null | undefined;
|
|
388
388
|
}, {
|
|
389
|
-
type: ApplicationMethodType;
|
|
390
389
|
value: number;
|
|
390
|
+
type: ApplicationMethodType;
|
|
391
391
|
target_type: ApplicationMethodTargetType;
|
|
392
392
|
description?: string | null | undefined;
|
|
393
393
|
currency_code?: string | null | undefined;
|
|
@@ -395,14 +395,14 @@ export declare const AdminCreateApplicationMethod: z.ZodObject<{
|
|
|
395
395
|
allocation?: ApplicationMethodAllocation | undefined;
|
|
396
396
|
target_rules?: {
|
|
397
397
|
values: (string | string[]) & (string | string[] | undefined);
|
|
398
|
-
attribute: string;
|
|
399
398
|
operator: PromotionRuleOperator;
|
|
399
|
+
attribute: string;
|
|
400
400
|
description?: string | null | undefined;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
buy_rules?: {
|
|
403
403
|
values: (string | string[]) & (string | string[] | undefined);
|
|
404
|
-
attribute: string;
|
|
405
404
|
operator: PromotionRuleOperator;
|
|
405
|
+
attribute: string;
|
|
406
406
|
description?: string | null | undefined;
|
|
407
407
|
}[] | undefined;
|
|
408
408
|
apply_to_quantity?: number | null | undefined;
|
|
@@ -444,6 +444,7 @@ export type AdminCreatePromotionType = z.infer<typeof CreatePromotion>;
|
|
|
444
444
|
export declare const CreatePromotion: z.ZodObject<{
|
|
445
445
|
code: z.ZodString;
|
|
446
446
|
is_automatic: z.ZodOptional<z.ZodBoolean>;
|
|
447
|
+
is_tax_inclusive: z.ZodOptional<z.ZodBoolean>;
|
|
447
448
|
type: z.ZodNativeEnum<typeof PromotionType>;
|
|
448
449
|
status: z.ZodDefault<z.ZodNativeEnum<typeof PromotionStatus>>;
|
|
449
450
|
campaign_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -520,13 +521,13 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
520
521
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
521
522
|
}, "strict", z.ZodTypeAny, {
|
|
522
523
|
values: (string | string[]) & (string | string[] | undefined);
|
|
523
|
-
attribute: string;
|
|
524
524
|
operator: PromotionRuleOperator;
|
|
525
|
+
attribute: string;
|
|
525
526
|
description?: string | null | undefined;
|
|
526
527
|
}, {
|
|
527
528
|
values: (string | string[]) & (string | string[] | undefined);
|
|
528
|
-
attribute: string;
|
|
529
529
|
operator: PromotionRuleOperator;
|
|
530
|
+
attribute: string;
|
|
530
531
|
description?: string | null | undefined;
|
|
531
532
|
}>, "many">>;
|
|
532
533
|
buy_rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -536,20 +537,20 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
536
537
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
537
538
|
}, "strict", z.ZodTypeAny, {
|
|
538
539
|
values: (string | string[]) & (string | string[] | undefined);
|
|
539
|
-
attribute: string;
|
|
540
540
|
operator: PromotionRuleOperator;
|
|
541
|
+
attribute: string;
|
|
541
542
|
description?: string | null | undefined;
|
|
542
543
|
}, {
|
|
543
544
|
values: (string | string[]) & (string | string[] | undefined);
|
|
544
|
-
attribute: string;
|
|
545
545
|
operator: PromotionRuleOperator;
|
|
546
|
+
attribute: string;
|
|
546
547
|
description?: string | null | undefined;
|
|
547
548
|
}>, "many">>;
|
|
548
549
|
apply_to_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
549
550
|
buy_rules_min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
550
551
|
}, "strict", z.ZodTypeAny, {
|
|
551
|
-
type: ApplicationMethodType;
|
|
552
552
|
value: number;
|
|
553
|
+
type: ApplicationMethodType;
|
|
553
554
|
target_type: ApplicationMethodTargetType;
|
|
554
555
|
description?: string | null | undefined;
|
|
555
556
|
currency_code?: string | null | undefined;
|
|
@@ -557,21 +558,21 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
557
558
|
allocation?: ApplicationMethodAllocation | undefined;
|
|
558
559
|
target_rules?: {
|
|
559
560
|
values: (string | string[]) & (string | string[] | undefined);
|
|
560
|
-
attribute: string;
|
|
561
561
|
operator: PromotionRuleOperator;
|
|
562
|
+
attribute: string;
|
|
562
563
|
description?: string | null | undefined;
|
|
563
564
|
}[] | undefined;
|
|
564
565
|
buy_rules?: {
|
|
565
566
|
values: (string | string[]) & (string | string[] | undefined);
|
|
566
|
-
attribute: string;
|
|
567
567
|
operator: PromotionRuleOperator;
|
|
568
|
+
attribute: string;
|
|
568
569
|
description?: string | null | undefined;
|
|
569
570
|
}[] | undefined;
|
|
570
571
|
apply_to_quantity?: number | null | undefined;
|
|
571
572
|
buy_rules_min_quantity?: number | null | undefined;
|
|
572
573
|
}, {
|
|
573
|
-
type: ApplicationMethodType;
|
|
574
574
|
value: number;
|
|
575
|
+
type: ApplicationMethodType;
|
|
575
576
|
target_type: ApplicationMethodTargetType;
|
|
576
577
|
description?: string | null | undefined;
|
|
577
578
|
currency_code?: string | null | undefined;
|
|
@@ -579,14 +580,14 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
579
580
|
allocation?: ApplicationMethodAllocation | undefined;
|
|
580
581
|
target_rules?: {
|
|
581
582
|
values: (string | string[]) & (string | string[] | undefined);
|
|
582
|
-
attribute: string;
|
|
583
583
|
operator: PromotionRuleOperator;
|
|
584
|
+
attribute: string;
|
|
584
585
|
description?: string | null | undefined;
|
|
585
586
|
}[] | undefined;
|
|
586
587
|
buy_rules?: {
|
|
587
588
|
values: (string | string[]) & (string | string[] | undefined);
|
|
588
|
-
attribute: string;
|
|
589
589
|
operator: PromotionRuleOperator;
|
|
590
|
+
attribute: string;
|
|
590
591
|
description?: string | null | undefined;
|
|
591
592
|
}[] | undefined;
|
|
592
593
|
apply_to_quantity?: number | null | undefined;
|
|
@@ -599,13 +600,13 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
599
600
|
values: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
600
601
|
}, "strict", z.ZodTypeAny, {
|
|
601
602
|
values: (string | string[]) & (string | string[] | undefined);
|
|
602
|
-
attribute: string;
|
|
603
603
|
operator: PromotionRuleOperator;
|
|
604
|
+
attribute: string;
|
|
604
605
|
description?: string | null | undefined;
|
|
605
606
|
}, {
|
|
606
607
|
values: (string | string[]) & (string | string[] | undefined);
|
|
607
|
-
attribute: string;
|
|
608
608
|
operator: PromotionRuleOperator;
|
|
609
|
+
attribute: string;
|
|
609
610
|
description?: string | null | undefined;
|
|
610
611
|
}>, "many">>;
|
|
611
612
|
}, "strict", z.ZodTypeAny, {
|
|
@@ -613,8 +614,8 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
613
614
|
code: string;
|
|
614
615
|
status: PromotionStatus;
|
|
615
616
|
application_method: {
|
|
616
|
-
type: ApplicationMethodType;
|
|
617
617
|
value: number;
|
|
618
|
+
type: ApplicationMethodType;
|
|
618
619
|
target_type: ApplicationMethodTargetType;
|
|
619
620
|
description?: string | null | undefined;
|
|
620
621
|
currency_code?: string | null | undefined;
|
|
@@ -622,20 +623,21 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
622
623
|
allocation?: ApplicationMethodAllocation | undefined;
|
|
623
624
|
target_rules?: {
|
|
624
625
|
values: (string | string[]) & (string | string[] | undefined);
|
|
625
|
-
attribute: string;
|
|
626
626
|
operator: PromotionRuleOperator;
|
|
627
|
+
attribute: string;
|
|
627
628
|
description?: string | null | undefined;
|
|
628
629
|
}[] | undefined;
|
|
629
630
|
buy_rules?: {
|
|
630
631
|
values: (string | string[]) & (string | string[] | undefined);
|
|
631
|
-
attribute: string;
|
|
632
632
|
operator: PromotionRuleOperator;
|
|
633
|
+
attribute: string;
|
|
633
634
|
description?: string | null | undefined;
|
|
634
635
|
}[] | undefined;
|
|
635
636
|
apply_to_quantity?: number | null | undefined;
|
|
636
637
|
buy_rules_min_quantity?: number | null | undefined;
|
|
637
638
|
};
|
|
638
639
|
is_automatic?: boolean | undefined;
|
|
640
|
+
is_tax_inclusive?: boolean | undefined;
|
|
639
641
|
campaign_id?: string | null | undefined;
|
|
640
642
|
campaign?: {
|
|
641
643
|
name: string;
|
|
@@ -651,16 +653,16 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
651
653
|
} | undefined;
|
|
652
654
|
rules?: {
|
|
653
655
|
values: (string | string[]) & (string | string[] | undefined);
|
|
654
|
-
attribute: string;
|
|
655
656
|
operator: PromotionRuleOperator;
|
|
657
|
+
attribute: string;
|
|
656
658
|
description?: string | null | undefined;
|
|
657
659
|
}[] | undefined;
|
|
658
660
|
}, {
|
|
659
661
|
type: PromotionType;
|
|
660
662
|
code: string;
|
|
661
663
|
application_method: {
|
|
662
|
-
type: ApplicationMethodType;
|
|
663
664
|
value: number;
|
|
665
|
+
type: ApplicationMethodType;
|
|
664
666
|
target_type: ApplicationMethodTargetType;
|
|
665
667
|
description?: string | null | undefined;
|
|
666
668
|
currency_code?: string | null | undefined;
|
|
@@ -668,20 +670,21 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
668
670
|
allocation?: ApplicationMethodAllocation | undefined;
|
|
669
671
|
target_rules?: {
|
|
670
672
|
values: (string | string[]) & (string | string[] | undefined);
|
|
671
|
-
attribute: string;
|
|
672
673
|
operator: PromotionRuleOperator;
|
|
674
|
+
attribute: string;
|
|
673
675
|
description?: string | null | undefined;
|
|
674
676
|
}[] | undefined;
|
|
675
677
|
buy_rules?: {
|
|
676
678
|
values: (string | string[]) & (string | string[] | undefined);
|
|
677
|
-
attribute: string;
|
|
678
679
|
operator: PromotionRuleOperator;
|
|
680
|
+
attribute: string;
|
|
679
681
|
description?: string | null | undefined;
|
|
680
682
|
}[] | undefined;
|
|
681
683
|
apply_to_quantity?: number | null | undefined;
|
|
682
684
|
buy_rules_min_quantity?: number | null | undefined;
|
|
683
685
|
};
|
|
684
686
|
is_automatic?: boolean | undefined;
|
|
687
|
+
is_tax_inclusive?: boolean | undefined;
|
|
685
688
|
status?: PromotionStatus | undefined;
|
|
686
689
|
campaign_id?: string | null | undefined;
|
|
687
690
|
campaign?: {
|
|
@@ -698,8 +701,8 @@ export declare const CreatePromotion: z.ZodObject<{
|
|
|
698
701
|
} | undefined;
|
|
699
702
|
rules?: {
|
|
700
703
|
values: (string | string[]) & (string | string[] | undefined);
|
|
701
|
-
attribute: string;
|
|
702
704
|
operator: PromotionRuleOperator;
|
|
705
|
+
attribute: string;
|
|
703
706
|
description?: string | null | undefined;
|
|
704
707
|
}[] | undefined;
|
|
705
708
|
}>;
|
|
@@ -712,6 +715,7 @@ export type AdminUpdatePromotionType = z.infer<typeof UpdatePromotion>;
|
|
|
712
715
|
export declare const UpdatePromotion: z.ZodObject<{
|
|
713
716
|
code: z.ZodOptional<z.ZodString>;
|
|
714
717
|
is_automatic: z.ZodOptional<z.ZodBoolean>;
|
|
718
|
+
is_tax_inclusive: z.ZodOptional<z.ZodBoolean>;
|
|
715
719
|
type: z.ZodOptional<z.ZodNativeEnum<typeof PromotionType>>;
|
|
716
720
|
status: z.ZodOptional<z.ZodNativeEnum<typeof PromotionStatus>>;
|
|
717
721
|
campaign_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -749,6 +753,7 @@ export declare const UpdatePromotion: z.ZodObject<{
|
|
|
749
753
|
}, "strict", z.ZodTypeAny, {
|
|
750
754
|
code?: string | undefined;
|
|
751
755
|
is_automatic?: boolean | undefined;
|
|
756
|
+
is_tax_inclusive?: boolean | undefined;
|
|
752
757
|
type?: PromotionType | undefined;
|
|
753
758
|
status?: PromotionStatus | undefined;
|
|
754
759
|
campaign_id?: string | null | undefined;
|
|
@@ -766,6 +771,7 @@ export declare const UpdatePromotion: z.ZodObject<{
|
|
|
766
771
|
}, {
|
|
767
772
|
code?: string | undefined;
|
|
768
773
|
is_automatic?: boolean | undefined;
|
|
774
|
+
is_tax_inclusive?: boolean | undefined;
|
|
769
775
|
type?: PromotionType | undefined;
|
|
770
776
|
status?: PromotionStatus | undefined;
|
|
771
777
|
campaign_id?: string | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.d.ts","sourceRoot":"","sources":["../../../../src/api/admin/promotions/validators.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,aAAa,EACd,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAUvB,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAC/C,OAAO,uBAAuB,CAC/B,CAAA;AACD,eAAO,MAAM,uBAAuB;;;;;;EAAuB,CAAA;AAE3D,eAAO,MAAM,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAYjB,CAAA;AAEX,eAAO,MAAM,oBAAoB;;;;gCAQhC,CAAA;AAED,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAA;AACtE,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjB,CAAA;AAEX,eAAO,MAAM,oBAAoB;;;;gCAQhC,CAAA"}
|
|
@@ -105,6 +105,7 @@ exports.CreatePromotion = zod_1.z
|
|
|
105
105
|
.object({
|
|
106
106
|
code: zod_1.z.string(),
|
|
107
107
|
is_automatic: zod_1.z.boolean().optional(),
|
|
108
|
+
is_tax_inclusive: zod_1.z.boolean().optional(),
|
|
108
109
|
type: zod_1.z.nativeEnum(utils_1.PromotionType),
|
|
109
110
|
status: zod_1.z.nativeEnum(utils_1.PromotionStatus).default(utils_1.PromotionStatus.DRAFT),
|
|
110
111
|
campaign_id: zod_1.z.string().nullish(),
|
|
@@ -122,6 +123,7 @@ exports.UpdatePromotion = zod_1.z
|
|
|
122
123
|
.object({
|
|
123
124
|
code: zod_1.z.string().optional(),
|
|
124
125
|
is_automatic: zod_1.z.boolean().optional(),
|
|
126
|
+
is_tax_inclusive: zod_1.z.boolean().optional(),
|
|
125
127
|
type: zod_1.z.nativeEnum(utils_1.PromotionType).optional(),
|
|
126
128
|
status: zod_1.z.nativeEnum(utils_1.PromotionStatus).optional(),
|
|
127
129
|
campaign_id: zod_1.z.string().nullish(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../src/api/admin/promotions/validators.ts"],"names":[],"mappings":";;;AAAA,oDAOiC;AACjC,6BAAuB;AACvB,qEAAsE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AC,QAAQ,EAAE;IAC5C,MAAM,EAAE,OAAC,CAAC,UAAU,CAAC,uBAAe,CAAC,CAAC,QAAQ,EAAE;IAChD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE;IACjC,kBAAkB,EAAE,oCAA4B,CAAC,QAAQ,EAAE;CAC5D,CAAC;KACD,MAAM,EAAE,CAAA;AAEE,QAAA,oBAAoB,GAAG,IAAA,+BAAkB,EACpD,uBAAe,EACf,CAAC,MAAM,EAAE,EAAE;IACT,OAAO,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE;QACpC,OAAO,EACL,8EAA8E;KACjF,CAAC,CAAA;AACJ,CAAC,CACF,CAAA"}
|
|
@@ -196,12 +196,12 @@ export declare const AdminCreateShippingOptionRule: z.ZodObject<{
|
|
|
196
196
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
197
197
|
}, "strict", z.ZodTypeAny, {
|
|
198
198
|
value: (string | string[]) & (string | string[] | undefined);
|
|
199
|
-
attribute: string;
|
|
200
199
|
operator: RuleOperator;
|
|
200
|
+
attribute: string;
|
|
201
201
|
}, {
|
|
202
202
|
value: (string | string[]) & (string | string[] | undefined);
|
|
203
|
-
attribute: string;
|
|
204
203
|
operator: RuleOperator;
|
|
204
|
+
attribute: string;
|
|
205
205
|
}>;
|
|
206
206
|
export type AdminUpdateShippingOptionRuleType = z.infer<typeof AdminUpdateShippingOptionRule>;
|
|
207
207
|
export declare const AdminUpdateShippingOptionRule: z.ZodObject<{
|
|
@@ -210,15 +210,15 @@ export declare const AdminUpdateShippingOptionRule: z.ZodObject<{
|
|
|
210
210
|
attribute: z.ZodString;
|
|
211
211
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
212
212
|
}, "strict", z.ZodTypeAny, {
|
|
213
|
-
id: string;
|
|
214
213
|
value: (string | string[]) & (string | string[] | undefined);
|
|
215
|
-
|
|
214
|
+
id: string;
|
|
216
215
|
operator: RuleOperator;
|
|
216
|
+
attribute: string;
|
|
217
217
|
}, {
|
|
218
|
-
id: string;
|
|
219
218
|
value: (string | string[]) & (string | string[] | undefined);
|
|
220
|
-
|
|
219
|
+
id: string;
|
|
221
220
|
operator: RuleOperator;
|
|
221
|
+
attribute: string;
|
|
222
222
|
}>;
|
|
223
223
|
/**
|
|
224
224
|
* SHIPPING OPTIONS
|
|
@@ -228,13 +228,13 @@ export declare const AdminCreateShippingOptionTypeObject: z.ZodObject<{
|
|
|
228
228
|
description: z.ZodString;
|
|
229
229
|
code: z.ZodString;
|
|
230
230
|
}, "strict", z.ZodTypeAny, {
|
|
231
|
+
label: string;
|
|
231
232
|
description: string;
|
|
232
233
|
code: string;
|
|
233
|
-
label: string;
|
|
234
234
|
}, {
|
|
235
|
+
label: string;
|
|
235
236
|
description: string;
|
|
236
237
|
code: string;
|
|
237
|
-
label: string;
|
|
238
238
|
}>;
|
|
239
239
|
export declare const AdminCreateShippingOptionPriceWithCurrency: z.ZodObject<{
|
|
240
240
|
currency_code: z.ZodString;
|
|
@@ -245,28 +245,28 @@ export declare const AdminCreateShippingOptionPriceWithCurrency: z.ZodObject<{
|
|
|
245
245
|
value: z.ZodNumber;
|
|
246
246
|
}, "strip", z.ZodTypeAny, {
|
|
247
247
|
value: number;
|
|
248
|
-
attribute: "item_total";
|
|
249
248
|
operator: PricingRuleOperator;
|
|
249
|
+
attribute: "item_total";
|
|
250
250
|
}, {
|
|
251
251
|
value: number;
|
|
252
|
-
attribute: "item_total";
|
|
253
252
|
operator: PricingRuleOperator;
|
|
253
|
+
attribute: "item_total";
|
|
254
254
|
}>, "many">>;
|
|
255
255
|
}, "strict", z.ZodTypeAny, {
|
|
256
256
|
amount: number;
|
|
257
257
|
currency_code: string;
|
|
258
258
|
rules?: {
|
|
259
259
|
value: number;
|
|
260
|
-
attribute: "item_total";
|
|
261
260
|
operator: PricingRuleOperator;
|
|
261
|
+
attribute: "item_total";
|
|
262
262
|
}[] | undefined;
|
|
263
263
|
}, {
|
|
264
264
|
amount: number;
|
|
265
265
|
currency_code: string;
|
|
266
266
|
rules?: {
|
|
267
267
|
value: number;
|
|
268
|
-
attribute: "item_total";
|
|
269
268
|
operator: PricingRuleOperator;
|
|
269
|
+
attribute: "item_total";
|
|
270
270
|
}[] | undefined;
|
|
271
271
|
}>;
|
|
272
272
|
export declare const AdminCreateShippingOptionPriceWithRegion: z.ZodObject<{
|
|
@@ -278,28 +278,28 @@ export declare const AdminCreateShippingOptionPriceWithRegion: z.ZodObject<{
|
|
|
278
278
|
value: z.ZodNumber;
|
|
279
279
|
}, "strip", z.ZodTypeAny, {
|
|
280
280
|
value: number;
|
|
281
|
-
attribute: "item_total";
|
|
282
281
|
operator: PricingRuleOperator;
|
|
282
|
+
attribute: "item_total";
|
|
283
283
|
}, {
|
|
284
284
|
value: number;
|
|
285
|
-
attribute: "item_total";
|
|
286
285
|
operator: PricingRuleOperator;
|
|
286
|
+
attribute: "item_total";
|
|
287
287
|
}>, "many">>;
|
|
288
288
|
}, "strict", z.ZodTypeAny, {
|
|
289
289
|
amount: number;
|
|
290
290
|
region_id: string;
|
|
291
291
|
rules?: {
|
|
292
292
|
value: number;
|
|
293
|
-
attribute: "item_total";
|
|
294
293
|
operator: PricingRuleOperator;
|
|
294
|
+
attribute: "item_total";
|
|
295
295
|
}[] | undefined;
|
|
296
296
|
}, {
|
|
297
297
|
amount: number;
|
|
298
298
|
region_id: string;
|
|
299
299
|
rules?: {
|
|
300
300
|
value: number;
|
|
301
|
-
attribute: "item_total";
|
|
302
301
|
operator: PricingRuleOperator;
|
|
302
|
+
attribute: "item_total";
|
|
303
303
|
}[] | undefined;
|
|
304
304
|
}>;
|
|
305
305
|
export declare const AdminUpdateShippingOptionPriceWithCurrency: z.ZodObject<{
|
|
@@ -312,12 +312,12 @@ export declare const AdminUpdateShippingOptionPriceWithCurrency: z.ZodObject<{
|
|
|
312
312
|
value: z.ZodNumber;
|
|
313
313
|
}, "strip", z.ZodTypeAny, {
|
|
314
314
|
value: number;
|
|
315
|
-
attribute: "item_total";
|
|
316
315
|
operator: PricingRuleOperator;
|
|
316
|
+
attribute: "item_total";
|
|
317
317
|
}, {
|
|
318
318
|
value: number;
|
|
319
|
-
attribute: "item_total";
|
|
320
319
|
operator: PricingRuleOperator;
|
|
320
|
+
attribute: "item_total";
|
|
321
321
|
}>, "many">>;
|
|
322
322
|
}, "strict", z.ZodTypeAny, {
|
|
323
323
|
id?: string | undefined;
|
|
@@ -325,8 +325,8 @@ export declare const AdminUpdateShippingOptionPriceWithCurrency: z.ZodObject<{
|
|
|
325
325
|
amount?: number | undefined;
|
|
326
326
|
rules?: {
|
|
327
327
|
value: number;
|
|
328
|
-
attribute: "item_total";
|
|
329
328
|
operator: PricingRuleOperator;
|
|
329
|
+
attribute: "item_total";
|
|
330
330
|
}[] | undefined;
|
|
331
331
|
}, {
|
|
332
332
|
id?: string | undefined;
|
|
@@ -334,8 +334,8 @@ export declare const AdminUpdateShippingOptionPriceWithCurrency: z.ZodObject<{
|
|
|
334
334
|
amount?: number | undefined;
|
|
335
335
|
rules?: {
|
|
336
336
|
value: number;
|
|
337
|
-
attribute: "item_total";
|
|
338
337
|
operator: PricingRuleOperator;
|
|
338
|
+
attribute: "item_total";
|
|
339
339
|
}[] | undefined;
|
|
340
340
|
}>;
|
|
341
341
|
export declare const AdminUpdateShippingOptionPriceWithRegion: z.ZodObject<{
|
|
@@ -348,12 +348,12 @@ export declare const AdminUpdateShippingOptionPriceWithRegion: z.ZodObject<{
|
|
|
348
348
|
value: z.ZodNumber;
|
|
349
349
|
}, "strip", z.ZodTypeAny, {
|
|
350
350
|
value: number;
|
|
351
|
-
attribute: "item_total";
|
|
352
351
|
operator: PricingRuleOperator;
|
|
352
|
+
attribute: "item_total";
|
|
353
353
|
}, {
|
|
354
354
|
value: number;
|
|
355
|
-
attribute: "item_total";
|
|
356
355
|
operator: PricingRuleOperator;
|
|
356
|
+
attribute: "item_total";
|
|
357
357
|
}>, "many">>;
|
|
358
358
|
}, "strict", z.ZodTypeAny, {
|
|
359
359
|
id?: string | undefined;
|
|
@@ -361,8 +361,8 @@ export declare const AdminUpdateShippingOptionPriceWithRegion: z.ZodObject<{
|
|
|
361
361
|
amount?: number | undefined;
|
|
362
362
|
rules?: {
|
|
363
363
|
value: number;
|
|
364
|
-
attribute: "item_total";
|
|
365
364
|
operator: PricingRuleOperator;
|
|
365
|
+
attribute: "item_total";
|
|
366
366
|
}[] | undefined;
|
|
367
367
|
}, {
|
|
368
368
|
id?: string | undefined;
|
|
@@ -370,8 +370,8 @@ export declare const AdminUpdateShippingOptionPriceWithRegion: z.ZodObject<{
|
|
|
370
370
|
amount?: number | undefined;
|
|
371
371
|
rules?: {
|
|
372
372
|
value: number;
|
|
373
|
-
attribute: "item_total";
|
|
374
373
|
operator: PricingRuleOperator;
|
|
374
|
+
attribute: "item_total";
|
|
375
375
|
}[] | undefined;
|
|
376
376
|
}>;
|
|
377
377
|
export type AdminCreateShippingOptionType = z.infer<typeof AdminCreateShippingOption>;
|
|
@@ -387,13 +387,13 @@ export declare const AdminCreateShippingOption: z.ZodObject<{
|
|
|
387
387
|
description: z.ZodString;
|
|
388
388
|
code: z.ZodString;
|
|
389
389
|
}, "strict", z.ZodTypeAny, {
|
|
390
|
+
label: string;
|
|
390
391
|
description: string;
|
|
391
392
|
code: string;
|
|
392
|
-
label: string;
|
|
393
393
|
}, {
|
|
394
|
+
label: string;
|
|
394
395
|
description: string;
|
|
395
396
|
code: string;
|
|
396
|
-
label: string;
|
|
397
397
|
}>;
|
|
398
398
|
prices: z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
399
399
|
currency_code: z.ZodString;
|
|
@@ -404,28 +404,28 @@ export declare const AdminCreateShippingOption: z.ZodObject<{
|
|
|
404
404
|
value: z.ZodNumber;
|
|
405
405
|
}, "strip", z.ZodTypeAny, {
|
|
406
406
|
value: number;
|
|
407
|
-
attribute: "item_total";
|
|
408
407
|
operator: PricingRuleOperator;
|
|
408
|
+
attribute: "item_total";
|
|
409
409
|
}, {
|
|
410
410
|
value: number;
|
|
411
|
-
attribute: "item_total";
|
|
412
411
|
operator: PricingRuleOperator;
|
|
412
|
+
attribute: "item_total";
|
|
413
413
|
}>, "many">>;
|
|
414
414
|
}, "strict", z.ZodTypeAny, {
|
|
415
415
|
amount: number;
|
|
416
416
|
currency_code: string;
|
|
417
417
|
rules?: {
|
|
418
418
|
value: number;
|
|
419
|
-
attribute: "item_total";
|
|
420
419
|
operator: PricingRuleOperator;
|
|
420
|
+
attribute: "item_total";
|
|
421
421
|
}[] | undefined;
|
|
422
422
|
}, {
|
|
423
423
|
amount: number;
|
|
424
424
|
currency_code: string;
|
|
425
425
|
rules?: {
|
|
426
426
|
value: number;
|
|
427
|
-
attribute: "item_total";
|
|
428
427
|
operator: PricingRuleOperator;
|
|
428
|
+
attribute: "item_total";
|
|
429
429
|
}[] | undefined;
|
|
430
430
|
}>, z.ZodObject<{
|
|
431
431
|
region_id: z.ZodString;
|
|
@@ -436,28 +436,28 @@ export declare const AdminCreateShippingOption: z.ZodObject<{
|
|
|
436
436
|
value: z.ZodNumber;
|
|
437
437
|
}, "strip", z.ZodTypeAny, {
|
|
438
438
|
value: number;
|
|
439
|
-
attribute: "item_total";
|
|
440
439
|
operator: PricingRuleOperator;
|
|
440
|
+
attribute: "item_total";
|
|
441
441
|
}, {
|
|
442
442
|
value: number;
|
|
443
|
-
attribute: "item_total";
|
|
444
443
|
operator: PricingRuleOperator;
|
|
444
|
+
attribute: "item_total";
|
|
445
445
|
}>, "many">>;
|
|
446
446
|
}, "strict", z.ZodTypeAny, {
|
|
447
447
|
amount: number;
|
|
448
448
|
region_id: string;
|
|
449
449
|
rules?: {
|
|
450
450
|
value: number;
|
|
451
|
-
attribute: "item_total";
|
|
452
451
|
operator: PricingRuleOperator;
|
|
452
|
+
attribute: "item_total";
|
|
453
453
|
}[] | undefined;
|
|
454
454
|
}, {
|
|
455
455
|
amount: number;
|
|
456
456
|
region_id: string;
|
|
457
457
|
rules?: {
|
|
458
458
|
value: number;
|
|
459
|
-
attribute: "item_total";
|
|
460
459
|
operator: PricingRuleOperator;
|
|
460
|
+
attribute: "item_total";
|
|
461
461
|
}[] | undefined;
|
|
462
462
|
}>]>, "many">;
|
|
463
463
|
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
@@ -466,80 +466,80 @@ export declare const AdminCreateShippingOption: z.ZodObject<{
|
|
|
466
466
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
467
467
|
}, "strict", z.ZodTypeAny, {
|
|
468
468
|
value: (string | string[]) & (string | string[] | undefined);
|
|
469
|
-
attribute: string;
|
|
470
469
|
operator: RuleOperator;
|
|
470
|
+
attribute: string;
|
|
471
471
|
}, {
|
|
472
472
|
value: (string | string[]) & (string | string[] | undefined);
|
|
473
|
-
attribute: string;
|
|
474
473
|
operator: RuleOperator;
|
|
474
|
+
attribute: string;
|
|
475
475
|
}>, "many">>;
|
|
476
476
|
}, "strict", z.ZodTypeAny, {
|
|
477
477
|
type: {
|
|
478
|
+
label: string;
|
|
478
479
|
description: string;
|
|
479
480
|
code: string;
|
|
480
|
-
label: string;
|
|
481
481
|
};
|
|
482
|
+
name: string;
|
|
482
483
|
provider_id: string;
|
|
483
484
|
prices: ({
|
|
484
485
|
amount: number;
|
|
485
486
|
currency_code: string;
|
|
486
487
|
rules?: {
|
|
487
488
|
value: number;
|
|
488
|
-
attribute: "item_total";
|
|
489
489
|
operator: PricingRuleOperator;
|
|
490
|
+
attribute: "item_total";
|
|
490
491
|
}[] | undefined;
|
|
491
492
|
} | {
|
|
492
493
|
amount: number;
|
|
493
494
|
region_id: string;
|
|
494
495
|
rules?: {
|
|
495
496
|
value: number;
|
|
496
|
-
attribute: "item_total";
|
|
497
497
|
operator: PricingRuleOperator;
|
|
498
|
+
attribute: "item_total";
|
|
498
499
|
}[] | undefined;
|
|
499
500
|
})[];
|
|
500
|
-
name: string;
|
|
501
501
|
service_zone_id: string;
|
|
502
502
|
shipping_profile_id: string;
|
|
503
503
|
price_type: ShippingOptionPriceTypeEnum;
|
|
504
504
|
data?: Record<string, unknown> | undefined;
|
|
505
505
|
rules?: {
|
|
506
506
|
value: (string | string[]) & (string | string[] | undefined);
|
|
507
|
-
attribute: string;
|
|
508
507
|
operator: RuleOperator;
|
|
508
|
+
attribute: string;
|
|
509
509
|
}[] | undefined;
|
|
510
510
|
}, {
|
|
511
511
|
type: {
|
|
512
|
+
label: string;
|
|
512
513
|
description: string;
|
|
513
514
|
code: string;
|
|
514
|
-
label: string;
|
|
515
515
|
};
|
|
516
|
+
name: string;
|
|
516
517
|
provider_id: string;
|
|
517
518
|
prices: ({
|
|
518
519
|
amount: number;
|
|
519
520
|
currency_code: string;
|
|
520
521
|
rules?: {
|
|
521
522
|
value: number;
|
|
522
|
-
attribute: "item_total";
|
|
523
523
|
operator: PricingRuleOperator;
|
|
524
|
+
attribute: "item_total";
|
|
524
525
|
}[] | undefined;
|
|
525
526
|
} | {
|
|
526
527
|
amount: number;
|
|
527
528
|
region_id: string;
|
|
528
529
|
rules?: {
|
|
529
530
|
value: number;
|
|
530
|
-
attribute: "item_total";
|
|
531
531
|
operator: PricingRuleOperator;
|
|
532
|
+
attribute: "item_total";
|
|
532
533
|
}[] | undefined;
|
|
533
534
|
})[];
|
|
534
|
-
name: string;
|
|
535
535
|
service_zone_id: string;
|
|
536
536
|
shipping_profile_id: string;
|
|
537
537
|
price_type: ShippingOptionPriceTypeEnum;
|
|
538
538
|
data?: Record<string, unknown> | undefined;
|
|
539
539
|
rules?: {
|
|
540
540
|
value: (string | string[]) & (string | string[] | undefined);
|
|
541
|
-
attribute: string;
|
|
542
541
|
operator: RuleOperator;
|
|
542
|
+
attribute: string;
|
|
543
543
|
}[] | undefined;
|
|
544
544
|
}>;
|
|
545
545
|
export type AdminUpdateShippingOptionType = z.infer<typeof AdminUpdateShippingOption>;
|
|
@@ -554,13 +554,13 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
554
554
|
description: z.ZodString;
|
|
555
555
|
code: z.ZodString;
|
|
556
556
|
}, "strict", z.ZodTypeAny, {
|
|
557
|
+
label: string;
|
|
557
558
|
description: string;
|
|
558
559
|
code: string;
|
|
559
|
-
label: string;
|
|
560
560
|
}, {
|
|
561
|
+
label: string;
|
|
561
562
|
description: string;
|
|
562
563
|
code: string;
|
|
563
|
-
label: string;
|
|
564
564
|
}>>;
|
|
565
565
|
prices: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
566
566
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -572,12 +572,12 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
572
572
|
value: z.ZodNumber;
|
|
573
573
|
}, "strip", z.ZodTypeAny, {
|
|
574
574
|
value: number;
|
|
575
|
-
attribute: "item_total";
|
|
576
575
|
operator: PricingRuleOperator;
|
|
576
|
+
attribute: "item_total";
|
|
577
577
|
}, {
|
|
578
578
|
value: number;
|
|
579
|
-
attribute: "item_total";
|
|
580
579
|
operator: PricingRuleOperator;
|
|
580
|
+
attribute: "item_total";
|
|
581
581
|
}>, "many">>;
|
|
582
582
|
}, "strict", z.ZodTypeAny, {
|
|
583
583
|
id?: string | undefined;
|
|
@@ -585,8 +585,8 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
585
585
|
amount?: number | undefined;
|
|
586
586
|
rules?: {
|
|
587
587
|
value: number;
|
|
588
|
-
attribute: "item_total";
|
|
589
588
|
operator: PricingRuleOperator;
|
|
589
|
+
attribute: "item_total";
|
|
590
590
|
}[] | undefined;
|
|
591
591
|
}, {
|
|
592
592
|
id?: string | undefined;
|
|
@@ -594,8 +594,8 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
594
594
|
amount?: number | undefined;
|
|
595
595
|
rules?: {
|
|
596
596
|
value: number;
|
|
597
|
-
attribute: "item_total";
|
|
598
597
|
operator: PricingRuleOperator;
|
|
598
|
+
attribute: "item_total";
|
|
599
599
|
}[] | undefined;
|
|
600
600
|
}>, z.ZodObject<{
|
|
601
601
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -607,12 +607,12 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
607
607
|
value: z.ZodNumber;
|
|
608
608
|
}, "strip", z.ZodTypeAny, {
|
|
609
609
|
value: number;
|
|
610
|
-
attribute: "item_total";
|
|
611
610
|
operator: PricingRuleOperator;
|
|
611
|
+
attribute: "item_total";
|
|
612
612
|
}, {
|
|
613
613
|
value: number;
|
|
614
|
-
attribute: "item_total";
|
|
615
614
|
operator: PricingRuleOperator;
|
|
615
|
+
attribute: "item_total";
|
|
616
616
|
}>, "many">>;
|
|
617
617
|
}, "strict", z.ZodTypeAny, {
|
|
618
618
|
id?: string | undefined;
|
|
@@ -620,8 +620,8 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
620
620
|
amount?: number | undefined;
|
|
621
621
|
rules?: {
|
|
622
622
|
value: number;
|
|
623
|
-
attribute: "item_total";
|
|
624
623
|
operator: PricingRuleOperator;
|
|
624
|
+
attribute: "item_total";
|
|
625
625
|
}[] | undefined;
|
|
626
626
|
}, {
|
|
627
627
|
id?: string | undefined;
|
|
@@ -629,8 +629,8 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
629
629
|
amount?: number | undefined;
|
|
630
630
|
rules?: {
|
|
631
631
|
value: number;
|
|
632
|
-
attribute: "item_total";
|
|
633
632
|
operator: PricingRuleOperator;
|
|
633
|
+
attribute: "item_total";
|
|
634
634
|
}[] | undefined;
|
|
635
635
|
}>]>, "many">>;
|
|
636
636
|
rules: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
|
|
@@ -639,27 +639,27 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
639
639
|
attribute: z.ZodString;
|
|
640
640
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
641
641
|
}, "strict", z.ZodTypeAny, {
|
|
642
|
-
id: string;
|
|
643
642
|
value: (string | string[]) & (string | string[] | undefined);
|
|
644
|
-
|
|
643
|
+
id: string;
|
|
645
644
|
operator: RuleOperator;
|
|
645
|
+
attribute: string;
|
|
646
646
|
}, {
|
|
647
|
-
id: string;
|
|
648
647
|
value: (string | string[]) & (string | string[] | undefined);
|
|
649
|
-
|
|
648
|
+
id: string;
|
|
650
649
|
operator: RuleOperator;
|
|
650
|
+
attribute: string;
|
|
651
651
|
}>, z.ZodObject<{
|
|
652
652
|
operator: z.ZodNativeEnum<typeof RuleOperator>;
|
|
653
653
|
attribute: z.ZodString;
|
|
654
654
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
655
655
|
}, "strict", z.ZodTypeAny, {
|
|
656
656
|
value: (string | string[]) & (string | string[] | undefined);
|
|
657
|
-
attribute: string;
|
|
658
657
|
operator: RuleOperator;
|
|
658
|
+
attribute: string;
|
|
659
659
|
}, {
|
|
660
660
|
value: (string | string[]) & (string | string[] | undefined);
|
|
661
|
-
attribute: string;
|
|
662
661
|
operator: RuleOperator;
|
|
662
|
+
attribute: string;
|
|
663
663
|
}>]>, "many">>;
|
|
664
664
|
}, "strict", z.ZodTypeAny, {
|
|
665
665
|
name?: string | undefined;
|
|
@@ -668,9 +668,9 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
668
668
|
provider_id?: string | undefined;
|
|
669
669
|
shipping_profile_id?: string | undefined;
|
|
670
670
|
type?: {
|
|
671
|
+
label: string;
|
|
671
672
|
description: string;
|
|
672
673
|
code: string;
|
|
673
|
-
label: string;
|
|
674
674
|
} | undefined;
|
|
675
675
|
prices?: ({
|
|
676
676
|
id?: string | undefined;
|
|
@@ -678,8 +678,8 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
678
678
|
amount?: number | undefined;
|
|
679
679
|
rules?: {
|
|
680
680
|
value: number;
|
|
681
|
-
attribute: "item_total";
|
|
682
681
|
operator: PricingRuleOperator;
|
|
682
|
+
attribute: "item_total";
|
|
683
683
|
}[] | undefined;
|
|
684
684
|
} | {
|
|
685
685
|
id?: string | undefined;
|
|
@@ -687,19 +687,19 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
687
687
|
amount?: number | undefined;
|
|
688
688
|
rules?: {
|
|
689
689
|
value: number;
|
|
690
|
-
attribute: "item_total";
|
|
691
690
|
operator: PricingRuleOperator;
|
|
691
|
+
attribute: "item_total";
|
|
692
692
|
}[] | undefined;
|
|
693
693
|
})[] | undefined;
|
|
694
694
|
rules?: ({
|
|
695
695
|
value: (string | string[]) & (string | string[] | undefined);
|
|
696
|
-
attribute: string;
|
|
697
696
|
operator: RuleOperator;
|
|
697
|
+
attribute: string;
|
|
698
698
|
} | {
|
|
699
|
-
id: string;
|
|
700
699
|
value: (string | string[]) & (string | string[] | undefined);
|
|
701
|
-
|
|
700
|
+
id: string;
|
|
702
701
|
operator: RuleOperator;
|
|
702
|
+
attribute: string;
|
|
703
703
|
})[] | undefined;
|
|
704
704
|
}, {
|
|
705
705
|
name?: string | undefined;
|
|
@@ -708,9 +708,9 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
708
708
|
provider_id?: string | undefined;
|
|
709
709
|
shipping_profile_id?: string | undefined;
|
|
710
710
|
type?: {
|
|
711
|
+
label: string;
|
|
711
712
|
description: string;
|
|
712
713
|
code: string;
|
|
713
|
-
label: string;
|
|
714
714
|
} | undefined;
|
|
715
715
|
prices?: ({
|
|
716
716
|
id?: string | undefined;
|
|
@@ -718,8 +718,8 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
718
718
|
amount?: number | undefined;
|
|
719
719
|
rules?: {
|
|
720
720
|
value: number;
|
|
721
|
-
attribute: "item_total";
|
|
722
721
|
operator: PricingRuleOperator;
|
|
722
|
+
attribute: "item_total";
|
|
723
723
|
}[] | undefined;
|
|
724
724
|
} | {
|
|
725
725
|
id?: string | undefined;
|
|
@@ -727,19 +727,19 @@ export declare const AdminUpdateShippingOption: z.ZodObject<{
|
|
|
727
727
|
amount?: number | undefined;
|
|
728
728
|
rules?: {
|
|
729
729
|
value: number;
|
|
730
|
-
attribute: "item_total";
|
|
731
730
|
operator: PricingRuleOperator;
|
|
731
|
+
attribute: "item_total";
|
|
732
732
|
}[] | undefined;
|
|
733
733
|
})[] | undefined;
|
|
734
734
|
rules?: ({
|
|
735
735
|
value: (string | string[]) & (string | string[] | undefined);
|
|
736
|
-
attribute: string;
|
|
737
736
|
operator: RuleOperator;
|
|
737
|
+
attribute: string;
|
|
738
738
|
} | {
|
|
739
|
-
id: string;
|
|
740
739
|
value: (string | string[]) & (string | string[] | undefined);
|
|
741
|
-
|
|
740
|
+
id: string;
|
|
742
741
|
operator: RuleOperator;
|
|
742
|
+
attribute: string;
|
|
743
743
|
})[] | undefined;
|
|
744
744
|
}>;
|
|
745
745
|
//# sourceMappingURL=validators.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@8medusa/medusa",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.12.0",
|
|
4
4
|
"description": "Building blocks for digital commerce",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"@8medusa/cache-inmemory": "2.7.0",
|
|
75
75
|
"@8medusa/cache-redis": "2.7.0",
|
|
76
76
|
"@8medusa/cart": "2.7.0",
|
|
77
|
-
"@8medusa/core-flows": "2.
|
|
77
|
+
"@8medusa/core-flows": "2.12.0",
|
|
78
78
|
"@8medusa/currency": "2.7.0",
|
|
79
79
|
"@8medusa/customer": "2.7.0",
|
|
80
80
|
"@8medusa/event-bus-local": "2.7.0",
|
|
@@ -98,7 +98,7 @@
|
|
|
98
98
|
"@8medusa/payment-stripe": "2.7.0",
|
|
99
99
|
"@8medusa/pricing": "2.7.0",
|
|
100
100
|
"@8medusa/product": "2.7.0",
|
|
101
|
-
"@8medusa/promotion": "2.
|
|
101
|
+
"@8medusa/promotion": "2.12.0",
|
|
102
102
|
"@8medusa/region": "2.7.0",
|
|
103
103
|
"@8medusa/sales-channel": "2.7.0",
|
|
104
104
|
"@8medusa/stock-location": "2.7.0",
|