@thorprovider/types 5.6.1 → 5.6.3

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
@@ -4597,6 +4597,37 @@ interface DropshipperOrderClaim {
4597
4597
  /** Inbound items being claimed */
4598
4598
  items: DropshipperClaimItem[];
4599
4599
  }
4600
+ /** An item shipped as part of a fulfillment */
4601
+ interface DropshipperFulfillmentItem {
4602
+ /** Order line item id this fulfillment item was created from */
4603
+ item_id: string | null;
4604
+ title: string;
4605
+ sku: string | null;
4606
+ quantity: number;
4607
+ }
4608
+ /** A shipping label attached to a fulfillment */
4609
+ interface DropshipperFulfillmentLabel {
4610
+ id: string;
4611
+ tracking_number: string | null;
4612
+ tracking_url: string | null;
4613
+ label_url: string | null;
4614
+ }
4615
+ /** A fulfillment on an order (read-only; the dropshipper does not manage shipments) */
4616
+ interface DropshipperOrderFulfillment {
4617
+ id: string;
4618
+ /** Computed from dates: pending, packed, shipped, delivered, canceled */
4619
+ status: string;
4620
+ created_at: string | null;
4621
+ packed_at: string | null;
4622
+ shipped_at: string | null;
4623
+ delivered_at: string | null;
4624
+ canceled_at: string | null;
4625
+ provider_id: string | null;
4626
+ /** Name of the stock location the fulfillment ships from, when resolvable */
4627
+ location_name: string | null;
4628
+ items: DropshipperFulfillmentItem[];
4629
+ labels: DropshipperFulfillmentLabel[];
4630
+ }
4600
4631
  /** Full order detail as returned by GET /admin/thor/dropshipper/orders/:id */
