@thorprovider/types 5.1.5 → 5.1.6

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/dist/index.d.mts CHANGED
@@ -4181,6 +4181,10 @@ interface CreateOrderItem {
4181
4181
  quantity: number;
4182
4182
  /** Optional override for the sale price. If omitted, the backend uses the dropshipper's configured sale price. */
4183
4183
  unit_price?: number;
4184
+ /** Provider cost baseline at order build time (draft persistence). Optional; draft flows store it to detect catalog cost changes. */
4185
+ cost_price?: number;
4186
+ /** Catalog sale price baseline at order build time (draft persistence). Optional; draft flows store it to detect catalog sale changes. */
4187
+ catalog_sale_price?: number;
4184
4188
  }
4185
4189
  /** Body for `POST /admin/thor/dropshipper/orders` */
4186
4190
  interface CreateDropshipperOrderBody {
@@ -4298,6 +4302,10 @@ interface DropshipperDraftOrderItem {
4298
4302
  sale_price?: number;
4299
4303
  /** Minimum quantity for the tier price that produced the effective sale price. */
4300
4304
  applied_tier_min_qty?: number | null;
4305
+ /** Provider cost baseline stored when the draft line was built. */
4306
+ cost_price?: number;
4307
+ /** Catalog sale price baseline stored when the draft line was built. */
4308
+ catalog_sale_price?: number;
4301
4309
  }
4302
4310
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
4303
4311
  interface DropshipperDraftOrder {
package/dist/index.d.ts CHANGED
@@ -4181,6 +4181,10 @@ interface CreateOrderItem {
4181
4181
  quantity: number;
4182
4182
  /** Optional override for the sale price. If omitted, the backend uses the dropshipper's configured sale price. */
4183
4183
  unit_price?: number;
4184
+ /** Provider cost baseline at order build time (draft persistence). Optional; draft flows store it to detect catalog cost changes. */
4185
+ cost_price?: number;
4186
+ /** Catalog sale price baseline at order build time (draft persistence). Optional; draft flows store it to detect catalog sale changes. */
4187
+ catalog_sale_price?: number;
4184
4188
  }
4185
4189
  /** Body for `POST /admin/thor/dropshipper/orders` */
4186
4190
  interface CreateDropshipperOrderBody {
@@ -4298,6 +4302,10 @@ interface DropshipperDraftOrderItem {
4298
4302
  sale_price?: number;
4299
4303
  /** Minimum quantity for the tier price that produced the effective sale price. */
4300
4304
  applied_tier_min_qty?: number | null;
4305
+ /** Provider cost baseline stored when the draft line was built. */
4306
+ cost_price?: number;
4307
+ /** Catalog sale price baseline stored when the draft line was built. */
4308
+ catalog_sale_price?: number;
4301
4309
  }
4302
4310
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
4303
4311
  interface DropshipperDraftOrder {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "5.1.5",
3
+ "version": "5.1.6",
4
4
  "description": "Shared TypeScript types for Thor Commerce ecosystem - Framework-agnostic type definitions",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -583,6 +583,10 @@ export interface CreateOrderItem {
583
583
  quantity: number;
584
584
  /** Optional override for the sale price. If omitted, the backend uses the dropshipper's configured sale price. */
585
585
  unit_price?: number;
586
+ /** Provider cost baseline at order build time (draft persistence). Optional; draft flows store it to detect catalog cost changes. */
587
+ cost_price?: number;
588
+ /** Catalog sale price baseline at order build time (draft persistence). Optional; draft flows store it to detect catalog sale changes. */
589
+ catalog_sale_price?: number;
586
590
  }
587
591
 
588
592
  /** Body for `POST /admin/thor/dropshipper/orders` */
@@ -701,6 +705,10 @@ export interface DropshipperDraftOrderItem {
701
705
  sale_price?: number;
702
706
  /** Minimum quantity for the tier price that produced the effective sale price. */
703
707
  applied_tier_min_qty?: number | null;
708
+ /** Provider cost baseline stored when the draft line was built. */
709
+ cost_price?: number;
710
+ /** Catalog sale price baseline stored when the draft line was built. */
711
+ catalog_sale_price?: number;
704
712
  }
705
713
 
706
714
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */