@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
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.VendorGetPromotionRuleTypeParams = exports.VendorGetPromotionRuleParams = exports.VendorGetPromotionsRuleValueParams = exports.VendorUpdatePromotion = exports.VendorUpdateApplicationMethod = exports.VendorBatchPromotionRules = exports.VendorCreatePromotion = exports.VendorCreateApplicationMethod = exports.VendorCreatePromotionRule = exports.VendorGetPromotionsParams = void 0;
|
|
3
|
+
exports.VendorGetPromotionsRuleValuePathParams = exports.VendorGetPromotionRuleTypeParams = exports.VendorGetPromotionRuleParams = exports.VendorGetPromotionsRuleValueParams = exports.VendorUpdatePromotion = exports.VendorUpdateApplicationMethod = exports.VendorBatchPromotionRules = exports.VendorCreatePromotion = exports.VendorCreateApplicationMethod = exports.VendorCreatePromotionRule = exports.VendorGetPromotionsParams = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const utils_1 = require("@medusajs/framework/utils");
|
|
6
6
|
const validators_1 = require("@medusajs/medusa/api/utils/validators");
|
|
7
7
|
const validators_2 = require("../campaigns/validators");
|
|
8
8
|
exports.VendorGetPromotionsParams = (0, validators_1.createFindParams)({
|
|
9
9
|
offset: 0,
|
|
10
|
-
limit: 50
|
|
10
|
+
limit: 50,
|
|
11
11
|
});
|
|
12
12
|
/**
|
|
13
13
|
* @schema VendorCreatePromotionRule
|
|
@@ -31,10 +31,10 @@ exports.VendorGetPromotionsParams = (0, validators_1.createFindParams)({
|
|
|
31
31
|
*/
|
|
32
32
|
exports.VendorCreatePromotionRule = zod_1.z
|
|
33
33
|
.object({
|
|
34
|
-
operator: zod_1.z.enum([
|
|
34
|
+
operator: zod_1.z.enum(["in", "eq"]),
|
|
35
35
|
description: zod_1.z.string().nullish(),
|
|
36
36
|
attribute: zod_1.z.string(),
|
|
37
|
-
values: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())])
|
|
37
|
+
values: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]),
|
|
38
38
|
})
|
|
39
39
|
.strict();
|
|
40
40
|
/**
|
|
@@ -84,7 +84,7 @@ exports.VendorCreateApplicationMethod = zod_1.z
|
|
|
84
84
|
allocation: zod_1.z.nativeEnum(utils_1.ApplicationMethodAllocation),
|
|
85
85
|
target_rules: zod_1.z.array(exports.VendorCreatePromotionRule),
|
|
86
86
|
apply_to_quantity: zod_1.z.number().nullish(),
|
|
87
|
-
buy_rules_min_quantity: zod_1.z.number().nullish()
|
|
87
|
+
buy_rules_min_quantity: zod_1.z.number().nullish(),
|
|
88
88
|
})
|
|
89
89
|
.strict();
|
|
90
90
|
exports.VendorCreatePromotion = zod_1.z
|
|
@@ -96,12 +96,12 @@ exports.VendorCreatePromotion = zod_1.z
|
|
|
96
96
|
campaign_id: zod_1.z.string().nullish(),
|
|
97
97
|
campaign: validators_2.VendorCreateCampaign.optional(),
|
|
98
98
|
application_method: exports.VendorCreateApplicationMethod,
|
|
99
|
-
rules: zod_1.z.array(exports.VendorCreatePromotionRule).optional()
|
|
99
|
+
rules: zod_1.z.array(exports.VendorCreatePromotionRule).optional(),
|
|
100
100
|
})
|
|
101
101
|
.strict();
|
|
102
102
|
exports.VendorBatchPromotionRules = zod_1.z.object({
|
|
103
103
|
create: zod_1.z.array(exports.VendorCreatePromotionRule).default([]),
|
|
104
|
-
delete: zod_1.z.array(zod_1.z.string()).default([])
|
|
104
|
+
delete: zod_1.z.array(zod_1.z.string()).default([]),
|
|
105
105
|
});
|
|
106
106
|
exports.VendorUpdateApplicationMethod = zod_1.z
|
|
107
107
|
.object({
|
|
@@ -110,7 +110,7 @@ exports.VendorUpdateApplicationMethod = zod_1.z
|
|
|
110
110
|
max_quantity: zod_1.z.number().nullish(),
|
|
111
111
|
currency_code: zod_1.z.string().nullish(),
|
|
112
112
|
apply_to_quantity: zod_1.z.number().nullish(),
|
|
113
|
-
buy_rules_min_quantity: zod_1.z.number().nullish()
|
|
113
|
+
buy_rules_min_quantity: zod_1.z.number().nullish(),
|
|
114
114
|
})
|
|
115
115
|
.strict();
|
|
116
116
|
exports.VendorUpdatePromotion = zod_1.z
|
|
@@ -119,22 +119,28 @@ exports.VendorUpdatePromotion = zod_1.z
|
|
|
119
119
|
is_automatic: zod_1.z.boolean().optional(),
|
|
120
120
|
status: zod_1.z.nativeEnum(utils_1.PromotionStatus).optional(),
|
|
121
121
|
campaign_id: zod_1.z.string().nullish(),
|
|
122
|
-
application_method: exports.VendorUpdateApplicationMethod.optional()
|
|
122
|
+
application_method: exports.VendorUpdateApplicationMethod.optional(),
|
|
123
123
|
})
|
|
124
124
|
.strict();
|
|
125
125
|
exports.VendorGetPromotionsRuleValueParams = (0, validators_1.createFindParams)({
|
|
126
126
|
limit: 100,
|
|
127
|
-
offset: 0
|
|
127
|
+
offset: 0,
|
|
128
128
|
}).merge(zod_1.z.object({
|
|
129
129
|
q: zod_1.z.string().optional(),
|
|
130
|
-
value: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional()
|
|
130
|
+
value: zod_1.z.union([zod_1.z.string(), zod_1.z.array(zod_1.z.string())]).optional(),
|
|
131
131
|
}));
|
|
132
132
|
exports.VendorGetPromotionRuleParams = zod_1.z.object({
|
|
133
|
-
promotion_type: zod_1.z.
|
|
134
|
-
application_method_type: zod_1.z.
|
|
133
|
+
promotion_type: zod_1.z.nativeEnum(utils_1.PromotionType).optional(),
|
|
134
|
+
application_method_type: zod_1.z.nativeEnum(utils_1.ApplicationMethodType).optional(),
|
|
135
135
|
});
|
|
136
136
|
exports.VendorGetPromotionRuleTypeParams = (0, validators_1.createSelectParams)().merge(zod_1.z.object({
|
|
137
|
-
promotion_type: zod_1.z.
|
|
138
|
-
application_method_type: zod_1.z.
|
|
137
|
+
promotion_type: zod_1.z.nativeEnum(utils_1.PromotionType).optional(),
|
|
138
|
+
application_method_type: zod_1.z.nativeEnum(utils_1.ApplicationMethodType).optional(),
|
|
139
139
|
}));
|
|
140
|
-
|
|
140
|
+
exports.VendorGetPromotionsRuleValuePathParams = zod_1.z.object({
|
|
141
|
+
rule_type: zod_1.z.nativeEnum(utils_1.RuleType),
|
|
142
|
+
rule_attribute_id: zod_1.z.string(),
|
|
143
|
+
promotion_type: zod_1.z.nativeEnum(utils_1.PromotionType).optional(),
|
|
144
|
+
application_method_type: zod_1.z.nativeEnum(utils_1.ApplicationMethodType).optional(),
|
|
145
|
+
});
|
|
146
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsaWRhdG9ycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9hcGkvdmVuZG9yL3Byb21vdGlvbnMvdmFsaWRhdG9ycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSw2QkFBd0I7QUFFeEIscURBT21DO0FBT25DLHNFQUcrQztBQUUvQyx3REFBK0Q7QUFLbEQsUUFBQSx5QkFBeUIsR0FBRyxJQUFBLDZCQUFnQixFQUFDO0lBQ3hELE1BQU0sRUFBRSxDQUFDO0lBQ1QsS0FBSyxFQUFFLEVBQUU7Q0FDVixDQUFDLENBQUM7QUF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FDSCxDQUFDO0FBRVcsUUFBQSxzQ0FBc0MsR0FBRyxPQUFDLENBQUMsTUFBTSxDQUFDO0lBQzdELFNBQVMsRUFBRSxPQUFDLENBQUMsVUFBVSxDQUFDLGdCQUFRLENBQUM7SUFDakMsaUJBQWlCLEVBQUUsT0FBQyxDQUFDLE1BQU0sRUFBRTtJQUM3QixjQUFjLEVBQUUsT0FBQyxDQUFDLFVBQVUsQ0FBQyxxQkFBYSxDQUFDLENBQUMsUUFBUSxFQUFFO0lBQ3RELHVCQUF1QixFQUFFLE9BQUMsQ0FBQyxVQUFVLENBQUMsNkJBQXFCLENBQUMsQ0FBQyxRQUFRLEVBQUU7Q0FDeEUsQ0FBQyxDQUFDIn0=
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export type VendorGetRegionsParamsType = z.infer<typeof VendorGetRegionsParams>;
|
|
3
3
|
export declare const VendorGetRegionsParams: 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 VendorGetRegionsParams: 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
|
export type VendorGetReservationParamsType = z.infer<typeof VendorGetReservationParams>;
|
|
3
3
|
export declare const VendorGetReservationParams: 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 VendorGetReservationParams: 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
|
/**
|
|
@@ -40,12 +41,12 @@ export declare const VendorUpdateReservation: z.ZodObject<{
|
|
|
40
41
|
description: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
41
42
|
}, "strict", z.ZodTypeAny, {
|
|
42
43
|
location_id?: string | undefined;
|
|
43
|
-
quantity?: number | undefined;
|
|
44
44
|
description?: string | null | undefined;
|
|
45
|
+
quantity?: number | undefined;
|
|
45
46
|
}, {
|
|
46
47
|
location_id?: string | undefined;
|
|
47
|
-
quantity?: number | undefined;
|
|
48
48
|
description?: string | null | undefined;
|
|
49
|
+
quantity?: number | undefined;
|
|
49
50
|
}>;
|
|
50
51
|
/**
|
|
51
52
|
* @schema VendorCreateReservation
|
|
@@ -78,12 +79,12 @@ export declare const VendorCreateReservation: z.ZodObject<{
|
|
|
78
79
|
location_id: string;
|
|
79
80
|
inventory_item_id: string;
|
|
80
81
|
quantity: number;
|
|
81
|
-
line_item_id?: string | null | undefined;
|
|
82
82
|
description?: string | null | undefined;
|
|
83
|
+
line_item_id?: string | null | undefined;
|
|
83
84
|
}, {
|
|
84
85
|
location_id: string;
|
|
85
86
|
inventory_item_id: string;
|
|
86
87
|
quantity: number;
|
|
87
|
-
line_item_id?: string | null | undefined;
|
|
88
88
|
description?: string | null | undefined;
|
|
89
|
+
line_item_id?: string | null | undefined;
|
|
89
90
|
}>;
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export type VendorGetReturnsParamsType = z.infer<typeof VendorGetReturnsParams>;
|
|
3
3
|
export declare const VendorGetReturnsParams: 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 VendorGetReturnsParams: 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
|
/**
|
|
@@ -42,13 +43,13 @@ export declare const VendorReceiveReturnSchema: z.ZodObject<{
|
|
|
42
43
|
description: z.ZodOptional<z.ZodString>;
|
|
43
44
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
44
45
|
}, "strip", z.ZodTypeAny, {
|
|
45
|
-
internal_note?: string | undefined;
|
|
46
46
|
description?: string | undefined;
|
|
47
47
|
metadata?: Record<string, unknown> | null | undefined;
|
|
48
|
-
}, {
|
|
49
48
|
internal_note?: string | undefined;
|
|
49
|
+
}, {
|
|
50
50
|
description?: string | undefined;
|
|
51
51
|
metadata?: Record<string, unknown> | null | undefined;
|
|
52
|
+
internal_note?: string | undefined;
|
|
52
53
|
}>;
|
|
53
54
|
/**
|
|
54
55
|
* @schema VendorReceiveReturnItems
|
|
@@ -121,11 +122,11 @@ export declare const VendorReturnsReceiveItemsActionSchema: z.ZodObject<{
|
|
|
121
122
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
122
123
|
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
123
124
|
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
quantity?: number | undefined;
|
|
125
125
|
internal_note?: string | null | undefined;
|
|
126
|
-
}, {
|
|
127
126
|
quantity?: number | undefined;
|
|
127
|
+
}, {
|
|
128
128
|
internal_note?: string | null | undefined;
|
|
129
|
+
quantity?: number | undefined;
|
|
129
130
|
}>;
|
|
130
131
|
/**
|
|
131
132
|
* @schema VendorReturnsDismissItemsAction
|
|
@@ -144,9 +145,9 @@ export declare const VendorReturnsDismissItemsActionSchema: z.ZodObject<{
|
|
|
144
145
|
quantity: z.ZodOptional<z.ZodNumber>;
|
|
145
146
|
internal_note: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
146
147
|
}, "strip", z.ZodTypeAny, {
|
|
147
|
-
quantity?: number | undefined;
|
|
148
148
|
internal_note?: string | null | undefined;
|
|
149
|
-
}, {
|
|
150
149
|
quantity?: number | undefined;
|
|
150
|
+
}, {
|
|
151
151
|
internal_note?: string | null | undefined;
|
|
152
|
+
quantity?: number | undefined;
|
|
152
153
|
}>;
|
|
@@ -104,54 +104,54 @@ export declare const VendorCreateSeller: z.ZodObject<{
|
|
|
104
104
|
}, "strip", z.ZodTypeAny, {
|
|
105
105
|
name: string;
|
|
106
106
|
email: string;
|
|
107
|
-
bio?: string | null | undefined;
|
|
108
|
-
phone?: string | null | undefined;
|
|
109
107
|
photo?: string | null | undefined;
|
|
108
|
+
phone?: string | null | undefined;
|
|
109
|
+
bio?: string | null | undefined;
|
|
110
110
|
}, {
|
|
111
111
|
name: string;
|
|
112
112
|
email: string;
|
|
113
|
-
bio?: string | null | undefined;
|
|
114
|
-
phone?: string | null | undefined;
|
|
115
113
|
photo?: string | null | undefined;
|
|
114
|
+
phone?: string | null | undefined;
|
|
115
|
+
bio?: string | null | undefined;
|
|
116
116
|
}>;
|
|
117
117
|
}, "strict", z.ZodTypeAny, {
|
|
118
118
|
name: string;
|
|
119
119
|
member: {
|
|
120
120
|
name: string;
|
|
121
121
|
email: string;
|
|
122
|
-
bio?: string | null | undefined;
|
|
123
|
-
phone?: string | null | undefined;
|
|
124
122
|
photo?: string | null | undefined;
|
|
123
|
+
phone?: string | null | undefined;
|
|
124
|
+
bio?: string | null | undefined;
|
|
125
125
|
};
|
|
126
126
|
description?: string | null | undefined;
|
|
127
127
|
photo?: string | null | undefined;
|
|
128
|
-
email?: string | null | undefined;
|
|
129
|
-
phone?: string | null | undefined;
|
|
130
128
|
address_line?: string | null | undefined;
|
|
131
129
|
city?: string | null | undefined;
|
|
132
|
-
state?: string | null | undefined;
|
|
133
130
|
postal_code?: string | null | undefined;
|
|
134
131
|
country_code?: string | null | undefined;
|
|
135
132
|
tax_id?: string | null | undefined;
|
|
133
|
+
email?: string | null | undefined;
|
|
134
|
+
phone?: string | null | undefined;
|
|
135
|
+
state?: string | null | undefined;
|
|
136
136
|
}, {
|
|
137
137
|
member: {
|
|
138
138
|
name: string;
|
|
139
139
|
email: string;
|
|
140
|
-
bio?: string | null | undefined;
|
|
141
|
-
phone?: string | null | undefined;
|
|
142
140
|
photo?: string | null | undefined;
|
|
141
|
+
phone?: string | null | undefined;
|
|
142
|
+
bio?: string | null | undefined;
|
|
143
143
|
};
|
|
144
144
|
name?: unknown;
|
|
145
145
|
description?: string | null | undefined;
|
|
146
146
|
photo?: string | null | undefined;
|
|
147
|
-
email?: string | null | undefined;
|
|
148
|
-
phone?: string | null | undefined;
|
|
149
147
|
address_line?: string | null | undefined;
|
|
150
148
|
city?: string | null | undefined;
|
|
151
|
-
state?: string | null | undefined;
|
|
152
149
|
postal_code?: string | null | undefined;
|
|
153
150
|
country_code?: string | null | undefined;
|
|
154
151
|
tax_id?: string | null | undefined;
|
|
152
|
+
email?: string | null | undefined;
|
|
153
|
+
phone?: string | null | undefined;
|
|
154
|
+
state?: string | null | undefined;
|
|
155
155
|
}>;
|
|
156
156
|
/**
|
|
157
157
|
* @schema VendorUpdateSeller
|
|
@@ -220,26 +220,26 @@ export declare const VendorUpdateSeller: z.ZodObject<{
|
|
|
220
220
|
name?: string | undefined;
|
|
221
221
|
description?: string | undefined;
|
|
222
222
|
photo?: string | undefined;
|
|
223
|
-
email?: string | undefined;
|
|
224
|
-
phone?: string | undefined;
|
|
225
223
|
address_line?: string | undefined;
|
|
226
224
|
city?: string | undefined;
|
|
227
|
-
state?: string | undefined;
|
|
228
225
|
postal_code?: string | undefined;
|
|
229
226
|
country_code?: string | undefined;
|
|
230
227
|
tax_id?: string | undefined;
|
|
228
|
+
email?: string | undefined;
|
|
229
|
+
phone?: string | undefined;
|
|
230
|
+
state?: string | undefined;
|
|
231
231
|
}, {
|
|
232
232
|
name?: unknown;
|
|
233
233
|
description?: string | undefined;
|
|
234
234
|
photo?: string | undefined;
|
|
235
|
-
email?: string | undefined;
|
|
236
|
-
phone?: string | undefined;
|
|
237
235
|
address_line?: string | undefined;
|
|
238
236
|
city?: string | undefined;
|
|
239
|
-
state?: string | undefined;
|
|
240
237
|
postal_code?: string | undefined;
|
|
241
238
|
country_code?: string | undefined;
|
|
242
239
|
tax_id?: string | undefined;
|
|
240
|
+
email?: string | undefined;
|
|
241
|
+
phone?: string | undefined;
|
|
242
|
+
state?: string | undefined;
|
|
243
243
|
}>;
|
|
244
244
|
export type VendorGetOnboardingParamsType = z.infer<typeof VendorGetOnboardingParams>;
|
|
245
245
|
export declare const VendorGetOnboardingParams: z.ZodObject<{
|
|
@@ -3,6 +3,7 @@ import { RuleOperator } from '@medusajs/framework/utils';
|
|
|
3
3
|
export type VendorGetShippingParamsType = z.infer<typeof VendorGetShippingFindParams>;
|
|
4
4
|
export declare const VendorGetShippingFindParams: z.ZodObject<{
|
|
5
5
|
fields: z.ZodOptional<z.ZodString>;
|
|
6
|
+
} & {
|
|
6
7
|
offset: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
7
8
|
limit: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodNumber>>, number, unknown>;
|
|
8
9
|
order: z.ZodOptional<z.ZodString> | z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
@@ -10,14 +11,14 @@ export declare const VendorGetShippingFindParams: z.ZodObject<{
|
|
|
10
11
|
}, "strip", z.ZodTypeAny, {
|
|
11
12
|
offset: number;
|
|
12
13
|
limit: number;
|
|
13
|
-
fields?: string | undefined;
|
|
14
14
|
order?: string | undefined;
|
|
15
|
+
fields?: string | undefined;
|
|
15
16
|
with_deleted?: boolean | undefined;
|
|
16
17
|
}, {
|
|
18
|
+
order?: string | undefined;
|
|
17
19
|
fields?: string | undefined;
|
|
18
20
|
offset?: unknown;
|
|
19
21
|
limit?: unknown;
|
|
20
|
-
order?: string | undefined;
|
|
21
22
|
with_deleted?: unknown;
|
|
22
23
|
}>;
|
|
23
24
|
/**
|
|
@@ -121,11 +122,11 @@ export declare const VendorCreateShippingOption: z.ZodObject<{
|
|
|
121
122
|
attribute: z.ZodString;
|
|
122
123
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
123
124
|
}, "strict", z.ZodTypeAny, {
|
|
124
|
-
value:
|
|
125
|
+
value: string | string[];
|
|
125
126
|
attribute: string;
|
|
126
127
|
operator: RuleOperator;
|
|
127
128
|
}, {
|
|
128
|
-
value:
|
|
129
|
+
value: string | string[];
|
|
129
130
|
attribute: string;
|
|
130
131
|
operator: RuleOperator;
|
|
131
132
|
}>, "many">>;
|
|
@@ -148,7 +149,7 @@ export declare const VendorCreateShippingOption: z.ZodObject<{
|
|
|
148
149
|
shipping_profile_id: string;
|
|
149
150
|
data?: Record<string, unknown> | undefined;
|
|
150
151
|
rules?: {
|
|
151
|
-
value:
|
|
152
|
+
value: string | string[];
|
|
152
153
|
attribute: string;
|
|
153
154
|
operator: RuleOperator;
|
|
154
155
|
}[] | undefined;
|
|
@@ -171,7 +172,7 @@ export declare const VendorCreateShippingOption: z.ZodObject<{
|
|
|
171
172
|
shipping_profile_id: string;
|
|
172
173
|
data?: Record<string, unknown> | undefined;
|
|
173
174
|
rules?: {
|
|
174
|
-
value:
|
|
175
|
+
value: string | string[];
|
|
175
176
|
attribute: string;
|
|
176
177
|
operator: RuleOperator;
|
|
177
178
|
}[] | undefined;
|
|
@@ -246,41 +247,27 @@ export declare const VendorUpdateShippingOption: z.ZodObject<{
|
|
|
246
247
|
attribute: z.ZodString;
|
|
247
248
|
value: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
|
|
248
249
|
}, "strict", z.ZodTypeAny, {
|
|
249
|
-
value:
|
|
250
|
+
value: string | string[];
|
|
250
251
|
attribute: string;
|
|
251
252
|
operator: RuleOperator;
|
|
252
253
|
}, {
|
|
253
|
-
value:
|
|
254
|
+
value: string | string[];
|
|
254
255
|
attribute: string;
|
|
255
256
|
operator: RuleOperator;
|
|
256
257
|
}>, "many">>;
|
|
257
258
|
}, "strict", z.ZodTypeAny, {
|
|
258
|
-
data?: Record<string, unknown> | undefined;
|
|
259
|
-
name?: string | undefined;
|
|
260
|
-
shipping_profile_id?: string | undefined;
|
|
261
|
-
provider_id?: string | undefined;
|
|
262
|
-
prices?: ({
|
|
263
|
-
currency_code: string;
|
|
264
|
-
amount: number;
|
|
265
|
-
} | {
|
|
266
|
-
region_id: string;
|
|
267
|
-
amount: number;
|
|
268
|
-
})[] | undefined;
|
|
269
259
|
type?: {
|
|
270
260
|
code: string;
|
|
271
261
|
description: string;
|
|
272
262
|
label: string;
|
|
273
263
|
} | undefined;
|
|
264
|
+
name?: string | undefined;
|
|
265
|
+
data?: Record<string, unknown> | undefined;
|
|
274
266
|
rules?: {
|
|
275
|
-
value:
|
|
267
|
+
value: string | string[];
|
|
276
268
|
attribute: string;
|
|
277
269
|
operator: RuleOperator;
|
|
278
270
|
}[] | undefined;
|
|
279
|
-
}, {
|
|
280
|
-
data?: Record<string, unknown> | undefined;
|
|
281
|
-
name?: string | undefined;
|
|
282
|
-
shipping_profile_id?: string | undefined;
|
|
283
|
-
provider_id?: string | undefined;
|
|
284
271
|
prices?: ({
|
|
285
272
|
currency_code: string;
|
|
286
273
|
amount: number;
|
|
@@ -288,14 +275,28 @@ export declare const VendorUpdateShippingOption: z.ZodObject<{
|
|
|
288
275
|
region_id: string;
|
|
289
276
|
amount: number;
|
|
290
277
|
})[] | undefined;
|
|
278
|
+
provider_id?: string | undefined;
|
|
279
|
+
shipping_profile_id?: string | undefined;
|
|
280
|
+
}, {
|
|
291
281
|
type?: {
|
|
292
282
|
code: string;
|
|
293
283
|
description: string;
|
|
294
284
|
label: string;
|
|
295
285
|
} | undefined;
|
|
286
|
+
name?: string | undefined;
|
|
287
|
+
data?: Record<string, unknown> | undefined;
|
|
296
288
|
rules?: {
|
|
297
|
-
value:
|
|
289
|
+
value: string | string[];
|
|
298
290
|
attribute: string;
|
|
299
291
|
operator: RuleOperator;
|
|
300
292
|
}[] | undefined;
|
|
293
|
+
prices?: ({
|
|
294
|
+
currency_code: string;
|
|
295
|
+
amount: number;
|
|
296
|
+
} | {
|
|
297
|
+
region_id: string;
|
|
298
|
+
amount: number;
|
|
299
|
+
})[] | undefined;
|
|
300
|
+
provider_id?: string | undefined;
|
|
301
|
+
shipping_profile_id?: string | undefined;
|
|
301
302
|
}>;
|
|
@@ -2,6 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
export type VendorGetShippingProfilesParamsType = z.infer<typeof VendorGetShippingProfilesParams>;
|
|
3
3
|
export declare const VendorGetShippingProfilesParams: 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 VendorGetShippingProfilesParams: 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
|
/**
|
|
@@ -72,11 +73,11 @@ export declare const VendorUpdateShippingProfile: z.ZodObject<{
|
|
|
72
73
|
type: z.ZodOptional<z.ZodString>;
|
|
73
74
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
74
75
|
}, "strict", z.ZodTypeAny, {
|
|
75
|
-
name?: string | undefined;
|
|
76
76
|
type?: string | undefined;
|
|
77
|
+
name?: string | undefined;
|
|
77
78
|
metadata?: Record<string, unknown> | null | undefined;
|
|
78
79
|
}, {
|
|
79
|
-
name?: string | undefined;
|
|
80
80
|
type?: string | undefined;
|
|
81
|
+
name?: string | undefined;
|
|
81
82
|
metadata?: Record<string, unknown> | null | undefined;
|
|
82
83
|
}>;
|