@thorprovider/types 3.16.0 → 4.0.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/dist/index.d.mts CHANGED
@@ -3790,6 +3790,10 @@ interface DropshipperVariant {
3790
3790
  title: string;
3791
3791
  sku: string | null;
3792
3792
  stock_quantity: number;
3793
+ /** Whether inventory is tracked for this variant */
3794
+ manage_inventory: boolean;
3795
+ /** Whether backorders are allowed when out of stock */
3796
+ allow_backorder: boolean;
3793
3797
  /** Price Y pays to X. Read-only for Y. */
3794
3798
  cost_price: number;
3795
3799
  cost_price_currency: string;
@@ -3828,6 +3832,15 @@ interface DropshipperProduct {
3828
3832
  subtitle?: string | null;
3829
3833
  description?: string | null;
3830
3834
  handle?: string | null;
3835
+ /** Physical dimensions and shipping metadata */
3836
+ width?: number | null;
3837
+ height?: number | null;
3838
+ length?: number | null;
3839
+ weight?: number | null;
3840
+ material?: string | null;
3841
+ origin_country?: string | null;
3842
+ hs_code?: string | null;
3843
+ mid_code?: string | null;
3831
3844
  collection?: {
3832
3845
  id: string;
3833
3846
  title: string;
package/dist/index.d.ts CHANGED
@@ -3790,6 +3790,10 @@ interface DropshipperVariant {
3790
3790
  title: string;
3791
3791
  sku: string | null;
3792
3792
  stock_quantity: number;
3793
+ /** Whether inventory is tracked for this variant */
3794
+ manage_inventory: boolean;
3795
+ /** Whether backorders are allowed when out of stock */
3796
+ allow_backorder: boolean;
3793
3797
  /** Price Y pays to X. Read-only for Y. */
3794
3798
  cost_price: number;
3795
3799
  cost_price_currency: string;
@@ -3828,6 +3832,15 @@ interface DropshipperProduct {
3828
3832
  subtitle?: string | null;
3829
3833
  description?: string | null;
3830
3834
  handle?: string | null;
3835
+ /** Physical dimensions and shipping metadata */
3836
+ width?: number | null;
3837
+ height?: number | null;
3838
+ length?: number | null;
3839
+ weight?: number | null;
3840
+ material?: string | null;
3841
+ origin_country?: string | null;
3842
+ hs_code?: string | null;
3843
+ mid_code?: string | null;
3831
3844
  collection?: {
3832
3845
  id: string;
3833
3846
  title: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "3.16.0",
3
+ "version": "4.0.1",
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",
@@ -161,6 +161,10 @@ export interface DropshipperVariant {
161
161
  title: string;
162
162
  sku: string | null;
163
163
  stock_quantity: number;
164
+ /** Whether inventory is tracked for this variant */
165
+ manage_inventory: boolean;
166
+ /** Whether backorders are allowed when out of stock */
167
+ allow_backorder: boolean;
164
168
  /** Price Y pays to X. Read-only for Y. */
165
169
  cost_price: number;
166
170
  cost_price_currency: string;
@@ -200,6 +204,15 @@ export interface DropshipperProduct {
200
204
  subtitle?: string | null;
201
205
  description?: string | null;
202
206
  handle?: string | null;
207
+ /** Physical dimensions and shipping metadata */
208
+ width?: number | null;
209
+ height?: number | null;
210
+ length?: number | null;
211
+ weight?: number | null;
212
+ material?: string | null;
213
+ origin_country?: string | null;
214
+ hs_code?: string | null;
215
+ mid_code?: string | null;
203
216
  collection?: {
204
217
  id: string;
205
218
  title: string;