4601
4632
  interface DropshipperOrderDetail {
4602
4633
  id: string;
@@ -4622,6 +4653,8 @@ interface DropshipperOrderDetail {
4622
4653
  exchanges?: DropshipperOrderExchange[];
4623
4654
  /** Claims on the order, read-only (contract v3, optional) */
4624
4655
  claims?: DropshipperOrderClaim[];
4656
+ /** Fulfillments on the order, read-only (optional) */
4657
+ fulfillments?: DropshipperOrderFulfillment[];
4625
4658
  transactions: DropshipperTransaction[];
4626
4659
  financial_summary: DropshipperFinancialSummary;
4627
4660
  timeline: DropshipperOrderTimelineEvent[];
@@ -5174,6 +5207,10 @@ interface DropshipperPaymentMethodConfig {
5174
5207
  interface DropshipperAccount {
5175
5208
  id: string;
5176
5209
  provider_name: string;
5210
+ provider_email?: string | null;
5211
+ provider_phone?: string | null;
5212
+ provider_address?: string | null;
5213
+ provider_contact_name?: string | null;
5177
5214
  currency_code: string;
5178
5215
  payment_terms_days: number;
5179
5216
  balance: DropshipperBalance;
package/dist/index.d.ts CHANGED
@@ -4597,6 +4597,37 @@ interface DropshipperOrderClaim {
4597
4597
  /** Inbound items being claimed */
4598
4598
  items: DropshipperClaimItem[];
4599
4599
  }
4600
+ /** An item shipped as part of a fulfillment */
4601
+ interface DropshipperFulfillmentItem {
4602
+ /** Order line item id this fulfillment item was created from */
4603
+ item_id: string | null;
4604
+ title: string;
4605
+ sku: string | null;
4606
+ quantity: number;
4607
+ }
4608
+ /** A shipping label attached to a fulfillment */
4609
+ interface DropshipperFulfillmentLabel {
4610
+ id: string;
4611
+ tracking_number: string | null;
4612
+ tracking_url: string | null;
4613
+ label_url: string | null;
4614
+ }
4615
+ /** A fulfillment on an order (read-only; the dropshipper does not manage shipments) */
4616
+ interface DropshipperOrderFulfillment {
4617
+ id: string;
4618
+ /** Computed from dates: pending, packed, shipped, delivered, canceled */
4619
+ status: string;
4620
+ created_at: string | null;
4621
+ packed_at: string | null;
4622
+ shipped_at: string | null;
4623
+ delivered_at: string | null;
4624
+ canceled_at: string | null;
4625
+ provider_id: string | null;
4626
+ /** Name of the stock location the fulfillment ships from, when resolvable */
4627
+ location_name: string | null;
4628
+ items: DropshipperFulfillmentItem[];
4629
+ labels: DropshipperFulfillmentLabel[];
4630
+ }
4600
4631
  /** Full order detail as returned by GET /admin/thor/dropshipper/orders/:id */
4601
4632
  interface DropshipperOrderDetail {
4602
4633
  id: string;
@@ -4622,6 +4653,8 @@ interface DropshipperOrderDetail {
4622
4653
  exchanges?: DropshipperOrderExchange[];
4623
4654
  /** Claims on the order, read-only (contract v3, optional) */
4624
4655
  claims?: DropshipperOrderClaim[];
4656
+ /** Fulfillments on the order, read-only (optional) */
4657
+ fulfillments?: DropshipperOrderFulfillment[];
4625
4658
  transactions: DropshipperTransaction[];
4626
4659
  financial_summary: DropshipperFinancialSummary;
4627
4660
  timeline: DropshipperOrderTimelineEvent[];
@@ -5174,6 +5207,10 @@ interface DropshipperPaymentMethodConfig {
5174
5207
  interface DropshipperAccount {
5175
5208
  id: string;
5176
5209
  provider_name: string;
5210
+ provider_email?: string | null;
5211
+ provider_phone?: string | null;
5212
+ provider_address?: string | null;
5213
+ provider_contact_name?: string | null;
5177
5214
  currency_code: string;
5178
5215
  payment_terms_days: number;
5179
5216
  balance: DropshipperBalance;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thorprovider/types",
3
- "version": "5.6.1",
3
+ "version": "5.6.3",
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",
@@ -835,6 +835,40 @@ export interface DropshipperOrderClaim {
835
835
  items: DropshipperClaimItem[];
836
836
  }
837
837
 
838
+ /** An item shipped as part of a fulfillment */
839
+ export interface DropshipperFulfillmentItem {
840
+ /** Order line item id this fulfillment item was created from */
841
+ item_id: string | null;
842
+ title: string;
843
+ sku: string | null;
844
+ quantity: number;
845
+ }
846
+
847
+ /** A shipping label attached to a fulfillment */
848
+ export interface DropshipperFulfillmentLabel {
849
+ id: string;
850
+ tracking_number: string | null;
851
+ tracking_url: string | null;
852
+ label_url: string | null;
853
+ }
854
+
855
+ /** A fulfillment on an order (read-only; the dropshipper does not manage shipments) */
856
+ export interface DropshipperOrderFulfillment {
857
+ id: string;
858
+ /** Computed from dates: pending, packed, shipped, delivered, canceled */
859
+ status: string;
860
+ created_at: string | null;
861
+ packed_at: string | null;
862
+ shipped_at: string | null;
863
+ delivered_at: string | null;
864
+ canceled_at: string | null;
865
+ provider_id: string | null;
866
+ /** Name of the stock location the fulfillment ships from, when resolvable */
867
+ location_name: string | null;
868
+ items: DropshipperFulfillmentItem[];
869
+ labels: DropshipperFulfillmentLabel[];
870
+ }
871
+
838
872
  /** Full order detail as returned by GET /admin/thor/dropshipper/orders/:id */
839
873
  export interface DropshipperOrderDetail {
840
874
  id: string;
@@ -858,6 +892,8 @@ export interface DropshipperOrderDetail {
858
892
  exchanges?: DropshipperOrderExchange[];
859
893
  /** Claims on the order, read-only (contract v3, optional) */
860
894
  claims?: DropshipperOrderClaim[];
895
+ /** Fulfillments on the order, read-only (optional) */
896
+ fulfillments?: DropshipperOrderFulfillment[];
861
897
  transactions: DropshipperTransaction[];
862
898
  financial_summary: DropshipperFinancialSummary;
863
899
  timeline: DropshipperOrderTimelineEvent[];
@@ -1458,6 +1494,10 @@ export interface DropshipperPaymentMethodConfig {
1458
1494
  export interface DropshipperAccount {
1459
1495
  id: string;
1460
1496
  provider_name: string;
1497
+ provider_email?: string | null;
1498
+ provider_phone?: string | null;
1499
+ provider_address?: string | null;
1500
+ provider_contact_name?: string | null;
1461
1501
  currency_code: string;
1462
1502
  payment_terms_days: number;
1463
1503
  balance: DropshipperBalance;