@congminh1254/shopee-sdk 1.5.6 → 1.5.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/lib/schemas/logistics.d.ts +31 -10
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +2 -2
|
@@ -750,10 +750,19 @@ export declare enum ShippingDocumentType {
|
|
|
750
750
|
* Parameters for create shipping document
|
|
751
751
|
*/
|
|
752
752
|
export type CreateShippingDocumentParams = {
|
|
753
|
-
/** List of
|
|
754
|
-
|
|
753
|
+
/** List of orders to create shipping document for. limit [1, 50] */
|
|
754
|
+
order_list: Array<{
|
|
755
|
+
/** Shopee's unique identifier for an order */
|
|
756
|
+
order_sn: string;
|
|
757
|
+
/** Shopee's unique identifier for the package under an order */
|
|
758
|
+
package_number?: string;
|
|
759
|
+
/** The tracking number of the order. Required except for channels that allow printing before arrangement */
|
|
760
|
+
tracking_number?: string;
|
|
761
|
+
/** The type of shipping document */
|
|
762
|
+
shipping_document_type?: string;
|
|
763
|
+
}>;
|
|
755
764
|
/** Document type */
|
|
756
|
-
shipping_document_type
|
|
765
|
+
shipping_document_type?: string;
|
|
757
766
|
} & Record<string, string | number | boolean | object | null | undefined>;
|
|
758
767
|
/**
|
|
759
768
|
* Response for create shipping document API
|
|
@@ -783,9 +792,14 @@ export type DownloadShippingDocumentResponse = Buffer;
|
|
|
783
792
|
* Parameters for get shipping document parameter
|
|
784
793
|
*/
|
|
785
794
|
export type GetShippingDocumentParameterParams = {
|
|
786
|
-
/** List of
|
|
787
|
-
|
|
788
|
-
|
|
795
|
+
/** List of orders to get shipping document parameters for. limit [1, 50] */
|
|
796
|
+
order_list: Array<{
|
|
797
|
+
/** Shopee's unique identifier for an order */
|
|
798
|
+
order_sn: string;
|
|
799
|
+
/** Shopee's unique identifier for the package under an order */
|
|
800
|
+
package_number?: string;
|
|
801
|
+
}>;
|
|
802
|
+
} & Record<string, string | number | boolean | object | null | undefined>;
|
|
789
803
|
/**
|
|
790
804
|
* Response for get shipping document parameter API
|
|
791
805
|
*/
|
|
@@ -801,11 +815,18 @@ export interface GetShippingDocumentParameterResponse extends BaseResponse {
|
|
|
801
815
|
* Parameters for get shipping document result
|
|
802
816
|
*/
|
|
803
817
|
export type GetShippingDocumentResultParams = {
|
|
804
|
-
/** List of
|
|
805
|
-
|
|
818
|
+
/** List of orders to query shipping document status for. limit [1, 50] */
|
|
819
|
+
order_list: Array<{
|
|
820
|
+
/** Shopee's unique identifier for an order */
|
|
821
|
+
order_sn: string;
|
|
822
|
+
/** Shopee's unique identifier for the package under an order */
|
|
823
|
+
package_number?: string;
|
|
824
|
+
/** The type of shipping document */
|
|
825
|
+
shipping_document_type?: string;
|
|
826
|
+
}>;
|
|
806
827
|
/** Document type */
|
|
807
|
-
shipping_document_type
|
|
808
|
-
} & Record<string, string | number | boolean | null | undefined>;
|
|
828
|
+
shipping_document_type?: string;
|
|
829
|
+
} & Record<string, string | number | boolean | object | null | undefined>;
|
|
809
830
|
/**
|
|
810
831
|
* Shipping document result item
|
|
811
832
|
*/
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.5.
|
|
1
|
+
export declare const SDK_VERSION = "1.5.7";
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@congminh1254/shopee-sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.7",
|
|
4
4
|
"description": "Shopee SDK maintaining by community",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./lib/sdk.js",
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"ts-jest": "^29.4.9",
|
|
86
86
|
"ts-node": "^10.9.2",
|
|
87
87
|
"tsx": "^4.21.0",
|
|
88
|
-
"typescript": "^
|
|
88
|
+
"typescript": "^6.0.3"
|
|
89
89
|
},
|
|
90
90
|
"dependencies": {
|
|
91
91
|
"node-fetch": "^3.3.2"
|