@mercurjs/b2c-core 1.4.2 → 1.4.4
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/admin/index.js +3 -1
- package/.medusa/server/src/admin/index.mjs +3 -1
- package/.medusa/server/src/api/admin/attributes/validators.d.ts +355 -59
- package/.medusa/server/src/api/admin/configuration/validators.d.ts +3 -2
- package/.medusa/server/src/api/admin/notifications/route.js +8 -2
- package/.medusa/server/src/api/admin/order-sets/validators.d.ts +5 -3
- package/.medusa/server/src/api/admin/products/validators.d.ts +909 -500
- package/.medusa/server/src/api/admin/sellers/validators.d.ts +20 -16
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.d.ts +3 -0
- package/.medusa/server/src/api/store/carts/[id]/promotions/route.js +34 -0
- package/.medusa/server/src/api/store/order-set/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/returns/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/seller/validators.d.ts +3 -2
- package/.medusa/server/src/api/store/shipping-options/validators.d.ts +24 -26
- package/.medusa/server/src/api/store/wishlist/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/attributes/validators.d.ts +9 -7
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.d.ts +76 -0
- package/.medusa/server/src/api/vendor/campaigns/[id]/promotions/route.js +89 -0
- package/.medusa/server/src/api/vendor/campaigns/middlewares.js +11 -2
- package/.medusa/server/src/api/vendor/campaigns/route.d.ts +6 -0
- package/.medusa/server/src/api/vendor/campaigns/route.js +10 -4
- package/.medusa/server/src/api/vendor/campaigns/validators.d.ts +20 -12
- package/.medusa/server/src/api/vendor/campaigns/validators.js +10 -4
- package/.medusa/server/src/api/vendor/customer-groups/route.d.ts +2 -2
- package/.medusa/server/src/api/vendor/customer-groups/route.js +5 -5
- package/.medusa/server/src/api/vendor/customer-groups/validators.d.ts +604 -2
- package/.medusa/server/src/api/vendor/customer-groups/validators.js +37 -2
- package/.medusa/server/src/api/vendor/customers/validators.d.ts +6 -4
- package/.medusa/server/src/api/vendor/fulfillment-providers/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/fulfillment-sets/validators.d.ts +22 -6
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.d.ts +30 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/location-levels/[location_id]/route.js +61 -2
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.d.ts +23 -0
- package/.medusa/server/src/api/vendor/inventory-items/[id]/route.js +48 -2
- package/.medusa/server/src/api/vendor/inventory-items/middlewares.js +20 -2
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +39 -41
- package/.medusa/server/src/api/vendor/inventory-items/validators.js +1 -1
- package/.medusa/server/src/api/vendor/invites/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/members/validators.d.ts +7 -6
- package/.medusa/server/src/api/vendor/notifications/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/orders/validators.d.ts +13 -11
- package/.medusa/server/src/api/vendor/orders/validators.js +3 -2
- package/.medusa/server/src/api/vendor/payouts/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/price-lists/validators.d.ts +18 -16
- package/.medusa/server/src/api/vendor/price-preferences/validators.d.ts +37 -29
- package/.medusa/server/src/api/vendor/product-categories/validators.d.ts +317 -26
- package/.medusa/server/src/api/vendor/product-collections/validators.d.ts +6 -4
- package/.medusa/server/src/api/vendor/product-tags/route.js +8 -2
- package/.medusa/server/src/api/vendor/product-tags/validators.d.ts +31 -29
- package/.medusa/server/src/api/vendor/product-types/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/products/route.js +7 -3
- package/.medusa/server/src/api/vendor/products/utils.d.ts +4 -1
- package/.medusa/server/src/api/vendor/products/utils.js +40 -2
- package/.medusa/server/src/api/vendor/products/validators.d.ts +905 -377
- package/.medusa/server/src/api/vendor/promotions/middlewares.d.ts +1 -1
- package/.medusa/server/src/api/vendor/promotions/middlewares.js +55 -53
- package/.medusa/server/src/api/vendor/promotions/rule-value-options/[rule_type]/[rule_attribute_id]/route.js +4 -4
- package/.medusa/server/src/api/vendor/promotions/validators.d.ts +87 -67
- package/.medusa/server/src/api/vendor/promotions/validators.js +22 -16
- package/.medusa/server/src/api/vendor/regions/validators.d.ts +3 -2
- package/.medusa/server/src/api/vendor/reservations/validators.d.ts +7 -6
- package/.medusa/server/src/api/vendor/returns/validators.d.ts +9 -8
- package/.medusa/server/src/api/vendor/sellers/validators.d.ts +20 -20
- package/.medusa/server/src/api/vendor/shipping-options/validators.d.ts +27 -26
- package/.medusa/server/src/api/vendor/shipping-profiles/validators.d.ts +5 -4
- package/.medusa/server/src/api/vendor/stock-locations/validators.d.ts +49 -59
- package/.medusa/server/src/links/seller-campaign.js +1 -1
- package/.medusa/server/src/links/seller-customer-group.js +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250617080244.js +2 -2
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250620110849.js +2 -2
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.d.ts +1 -1
- package/.medusa/server/src/modules/attribute/migrations/Migration20250828065431.js +2 -2
- package/.medusa/server/src/modules/attribute/service.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250114063624.js +2 -2
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.d.ts +1 -1
- package/.medusa/server/src/modules/configuration/migrations/Migration20250324131111.js +2 -2
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.d.ts +1 -1
- package/.medusa/server/src/modules/marketplace/migrations/Migration20241207151814.js +2 -2
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.d.ts +1 -1
- package/.medusa/server/src/modules/payout/migrations/Migration20250317090626.js +2 -2
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.d.ts +1 -1
- package/.medusa/server/src/modules/payout/migrations/Migration20250612144913.js +2 -2
- package/.medusa/server/src/modules/payout/service.d.ts +1 -1
- package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.d.ts +1 -1
- package/.medusa/server/src/modules/secondary_categories/migrations/Migration20251014102054.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20241206125415.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250212131627.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250225083755.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250225094708.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250307091819.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250313065552.js +2 -2
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.d.ts +1 -1
- package/.medusa/server/src/modules/seller/migrations/Migration20250530111528.js +2 -2
- package/.medusa/server/src/modules/seller/utils.d.ts +4 -0
- package/.medusa/server/src/modules/seller/utils.js +18 -1
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.d.ts +1 -1
- package/.medusa/server/src/modules/split-order-payment/migrations/Migration20250516075429.js +2 -2
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.d.ts +1 -1
- package/.medusa/server/src/modules/taxcode/migrations/Migration20250116135408.js +2 -2
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.d.ts +1 -1
- package/.medusa/server/src/modules/wishlist/migrations/Migration20250424110903.js +2 -2
- package/.medusa/server/src/shared/infra/http/middlewares/vendor-promotions-rule-value-options-path-params-guard.d.ts +2 -0
- package/.medusa/server/src/shared/infra/http/middlewares/vendor-promotions-rule-value-options-path-params-guard.js +16 -0
- package/.medusa/server/src/workflows/cart/workflows/split-and-complete-cart.js +2 -2
- package/.medusa/server/src/workflows/order/steps/calculate-payout-for-order.d.ts +1 -1
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.d.ts +7 -2
- package/.medusa/server/src/workflows/promotions/steps/register-usage-step.js +6 -6
- package/.medusa/server/src/workflows/seller/steps/validate-products-to-import.d.ts +10 -10
- package/package.json +17 -30
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export type VendorGetMemberParamsType = z.infer<typeof VendorGetMemberParams>;
|
|
3
3
|
export declare const VendorGetMemberParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
+
} & {
|
|
5
6
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
6
7
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
7
8
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -9,14 +10,14 @@ export declare const VendorGetMemberParams: z.ZodObject<{
|
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
offset: number;
|
|
11
12
|
limit: number;
|
|
12
|
-
fields?: string | undefined;
|
|
13
13
|
order?: string | undefined;
|
|
14
|
+
fields?: string | undefined;
|
|
14
15
|
with_deleted?: boolean | undefined;
|
|
15
16
|
}, {
|
|
17
|
+
order?: string | undefined;
|
|
16
18
|
fields?: string | undefined;
|
|
17
19
|
offset?: unknown;
|
|
18
20
|
limit?: unknown;
|
|
19
|
-
order?: string | undefined;
|
|
20
21
|
with_deleted?: unknown;
|
|
21
22
|
}>;
|
|
22
23
|
/**
|
|
@@ -47,12 +48,12 @@ export declare const VendorUpdateMember: z.ZodObject<{
|
|
|
47
48
|
photo: z.ZodOptional<z.ZodString>;
|
|
48
49
|
}, "strict", z.ZodTypeAny, {
|
|
49
50
|
name?: string | undefined;
|
|
50
|
-
bio?: string | undefined;
|
|
51
|
-
phone?: string | undefined;
|
|
52
51
|
photo?: string | undefined;
|
|
52
|
+
phone?: string | undefined;
|
|
53
|
+
bio?: string | undefined;
|
|
53
54
|
}, {
|
|
54
55
|
name?: string | undefined;
|
|
55
|
-
bio?: string | undefined;
|
|
56
|
-
phone?: string | undefined;
|
|
57
56
|
photo?: string | undefined;
|
|
57
|
+
phone?: string | undefined;
|
|
58
|
+
bio?: string | undefined;
|
|
58
59
|
}>;
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export type VendorGetNotificationParamsType = z.infer<typeof VendorGetNotificationParams>;
|
|
3
3
|
export declare const VendorGetNotificationParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
+
} & {
|
|
5
6
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
6
7
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
7
8
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -9,13 +10,13 @@ export declare const VendorGetNotificationParams: z.ZodObject<{
|
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
offset: number;
|
|
11
12
|
limit: number;
|
|
12
|
-
fields?: string | undefined;
|
|
13
13
|
order?: string | undefined;
|
|
14
|
+
fields?: string | undefined;
|
|
14
15
|
with_deleted?: boolean | undefined;
|
|
15
16
|
}, {
|
|
17
|
+
order?: string | undefined;
|
|
16
18
|
fields?: string | undefined;
|
|
17
19
|
offset?: unknown;
|
|
18
20
|
limit?: unknown;
|
|
19
|
-
order?: string | undefined;
|
|
20
21
|
with_deleted?: unknown;
|
|
21
22
|
}>;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
export type VendorGetOrderParamsType = z.infer<typeof VendorGetOrderParams>;
|
|
3
3
|
export declare const VendorGetOrderParams: z.ZodObject<{
|
|
4
|
+
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
+
} & {
|
|
4
6
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
5
7
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
6
|
-
fields: z.ZodOptional<z.ZodString>;
|
|
7
8
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
8
9
|
with_deleted: z.ZodEffects<z.ZodOptional<z.ZodBoolean>, boolean | undefined, unknown>;
|
|
10
|
+
} & {
|
|
9
11
|
created_at: z.ZodOptional<z.ZodUnion<[any, z.ZodObject<{
|
|
10
12
|
$eq: any;
|
|
11
13
|
$ne: any;
|
|
@@ -94,29 +96,29 @@ export declare const VendorGetOrderParams: z.ZodObject<{
|
|
|
94
96
|
}, "strip", z.ZodTypeAny, {
|
|
95
97
|
offset: number;
|
|
96
98
|
limit: number;
|
|
99
|
+
status?: any;
|
|
100
|
+
created_at?: any;
|
|
97
101
|
fields?: string | undefined;
|
|
98
102
|
order?: string | undefined;
|
|
99
103
|
with_deleted?: boolean | undefined;
|
|
100
|
-
|
|
101
|
-
status?: any;
|
|
102
|
-
fulfillment_status?: string | undefined;
|
|
103
|
-
payment_status?: string | undefined;
|
|
104
|
+
q?: string | undefined;
|
|
104
105
|
region_id?: string | undefined;
|
|
105
106
|
sales_channel_id?: string | undefined;
|
|
106
|
-
|
|
107
|
+
fulfillment_status?: string | undefined;
|
|
108
|
+
payment_status?: string | undefined;
|
|
107
109
|
}, {
|
|
110
|
+
status?: any;
|
|
111
|
+
created_at?: any;
|
|
108
112
|
offset?: unknown;
|
|
109
113
|
limit?: unknown;
|
|
110
114
|
fields?: string | undefined;
|
|
111
115
|
order?: string | undefined;
|
|
112
116
|
with_deleted?: unknown;
|
|
113
|
-
|
|
114
|
-
status?: any;
|
|
115
|
-
fulfillment_status?: string | undefined;
|
|
116
|
-
payment_status?: string | undefined;
|
|
117
|
+
q?: string | undefined;
|
|
117
118
|
region_id?: string | undefined;
|
|
118
119
|
sales_channel_id?: string | undefined;
|
|
119
|
-
|
|
120
|
+
fulfillment_status?: string | undefined;
|
|
121
|
+
payment_status?: string | undefined;
|
|
120
122
|
}>;
|
|
121
123
|
export type VendorGetOrderChangesParamsType = z.infer<typeof VendorGetOrderChangesParams>;
|
|
122
124
|
export declare const VendorGetOrderChangesParams: z.ZodObject<{
|
|
@@ -38,7 +38,8 @@ const z = __importStar(require("zod"));
|
|
|
38
38
|
const validators_1 = require("@medusajs/medusa/api/utils/validators");
|
|
39
39
|
exports.VendorGetOrderParams = (0, validators_1.createFindParams)({
|
|
40
40
|
offset: 0,
|
|
41
|
-
limit: 50
|
|
41
|
+
limit: 50,
|
|
42
|
+
order: '-created_at'
|
|
42
43
|
}).merge(z.object({
|
|
43
44
|
created_at: (0, validators_1.createOperatorMap)().optional(),
|
|
44
45
|
status: z
|
|
@@ -72,4 +73,4 @@ exports.VendorOrderCreateShipment = z.object({
|
|
|
72
73
|
}))
|
|
73
74
|
.optional()
|
|
74
75
|
});
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
76
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL29yZGVycy92YWxpZGF0b3JzLnRzIl0sIm5hbWVzIjpbXSwibW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are const VendorGetPayoutParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
+
} & {
|
|
5
6
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
6
7
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
7
8
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -9,13 +10,13 @@ export declare const VendorGetPayoutParams: z.ZodObject<{
|
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
offset: number;
|
|
11
12
|
limit: number;
|
|
12
|
-
fields?: string | undefined;
|
|
13
13
|
order?: string | undefined;
|
|
14
|
+
fields?: string | undefined;
|
|
14
15
|
with_deleted?: boolean | undefined;
|
|
15
16
|
}, {
|
|
17
|
+
order?: string | undefined;
|
|
16
18
|
fields?: string | undefined;
|
|
17
19
|
offset?: unknown;
|
|
18
20
|
limit?: unknown;
|
|
19
|
-
order?: string | undefined;
|
|
20
21
|
with_deleted?: unknown;
|
|
21
22
|
}>;
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { PriceListStatus, PriceListType } from '@medusajs/framework/utils';
|
|
3
3
|
export declare const VendorGetPriceListPricesParams: z.ZodObject<{
|
|
4
4
|
fields: z.ZodOptional<z.ZodString>;
|
|
5
|
+
} & {
|
|
5
6
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
6
7
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
7
8
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -9,18 +10,19 @@ export declare const VendorGetPriceListPricesParams: z.ZodObject<{
|
|
|
9
10
|
}, "strip", z.ZodTypeAny, {
|
|
10
11
|
offset: number;
|
|
11
12
|
limit: number;
|
|
12
|
-
fields?: string | undefined;
|
|
13
13
|
order?: string | undefined;
|
|
14
|
+
fields?: string | undefined;
|
|
14
15
|
with_deleted?: boolean | undefined;
|
|
15
16
|
}, {
|
|
17
|
+
order?: string | undefined;
|
|
16
18
|
fields?: string | undefined;
|
|
17
19
|
offset?: unknown;
|
|
18
20
|
limit?: unknown;
|
|
19
|
-
order?: string | undefined;
|
|
20
21
|
with_deleted?: unknown;
|
|
21
22
|
}>;
|
|
22
23
|
export declare const VendorGetPriceListProductsParams: z.ZodObject<{
|
|
23
24
|
fields: z.ZodOptional<z.ZodString>;
|
|
25
|
+
} & {
|
|
24
26
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
25
27
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
26
28
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -28,14 +30,14 @@ export declare const VendorGetPriceListProductsParams: z.ZodObject<{
|
|
|
28
30
|
}, "strip", z.ZodTypeAny, {
|
|
29
31
|
offset: number;
|
|
30
32
|
limit: number;
|
|
31
|
-
fields?: string | undefined;
|
|
32
33
|
order?: string | undefined;
|
|
34
|
+
fields?: string | undefined;
|
|
33
35
|
with_deleted?: boolean | undefined;
|
|
34
36
|
}, {
|
|
37
|
+
order?: string | undefined;
|
|
35
38
|
fields?: string | undefined;
|
|
36
39
|
offset?: unknown;
|
|
37
40
|
limit?: unknown;
|
|
38
|
-
order?: string | undefined;
|
|
39
41
|
with_deleted?: unknown;
|
|
40
42
|
}>;
|
|
41
43
|
/**
|
|
@@ -219,10 +221,10 @@ export declare const VendorCreatePriceList: z.ZodObject<{
|
|
|
219
221
|
}, "strip", z.ZodTypeAny, {
|
|
220
222
|
description: string;
|
|
221
223
|
title: string;
|
|
222
|
-
starts_at?: string | null | undefined;
|
|
223
|
-
ends_at?: string | null | undefined;
|
|
224
224
|
status?: PriceListStatus | undefined;
|
|
225
225
|
type?: PriceListType | undefined;
|
|
226
|
+
starts_at?: string | null | undefined;
|
|
227
|
+
ends_at?: string | null | undefined;
|
|
226
228
|
rules?: Record<string, string[]> | undefined;
|
|
227
229
|
prices?: {
|
|
228
230
|
currency_code: string;
|
|
@@ -235,10 +237,10 @@ export declare const VendorCreatePriceList: z.ZodObject<{
|
|
|
235
237
|
}, {
|
|
236
238
|
description: string;
|
|
237
239
|
title: string;
|
|
238
|
-
starts_at?: string | null | undefined;
|
|
239
|
-
ends_at?: string | null | undefined;
|
|
240
240
|
status?: PriceListStatus | undefined;
|
|
241
241
|
type?: PriceListType | undefined;
|
|
242
|
+
starts_at?: string | null | undefined;
|
|
243
|
+
ends_at?: string | null | undefined;
|
|
242
244
|
rules?: Record<string, string[]> | undefined;
|
|
243
245
|
prices?: {
|
|
244
246
|
currency_code: string;
|
|
@@ -295,20 +297,20 @@ export declare const VendorUpdatePriceList: z.ZodObject<{
|
|
|
295
297
|
type: z.ZodOptional<z.ZodNativeEnum<typeof PriceListType>>;
|
|
296
298
|
rules: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodArray<z.ZodString, "many">>>;
|
|
297
299
|
}, "strip", z.ZodTypeAny, {
|
|
298
|
-
|
|
300
|
+
status?: PriceListStatus | undefined;
|
|
301
|
+
type?: PriceListType | undefined;
|
|
299
302
|
description?: string | null | undefined;
|
|
303
|
+
title?: string | undefined;
|
|
300
304
|
starts_at?: string | null | undefined;
|
|
301
305
|
ends_at?: string | null | undefined;
|
|
302
|
-
status?: PriceListStatus | undefined;
|
|
303
|
-
type?: PriceListType | undefined;
|
|
304
306
|
rules?: Record<string, string[]> | undefined;
|
|
305
307
|
}, {
|
|
306
|
-
|
|
308
|
+
status?: PriceListStatus | undefined;
|
|
309
|
+
type?: PriceListType | undefined;
|
|
307
310
|
description?: string | null | undefined;
|
|
311
|
+
title?: string | undefined;
|
|
308
312
|
starts_at?: string | null | undefined;
|
|
309
313
|
ends_at?: string | null | undefined;
|
|
310
|
-
status?: PriceListStatus | undefined;
|
|
311
|
-
type?: PriceListType | undefined;
|
|
312
314
|
rules?: Record<string, string[]> | undefined;
|
|
313
315
|
}>;
|
|
314
316
|
/**
|
|
@@ -372,7 +374,6 @@ export declare const VendorUpdateProductsOnPriceList: z.ZodObject<{
|
|
|
372
374
|
rules?: Record<string, string> | undefined;
|
|
373
375
|
}>, "many">>;
|
|
374
376
|
}, "strip", z.ZodTypeAny, {
|
|
375
|
-
remove?: string[] | undefined;
|
|
376
377
|
create?: {
|
|
377
378
|
currency_code: string;
|
|
378
379
|
variant_id: string;
|
|
@@ -390,8 +391,8 @@ export declare const VendorUpdateProductsOnPriceList: z.ZodObject<{
|
|
|
390
391
|
max_quantity?: number | null | undefined;
|
|
391
392
|
rules?: Record<string, string> | undefined;
|
|
392
393
|
}[] | undefined;
|
|
393
|
-
}, {
|
|
394
394
|
remove?: string[] | undefined;
|
|
395
|
+
}, {
|
|
395
396
|
create?: {
|
|
396
397
|
currency_code: string;
|
|
397
398
|
variant_id: string;
|
|
@@ -409,4 +410,5 @@ export declare const VendorUpdateProductsOnPriceList: z.ZodObject<{
|
|
|
409
410
|
max_quantity?: number | null | undefined;
|
|
410
411
|
rules?: Record<string, string> | undefined;
|
|
411
412
|
}[] | undefined;
|
|
413
|
+
remove?: string[] | undefined;
|
|
412
414
|
}>;
|
|
@@ -5,48 +5,56 @@ export declare const VendorGetPricePreferencesParamsFields: z.ZodObject<{
|
|
|
5
5
|
attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6
6
|
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7
7
|
}, "strip", z.ZodTypeAny, {
|
|
8
|
-
|
|
8
|
+
value?: string | string[] | undefined;
|
|
9
9
|
id?: string | string[] | undefined;
|
|
10
|
+
q?: string | undefined;
|
|
10
11
|
attribute?: string | string[] | undefined;
|
|
11
|
-
value?: string | string[] | undefined;
|
|
12
12
|
}, {
|
|
13
|
-
|
|
13
|
+
value?: string | string[] | undefined;
|
|
14
14
|
id?: string | string[] | undefined;
|
|
15
|
+
q?: string | undefined;
|
|
15
16
|
attribute?: string | string[] | undefined;
|
|
16
|
-
value?: string | string[] | undefined;
|
|
17
17
|
}>;
|
|
18
|
-
export declare const VendorGetPricePreferencesParams: z.ZodObject<{
|
|
18
|
+
export declare const VendorGetPricePreferencesParams: z.ZodObject<{} & {
|
|
19
19
|
[x: string]: any;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
21
|
+
q: z.ZodOptional<z.ZodString>;
|
|
22
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
23
|
+
attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
24
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
value?: string | string[] | undefined;
|
|
27
|
+
id?: string | string[] | undefined;
|
|
28
|
+
q?: string | undefined;
|
|
29
|
+
attribute?: string | string[] | undefined;
|
|
24
30
|
}, {
|
|
25
|
-
|
|
31
|
+
value?: string | string[] | undefined;
|
|
32
|
+
id?: string | string[] | undefined;
|
|
33
|
+
q?: string | undefined;
|
|
34
|
+
attribute?: string | string[] | undefined;
|
|
26
35
|
}>, "many">>>;
|
|
27
|
-
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<
|
|
28
|
-
|
|
36
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
37
|
+
q: z.ZodOptional<z.ZodString>;
|
|
38
|
+
id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
39
|
+
attribute: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
40
|
+
value: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
value?: string | string[] | undefined;
|
|
43
|
+
id?: string | string[] | undefined;
|
|
44
|
+
q?: string | undefined;
|
|
45
|
+
attribute?: string | string[] | undefined;
|
|
29
46
|
}, {
|
|
30
|
-
|
|
47
|
+
value?: string | string[] | undefined;
|
|
48
|
+
id?: string | string[] | undefined;
|
|
49
|
+
q?: string | undefined;
|
|
50
|
+
attribute?: string | string[] | undefined;
|
|
31
51
|
}>, "many">>>;
|
|
32
52
|
}, "strip", z.ZodTypeAny, {
|
|
33
53
|
[x: string]: any;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
$and?: {
|
|
37
|
-
[x: string]: any;
|
|
38
|
-
}[] | undefined;
|
|
39
|
-
$or?: {
|
|
40
|
-
[x: string]: any;
|
|
41
|
-
}[] | undefined;
|
|
54
|
+
$and?: unknown;
|
|
55
|
+
$or?: unknown;
|
|
42
56
|
}, {
|
|
43
57
|
[x: string]: any;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
$and?: {
|
|
47
|
-
[x: string]: any;
|
|
48
|
-
}[] | undefined;
|
|
49
|
-
$or?: {
|
|
50
|
-
[x: string]: any;
|
|
51
|
-
}[] | undefined;
|
|
58
|
+
$and?: unknown;
|
|
59
|
+
$or?: unknown;
|
|
52
60
|
}>;
|