@congminh1254/shopee-sdk 1.6.0 → 1.6.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.
@@ -570,12 +570,23 @@ export interface BatchShipOrderResponse extends BaseResponse {
570
570
  * Parameters for mass ship order
571
571
  */
572
572
  export type MassShipOrderParams = {
573
- /** List of package numbers */
574
- package_number_list: string[];
573
+ /** Logistics channel ID */
574
+ logistics_channel_id: number;
575
+ /** Product location ID */
576
+ product_location_id?: string;
577
+ /** List of packages */
578
+ package_list: Array<{
579
+ /** Shopee's unique identifier for an order */
580
+ order_sn: string;
581
+ /** Shopee's unique identifier for the package under an order */
582
+ package_number?: string;
583
+ }>;
575
584
  /** Pickup information */
576
585
  pickup?: ShipOrderPickup;
577
586
  /** Dropoff information */
578
587
  dropoff?: ShipOrderDropoff;
588
+ /** Non-integrated shipping information */
589
+ non_integrated?: ShipOrderNonIntegrated;
579
590
  } & Record<string, string | number | boolean | object | null | undefined>;
580
591
  /**
581
592
  * Response for mass ship order API
@@ -743,10 +754,18 @@ export interface GetMassTrackingNumberResponse extends BaseResponse {
743
754
  * Parameters for set address config
744
755
  */
745
756
  export type SetAddressConfigParams = {
746
- /** Address ID */
747
- address_id: number;
748
- /** Address flags */
749
- address_flag?: string[];
757
+ /** Whether to show pickup address */
758
+ show_pickup_address?: boolean;
759
+ /** Address type configuration */
760
+ address_type_config?: Array<{
761
+ /** Address type */
762
+ address_type?: string;
763
+ /** Address list */
764
+ address_list?: Array<{
765
+ /** Address ID */
766
+ address_id?: number;
767
+ }>;
768
+ }>;
750
769
  } & Record<string, string | number | boolean | object | null | undefined>;
751
770
  /**
752
771
  * Response for set address config API
@@ -881,8 +900,12 @@ export interface GetShippingDocumentResultResponse extends BaseResponse {
881
900
  * Parameters for get shipping document data info
882
901
  */
883
902
  export type GetShippingDocumentDataInfoParams = {
884
- /** List of order SNs */
885
- order_sn_list: string[];
903
+ /** Shopee's unique identifier for an order */
904
+ order_sn: string;
905
+ /** Shopee's unique identifier for the package under an order */
906
+ package_number?: string;
907
+ /** Recipient address information */
908
+ recipient_address_info?: object;
886
909
  } & Record<string, string | number | boolean | null | undefined>;
887
910
  /**
888
911
  * Response for get shipping document data info API
@@ -897,10 +920,15 @@ export interface GetShippingDocumentDataInfoResponse extends BaseResponse {
897
920
  * Parameters for create booking shipping document
898
921
  */
899
922
  export type CreateBookingShippingDocumentParams = {
900
- /** List of booking SNs */
901
- booking_sn_list: string[];
902
- /** Document type */
903
- shipping_document_type: string;
923
+ /** List of bookings */
924
+ booking_list: Array<{
925
+ /** Shopee's unique identifier for a booking */
926
+ booking_sn: string;
927
+ /** Tracking number */
928
+ tracking_number?: string;
929
+ /** Shipping document type */
930
+ shipping_document_type?: string;
931
+ }>;
904
932
  } & Record<string, string | number | boolean | object | null | undefined>;
905
933
  /**
906
934
  * Response for create booking shipping document API
@@ -912,8 +940,11 @@ export interface CreateBookingShippingDocumentResponse extends BaseResponse {
912
940
  * Parameters for download booking shipping document
913
941
  */
914
942
  export type DownloadBookingShippingDocumentParams = {
915
- /** List of booking SNs */
916
- booking_sn_list: string[];
943
+ /** List of bookings */
944
+ booking_list: Array<{
945
+ /** Shopee's unique identifier for a booking */
946
+ booking_sn: string;
947
+ }>;
917
948
  /** Document type */
918
949
  shipping_document_type: string;
919
950
  } & Record<string, string | number | boolean | null | undefined>;
@@ -925,8 +956,11 @@ export type DownloadBookingShippingDocumentResponse = Buffer;
925
956
  * Parameters for get booking shipping document parameter
926
957
  */
927
958
  export type GetBookingShippingDocumentParameterParams = {
928
- /** List of booking SNs */
929
- booking_sn_list: string[];
959
+ /** List of bookings */
960
+ booking_list: Array<{
961
+ /** Shopee's unique identifier for a booking */
962
+ booking_sn: string;
963
+ }>;
930
964
  } & Record<string, string | number | boolean | null | undefined>;
931
965
  /**
932
966
  * Response for get booking shipping document parameter API
@@ -943,10 +977,13 @@ export interface GetBookingShippingDocumentParameterResponse extends BaseRespons
943
977
  * Parameters for get booking shipping document result
944
978
  */
945
979
  export type GetBookingShippingDocumentResultParams = {
946
- /** List of booking SNs */
947
- booking_sn_list: string[];
948
- /** Document type */
949
- shipping_document_type: string;
980
+ /** List of bookings */
981
+ booking_list: Array<{
982
+ /** Shopee's unique identifier for a booking */
983
+ booking_sn: string;
984
+ /** Shipping document type */
985
+ shipping_document_type?: string;
986
+ }>;
950
987
  } & Record<string, string | number | boolean | null | undefined>;
951
988
  /**
952
989
  * Response for get booking shipping document result API
@@ -961,8 +998,10 @@ export interface GetBookingShippingDocumentResultResponse extends BaseResponse {
961
998
  * Parameters for get booking shipping document data info
962
999
  */
963
1000
  export type GetBookingShippingDocumentDataInfoParams = {
964
- /** List of booking SNs */
965
- booking_sn_list: string[];
1001
+ /** Shopee's unique identifier for a booking */
1002
+ booking_sn: string;
1003
+ /** Recipient address information */
1004
+ recipient_address_info?: object;
966
1005
  } & Record<string, string | number | boolean | null | undefined>;
967
1006
  /**
968
1007
  * Response for get booking shipping document data info API
@@ -977,8 +1016,17 @@ export interface GetBookingShippingDocumentDataInfoResponse extends BaseResponse
977
1016
  * Parameters for create shipping document job
978
1017
  */
979
1018
  export type CreateShippingDocumentJobParams = {
980
- /** Job identifier */
981
- job_id?: string;
1019
+ /** Shipping document type */
1020
+ shipping_document_type: string;
1021
+ /** Unpackaged SKU requests */
1022
+ unpackaged_sku_requests?: object[];
1023
+ /** Package list */
1024
+ package_list: Array<{
1025
+ /** Shopee's unique identifier for an order */
1026
+ order_sn: string;
1027
+ /** Shopee's unique identifier for the package under an order */
1028
+ package_number?: string;
1029
+ }>;
982
1030
  } & Record<string, string | number | boolean | object | null | undefined>;
983
1031
  /**
984
1032
  * Response for create shipping document job API
@@ -1027,8 +1075,10 @@ export interface GetShippingDocumentJobStatusResponse extends BaseResponse {
1027
1075
  * Parameters for download to label
1028
1076
  */
1029
1077
  export type DownloadToLabelParams = {
1030
- /** List of order SNs */
1031
- order_sn_list: string[];
1078
+ /** Sorting group */
1079
+ sorting_group?: string;
1080
+ /** Label quantity */
1081
+ quantity?: number;
1032
1082
  } & Record<string, string | number | boolean | null | undefined>;
1033
1083
  /**
1034
1084
  * Response for download to label API
@@ -1049,6 +1099,8 @@ export type UpdateChannelParams = {
1049
1099
  enabled?: boolean;
1050
1100
  /** COD enabled */
1051
1101
  cod_enabled?: boolean;
1102
+ /** Auto call driver setting */
1103
+ auto_call_driver_setting?: object;
1052
1104
  } & Record<string, string | number | boolean | object | null | undefined>;
