@congminh1254/shopee-sdk 0.9.0 → 0.10.0

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.
@@ -755,3 +755,1160 @@ export interface GetModelListResponse extends FetchResponse<{
755
755
  standardise_tier_variation?: StandardiseTierVariation[];
756
756
  }> {
757
757
  }
758
+ /**
759
+ * Price list item for updating product price
760
+ */
761
+ export interface PriceListItem {
762
+ /** Model ID. Use 0 for items without models */
763
+ model_id?: number;
764
+ /** Original price for this model */
765
+ original_price: number;
766
+ }
767
+ /**
768
+ * Parameters for updating product price
769
+ */
770
+ export type UpdatePriceParams = {
771
+ /** Item ID */
772
+ item_id: number;
773
+ /** List of prices to update. Length should be between 1 to 50 */
774
+ price_list: PriceListItem[];
775
+ };
776
+ /**
777
+ * Result of a single price update
778
+ */
779
+ export interface UpdatePriceResultItem {
780
+ /** Model ID that was updated */
781
+ model_id: number;
782
+ /** Original price that was set */
783
+ original_price: number;
784
+ }
785
+ /**
786
+ * Response for updating product price
787
+ */
788
+ export interface UpdatePriceResponse extends FetchResponse<{
789
+ /** List of successfully updated prices */
790
+ success_list?: UpdatePriceResultItem[];
791
+ /** List of failed updates */
792
+ failure_list?: {
793
+ /** Model ID that failed */
794
+ model_id: number;
795
+ /** Failure error message */
796
+ failed_reason: string;
797
+ }[];
798
+ }> {
799
+ }
800
+ /**
801
+ * Seller stock information for stock update
802
+ */
803
+ export interface SellerStockUpdate {
804
+ /** Location ID from v2.shop.get_warehouse_detail API */
805
+ location_id?: string;
806
+ /** Stock amount */
807
+ stock: number;
808
+ }
809
+ /**
810
+ * Stock list item for updating stock
811
+ */
812
+ export interface StockListItem {
813
+ /** Model ID. Use 0 for items without models */
814
+ model_id?: number;
815
+ /** New seller stock info */
816
+ seller_stock: SellerStockUpdate[];
817
+ }
818
+ /**
819
+ * Parameters for updating product stock
820
+ */
821
+ export type UpdateStockParams = {
822
+ /** Item ID */
823
+ item_id: number;
824
+ /** List of stock updates. Length should be between 1 to 50 */
825
+ stock_list: StockListItem[];
826
+ };
827
+ /**
828
+ * Result of a single stock update
829
+ */
830
+ export interface UpdateStockResultItem {
831
+ /** Model ID that was updated */
832
+ model_id: number;
833
+ /** Seller stock that was updated */
834
+ seller_stock: SellerStockUpdate[];
835
+ }
836
+ /**
837
+ * Response for updating product stock
838
+ */
839
+ export interface UpdateStockResponse extends FetchResponse<{
840
+ /** List of successfully updated stock */
841
+ success_list?: UpdateStockResultItem[];
842
+ /** List of failed updates */
843
+ failure_list?: {
844
+ /** Model ID that failed */
845
+ model_id: number;
846
+ /** Failure error message */
847
+ failed_reason: string;
848
+ }[];
849
+ }> {
850
+ }
851
+ /**
852
+ * Parameters for deleting a product item
853
+ */
854
+ export type DeleteItemParams = {
855
+ /** The ID of the product item to delete */
856
+ item_id: number;
857
+ };
858
+ /**
859
+ * Response for deleting a product item
860
+ */
861
+ export interface DeleteItemResponse extends BaseResponse {
862
+ }
863
+ /**
864
+ * Item in the unlist request
865
+ */
866
+ export interface UnlistItemInfo {
867
+ /** Shopee's unique identifier for an item */
868
+ item_id: number;
869
+ /** Unlist (true) or list (false) */
870
+ unlist: boolean;
871
+ }
872
+ /**
873
+ * Parameters for unlisting/listing items
874
+ */
875
+ export type UnlistItemParams = {
876
+ /** List of items to unlist/list. Length should be between 1 to 50 */
877
+ item_list: UnlistItemInfo[];
878
+ };
879
+ /**
880
+ * Result of a single unlist operation
881
+ */
882
+ export interface UnlistItemResultItem {
883
+ /** Item ID that was processed */
884
+ item_id: number;
885
+ /** Whether operation was successful */
886
+ success: boolean;
887
+ /** Error message if failed */
888
+ failed_reason?: string;
889
+ }
890
+ /**
891
+ * Response for unlisting/listing items
892
+ */
893
+ export interface UnlistItemResponse extends FetchResponse<{
894
+ /** List of results */
895
+ result?: UnlistItemResultItem[];
896
+ }> {
897
+ }
898
+ /**
899
+ * Category information
900
+ */
901
+ export interface CategoryInfo {
902
+ /** The ID of category */
903
+ category_id: number;
904
+ /** The ID of parent category (if any) */
905
+ parent_category_id?: number;
906
+ /** The name of category */
907
+ category_name: string;
908
+ /** Whether this category has children */
909
+ has_children: boolean;
910
+ }
911
+ /**
912
+ * Parameters for getting product category list
913
+ */
914
+ export type GetProductCategoryParams = {
915
+ /** Language for category names */
916
+ language?: string;
917
+ };
918
+ /**
919
+ * Response for getting product category list
920
+ */
921
+ export interface GetProductCategoryResponse extends FetchResponse<{
922
+ /** List of categories */
923
+ category_list: CategoryInfo[];
924
+ }> {
925
+ }
926
+ /**
927
+ * Image input for adding/updating items
928
+ */
929
+ export interface ImageInput {
930
+ /** List of image IDs */
931
+ image_id_list: string[];
932
+ }
933
+ /**
934
+ * Description info for extended descriptions
935
+ */
936
+ export interface DescriptionInfo {
937
+ /** Extended description details */
938
+ extended_description?: {
939
+ /** List of description fields */
940
+ field_list: ExtendedDescriptionField[];
941
+ };
942
+ }
943
+ /**
944
+ * Item attribute
945
+ */
946
+ export interface ItemAttribute {
947
+ /** Attribute ID */
948
+ attribute_id: number;
949
+ /** List of attribute values */
950
+ attribute_value_list: {
951
+ /** Attribute value ID */
952
+ value_id?: number;
953
+ /** Original attribute value name */
954
+ original_value_name?: string;
955
+ /** Value unit */
956
+ value_unit?: string;
957
+ }[];
958
+ }
959
+ /**
960
+ * Parameters for adding a new item
961
+ */
962
+ export type AddItemParams = {
963
+ /** Original price of the item */
964
+ original_price: number;
965
+ /** Item description */
966
+ description: string;
967
+ /** Item weight in KG */
968
+ weight?: number;
969
+ /** Item name */
970
+ item_name: string;
971
+ /** Item status: NORMAL or UNLIST */
972
+ item_status?: string;
973
+ /** Package dimensions */
974
+ dimension?: Dimension;
975
+ /** Logistics information */
976
+ logistic_info?: LogisticInfo[];
977
+ /** Attribute list */
978
+ attribute_list?: ItemAttribute[];
979
+ /** Category ID */
980
+ category_id: number;
981
+ /** Image information */
982
+ image: ImageInput;
983
+ /** Pre-order information */
984
+ pre_order?: PreOrder;
985
+ /** Item SKU */
986
+ item_sku?: string;
987
+ /** Item condition: NEW or USED */
988
+ condition?: string;
989
+ /** Wholesale pricing */
990
+ wholesale?: Wholesale[];
991
+ /** Video upload IDs */
992
+ video_upload_id?: string[];
993
+ /** Brand information */
994
+ brand?: BrandInfo;
995
+ /** Item dangerous goods indicator */
996
+ item_dangerous?: number;
997
+ /** Tax information */
998
+ tax_info?: TaxInfo;
999
+ /** Complaint policy (PL only) */
1000
+ complaint_policy?: ComplaintPolicy;
1001
+ /** Description info for extended description */
1002
+ description_info?: DescriptionInfo;
1003
+ /** Description type */
1004
+ description_type?: string;
1005
+ /** Seller stock list */
1006
+ seller_stock?: SellerStockUpdate[];
1007
+ };
1008
+ /**
1009
+ * Response for adding an item
1010
+ */
1011
+ export interface AddItemResponse extends FetchResponse<{
1012
+ /** Newly created item ID */
1013
+ item_id: number;
1014
+ /** Warning messages */
1015
+ warning?: string[];
1016
+ }> {
1017
+ }
1018
+ /**
1019
+ * Parameters for updating an item
1020
+ */
1021
+ export type UpdateItemParams = {
1022
+ /** Item ID to update */
1023
+ item_id: number;
1024
+ /** Original price */
1025
+ original_price?: number;
1026
+ /** Item description */
1027
+ description?: string;
1028
+ /** Item weight in KG */
1029
+ weight?: number;
1030
+ /** Item name */
1031
+ item_name?: string;
1032
+ /** Item status */
1033
+ item_status?: string;
1034
+ /** Package dimensions */
1035
+ dimension?: Dimension;
1036
+ /** Logistics information */
1037
+ logistic_info?: LogisticInfo[];
1038
+ /** Attribute list */
1039
+ attribute_list?: ItemAttribute[];
1040
+ /** Category ID */
1041
+ category_id?: number;
1042
+ /** Image information */
1043
+ image?: ImageInput;
1044
+ /** Pre-order information */
1045
+ pre_order?: PreOrder;
1046
+ /** Item SKU */
1047
+ item_sku?: string;
1048
+ /** Item condition */
1049
+ condition?: string;
1050
+ /** Wholesale pricing */
1051
+ wholesale?: Wholesale[];
1052
+ /** Video upload IDs */
1053
+ video_upload_id?: string[];
1054
+ /** Brand information */
1055
+ brand?: BrandInfo;
1056
+ /** Item dangerous goods indicator */
1057
+ item_dangerous?: number;
1058
+ /** Tax information */
1059
+ tax_info?: TaxInfo;
1060
+ /** Complaint policy */
1061
+ complaint_policy?: ComplaintPolicy;
1062
+ /** Description info */
1063
+ description_info?: DescriptionInfo;
1064
+ /** Description type */
1065
+ description_type?: string;
1066
+ /** Seller stock */
1067
+ seller_stock?: SellerStockUpdate[];
1068
+ };
1069
+ /**
1070
+ * Response for updating an item
1071
+ */
1072
+ export interface UpdateItemResponse extends FetchResponse<{
1073
+ /** Updated item ID */
1074
+ item_id: number;
1075
+ /** Warning messages */
1076
+ warning?: string[];
1077
+ }> {
1078
+ }
1079
+ /**
1080
+ * Tier variation option for models
1081
+ */
1082
+ export interface TierVariationOption {
1083
+ /** Option name */
1084
+ option: string;
1085
+ /** Image for the option */
1086
+ image?: {
1087
+ /** Image ID */
1088
+ image_id?: string;
1089
+ };
1090
+ }
1091
+ /**
1092
+ * Tier variation definition
1093
+ */
1094
+ export interface TierVariationInput {
1095
+ /** Variation name */
1096
+ name: string;
1097
+ /** List of options */
1098
+ option_list: TierVariationOption[];
1099
+ }
1100
+ /**
1101
+ * Model input for adding models
1102
+ */
1103
+ export interface ModelInput {
1104
+ /** Tier index (position in variation) */
1105
+ tier_index: number[];
1106
+ /** Stock info */
1107
+ normal_stock?: number;
1108
+ /** Original price */
1109
+ original_price: number;
1110
+ /** Model SKU */
1111
+ model_sku?: string;
1112
+ /** Seller stock */
1113
+ seller_stock?: SellerStockUpdate[];
1114
+ }
1115
+ /**
1116
+ * Parameters for adding models to an item
1117
+ */
1118
+ export type AddModelParams = {
1119
+ /** Item ID */
1120
+ item_id: number;
1121
+ /** Model list to add */
1122
+ model_list: ModelInput[];
1123
+ };
1124
+ /**
1125
+ * Response for adding models
1126
+ */
1127
+ export interface AddModelResponse extends FetchResponse<{
1128
+ /** List of created model IDs */
1129
+ model_id_list: number[];
1130
+ /** Warning messages */
1131
+ warning?: string[];
1132
+ }> {
1133
+ }
1134
+ /**
1135
+ * Model update input
1136
+ */
1137
+ export interface ModelUpdateInput {
1138
+ /** Model ID to update */
1139
+ model_id: number;
1140
+ /** Original price */
1141
+ original_price?: number;
1142
+ /** Model SKU */
1143
+ model_sku?: string;
1144
+ /** Seller stock */
1145
+ seller_stock?: SellerStockUpdate[];
1146
+ }
1147
+ /**
1148
+ * Parameters for updating models
1149
+ */
1150
+ export type UpdateModelParams = {
1151
+ /** Item ID */
1152
+ item_id: number;
1153
+ /** Model list to update */
1154
+ model_list: ModelUpdateInput[];
1155
+ };
1156
+ /**
1157
+ * Response for updating models
1158
+ */
1159
+ export interface UpdateModelResponse extends FetchResponse<{
1160
+ /** List of updated model IDs */
1161
+ model_id_list: number[];
1162
+ /** Warning messages */
1163
+ warning?: string[];
1164
+ }> {
1165
+ }
1166
+ /**
1167
+ * Parameters for deleting models
1168
+ */
1169
+ export type DeleteModelParams = {
1170
+ /** Item ID */
1171
+ item_id: number;
1172
+ /** List of model IDs to delete */
1173
+ model_id_list: number[];
1174
+ };
1175
+ /**
1176
+ * Response for deleting models
1177
+ */
1178
+ export interface DeleteModelResponse extends FetchResponse<{
1179
+ /** Success status */
1180
+ success: boolean;
1181
+ }> {
1182
+ }
1183
+ /**
1184
+ * Parameters for initializing tier variations
1185
+ */
1186
+ export type InitTierVariationParams = {
1187
+ /** Item ID */
1188
+ item_id: number;
1189
+ /** Tier variation list */
1190
+ tier_variation: TierVariationInput[];
1191
+ /** Model list */
1192
+ model: ModelInput[];
1193
+ };
1194
+ /**
1195
+ * Response for initializing tier variations
1196
+ */
1197
+ export interface InitTierVariationResponse extends FetchResponse<{
1198
+ /** Created model IDs */
1199
+ model_id_list: number[];
1200
+ /** Warning messages */
1201
+ warning?: string[];
1202
+ }> {
1203
+ }
1204
+ /**
1205
+ * Parameters for updating tier variations
1206
+ */
1207
+ export type UpdateTierVariationParams = {
1208
+ /** Item ID */
1209
+ item_id: number;
1210
+ /** Tier variation list */
1211
+ tier_variation: TierVariationInput[];
1212
+ };
1213
+ /**
1214
+ * Response for updating tier variations
1215
+ */
1216
+ export interface UpdateTierVariationResponse extends BaseResponse {
1217
+ }
1218
+ /**
1219
+ * Parameters for searching items
1220
+ */
1221
+ export type SearchItemParams = {
1222
+ /** Offset for pagination */
1223
+ offset?: number;
1224
+ /** Page size (1-100) */
1225
+ page_size?: number;
1226
+ /** Item status filter */
1227
+ item_status?: string[];
1228
+ /** Search by item name */
1229
+ item_name?: string;
1230
+ /** Search by item SKU */
1231
+ item_sku?: string;
1232
+ };
1233
+ /**
1234
+ * Response for searching items
1235
+ */
1236
+ export interface SearchItemResponse extends FetchResponse<{
1237
+ /** List of items found */
1238
+ item: ItemListItemInfo[];
1239
+ /** Total count */
1240
+ total_count: number;
1241
+ /** Has more items */
1242
+ has_next_page: boolean;
1243
+ /** Next page offset */
1244
+ next_offset: number;
1245
+ }> {
1246
+ }
1247
+ /**
1248
+ * Parameters for getting item extra info
1249
+ */
1250
+ export type GetItemExtraInfoParams = {
1251
+ /** List of item IDs */
1252
+ item_id_list: number[];
1253
+ };
1254
+ /**
1255
+ * Sale info details
1256
+ */
1257
+ export interface SaleInfo {
1258
+ /** Current sale count */
1259
+ sale: number;
1260
+ /** Sale count in 7 days */
1261
+ sale_7d: number;
1262
+ /** Sale count in 30 days */
1263
+ sale_30d: number;
1264
+ }
1265
+ /**
1266
+ * Item extra info
1267
+ */
1268
+ export interface ItemExtraInfo {
1269
+ /** Item ID */
1270
+ item_id: number;
1271
+ /** Sale information */
1272
+ sale_info: SaleInfo;
1273
+ /** View count */
1274
+ view: number;
1275
+ /** Like count */
1276
+ liked_count: number;
1277
+ /** Comment count */
1278
+ cmt_count: number;
1279
+ }
1280
+ /**
1281
+ * Response for getting item extra info
1282
+ */
1283
+ export interface GetItemExtraInfoResponse extends FetchResponse<{
1284
+ /** List of item extra info */
1285
+ item_list: ItemExtraInfo[];
1286
+ }> {
1287
+ }
1288
+ /**
1289
+ * Attribute tree node
1290
+ */
1291
+ export interface AttributeTreeNode {
1292
+ /** Attribute ID */
1293
+ attribute_id: number;
1294
+ /** Original attribute name */
1295
+ original_attribute_name: string;
1296
+ /** Is mandatory */
1297
+ is_mandatory: boolean;
1298
+ /** Input type */
1299
+ input_type: string;
1300
+ /** Format type */
1301
+ format_type?: string;
1302
+ /** Attribute value list */
1303
+ attribute_value_list?: {
1304
+ /** Attribute value ID */
1305
+ value_id?: number;
1306
+ /** Original attribute value name */
1307
+ original_value_name?: string;
1308
+ /** Value unit */
1309
+ value_unit?: string;
1310
+ }[];
1311
+ }
1312
+ /**
1313
+ * Parameters for getting attribute tree
1314
+ */
1315
+ export type GetAttributeTreeParams = {
1316
+ /** Category ID */
1317
+ category_id: number;
1318
+ /** Language */
1319
+ language?: string;
1320
+ };
1321
+ /**
1322
+ * Response for getting attribute tree
1323
+ */
1324
+ export interface GetAttributeTreeResponse extends FetchResponse<{
1325
+ /** List of attributes */
1326
+ attribute_list: AttributeTreeNode[];
1327
+ }> {
1328
+ }
1329
+ /**
1330
+ * Brand info for brand list
1331
+ */
1332
+ export interface BrandItem {
1333
+ /** Brand ID */
1334
+ brand_id: number;
1335
+ /** Original brand name */
1336
+ original_brand_name: string;
1337
+ /** Display brand name */
1338
+ display_brand_name: string;
1339
+ }
1340
+ /**
1341
+ * Parameters for getting brand list
1342
+ */
1343
+ export type GetBrandListParams = {
1344
+ /** Category ID */
1345
+ category_id: number;
1346
+ /** Page offset */
1347
+ offset: number;
1348
+ /** Page size */
1349
+ page_size: number;
1350
+ /** Status filter */
1351
+ status?: number;
1352
+ };
1353
+ /**
1354
+ * Response for getting brand list
1355
+ */
1356
+ export interface GetBrandListResponse extends FetchResponse<{
1357
+ /** List of brands */
1358
+ brand_list: BrandItem[];
1359
+ /** Has more data */
1360
+ has_next_page: boolean;
1361
+ /** Next page offset */
1362
+ next_offset: number;
1363
+ /** Is mandatory */
1364
+ is_mandatory: boolean;
1365
+ /** Input type */
1366
+ input_type: string;
1367
+ }> {
1368
+ }
1369
+ /**
1370
+ * Parameters for registering a brand
1371
+ */
1372
+ export type RegisterBrandParams = {
1373
+ /** Category ID */
1374
+ category_id: number;
1375
+ /** Original brand name */
1376
+ original_brand_name: string;
1377
+ };
1378
+ /**
1379
+ * Response for registering a brand
1380
+ */
1381
+ export interface RegisterBrandResponse extends FetchResponse<{
1382
+ /** Brand ID */
1383
+ brand_id: number;
1384
+ /** Original brand name */
1385
+ original_brand_name: string;
1386
+ }> {
1387
+ }
1388
+ /**
1389
+ * Recommended category
1390
+ */
1391
+ export interface RecommendedCategory {
1392
+ /** Category ID */
1393
+ category_id: number;
1394
+ /** Category name */
1395
+ category_name: string;
1396
+ }
1397
+ /**
1398
+ * Parameters for category recommendation
1399
+ */
1400
+ export type CategoryRecommendParams = {
1401
+ /** Item name */
1402
+ item_name: string;
1403
+ };
1404
+ /**
1405
+ * Response for category recommendation
1406
+ */
1407
+ export interface CategoryRecommendResponse extends FetchResponse<{
1408
+ /** List of recommended categories */
1409
+ category_id_list: number[];
1410
+ }> {
1411
+ }
1412
+ /**
1413
+ * Item limit info
1414
+ */
1415
+ export interface ItemLimit {
1416
+ /** Maximum image count */
1417
+ max_image_count: number;
1418
+ /** Maximum video count */
1419
+ max_video_count: number;
1420
+ /** Maximum product title length */
1421
+ max_product_title_length: number;
1422
+ /** Maximum description length */
1423
+ max_description_length: number;
1424
+ /** Maximum extended description length */
1425
+ max_extended_description_length: number;
1426
+ /** Whether video is required */
1427
+ is_video_required: boolean;
1428
+ }
1429
+ /**
1430
+ * Parameters for getting item limits
1431
+ */
1432
+ export type GetItemLimitParams = {
1433
+ /** Category ID */
1434
+ category_id: number;
1435
+ };
1436
+ /**
1437
+ * Response for getting item limits
1438
+ */
1439
+ export interface GetItemLimitResponse extends FetchResponse<{
1440
+ /** Item limit information */
1441
+ item_limit: ItemLimit;
1442
+ }> {
1443
+ }
1444
+ /**
1445
+ * Promotion info
1446
+ */
1447
+ export interface PromotionInfo {
1448
+ /** Promotion ID */
1449
+ promotion_id: number;
1450
+ /** Promotion type */
1451
+ promotion_type: number;
1452
+ /** Start time */
1453
+ start_time: number;
1454
+ /** End time */
1455
+ end_time: number;
1456
+ }
1457
+ /**
1458
+ * Parameters for getting item promotion
1459
+ */
1460
+ export type GetItemPromotionParams = {
1461
+ /** List of item IDs */
1462
+ item_id_list: number[];
1463
+ };
1464
+ /**
1465
+ * Item promotion info
1466
+ */
1467
+ export interface ItemPromotionInfo {
1468
+ /** Item ID */
1469
+ item_id: number;
1470
+ /** Promotion list */
1471
+ promotion_list: PromotionInfo[];
1472
+ }
1473
+ /**
1474
+ * Response for getting item promotion
1475
+ */
1476
+ export interface GetItemPromotionResponse extends FetchResponse<{
1477
+ /** List of item promotions */
1478
+ item_promotion_list: ItemPromotionInfo[];
1479
+ }> {
1480
+ }
1481
+ /**
1482
+ * Parameters for boosting an item
1483
+ */
1484
+ export type BoostItemParams = {
1485
+ /** List of item IDs to boost */
1486
+ item_id_list: number[];
1487
+ };
1488
+ /**
1489
+ * Response for boosting items
1490
+ */
1491
+ export interface BoostItemResponse extends FetchResponse<{
1492
+ /** List of failed item IDs */
1493
+ failed_item_id_list?: number[];
1494
+ }> {
1495
+ }
1496
+ /**
1497
+ * Boosted item info
1498
+ */
1499
+ export interface BoostedItem {
1500
+ /** Item ID */
1501
+ item_id: number;
1502
+ /** Boost end time */
1503
+ boost_end_time: number;
1504
+ }
1505
+ /**
1506
+ * Response for getting boosted list
1507
+ */
1508
+ export interface GetBoostedListResponse extends FetchResponse<{
1509
+ /** List of boosted items */
1510
+ item_list: BoostedItem[];
1511
+ }> {
1512
+ }
1513
+ /**
1514
+ * Parameters for getting variations
1515
+ */
1516
+ export type GetVariationsParams = {
1517
+ /** Item ID */
1518
+ item_id: number;
1519
+ /** Language */
1520
+ language?: string;
1521
+ };
1522
+ /**
1523
+ * Response for getting variations
1524
+ */
1525
+ export interface GetVariationsResponse extends FetchResponse<{
1526
+ /** Tier variation */
1527
+ tier_variation: TierVariation[];
1528
+ }> {
1529
+ }
1530
+ /**
1531
+ * Parameters for recommending attributes
1532
+ */
1533
+ export type GetRecommendAttributeParams = {
1534
+ /** Category ID */
1535
+ category_id: number;
1536
+ /** Item name */
1537
+ item_name?: string;
1538
+ };
1539
+ /**
1540
+ * Recommended attribute
1541
+ */
1542
+ export interface RecommendedAttribute {
1543
+ /** Attribute ID */
1544
+ attribute_id: number;
1545
+ /** Recommended value list */
1546
+ recommended_value_list: {
1547
+ /** Attribute value ID */
1548
+ value_id?: number;
1549
+ /** Original attribute value name */
1550
+ original_value_name?: string;
1551
+ /** Value unit */
1552
+ value_unit?: string;
1553
+ }[];
1554
+ }
1555
+ /**
1556
+ * Response for getting recommended attributes
1557
+ */
1558
+ export interface GetRecommendAttributeResponse extends FetchResponse<{
1559
+ /** List of recommended attributes */
1560
+ recommended_attribute_list: RecommendedAttribute[];
1561
+ }> {
1562
+ }
1563
+ /**
1564
+ * Parameters for searching attribute values
1565
+ */
1566
+ export type SearchAttributeValueListParams = {
1567
+ /** Category ID */
1568
+ category_id: number;
1569
+ /** Attribute ID */
1570
+ attribute_id: number;
1571
+ /** Search value */
1572
+ search_value: string;
1573
+ /** Language */
1574
+ language?: string;
1575
+ };
1576
+ /**
1577
+ * Response for searching attribute values
1578
+ */
1579
+ export interface SearchAttributeValueListResponse extends FetchResponse<{
1580
+ /** List of attribute values */
1581
+ attribute_value_list: {
1582
+ /** Attribute value ID */
1583
+ value_id?: number;
1584
+ /** Original attribute value name */
1585
+ original_value_name?: string;
1586
+ /** Value unit */
1587
+ value_unit?: string;
1588
+ }[];
1589
+ }> {
1590
+ }
1591
+ /**
1592
+ * Parameters for getting main item list
1593
+ */
1594
+ export type GetMainItemListParams = {
1595
+ /** Page offset */
1596
+ offset?: number;
1597
+ /** Page size */
1598
+ page_size?: number;
1599
+ /** Time filter from */
1600
+ update_time_from?: number;
1601
+ /** Time filter to */
1602
+ update_time_to?: number;
1603
+ };
1604
+ /**
1605
+ * Response for getting main item list
1606
+ */
1607
+ export interface GetMainItemListResponse extends FetchResponse<{
1608
+ /** List of items */
1609
+ item: ItemListItemInfo[];
1610
+ /** Total count */
1611
+ total_count: number;
1612
+ /** Has next page */
1613
+ has_next_page: boolean;
1614
+ /** Next offset */
1615
+ next_offset: number;
1616
+ }> {
1617
+ }
1618
+ /**
1619
+ * Violation info
1620
+ */
1621
+ export interface ViolationInfo {
1622
+ /** Violation type */
1623
+ violation_type: string;
1624
+ /** Violation reason */
1625
+ violation_reason: string;
1626
+ /** Violated item info */
1627
+ violated_item_info: string[];
1628
+ }
1629
+ /**
1630
+ * Parameters for getting item violation info
1631
+ */
1632
+ export type GetItemViolationInfoParams = {
1633
+ /** List of item IDs */
1634
+ item_id_list: number[];
1635
+ };
1636
+ /**
1637
+ * Item violation
1638
+ */
1639
+ export interface ItemViolation {
1640
+ /** Item ID */
1641
+ item_id: number;
1642
+ /** Violation list */
1643
+ violation_list: ViolationInfo[];
1644
+ }
1645
+ /**
1646
+ * Response for getting item violation info
1647
+ */
1648
+ export interface GetItemViolationInfoResponse extends FetchResponse<{
1649
+ /** List of item violations */
1650
+ item_violation_list: ItemViolation[];
1651
+ }> {
1652
+ }
1653
+ /**
1654
+ * Weight recommendation
1655
+ */
1656
+ export interface WeightRecommendation {
1657
+ /** Category ID */
1658
+ category_id: number;
1659
+ /** Item name */
1660
+ item_name: string;
1661
+ /** Recommended weight */
1662
+ weight: number;
1663
+ }
1664
+ /**
1665
+ * Parameters for getting weight recommendation
1666
+ */
1667
+ export type GetWeightRecommendationParams = {
1668
+ /** Category ID */
1669
+ category_id: number;
1670
+ /** Item name */
1671
+ item_name: string;
1672
+ };
1673
+ /**
1674
+ * Response for getting weight recommendation
1675
+ */
1676
+ export interface GetWeightRecommendationResponse extends FetchResponse<{
1677
+ /** Weight recommendation */
1678
+ weight: number;
1679
+ }> {
1680
+ }
1681
+ /**
1682
+ * Parameters for getting direct item list
1683
+ */
1684
+ export type GetDirectItemListParams = {
1685
+ /** Page offset */
1686
+ offset?: number;
1687
+ /** Page size */
1688
+ page_size?: number;
1689
+ };
1690
+ /**
1691
+ * Direct item info
1692
+ */
1693
+ export interface DirectItemInfo {
1694
+ /** Item ID */
1695
+ item_id: number;
1696
+ /** Category ID */
1697
+ category_id: number;
1698
+ /** Item name */
1699
+ item_name: string;
1700
+ /** Item status */
1701
+ item_status: string;
1702
+ /** Update time */
1703
+ update_time: number;
1704
+ }
1705
+ /**
1706
+ * Response for getting direct item list
1707
+ */
1708
+ export interface GetDirectItemListResponse extends FetchResponse<{
1709
+ /** List of direct items */
1710
+ item: DirectItemInfo[];
1711
+ /** Total count */
1712
+ total_count: number;
1713
+ /** Has next page */
1714
+ has_next_page: boolean;
1715
+ /** Next offset */
1716
+ next_offset: number;
1717
+ }> {
1718
+ }
1719
+ /**
1720
+ * Content diagnosis result
1721
+ */
1722
+ export interface ContentDiagnosisResult {
1723
+ /** Item ID */
1724
+ item_id: number;
1725
+ /** Diagnosis status */
1726
+ status: string;
1727
+ /** Failed fields */
1728
+ failed_field_list?: string[];
1729
+ }
1730
+ /**
1731
+ * Parameters for getting item content diagnosis result
1732
+ */
1733
+ export type GetItemContentDiagnosisResultParams = {
1734
+ /** List of item IDs */
1735
+ item_id_list: number[];
1736
+ };
1737
+ /**
1738
+ * Response for getting item content diagnosis result
1739
+ */
1740
+ export interface GetItemContentDiagnosisResultResponse extends FetchResponse<{
1741
+ /** Diagnosis result list */
1742
+ item_list: ContentDiagnosisResult[];
1743
+ }> {
1744
+ }
1745
+ /**
1746
+ * Parameters for getting item list by content diagnosis
1747
+ */
1748
+ export type GetItemListByContentDiagnosisParams = {
1749
+ /** Diagnosis status */
1750
+ status: string;
1751
+ /** Page offset */
1752
+ offset?: number;
1753
+ /** Page size */
1754
+ page_size?: number;
1755
+ };
1756
+ /**
1757
+ * Response for getting item list by content diagnosis
1758
+ */
1759
+ export interface GetItemListByContentDiagnosisResponse extends FetchResponse<{
1760
+ /** List of items */
1761
+ item: ItemListItemInfo[];
1762
+ /** Total count */
1763
+ total_count: number;
1764
+ /** Has next page */
1765
+ has_next_page: boolean;
1766
+ /** Next offset */
1767
+ next_offset: number;
1768
+ }> {
1769
+ }
1770
+ /**
1771
+ * Kit item params (simplified - represents a bundled product)
1772
+ */
1773
+ export type AddKitItemParams = Record<string, any>;
1774
+ export interface AddKitItemResponse extends FetchResponse<{
1775
+ item_id: number;
1776
+ }> {
1777
+ }
1778
+ export type UpdateKitItemParams = Record<string, any>;
1779
+ export interface UpdateKitItemResponse extends BaseResponse {
1780
+ }
1781
+ export type GetKitItemInfoParams = {
1782
+ item_id_list: number[];
1783
+ };
1784
+ export interface GetKitItemInfoResponse extends FetchResponse<{
1785
+ item_list: any[];
1786
+ }> {
1787
+ }
1788
+ export type GetKitItemLimitParams = {
1789
+ category_id: number;
1790
+ };
1791
+ export interface GetKitItemLimitResponse extends FetchResponse<{
1792
+ item_limit: any;
1793
+ }> {
1794
+ }
1795
+ export type GenerateKitImageParams = {
1796
+ image_id_list: string[];
1797
+ };
1798
+ export interface GenerateKitImageResponse extends FetchResponse<{
1799
+ image_info: {
1800
+ image_id: string;
1801
+ image_url: string;
1802
+ };
1803
+ }> {
1804
+ }
1805
+ /**
1806
+ * SSP (Seller-Sponsored Product) params
1807
+ */
1808
+ export type AddSspItemParams = Record<string, any>;
1809
+ export interface AddSspItemResponse extends FetchResponse<{
1810
+ item_id: number;
1811
+ }> {
1812
+ }
1813
+ export type GetSspInfoParams = {
1814
+ item_id: number;
1815
+ };
1816
+ export interface GetSspInfoResponse extends FetchResponse<{
1817
+ ssp_info: any;
1818
+ }> {
1819
+ }
1820
+ export type GetSspListParams = {
1821
+ offset?: number;
1822
+ page_size?: number;
1823
+ };
1824
+ export interface GetSspListResponse extends FetchResponse<{
1825
+ item_list: any[];
1826
+ has_next_page: boolean;
1827
+ next_offset: number;
1828
+ }> {
1829
+ }
1830
+ export type LinkSspParams = {
1831
+ item_id: number;
1832
+ ssp_item_id: number;
1833
+ };
1834
+ export interface LinkSspResponse extends BaseResponse {
1835
+ }
1836
+ export type UnlinkSspParams = {
1837
+ item_id: number;
1838
+ };
1839
+ export interface UnlinkSspResponse extends BaseResponse {
1840
+ }
1841
+ export type UpdateSipItemPriceParams = {
1842
+ item_id: number;
1843
+ sip_item_price: number;
1844
+ };
1845
+ export interface UpdateSipItemPriceResponse extends BaseResponse {
1846
+ }
1847
+ /**
1848
+ * Size chart params
1849
+ */
1850
+ export type GetSizeChartListParams = {
1851
+ offset?: number;
1852
+ page_size?: number;
1853
+ };
1854
+ export interface GetSizeChartListResponse extends FetchResponse<{
1855
+ size_chart_list: any[];
1856
+ has_next_page: boolean;
1857
+ next_offset: number;
1858
+ }> {
1859
+ }
1860
+ export type GetSizeChartDetailParams = {
1861
+ size_chart_id: string;
1862
+ };
1863
+ export interface GetSizeChartDetailResponse extends FetchResponse<{
1864
+ size_chart: any;
1865
+ }> {
1866
+ }
1867
+ /**
1868
+ * Vehicle compatibility params
1869
+ */
1870
+ export type GetAllVehicleListParams = Record<string, any>;
1871
+ export interface GetAllVehicleListResponse extends FetchResponse<{
1872
+ vehicle_list: any[];
1873
+ }> {
1874
+ }
1875
+ export type GetVehicleListByCompatibilityDetailParams = {
1876
+ item_id: number;
1877
+ };
1878
+ export interface GetVehicleListByCompatibilityDetailResponse extends FetchResponse<{
1879
+ vehicle_list: any[];
1880
+ }> {
1881
+ }
1882
+ /**
1883
+ * Other specialized params
1884
+ */
1885
+ export type GetAitemByPitemIdParams = {
1886
+ pitem_id_list: number[];
1887
+ };
1888
+ export interface GetAitemByPitemIdResponse extends FetchResponse<{
1889
+ item_list: any[];
1890
+ }> {
1891
+ }
1892
+ export type GetDirectShopRecommendedPriceParams = {
1893
+ category_id: number;
1894
+ item_name?: string;
1895
+ };
1896
+ export interface GetDirectShopRecommendedPriceResponse extends FetchResponse<{
1897
+ recommended_price: number;
1898
+ }> {
1899
+ }
1900
+ export type GetProductCertificationRuleParams = {
1901
+ category_id: number;
1902
+ };
1903
+ export interface GetProductCertificationRuleResponse extends FetchResponse<{
1904
+ certification_list: any[];
1905
+ }> {
1906
+ }
1907
+ export type SearchUnpackagedModelListParams = {
1908
+ item_id: number;
1909
+ search_value?: string;
1910
+ };
1911
+ export interface SearchUnpackagedModelListResponse extends FetchResponse<{
1912
+ model_list: any[];
1913
+ }> {
1914
+ }