@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/medusa-extended",
3
- "version": "1.9.0",
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.5",
28
- "@thorprovider/types": "^5.1.3"
27
+ "@thorprovider/adapters": "^5.0.6",
28
+ "@thorprovider/types": "^5.1.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "msw": "^2.12.3",
@@ -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].min_quantity).toBe(5)
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, min_quantity: 5, max_quantity: 10 },
296
- { sale_amount: 3500, min_quantity: 11 },
295
+ { sale_amount: 4000, minQuantity: 5, maxQuantity: 10 },
296
+ { sale_amount: 3500, minQuantity: 11 },
297
297
  ],
298
298
  }],
299
299
  })
@@ -450,7 +450,7 @@ export class DropshipperClient {
450
450
  }
451
451
 
452
452
  /**
453
- * Validate cart items for checkout — returns current stock_quantity, sale_price,
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
  *