1053
1105
  /**
1054
1106
  * Response for update channel API
@@ -1079,10 +1131,14 @@ export interface UpdateShippingOrderResponse extends BaseResponse {
1079
1131
  export type UpdateTrackingStatusParams = {
1080
1132
  /** Order serial number */
1081
1133
  order_sn: string;
1082
- /** Package number */
1083
- package_number?: string;
1084
- /** Tracking status */
1085
- tracking_status?: string;
1134
+ /** Tracking number */
1135
+ tracking_number?: string;
1136
+ /** Tracking URL */
1137
+ tracking_url?: string;
1138
+ /** Logistics status */
1139
+ logistics_status?: string;
1140
+ /** Failed reason */
1141
+ failed_reason?: string;
1086
1142
  } & Record<string, string | number | boolean | object | null | undefined>;
1087
1143
  /**
1088
1144
  * Response for update tracking status API
@@ -1094,12 +1150,14 @@ export interface UpdateTrackingStatusResponse extends BaseResponse {
1094
1150
  * Parameters for update self collection order logistics
1095
1151
  */
1096
1152
  export type UpdateSelfCollectionOrderLogisticsParams = {
1097
- /** Order serial number */
1098
- order_sn: string;
1099
1153
  /** Package number */
1100
1154
  package_number: string;
1101
- /** Self collection status */
1102
- self_collection_status: string;
1155
+ /** Self collection logistics action */
1156
+ self_collection_logistics_action?: string;
1157
+ /** EPOC image list */
1158
+ epoc_image_list?: string[];
1159
+ /** PIN */
1160
+ pin?: string;
1103
1161
  } & Record<string, string | number | boolean | object | null | undefined>;
