@congminh1254/shopee-sdk 0.10.0 → 1.0.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.
Files changed (133) hide show
  1. package/README.md +172 -36
  2. package/lib/fetch.js +13 -0
  3. package/lib/fetch.js.map +1 -1
  4. package/lib/managers/add-on-deal.manager.d.ts +140 -0
  5. package/lib/managers/add-on-deal.manager.js +240 -0
  6. package/lib/managers/add-on-deal.manager.js.map +1 -0
  7. package/lib/managers/ads.manager.d.ts +217 -1
  8. package/lib/managers/ads.manager.js +312 -0
  9. package/lib/managers/ads.manager.js.map +1 -1
  10. package/lib/managers/bundle-deal.manager.d.ts +106 -0
  11. package/lib/managers/bundle-deal.manager.js +178 -0
  12. package/lib/managers/bundle-deal.manager.js.map +1 -0
  13. package/lib/managers/discount.manager.d.ts +102 -0
  14. package/lib/managers/discount.manager.js +167 -0
  15. package/lib/managers/discount.manager.js.map +1 -0
  16. package/lib/managers/fbs.manager.d.ts +115 -0
  17. package/lib/managers/fbs.manager.js +145 -0
  18. package/lib/managers/fbs.manager.js.map +1 -0
  19. package/lib/managers/first-mile.manager.d.ts +150 -0
  20. package/lib/managers/first-mile.manager.js +264 -0
  21. package/lib/managers/first-mile.manager.js.map +1 -0
  22. package/lib/managers/follow-prize.manager.d.ts +108 -0
  23. package/lib/managers/follow-prize.manager.js +152 -0
  24. package/lib/managers/follow-prize.manager.js.map +1 -0
  25. package/lib/managers/global-product.manager.d.ts +664 -0
  26. package/lib/managers/global-product.manager.js +904 -0
  27. package/lib/managers/global-product.manager.js.map +1 -0
  28. package/lib/managers/index.d.ts +17 -1
  29. package/lib/managers/index.js +17 -1
  30. package/lib/managers/index.js.map +1 -1
  31. package/lib/managers/livestream.manager.d.ts +377 -0
  32. package/lib/managers/livestream.manager.js +529 -0
  33. package/lib/managers/livestream.manager.js.map +1 -0
  34. package/lib/managers/logistics.manager.d.ts +267 -1
  35. package/lib/managers/logistics.manager.js +544 -0
  36. package/lib/managers/logistics.manager.js.map +1 -1
  37. package/lib/managers/media-space.manager.d.ts +179 -0
  38. package/lib/managers/media-space.manager.js +220 -0
  39. package/lib/managers/media-space.manager.js.map +1 -0
  40. package/lib/managers/media.manager.d.ts +226 -0
  41. package/lib/managers/media.manager.js +274 -0
  42. package/lib/managers/media.manager.js.map +1 -0
  43. package/lib/managers/merchant.manager.d.ts +100 -0
  44. package/lib/managers/merchant.manager.js +144 -0
  45. package/lib/managers/merchant.manager.js.map +1 -0
  46. package/lib/managers/order.manager.d.ts +213 -1
  47. package/lib/managers/order.manager.js +305 -0
  48. package/lib/managers/order.manager.js.map +1 -1
  49. package/lib/managers/payment.manager.d.ts +186 -1
  50. package/lib/managers/payment.manager.js +288 -0
  51. package/lib/managers/payment.manager.js.map +1 -1
  52. package/lib/managers/returns.manager.d.ts +200 -0
  53. package/lib/managers/returns.manager.js +300 -0
  54. package/lib/managers/returns.manager.js.map +1 -0
  55. package/lib/managers/sbs.manager.d.ts +112 -0
  56. package/lib/managers/sbs.manager.js +149 -0
  57. package/lib/managers/sbs.manager.js.map +1 -0
  58. package/lib/managers/shop-category.manager.d.ts +207 -0
  59. package/lib/managers/shop-category.manager.js +258 -0
  60. package/lib/managers/shop-category.manager.js.map +1 -0
  61. package/lib/managers/shop-flash-sale.manager.d.ts +242 -0
  62. package/lib/managers/shop-flash-sale.manager.js +321 -0
  63. package/lib/managers/shop-flash-sale.manager.js.map +1 -0
  64. package/lib/managers/shop.manager.d.ts +173 -0
  65. package/lib/managers/shop.manager.js +217 -0
  66. package/lib/managers/shop.manager.js.map +1 -0
  67. package/lib/managers/top-picks.manager.d.ts +62 -0
  68. package/lib/managers/top-picks.manager.js +91 -0
  69. package/lib/managers/top-picks.manager.js.map +1 -0
  70. package/lib/schemas/add-on-deal.d.ts +390 -0
  71. package/lib/schemas/add-on-deal.js +45 -0
  72. package/lib/schemas/add-on-deal.js.map +1 -0
  73. package/lib/schemas/ads.d.ts +437 -0
  74. package/lib/schemas/bundle-deal.d.ts +300 -0
  75. package/lib/schemas/bundle-deal.js +27 -0
  76. package/lib/schemas/bundle-deal.js.map +1 -0
  77. package/lib/schemas/discount.d.ts +334 -0
  78. package/lib/schemas/discount.js +15 -0
  79. package/lib/schemas/discount.js.map +1 -0
  80. package/lib/schemas/fbs.d.ts +117 -0
  81. package/lib/schemas/fbs.js +2 -0
  82. package/lib/schemas/fbs.js.map +1 -0
  83. package/lib/schemas/first-mile.d.ts +551 -0
  84. package/lib/schemas/first-mile.js +2 -0
  85. package/lib/schemas/first-mile.js.map +1 -0
  86. package/lib/schemas/follow-prize.d.ts +198 -0
  87. package/lib/schemas/follow-prize.js +27 -0
  88. package/lib/schemas/follow-prize.js.map +1 -0
  89. package/lib/schemas/global-product.d.ts +1127 -0
  90. package/lib/schemas/global-product.js +2 -0
  91. package/lib/schemas/global-product.js.map +1 -0
  92. package/lib/schemas/index.d.ts +13 -0
  93. package/lib/schemas/index.js +17 -0
  94. package/lib/schemas/index.js.map +1 -1
  95. package/lib/schemas/livestream.d.ts +649 -0
  96. package/lib/schemas/livestream.js +2 -0
  97. package/lib/schemas/livestream.js.map +1 -0
  98. package/lib/schemas/logistics.d.ts +979 -0
  99. package/lib/schemas/logistics.js +13 -0
  100. package/lib/schemas/logistics.js.map +1 -1
  101. package/lib/schemas/media-space.d.ts +189 -0
  102. package/lib/schemas/media-space.js +2 -0
  103. package/lib/schemas/media-space.js.map +1 -0
  104. package/lib/schemas/media.d.ts +230 -0
  105. package/lib/schemas/media.js +2 -0
  106. package/lib/schemas/media.js.map +1 -0
  107. package/lib/schemas/merchant.d.ts +236 -0
  108. package/lib/schemas/merchant.js +2 -0
  109. package/lib/schemas/merchant.js.map +1 -0
  110. package/lib/schemas/order.d.ts +431 -0
  111. package/lib/schemas/payment.d.ts +397 -0
  112. package/lib/schemas/returns.d.ts +632 -0
  113. package/lib/schemas/returns.js +63 -0
  114. package/lib/schemas/returns.js.map +1 -0
  115. package/lib/schemas/sbs.d.ts +484 -0
  116. package/lib/schemas/sbs.js +2 -0
  117. package/lib/schemas/sbs.js.map +1 -0
  118. package/lib/schemas/shop-category.d.ts +176 -0
  119. package/lib/schemas/shop-category.js +2 -0
  120. package/lib/schemas/shop-category.js.map +1 -0
  121. package/lib/schemas/shop-flash-sale.d.ts +473 -0
  122. package/lib/schemas/shop-flash-sale.js +43 -0
  123. package/lib/schemas/shop-flash-sale.js.map +1 -0
  124. package/lib/schemas/shop.d.ts +250 -0
  125. package/lib/schemas/shop.js +2 -0
  126. package/lib/schemas/shop.js.map +1 -0
  127. package/lib/schemas/top-picks.d.ts +99 -0
  128. package/lib/schemas/top-picks.js +2 -0
  129. package/lib/schemas/top-picks.js.map +1 -0
  130. package/lib/sdk.d.ts +34 -0
  131. package/lib/sdk.js +34 -0
  132. package/lib/sdk.js.map +1 -1
  133. package/package.json +2 -4
