@thorprovider/medusa-extended 1.9.0 → 1.9.1
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/package.json +3 -3
- package/src/dropshipper.test.ts +3 -3
- package/src/dropshipper.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thorprovider/medusa-extended",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.1",
|
|
4
4
|
"description": "Thor Commerce multi-tenant admin extensions for Medusa v2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"test": "vitest run --config vitest.config.ts"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@thorprovider/adapters": "^5.0.
|
|
28
|
-
"@thorprovider/types": "^5.1.
|
|
27
|
+
"@thorprovider/adapters": "^5.0.6",
|
|
28
|
+
"@thorprovider/types": "^5.1.5"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"msw": "^2.12.3",
|
package/src/dropshipper.test.ts
CHANGED
|
@@ -281,7 +281,7 @@ describe('DropshipperClient.updatePrices', () => {
|
|
|
281
281
|
expect(body.prices).toHaveLength(1)
|
|
282
282
|
expect(body.prices[0].tiers).toHaveLength(2)
|
|
283
283
|
expect(body.prices[0].tiers[0].sale_amount).toBe(4000)
|
|
284
|
-
expect(body.prices[0].tiers[0].
|
|
284
|
+
expect(body.prices[0].tiers[0].minQuantity).toBe(5)
|
|
285
285
|
return HttpResponse.json({ updated: 1, account_id: 'acc_01' })
|
|
286
286
|
}),
|
|
287
287
|
)
|
|
@@ -292,8 +292,8 @@ describe('DropshipperClient.updatePrices', () => {
|
|
|
292
292
|
variant_id: 'var_1',
|
|
293
293
|
amount: 5000,
|
|
294
294
|
tiers: [
|
|
295
|
-
{ sale_amount: 4000,
|
|
296
|
-
{ sale_amount: 3500,
|
|
295
|
+
{ sale_amount: 4000, minQuantity: 5, maxQuantity: 10 },
|
|
296
|
+
{ sale_amount: 3500, minQuantity: 11 },
|
|
297
297
|
],
|
|
298
298
|
}],
|
|
299
299
|
})
|
package/src/dropshipper.ts
CHANGED
|
@@ -450,7 +450,7 @@ export class DropshipperClient {
|
|
|
450
450
|
}
|
|
451
451
|
|
|
452
452
|
/**
|
|
453
|
-
* Validate cart items for checkout — returns current
|
|
453
|
+
* Validate cart items for checkout — returns current availableQuantity, sale_price,
|
|
454
454
|
* and cost_price for each variant so the client can detect stale prices or
|
|
455
455
|
* insufficient stock before creating an order or converting a draft.
|
|
456
456
|
*
|