1104
1162
  /**
1105
1163
  * Response for update self collection order logistics API
@@ -1124,8 +1182,14 @@ export interface GetOperatingHoursResponse extends BaseResponse {
1124
1182
  * Parameters for update operating hours
1125
1183
  */
1126
1184
  export type UpdateOperatingHoursParams = {
1127
- /** Operating hours data */
1128
- operating_hours?: any[];
1185
+ /** Regular operating hours */
1186
+ regular_operating_hour?: any[];
1187
+ /** Special operating hours */
1188
+ special_operating_hour?: any[];
1189
+ /** Instant operating hours */
1190
+ instant_operating_hour?: any[];
1191
+ /** Shop collection operating hours */
1192
+ shop_collection_operating_hour?: any[];
1129
1193
  } & Record<string, string | number | boolean | object | null | undefined>;
1130
1194
  /**
1131
1195
  * Response for update operating hours API
@@ -1150,8 +1214,8 @@ export interface GetOperatingHourRestrictionsResponse extends BaseResponse {
1150
1214
  * Parameters for delete special operating hour
1151
1215
  */
1152
1216
  export type DeleteSpecialOperatingHourParams = {
1153
- /** Date to delete */
1154
- date?: string;
1217
+ /** Name */
1218
+ name?: string;
1155
1219
  } & Record<string, string | number | boolean | null | undefined>;
1156
1220
  /**
1157
1221
  * Response for delete special operating hour API
@@ -1179,10 +1243,16 @@ export interface GetMartPackagingInfoResponse extends BaseResponse {
1179
1243
  * Parameters for set mart packaging info
1180
1244
  */
1181
1245
  export type SetMartPackagingInfoParams = {
1182
- /** Order serial number */
1183
- order_sn: string;
1184
- /** Packaging data */
1185
- packaging_data?: any;
1246
+ /** Enable mart packaging info */
1247
+ enable?: boolean;
1248
+ /** Packaging dimension */
1249
+ dimension?: {
1250
+ length?: number;
1251
+ width?: number;
1252
+ height?: number;
1253
+ };
1254
+ /** Packaging fee */
1255
+ packaging_fee?: number;
1186
1256
  } & Record<string, string | number | boolean | object | null | undefined>;
1187
1257
  /**
1188
1258
  * Response for set mart packaging info API
@@ -1203,8 +1273,12 @@ export interface TPFTrackingStatusItem {
1203
1273
  * Parameters for batch update TPF warehouse tracking status
1204
1274
  */
1205
1275
  export type BatchUpdateTPFWarehouseTrackingStatusParams = {
1206
- /** List of tracking status items */
1207
- tracking_status_list: TPFTrackingStatusItem[];
1276
+ /** Third-party fulfillment name */
1277
+ tpf_name?: string;
1278
+ /** Third-party fulfillment tracking status */
1279
+ tpf_tracking_status?: string;
1280
+ /** Package list */
1281
+ package_list: TPFTrackingStatusItem[];
1208
1282
  } & Record<string, string | number | boolean | object | null | undefined>;
