@congminh1254/shopee-sdk 0.6.0 → 0.7.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.
@@ -0,0 +1,734 @@
1
+ import { BaseResponse } from "./base.js";
2
+ /**
3
+ * Penalty points information for a shop
4
+ * Points accumulated will remain on record till the end of a quarter.
5
+ * This will be reset on the first Monday of each quarter
6
+ */
7
+ export interface PenaltyPoints {
8
+ /** The overall penalty points */
9
+ overall_penalty_points: number;
10
+ /** The penalty points caused by non-fulfilment orders */
11
+ non_fulfillment_rate: number;
12
+ /** The penalty points caused by late shipment orders */
13
+ late_shipment_rate: number;
14
+ /** The penalty points caused by listing violations */
15
+ listing_violations: number;
16
+ /** The penalty points caused by orders that failed to be picked up during the scheduled pickup day */
17
+ opfr_violations: number;
18
+ /** Other penalty points */
19
+ others: number;
20
+ }
21
+ /**
22
+ * Information about ongoing punishment for a shop
23
+ */
24
+ export interface OngoingPunishment {
25
+ /** Punishment tier, ranges from 1-5 */
26
+ punishment_tier: number;
27
+ /** Number of days left for the punishment period */
28
+ days_left: number;
29
+ /** The name of punishment */
30
+ punishment_name: string;
31
+ }
32
+ /**
33
+ * Response for the get shop penalty API
34
+ */
35
+ export interface GetShopPenaltyResponse extends BaseResponse {
36
+ response: {
37
+ /** The shop's penalty points information */
38
+ penalty_points: PenaltyPoints;
39
+ /** List of ongoing punishments for the shop */
40
+ ongoing_punishment: OngoingPunishment[];
41
+ };
42
+ }
43
+ /**
44
+ * Metric type enum values
45
+ * 1 = Fulfillment Performance
46
+ * 2 = Listing Performance
47
+ * 3 = Customer Service Performance
48
+ */
49
+ export declare enum MetricType {
50
+ FulfillmentPerformance = 1,
51
+ ListingPerformance = 2,
52
+ CustomerServicePerformance = 3
53
+ }
54
+ /**
55
+ * Metric unit enum values
56
+ * 1 = Number
57
+ * 2 = Percentage
58
+ * 3 = Second
59
+ * 4 = Day
60
+ * 5 = Hour
61
+ */
62
+ export declare enum MetricUnit {
63
+ Number = 1,
64
+ Percentage = 2,
65
+ Second = 3,
66
+ Day = 4,
67
+ Hour = 5
68
+ }
69
+ /**
70
+ * Overall performance rating enum values
71
+ * 1 = Poor
72
+ * 2 = ImprovementNeeded
73
+ * 3 = Good
74
+ * 4 = Excellent
75
+ */
76
+ export declare enum PerformanceRating {
77
+ Poor = 1,
78
+ ImprovementNeeded = 2,
79
+ Good = 3,
80
+ Excellent = 4
81
+ }
82
+ /**
83
+ * Target information for a metric
84
+ */
85
+ export interface Target {
86
+ /** Value of target */
87
+ value: number;
88
+ /** Comparator of target: <, <=, >, >=, = */
89
+ comparator: string;
90
+ }
91
+ /**
92
+ * Overall shop performance data
93
+ */
94
+ export interface OverallPerformance {
95
+ /** Overall performance rating (1=Poor, 2=ImprovementNeeded, 3=Good, 4=Excellent) */
96
+ rating: PerformanceRating;
97
+ /** The number of metrics that did not meet target under Fulfillment Performance type */
98
+ fulfillment_failed: number;
99
+ /** The number of metrics that did not meet target under Listing Performance type */
100
+ listing_failed: number;
101
+ /** The number of metrics that did not meet target under Customer Service Performance type */
102
+ custom_service_failed: number;
103
+ }
104
+ /**
105
+ * Shop performance metric information
106
+ */
107
+ export interface Metric {
108
+ /** Type of metric (1=Fulfillment, 2=Listing, 3=Customer Service) */
109
+ metric_type: MetricType;
110
+ /** ID of metric (see API documentation for specific IDs) */
111
+ metric_id: number;
112
+ /** ID of parent metric */
113
+ parent_metric_id: number;
114
+ /** Default name of metric */
115
+ metric_name: string;
116
+ /** The performance of the metric at current period */
117
+ current_period: number | null;
118
+ /** The performance of the metric at last period */
119
+ last_period: number | null;
120
+ /** Unit of metric (1=Number, 2=Percentage, 3=Second, 4=Day, 5=Hour) */
121
+ unit: MetricUnit;
122
+ /** Target information for the metric */
123
+ target: Target;
124
+ /**
125
+ * (Only for whitelist TW sellers) The exemption end date for Pre-order Listing metrics
126
+ * Only present if the shop is in the "POL Shop Whitelist", within the "Exemption Period",
127
+ * and the metric_id is 12 (Pre-order Listing %) or 15 (Days of Pre-order Listing Violation)
128
+ */
129
+ exemption_end_date?: string;
130
+ }
131
+ /**
132
+ * Response for the get shop performance API
133
+ */
134
+ export interface GetShopPerformanceResponse extends BaseResponse {
135
+ response: {
136
+ /** Overall shop performance data */
137
+ overall_performance: OverallPerformance;
138
+ /** List of performance metrics */
139
+ metric_list: Metric[];
140
+ };
141
+ }
142
+ /**
143
+ * Parameters for the get metric source detail API
144
+ */
145
+ export type GetMetricSourceDetailParams = {
146
+ /**
147
+ * ID of metric. Supported values:
148
+ * 1: Late Shipment Rate (All Channels)
149
+ * 3: Non-Fulfilment Rate (All Channels)
150
+ * 12: Pre-order Listing %
151
+ * 15: Days of Pre-order Listing Violation
152
+ * 25: Fast Handover Rate
153
+ * 28: On-time Pickup Failure Rate Violation Value
154
+ * 42: Cancellation Rate (All Channels)
155
+ * 43: Return-refund Rate (All Channels)
156
+ * 52: Severe Listing Violations
157
+ * 53: Other Listing Violations
158
+ * 85: Late Shipment Rate (NDD)
159
+ * 88: Non-fulfilment Rate (NDD)
160
+ * 91: Cancellation Rate (NDD)
161
+ * 92: Return-refund Rate (NDD)
162
+ * 97: % NDD Listings
163
+ * 2001: Fast Handover Rate - SLS
164
+ * 2002: Fast Handover Rate - FBS
165
+ * 2003: Fast Handover Rate - 3PF
166
+ */
167
+ metric_id: number;
168
+ /**
169
+ * Specifies the page number of data to return in the current call.
170
+ * Starting from 1. Default is 1.
171
+ */
172
+ page_no?: number;
173
+ /**
174
+ * Maximum number of entries to return in a single "page" of data.
175
+ * The limit is between 1 and 100. Default is 10.
176
+ */
177
+ page_size?: number;
178
+ };
179
+ /**
180
+ * Non-fulfillment order information
181
+ */
182
+ export interface NonFulfillmentOrder {
183
+ /** Order SN */
184
+ order_sn: string;
185
+ /**
186
+ * Non-fulfilment type. Applicable values:
187
+ * 1: System Cancellation
188
+ * 2: Seller Cancellation
189
+ * 3: Return Refunds
190
+ */
191
+ non_fulfillment_type: number;
192
+ /**
193
+ * Detailed reason for non-fulfillment. Applicable values include:
194
+ * 1001: Return Refund
195
+ * 1002: Parcel Split Cancellation
196
+ * (see API documentation for full list)
197
+ */
198
+ detailed_reason: number;
199
+ }
200
+ /**
201
+ * Cancellation order information
202
+ */
203
+ export interface CancellationOrder {
204
+ /** Order SN */
205
+ order_sn: string;
206
+ /**
207
+ * Cancellation Type. Applicable values:
208
+ * 1: System Cancellation
209
+ * 2: Seller Cancellation
210
+ */
211
+ cancellation_type: number;
212
+ /**
213
+ * Detailed reason for cancellation. Applicable values include:
214
+ * 1001: Return Refund
215
+ * 1002: Parcel Split Cancellation
216
+ * (see API documentation for full list)
217
+ */
218
+ detailed_reason: number;
219
+ }
220
+ /**
221
+ * Return-refund order information
222
+ */
223
+ export interface ReturnRefundOrder {
224
+ /** Order SN */
225
+ order_sn: string;
226
+ /**
227
+ * Detailed reason for return-refund. Applicable values include:
228
+ * 1001: Return Refund
229
+ * 1002: Parcel Split Cancellation
230
+ * (see API documentation for full list)
231
+ */
232
+ detailed_reason: number;
233
+ }
234
+ /**
235
+ * Late shipment order information
236
+ */
237
+ export interface LateShipmentOrder {
238
+ /** Order SN */
239
+ order_sn: string;
240
+ /** Shipping deadline timestamp */
241
+ shipping_deadline: number;
242
+ /** Actual shipping time timestamp */
243
+ actual_shipping_time: number;
244
+ /** Number of days the order was late by */
245
+ late_by_days: number;
246
+ }
247
+ /**
248
+ * Fast handover order information
249
+ */
250
+ export interface FastHandoverOrder {
251
+ /** Order SN */
252
+ order_sn: string;
253
+ /** Parcel ID */
254
+ parcel_id: number;
255
+ /** Confirmed date timestamp */
256
+ confirm_time: number;
257
+ /** Parcel drop off / pickup datetime */
258
+ handover_time: number;
259
+ /** Fast handover deadline timestamp */
260
+ handover_deadline: number;
261
+ }
262
+ /**
263
+ * On-time pickup failure rate daily detail
264
+ */
265
+ export interface OpfrDayDetail {
266
+ /** Date in DD/MM/YYYY format */
267
+ date: string;
268
+ /** Number of scheduled pickups */
269
+ scheduled_pickup_num: number;
270
+ /** Number of failed pickups */
271
+ failed_pickup_num: number;
272
+ /** On-time Pickup Failure Rate */
273
+ opfr: number;
274
+ /** Target rate as a string (e.g., "49.90%") */
275
+ target: string;
276
+ }
277
+ /**
278
+ * Listing violation information
279
+ */
280
+ export interface ViolationListing {
281
+ /** Item ID */
282
+ item_id: number;
283
+ /**
284
+ * Reason for violation. Applicable values:
285
+ * 1: Prohibited
286
+ * 2: Counterfeit
287
+ * 3: Spam
288
+ * 4: Inappropriate Image
289
+ * 5: Insufficient Info
290
+ * 6: Mall Listing Improvement
291
+ * 7: Other Listing Improvement
292
+ * 8: PQR Products
293
+ */
294
+ detailed_reason: number;
295
+ /** Updated on timestamp */
296
+ update_time: number;
297
+ }
298
+ /**
299
+ * Pre-order listing violation daily detail
300
+ */
301
+ export interface PreOrderListingViolationDay {
302
+ /** Date in DD/MM/YYYY format */
303
+ date: string;
304
+ /** Number of live listings */
305
+ live_listing_count: number;
306
+ /** Number of pre-order listings */
307
+ pre_order_listing_count: number;
308
+ /** Pre-order listing percentage */
309
+ pre_order_listing_rate: number;
310
+ /** Target rate as a string (e.g., "13.00%") */
311
+ target: string;
312
+ }
313
+ /**
314
+ * Pre-order listing information
315
+ */
316
+ export interface PreOrderListing {
317
+ /** Item ID */
318
+ item_id: number;
319
+ /**
320
+ * Current pre-order status. Applicable values:
321
+ * 1: Yes
322
+ * 2: No
323
+ */
324
+ current_pre_order_status: number;
325
+ }
326
+ /**
327
+ * NDD (Next Day Delivery) listing information
328
+ */
329
+ export interface NddListing {
330
+ /** Item ID */
331
+ item_id: number;
332
+ /**
333
+ * Current NDD status. Applicable values:
334
+ * 1: Yes
335
+ * 0: No
336
+ */
337
+ current_ndd_status: number;
338
+ }
339
+ /**
340
+ * Response for the get metric source detail API
341
+ */
342
+ export interface GetMetricSourceDetailResponse extends BaseResponse {
343
+ response: {
344
+ /** ID of metric for which details are returned */
345
+ metric_id: number;
346
+ /** Total number of affected orders or relevant listings */
347
+ total_count: number;
348
+ /**
349
+ * Affected orders for Non-fulfilment Rate.
350
+ * Only present for metric_id: 3 (Non-Fulfilment Rate All Channels) or 88 (Non-fulfilment Rate NDD)
351
+ */
352
+ nfr_order_list?: NonFulfillmentOrder[];
353
+ /**
354
+ * Affected orders for Cancellation Rate.
355
+ * Only present for metric_id: 42 (Cancellation Rate All Channels) or 91 (Cancellation Rate NDD)
356
+ */
357
+ cancellation_order_list?: CancellationOrder[];
358
+ /**
359
+ * Affected orders for Return-refund Rate.
360
+ * Only present for metric_id: 43 (Return-refund Rate All Channels) or 92 (Return-refund Rate NDD)
361
+ */
362
+ return_refund_order_list?: ReturnRefundOrder[];
363
+ /**
364
+ * Affected orders for Late Shipment Rate.
365
+ * Only present for metric_id: 1 (Late Shipment Rate All Channels) or 85 (Late Shipment Rate NDD)
366
+ */
367
+ lsr_order_list?: LateShipmentOrder[];
368
+ /**
369
+ * Affected orders for Fast Handover Rate.
370
+ * Only present for metric_id: 25 (Fast Handover Rate), 2001 (FHR-SLS), 2002 (FHR-FBS), 2003 (FHR-3PF)
371
+ */
372
+ fhr_order_list?: FastHandoverOrder[];
373
+ /**
374
+ * Relevant violations for OPFR Violation Value.
375
+ * Only present for metric_id: 28 (On-time Pickup Failure Rate Violation Value)
376
+ */
377
+ opfr_day_detail_data_list?: OpfrDayDetail[];
378
+ /**
379
+ * Relevant listings for Severe and Other Listing Violations.
380
+ * Only present for metric_id: 52 (Severe Listing Violations) or 53 (Other Listing Violations)
381
+ */
382
+ violation_listing_list?: ViolationListing[];
383
+ /**
384
+ * Relevant listings for Days of Pre-order Listing Violation.
385
+ * Only present for metric_id: 15 (Days of Pre-order Listing Violation)
386
+ */
387
+ pre_order_listing_violation_data_list?: PreOrderListingViolationDay[];
388
+ /**
389
+ * Relevant listings for Pre-order Listing %.
390
+ * Only present for metric_id: 12 (Pre-order Listing %)
391
+ */
392
+ pre_order_listing_list?: PreOrderListing[];
393
+ /**
394
+ * Relevant listings for % NDD Listings.
395
+ * Only present for metric_id: 97 (% NDD Listings)
396
+ */
397
+ ndd_listing_list?: NddListing[];
398
+ };
399
+ }
400
+ /**
401
+ * Violation types that can be used to filter penalty point history
402
+ * These values correspond to different violation categories that might result in penalty points.
403
+ * For a complete list, refer to the Shopee API documentation.
404
+ */
405
+ export declare enum ViolationType {
406
+ HighLateShipmentRate = 5,
407
+ HighNonFulfillmentRate = 6,
408
+ HighNumberOfNonFulfilledOrders = 7,
409
+ HighNumberOfLateShippedOrders = 8,
410
+ ProhibitedListings = 9,
411
+ CounterfeitIPInfringement = 10,
412
+ Spam = 11,
413
+ CopyStealImages = 12,
414
+ ReUploadingDeletedListings = 13,
415
+ BoughtCounterfeitFromMall = 14,
416
+ CounterfeitCaughtByShopee = 15,
417
+ HighPercentageOfPreOrderListings = 16,
418
+ ConfirmedFraudAttempts = 17,
419
+ ConfirmedFraudAttemptsWithVouchers = 18,
420
+ FakeReturnAddress = 19,
421
+ ShippingFraudAbuse = 20,
422
+ HighNonRespondedChat = 21,
423
+ RudeChatReplies = 22,
424
+ RequestBuyerToCancel = 23,
425
+ RudeReplyToBuyerReview = 24,
426
+ ViolateReturnRefundPolicy = 25,
427
+ TierReason = 101,
428
+ MisuseOfShopeesIP = 3026,
429
+ ViolateShopNameRegulations = 3028,
430
+ DirectTransactionsOutsidePlatform = 3030,
431
+ ShippingEmptyIncompleteParcels = 3032,
432
+ SevereViolationsOnShopeeFeed = 3034,
433
+ SevereViolationsOnShopeeLIVE = 3036,
434
+ MisuseOfLocalVendorTag = 3038,
435
+ MisleadingShopTagInListingImage = 3040,
436
+ CounterfeitIPInfringementTest = 3042,
437
+ RepeatOffenderIPInfringement = 3044,
438
+ ViolationOfLiveAnimalsSelling = 3046,
439
+ ChatSpam = 3048,
440
+ HighOverseasReturnRefundsRate = 3050,
441
+ PrivacyBreachInBuyerReply = 3052,
442
+ OrderBrushing = 3054,
443
+ PornImage = 3056,
444
+ IncorrectProductCategories = 3058,
445
+ ExtremelyHighNonFulfillmentRate = 3060,
446
+ AMSOverdueInvoicePayment = 3062,
447
+ GovernmentRelatedListing = 3064,
448
+ ListingInvalidGiftedItems = 3066,
449
+ HighNonFulfillmentRateNDD = 3068,
450
+ HighLateShipmentRateNDD = 3070,
451
+ OPFRViolationValue = 3072,
452
+ DirectTransactionsOutsidePlatformViaChat = 3074,
453
+ ProhibitedListingsExtreme = 3090,
454
+ ProhibitedListingsHigh = 3091,
455
+ ProhibitedListingsMid = 3092,
456
+ ProhibitedListingsLow = 3093,
457
+ CounterfeitListingsExtreme = 3094,
458
+ CounterfeitListingsHigh = 3095,
459
+ CounterfeitListingsMid = 3096,
460
+ CounterfeitListingsLow = 3097,
461
+ SpamListingsExtreme = 3098,
462
+ SpamListingsHigh = 3099,
463
+ SpamListingsMid = 3100,
464
+ SpamListingsLow = 3101,
465
+ ReturnRefundRateNonIntegrated = 3145,
466
+ PoorProductQuality = 4130
467
+ }
468
+ /**
469
+ * Parameters for the get penalty point history API
470
+ */
471
+ export type GetPenaltyPointHistoryParams = {
472
+ /**
473
+ * Specifies the page number of data to return in the current call.
474
+ * Starting from 1. Default is 1.
475
+ */
476
+ page_no?: number;
477
+ /**
478
+ * Maximum number of entries to return in a single "page" of data.
479
+ * The limit is between 1 and 100. Default is 10.
480
+ */
481
+ page_size?: number;
482
+ /**
483
+ * Filter by specific violation type.
484
+ * See ViolationType enum for values.
485
+ */
486
+ violation_type?: number;
487
+ };
488
+ /**
489
+ * Penalty point record information
490
+ */
491
+ export interface PenaltyPointRecord {
492
+ /** The time when penalty points were issued (Unix timestamp) */
493
+ issue_time: number;
494
+ /**
495
+ * The latest penalty points after any adjustments.
496
+ * If seller raised an appeal that was approved, this shows the points after adjustment.
497
+ */
498
+ latest_point_num: number;
499
+ /**
500
+ * The original penalty points before any adjustments.
501
+ * If seller raised an appeal that was approved, this shows the points before adjustment.
502
+ */
503
+ original_point_num: number;
504
+ /** Reference ID for this penalty point record */
505
+ reference_id: number;
506
+ /** Type of violation that caused the penalty points */
507
+ violation_type: number;
508
+ }
509
+ /**
510
+ * Response for the get penalty point history API
511
+ */
512
+ export interface GetPenaltyPointHistoryResponse extends BaseResponse {
513
+ response: {
514
+ /** List of penalty point records generated in the current quarter */
515
+ penalty_point_list: PenaltyPointRecord[];
516
+ /** Total number of penalty point records */
517
+ total_count: number;
518
+ };
519
+ }
520
+ /**
521
+ * Status of punishment records
522
+ */
523
+ export declare enum PunishmentStatus {
524
+ /** Ongoing punishments */
525
+ Ongoing = 1,
526
+ /** Ended punishments */
527
+ Ended = 2
528
+ }
529
+ /**
530
+ * Types of shop punishments
531
+ */
532
+ export declare enum PunishmentType {
533
+ /** Listings not displayed in category browsing */
534
+ ListingsNotDisplayedInCategoryBrowsing = 103,
535
+ /** Listings not displayed in search */
536
+ ListingsNotDisplayedInSearch = 104,
537
+ /** Unable to create new listings */
538
+ UnableToCreateNewListings = 105,
539
+ /** Unable to edit listings */
540
+ UnableToEditListings = 106,
541
+ /** Unable to join marketing campaigns */
542
+ UnableToJoinMarketingCampaigns = 107,
543
+ /** No shipping subsidies */
544
+ NoShippingSubsidies = 108,
545
+ /** Account is suspended */
546
+ AccountSuspended = 109,
547
+ /** Listings not displayed in search (alternative code) */
548
+ ListingsNotDisplayedInSearchAlt = 600,
549
+ /** Shop listings hide from recommendation */
550
+ ShopListingsHideFromRecommendation = 601,
551
+ /** Listings not displayed in category browsing (alternative code) */
552
+ ListingsNotDisplayedInCategoryBrowsingAlt = 602,
553
+ /** Listing Limit is reduced (Tier 1) */
554
+ ListingLimitReducedTier1 = 1109,
555
+ /** Listing Limit is reduced (Tier 2) */
556
+ ListingLimitReducedTier2 = 1110,
557
+ /** Listing Limit is reduced (POL) */
558
+ ListingLimitReducedPOL = 1111,
559
+ /** Listing Limit is reduced (additional code) */
560
+ ListingLimitReducedExtra = 1112,
561
+ /** Order Limit */
562
+ OrderLimit = 2008
563
+ }
564
+ /**
565
+ * Reasons for shop punishments
566
+ */
567
+ export declare enum PunishmentReason {
568
+ /** Tier 1 punishment */
569
+ Tier1 = 1,
570
+ /** Tier 2 punishment */
571
+ Tier2 = 2,
572
+ /** Tier 3 punishment */
573
+ Tier3 = 3,
574
+ /** Tier 4 punishment */
575
+ Tier4 = 4,
576
+ /** Tier 5 punishment */
577
+ Tier5 = 5,
578
+ /** Listing Limit Tier 1 */
579
+ ListingLimitTier1 = 1109,
580
+ /** Listing Limit Tier 2 */
581
+ ListingLimitTier2 = 1110,
582
+ /** Listing Limit POL */
583
+ ListingLimitPOL = 1111
584
+ }
585
+ /**
586
+ * Punishment record information
587
+ */
588
+ export interface PunishmentRecord {
589
+ /** The time when punishment was issued (Unix timestamp) */
590
+ issue_time: number;
591
+ /** Start time of punishment period (Unix timestamp) */
592
+ start_time: number;
593
+ /** End time of punishment period (Unix timestamp) */
594
+ end_time: number;
595
+ /** Type of punishment */
596
+ punishment_type: number;
597
+ /** Reason for punishment (typically indicates the tier) */
598
+ reason: number;
599
+ /** Reference ID for this punishment record */
600
+ reference_id: number;
601
+ /**
602
+ * Specific value of listing limit (only present when punishment_type is related to listing limits)
603
+ * Only present when punishment_type is: 1109, 1110, 1111, 1112
604
+ */
605
+ listing_limit?: number;
606
+ /**
607
+ * Percentage of order limit (only present when punishment_type is 2008)
608
+ * Formula: Daily Order Limit = X % * L28D ADO (Average Daily Order of this Shop in Past 28 Days)
609
+ */
610
+ order_limit?: string;
611
+ }
612
+ /**
613
+ * Parameters for the get punishment history API
614
+ */
615
+ export type GetPunishmentHistoryParams = {
616
+ /**
617
+ * Specifies the page number of data to return in the current call.
618
+ * Starting from 1. Default is 1.
619
+ */
620
+ page_no?: number;
621
+ /**
622
+ * Maximum number of entries to return in a single "page" of data.
623
+ * The limit is between 1 and 100. Default is 10.
624
+ */
625
+ page_size?: number;
626
+ /**
627
+ * The status of punishment to retrieve.
628
+ * 1: Ongoing punishments
629
+ * 2: Ended punishments
630
+ */
631
+ punishment_status: PunishmentStatus;
632
+ };
633
+ /**
634
+ * Response for the get punishment history API
635
+ */
636
+ export interface GetPunishmentHistoryResponse extends BaseResponse {
637
+ response: {
638
+ /** List of punishment records generated in the current quarter */
639
+ punishment_list: PunishmentRecord[];
640
+ /** Total number of punishment records */
641
+ total_count: number;
642
+ };
643
+ }
644
+ /**
645
+ * Reason types for listing issues
646
+ */
647
+ export declare enum ListingIssueReason {
648
+ /** Prohibited listing */
649
+ Prohibited = 1,
650
+ /** Counterfeit listing */
651
+ Counterfeit = 2,
652
+ /** Spam listing */
653
+ Spam = 3,
654
+ /** Inappropriate image */
655
+ InappropriateImage = 4,
656
+ /** Insufficient information */
657
+ InsufficientInfo = 5,
658
+ /** Mall listing improvement needed */
659
+ MallListingImprovement = 6,
660
+ /** Other listing improvement needed */
661
+ OtherListingImprovement = 7
662
+ }
663
+ /**
664
+ * Listing with issue information
665
+ */
666
+ export interface ListingWithIssue {
667
+ /** Item ID of the problematic listing */
668
+ item_id: number;
669
+ /** Reason for the issue (see ListingIssueReason enum) */
670
+ reason: number;
671
+ }
672
+ /**
673
+ * Parameters for the get listings with issues API
674
+ */
675
+ export type GetListingsWithIssuesParams = {
676
+ /**
677
+ * Specifies the page number of data to return in the current call.
678
+ * Starting from 1. Default is 1.
679
+ */
680
+ page_no?: number;
681
+ /**
682
+ * Maximum number of entries to return in a single "page" of data.
683
+ * The limit is between 1 and 100. Default is 10.
684
+ */
685
+ page_size?: number;
686
+ };
687
+ /**
688
+ * Response for the get listings with issues API
689
+ */
690
+ export interface GetListingsWithIssuesResponse extends BaseResponse {
691
+ response: {
692
+ /** List of problematic listings that need improvement */
693
+ listing_list: ListingWithIssue[];
694
+ /** Total number of listings with issues */
695
+ total_count: number;
696
+ };
697
+ }
698
+ /**
699
+ * Parameters for the get late orders API
700
+ */
701
+ export type GetLateOrdersParams = {
702
+ /**
703
+ * Specifies the page number of data to return in the current call.
704
+ * Starting from 1. Default is 1.
705
+ */
706
+ page_no?: number;
707
+ /**
708
+ * Maximum number of entries to return in a single "page" of data.
709
+ * The limit is between 1 and 100. Default is 10.
710
+ */
711
+ page_size?: number;
712
+ };
713
+ /**
714
+ * Late order information
715
+ */
716
+ export interface LateOrder {
717
+ /** Order SN */
718
+ order_sn: string;
719
+ /** Shipping deadline timestamp */
720
+ shipping_deadline: number;
721
+ /** Number of days the order is late by */
722
+ late_by_days: number;
723
+ }
724
+ /**
725
+ * Response for the get late orders API
726
+ */
727
+ export interface GetLateOrdersResponse extends BaseResponse {
728
+ response: {
729
+ /** List of late orders */
730
+ late_order_list: LateOrder[];
731
+ /** Total number of late orders */
732
+ total_count: number;
733
+ };
734
+ }