@@ -0,0 +1,664 @@
1
+ import { BaseManager } from "./base.manager.js";
2
+ import { ShopeeConfig } from "../sdk.js";
3
+ import { GetGlobalCategoryParams, GetGlobalCategoryResponse, GetGlobalItemListParams, GetGlobalItemListResponse, GetGlobalItemInfoParams, GetGlobalItemInfoResponse, GetGlobalModelListParams, GetGlobalModelListResponse, AddGlobalItemParams, AddGlobalItemResponse, UpdateGlobalItemParams, UpdateGlobalItemResponse, DeleteGlobalItemParams, DeleteGlobalItemResponse, AddGlobalModelParams, AddGlobalModelResponse, UpdateGlobalModelParams, UpdateGlobalModelResponse, DeleteGlobalModelParams, DeleteGlobalModelResponse, InitGlobalTierVariationParams, InitGlobalTierVariationResponse, UpdateGlobalTierVariationParams, UpdateGlobalTierVariationResponse, UpdateGlobalStockParams, UpdateGlobalStockResponse, UpdateGlobalPriceParams, UpdateGlobalPriceResponse, GetGlobalAttributeTreeParams, GetGlobalAttributeTreeResponse, GetGlobalBrandListParams, GetGlobalBrandListResponse, GlobalCategoryRecommendParams, GlobalCategoryRecommendResponse, GetGlobalItemLimitParams, GetGlobalItemLimitResponse, GetPublishableShopParams, GetPublishableShopResponse, GetShopPublishableStatusParams, GetShopPublishableStatusResponse, CreatePublishTaskParams, CreatePublishTaskResponse, GetPublishTaskResultParams, GetPublishTaskResultResponse, GetPublishedListParams, GetPublishedListResponse, GetGlobalItemIdParams, GetGlobalItemIdResponse, GetGlobalRecommendAttributeParams, GetGlobalRecommendAttributeResponse, SearchGlobalAttributeValueListParams, SearchGlobalAttributeValueListResponse, GetGlobalVariationsParams, GetGlobalVariationsResponse, SetSyncFieldParams, SetSyncFieldResponse, GetLocalAdjustmentRateParams, GetLocalAdjustmentRateResponse, UpdateLocalAdjustmentRateParams, UpdateLocalAdjustmentRateResponse, GetGlobalSizeChartListParams, GetGlobalSizeChartListResponse, GetGlobalSizeChartDetailParams, GetGlobalSizeChartDetailResponse, UpdateSizeChartParams, UpdateSizeChartResponse, SupportSizeChartParams, SupportSizeChartResponse } from "../schemas/global-product.js";
4
+ /**
5
+ * GlobalProductManager handles all global product operations for China mainland and Korean sellers.
6
+ * Global products allow sellers to manage products centrally and publish them to multiple shops.
7
+ */
8
+ export declare class GlobalProductManager extends BaseManager {
9
+ constructor(config: ShopeeConfig);
10
+ /**
11
+ * Get global category list
12
+ *
13
+ * Use this API to get global category list. Only for China mainland sellers and Korean sellers.
14
+ *
15
+ * @param params - Parameters for getting category list
16
+ * @param params.language - Display language. Should be one of "zh-hans", "en"
17
+ *
18
+ * @returns Promise resolving to category list response
19
+ *
20
+ * @example
21
+ * ```typescript
22
+ * const categories = await sdk.globalProduct.getCategory({
23
+ * language: "en"
24
+ * });
25
+ * ```
26
+ */
27
+ getCategory(params?: GetGlobalCategoryParams): Promise<GetGlobalCategoryResponse>;
28
+ /**
29
+ * Get global item list
30
+ *
31
+ * Use this API to get global item id list. Only for China mainland sellers and Korean sellers.
32
+ *
33
+ * @param params - Parameters for getting global item list
34
+ * @param params.page_size - The size of one page. Limit is [1,50]
35
+ * @param params.offset - Specifies the starting entry of data to return
36
+ * @param params.update_time_from - The starting date range for retrieving items
37
+ * @param params.update_time_to - The ending date range for retrieving items
38
+ *
39
+ * @returns Promise resolving to global item list response
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * const items = await sdk.globalProduct.getGlobalItemList({
44
+ * page_size: 20,
45
+ * update_time_from: 1611311600,
46
+ * update_time_to: 1611311631
47
+ * });
48
+ * ```
49
+ */
50
+ getGlobalItemList(params: GetGlobalItemListParams): Promise<GetGlobalItemListResponse>;
51
+ /**
52
+ * Get global item information
53
+ *
54
+ * Use this API to get global item detailed information.
55
+ *
56
+ * @param params - Parameters for getting global item info
57
+ * @param params.global_item_id_list - List of global item IDs to retrieve (max 50)
58
+ *
59
+ * @returns Promise resolving to global item info response
60
+ *
61
+ * @example
62
+ * ```typescript
63
+ * const itemInfo = await sdk.globalProduct.getGlobalItemInfo({
64
+ * global_item_id_list: [123456, 789012]
65
+ * });
66
+ * ```
67
+ */
68
+ getGlobalItemInfo(params: GetGlobalItemInfoParams): Promise<GetGlobalItemInfoResponse>;
69
+ /**
70
+ * Get global model list
71
+ *
72
+ * Use this API to get global model list for a global item.
73
+ *
74
+ * @param params - Parameters for getting global model list
75
+ * @param params.global_item_id - Global item ID
76
+ *
77
+ * @returns Promise resolving to global model list response
78
+ *
79
+ * @example
80
+ * ```typescript
81
+ * const models = await sdk.globalProduct.getGlobalModelList({
82
+ * global_item_id: 123456
83
+ * });
84
+ * ```
85
+ */
86
+ getGlobalModelList(params: GetGlobalModelListParams): Promise<GetGlobalModelListResponse>;
87
+ /**
88
+ * Add a global item
89
+ *
90
+ * Use this API to add a new global item.
91
+ *
92
+ * @param params - Parameters for adding a global item
93
+ * @returns Promise resolving to add global item response
94
+ *
95
+ * @example
96
+ * ```typescript
97
+ * const result = await sdk.globalProduct.addGlobalItem({
98
+ * category_id: 100182,
99
+ * global_item_name: "Test Product",
100
+ * description: "This is a test product",
101
+ * weight: 1.0,
102
+ * image: {
103
+ * image_id_list: ["image123"]
104
+ * }
105
+ * });
106
+ * ```
107
+ */
108
+ addGlobalItem(params: AddGlobalItemParams): Promise<AddGlobalItemResponse>;
109
+ /**
110
+ * Update a global item
111
+ *
112
+ * Use this API to update an existing global item.
113
+ *
114
+ * @param params - Parameters for updating a global item
115
+ * @returns Promise resolving to update global item response
116
+ *
117
+ * @example
118
+ * ```typescript
119
+ * const result = await sdk.globalProduct.updateGlobalItem({
120
+ * global_item_id: 123456,
121
+ * global_item_name: "Updated Product Name",
122
+ * description: "Updated description"
123
+ * });
124
+ * ```
125
+ */
126
+ updateGlobalItem(params: UpdateGlobalItemParams): Promise<UpdateGlobalItemResponse>;
127
+ /**
128
+ * Delete a global item
129
+ *
130
+ * Use this API to delete a global item.
131
+ *
132
+ * @param params - Parameters for deleting a global item
133
+ * @param params.global_item_id - Global item ID to delete
134
+ *
135
+ * @returns Promise resolving to delete global item response
136
+ *
137
+ * @example
138
+ * ```typescript
139
+ * const result = await sdk.globalProduct.deleteGlobalItem({
140
+ * global_item_id: 123456
141
+ * });
142
+ * ```
143
+ */
144
+ deleteGlobalItem(params: DeleteGlobalItemParams): Promise<DeleteGlobalItemResponse>;
145
+ /**
146
+ * Add global models
147
+ *
148
+ * Use this API to add models to a global item.
149
+ *
150
+ * @param params - Parameters for adding global models
151
+ * @returns Promise resolving to add global model response
152
+ *
153
+ * @example
154
+ * ```typescript
155
+ * const result = await sdk.globalProduct.addGlobalModel({
156
+ * global_item_id: 123456,
157
+ * model_list: [{
158
+ * tier_index: [0, 1],
159
+ * model_sku: "SKU-001"
160
+ * }]
161
+ * });
162
+ * ```
163
+ */
164
+ addGlobalModel(params: AddGlobalModelParams): Promise<AddGlobalModelResponse>;
165
+ /**
166
+ * Update global models
167
+ *
168
+ * Use this API to update existing global models.
169
+ *
170
+ * @param params - Parameters for updating global models
171
+ * @returns Promise resolving to update global model response
172
+ *
173
+ * @example
174
+ * ```typescript
175
+ * const result = await sdk.globalProduct.updateGlobalModel({
176
+ * global_item_id: 123456,
177
+ * model_list: [{
178
+ * global_model_id: 789,
179
+ * model_sku: "SKU-002"
180
+ * }]
181
+ * });
182
+ * ```
183
+ */
184
+ updateGlobalModel(params: UpdateGlobalModelParams): Promise<UpdateGlobalModelResponse>;
185
+ /**
186
+ * Delete global models
187
+ *
188
+ * Use this API to delete global models.
189
+ *
190
+ * @param params - Parameters for deleting global models
191
+ * @returns Promise resolving to delete global model response
192
+ *
193
+ * @example
194
+ * ```typescript
195
+ * const result = await sdk.globalProduct.deleteGlobalModel({
196
+ * global_item_id: 123456,
197
+ * global_model_id_list: [789, 790]
198
+ * });
199
+ * ```
200
+ */
201
+ deleteGlobalModel(params: DeleteGlobalModelParams): Promise<DeleteGlobalModelResponse>;
202
+ /**
203
+ * Initialize tier variation
204
+ *
205
+ * Use this API to initialize tier variation for a global item.
206
+ *
207
+ * @param params - Parameters for initializing tier variation
208
+ * @returns Promise resolving to init tier variation response
209
+ *
210
+ * @example
211
+ * ```typescript
212
+ * const result = await sdk.globalProduct.initTierVariation({
213
+ * global_item_id: 123456,
214
+ * tier_variation: [{
215
+ * name: "Color",
216
+ * option_list: [
217
+ * { option: "Red" },
218
+ * { option: "Blue" }
219
+ * ]
220
+ * }],
221
+ * model_list: [{
222
+ * tier_index: [0],
223
+ * model_sku: "SKU-RED"
224
+ * }]
225
+ * });
226
+ * ```
227
+ */
228
+ initTierVariation(params: InitGlobalTierVariationParams): Promise<InitGlobalTierVariationResponse>;
229
+ /**
230
+ * Update tier variation
231
+ *
232
+ * Use this API to update tier variation for a global item.
233
+ *
234
+ * @param params - Parameters for updating tier variation
235
+ * @returns Promise resolving to update tier variation response
236
+ *
237
+ * @example
238
+ * ```typescript
239
+ * const result = await sdk.globalProduct.updateTierVariation({
240
+ * global_item_id: 123456,
241
+ * tier_variation: [{
242
+ * name: "Size",
243
+ * option_list: [
244
+ * { option: "S" },
245
+ * { option: "M" },
246
+ * { option: "L" }
247
+ * ]
248
+ * }]
249
+ * });
250
+ * ```
251
+ */
252
+ updateTierVariation(params: UpdateGlobalTierVariationParams): Promise<UpdateGlobalTierVariationResponse>;
253
+ /**
254
+ * Update global item stock
255
+ *
256
+ * Use this API to update stock for global items or models.
257
+ *
258
+ * @param params - Parameters for updating stock
259
+ * @returns Promise resolving to update stock response
260
+ *
261
+ * @example
262
+ * ```typescript
263
+ * const result = await sdk.globalProduct.updateStock({
264
+ * global_item_id: 123456,
265
+ * stock_list: [{
266
+ * shop_id: 67890,
267
+ * normal_stock: 100
268
+ * }]
269
+ * });
270
+ * ```
271
+ */
272
+ updateStock(params: UpdateGlobalStockParams): Promise<UpdateGlobalStockResponse>;
273
+ /**
274
+ * Update global item price
275
+ *
276
+ * Use this API to update price for global items or models.
277
+ *
278
+ * @param params - Parameters for updating price
279
+ * @returns Promise resolving to update price response
280
+ *
281
+ * @example
282
+ * ```typescript
283
+ * const result = await sdk.globalProduct.updatePrice({
284
+ * global_item_id: 123456,
285
+ * price_list: [{
286
+ * shop_id: 67890,
287
+ * original_price: 29.99
288
+ * }]
289
+ * });
290
+ * ```
291
+ */
292
+ updatePrice(params: UpdateGlobalPriceParams): Promise<UpdateGlobalPriceResponse>;
293
+ /**
294
+ * Get attribute tree
295
+ *
296
+ * Use this API to get attribute tree for a category.
297
+ *
298
+ * @param params - Parameters for getting attribute tree
299
+ * @param params.category_id - Category ID
300
+ * @param params.language - Language for attribute names
301
+ *
302
+ * @returns Promise resolving to attribute tree response
303
+ *
304
+ * @example
305
+ * ```typescript
306
+ * const attributes = await sdk.globalProduct.getAttributeTree({
307
+ * category_id: 100182,
308
+ * language: "en"
309
+ * });
310
+ * ```
311
+ */
312
+ getAttributeTree(params: GetGlobalAttributeTreeParams): Promise<GetGlobalAttributeTreeResponse>;
313
+ /**
314
+ * Get brand list
315
+ *
316
+ * Use this API to get brand list for a category.
317
+ *
318
+ * @param params - Parameters for getting brand list
319
+ * @returns Promise resolving to brand list response
320
+ *
321
+ * @example
322
+ * ```typescript
323
+ * const brands = await sdk.globalProduct.getBrandList({
324
+ * category_id: 100182,
325
+ * page_size: 20
326
+ * });
327
+ * ```
328
+ */
329
+ getBrandList(params: GetGlobalBrandListParams): Promise<GetGlobalBrandListResponse>;
330
+ /**
331
+ * Get category recommendation
332
+ *
333
+ * Use this API to get category recommendations based on item name.
334
+ *
335
+ * @param params - Parameters for getting category recommendation
336
+ * @param params.global_item_name - Global item name
337
+ *
338
+ * @returns Promise resolving to category recommendation response
339
+ *
340
+ * @example
341
+ * ```typescript
342
+ * const recommendations = await sdk.globalProduct.categoryRecommend({
343
+ * global_item_name: "iPhone Case"
344
+ * });
345
+ * ```
346
+ */
347
+ categoryRecommend(params: GlobalCategoryRecommendParams): Promise<GlobalCategoryRecommendResponse>;
348
+ /**
349
+ * Get global item limit
350
+ *
351
+ * Use this API to get limits for a category (max images, videos, name length, etc.).
352
+ *
353
+ * @param params - Parameters for getting global item limit
354
+ * @param params.category_id - Category ID
355
+ *
356
+ * @returns Promise resolving to global item limit response
357
+ *
358
+ * @example
359
+ * ```typescript
360
+ * const limits = await sdk.globalProduct.getGlobalItemLimit({
361
+ * category_id: 100182
362
+ * });
363
+ * ```
364
+ */
365
+ getGlobalItemLimit(params: GetGlobalItemLimitParams): Promise<GetGlobalItemLimitResponse>;
366
+ /**
367
+ * Get publishable shop list
368
+ *
369
+ * Use this API to get list of shops where a global item can be published.
370
+ *
371
+ * @param params - Parameters for getting publishable shops
372
+ * @param params.global_item_id - Global item ID
373
+ *
374
+ * @returns Promise resolving to publishable shop list response
375
+ *
376
+ * @example
377
+ * ```typescript
378
+ * const shops = await sdk.globalProduct.getPublishableShop({
379
+ * global_item_id: 123456
380
+ * });
381
+ * ```
382
+ */
383
+ getPublishableShop(params: GetPublishableShopParams): Promise<GetPublishableShopResponse>;
384
+ /**
385
+ * Get shop publishable status
386
+ *
387
+ * Use this API to check if shops can publish a specific global item.
388
+ *
389
+ * @param params - Parameters for getting shop publishable status
390
+ * @returns Promise resolving to shop publishable status response
391
+ *
392
+ * @example
393
+ * ```typescript
394
+ * const status = await sdk.globalProduct.getShopPublishableStatus({
395
+ * global_item_id: 123456,
396
+ * shop_id_list: [67890, 67891]
397
+ * });
398
+ * ```
399
+ */
400
+ getShopPublishableStatus(params: GetShopPublishableStatusParams): Promise<GetShopPublishableStatusResponse>;
401
+ /**
402
+ * Create publish task
403
+ *
404
+ * Use this API to create a task to publish a global item to multiple shops.
405
+ *
406
+ * @param params - Parameters for creating publish task
407
+ * @returns Promise resolving to create publish task response
408
+ *
409
+ * @example
410
+ * ```typescript
411
+ * const task = await sdk.globalProduct.createPublishTask({
412
+ * global_item_id: 123456,
413
+ * shop_list: [
414
+ * { shop_id: 67890 },
415
+ * { shop_id: 67891 }
416
+ * ]
417
+ * });
418
+ * ```
419
+ */
420
+ createPublishTask(params: CreatePublishTaskParams): Promise<CreatePublishTaskResponse>;
421
+ /**
422
+ * Get publish task result
423
+ *
424
+ * Use this API to get the result of a publish task.
425
+ *
426
+ * @param params - Parameters for getting publish task result
427
+ * @param params.publish_task_id - Publish task ID
428
+ *
429
+ * @returns Promise resolving to publish task result response
430
+ *
431
+ * @example
432
+ * ```typescript
433
+ * const result = await sdk.globalProduct.getPublishTaskResult({
434
+ * publish_task_id: "task123"
435
+ * });
436
+ * ```
437
+ */
438
+ getPublishTaskResult(params: GetPublishTaskResultParams): Promise<GetPublishTaskResultResponse>;
439
+ /**
440
+ * Get published list
441
+ *
442
+ * Use this API to get list of shops where a global item has been published.
443
+ *
444
+ * @param params - Parameters for getting published list
445
+ * @param params.global_item_id - Global item ID
446
+ *
447
+ * @returns Promise resolving to published list response
448
+ *
449
+ * @example
450
+ * ```typescript
451
+ * const published = await sdk.globalProduct.getPublishedList({
452
+ * global_item_id: 123456
453
+ * });
454
+ * ```
455
+ */
456
+ getPublishedList(params: GetPublishedListParams): Promise<GetPublishedListResponse>;
457
+ /**
458
+ * Get global item ID by shop item ID
459
+ *
460
+ * Use this API to get the global item ID from a shop item ID.
461
+ *
462
+ * @param params - Parameters for getting global item ID
463
+ * @param params.shop_id - Shop ID
464
+ * @param params.item_id - Item ID in the shop
465
+ *
466
+ * @returns Promise resolving to global item ID response
467
+ *
468
+ * @example
469
+ * ```typescript
470
+ * const globalId = await sdk.globalProduct.getGlobalItemId({
471
+ * shop_id: 67890,
472
+ * item_id: 123456
473
+ * });
474
+ * ```
475
+ */
476
+ getGlobalItemId(params: GetGlobalItemIdParams): Promise<GetGlobalItemIdResponse>;
477
+ /**
478
+ * Get recommended attributes
479
+ *
480
+ * Use this API to get recommended attributes for a global item.
481
+ *
482
+ * @param params - Parameters for getting recommended attributes
483
+ * @param params.global_item_id - Global item ID
484
+ *
485
+ * @returns Promise resolving to recommended attributes response
486
+ *
487
+ * @example
488
+ * ```typescript
489
+ * const attributes = await sdk.globalProduct.getRecommendAttribute({
490
+ * global_item_id: 123456
491
+ * });
492
+ * ```
493
+ */
494
+ getRecommendAttribute(params: GetGlobalRecommendAttributeParams): Promise<GetGlobalRecommendAttributeResponse>;
495
+ /**
496
+ * Search global attribute value list
497
+ *
498
+ * Use this API to search for attribute values.
499
+ *
500
+ * @param params - Parameters for searching attribute values
501
+ * @returns Promise resolving to search attribute value list response
502
+ *
503
+ * @example
504
+ * ```typescript
505
+ * const values = await sdk.globalProduct.searchGlobalAttributeValueList({
506
+ * category_id: 100182,
507
+ * attribute_id: 1000,
508
+ * keyword: "cotton"
509
+ * });
510
+ * ```
511
+ */
512
+ searchGlobalAttributeValueList(params: SearchGlobalAttributeValueListParams): Promise<SearchGlobalAttributeValueListResponse>;
513
+ /**
514
+ * Get variations
515
+ *
516
+ * Use this API to get variation information for a global item.
517
+ *
518
+ * @param params - Parameters for getting variations
519
+ * @param params.global_item_id - Global item ID
520
+ *
521
+ * @returns Promise resolving to variations response
522
+ *
523
+ * @example
524
+ * ```typescript
525
+ * const variations = await sdk.globalProduct.getVariations({
526
+ * global_item_id: 123456
527
+ * });
528
+ * ```
529
+ */
530
+ getVariations(params: GetGlobalVariationsParams): Promise<GetGlobalVariationsResponse>;
531
+ /**
532
+ * Set sync field
533
+ *
534
+ * Use this API to set which fields should sync between global item and shop items.
535
+ *
536
+ * @param params - Parameters for setting sync field
537
+ * @returns Promise resolving to set sync field response
538
+ *
539
+ * @example
540
+ * ```typescript
541
+ * const result = await sdk.globalProduct.setSyncField({
542
+ * global_item_id: 123456,
543
+ * shop_list: [{
544
+ * shop_id: 67890,
545
+ * sync_field_list: ["name", "price", "stock"]
546
+ * }]
547
+ * });
548
+ * ```
549
+ */
550
+ setSyncField(params: SetSyncFieldParams): Promise<SetSyncFieldResponse>;
551
+ /**
552
+ * Get local adjustment rate
553
+ *
554
+ * Use this API to get local price adjustment rates for shops.
555
+ *
556
+ * @param params - Parameters for getting local adjustment rate
557
+ * @returns Promise resolving to local adjustment rate response
558
+ *
559
+ * @example
560
+ * ```typescript
561
+ * const rates = await sdk.globalProduct.getLocalAdjustmentRate({
562
+ * global_item_id: 123456,
563
+ * shop_id_list: [67890, 67891]
564
+ * });
565
+ * ```
566
+ */
567
+ getLocalAdjustmentRate(params: GetLocalAdjustmentRateParams): Promise<GetLocalAdjustmentRateResponse>;
568
+ /**
569
+ * Update local adjustment rate
570
+ *
571
+ * Use this API to update local price adjustment rates for shops.
572
+ *
573
+ * @param params - Parameters for updating local adjustment rate
574
+ * @returns Promise resolving to update local adjustment rate response
575
+ *
576
+ * @example
577
+ * ```typescript
578
+ * const result = await sdk.globalProduct.updateLocalAdjustmentRate({
579
+ * global_item_id: 123456,
580
+ * adjustment_rate_list: [{
581
+ * shop_id: 67890,
582
+ * adjustment_rate: 10.5
583
+ * }]
584
+ * });
585
+ * ```
586
+ */
587
+ updateLocalAdjustmentRate(params: UpdateLocalAdjustmentRateParams): Promise<UpdateLocalAdjustmentRateResponse>;
588
+ /**
589
+ * Get size chart list
590
+ *
591
+ * Use this API to get list of size charts.
592
+ *
593
+ * @param params - Parameters for getting size chart list
594
+ * @returns Promise resolving to size chart list response
595
+ *
596
+ * @example
597
+ * ```typescript
598
+ * const sizeCharts = await sdk.globalProduct.getSizeChartList({
599
+ * page_size: 20
600
+ * });
601
+ * ```
602
+ */
603
+ getSizeChartList(params: GetGlobalSizeChartListParams): Promise<GetGlobalSizeChartListResponse>;
604
+ /**
605
+ * Get size chart detail
606
+ *
607
+ * Use this API to get detailed information of a size chart.
608
+ *
609
+ * @param params - Parameters for getting size chart detail
610
+ * @param params.size_chart_id - Size chart ID
611
+ *
612
+ * @returns Promise resolving to size chart detail response
613
+ *
614
+ * @example
615
+ * ```typescript
616
+ * const sizeChart = await sdk.globalProduct.getSizeChartDetail({
617
+ * size_chart_id: "chart123"
618
+ * });
619
+ * ```
620
+ */
621
+ getSizeChartDetail(params: GetGlobalSizeChartDetailParams): Promise<GetGlobalSizeChartDetailResponse>;
622
+ /**
623
+ * Update size chart
624
+ *
625
+ * Use this API to update a size chart.
626
+ *
627
+ * @param params - Parameters for updating size chart
628
+ * @returns Promise resolving to update size chart response
629
+ *
630
+ * @example
631
+ * ```typescript
632
+ * const result = await sdk.globalProduct.updateSizeChart({
633
+ * size_chart_id: "chart123",
634
+ * size_chart_name: "Updated Size Chart",
635
+ * size_chart_table: {
636
+ * header: ["Size", "Chest", "Length"],
637
+ * rows: [
638
+ * ["S", "90cm", "60cm"],
639
+ * ["M", "95cm", "65cm"]
640
+ * ]
641
+ * }
642
+ * });
643
+ * ```
644
+ */
645
+ updateSizeChart(params: UpdateSizeChartParams): Promise<UpdateSizeChartResponse>;
646
+ /**
647
+ * Check size chart support
648
+ *
649
+ * Use this API to check if a category supports size charts.
650
+ *
651
+ * @param params - Parameters for checking size chart support
652
+ * @param params.category_id - Category ID
653
+ *
654
+ * @returns Promise resolving to size chart support response
655
+ *
656
+ * @example
657
+ * ```typescript
658
+ * const support = await sdk.globalProduct.supportSizeChart({
659
+ * category_id: 100182
660
+ * });
661
+ * ```
662
+ */
663
+ supportSizeChart(params: SupportSizeChartParams): Promise<SupportSizeChartResponse>;
664
+ }