1209
1283
  /**
1210
1284
  * Response for batch update TPF warehouse tracking status API
@@ -1 +1 @@
1
- {"version":3,"file":"logistics.js","sourceRoot":"","sources":["../../src/schemas/logistics.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,CAAN,IAAY,eA+BX;AA/BD,WAAY,eAAe;IACzB,sDAAsD;IACtD,8DAA2C,CAAA;IAC3C,8BAA8B;IAC9B,0EAAuD,CAAA;IACvD,+BAA+B;IAC/B,kEAA+C,CAAA;IAC/C,qCAAqC;IACrC,oEAAiD,CAAA;IACjD,qGAAqG;IACrG,sEAAmD,CAAA;IACnD,mCAAmC;IACnC,sEAAmD,CAAA;IACnD,iDAAiD;IACjD,0EAAuD,CAAA;IACvD,8DAA8D;IAC9D,4EAAyD,CAAA;IACzD,uDAAuD;IACvD,oEAAiD,CAAA;IACjD;;;;OAIG;IACH,sDAAmC,CAAA;IACnC,oDAAoD;IACpD,0DAAuC,CAAA;IACvC,gDAAgD;IAChD,oDAAiC,CAAA;IACjC,0CAA0C;IAC1C,0EAAuD,CAAA;AACzD,CAAC,EA/BW,eAAe,KAAf,eAAe,QA+B1B;AAED;;GAEG;AACH,MAAM,CAAN,IAAY,uBAyEX;AAzED,WAAY,uBAAuB;IACjC,oBAAoB;IACpB,8CAAmB,CAAA;IACnB,2BAA2B;IAC3B,oDAAyB,CAAA;IACzB,+BAA+B;IAC/B,8DAAmC,CAAA;IACnC,+BAA+B;IAC/B,8DAAmC,CAAA;IACnC,6BAA6B;IAC7B,0DAA+B,CAAA;IAC/B,gCAAgC;IAChC,gEAAqC,CAAA;IACrC,wBAAwB;IACxB,4DAAiC,CAAA;IACjC,iCAAiC;IACjC,kDAAuB,CAAA;IACvB,0BAA0B;IAC1B,gEAAqC,CAAA;IACrC,iCAAiC;IACjC,kDAAuB,CAAA;IACvB,2BAA2B;IAC3B,wDAA6B,CAA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ACjC,6BAA6B;IAC7B,4DAAiC,CAAA;IACjC,gCAAgC;IAChC,gDAAqB,CAAA;IACrB,wBAAwB;IACxB,4DAAiC,CAAA;IACjC,gCAAgC;IAChC,gEAAqC,CAAA;IACrC,4BAA4B;IAC5B,8CAAmB,CAAA;IACnB,6BAA6B;IAC7B,4CAAiB,CAAA;IACjB,oCAAoC;IACpC,4DAAiC,CAAA;IACjC,8BAA8B;IAC9B,gDAAqB,CAAA;IACrB,iCAAiC;IACjC,kEAAuC,CAAA;IACvC,6BAA6B;IAC7B,4EAAiD,CAAA;IACjD,6BAA6B;IAC7B,wEAA6C,CAAA;IAC7C,+BAA+B;IAC/B,8EAAmD,CAAA;IACnD,gCAAgC;IAChC,gEAAqC,CAAA;IACrC,gCAAgC;IAChC,gEAAqC,CAAA;IACrC,8BAA8B;IAC9B,8EAAmD,CAAA;IACnD,8BAA8B;IAC9B,0EAA+C,CAAA;IAC/C,6BAA6B;IAC7B,0EAA+C,CAAA;IAC/C,+BAA+B;IAC/B,8DAAmC,CAAA;IACnC,oCAAoC;IACpC,0EAA+C,CAAA;IAC/C,6BAA6B;IAC7B,8DAAmC,CAAA;AACrC,CAAC,EAzEW,uBAAuB,KAAvB,uBAAuB,QAyElC;AA0vBD,+CAA+C;AAC/C,qBAAqB;AACrB,+CAA+C;AAE/C;;GAEG;AACH,MAAM,CAAN,IAAY,oBAKX;AALD,WAAY,oBAAoB;IAC9B,iEAAyC,CAAA;IACzC,mEAA2C,CAAA;IAC3C,yEAAiD,CAAA;IACjD,2EAAmD,CAAA;AACrD,CAAC,EALW,oBAAoB,KAApB,oBAAoB,QAK/B"}
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.6.0";
1
+ export declare const SDK_VERSION = "1.6.1";
package/lib/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated during the build process. Do not edit manually.
2
- export const SDK_VERSION = "1.6.0";
2
+ export const SDK_VERSION = "1.6.1";
3
3
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@congminh1254/shopee-sdk",
3
- "version": "1.6.0",
3
+ "version": "1.6.1",
4
4
  "description": "Shopee SDK maintaining by community",
5
5
  "type": "module",
6
6
  "main": "./lib/sdk.js",