@thorprovider/types 3.4.0 → 3.4.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/README.md +2 -0
- package/dist/index.d.mts +5 -8
- package/dist/index.d.ts +5 -8
- package/package.json +1 -1
- package/src/admin/DropshippingAdmin.ts +5 -4
package/README.md
CHANGED
|
@@ -212,6 +212,8 @@ import type { Product, Cart, CartItem, Collection } from '@thorprovider/types';
|
|
|
212
212
|
- **Customer**: Customer, Address
|
|
213
213
|
- **Order**: Order, OrderItem, OrderStatus
|
|
214
214
|
- **Auth**: AuthProvider, LoginCredentials, RegisterData
|
|
215
|
+
- **Storefront**: StorefrontConfig, StorefrontContext
|
|
216
|
+
- **CommerceProvider**: CommerceProvider interface (includes optional `updateShippingAddress?`)
|
|
215
217
|
- **Dropshipping**: DropshipperAccount, DropshipperVariantCost, DropshipperCategory, DropshipperPromotion, DropshipperSettlement — plus all request/response types for the 41+ `DropshipperClient` methods (see `src/admin/DropshippingAdmin.ts`)
|
|
216
218
|
- **Order Notes** (part of Dropshipping): OrderNote, CreateOrderNoteBody, GetOrderNotesResponse, DeleteOrderNoteResponse — for managing notes on dropshipper orders
|
|
217
219
|
|
package/dist/index.d.mts
CHANGED
|
@@ -4499,17 +4499,14 @@ interface DropshipperAddressBody {
|
|
|
4499
4499
|
phone?: string;
|
|
4500
4500
|
is_default?: boolean;
|
|
4501
4501
|
}
|
|
4502
|
-
/** Response for creating a dropshipper address */
|
|
4502
|
+
/** Response for creating or updating a dropshipper address */
|
|
4503
4503
|
interface DropshipperAddressResponse {
|
|
4504
|
-
address: Address
|
|
4505
|
-
sales_channel_id: string;
|
|
4506
|
-
};
|
|
4504
|
+
address: Address;
|
|
4507
4505
|
}
|
|
4508
|
-
/** Response for getting dropshipper addresses for a
|
|
4506
|
+
/** Response for getting dropshipper addresses for a customer */
|
|
4509
4507
|
interface GetDropshipperAddressesResponse {
|
|
4510
|
-
addresses:
|
|
4511
|
-
|
|
4512
|
-
}>;
|
|
4508
|
+
addresses: Address[];
|
|
4509
|
+
count: number;
|
|
4513
4510
|
}
|
|
4514
4511
|
/** Response for `GET /store/thor/dropshipper-categories` */
|
|
4515
4512
|
interface GetStorefrontDropshipperCategoriesResponse {
|
package/dist/index.d.ts
CHANGED
|
@@ -4499,17 +4499,14 @@ interface DropshipperAddressBody {
|
|
|
4499
4499
|
phone?: string;
|
|
4500
4500
|
is_default?: boolean;
|
|
4501
4501
|
}
|
|
4502
|
-
/** Response for creating a dropshipper address */
|
|
4502
|
+
/** Response for creating or updating a dropshipper address */
|
|
4503
4503
|
interface DropshipperAddressResponse {
|
|
4504
|
-
address: Address
|
|
4505
|
-
sales_channel_id: string;
|
|
4506
|
-
};
|
|
4504
|
+
address: Address;
|
|
4507
4505
|
}
|
|
4508
|
-
/** Response for getting dropshipper addresses for a
|
|
4506
|
+
/** Response for getting dropshipper addresses for a customer */
|
|
4509
4507
|
interface GetDropshipperAddressesResponse {
|
|
4510
|
-
addresses:
|
|
4511
|
-
|
|
4512
|
-
}>;
|
|
4508
|
+
addresses: Address[];
|
|
4509
|
+
count: number;
|
|
4513
4510
|
}
|
|
4514
4511
|
/** Response for `GET /store/thor/dropshipper-categories` */
|
|
4515
4512
|
interface GetStorefrontDropshipperCategoriesResponse {
|
package/package.json
CHANGED
|
@@ -974,14 +974,15 @@ export interface DropshipperAddressBody {
|
|
|
974
974
|
is_default?: boolean;
|
|
975
975
|
}
|
|
976
976
|
|
|
977
|
-
/** Response for creating a dropshipper address */
|
|
977
|
+
/** Response for creating or updating a dropshipper address */
|
|
978
978
|
export interface DropshipperAddressResponse {
|
|
979
|
-
address: Address
|
|
979
|
+
address: Address;
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
-
/** Response for getting dropshipper addresses for a
|
|
982
|
+
/** Response for getting dropshipper addresses for a customer */
|
|
983
983
|
export interface GetDropshipperAddressesResponse {
|
|
984
|
-
addresses:
|
|
984
|
+
addresses: Address[];
|
|
985
|
+
count: number;
|
|
985
986
|
}
|
|
986
987
|
|
|
987
988
|
// ============================================================
|