@congminh1254/shopee-sdk 1.3.0 → 1.4.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.
- package/lib/managers/ams.manager.d.ts +332 -0
- package/lib/managers/ams.manager.js +601 -0
- package/lib/managers/ams.manager.js.map +1 -0
- package/lib/managers/index.d.ts +1 -0
- package/lib/managers/index.js +1 -0
- package/lib/managers/index.js.map +1 -1
- package/lib/schemas/account-health.d.ts +67 -0
- package/lib/schemas/account-health.js.map +1 -1
- package/lib/schemas/ams.d.ts +1037 -0
- package/lib/schemas/ams.js +2 -0
- package/lib/schemas/ams.js.map +1 -0
- package/lib/schemas/index.d.ts +1 -0
- package/lib/schemas/index.js +1 -0
- package/lib/schemas/index.js.map +1 -1
- package/lib/schemas/order.d.ts +24 -0
- package/lib/schemas/order.js.map +1 -1
- package/lib/sdk.d.ts +2 -0
- package/lib/sdk.js +2 -0
- package/lib/sdk.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
import { BaseResponse } from "./base.js";
|
|
2
|
+
/**
|
|
3
|
+
* Item information for targeted campaigns
|
|
4
|
+
*/
|
|
5
|
+
export interface AmsItemInfo {
|
|
6
|
+
/** Item ID */
|
|
7
|
+
item_id: number;
|
|
8
|
+
/** Commission rate (e.g., 1.1 means 1.1%) */
|
|
9
|
+
rate: number;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Affiliate information for targeted campaigns
|
|
13
|
+
*/
|
|
14
|
+
export interface AmsAffiliateInfo {
|
|
15
|
+
/** The unique key for affiliate */
|
|
16
|
+
affiliate_id: number;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Failed item in response
|
|
20
|
+
*/
|
|
21
|
+
export interface AmsFailedItem {
|
|
22
|
+
/** Item ID */
|
|
23
|
+
item_id: number;
|
|
24
|
+
/** Fail error */
|
|
25
|
+
fail_error: string;
|
|
26
|
+
/** Fail message */
|
|
27
|
+
fail_message: string;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Failed affiliate in response
|
|
31
|
+
*/
|
|
32
|
+
export interface AmsFailedAffiliate {
|
|
33
|
+
/** Affiliate ID */
|
|
34
|
+
affiliate_id: number;
|
|
35
|
+
/** Fail error */
|
|
36
|
+
fail_error: string;
|
|
37
|
+
/** Fail message */
|
|
38
|
+
fail_message: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Parameters for add_all_products_to_open_campaign API
|
|
42
|
+
*/
|
|
43
|
+
export type AddAllProductsToOpenCampaignParams = {
|
|
44
|
+
/** Commission rate, 1.1 means 1.1%, supports two decimal places */
|
|
45
|
+
commission_rate: number;
|
|
46
|
+
/** Start time of the open campaign (Unix timestamp) */
|
|
47
|
+
period_start_time: number;
|
|
48
|
+
/** End time of the open campaign (Unix timestamp), use 32503651199 for permanent */
|
|
49
|
+
period_end_time: number;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Response for add_all_products_to_open_campaign API
|
|
53
|
+
*/
|
|
54
|
+
export interface AddAllProductsToOpenCampaignResponse extends BaseResponse {
|
|
55
|
+
response: {
|
|
56
|
+
/** Task ID for checking the batch task result */
|
|
57
|
+
task_id: string;
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Parameters for batch_add_products_to_open_campaign API
|
|
62
|
+
*/
|
|
63
|
+
export type BatchAddProductsToOpenCampaignParams = {
|
|
64
|
+
/** List of item IDs to add to open campaign */
|
|
65
|
+
item_id_list: number[];
|
|
66
|
+
/** Commission rate, 1.1 means 1.1%, supports two decimal places */
|
|
67
|
+
commission_rate: number;
|
|
68
|
+
/** Start time of the open campaign (Unix timestamp) */
|
|
69
|
+
period_start_time: number;
|
|
70
|
+
/** End time of the open campaign (Unix timestamp), use 32503651199 for permanent */
|
|
71
|
+
period_end_time: number;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* Response for batch_add_products_to_open_campaign API
|
|
75
|
+
*/
|
|
76
|
+
export interface BatchAddProductsToOpenCampaignResponse extends BaseResponse {
|
|
77
|
+
response: {
|
|
78
|
+
/** Task ID for checking the batch task result */
|
|
79
|
+
task_id: string;
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Parameters for batch_edit_products_open_campaign_setting API
|
|
84
|
+
*/
|
|
85
|
+
export type BatchEditProductsOpenCampaignSettingParams = {
|
|
86
|
+
/** List of campaign IDs to edit */
|
|
87
|
+
campaign_ids: number[];
|
|
88
|
+
/** Commission rate, 1.1 means 1.1%, supports two decimal places */
|
|
89
|
+
commission_rate?: number;
|
|
90
|
+
/** Start time of the open campaign (Unix timestamp) */
|
|
91
|
+
period_start_time?: number;
|
|
92
|
+
/** End time of the open campaign (Unix timestamp) */
|
|
93
|
+
period_end_time?: number;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* Response for batch_edit_products_open_campaign_setting API
|
|
97
|
+
*/
|
|
98
|
+
export interface BatchEditProductsOpenCampaignSettingResponse extends BaseResponse {
|
|
99
|
+
response: {
|
|
100
|
+
/** Task ID for checking the batch task result */
|
|
101
|
+
task_id: string;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Parameters for batch_get_products_suggested_rate API
|
|
106
|
+
*/
|
|
107
|
+
export type BatchGetProductsSuggestedRateParams = {
|
|
108
|
+
/** Comma-separated list of item IDs */
|
|
109
|
+
item_id_list: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Response for batch_get_products_suggested_rate API
|
|
113
|
+
*/
|
|
114
|
+
export interface BatchGetProductsSuggestedRateResponse extends BaseResponse {
|
|
115
|
+
response: {
|
|
116
|
+
/** List of suggested rates for items */
|
|
117
|
+
item_list: Array<{
|
|
118
|
+
/** Item ID */
|
|
119
|
+
item_id: number;
|
|
120
|
+
/** Suggested commission rate */
|
|
121
|
+
suggested_rate: number;
|
|
122
|
+
}>;
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Parameters for batch_remove_products_open_campaign_setting API
|
|
127
|
+
*/
|
|
128
|
+
export type BatchRemoveProductsOpenCampaignSettingParams = {
|
|
129
|
+
/** List of campaign IDs to remove */
|
|
130
|
+
campaign_ids: number[];
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Response for batch_remove_products_open_campaign_setting API
|
|
134
|
+
*/
|
|
135
|
+
export interface BatchRemoveProductsOpenCampaignSettingResponse extends BaseResponse {
|
|
136
|
+
response: {
|
|
137
|
+
/** Task ID for checking the batch task result */
|
|
138
|
+
task_id: string;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Parameters for edit_all_products_open_campaign_setting API
|
|
143
|
+
*/
|
|
144
|
+
export type EditAllProductsOpenCampaignSettingParams = {
|
|
145
|
+
/** Commission rate, 1.1 means 1.1%, supports two decimal places */
|
|
146
|
+
commission_rate?: number;
|
|
147
|
+
/** Start time of the open campaign (Unix timestamp) */
|
|
148
|
+
period_start_time?: number;
|
|
149
|
+
/** End time of the open campaign (Unix timestamp) */
|
|
150
|
+
period_end_time?: number;
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Response for edit_all_products_open_campaign_setting API
|
|
154
|
+
*/
|
|
155
|
+
export interface EditAllProductsOpenCampaignSettingResponse extends BaseResponse {
|
|
156
|
+
response: {
|
|
157
|
+
/** Task ID for checking the batch task result */
|
|
158
|
+
task_id: string;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* Parameters for get_open_campaign_added_product API
|
|
163
|
+
*/
|
|
164
|
+
export type GetOpenCampaignAddedProductParams = {
|
|
165
|
+
/** Page size (max 100) */
|
|
166
|
+
page_size: number;
|
|
167
|
+
/** Cursor for pagination */
|
|
168
|
+
cursor?: string;
|
|
169
|
+
/** Sort by field */
|
|
170
|
+
sort_by?: string;
|
|
171
|
+
/** Search type */
|
|
172
|
+
search_type?: string;
|
|
173
|
+
/** Search content */
|
|
174
|
+
search_content?: string;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Response for get_open_campaign_added_product API
|
|
178
|
+
*/
|
|
179
|
+
export interface GetOpenCampaignAddedProductResponse extends BaseResponse {
|
|
180
|
+
response: {
|
|
181
|
+
/** Total count of products */
|
|
182
|
+
total_count: number;
|
|
183
|
+
/** Cursor for next page */
|
|
184
|
+
next_cursor: string;
|
|
185
|
+
/** Whether there are more pages */
|
|
186
|
+
has_more: boolean;
|
|
187
|
+
/** List of products added to open campaign */
|
|
188
|
+
item_list: Array<{
|
|
189
|
+
/** Item ID */
|
|
190
|
+
item_id: number;
|
|
191
|
+
/** Campaign ID */
|
|
192
|
+
campaign_id: number;
|
|
193
|
+
/** Commission rate */
|
|
194
|
+
commission_rate: number;
|
|
195
|
+
/** Period start time */
|
|
196
|
+
period_start_time: number;
|
|
197
|
+
/** Period end time */
|
|
198
|
+
period_end_time: number;
|
|
199
|
+
/** Item name */
|
|
200
|
+
item_name?: string;
|
|
201
|
+
}>;
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Parameters for get_open_campaign_batch_task_result API
|
|
206
|
+
*/
|
|
207
|
+
export type GetOpenCampaignBatchTaskResultParams = {
|
|
208
|
+
/** Task ID returned from batch operations */
|
|
209
|
+
task_id: string;
|
|
210
|
+
};
|
|
211
|
+
/**
|
|
212
|
+
* Response for get_open_campaign_batch_task_result API
|
|
213
|
+
*/
|
|
214
|
+
export interface GetOpenCampaignBatchTaskResultResponse extends BaseResponse {
|
|
215
|
+
response: {
|
|
216
|
+
/** Task status: processing, completed, failed */
|
|
217
|
+
status: string;
|
|
218
|
+
/** Success count */
|
|
219
|
+
success_count?: number;
|
|
220
|
+
/** Failed count */
|
|
221
|
+
fail_count?: number;
|
|
222
|
+
/** List of failed item IDs */
|
|
223
|
+
fail_item_id_list?: number[];
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
/**
|
|
227
|
+
* Parameters for get_open_campaign_not_added_product API
|
|
228
|
+
*/
|
|
229
|
+
export type GetOpenCampaignNotAddedProductParams = {
|
|
230
|
+
/** Page size (max 100) */
|
|
231
|
+
page_size: number;
|
|
232
|
+
/** Cursor for pagination */
|
|
233
|
+
cursor?: string;
|
|
234
|
+
/** Sort by field */
|
|
235
|
+
sort_by?: string;
|
|
236
|
+
/** Search type */
|
|
237
|
+
search_type?: string;
|
|
238
|
+
/** Search content */
|
|
239
|
+
search_content?: string;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Response for get_open_campaign_not_added_product API
|
|
243
|
+
*/
|
|
244
|
+
export interface GetOpenCampaignNotAddedProductResponse extends BaseResponse {
|
|
245
|
+
response: {
|
|
246
|
+
/** Total count of products */
|
|
247
|
+
total_count: number;
|
|
248
|
+
/** Cursor for next page */
|
|
249
|
+
next_cursor: string;
|
|
250
|
+
/** Whether there are more pages */
|
|
251
|
+
has_more: boolean;
|
|
252
|
+
/** List of products not added to open campaign */
|
|
253
|
+
item_list: Array<{
|
|
254
|
+
/** Item ID */
|
|
255
|
+
item_id: number;
|
|
256
|
+
/** Item name */
|
|
257
|
+
item_name?: string;
|
|
258
|
+
/** Suggested commission rate */
|
|
259
|
+
suggested_rate?: number;
|
|
260
|
+
}>;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Parameters for get_open_campaign_performance API
|
|
265
|
+
*/
|
|
266
|
+
export type GetOpenCampaignPerformanceParams = {
|
|
267
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
268
|
+
period_type: string;
|
|
269
|
+
/** Start date in YYYYMMDD format */
|
|
270
|
+
start_date: string;
|
|
271
|
+
/** End date in YYYYMMDD format */
|
|
272
|
+
end_date: string;
|
|
273
|
+
/** Page number (starts from 1) */
|
|
274
|
+
page_no?: number;
|
|
275
|
+
/** Page size */
|
|
276
|
+
page_size?: number;
|
|
277
|
+
};
|
|
278
|
+
/**
|
|
279
|
+
* Response for get_open_campaign_performance API
|
|
280
|
+
*/
|
|
281
|
+
export interface GetOpenCampaignPerformanceResponse extends BaseResponse {
|
|
282
|
+
response: {
|
|
283
|
+
/** Total count */
|
|
284
|
+
total_count?: number;
|
|
285
|
+
/** List of performance data */
|
|
286
|
+
data_list?: Array<{
|
|
287
|
+
/** Item ID */
|
|
288
|
+
item_id?: number;
|
|
289
|
+
/** Sales amount */
|
|
290
|
+
sales?: string;
|
|
291
|
+
/** Number of orders */
|
|
292
|
+
orders?: number;
|
|
293
|
+
/** Estimated commission */
|
|
294
|
+
est_commission?: string;
|
|
295
|
+
/** Clicks */
|
|
296
|
+
clicks?: number;
|
|
297
|
+
}>;
|
|
298
|
+
};
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* Response for remove_all_products_open_campaign_setting API
|
|
302
|
+
*/
|
|
303
|
+
export interface RemoveAllProductsOpenCampaignSettingResponse extends BaseResponse {
|
|
304
|
+
response: {
|
|
305
|
+
/** Task ID for checking the batch task result */
|
|
306
|
+
task_id: string;
|
|
307
|
+
};
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* Parameters for create_new_targeted_campaign API
|
|
311
|
+
*/
|
|
312
|
+
export type CreateNewTargetedCampaignParams = {
|
|
313
|
+
/** Campaign name */
|
|
314
|
+
campaign_name: string;
|
|
315
|
+
/** Start time (Unix timestamp) */
|
|
316
|
+
period_start_time: number;
|
|
317
|
+
/** End time (Unix timestamp), use 32503651199 for permanent */
|
|
318
|
+
period_end_time: number;
|
|
319
|
+
/** Whether to set a budget */
|
|
320
|
+
is_set_budget: boolean;
|
|
321
|
+
/** Budget amount (required if is_set_budget is true) */
|
|
322
|
+
budget?: number;
|
|
323
|
+
/** Message displayed to affiliates */
|
|
324
|
+
seller_message: string;
|
|
325
|
+
/** List of items with commission rates */
|
|
326
|
+
item_list: AmsItemInfo[];
|
|
327
|
+
/** List of affiliates to invite */
|
|
328
|
+
affiliate_list: AmsAffiliateInfo[];
|
|
329
|
+
};
|
|
330
|
+
/**
|
|
331
|
+
* Response for create_new_targeted_campaign API
|
|
332
|
+
*/
|
|
333
|
+
export interface CreateNewTargetedCampaignResponse extends BaseResponse {
|
|
334
|
+
response: {
|
|
335
|
+
/** Created campaign ID */
|
|
336
|
+
campaign_id: number;
|
|
337
|
+
/** List of failed items */
|
|
338
|
+
fail_item_list?: AmsFailedItem[];
|
|
339
|
+
/** List of failed affiliates */
|
|
340
|
+
fail_affiliate_list?: AmsFailedAffiliate[];
|
|
341
|
+
};
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* Parameters for edit_affiliate_list_of_targeted_campaign API
|
|
345
|
+
*/
|
|
346
|
+
export type EditAffiliateListOfTargetedCampaignParams = {
|
|
347
|
+
/** Campaign ID */
|
|
348
|
+
campaign_id: number;
|
|
349
|
+
/** Edit type: add or remove */
|
|
350
|
+
edit_type: string;
|
|
351
|
+
/** List of affiliates */
|
|
352
|
+
affiliate_list: AmsAffiliateInfo[];
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* Response for edit_affiliate_list_of_targeted_campaign API
|
|
356
|
+
*/
|
|
357
|
+
export interface EditAffiliateListOfTargetedCampaignResponse extends BaseResponse {
|
|
358
|
+
response: {
|
|
359
|
+
/** Campaign ID */
|
|
360
|
+
campaign_id: number;
|
|
361
|
+
/** List of failed affiliates */
|
|
362
|
+
fail_affiliate_list?: AmsFailedAffiliate[];
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* Parameters for edit_product_list_of_targeted_campaign API
|
|
367
|
+
*/
|
|
368
|
+
export type EditProductListOfTargetedCampaignParams = {
|
|
369
|
+
/** Campaign ID */
|
|
370
|
+
campaign_id: number;
|
|
371
|
+
/** Edit type: add, remove, or edit */
|
|
372
|
+
edit_type: string;
|
|
373
|
+
/** List of items with commission rates */
|
|
374
|
+
item_list: AmsItemInfo[];
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* Response for edit_product_list_of_targeted_campaign API
|
|
378
|
+
*/
|
|
379
|
+
export interface EditProductListOfTargetedCampaignResponse extends BaseResponse {
|
|
380
|
+
response: {
|
|
381
|
+
/** Campaign ID */
|
|
382
|
+
campaign_id: number;
|
|
383
|
+
/** List of failed items */
|
|
384
|
+
fail_item_list?: AmsFailedItem[];
|
|
385
|
+
};
|
|
386
|
+
}
|
|
387
|
+
/**
|
|
388
|
+
* Parameters for get_targeted_campaign_addable_product_list API
|
|
389
|
+
*/
|
|
390
|
+
export type GetTargetedCampaignAddableProductListParams = {
|
|
391
|
+
/** Page size (max 100) */
|
|
392
|
+
page_size: number;
|
|
393
|
+
/** Cursor for pagination */
|
|
394
|
+
cursor?: string;
|
|
395
|
+
/** Sort by field */
|
|
396
|
+
sort_by?: string;
|
|
397
|
+
/** Search type */
|
|
398
|
+
search_type?: string;
|
|
399
|
+
/** Search content */
|
|
400
|
+
search_content?: string;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* Response for get_targeted_campaign_addable_product_list API
|
|
404
|
+
*/
|
|
405
|
+
export interface GetTargetedCampaignAddableProductListResponse extends BaseResponse {
|
|
406
|
+
response: {
|
|
407
|
+
/** Total count of products */
|
|
408
|
+
total_count: number;
|
|
409
|
+
/** Cursor for next page */
|
|
410
|
+
next_cursor: string;
|
|
411
|
+
/** Whether there are more pages */
|
|
412
|
+
has_more: boolean;
|
|
413
|
+
/** List of addable products */
|
|
414
|
+
item_list: Array<{
|
|
415
|
+
/** Item ID */
|
|
416
|
+
item_id: number;
|
|
417
|
+
/** Item name */
|
|
418
|
+
item_name?: string;
|
|
419
|
+
/** Suggested commission rate */
|
|
420
|
+
suggested_rate?: number;
|
|
421
|
+
}>;
|
|
422
|
+
};
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Parameters for get_targeted_campaign_list API
|
|
426
|
+
*/
|
|
427
|
+
export type GetTargetedCampaignListParams = {
|
|
428
|
+
/** Page size */
|
|
429
|
+
page_size?: number;
|
|
430
|
+
/** Page number (starts from 1) */
|
|
431
|
+
page_no?: number;
|
|
432
|
+
/** Comma-separated list of campaign IDs to filter */
|
|
433
|
+
campaign_id_list?: string;
|
|
434
|
+
/** Campaign name to search */
|
|
435
|
+
campaign_name?: string;
|
|
436
|
+
/** Campaign status to filter */
|
|
437
|
+
campaign_status?: string;
|
|
438
|
+
};
|
|
439
|
+
/**
|
|
440
|
+
* Response for get_targeted_campaign_list API
|
|
441
|
+
*/
|
|
442
|
+
export interface GetTargetedCampaignListResponse extends BaseResponse {
|
|
443
|
+
response: {
|
|
444
|
+
/** Total count of campaigns */
|
|
445
|
+
total_count: number;
|
|
446
|
+
/** Whether there are more pages */
|
|
447
|
+
has_more: boolean;
|
|
448
|
+
/** List of campaigns */
|
|
449
|
+
campaign_list: Array<{
|
|
450
|
+
/** Campaign ID */
|
|
451
|
+
campaign_id: number;
|
|
452
|
+
/** Campaign name */
|
|
453
|
+
campaign_name: string;
|
|
454
|
+
/** Campaign status */
|
|
455
|
+
campaign_status: string;
|
|
456
|
+
/** Period start time */
|
|
457
|
+
period_start_time: number;
|
|
458
|
+
/** Period end time */
|
|
459
|
+
period_end_time: number;
|
|
460
|
+
/** Whether budget is set */
|
|
461
|
+
is_set_budget: boolean;
|
|
462
|
+
/** Budget amount */
|
|
463
|
+
budget?: number;
|
|
464
|
+
/** Create time */
|
|
465
|
+
create_time: number;
|
|
466
|
+
/** Update time */
|
|
467
|
+
update_time: number;
|
|
468
|
+
}>;
|
|
469
|
+
};
|
|
470
|
+
}
|
|
471
|
+
/**
|
|
472
|
+
* Parameters for get_targeted_campaign_performance API
|
|
473
|
+
*/
|
|
474
|
+
export type GetTargetedCampaignPerformanceParams = {
|
|
475
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
476
|
+
period_type: string;
|
|
477
|
+
/** Start date in YYYYMMDD format */
|
|
478
|
+
start_date: string;
|
|
479
|
+
/** End date in YYYYMMDD format */
|
|
480
|
+
end_date: string;
|
|
481
|
+
/** Page number (starts from 1) */
|
|
482
|
+
page_no?: number;
|
|
483
|
+
/** Page size */
|
|
484
|
+
page_size?: number;
|
|
485
|
+
};
|
|
486
|
+
/**
|
|
487
|
+
* Response for get_targeted_campaign_performance API
|
|
488
|
+
*/
|
|
489
|
+
export interface GetTargetedCampaignPerformanceResponse extends BaseResponse {
|
|
490
|
+
response: {
|
|
491
|
+
/** Total count */
|
|
492
|
+
total_count?: number;
|
|
493
|
+
/** List of performance data by campaign */
|
|
494
|
+
data_list?: Array<{
|
|
495
|
+
/** Campaign ID */
|
|
496
|
+
campaign_id: number;
|
|
497
|
+
/** Sales amount */
|
|
498
|
+
sales?: string;
|
|
499
|
+
/** Number of orders */
|
|
500
|
+
orders?: number;
|
|
501
|
+
/** Estimated commission */
|
|
502
|
+
est_commission?: string;
|
|
503
|
+
/** Clicks */
|
|
504
|
+
clicks?: number;
|
|
505
|
+
}>;
|
|
506
|
+
};
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Parameters for get_targeted_campaign_settings API
|
|
510
|
+
*/
|
|
511
|
+
export type GetTargetedCampaignSettingsParams = {
|
|
512
|
+
/** Campaign ID */
|
|
513
|
+
campaign_id: number;
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* Response for get_targeted_campaign_settings API
|
|
517
|
+
*/
|
|
518
|
+
export interface GetTargetedCampaignSettingsResponse extends BaseResponse {
|
|
519
|
+
response: {
|
|
520
|
+
/** Campaign ID */
|
|
521
|
+
campaign_id: number;
|
|
522
|
+
/** Campaign name */
|
|
523
|
+
campaign_name: string;
|
|
524
|
+
/** Campaign status */
|
|
525
|
+
campaign_status: string;
|
|
526
|
+
/** Period start time */
|
|
527
|
+
period_start_time: number;
|
|
528
|
+
/** Period end time */
|
|
529
|
+
period_end_time: number;
|
|
530
|
+
/** Whether budget is set */
|
|
531
|
+
is_set_budget: boolean;
|
|
532
|
+
/** Budget amount */
|
|
533
|
+
budget?: number;
|
|
534
|
+
/** Seller message */
|
|
535
|
+
seller_message?: string;
|
|
536
|
+
/** List of items in the campaign */
|
|
537
|
+
item_list?: Array<{
|
|
538
|
+
/** Item ID */
|
|
539
|
+
item_id: number;
|
|
540
|
+
/** Commission rate */
|
|
541
|
+
rate: number;
|
|
542
|
+
}>;
|
|
543
|
+
/** List of affiliates in the campaign */
|
|
544
|
+
affiliate_list?: Array<{
|
|
545
|
+
/** Affiliate ID */
|
|
546
|
+
affiliate_id: number;
|
|
547
|
+
/** Affiliate name */
|
|
548
|
+
affiliate_name?: string;
|
|
549
|
+
}>;
|
|
550
|
+
};
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Parameters for terminate_targeted_campaign API
|
|
554
|
+
*/
|
|
555
|
+
export type TerminateTargetedCampaignParams = {
|
|
556
|
+
/** Campaign ID */
|
|
557
|
+
campaign_id: number;
|
|
558
|
+
};
|
|
559
|
+
/**
|
|
560
|
+
* Response for terminate_targeted_campaign API
|
|
561
|
+
*/
|
|
562
|
+
export interface TerminateTargetedCampaignResponse extends BaseResponse {
|
|
563
|
+
response: {
|
|
564
|
+
/** Campaign ID */
|
|
565
|
+
campaign_id: number;
|
|
566
|
+
};
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Parameters for update_basic_info_of_targeted_campaign API
|
|
570
|
+
*/
|
|
571
|
+
export type UpdateBasicInfoOfTargetedCampaignParams = {
|
|
572
|
+
/** Campaign ID */
|
|
573
|
+
campaign_id: number;
|
|
574
|
+
/** Campaign name */
|
|
575
|
+
campaign_name?: string;
|
|
576
|
+
/** Period start time */
|
|
577
|
+
period_start_time?: number;
|
|
578
|
+
/** Period end time */
|
|
579
|
+
period_end_time?: number;
|
|
580
|
+
/** Whether to set a budget */
|
|
581
|
+
is_set_budget?: boolean;
|
|
582
|
+
/** Budget amount */
|
|
583
|
+
budget?: number;
|
|
584
|
+
/** Seller message */
|
|
585
|
+
seller_message?: string;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* Response for update_basic_info_of_targeted_campaign API
|
|
589
|
+
*/
|
|
590
|
+
export interface UpdateBasicInfoOfTargetedCampaignResponse extends BaseResponse {
|
|
591
|
+
response: {
|
|
592
|
+
/** Campaign ID */
|
|
593
|
+
campaign_id: number;
|
|
594
|
+
};
|
|
595
|
+
}
|
|
596
|
+
/**
|
|
597
|
+
* Parameters for get_affiliate_performance API
|
|
598
|
+
*/
|
|
599
|
+
export type GetAffiliatePerformanceParams = {
|
|
600
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
601
|
+
period_type: string;
|
|
602
|
+
/** Start date in YYYYMMDD format */
|
|
603
|
+
start_date: string;
|
|
604
|
+
/** End date in YYYYMMDD format */
|
|
605
|
+
end_date: string;
|
|
606
|
+
/** Page number (starts from 1) */
|
|
607
|
+
page_no?: number;
|
|
608
|
+
/** Page size */
|
|
609
|
+
page_size?: number;
|
|
610
|
+
};
|
|
611
|
+
/**
|
|
612
|
+
* Response for get_affiliate_performance API
|
|
613
|
+
*/
|
|
614
|
+
export interface GetAffiliatePerformanceResponse extends BaseResponse {
|
|
615
|
+
response: {
|
|
616
|
+
/** Total count */
|
|
617
|
+
total_count?: number;
|
|
618
|
+
/** List of affiliate performance data */
|
|
619
|
+
data_list?: Array<{
|
|
620
|
+
/** Affiliate ID */
|
|
621
|
+
affiliate_id: number;
|
|
622
|
+
/** Affiliate name */
|
|
623
|
+
affiliate_name?: string;
|
|
624
|
+
/** Sales amount */
|
|
625
|
+
sales?: string;
|
|
626
|
+
/** Number of orders */
|
|
627
|
+
orders?: number;
|
|
628
|
+
/** Estimated commission */
|
|
629
|
+
est_commission?: string;
|
|
630
|
+
/** Clicks */
|
|
631
|
+
clicks?: number;
|
|
632
|
+
}>;
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* Response for get_auto_add_new_product_toggle_status API
|
|
637
|
+
*/
|
|
638
|
+
export interface GetAutoAddNewProductToggleStatusResponse extends BaseResponse {
|
|
639
|
+
response: {
|
|
640
|
+
/** Whether auto-add new product is enabled */
|
|
641
|
+
open: boolean;
|
|
642
|
+
/** Commission rate for auto-added products */
|
|
643
|
+
commission_rate?: number;
|
|
644
|
+
};
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* Parameters for get_campaign_key_metrics_performance API
|
|
648
|
+
*/
|
|
649
|
+
export type GetCampaignKeyMetricsPerformanceParams = {
|
|
650
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
651
|
+
period_type: string;
|
|
652
|
+
/** Start date in YYYYMMDD format */
|
|
653
|
+
start_date: string;
|
|
654
|
+
/** End date in YYYYMMDD format */
|
|
655
|
+
end_date: string;
|
|
656
|
+
};
|
|
657
|
+
/**
|
|
658
|
+
* Response for get_campaign_key_metrics_performance API
|
|
659
|
+
*/
|
|
660
|
+
export interface GetCampaignKeyMetricsPerformanceResponse extends BaseResponse {
|
|
661
|
+
response: {
|
|
662
|
+
/** Total sales */
|
|
663
|
+
sales?: string;
|
|
664
|
+
/** Total orders */
|
|
665
|
+
orders?: number;
|
|
666
|
+
/** Total estimated commission */
|
|
667
|
+
est_commission?: string;
|
|
668
|
+
/** Total clicks */
|
|
669
|
+
clicks?: number;
|
|
670
|
+
/** ROI */
|
|
671
|
+
roi?: string;
|
|
672
|
+
};
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* Parameters for get_content_performance API
|
|
676
|
+
*/
|
|
677
|
+
export type GetContentPerformanceParams = {
|
|
678
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
679
|
+
period_type: string;
|
|
680
|
+
/** Start date in YYYYMMDD format */
|
|
681
|
+
start_date: string;
|
|
682
|
+
/** End date in YYYYMMDD format */
|
|
683
|
+
end_date: string;
|
|
684
|
+
/** Page number (starts from 1) */
|
|
685
|
+
page_no?: number;
|
|
686
|
+
/** Page size */
|
|
687
|
+
page_size?: number;
|
|
688
|
+
};
|
|
689
|
+
/**
|
|
690
|
+
* Response for get_content_performance API
|
|
691
|
+
*/
|
|
692
|
+
export interface GetContentPerformanceResponse extends BaseResponse {
|
|
693
|
+
response: {
|
|
694
|
+
/** Total count */
|
|
695
|
+
total_count?: number;
|
|
696
|
+
/** List of content performance data */
|
|
697
|
+
data_list?: Array<{
|
|
698
|
+
/** Content ID */
|
|
699
|
+
content_id?: number;
|
|
700
|
+
/** Content type */
|
|
701
|
+
content_type?: string;
|
|
702
|
+
/** Sales amount */
|
|
703
|
+
sales?: string;
|
|
704
|
+
/** Number of orders */
|
|
705
|
+
orders?: number;
|
|
706
|
+
/** Estimated commission */
|
|
707
|
+
est_commission?: string;
|
|
708
|
+
/** Clicks */
|
|
709
|
+
clicks?: number;
|
|
710
|
+
}>;
|
|
711
|
+
};
|
|
712
|
+
}
|
|
713
|
+
/**
|
|
714
|
+
* Parameters for get_conversion_report API
|
|
715
|
+
*/
|
|
716
|
+
export type GetConversionReportParams = {
|
|
717
|
+
/** Page number (starts from 1) */
|
|
718
|
+
page_no?: number;
|
|
719
|
+
/** Page size */
|
|
720
|
+
page_size?: number;
|
|
721
|
+
/** Order SN to filter */
|
|
722
|
+
order_sn?: string;
|
|
723
|
+
/** Affiliate ID to filter */
|
|
724
|
+
affiliate_id?: number;
|
|
725
|
+
/** Item ID to filter */
|
|
726
|
+
item_id?: number;
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* Response for get_conversion_report API
|
|
730
|
+
*/
|
|
731
|
+
export interface GetConversionReportResponse extends BaseResponse {
|
|
732
|
+
response: {
|
|
733
|
+
/** Total count */
|
|
734
|
+
total_count?: number;
|
|
735
|
+
/** List of conversion data */
|
|
736
|
+
data_list?: Array<{
|
|
737
|
+
/** Order SN */
|
|
738
|
+
order_sn: string;
|
|
739
|
+
/** Item ID */
|
|
740
|
+
item_id: number;
|
|
741
|
+
/** Affiliate ID */
|
|
742
|
+
affiliate_id: number;
|
|
743
|
+
/** Commission amount */
|
|
744
|
+
commission?: string;
|
|
745
|
+
/** Order time */
|
|
746
|
+
order_time?: number;
|
|
747
|
+
/** Order status */
|
|
748
|
+
order_status?: string;
|
|
749
|
+
}>;
|
|
750
|
+
};
|
|
751
|
+
}
|
|
752
|
+
/**
|
|
753
|
+
* Parameters for get_managed_affiliate_list API
|
|
754
|
+
*/
|
|
755
|
+
export type GetManagedAffiliateListParams = {
|
|
756
|
+
/** Page number (starts from 1) */
|
|
757
|
+
page_no?: number;
|
|
758
|
+
/** Page size */
|
|
759
|
+
page_size?: number;
|
|
760
|
+
};
|
|
761
|
+
/**
|
|
762
|
+
* Response for get_managed_affiliate_list API
|
|
763
|
+
*/
|
|
764
|
+
export interface GetManagedAffiliateListResponse extends BaseResponse {
|
|
765
|
+
response: {
|
|
766
|
+
/** Total count */
|
|
767
|
+
total_count?: number;
|
|
768
|
+
/** List of managed affiliates */
|
|
769
|
+
affiliate_list?: Array<{
|
|
770
|
+
/** Affiliate ID */
|
|
771
|
+
affiliate_id: number;
|
|
772
|
+
/** Affiliate name */
|
|
773
|
+
affiliate_name?: string;
|
|
774
|
+
/** Affiliate status */
|
|
775
|
+
status?: string;
|
|
776
|
+
}>;
|
|
777
|
+
};
|
|
778
|
+
}
|
|
779
|
+
/**
|
|
780
|
+
* Parameters for get_optimization_suggestion_product API
|
|
781
|
+
*/
|
|
782
|
+
export type GetOptimizationSuggestionProductParams = {
|
|
783
|
+
/** Page number (starts from 1) */
|
|
784
|
+
page_no?: number;
|
|
785
|
+
/** Page size */
|
|
786
|
+
page_size?: number;
|
|
787
|
+
/** Recommendation reason filter */
|
|
788
|
+
rcmd_reason_filter?: string;
|
|
789
|
+
};
|
|
790
|
+
/**
|
|
791
|
+
* Response for get_optimization_suggestion_product API
|
|
792
|
+
*/
|
|
793
|
+
export interface GetOptimizationSuggestionProductResponse extends BaseResponse {
|
|
794
|
+
response: {
|
|
795
|
+
/** Total count */
|
|
796
|
+
total_count?: number;
|
|
797
|
+
/** List of products with optimization suggestions */
|
|
798
|
+
item_list?: Array<{
|
|
799
|
+
/** Item ID */
|
|
800
|
+
item_id: number;
|
|
801
|
+
/** Item name */
|
|
802
|
+
item_name?: string;
|
|
803
|
+
/** Current rate */
|
|
804
|
+
current_rate?: number;
|
|
805
|
+
/** Suggested rate */
|
|
806
|
+
suggested_rate?: number;
|
|
807
|
+
/** Recommendation reason */
|
|
808
|
+
rcmd_reason?: string;
|
|
809
|
+
}>;
|
|
810
|
+
};
|
|
811
|
+
}
|
|
812
|
+
/**
|
|
813
|
+
* Parameters for get_performance_data_update_time API
|
|
814
|
+
*/
|
|
815
|
+
export type GetPerformanceDataUpdateTimeParams = {
|
|
816
|
+
/** Marker type: AmsMarker */
|
|
817
|
+
marker_type: string;
|
|
818
|
+
};
|
|
819
|
+
/**
|
|
820
|
+
* Response for get_performance_data_update_time API
|
|
821
|
+
*/
|
|
822
|
+
export interface GetPerformanceDataUpdateTimeResponse extends BaseResponse {
|
|
823
|
+
response: {
|
|
824
|
+
/** Latest data date in YYYYMMDD format */
|
|
825
|
+
latest_data_date: string;
|
|
826
|
+
};
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* Parameters for get_product_performance API
|
|
830
|
+
*/
|
|
831
|
+
export type GetProductPerformanceParams = {
|
|
832
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
833
|
+
period_type: string;
|
|
834
|
+
/** Start date in YYYYMMDD format */
|
|
835
|
+
start_date: string;
|
|
836
|
+
/** End date in YYYYMMDD format */
|
|
837
|
+
end_date: string;
|
|
838
|
+
/** Page number (starts from 1) */
|
|
839
|
+
page_no?: number;
|
|
840
|
+
/** Page size */
|
|
841
|
+
page_size?: number;
|
|
842
|
+
};
|
|
843
|
+
/**
|
|
844
|
+
* Response for get_product_performance API
|
|
845
|
+
*/
|
|
846
|
+
export interface GetProductPerformanceResponse extends BaseResponse {
|
|
847
|
+
response: {
|
|
848
|
+
/** Total count */
|
|
849
|
+
total_count?: number;
|
|
850
|
+
/** List of product performance data */
|
|
851
|
+
data_list?: Array<{
|
|
852
|
+
/** Item ID */
|
|
853
|
+
item_id: number;
|
|
854
|
+
/** Item name */
|
|
855
|
+
item_name?: string;
|
|
856
|
+
/** Sales amount */
|
|
857
|
+
sales?: string;
|
|
858
|
+
/** Number of orders */
|
|
859
|
+
orders?: number;
|
|
860
|
+
/** Estimated commission */
|
|
861
|
+
est_commission?: string;
|
|
862
|
+
/** Clicks */
|
|
863
|
+
clicks?: number;
|
|
864
|
+
}>;
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Parameters for get_recommended_affiliate_list API
|
|
869
|
+
*/
|
|
870
|
+
export type GetRecommendedAffiliateListParams = {
|
|
871
|
+
/** Page size */
|
|
872
|
+
page_size?: number;
|
|
873
|
+
};
|
|
874
|
+
/**
|
|
875
|
+
* Response for get_recommended_affiliate_list API
|
|
876
|
+
*/
|
|
877
|
+
export interface GetRecommendedAffiliateListResponse extends BaseResponse {
|
|
878
|
+
response: {
|
|
879
|
+
/** List of recommended affiliates */
|
|
880
|
+
affiliate_list?: Array<{
|
|
881
|
+
/** Affiliate ID */
|
|
882
|
+
affiliate_id: number;
|
|
883
|
+
/** Affiliate name */
|
|
884
|
+
affiliate_name?: string;
|
|
885
|
+
/** Recommendation reason */
|
|
886
|
+
rcmd_reason?: string;
|
|
887
|
+
}>;
|
|
888
|
+
};
|
|
889
|
+
}
|
|
890
|
+
/**
|
|
891
|
+
* Parameters for get_shop_performance API
|
|
892
|
+
*/
|
|
893
|
+
export type AmsGetShopPerformanceParams = {
|
|
894
|
+
/** Period type: Day, Week, Month, Last7d, Last30d */
|
|
895
|
+
period_type: string;
|
|
896
|
+
/** Start date in YYYYMMDD format */
|
|
897
|
+
start_date: string;
|
|
898
|
+
/** End date in YYYYMMDD format */
|
|
899
|
+
end_date: string;
|
|
900
|
+
/** Order type: PlacedOrder or ConfirmedOrder */
|
|
901
|
+
order_type: string;
|
|
902
|
+
/** Channel: AllChannel, SocialMedia, ShopeeVideo, LiveStreaming */
|
|
903
|
+
channel: string;
|
|
904
|
+
};
|
|
905
|
+
/**
|
|
906
|
+
* Response for get_shop_performance API
|
|
907
|
+
*/
|
|
908
|
+
export interface AmsGetShopPerformanceResponse extends BaseResponse {
|
|
909
|
+
response: {
|
|
910
|
+
/** Total sales */
|
|
911
|
+
sales?: string;
|
|
912
|
+
/** Gross items sold */
|
|
913
|
+
gross_item_sold?: number;
|
|
914
|
+
/** Total orders */
|
|
915
|
+
orders?: number;
|
|
916
|
+
/** Total clicks */
|
|
917
|
+
clicks?: number;
|
|
918
|
+
/** Estimated commission */
|
|
919
|
+
est_commission?: string;
|
|
920
|
+
/** ROI */
|
|
921
|
+
roi?: string;
|
|
922
|
+
/** Total buyers */
|
|
923
|
+
total_buyers?: number;
|
|
924
|
+
/** New buyers */
|
|
925
|
+
new_buyers?: number;
|
|
926
|
+
/** Fetched date range */
|
|
927
|
+
fetched_date_range?: string;
|
|
928
|
+
};
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Response for get_shop_suggested_rate API
|
|
932
|
+
*/
|
|
933
|
+
export interface GetShopSuggestedRateResponse extends BaseResponse {
|
|
934
|
+
response: {
|
|
935
|
+
/** Suggested commission rate */
|
|
936
|
+
suggested_rate: number;
|
|
937
|
+
/** Minimum rate */
|
|
938
|
+
min_rate?: number;
|
|
939
|
+
/** Maximum rate */
|
|
940
|
+
max_rate?: number;
|
|
941
|
+
};
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Response for get_validation_list API
|
|
945
|
+
*/
|
|
946
|
+
export interface GetValidationListResponse extends BaseResponse {
|
|
947
|
+
response: {
|
|
948
|
+
/** List of validation periods */
|
|
949
|
+
validation_list?: Array<{
|
|
950
|
+
/** Validation ID */
|
|
951
|
+
validation_id: number;
|
|
952
|
+
/** Validation month in YYYYMM format */
|
|
953
|
+
validation_month: string;
|
|
954
|
+
/** Status */
|
|
955
|
+
status: string;
|
|
956
|
+
}>;
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
/**
|
|
960
|
+
* Parameters for get_validation_report API
|
|
961
|
+
*/
|
|
962
|
+
export type GetValidationReportParams = {
|
|
963
|
+
/** Page number (starts from 1) */
|
|
964
|
+
page_no?: number;
|
|
965
|
+
/** Page size */
|
|
966
|
+
page_size?: number;
|
|
967
|
+
/** Validation ID */
|
|
968
|
+
validation_id?: number;
|
|
969
|
+
/** Validation month in YYYYMM format */
|
|
970
|
+
validation_month?: string;
|
|
971
|
+
/** Campaign source */
|
|
972
|
+
campaign_source?: string;
|
|
973
|
+
};
|
|
974
|
+
/**
|
|
975
|
+
* Response for get_validation_report API
|
|
976
|
+
*/
|
|
977
|
+
export interface GetValidationReportResponse extends BaseResponse {
|
|
978
|
+
response: {
|
|
979
|
+
/** Total count */
|
|
980
|
+
total_count?: number;
|
|
981
|
+
/** List of validation data */
|
|
982
|
+
data_list?: Array<{
|
|
983
|
+
/** Order SN */
|
|
984
|
+
order_sn: string;
|
|
985
|
+
/** Item ID */
|
|
986
|
+
item_id: number;
|
|
987
|
+
/** Affiliate ID */
|
|
988
|
+
affiliate_id: number;
|
|
989
|
+
/** Validated commission */
|
|
990
|
+
validated_commission?: string;
|
|
991
|
+
/** Validation status */
|
|
992
|
+
validation_status?: string;
|
|
993
|
+
}>;
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
/**
|
|
997
|
+
* Parameters for query_affiliate_list API
|
|
998
|
+
*/
|
|
999
|
+
export type QueryAffiliateListParams = {
|
|
1000
|
+
/** Query type: id or name */
|
|
1001
|
+
query_type: string;
|
|
1002
|
+
/** Comma-separated list of affiliate IDs (when query_type is id) */
|
|
1003
|
+
affiliate_id_list?: string;
|
|
1004
|
+
/** Name to search (when query_type is name) */
|
|
1005
|
+
name?: string;
|
|
1006
|
+
};
|
|
1007
|
+
/**
|
|
1008
|
+
* Response for query_affiliate_list API
|
|
1009
|
+
*/
|
|
1010
|
+
export interface QueryAffiliateListResponse extends BaseResponse {
|
|
1011
|
+
response: {
|
|
1012
|
+
/** List of affiliates */
|
|
1013
|
+
affiliate_list?: Array<{
|
|
1014
|
+
/** Affiliate ID */
|
|
1015
|
+
affiliate_id: number;
|
|
1016
|
+
/** Affiliate name */
|
|
1017
|
+
affiliate_name?: string;
|
|
1018
|
+
/** Avatar URL */
|
|
1019
|
+
avatar_url?: string;
|
|
1020
|
+
}>;
|
|
1021
|
+
};
|
|
1022
|
+
}
|
|
1023
|
+
/**
|
|
1024
|
+
* Parameters for update_auto_add_new_product_setting API
|
|
1025
|
+
*/
|
|
1026
|
+
export type UpdateAutoAddNewProductSettingParams = {
|
|
1027
|
+
/** Whether to enable auto-add new product */
|
|
1028
|
+
open: boolean;
|
|
1029
|
+
/** Commission rate for auto-added products */
|
|
1030
|
+
commission_rate?: number;
|
|
1031
|
+
};
|
|
1032
|
+
/**
|
|
1033
|
+
* Response for update_auto_add_new_product_setting API
|
|
1034
|
+
*/
|
|
1035
|
+
export interface UpdateAutoAddNewProductSettingResponse extends BaseResponse {
|
|
1036
|
+
response: Record<string, never>;
|
|
1037
|
+
}
|