@mercurjs/b2c-core 1.4.3 → 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]/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 +12 -1
- package/.medusa/server/src/api/vendor/inventory-items/validators.d.ts +37 -104
- 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/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/validators.d.ts +57 -53
- 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/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 +15 -28
|
@@ -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
|
}>;
|
|
@@ -7,40 +7,30 @@ export declare const VendorGetStockLocationsParamsDirectFields: z.ZodObject<{
|
|
|
7
7
|
}, {
|
|
8
8
|
stock_location_id?: string | string[] | undefined;
|
|
9
9
|
}>;
|
|
10
|
-
export declare const VendorGetStockLocationParams: z.ZodObject<{
|
|
10
|
+
export declare const VendorGetStockLocationParams: z.ZodObject<{} & {
|
|
11
11
|
[x: string]: any;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
$and: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
13
|
+
stock_location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
14
|
+
}, "strip", z.ZodTypeAny, {
|
|
15
|
+
stock_location_id?: string | string[] | undefined;
|
|
16
16
|
}, {
|
|
17
|
-
|
|
17
|
+
stock_location_id?: string | string[] | undefined;
|
|
18
18
|
}>, "many">>>;
|
|
19
|
-
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<
|
|
20
|
-
|
|
19
|
+
$or: z.ZodOptional<z.ZodLazy<z.ZodArray<z.ZodObject<{
|
|
20
|
+
stock_location_id: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
21
|
+
}, "strip", z.ZodTypeAny, {
|
|
22
|
+
stock_location_id?: string | string[] | undefined;
|
|
21
23
|
}, {
|
|
22
|
-
|
|
24
|
+
stock_location_id?: string | string[] | undefined;
|
|
23
25
|
}>, "many">>>;
|
|
24
26
|
}, "strip", z.ZodTypeAny, {
|
|
25
27
|
[x: string]: any;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
$and?: {
|
|
29
|
-
[x: string]: any;
|
|
30
|
-
}[] | undefined;
|
|
31
|
-
$or?: {
|
|
32
|
-
[x: string]: any;
|
|
33
|
-
}[] | undefined;
|
|
28
|
+
$and?: unknown;
|
|
29
|
+
$or?: unknown;
|
|
34
30
|
}, {
|
|
35
31
|
[x: string]: any;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
$and?: {
|
|
39
|
-
[x: string]: any;
|
|
40
|
-
}[] | undefined;
|
|
41
|
-
$or?: {
|
|
42
|
-
[x: string]: any;
|
|
43
|
-
}[] | undefined;
|
|
32
|
+
$and?: unknown;
|
|
33
|
+
$or?: unknown;
|
|
44
34
|
}>;
|
|
45
35
|
/**
|
|
46
36
|
* @schema UpsertStockLocationAddress
|
|
@@ -92,21 +82,21 @@ export declare const UpsertStockLocationAddress: z.ZodObject<{
|
|
|
92
82
|
}, "strip", z.ZodTypeAny, {
|
|
93
83
|
country_code: string;
|
|
94
84
|
address_1: string;
|
|
95
|
-
address_2?: string | null | undefined;
|
|
96
|
-
company?: string | null | undefined;
|
|
97
85
|
city?: string | null | undefined;
|
|
98
|
-
phone?: string | null | undefined;
|
|
99
86
|
postal_code?: string | null | undefined;
|
|
87
|
+
phone?: string | null | undefined;
|
|
100
88
|
province?: string | null | undefined;
|
|
89
|
+
address_2?: string | null | undefined;
|
|
90
|
+
company?: string | null | undefined;
|
|
101
91
|
}, {
|
|
102
92
|
country_code: string;
|
|
103
93
|
address_1: string;
|
|
104
|
-
address_2?: string | null | undefined;
|
|
105
|
-
company?: string | null | undefined;
|
|
106
94
|
city?: string | null | undefined;
|
|
107
|
-
phone?: string | null | undefined;
|
|
108
95
|
postal_code?: string | null | undefined;
|
|
96
|
+
phone?: string | null | undefined;
|
|
109
97
|
province?: string | null | undefined;
|
|
98
|
+
address_2?: string | null | undefined;
|
|
99
|
+
company?: string | null | undefined;
|
|
110
100
|
}>;
|
|
111
101
|
export type VendorCreateStockLocationType = z.infer<typeof VendorCreateStockLocation>;
|
|
112
102
|
/**
|
|
@@ -143,52 +133,52 @@ export declare const VendorCreateStockLocation: z.ZodObject<{
|
|
|
143
133
|
}, "strip", z.ZodTypeAny, {
|
|
144
134
|
country_code: string;
|
|
145
135
|
address_1: string;
|
|
146
|
-
address_2?: string | null | undefined;
|
|
147
|
-
company?: string | null | undefined;
|
|
148
136
|
city?: string | null | undefined;
|
|
149
|
-
phone?: string | null | undefined;
|
|
150
137
|
postal_code?: string | null | undefined;
|
|
138
|
+
phone?: string | null | undefined;
|
|
151
139
|
province?: string | null | undefined;
|
|
140
|
+
address_2?: string | null | undefined;
|
|
141
|
+
company?: string | null | undefined;
|
|
152
142
|
}, {
|
|
153
143
|
country_code: string;
|
|
154
144
|
address_1: string;
|
|
155
|
-
address_2?: string | null | undefined;
|
|
156
|
-
company?: string | null | undefined;
|
|
157
145
|
city?: string | null | undefined;
|
|
158
|
-
phone?: string | null | undefined;
|
|
159
146
|
postal_code?: string | null | undefined;
|
|
147
|
+
phone?: string | null | undefined;
|
|
160
148
|
province?: string | null | undefined;
|
|
149
|
+
address_2?: string | null | undefined;
|
|
150
|
+
company?: string | null | undefined;
|
|
161
151
|
}>>;
|
|
162
152
|
address_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
163
153
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
164
154
|
}, "strip", z.ZodTypeAny, {
|
|
165
155
|
name: string;
|
|
156
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
166
157
|
address?: {
|
|
167
158
|
country_code: string;
|
|
168
159
|
address_1: string;
|
|
169
|
-
address_2?: string | null | undefined;
|
|
170
|
-
company?: string | null | undefined;
|
|
171
160
|
city?: string | null | undefined;
|
|
172
|
-
phone?: string | null | undefined;
|
|
173
161
|
postal_code?: string | null | undefined;
|
|
162
|
+
phone?: string | null | undefined;
|
|
174
163
|
province?: string | null | undefined;
|
|
164
|
+
address_2?: string | null | undefined;
|
|
165
|
+
company?: string | null | undefined;
|
|
175
166
|
} | undefined;
|
|
176
167
|
address_id?: string | null | undefined;
|
|
177
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
178
168
|
}, {
|
|
179
169
|
name?: unknown;
|
|
170
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
180
171
|
address?: {
|
|
181
172
|
country_code: string;
|
|
182
173
|
address_1: string;
|
|
183
|
-
address_2?: string | null | undefined;
|
|
184
|
-
company?: string | null | undefined;
|
|
185
174
|
city?: string | null | undefined;
|
|
186
|
-
phone?: string | null | undefined;
|
|
187
175
|
postal_code?: string | null | undefined;
|
|
176
|
+
phone?: string | null | undefined;
|
|
188
177
|
province?: string | null | undefined;
|
|
178
|
+
address_2?: string | null | undefined;
|
|
179
|
+
company?: string | null | undefined;
|
|
189
180
|
} | undefined;
|
|
190
181
|
address_id?: string | null | undefined;
|
|
191
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
192
182
|
}>;
|
|
193
183
|
export type VendorUpdateStockLocationType = z.infer<typeof VendorUpdateStockLocation>;
|
|
194
184
|
/**
|
|
@@ -223,52 +213,52 @@ export declare const VendorUpdateStockLocation: z.ZodObject<{
|
|
|
223
213
|
}, "strip", z.ZodTypeAny, {
|
|
224
214
|
country_code: string;
|
|
225
215
|
address_1: string;
|
|
226
|
-
address_2?: string | null | undefined;
|
|
227
|
-
company?: string | null | undefined;
|
|
228
216
|
city?: string | null | undefined;
|
|
229
|
-
phone?: string | null | undefined;
|
|
230
217
|
postal_code?: string | null | undefined;
|
|
218
|
+
phone?: string | null | undefined;
|
|
231
219
|
province?: string | null | undefined;
|
|
220
|
+
address_2?: string | null | undefined;
|
|
221
|
+
company?: string | null | undefined;
|
|
232
222
|
}, {
|
|
233
223
|
country_code: string;
|
|
234
224
|
address_1: string;
|
|
235
|
-
address_2?: string | null | undefined;
|
|
236
|
-
company?: string | null | undefined;
|
|
237
225
|
city?: string | null | undefined;
|
|
238
|
-
phone?: string | null | undefined;
|
|
239
226
|
postal_code?: string | null | undefined;
|
|
227
|
+
phone?: string | null | undefined;
|
|
240
228
|
province?: string | null | undefined;
|
|
229
|
+
address_2?: string | null | undefined;
|
|
230
|
+
company?: string | null | undefined;
|
|
241
231
|
}>>;
|
|
242
232
|
address_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
243
233
|
metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
244
234
|
}, "strip", z.ZodTypeAny, {
|
|
245
235
|
name?: string | undefined;
|
|
236
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
246
237
|
address?: {
|
|
247
238
|
country_code: string;
|
|
248
239
|
address_1: string;
|
|
249
|
-
address_2?: string | null | undefined;
|
|
250
|
-
company?: string | null | undefined;
|
|
251
240
|
city?: string | null | undefined;
|
|
252
|
-
phone?: string | null | undefined;
|
|
253
241
|
postal_code?: string | null | undefined;
|
|
242
|
+
phone?: string | null | undefined;
|
|
254
243
|
province?: string | null | undefined;
|
|
244
|
+
address_2?: string | null | undefined;
|
|
245
|
+
company?: string | null | undefined;
|
|
255
246
|
} | undefined;
|
|
256
247
|
address_id?: string | null | undefined;
|
|
257
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
258
248
|
}, {
|
|
259
249
|
name?: unknown;
|
|
250
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
260
251
|
address?: {
|
|
261
252
|
country_code: string;
|
|
262
253
|
address_1: string;
|
|
263
|
-
address_2?: string | null | undefined;
|
|
264
|
-
company?: string | null | undefined;
|
|
265
254
|
city?: string | null | undefined;
|
|
266
|
-
phone?: string | null | undefined;
|
|
267
255
|
postal_code?: string | null | undefined;
|
|
256
|
+
phone?: string | null | undefined;
|
|
268
257
|
province?: string | null | undefined;
|
|
258
|
+
address_2?: string | null | undefined;
|
|
259
|
+
company?: string | null | undefined;
|
|
269
260
|
} | undefined;
|
|
270
261
|
address_id?: string | null | undefined;
|
|
271
|
-
metadata?: Record<string, unknown> | null | undefined;
|
|
272
262
|
}>;
|
|
273
263
|
export type VendorCreateStockLocationFulfillmentSetType = z.infer<typeof VendorCreateStockLocationFulfillmentSet>;
|
|
274
264
|
/**
|
|
@@ -10,4 +10,4 @@ exports.default = (0, utils_1.defineLink)(seller_1.default.linkable.seller, {
|
|
|
10
10
|
linkable: promotion_1.default.linkable.campaign,
|
|
11
11
|
isList: true,
|
|
12
12
|
});
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsbGVyLWNhbXBhaWduLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpbmtzL3NlbGxlci1jYW1wYWlnbi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHFEQUF1RDtBQUN2RCwyRUFBeUQ7QUFFekQsK0RBQTZDO0FBRTdDLGtCQUFlLElBQUEsa0JBQVUsRUFDdkIsZ0JBQVksQ0FBQyxRQUFRLENBQUMsTUFBTSxFQUM1QjtJQUNFLFFBQVEsRUFBRSxtQkFBZSxDQUFDLFFBQVEsQ0FBQyxRQUFRO0lBQzNDLE1BQU0sRUFBRSxJQUFJO0NBQ2IsQ0FDRixDQUFDIn0=
|
|
@@ -10,4 +10,4 @@ exports.default = (0, utils_1.defineLink)(seller_1.default.linkable.seller, {
|
|
|
10
10
|
linkable: customer_1.default.linkable.customerGroup,
|
|
11
11
|
isList: true,
|
|
12
12
|
});
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
13
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2VsbGVyLWN1c3RvbWVyLWdyb3VwLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpbmtzL3NlbGxlci1jdXN0b21lci1ncm91cC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLHFEQUFzRDtBQUN0RCx5RUFBc0Q7QUFFdEQsK0RBQTRDO0FBRTVDLGtCQUFlLElBQUEsa0JBQVUsRUFBQyxnQkFBWSxDQUFDLFFBQVEsQ0FBQyxNQUFNLEVBQUU7SUFDdEQsUUFBUSxFQUFFLGtCQUFjLENBQUMsUUFBUSxDQUFDLGFBQWE7SUFDL0MsTUFBTSxFQUFFLElBQUk7Q0FDYixDQUFDLENBQUMifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250617080244 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250617080244 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`alter table if exists "attribute" drop constraint if exists "attribute_handle_unique";`);
|
|
@@ -27,4 +27,4 @@ class Migration20250617080244 extends migrations_1.Migration {
|
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
exports.Migration20250617080244 = Migration20250617080244;
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MTcwODAyNDQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9hdHRyaWJ1dGUvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDYxNzA4MDI0NC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBcUU7QUFFckUsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsd0ZBQXdGLENBQUMsQ0FBQztRQUN0RyxJQUFJLENBQUMsTUFBTSxDQUFDLDhkQUE4ZCxDQUFDLENBQUM7UUFDNWUsSUFBSSxDQUFDLE1BQU0sQ0FBQyxtSEFBbUgsQ0FBQyxDQUFDO1FBQ2pJLElBQUksQ0FBQyxNQUFNLENBQUMsNkdBQTZHLENBQUMsQ0FBQztRQUUzSCxJQUFJLENBQUMsTUFBTSxDQUFDLGtYQUFrWCxDQUFDLENBQUM7UUFDaFksSUFBSSxDQUFDLE1BQU0sQ0FBQywrSUFBK0ksQ0FBQyxDQUFDO1FBQzdKLElBQUksQ0FBQyxNQUFNLENBQUMsMklBQTJJLENBQUMsQ0FBQztRQUN6SixJQUFJLENBQUMsTUFBTSxDQUFDLHlJQUF5SSxDQUFDLENBQUM7UUFFdkosSUFBSSxDQUFDLE1BQU0sQ0FBQyxnV0FBZ1csQ0FBQyxDQUFDO1FBQzlXLElBQUksQ0FBQyxNQUFNLENBQUMsNkhBQTZILENBQUMsQ0FBQztRQUMzSSxJQUFJLENBQUMsTUFBTSxDQUFDLHlIQUF5SCxDQUFDLENBQUM7UUFFdkksSUFBSSxDQUFDLE1BQU0sQ0FBQyxpTkFBaU4sQ0FBQyxDQUFDO1FBRS9OLElBQUksQ0FBQyxNQUFNLENBQUMsK0xBQStMLENBQUMsQ0FBQztJQUMvTSxDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyw2SEFBNkgsQ0FBQyxDQUFDO1FBRTNJLElBQUksQ0FBQyxNQUFNLENBQUMsMkdBQTJHLENBQUMsQ0FBQztRQUV6SCxJQUFJLENBQUMsTUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUM7UUFFekQsSUFBSSxDQUFDLE1BQU0sQ0FBQywwREFBMEQsQ0FBQyxDQUFDO1FBRXhFLElBQUksQ0FBQyxNQUFNLENBQUMsaURBQWlELENBQUMsQ0FBQztJQUNqRSxDQUFDO0NBRUY7QUFsQ0QsMERBa0NDIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250620110849 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250620110849 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`alter table if exists "attribute" add column if not exists "is_filterable" boolean not null default true;`);
|
|
@@ -11,4 +11,4 @@ class Migration20250620110849 extends migrations_1.Migration {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.Migration20250620110849 = Migration20250620110849;
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MjAxMTA4NDkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9hdHRyaWJ1dGUvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDYyMDExMDg0OS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBcUU7QUFFckUsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsMkdBQTJHLENBQUMsQ0FBQztJQUMzSCxDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQywwRUFBMEUsQ0FBQyxDQUFDO0lBQzFGLENBQUM7Q0FFRjtBQVZELDBEQVVDIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250828065431 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250828065431 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`alter table if exists "attribute" add column if not exists "is_required" boolean not null default false;`);
|
|
@@ -11,4 +11,4 @@ class Migration20250828065431 extends migrations_1.Migration {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
exports.Migration20250828065431 = Migration20250828065431;
|
|
14
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
14
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA4MjgwNjU0MzEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9hdHRyaWJ1dGUvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDgyODA2NTQzMS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBcUU7QUFFckUsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMsMEdBQTBHLENBQUMsQ0FBQztJQUMxSCxDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FBQyx3RUFBd0UsQ0FBQyxDQUFDO0lBQ3hGLENBQUM7Q0FFRjtBQVZELDBEQVVDIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityManager } from "@mikro-orm/knex";
|
|
1
|
+
import { EntityManager } from "@medusajs/framework/mikro-orm/knex";
|
|
2
2
|
import { UpdateAttributeDTO } from "@mercurjs/framework";
|
|
3
3
|
import { Context, DAL, InferTypeOf } from "@medusajs/framework/types";
|
|
4
4
|
import Attribute from "./models/attribute";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250114063624 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250114063624 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql('create table if not exists "configuration_rule" ("id" text not null, "rule_type" text check ("rule_type" in (\'global_product_catalog\', \'require_product_approval\', \'product_request_enabled\')) not null, "is_enabled" boolean not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "configuration_rule_pkey" primary key ("id"));');
|
|
@@ -13,4 +13,4 @@ class Migration20250114063624 extends migrations_1.Migration {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.Migration20250114063624 = Migration20250114063624;
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAxMTQwNjM2MjQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9jb25maWd1cmF0aW9uL21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTAxMTQwNjM2MjQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUVBQXFFO0FBRXJFLE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFcEQsS0FBSyxDQUFDLEVBQUU7UUFDTixJQUFJLENBQUMsTUFBTSxDQUFDLDBhQUEwYSxDQUFDLENBQUM7UUFDeGIsSUFBSSxDQUFDLE1BQU0sQ0FBQywySUFBMkksQ0FBQyxDQUFDO1FBQ3pKLElBQUksQ0FBQyxNQUFNLENBQUMsK0hBQStILENBQUMsQ0FBQztJQUMvSSxDQUFDO0lBRUQsS0FBSyxDQUFDLElBQUk7UUFDUixJQUFJLENBQUMsTUFBTSxDQUFDLG9EQUFvRCxDQUFDLENBQUM7SUFDcEUsQ0FBQztDQUVGO0FBWkQsMERBWUMifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250324131111 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250324131111 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`alter table if exists "configuration_rule" drop constraint if exists "configuration_rule_rule_type_check";`);
|
|
@@ -13,4 +13,4 @@ class Migration20250324131111 extends migrations_1.Migration {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
exports.Migration20250324131111 = Migration20250324131111;
|
|
16
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
16
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAzMjQxMzExMTEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9jb25maWd1cmF0aW9uL21pZ3JhdGlvbnMvTWlncmF0aW9uMjAyNTAzMjQxMzExMTEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEseUVBQXFFO0FBRXJFLE1BQWEsdUJBQXdCLFNBQVEsc0JBQVM7SUFFM0MsS0FBSyxDQUFDLEVBQUU7UUFDZixJQUFJLENBQUMsTUFBTSxDQUFDLDRHQUE0RyxDQUFDLENBQUM7UUFFMUgsSUFBSSxDQUFDLE1BQU0sQ0FBQyxtT0FBbU8sQ0FBQyxDQUFDO0lBQ25QLENBQUM7SUFFUSxLQUFLLENBQUMsSUFBSTtRQUNqQixJQUFJLENBQUMsTUFBTSxDQUFDLDRHQUE0RyxDQUFDLENBQUM7UUFFMUgsSUFBSSxDQUFDLE1BQU0sQ0FBQyx5TUFBeU0sQ0FBQyxDQUFDO0lBQ3pOLENBQUM7Q0FFRjtBQWRELDBEQWNDIn0=
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20241207151814 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20241207151814 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql('create table if not exists "order_set" ("id" text not null, "display_id" serial, "sales_channel_id" text not null, "cart_id" text not null, "customer_id" text null, "payment_collection_id" text not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "order_set_pkey" primary key ("id"));');
|
|
@@ -12,4 +12,4 @@ class Migration20241207151814 extends migrations_1.Migration {
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
exports.Migration20241207151814 = Migration20241207151814;
|
|
15
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
15
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNDEyMDcxNTE4MTQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9tYXJrZXRwbGFjZS9taWdyYXRpb25zL01pZ3JhdGlvbjIwMjQxMjA3MTUxODE0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7OztBQUFBLHlFQUFvRTtBQUVwRSxNQUFhLHVCQUF3QixTQUFRLHNCQUFTO0lBQ3BELEtBQUssQ0FBQyxFQUFFO1FBQ04sSUFBSSxDQUFDLE1BQU0sQ0FDVCwrWEFBK1gsQ0FDaFksQ0FBQTtRQUNELElBQUksQ0FBQyxNQUFNLENBQ1QsNkdBQTZHLENBQzlHLENBQUE7SUFDSCxDQUFDO0lBRUQsS0FBSyxDQUFDLElBQUk7UUFDUixJQUFJLENBQUMsTUFBTSxDQUFDLDJDQUEyQyxDQUFDLENBQUE7SUFDMUQsQ0FBQztDQUNGO0FBYkQsMERBYUMifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250317090626 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250317090626 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`alter table if exists "onboarding" drop constraint if exists "onboarding_payout_account_id_unique";`);
|
|
@@ -25,4 +25,4 @@ class Migration20250317090626 extends migrations_1.Migration {
|
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
exports.Migration20250317090626 = Migration20250317090626;
|
|
28
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
28
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTAzMTcwOTA2MjYuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9wYXlvdXQvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDMxNzA5MDYyNi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBcUU7QUFFckUsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUUzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQUMscUdBQXFHLENBQUMsQ0FBQztRQUNuSCxJQUFJLENBQUMsTUFBTSxDQUFDLG9hQUFvYSxDQUFDLENBQUM7UUFDbGIsSUFBSSxDQUFDLE1BQU0sQ0FBQyx1SEFBdUgsQ0FBQyxDQUFDO1FBRXJJLElBQUksQ0FBQyxNQUFNLENBQUMsc1hBQXNYLENBQUMsQ0FBQztRQUNwWSxJQUFJLENBQUMsTUFBTSxDQUFDLHFIQUFxSCxDQUFDLENBQUM7UUFDbkksSUFBSSxDQUFDLE1BQU0sQ0FBQyx1R0FBdUcsQ0FBQyxDQUFDO1FBRXJILElBQUksQ0FBQyxNQUFNLENBQUMsNlRBQTZULENBQUMsQ0FBQztRQUMzVSxJQUFJLENBQUMsTUFBTSxDQUFDLDJJQUEySSxDQUFDLENBQUM7UUFDekosSUFBSSxDQUFDLE1BQU0sQ0FBQywrR0FBK0csQ0FBQyxDQUFDO1FBRTdILElBQUksQ0FBQyxNQUFNLENBQUMsMEtBQTBLLENBQUMsQ0FBQztRQUV4TCxJQUFJLENBQUMsTUFBTSxDQUFDLGtMQUFrTCxDQUFDLENBQUM7SUFDbE0sQ0FBQztJQUVRLEtBQUssQ0FBQyxJQUFJO1FBQ2pCLElBQUksQ0FBQyxNQUFNLENBQUMsOEZBQThGLENBQUMsQ0FBQztRQUU1RyxJQUFJLENBQUMsTUFBTSxDQUFDLHNHQUFzRyxDQUFDLENBQUM7UUFFcEgsSUFBSSxDQUFDLE1BQU0sQ0FBQyxnREFBZ0QsQ0FBQyxDQUFDO1FBRTlELElBQUksQ0FBQyxNQUFNLENBQUMsd0NBQXdDLENBQUMsQ0FBQztRQUV0RCxJQUFJLENBQUMsTUFBTSxDQUFDLDRDQUE0QyxDQUFDLENBQUM7SUFDNUQsQ0FBQztDQUVGO0FBaENELDBEQWdDQyJ9
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Migration20250612144913 = void 0;
|
|
4
|
-
const migrations_1 = require("@mikro-orm/migrations");
|
|
4
|
+
const migrations_1 = require("@medusajs/framework/mikro-orm/migrations");
|
|
5
5
|
class Migration20250612144913 extends migrations_1.Migration {
|
|
6
6
|
async up() {
|
|
7
7
|
this.addSql(`create table if not exists "payout_reversal" ("id" text not null, "currency_code" text not null, "amount" numeric not null, "data" jsonb null, "payout_id" text not null, "raw_amount" jsonb not null, "created_at" timestamptz not null default now(), "updated_at" timestamptz not null default now(), "deleted_at" timestamptz null, constraint "payout_reversal_pkey" primary key ("id"));`);
|
|
@@ -15,4 +15,4 @@ class Migration20250612144913 extends migrations_1.Migration {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
exports.Migration20250612144913 = Migration20250612144913;
|
|
18
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
18
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiTWlncmF0aW9uMjAyNTA2MTIxNDQ5MTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvbW9kdWxlcy9wYXlvdXQvbWlncmF0aW9ucy9NaWdyYXRpb24yMDI1MDYxMjE0NDkxMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBQSx5RUFBb0U7QUFFcEUsTUFBYSx1QkFBd0IsU0FBUSxzQkFBUztJQUMzQyxLQUFLLENBQUMsRUFBRTtRQUNmLElBQUksQ0FBQyxNQUFNLENBQ1QsZ1lBQWdZLENBQ2pZLENBQUE7UUFDRCxJQUFJLENBQUMsTUFBTSxDQUNULHVIQUF1SCxDQUN4SCxDQUFBO1FBQ0QsSUFBSSxDQUFDLE1BQU0sQ0FDVCx5SEFBeUgsQ0FDMUgsQ0FBQTtRQUVELElBQUksQ0FBQyxNQUFNLENBQ1Qsb0tBQW9LLENBQ3JLLENBQUE7SUFDSCxDQUFDO0lBRVEsS0FBSyxDQUFDLElBQUk7UUFDakIsSUFBSSxDQUFDLE1BQU0sQ0FDVCx3R0FBd0csQ0FDekcsQ0FBQTtRQUVELElBQUksQ0FBQyxNQUFNLENBQUMsaURBQWlELENBQUMsQ0FBQTtJQUNoRSxDQUFDO0NBQ0Y7QUF4QkQsMERBd0JDIn0=
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EntityManager } from "@mikro-orm/knex";
|
|
1
|
+
import { EntityManager } from "@medusajs/framework/mikro-orm/knex";
|
|
2
2
|
import { Context } from "@medusajs/framework/types";
|
|
3
3
|
import { CreateOnboardingDTO, CreatePayoutAccountDTO, CreatePayoutDTO, CreatePayoutReversalDTO, IPayoutProvider, PayoutAccountStatus, PayoutWebhookActionPayload } from "@mercurjs/framework";
|
|
4
4
|
type InjectedDependencies = {
|