@mercurjs/core 2.3.5 → 2.3.6-canary.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/collections/validators.d.ts +12 -185
- package/.medusa/server/src/api/admin/collections/validators.js +3 -3
- package/.medusa/server/src/api/admin/commission-rates/validators.d.ts +21 -226
- package/.medusa/server/src/api/admin/customer-groups/validators.d.ts +6 -26
- package/.medusa/server/src/api/admin/members/validators.d.ts +1 -18
- package/.medusa/server/src/api/admin/offers/validators.d.ts +22 -261
- package/.medusa/server/src/api/admin/order-groups/validators.d.ts +9 -94
- package/.medusa/server/src/api/admin/orders/validators.d.ts +162 -1
- package/.medusa/server/src/api/admin/payouts/validators.d.ts +7 -86
- package/.medusa/server/src/api/admin/product-attributes/validators.d.ts +45 -398
- package/.medusa/server/src/api/admin/product-attributes/validators.js +8 -8
- package/.medusa/server/src/api/admin/product-categories/middlewares.js +4 -2
- package/.medusa/server/src/api/admin/product-categories/validators.d.ts +41 -376
- package/.medusa/server/src/api/admin/product-categories/validators.js +3 -3
- package/.medusa/server/src/api/admin/product-changes/validators.d.ts +2 -10
- package/.medusa/server/src/api/admin/products/middlewares.js +4 -2
- package/.medusa/server/src/api/admin/products/validators.d.ts +128 -1702
- package/.medusa/server/src/api/admin/products/validators.js +9 -9
- package/.medusa/server/src/api/admin/promotions/[id]/cost/validators.d.ts +6 -8
- package/.medusa/server/src/api/admin/reservations/validators.d.ts +2 -39
- package/.medusa/server/src/api/admin/reviews/validators.d.ts +24 -46
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +32 -358
- package/.medusa/server/src/api/admin/sellers/validators.js +4 -4
- package/.medusa/server/src/api/store/carts/[id]/complete/validators.d.ts +1 -5
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.d.ts +1 -11
- package/.medusa/server/src/api/store/carts/[id]/line-items/validators.js +3 -3
- package/.medusa/server/src/api/store/offers/validators.d.ts +9 -112
- package/.medusa/server/src/api/store/order-groups/validators.d.ts +5 -80
- package/.medusa/server/src/api/store/product-attributes/validators.d.ts +19 -175
- package/.medusa/server/src/api/store/product-categories/validators.d.ts +21 -184
- package/.medusa/server/src/api/store/products/validators.d.ts +25 -210
- package/.medusa/server/src/api/store/reviews/validators.d.ts +7 -34
- package/.medusa/server/src/api/store/sellers/validators.d.ts +7 -92
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +28 -165
- package/.medusa/server/src/api/vendor/campaigns/validators.js +4 -4
- package/.medusa/server/src/api/vendor/claims/validators.d.ts +23 -276
- package/.medusa/server/src/api/vendor/collections/validators.d.ts +8 -117
- package/.medusa/server/src/api/vendor/currencies/validators.d.ts +5 -32
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +11 -108
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +3 -3
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +11 -102
- package/.medusa/server/src/api/vendor/exchanges/validators.d.ts +17 -228
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +4 -27
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +18 -290
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.js +3 -3
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +48 -560
- package/.medusa/server/src/api/vendor/inventory-items/validators.js +3 -3
- package/.medusa/server/src/api/vendor/members/validators.d.ts +2 -18
- package/.medusa/server/src/api/vendor/offers/validators.d.ts +34 -497
- package/.medusa/server/src/api/vendor/order-edits/validators.d.ts +8 -118
- package/.medusa/server/src/api/vendor/order-edits/validators.js +6 -6
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +17 -170
- package/.medusa/server/src/api/vendor/payments/validators.d.ts +11 -121
- package/.medusa/server/src/api/vendor/payout-accounts/validators.d.ts +4 -32
- package/.medusa/server/src/api/vendor/payout-accounts/validators.js +5 -5
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +5 -80
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +21 -262
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +5 -30
- package/.medusa/server/src/api/vendor/product-attributes/validators.d.ts +33 -273
- package/.medusa/server/src/api/vendor/product-attributes/validators.js +5 -5
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +34 -275
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +12 -48
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +4 -27
- package/.medusa/server/src/api/vendor/product-variants/middlewares.js +7 -2
- package/.medusa/server/src/api/vendor/product-variants/validators.d.ts +38 -364
- package/.medusa/server/src/api/vendor/products/middlewares.js +5 -2
- package/.medusa/server/src/api/vendor/products/validators.d.ts +102 -1012
- package/.medusa/server/src/api/vendor/products/validators.js +13 -13
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +104 -1109
- package/.medusa/server/src/api/vendor/promotions/validators.js +3 -3
- package/.medusa/server/src/api/vendor/refund-reasons/validators.d.ts +5 -82
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +7 -88
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +14 -207
- package/.medusa/server/src/api/vendor/return-reasons/validators.d.ts +9 -94
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +26 -306
- package/.medusa/server/src/api/vendor/returns/validators.js +8 -8
- package/.medusa/server/src/api/vendor/reviews/validators.d.ts +19 -36
- package/.medusa/server/src/api/vendor/sales-channels/validators.d.ts +5 -32
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +17 -249
- package/.medusa/server/src/api/vendor/sellers/validators.js +4 -4
- package/.medusa/server/src/api/vendor/shipping-option-types/validators.d.ts +8 -91
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +59 -730
- package/.medusa/server/src/api/vendor/shipping-options/validators.js +5 -5
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -86
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +14 -209
- package/.medusa/server/src/api/vendor/stock-locations/validators.js +3 -3
- package/.medusa/server/src/api/vendor/stores/validators.d.ts +4 -27
- package/.medusa/server/src/patches/manifest.js +2 -2
- package/.medusa/server/src/utils/disable-medusa-middlewares.d.ts +2 -0
- package/.medusa/server/src/utils/disable-medusa-middlewares.js +35 -10
- package/.medusa/server/src/workflows/offer/workflows/index.d.ts +1 -0
- package/.medusa/server/src/workflows/offer/workflows/index.js +2 -1
- package/.medusa/server/src/workflows/offer/workflows/update-offers.js +9 -138
- package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.d.ts +14 -0
- package/.medusa/server/src/workflows/offer/workflows/upsert-offer-prices.js +130 -0
- package/package.json +17 -17
|
@@ -10,14 +10,14 @@ exports.VendorGetPayoutAccountsParams = (0, validators_1.createFindParams)({
|
|
|
10
10
|
});
|
|
11
11
|
exports.VendorCreatePayoutAccount = zod_1.z
|
|
12
12
|
.object({
|
|
13
|
-
data: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
14
|
-
context: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
13
|
+
data: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
14
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
15
15
|
})
|
|
16
16
|
.strict();
|
|
17
17
|
exports.VendorCreateOnboarding = zod_1.z
|
|
18
18
|
.object({
|
|
19
|
-
data: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
20
|
-
context: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
19
|
+
data: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
20
|
+
context: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()).optional(),
|
|
21
21
|
})
|
|
22
22
|
.strict();
|
|
23
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
23
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL3BheW91dC1hY2NvdW50cy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLDZCQUF1QjtBQUN2QixzRUFHOEM7QUFHakMsUUFBQSw0QkFBNEIsR0FBRyxJQUFBLCtCQUFrQixHQUFFLENBQUE7QUFHbkQsUUFBQSw2QkFBNkIsR0FBRyxJQUFBLDZCQUFnQixFQUFDO0lBQzVELEtBQUssRUFBRSxFQUFFO0lBQ1QsTUFBTSxFQUFFLENBQUM7Q0FDVixDQUFDLENBQUE7QUFHVyxRQUFBLHlCQUF5QixHQUFHLE9BQUM7S0FDdkMsTUFBTSxDQUFDO0lBQ04sSUFBSSxFQUFFLE9BQUMsQ0FBQyxNQUFNLENBQUMsT0FBQyxDQUFDLE1BQU0sRUFBRSxFQUFFLE9BQUMsQ0FBQyxPQUFPLEVBQUUsQ0FBQyxDQUFDLFFBQVEsRUFBRTtJQUNsRCxPQUFPLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsUUFBUSxFQUFFO0NBQ3RELENBQUM7S0FDRCxNQUFNLEVBQUUsQ0FBQTtBQUdFLFFBQUEsc0JBQXNCLEdBQUcsT0FBQztLQUNwQyxNQUFNLENBQUM7SUFDTixJQUFJLEVBQUUsT0FBQyxDQUFDLE1BQU0sQ0FBQyxPQUFDLENBQUMsTUFBTSxFQUFFLEVBQUUsT0FBQyxDQUFDLE9BQU8sRUFBRSxDQUFDLENBQUMsUUFBUSxFQUFFO0lBQ2xELE9BQU8sRUFBRSxPQUFDLENBQUMsTUFBTSxDQUFDLE9BQUMsQ0FBQyxNQUFNLEVBQUUsRUFBRSxPQUFDLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQyxRQUFRLEVBQUU7Q0FDdEQsQ0FBQztLQUNELE1BQU0sRUFBRSxDQUFBIn0=
|
|
@@ -2,11 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export type VendorGetPayoutParamsType = z.infer<typeof VendorGetPayoutParams>;
|
|
3
3
|
export declare const VendorGetPayoutParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
-
}, z.core.$strip
|
|
6
|
-
fields?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
fields?: string | undefined;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
export type VendorGetPayoutsParamsType = z.infer<typeof VendorGetPayoutsParams>;
|
|
11
7
|
export declare const VendorGetPayoutsParams: z.ZodObject<{
|
|
12
8
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -14,8 +10,7 @@ export declare const VendorGetPayoutsParams: z.ZodObject<{
|
|
|
14
10
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
15
11
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16
12
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
17
|
-
|
|
18
|
-
status: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
13
|
+
status: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
19
14
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
20
15
|
$eq: any;
|
|
21
16
|
$ne: any;
|
|
@@ -29,33 +24,7 @@ export declare const VendorGetPayoutsParams: z.ZodObject<{
|
|
|
29
24
|
$gte: any;
|
|
30
25
|
$lt: any;
|
|
31
26
|
$lte: any;
|
|
32
|
-
}, z.core.$strip
|
|
33
|
-
$nin?: any;
|
|
34
|
-
$eq?: any;
|
|
35
|
-
$ne?: any;
|
|
36
|
-
$in?: any;
|
|
37
|
-
$like?: any;
|
|
38
|
-
$ilike?: any;
|
|
39
|
-
$re?: any;
|
|
40
|
-
$contains?: any;
|
|
41
|
-
$gt?: any;
|
|
42
|
-
$gte?: any;
|
|
43
|
-
$lt?: any;
|
|
44
|
-
$lte?: any;
|
|
45
|
-
}, {
|
|
46
|
-
$nin?: any;
|
|
47
|
-
$eq?: any;
|
|
48
|
-
$ne?: any;
|
|
49
|
-
$in?: any;
|
|
50
|
-
$like?: any;
|
|
51
|
-
$ilike?: any;
|
|
52
|
-
$re?: any;
|
|
53
|
-
$contains?: any;
|
|
54
|
-
$gt?: any;
|
|
55
|
-
$gte?: any;
|
|
56
|
-
$lt?: any;
|
|
57
|
-
$lte?: any;
|
|
58
|
-
}>]>>;
|
|
27
|
+
}, z.core.$strip>]>>;
|
|
59
28
|
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
60
29
|
$eq: any;
|
|
61
30
|
$ne: any;
|
|
@@ -69,49 +38,5 @@ export declare const VendorGetPayoutsParams: z.ZodObject<{
|
|
|
69
38
|
$gte: any;
|
|
70
39
|
$lt: any;
|
|
71
40
|
$lte: any;
|
|
72
|
-
}, z.core.$strip
|
|
73
|
-
|
|
74
|
-
$eq?: any;
|
|
75
|
-
$ne?: any;
|
|
76
|
-
$in?: any;
|
|
77
|
-
$like?: any;
|
|
78
|
-
$ilike?: any;
|
|
79
|
-
$re?: any;
|
|
80
|
-
$contains?: any;
|
|
81
|
-
$gt?: any;
|
|
82
|
-
$gte?: any;
|
|
83
|
-
$lt?: any;
|
|
84
|
-
$lte?: any;
|
|
85
|
-
}, {
|
|
86
|
-
$nin?: any;
|
|
87
|
-
$eq?: any;
|
|
88
|
-
$ne?: any;
|
|
89
|
-
$in?: any;
|
|
90
|
-
$like?: any;
|
|
91
|
-
$ilike?: any;
|
|
92
|
-
$re?: any;
|
|
93
|
-
$contains?: any;
|
|
94
|
-
$gt?: any;
|
|
95
|
-
$gte?: any;
|
|
96
|
-
$lt?: any;
|
|
97
|
-
$lte?: any;
|
|
98
|
-
}>]>>;
|
|
99
|
-
}, "strip", z.ZodTypeAny, {
|
|
100
|
-
order?: string | undefined;
|
|
101
|
-
status?: string | string[] | undefined;
|
|
102
|
-
created_at?: any;
|
|
103
|
-
updated_at?: any;
|
|
104
|
-
fields?: string | undefined;
|
|
105
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
106
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
107
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
108
|
-
}, {
|
|
109
|
-
order?: string | undefined;
|
|
110
|
-
status?: string | string[] | undefined;
|
|
111
|
-
created_at?: any;
|
|
112
|
-
updated_at?: any;
|
|
113
|
-
fields?: string | undefined;
|
|
114
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
115
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
116
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
117
|
-
}>;
|
|
41
|
+
}, z.core.$strip>]>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
@@ -3,11 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
export type VendorGetPriceListParamsType = z.infer<typeof VendorGetPriceListParams>;
|
|
4
4
|
export declare const VendorGetPriceListParams: z.ZodObject<{
|
|
5
5
|
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
-
}, z.core.$strip
|
|
7
|
-
fields?: string | undefined;
|
|
8
|
-
}, {
|
|
9
|
-
fields?: string | undefined;
|
|
10
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
11
7
|
export type VendorGetPriceListsParamsType = z.infer<typeof VendorGetPriceListsParams>;
|
|
12
8
|
export declare const VendorGetPriceListsParams: z.ZodObject<{
|
|
13
9
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -15,10 +11,9 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
|
|
|
15
11
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
16
12
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
17
13
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
18
|
-
} & {
|
|
19
14
|
q: z.ZodOptional<z.ZodString>;
|
|
20
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
21
|
-
type: z.ZodOptional<z.ZodArray<z.
|
|
15
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
16
|
+
type: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof PriceListType>>>;
|
|
22
17
|
starts_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
23
18
|
$eq: any;
|
|
24
19
|
$ne: any;
|
|
@@ -32,33 +27,7 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
|
|
|
32
27
|
$gte: any;
|
|
33
28
|
$lt: any;
|
|
34
29
|
$lte: any;
|
|
35
|
-
}, z.core.$strip
|
|
36
|
-
$nin?: any;
|
|
37
|
-
$eq?: any;
|
|
38
|
-
$ne?: any;
|
|
39
|
-
$in?: any;
|
|
40
|
-
$like?: any;
|
|
41
|
-
$ilike?: any;
|
|
42
|
-
$re?: any;
|
|
43
|
-
$contains?: any;
|
|
44
|
-
$gt?: any;
|
|
45
|
-
$gte?: any;
|
|
46
|
-
$lt?: any;
|
|
47
|
-
$lte?: any;
|
|
48
|
-
}, {
|
|
49
|
-
$nin?: any;
|
|
50
|
-
$eq?: any;
|
|
51
|
-
$ne?: any;
|
|
52
|
-
$in?: any;
|
|
53
|
-
$like?: any;
|
|
54
|
-
$ilike?: any;
|
|
55
|
-
$re?: any;
|
|
56
|
-
$contains?: any;
|
|
57
|
-
$gt?: any;
|
|
58
|
-
$gte?: any;
|
|
59
|
-
$lt?: any;
|
|
60
|
-
$lte?: any;
|
|
61
|
-
}>]>>;
|
|
30
|
+
}, z.core.$strip>]>>;
|
|
62
31
|
ends_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
63
32
|
$eq: any;
|
|
64
33
|
$ne: any;
|
|
@@ -72,33 +41,7 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
|
|
|
72
41
|
$gte: any;
|
|
73
42
|
$lt: any;
|
|
74
43
|
$lte: any;
|
|
75
|
-
}, z.core.$strip
|
|
76
|
-
$nin?: any;
|
|
77
|
-
$eq?: any;
|
|
78
|
-
$ne?: any;
|
|
79
|
-
$in?: any;
|
|
80
|
-
$like?: any;
|
|
81
|
-
$ilike?: any;
|
|
82
|
-
$re?: any;
|
|
83
|
-
$contains?: any;
|
|
84
|
-
$gt?: any;
|
|
85
|
-
$gte?: any;
|
|
86
|
-
$lt?: any;
|
|
87
|
-
$lte?: any;
|
|
88
|
-
}, {
|
|
89
|
-
$nin?: any;
|
|
90
|
-
$eq?: any;
|
|
91
|
-
$ne?: any;
|
|
92
|
-
$in?: any;
|
|
93
|
-
$like?: any;
|
|
94
|
-
$ilike?: any;
|
|
95
|
-
$re?: any;
|
|
96
|
-
$contains?: any;
|
|
97
|
-
$gt?: any;
|
|
98
|
-
$gte?: any;
|
|
99
|
-
$lt?: any;
|
|
100
|
-
$lte?: any;
|
|
101
|
-
}>]>>;
|
|
44
|
+
}, z.core.$strip>]>>;
|
|
102
45
|
created_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
103
46
|
$eq: any;
|
|
104
47
|
$ne: any;
|
|
@@ -112,33 +55,7 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
|
|
|
112
55
|
$gte: any;
|
|
113
56
|
$lt: any;
|
|
114
57
|
$lte: any;
|
|
115
|
-
}, z.core.$strip
|
|
116
|
-
$nin?: any;
|
|
117
|
-
$eq?: any;
|
|
118
|
-
$ne?: any;
|
|
119
|
-
$in?: any;
|
|
120
|
-
$like?: any;
|
|
121
|
-
$ilike?: any;
|
|
122
|
-
$re?: any;
|
|
123
|
-
$contains?: any;
|
|
124
|
-
$gt?: any;
|
|
125
|
-
$gte?: any;
|
|
126
|
-
$lt?: any;
|
|
127
|
-
$lte?: any;
|
|
128
|
-
}, {
|
|
129
|
-
$nin?: any;
|
|
130
|
-
$eq?: any;
|
|
131
|
-
$ne?: any;
|
|
132
|
-
$in?: any;
|
|
133
|
-
$like?: any;
|
|
134
|
-
$ilike?: any;
|
|
135
|
-
$re?: any;
|
|
136
|
-
$contains?: any;
|
|
137
|
-
$gt?: any;
|
|
138
|
-
$gte?: any;
|
|
139
|
-
$lt?: any;
|
|
140
|
-
$lte?: any;
|
|
141
|
-
}>]>>;
|
|
58
|
+
}, z.core.$strip>]>>;
|
|
142
59
|
updated_at: z.ZodOptional<z.ZodUnion<readonly [any, z.ZodObject<{
|
|
143
60
|
$eq: any;
|
|
144
61
|
$ne: any;
|
|
@@ -152,63 +69,9 @@ export declare const VendorGetPriceListsParams: z.ZodObject<{
|
|
|
152
69
|
$gte: any;
|
|
153
70
|
$lt: any;
|
|
154
71
|
$lte: any;
|
|
155
|
-
}, z.core.$strip
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
$ne?: any;
|
|
159
|
-
$in?: any;
|
|
160
|
-
$like?: any;
|
|
161
|
-
$ilike?: any;
|
|
162
|
-
$re?: any;
|
|
163
|
-
$contains?: any;
|
|
164
|
-
$gt?: any;
|
|
165
|
-
$gte?: any;
|
|
166
|
-
$lt?: any;
|
|
167
|
-
$lte?: any;
|
|
168
|
-
}, {
|
|
169
|
-
$nin?: any;
|
|
170
|
-
$eq?: any;
|
|
171
|
-
$ne?: any;
|
|
172
|
-
$in?: any;
|
|
173
|
-
$like?: any;
|
|
174
|
-
$ilike?: any;
|
|
175
|
-
$re?: any;
|
|
176
|
-
$contains?: any;
|
|
177
|
-
$gt?: any;
|
|
178
|
-
$gte?: any;
|
|
179
|
-
$lt?: any;
|
|
180
|
-
$lte?: any;
|
|
181
|
-
}>]>>;
|
|
182
|
-
status: z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof PriceListStatus>, "many">>;
|
|
183
|
-
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
order?: string | undefined;
|
|
185
|
-
id?: string | string[] | undefined;
|
|
186
|
-
type?: PriceListType[] | undefined;
|
|
187
|
-
status?: PriceListStatus[] | undefined;
|
|
188
|
-
created_at?: any;
|
|
189
|
-
updated_at?: any;
|
|
190
|
-
q?: string | undefined;
|
|
191
|
-
fields?: string | undefined;
|
|
192
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
193
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
194
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
195
|
-
ends_at?: any;
|
|
196
|
-
starts_at?: any;
|
|
197
|
-
}, {
|
|
198
|
-
order?: string | undefined;
|
|
199
|
-
id?: string | string[] | undefined;
|
|
200
|
-
type?: PriceListType[] | undefined;
|
|
201
|
-
status?: PriceListStatus[] | undefined;
|
|
202
|
-
created_at?: any;
|
|
203
|
-
updated_at?: any;
|
|
204
|
-
q?: string | undefined;
|
|
205
|
-
fields?: string | undefined;
|
|
206
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
207
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
208
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
209
|
-
ends_at?: any;
|
|
210
|
-
starts_at?: any;
|
|
211
|
-
}>;
|
|
72
|
+
}, z.core.$strip>]>>;
|
|
73
|
+
status: z.ZodOptional<z.ZodArray<z.ZodEnum<typeof PriceListStatus>>>;
|
|
74
|
+
}, z.core.$strip>;
|
|
212
75
|
export type VendorCreatePriceListPriceType = z.infer<typeof VendorCreatePriceListPrice>;
|
|
213
76
|
export declare const VendorCreatePriceListPrice: z.ZodObject<{
|
|
214
77
|
currency_code: z.ZodString;
|
|
@@ -217,21 +80,7 @@ export declare const VendorCreatePriceListPrice: z.ZodObject<{
|
|
|
217
80
|
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
218
81
|
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
219
82
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
220
|
-
},
|
|
221
|
-
variant_id: string;
|
|
222
|
-
currency_code: string;
|
|
223
|
-
amount: number;
|
|
224
|
-
min_quantity?: number | null | undefined;
|
|
225
|
-
max_quantity?: number | null | undefined;
|
|
226
|
-
rules?: Record<string, string> | undefined;
|
|
227
|
-
}, {
|
|
228
|
-
variant_id: string;
|
|
229
|
-
currency_code: string;
|
|
230
|
-
amount: number;
|
|
231
|
-
min_quantity?: number | null | undefined;
|
|
232
|
-
max_quantity?: number | null | undefined;
|
|
233
|
-
rules?: Record<string, string> | undefined;
|
|
234
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
235
84
|
export type VendorUpdatePriceListPriceType = z.infer<typeof VendorUpdatePriceListPrice>;
|
|
236
85
|
export declare const VendorUpdatePriceListPrice: z.ZodObject<{
|
|
237
86
|
id: z.ZodString;
|
|
@@ -241,23 +90,7 @@ export declare const VendorUpdatePriceListPrice: z.ZodObject<{
|
|
|
241
90
|
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
242
91
|
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
243
92
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
244
|
-
},
|
|
245
|
-
id: string;
|
|
246
|
-
variant_id: string;
|
|
247
|
-
currency_code?: string | undefined;
|
|
248
|
-
amount?: number | undefined;
|
|
249
|
-
min_quantity?: number | null | undefined;
|
|
250
|
-
max_quantity?: number | null | undefined;
|
|
251
|
-
rules?: Record<string, string> | undefined;
|
|
252
|
-
}, {
|
|
253
|
-
id: string;
|
|
254
|
-
variant_id: string;
|
|
255
|
-
currency_code?: string | undefined;
|
|
256
|
-
amount?: number | undefined;
|
|
257
|
-
min_quantity?: number | null | undefined;
|
|
258
|
-
max_quantity?: number | null | undefined;
|
|
259
|
-
rules?: Record<string, string> | undefined;
|
|
260
|
-
}>;
|
|
93
|
+
}, z.core.$strip>;
|
|
261
94
|
export type VendorGetPriceListPricesParamsType = z.infer<typeof VendorGetPriceListPricesParams>;
|
|
262
95
|
export declare const VendorGetPriceListPricesParams: z.ZodObject<{
|
|
263
96
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -265,28 +98,16 @@ export declare const VendorGetPriceListPricesParams: z.ZodObject<{
|
|
|
265
98
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
266
99
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
267
100
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
268
|
-
}, z.core.$strip
|
|
269
|
-
order?: string | undefined;
|
|
270
|
-
fields?: string | undefined;
|
|
271
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
272
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
273
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
274
|
-
}, {
|
|
275
|
-
order?: string | undefined;
|
|
276
|
-
fields?: string | undefined;
|
|
277
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
278
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
279
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
280
|
-
}>;
|
|
101
|
+
}, z.core.$strip>;
|
|
281
102
|
export type VendorCreatePriceListType = z.infer<typeof VendorCreatePriceList>;
|
|
282
103
|
export declare const VendorCreatePriceList: z.ZodObject<{
|
|
283
104
|
title: z.ZodString;
|
|
284
105
|
description: z.ZodString;
|
|
285
106
|
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
286
107
|
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
287
|
-
status: z.ZodOptional<z.
|
|
288
|
-
type: z.ZodOptional<z.
|
|
289
|
-
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString
|
|
108
|
+
status: z.ZodOptional<z.ZodEnum<typeof PriceListStatus>>;
|
|
109
|
+
type: z.ZodOptional<z.ZodEnum<typeof PriceListType>>;
|
|
110
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
290
111
|
prices: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
291
112
|
currency_code: z.ZodString;
|
|
292
113
|
amount: z.ZodNumber;
|
|
@@ -294,77 +115,15 @@ export declare const VendorCreatePriceList: z.ZodObject<{
|
|
|
294
115
|
min_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
295
116
|
max_quantity: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
296
117
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
297
|
-
},
|
|
298
|
-
|
|
299
|
-
currency_code: string;
|
|
300
|
-
amount: number;
|
|
301
|
-
min_quantity?: number | null | undefined;
|
|
302
|
-
max_quantity?: number | null | undefined;
|
|
303
|
-
rules?: Record<string, string> | undefined;
|
|
304
|
-
}, {
|
|
305
|
-
variant_id: string;
|
|
306
|
-
currency_code: string;
|
|
307
|
-
amount: number;
|
|
308
|
-
min_quantity?: number | null | undefined;
|
|
309
|
-
max_quantity?: number | null | undefined;
|
|
310
|
-
rules?: Record<string, string> | undefined;
|
|
311
|
-
}>, "many">>;
|
|
312
|
-
}, "strip", z.ZodTypeAny, {
|
|
313
|
-
title: string;
|
|
314
|
-
description: string;
|
|
315
|
-
type?: PriceListType | undefined;
|
|
316
|
-
status?: PriceListStatus | undefined;
|
|
317
|
-
rules?: Record<string, string[]> | undefined;
|
|
318
|
-
prices?: {
|
|
319
|
-
variant_id: string;
|
|
320
|
-
currency_code: string;
|
|
321
|
-
amount: number;
|
|
322
|
-
min_quantity?: number | null | undefined;
|
|
323
|
-
max_quantity?: number | null | undefined;
|
|
324
|
-
rules?: Record<string, string> | undefined;
|
|
325
|
-
}[] | undefined;
|
|
326
|
-
ends_at?: string | null | undefined;
|
|
327
|
-
starts_at?: string | null | undefined;
|
|
328
|
-
}, {
|
|
329
|
-
title: string;
|
|
330
|
-
description: string;
|
|
331
|
-
type?: PriceListType | undefined;
|
|
332
|
-
status?: PriceListStatus | undefined;
|
|
333
|
-
rules?: Record<string, string[]> | undefined;
|
|
334
|
-
prices?: {
|
|
335
|
-
variant_id: string;
|
|
336
|
-
currency_code: string;
|
|
337
|
-
amount: number;
|
|
338
|
-
min_quantity?: number | null | undefined;
|
|
339
|
-
max_quantity?: number | null | undefined;
|
|
340
|
-
rules?: Record<string, string> | undefined;
|
|
341
|
-
}[] | undefined;
|
|
342
|
-
ends_at?: string | null | undefined;
|
|
343
|
-
starts_at?: string | null | undefined;
|
|
344
|
-
}>;
|
|
118
|
+
}, z.core.$strip>>>;
|
|
119
|
+
}, z.core.$strip>;
|
|
345
120
|
export type VendorUpdatePriceListType = z.infer<typeof VendorUpdatePriceList>;
|
|
346
121
|
export declare const VendorUpdatePriceList: z.ZodObject<{
|
|
347
122
|
title: z.ZodOptional<z.ZodString>;
|
|
348
123
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
349
124
|
starts_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
350
125
|
ends_at: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
-
status: z.ZodOptional<z.
|
|
352
|
-
type: z.ZodOptional<z.
|
|
353
|
-
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString
|
|
354
|
-
},
|
|
355
|
-
type?: PriceListType | undefined;
|
|
356
|
-
title?: string | undefined;
|
|
357
|
-
status?: PriceListStatus | undefined;
|
|
358
|
-
rules?: Record<string, string[]> | undefined;
|
|
359
|
-
description?: string | null | undefined;
|
|
360
|
-
ends_at?: string | null | undefined;
|
|
361
|
-
starts_at?: string | null | undefined;
|
|
362
|
-
}, {
|
|
363
|
-
type?: PriceListType | undefined;
|
|
364
|
-
title?: string | undefined;
|
|
365
|
-
status?: PriceListStatus | undefined;
|
|
366
|
-
rules?: Record<string, string[]> | undefined;
|
|
367
|
-
description?: string | null | undefined;
|
|
368
|
-
ends_at?: string | null | undefined;
|
|
369
|
-
starts_at?: string | null | undefined;
|
|
370
|
-
}>;
|
|
126
|
+
status: z.ZodOptional<z.ZodEnum<typeof PriceListStatus>>;
|
|
127
|
+
type: z.ZodOptional<z.ZodEnum<typeof PriceListType>>;
|
|
128
|
+
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString>>>;
|
|
129
|
+
}, z.core.$strip>;
|
|
@@ -2,11 +2,7 @@ import { z } from "zod";
|
|
|
2
2
|
export type VendorGetPricePreferenceParamsType = z.infer<typeof VendorGetPricePreferenceParams>;
|
|
3
3
|
export declare const VendorGetPricePreferenceParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
-
}, z.core.$strip
|
|
6
|
-
fields?: string | undefined;
|
|
7
|
-
}, {
|
|
8
|
-
fields?: string | undefined;
|
|
9
|
-
}>;
|
|
5
|
+
}, z.core.$strip>;
|
|
10
6
|
export type VendorGetPricePreferencesParamsType = z.infer<typeof VendorGetPricePreferencesParams>;
|
|
11
7
|
export declare const VendorGetPricePreferencesParams: z.ZodObject<{
|
|
12
8
|
fields: z.ZodOptional<z.ZodString>;
|
|
@@ -14,29 +10,8 @@ export declare const VendorGetPricePreferencesParams: z.ZodObject<{
|
|
|
14
10
|
limit: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
15
11
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
16
12
|
with_deleted: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
17
|
-
} & {
|
|
18
13
|
q: z.ZodOptional<z.ZodString>;
|
|
19
|
-
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
20
|
-
attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
21
|
-
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString
|
|
22
|
-
},
|
|
23
|
-
order?: string | undefined;
|
|
24
|
-
id?: string | string[] | undefined;
|
|
25
|
-
q?: string | undefined;
|
|
26
|
-
fields?: string | undefined;
|
|
27
|
-
value?: string | string[] | undefined;
|
|
28
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
29
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
30
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
-
attribute?: string | string[] | undefined;
|
|
32
|
-
}, {
|
|
33
|
-
order?: string | undefined;
|
|
34
|
-
id?: string | string[] | undefined;
|
|
35
|
-
q?: string | undefined;
|
|
36
|
-
fields?: string | undefined;
|
|
37
|
-
value?: string | string[] | undefined;
|
|
38
|
-
offset?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
39
|
-
limit?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodDefault<z.ZodOptional<z.ZodNumber>>>;
|
|
40
|
-
with_deleted?: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodOptional<z.ZodBoolean>>;
|
|
41
|
-
attribute?: string | string[] | undefined;
|
|
42
|
-
}>;
|
|
14
|
+
id: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
15
|
+
attribute: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
16
|
+
value: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
17
|
+
}, z.core.$strip>;
|