@thorprovider/types 3.13.5 → 3.14.0

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
@@ -3807,6 +3807,20 @@ interface DropshipperProduct {
3807
3807
  /** Default margin applied to variants that do not have an override. */
3808
3808
  margin_percent?: number;
3809
3809
  variants: DropshipperVariant[];
3810
+ subtitle?: string | null;
3811
+ description?: string | null;
3812
+ handle?: string | null;
3813
+ collection?: {
3814
+ id: string;
3815
+ title: string;
3816
+ handle?: string;
3817
+ } | null;
3818
+ medusa_categories?: Array<{
3819
+ id: string;
3820
+ name: string;
3821
+ handle?: string;
3822
+ parent_category_id?: string | null;
3823
+ }>;
3810
3824
  }
3811
3825
  /** Options for `GET /admin/thor/dropshipper/products` */
3812
3826
  interface GetDropshipperProductsOptions {
@@ -4136,23 +4150,17 @@ interface DropshipperDraftOrderItem {
4136
4150
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
4137
4151
  interface DropshipperDraftOrder {
4138
4152
  id: string;
4153
+ display_id: number;
4139
4154
  sales_channel_id: string;
4140
4155
  customer_id: string | null;
4141
4156
  email: string;
4142
4157
  currency_code: string;
4143
4158
  region_id: string;
4144
- items: Array<{
4145
- variant_id: string;
4146
- quantity: number;
4147
- unit_price: number;
4148
- title: string;
4149
- sku?: string;
4150
- thumbnail?: string;
4151
- metadata?: Record<string, unknown>;
4152
- }>;
4159
+ items: DropshipperDraftOrderItem[];
4153
4160
  shipping_address: DropshipperOrderShippingAddress | null;
4154
4161
  billing_address: DropshipperOrderShippingAddress | null;
4155
4162
  shipping_method_id: string | null;
4163
+ payment_method_id: string | null;
4156
4164
  notes: string | null;
4157
4165
  converted_order_id: string | null;
4158
4166
  converted_at: string | null;
@@ -4165,6 +4173,20 @@ interface DropshipperDraftOrder {
4165
4173
  estimated_total?: number;
4166
4174
  /** UI-computed profit. */
4167
4175
  total_profit?: number;
4176
+ /** UI-computed grand total. */
4177
+ total?: number;
4178
+ customer?: DropshipperOrderCustomer & {
4179
+ phone?: string;
4180
+ };
4181
+ shipping_method?: {
4182
+ id: string;
4183
+ name: string;
4184
+ amount: number;
4185
+ } | null;
4186
+ payment_method?: {
4187
+ id: string;
4188
+ name: string;
4189
+ } | null;
4168
4190
  }
4169
4191
  /** Options for `GET /admin/thor/dropshipper/draft-orders` */
4170
4192
  interface GetDropshipperDraftOrdersOptions {
@@ -4191,6 +4213,7 @@ interface CreateDropshipperDraftOrderBody {
4191
4213
  shipping_address?: DropshipperOrderShippingAddress;
4192
4214
  billing_address?: DropshipperOrderShippingAddress;
4193
4215
  shipping_method_id?: string;
4216
+ payment_method_id?: string;
4194
4217
  notes?: string;
4195
4218
  }
4196
4219
  /** Response for `POST /admin/thor/dropshipper/draft-orders` */
@@ -4208,6 +4231,7 @@ interface UpdateDropshipperDraftOrderBody {
4208
4231
  shipping_address?: DropshipperOrderShippingAddress;
4209
4232
  billing_address?: DropshipperOrderShippingAddress;
4210
4233
  shipping_method_id?: string;
4234
+ payment_method_id?: string;
4211
4235
  notes?: string;
4212
4236
  }
4213
4237
  /** Response for `POST /admin/thor/dropshipper/draft-orders/:id` */
@@ -5265,20 +5289,20 @@ interface GeoCountry {
5265
5289
  iso_2: string;
5266
5290
  iso_3: string;
5267
5291
  name: string;
5268
- display_name: string;
5292
+ display_name: string | null;
5269
5293
  }
5270
5294
  /** A geo-reference province/state */
5271
5295
  interface GeoProvince {
5272
5296
  id: string;
5273
5297
  code: string;
5274
5298
  name: string;
5275
- display_name: string;
5299
+ display_name: string | null;
5276
5300
  }
5277
5301
  /** A geo-reference city */
5278
5302
  interface GeoCity {
5279
5303
  id: string;
5280
5304
  name: string;
5281
- display_name: string;
5305
+ display_name: string | null;
5282
5306
  }
5283
5307
  /** Response for `GET /admin/geo-reference` */
5284
5308
  interface GetGeoCountriesResponse {
package/dist/index.d.ts CHANGED
@@ -3807,6 +3807,20 @@ interface DropshipperProduct {
3807
3807
  /** Default margin applied to variants that do not have an override. */
3808
3808
  margin_percent?: number;
3809
3809
  variants: DropshipperVariant[];
3810
+ subtitle?: string | null;
3811
+ description?: string | null;
3812
+ handle?: string | null;
3813
+ collection?: {
3814
+ id: string;
3815
+ title: string;
3816
+ handle?: string;
3817
+ } | null;
3818
+ medusa_categories?: Array<{
3819
+ id: string;
3820
+ name: string;
3821
+ handle?: string;
3822
+ parent_category_id?: string | null;
3823
+ }>;
3810
3824
  }
3811
3825
  /** Options for `GET /admin/thor/dropshipper/products` */
3812
3826
  interface GetDropshipperProductsOptions {
@@ -4136,23 +4150,17 @@ interface DropshipperDraftOrderItem {
4136
4150
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
4137
4151
  interface DropshipperDraftOrder {
4138
4152
  id: string;
4153
+ display_id: number;
4139
4154
  sales_channel_id: string;
4140
4155
  customer_id: string | null;
4141
4156
  email: string;
4142
4157
  currency_code: string;
4143
4158
  region_id: string;
4144
- items: Array<{
4145
- variant_id: string;
4146
- quantity: number;
4147
- unit_price: number;
4148
- title: string;
4149
- sku?: string;
4150
- thumbnail?: string;
4151
- metadata?: Record<string, unknown>;
4152
- }>;
4159
+ items: DropshipperDraftOrderItem[];
4153
4160
  shipping_address: DropshipperOrderShippingAddress | null;
4154
4161
  billing_address: DropshipperOrderShippingAddress | null;
4155
4162
  shipping_method_id: string | null;
4163
+ payment_method_id: string | null;
4156
4164
  notes: string | null;
4157
4165
  converted_order_id: string | null;
4158
4166
  converted_at: string | null;
@@ -4165,6 +4173,20 @@ interface DropshipperDraftOrder {
4165
4173
  estimated_total?: number;
4166
4174
  /** UI-computed profit. */
4167
4175
  total_profit?: number;
4176
+ /** UI-computed grand total. */
4177
+ total?: number;
4178
+ customer?: DropshipperOrderCustomer & {
4179
+ phone?: string;
4180
+ };
4181
+ shipping_method?: {
4182
+ id: string;
4183
+ name: string;
4184
+ amount: number;
4185
+ } | null;
4186
+ payment_method?: {
4187
+ id: string;
4188
+ name: string;
4189
+ } | null;
4168
4190
  }
4169
4191
  /** Options for `GET /admin/thor/dropshipper/draft-orders` */
4170
4192
  interface GetDropshipperDraftOrdersOptions {
@@ -4191,6 +4213,7 @@ interface CreateDropshipperDraftOrderBody {
4191
4213
  shipping_address?: DropshipperOrderShippingAddress;
4192
4214
  billing_address?: DropshipperOrderShippingAddress;
4193
4215
  shipping_method_id?: string;
4216
+ payment_method_id?: string;
4194
4217
  notes?: string;
4195
4218
  }
4196
4219
  /** Response for `POST /admin/thor/dropshipper/draft-orders` */
@@ -4208,6 +4231,7 @@ interface UpdateDropshipperDraftOrderBody {
4208
4231
  shipping_address?: DropshipperOrderShippingAddress;
4209
4232
  billing_address?: DropshipperOrderShippingAddress;
4210
4233
  shipping_method_id?: string;
4234
+ payment_method_id?: string;
4211
4235
  notes?: string;
4212
4236
  }
4213
4237
  /** Response for `POST /admin/thor/dropshipper/draft-orders/:id` */
@@ -5265,20 +5289,20 @@ interface GeoCountry {
5265
5289
  iso_2: string;
5266
5290
  iso_3: string;
5267
5291
  name: string;
5268
- display_name: string;
5292
+ display_name: string | null;
5269
5293
  }
5270
5294
  /** A geo-reference province/state */
5271
5295
  interface GeoProvince {
5272
5296
  id: string;
5273
5297
  code: string;
5274
5298
  name: string;
5275
- display_name: string;
5299
+ display_name: string | null;
5276
5300
  }
5277
5301
  /** A geo-reference city */
5278
5302
  interface GeoCity {
5279
5303
  id: string;
5280
5304
  name: string;
5281
- display_name: string;
5305
+ display_name: string | null;
5282
5306
  }
5283
5307
  /** Response for `GET /admin/geo-reference` */
5284
5308
  interface GetGeoCountriesResponse {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "3.13.5",
3
+ "version": "3.14.0",
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",
@@ -179,6 +179,20 @@ export interface DropshipperProduct {
179
179
  /** Default margin applied to variants that do not have an override. */
180
180
  margin_percent?: number;
181
181
  variants: DropshipperVariant[];
182
+ subtitle?: string | null;
183
+ description?: string | null;
184
+ handle?: string | null;
185
+ collection?: {
186
+ id: string;
187
+ title: string;
188
+ handle?: string;
189
+ } | null;
190
+ medusa_categories?: Array<{
191
+ id: string;
192
+ name: string;
193
+ handle?: string;
194
+ parent_category_id?: string | null;
195
+ }>;
182
196
  }
183
197
 
184
198
  /** Options for `GET /admin/thor/dropshipper/products` */
@@ -538,23 +552,17 @@ export interface DropshipperDraftOrderItem {
538
552
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
539
553
  export interface DropshipperDraftOrder {
540
554
  id: string; // Format: "ddraft_..." (custom table ID)
555
+ display_id: number;
541
556
  sales_channel_id: string;
542
557
  customer_id: string | null;
543
558
  email: string;
544
559
  currency_code: string;
545
560
  region_id: string;
546
- items: Array<{
547
- variant_id: string;
548
- quantity: number;
549
- unit_price: number; // Fixed price in cents (dropshipper markup already applied)
550
- title: string;
551
- sku?: string;
552
- thumbnail?: string;
553
- metadata?: Record<string, unknown>;
554
- }>;
561
+ items: DropshipperDraftOrderItem[];
555
562
  shipping_address: DropshipperOrderShippingAddress | null;
556
563
  billing_address: DropshipperOrderShippingAddress | null;
557
564
  shipping_method_id: string | null;
565
+ payment_method_id: string | null;
558
566
  notes: string | null;
559
567
  converted_order_id: string | null; // Reference to Medusa order.id after conversion
560
568
  converted_at: string | null; // ISO timestamp when converted
@@ -567,6 +575,11 @@ export interface DropshipperDraftOrder {
567
575
  estimated_total?: number;
568
576
  /** UI-computed profit. */
569
577
  total_profit?: number;
578
+ /** UI-computed grand total. */
579
+ total?: number;
580
+ customer?: DropshipperOrderCustomer & { phone?: string };
581
+ shipping_method?: { id: string; name: string; amount: number } | null;
582
+ payment_method?: { id: string; name: string } | null;
570
583
  }
571
584
 
572
585
  /** Options for `GET /admin/thor/dropshipper/draft-orders` */
@@ -596,6 +609,7 @@ export interface CreateDropshipperDraftOrderBody {
596
609
  shipping_address?: DropshipperOrderShippingAddress;
597
610
  billing_address?: DropshipperOrderShippingAddress;
598
611
  shipping_method_id?: string;
612
+ payment_method_id?: string;
599
613
  notes?: string;
600
614
  }
601
615
 
@@ -616,6 +630,7 @@ export interface UpdateDropshipperDraftOrderBody {
616
630
  shipping_address?: DropshipperOrderShippingAddress;
617
631
  billing_address?: DropshipperOrderShippingAddress;
618
632
  shipping_method_id?: string;
633
+ payment_method_id?: string;
619
634
  notes?: string;
620
635
  }
621
636
 
@@ -1955,7 +1970,7 @@ export interface GeoCountry {
1955
1970
  iso_2: string;
1956
1971
  iso_3: string;
1957
1972
  name: string;
1958
- display_name: string;
1973
+ display_name: string | null;
1959
1974
  }
1960
1975
 
1961
1976
  /** A geo-reference province/state */
@@ -1963,14 +1978,14 @@ export interface GeoProvince {
1963
1978
  id: string;
1964
1979
  code: string;
1965
1980
  name: string;
1966
- display_name: string;
1981
+ display_name: string | null;
1967
1982
  }
1968
1983
 
1969
1984
  /** A geo-reference city */
1970
1985
  export interface GeoCity {
1971
1986
  id: string;
1972
1987
  name: string;
1973
- display_name: string;
1988
+ display_name: string | null;
1974
1989
  }
1975
1990
 
1976
1991
  /** Response for `GET /admin/geo-reference` */