@thorprovider/types 3.13.5 → 3.13.7

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
@@ -4136,23 +4136,17 @@ interface DropshipperDraftOrderItem {
4136
4136
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
4137
4137
  interface DropshipperDraftOrder {
4138
4138
  id: string;
4139
+ display_id: number;
4139
4140
  sales_channel_id: string;
4140
4141
  customer_id: string | null;
4141
4142
  email: string;
4142
4143
  currency_code: string;
4143
4144
  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
- }>;
4145
+ items: DropshipperDraftOrderItem[];
4153
4146
  shipping_address: DropshipperOrderShippingAddress | null;
4154
4147
  billing_address: DropshipperOrderShippingAddress | null;
4155
4148
  shipping_method_id: string | null;
4149
+ payment_method_id: string | null;
4156
4150
  notes: string | null;
4157
4151
  converted_order_id: string | null;
4158
4152
  converted_at: string | null;
@@ -4165,6 +4159,20 @@ interface DropshipperDraftOrder {
4165
4159
  estimated_total?: number;
4166
4160
  /** UI-computed profit. */
4167
4161
  total_profit?: number;
4162
+ /** UI-computed grand total. */
4163
+ total?: number;
4164
+ customer?: DropshipperOrderCustomer & {
4165
+ phone?: string;
4166
+ };
4167
+ shipping_method?: {
4168
+ id: string;
4169
+ name: string;
4170
+ amount: number;
4171
+ } | null;
4172
+ payment_method?: {
4173
+ id: string;
4174
+ name: string;
4175
+ } | null;
4168
4176
  }
4169
4177
  /** Options for `GET /admin/thor/dropshipper/draft-orders` */
4170
4178
  interface GetDropshipperDraftOrdersOptions {
@@ -4191,6 +4199,7 @@ interface CreateDropshipperDraftOrderBody {
4191
4199
  shipping_address?: DropshipperOrderShippingAddress;
4192
4200
  billing_address?: DropshipperOrderShippingAddress;
4193
4201
  shipping_method_id?: string;
4202
+ payment_method_id?: string;
4194
4203
  notes?: string;
4195
4204
  }
4196
4205
  /** Response for `POST /admin/thor/dropshipper/draft-orders` */
@@ -4208,6 +4217,7 @@ interface UpdateDropshipperDraftOrderBody {
4208
4217
  shipping_address?: DropshipperOrderShippingAddress;
4209
4218
  billing_address?: DropshipperOrderShippingAddress;
4210
4219
  shipping_method_id?: string;
4220
+ payment_method_id?: string;
4211
4221
  notes?: string;
4212
4222
  }
4213
4223
  /** Response for `POST /admin/thor/dropshipper/draft-orders/:id` */
@@ -5265,20 +5275,20 @@ interface GeoCountry {
5265
5275
  iso_2: string;
5266
5276
  iso_3: string;
5267
5277
  name: string;
5268
- display_name: string;
5278
+ display_name: string | null;
5269
5279
  }
5270
5280
  /** A geo-reference province/state */
5271
5281
  interface GeoProvince {
5272
5282
  id: string;
5273
5283
  code: string;
5274
5284
  name: string;
5275
- display_name: string;
5285
+ display_name: string | null;
5276
5286
  }
5277
5287
  /** A geo-reference city */
5278
5288
  interface GeoCity {
5279
5289
  id: string;
5280
5290
  name: string;
5281
- display_name: string;
5291
+ display_name: string | null;
5282
5292
  }
5283
5293
  /** Response for `GET /admin/geo-reference` */
5284
5294
  interface GetGeoCountriesResponse {
package/dist/index.d.ts CHANGED
@@ -4136,23 +4136,17 @@ interface DropshipperDraftOrderItem {
4136
4136
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
4137
4137
  interface DropshipperDraftOrder {
4138
4138
  id: string;
4139
+ display_id: number;
4139
4140
  sales_channel_id: string;
4140
4141
  customer_id: string | null;
4141
4142
  email: string;
4142
4143
  currency_code: string;
4143
4144
  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
- }>;
4145
+ items: DropshipperDraftOrderItem[];
4153
4146
  shipping_address: DropshipperOrderShippingAddress | null;
4154
4147
  billing_address: DropshipperOrderShippingAddress | null;
4155
4148
  shipping_method_id: string | null;
4149
+ payment_method_id: string | null;
4156
4150
  notes: string | null;
4157
4151
  converted_order_id: string | null;
4158
4152
  converted_at: string | null;
@@ -4165,6 +4159,20 @@ interface DropshipperDraftOrder {
4165
4159
  estimated_total?: number;
4166
4160
  /** UI-computed profit. */
4167
4161
  total_profit?: number;
4162
+ /** UI-computed grand total. */
4163
+ total?: number;
4164
+ customer?: DropshipperOrderCustomer & {
4165
+ phone?: string;
4166
+ };
4167
+ shipping_method?: {
4168
+ id: string;
4169
+ name: string;
4170
+ amount: number;
4171
+ } | null;
4172
+ payment_method?: {
4173
+ id: string;
4174
+ name: string;
4175
+ } | null;
4168
4176
  }
4169
4177
  /** Options for `GET /admin/thor/dropshipper/draft-orders` */
4170
4178
  interface GetDropshipperDraftOrdersOptions {
@@ -4191,6 +4199,7 @@ interface CreateDropshipperDraftOrderBody {
4191
4199
  shipping_address?: DropshipperOrderShippingAddress;
4192
4200
  billing_address?: DropshipperOrderShippingAddress;
4193
4201
  shipping_method_id?: string;
4202
+ payment_method_id?: string;
4194
4203
  notes?: string;
4195
4204
  }
4196
4205
  /** Response for `POST /admin/thor/dropshipper/draft-orders` */
@@ -4208,6 +4217,7 @@ interface UpdateDropshipperDraftOrderBody {
4208
4217
  shipping_address?: DropshipperOrderShippingAddress;
4209
4218
  billing_address?: DropshipperOrderShippingAddress;
4210
4219
  shipping_method_id?: string;
4220
+ payment_method_id?: string;
4211
4221
  notes?: string;
4212
4222
  }
4213
4223
  /** Response for `POST /admin/thor/dropshipper/draft-orders/:id` */
@@ -5265,20 +5275,20 @@ interface GeoCountry {
5265
5275
  iso_2: string;
5266
5276
  iso_3: string;
5267
5277
  name: string;
5268
- display_name: string;
5278
+ display_name: string | null;
5269
5279
  }
5270
5280
  /** A geo-reference province/state */
5271
5281
  interface GeoProvince {
5272
5282
  id: string;
5273
5283
  code: string;
5274
5284
  name: string;
5275
- display_name: string;
5285
+ display_name: string | null;
5276
5286
  }
5277
5287
  /** A geo-reference city */
5278
5288
  interface GeoCity {
5279
5289
  id: string;
5280
5290
  name: string;
5281
- display_name: string;
5291
+ display_name: string | null;
5282
5292
  }
5283
5293
  /** Response for `GET /admin/geo-reference` */
5284
5294
  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.13.7",
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",
@@ -538,23 +538,17 @@ export interface DropshipperDraftOrderItem {
538
538
  /** A draft order as returned in list responses (stored in custom table, NOT Medusa orders) */
539
539
  export interface DropshipperDraftOrder {
540
540
  id: string; // Format: "ddraft_..." (custom table ID)
541
+ display_id: number;
541
542
  sales_channel_id: string;
542
543
  customer_id: string | null;
543
544
  email: string;
544
545
  currency_code: string;
545
546
  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
- }>;
547
+ items: DropshipperDraftOrderItem[];
555
548
  shipping_address: DropshipperOrderShippingAddress | null;
556
549
  billing_address: DropshipperOrderShippingAddress | null;
557
550
  shipping_method_id: string | null;
551
+ payment_method_id: string | null;
558
552
  notes: string | null;
559
553
  converted_order_id: string | null; // Reference to Medusa order.id after conversion
560
554
  converted_at: string | null; // ISO timestamp when converted
@@ -567,6 +561,11 @@ export interface DropshipperDraftOrder {
567
561
  estimated_total?: number;
568
562
  /** UI-computed profit. */
569
563
  total_profit?: number;
564
+ /** UI-computed grand total. */
565
+ total?: number;
566
+ customer?: DropshipperOrderCustomer & { phone?: string };
567
+ shipping_method?: { id: string; name: string; amount: number } | null;
568
+ payment_method?: { id: string; name: string } | null;
570
569
  }
571
570
 
572
571
  /** Options for `GET /admin/thor/dropshipper/draft-orders` */
@@ -596,6 +595,7 @@ export interface CreateDropshipperDraftOrderBody {
596
595
  shipping_address?: DropshipperOrderShippingAddress;
597
596
  billing_address?: DropshipperOrderShippingAddress;
598
597
  shipping_method_id?: string;
598
+ payment_method_id?: string;
599
599
  notes?: string;
600
600
  }
601
601
 
@@ -616,6 +616,7 @@ export interface UpdateDropshipperDraftOrderBody {
616
616
  shipping_address?: DropshipperOrderShippingAddress;
617
617
  billing_address?: DropshipperOrderShippingAddress;
618
618
  shipping_method_id?: string;
619
+ payment_method_id?: string;
619
620
  notes?: string;
620
621
  }
621
622
 
@@ -1955,7 +1956,7 @@ export interface GeoCountry {
1955
1956
  iso_2: string;
1956
1957
  iso_3: string;
1957
1958
  name: string;
1958
- display_name: string;
1959
+ display_name: string | null;
1959
1960
  }
1960
1961
 
1961
1962
  /** A geo-reference province/state */
@@ -1963,14 +1964,14 @@ export interface GeoProvince {
1963
1964
  id: string;
1964
1965
  code: string;
1965
1966
  name: string;
1966
- display_name: string;
1967
+ display_name: string | null;
1967
1968
  }
1968
1969
 
1969
1970
  /** A geo-reference city */
1970
1971
  export interface GeoCity {
1971
1972
  id: string;
1972
1973
  name: string;
1973
- display_name: string;
1974
+ display_name: string | null;
1974
1975
  }
1975
1976
 
1976
1977
  /** Response for `GET /admin/geo-reference` */