cbs-4px-merchant-cli 0.0.1 → 0.0.2

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 (58) hide show
  1. package/dist/cli.js +486 -9
  2. package/dist/cli.js.map +1 -1
  3. package/dist/commands/address.d.ts +2 -0
  4. package/dist/commands/address.js +59 -0
  5. package/dist/commands/address.js.map +1 -0
  6. package/dist/commands/claim.js +8 -2
  7. package/dist/commands/claim.js.map +1 -1
  8. package/dist/commands/config.js +333 -0
  9. package/dist/commands/config.js.map +1 -1
  10. package/dist/commands/country.d.ts +5 -0
  11. package/dist/commands/country.js +50 -0
  12. package/dist/commands/country.js.map +1 -0
  13. package/dist/commands/customs.d.ts +23 -0
  14. package/dist/commands/customs.js +176 -0
  15. package/dist/commands/customs.js.map +1 -0
  16. package/dist/commands/finance.d.ts +62 -0
  17. package/dist/commands/finance.js +509 -0
  18. package/dist/commands/finance.js.map +1 -0
  19. package/dist/commands/label.js +7 -1
  20. package/dist/commands/label.js.map +1 -1
  21. package/dist/commands/notice.d.ts +18 -0
  22. package/dist/commands/notice.js +210 -0
  23. package/dist/commands/notice.js.map +1 -0
  24. package/dist/commands/order.d.ts +12 -0
  25. package/dist/commands/order.js +76 -1
  26. package/dist/commands/order.js.map +1 -1
  27. package/dist/commands/pickup.d.ts +21 -0
  28. package/dist/commands/pickup.js +249 -0
  29. package/dist/commands/pickup.js.map +1 -0
  30. package/dist/commands/problem.d.ts +41 -0
  31. package/dist/commands/problem.js +371 -0
  32. package/dist/commands/problem.js.map +1 -0
  33. package/dist/commands/product.d.ts +28 -0
  34. package/dist/commands/product.js +249 -1
  35. package/dist/commands/product.js.map +1 -1
  36. package/dist/commands/service.d.ts +41 -0
  37. package/dist/commands/service.js +395 -0
  38. package/dist/commands/service.js.map +1 -0
  39. package/dist/commands/track.d.ts +13 -0
  40. package/dist/commands/track.js +92 -1
  41. package/dist/commands/track.js.map +1 -1
  42. package/dist/services/api-client.d.ts +49 -2
  43. package/dist/services/api-client.js +464 -6
  44. package/dist/services/api-client.js.map +1 -1
  45. package/dist/types/index.d.ts +609 -0
  46. package/package.json +2 -2
  47. package/skill/SKILL.md +67 -8
  48. package/skill/reference/customs.md +220 -0
  49. package/skill/reference/finance.md +337 -0
  50. package/skill/reference/index.md +56 -6
  51. package/skill/reference/notice.md +238 -0
  52. package/skill/reference/order.md +172 -0
  53. package/skill/reference/pickup.md +222 -0
  54. package/skill/reference/problem.md +318 -0
  55. package/skill/reference/product.md +203 -0
  56. package/skill/reference/service.md +406 -0
  57. package/skill/reference/track.md +105 -0
  58. package/skill/reference/claim.md +0 -66
@@ -151,3 +151,612 @@ export interface ClaimListResp {
151
151
  total: number;
152
152
  list: ClaimResp[];
153
153
  }
154
+ export interface OrderListRequest {
155
+ statusName?: string;
156
+ customerOrderNo?: string;
157
+ fpxTrackNo?: string;
158
+ queryStartDate?: string;
159
+ queryEndDate?: string;
160
+ productCode?: string;
161
+ destinationCountry?: string;
162
+ pageNum?: number;
163
+ pageSize?: number;
164
+ }
165
+ export interface OrderSummary {
166
+ fpxTrackNo: string | null;
167
+ customerOrderNo: string | null;
168
+ statusName: string | null;
169
+ productName: string | null;
170
+ destinationCountry: string | null;
171
+ consigneeName: string | null;
172
+ receivedTime: string | null;
173
+ createdTime: string | null;
174
+ chargeWeight: number | null;
175
+ totalFee: string | null;
176
+ }
177
+ export interface OrderListResp {
178
+ pageNum: number;
179
+ pageSize: number;
180
+ total: number;
181
+ list: OrderSummary[];
182
+ }
183
+ export interface AddressBookItem {
184
+ code: string | null;
185
+ contact: string | null;
186
+ contactPhone: string | null;
187
+ emergencyContact: string | null;
188
+ province: string | null;
189
+ city: string | null;
190
+ county: string | null;
191
+ address: string | null;
192
+ containerStuffingLocation: string | null;
193
+ }
194
+ export interface OrderAddressResp {
195
+ list: AddressBookItem[];
196
+ }
197
+ export interface CountryItem {
198
+ code: string;
199
+ name: string | null;
200
+ ename: string | null;
201
+ pinyin: string | null;
202
+ isHot: boolean;
203
+ }
204
+ export interface CountrySearchResp {
205
+ list: CountryItem[];
206
+ }
207
+ export interface ProductSearchItem {
208
+ code: string;
209
+ name: string | null;
210
+ ename: string | null;
211
+ isHot: boolean;
212
+ groupCode: string | null;
213
+ groupName: string | null;
214
+ deliveryPeriod: string | null;
215
+ }
216
+ export interface ProductSearchResp {
217
+ list: ProductSearchItem[];
218
+ }
219
+ export interface SubscribeNode {
220
+ code: string;
221
+ name: string | null;
222
+ describe: string | null;
223
+ status: string | null;
224
+ }
225
+ export interface TrackSubscriptionItem {
226
+ trackNo: string;
227
+ productCode: string | null;
228
+ productName: string | null;
229
+ countryCode: string | null;
230
+ remarks: string | null;
231
+ subscribeNodeList: SubscribeNode[];
232
+ }
233
+ export interface TrackSubscriptionResp {
234
+ pageNum: number;
235
+ pageSize: number;
236
+ total: number;
237
+ list: TrackSubscriptionItem[];
238
+ }
239
+ export interface ProductListItem {
240
+ productCode: string;
241
+ productName: string | null;
242
+ productCategory: string | null;
243
+ deliveryPeriod: string | null;
244
+ minWeight: string | null;
245
+ isBattery: string | null;
246
+ totalRmbAmount: string | null;
247
+ }
248
+ export interface ProductListResp {
249
+ list: ProductListItem[];
250
+ }
251
+ export interface ProductDetailResp {
252
+ salePkCode: string | null;
253
+ salePkName: string | null;
254
+ serviceLevel: string | null;
255
+ restriction: string | null;
256
+ batteryPackagingRequirements: string | null;
257
+ returnInstructions: string | null;
258
+ deliveryPeriod: string | null;
259
+ introduce: string | null;
260
+ maxWeight: string | null;
261
+ minWeight: string | null;
262
+ prohibitedGoods: string[];
263
+ restrictedGoods: string[];
264
+ declaredAndTax: string | null;
265
+ volumeLimit: string | null;
266
+ chargeType: string | null;
267
+ }
268
+ export interface FreightTrialResp {
269
+ feeBeans: RecommendProductItem[];
270
+ }
271
+ export interface ProblemListRequest {
272
+ orderNosString?: string;
273
+ abnormalStatus?: string;
274
+ abnormalType?: string;
275
+ startDate?: string;
276
+ endDate?: string;
277
+ pageNum?: number;
278
+ pageSize?: number;
279
+ }
280
+ export interface AbnormalProblem {
281
+ abnormalTypeName: string | null;
282
+ abnormalReasonName: string | null;
283
+ abnormalDescription: string | null;
284
+ reasonStatus: string | null;
285
+ }
286
+ export interface ProblemSummary {
287
+ trackNo: string | null;
288
+ customerHawbCode: string | null;
289
+ serviceHawbCode: string | null;
290
+ abnStatus: string | null;
291
+ pkName: string | null;
292
+ destCountry: string | null;
293
+ createdTimeString: string | null;
294
+ responderWeb: string | null;
295
+ respondWebTimeString: string | null;
296
+ content: string | null;
297
+ solutionTypeNames: string[];
298
+ custodyMark: string | null;
299
+ abnormalProblems: AbnormalProblem[];
300
+ }
301
+ export interface ProblemListResp {
302
+ pageNum: number;
303
+ pageSize: number;
304
+ total: number;
305
+ list: ProblemSummary[];
306
+ }
307
+ export interface AbnormalSuggestRequest {
308
+ items?: Array<{
309
+ abnId: number;
310
+ }>;
311
+ orderNoItems?: string[];
312
+ }
313
+ export interface AbnormalSuggestGroupDTO {
314
+ [key: string]: unknown;
315
+ }
316
+ export interface ReturnAddressDTO {
317
+ [key: string]: unknown;
318
+ }
319
+ export interface BatchAbnormalSuggestResponse {
320
+ list: AbnormalSuggestGroupDTO[];
321
+ returnAddressList: ReturnAddressDTO[];
322
+ total: number;
323
+ message: string | null;
324
+ }
325
+ export interface NotifyProblemItem {
326
+ fpxTrackNo: string | null;
327
+ customerHawbCode: string | null;
328
+ serviceHawbCode: string | null;
329
+ notifyTypeName: string | null;
330
+ notifyReasonName: string | null;
331
+ notifyDescription: string | null;
332
+ notifyStatusName: string | null;
333
+ pkName: string | null;
334
+ responder: string | null;
335
+ }
336
+ export interface NotifyProblemListResp {
337
+ pageNum: number;
338
+ pageSize: number;
339
+ total: number;
340
+ list: NotifyProblemItem[];
341
+ }
342
+ export interface ArrearOrderItem {
343
+ fpxOrderNo: string | null;
344
+ customerHawbCode: string | null;
345
+ serveHawbCode: string | null;
346
+ pkName: string | null;
347
+ arrearsAmount: string | null;
348
+ occurTime: string | null;
349
+ }
350
+ export interface ArrearOrderListResp {
351
+ pageNum: number;
352
+ pageSize: number;
353
+ total: number;
354
+ list: ArrearOrderItem[];
355
+ }
356
+ export interface ServiceRepairOrderListRequest {
357
+ orderCodeListString?: string;
358
+ businessLineId?: number;
359
+ categoryId?: number;
360
+ bizStatus?: number;
361
+ startDate?: string;
362
+ endDate?: string;
363
+ pageNum?: number;
364
+ pageSize?: number;
365
+ }
366
+ export interface RepairOrderItem {
367
+ orderCode: string | null;
368
+ serverOrderNo: string | null;
369
+ categoryName: string | null;
370
+ businessLineName: string | null;
371
+ memo: string | null;
372
+ bizStatusName: string | null;
373
+ createTime: string | null;
374
+ modifyTime: string | null;
375
+ actionMemo: string | null;
376
+ evaluateStatus: string | null;
377
+ }
378
+ export interface RepairOrderListResp {
379
+ total: string | null;
380
+ list: RepairOrderItem[];
381
+ }
382
+ export interface ServiceOrderListRequest {
383
+ bizNo?: string;
384
+ serviceNo?: string;
385
+ serviceStatus?: number;
386
+ startDate?: string;
387
+ endDate?: string;
388
+ pageNum?: number;
389
+ pageSize?: number;
390
+ }
391
+ export interface ServiceOrderItem {
392
+ serviceNo: string | null;
393
+ bizNo: string | null;
394
+ bizType: string | null;
395
+ serviceType: string | null;
396
+ checkTypeName: string | null;
397
+ complaintTypeName: string | null;
398
+ issueTypeName: string | null;
399
+ lastMessage: string | null;
400
+ serviceStatus: string | null;
401
+ handleUserName: string | null;
402
+ createdTime: string | null;
403
+ lastModifiedTime: string | null;
404
+ remark: string | null;
405
+ }
406
+ export interface ServiceOrderListResp {
407
+ pageNum: number;
408
+ pageSize: number;
409
+ total: number;
410
+ list: ServiceOrderItem[];
411
+ }
412
+ export interface HandleRecordItem {
413
+ serviceNo: string | null;
414
+ recordTypeName: string | null;
415
+ recordDetail: string | null;
416
+ createdName: string | null;
417
+ createdTime: string | null;
418
+ serviceStatus: string | null;
419
+ }
420
+ export interface HandleRecordListResp {
421
+ list: HandleRecordItem[];
422
+ }
423
+ export interface ServiceDetailResp {
424
+ serviceNo: string | null;
425
+ bizNo: string | null;
426
+ bizType: string | null;
427
+ billsType: string | null;
428
+ checkType: string | null;
429
+ consultationType: string | null;
430
+ issueType: string | null;
431
+ claimReason: string | null;
432
+ serviceStatus: string | null;
433
+ createdTime: string | null;
434
+ remark: string | null;
435
+ serviceHandleRecords: HandleRecordItem[];
436
+ }
437
+ export interface DssClaimDetailResp {
438
+ claimNo: string | null;
439
+ bizNo: string | null;
440
+ customerHawbCode: string | null;
441
+ serviceHawbCode: string | null;
442
+ claimReason: string | null;
443
+ claimStatusName: string | null;
444
+ saleProductName: string | null;
445
+ channelName: string | null;
446
+ shipperCountry: string | null;
447
+ consigneeCountry: string | null;
448
+ cargoPaymentCompensationAmount: string | null;
449
+ cargoPaymentCurrency: string | null;
450
+ createdTime: string | null;
451
+ remark: string | null;
452
+ }
453
+ export interface ClaimReasonItem {
454
+ dictCode: string;
455
+ dictName: string | null;
456
+ dictEnglishName: string | null;
457
+ }
458
+ export interface ClaimReasonListResp {
459
+ list: ClaimReasonItem[];
460
+ }
461
+ export interface AccountSurplusItem {
462
+ businessSystem: string | null;
463
+ currencyCode: string | null;
464
+ currency: string | null;
465
+ cashSurplus: string | null;
466
+ creditSurplus: string | null;
467
+ accountSurplus: string | null;
468
+ creditTotal: string | null;
469
+ frozenSurplus: string | null;
470
+ totalReceiptAmount: string | null;
471
+ }
472
+ export interface AccountBalanceResp {
473
+ payType: string | null;
474
+ creditAmount: string | null;
475
+ availableCreditAmount: string | null;
476
+ availableSurplus: string | null;
477
+ debtAmount: string | null;
478
+ accountSurplusList: AccountSurplusItem[];
479
+ }
480
+ export interface BillItem {
481
+ billNo: string | null;
482
+ businessSystem: string | null;
483
+ billStatus: string | null;
484
+ receiveAmount: string | null;
485
+ currencyCode: string | null;
486
+ dateBegin: string | null;
487
+ dateEnd: string | null;
488
+ endDateRepayment: string | null;
489
+ }
490
+ export interface BillListResp {
491
+ total: number;
492
+ list: BillItem[];
493
+ }
494
+ export interface DailyFeeItem {
495
+ businessSystem: string | null;
496
+ chargeAmount: string | null;
497
+ receiptAmount: string | null;
498
+ dateCreated: string | null;
499
+ }
500
+ export interface DailyFeeListResp {
501
+ pageNum: number;
502
+ pageSize: number;
503
+ total: number;
504
+ list: DailyFeeItem[];
505
+ }
506
+ export interface FeeItem {
507
+ billingNo: string | null;
508
+ feeName: string | null;
509
+ operateNumber: string | null;
510
+ unitCode: string | null;
511
+ feeAmount: string | null;
512
+ currencyCode: string | null;
513
+ }
514
+ export interface UnbilledDetailResp {
515
+ businessNo: string | null;
516
+ customerName: string | null;
517
+ businessSystem: string | null;
518
+ productName: string | null;
519
+ feeItems: FeeItem[];
520
+ }
521
+ export interface UnbilledItem {
522
+ businessNo: string | null;
523
+ businessSystem: string | null;
524
+ productName: string | null;
525
+ totalFeeAmount: string | null;
526
+ currencyCode: string | null;
527
+ dateCreated: string | null;
528
+ }
529
+ export interface UnbilledListResp {
530
+ total: number;
531
+ list: UnbilledItem[];
532
+ }
533
+ export interface RechargeRecordItem {
534
+ amount: string | null;
535
+ channel: string | null;
536
+ dateCreated: string | null;
537
+ transactionNo: string | null;
538
+ memo: string | null;
539
+ }
540
+ export interface RechargeRecordListResp {
541
+ total: number;
542
+ list: RechargeRecordItem[];
543
+ }
544
+ export interface TransferRecordItem {
545
+ id: number | null;
546
+ payer: string | null;
547
+ tradeNo: string | null;
548
+ tradeDate: string | null;
549
+ totalAmount: string | null;
550
+ businessSystem: string | null;
551
+ currency: string | null;
552
+ status: number | null;
553
+ }
554
+ export interface TransferRecordListResp {
555
+ total: number;
556
+ list: TransferRecordItem[];
557
+ }
558
+ export interface FeeDetailResp {
559
+ list: BillingFeeItemDetailVO[];
560
+ }
561
+ export interface MaterialApplyItem {
562
+ orderNo: string | null;
563
+ materialType: string | null;
564
+ materialDesc: string | null;
565
+ statusCode: string | null;
566
+ statusDesc: string | null;
567
+ applyTotalAmount: string | null;
568
+ applicantName: string | null;
569
+ applicationTime: string | null;
570
+ remark: string | null;
571
+ }
572
+ export interface MaterialApplyListResp {
573
+ pageNum: number;
574
+ pageSize: number;
575
+ total: number;
576
+ list: MaterialApplyItem[];
577
+ }
578
+ export interface MaterialDetailContactInfo {
579
+ name: string | null;
580
+ mobile: string | null;
581
+ province: string | null;
582
+ city: string | null;
583
+ district: string | null;
584
+ address: string | null;
585
+ postCode: string | null;
586
+ }
587
+ export interface MaterialDetailOrderTrend {
588
+ statusDesc: string | null;
589
+ operateTime: string | null;
590
+ remark: string | null;
591
+ }
592
+ export interface MaterialDetailResp {
593
+ orderNo: string | null;
594
+ materialType: string | null;
595
+ materialDesc: string | null;
596
+ statusCode: string | null;
597
+ statusDesc: string | null;
598
+ applyTypeDesc: string | null;
599
+ applicantName: string | null;
600
+ applyTotalAmount: number | null;
601
+ bundlesQuantity: number | null;
602
+ packageQuantity: number | null;
603
+ totalQuantity: number | null;
604
+ applicationTime: string | null;
605
+ processTime: string | null;
606
+ remark: string | null;
607
+ operationRemark: string | null;
608
+ cancelReason: string | null;
609
+ lastAnomalousCause: string | null;
610
+ fsName: string | null;
611
+ orgName: string | null;
612
+ contact: MaterialDetailContactInfo | null;
613
+ orderTrends: MaterialDetailOrderTrend[] | null;
614
+ }
615
+ export interface MaterialQuotaResp {
616
+ remainBundles: number | null;
617
+ appliedBundles: number | null;
618
+ totalBundles: number | null;
619
+ bundlesQuantity: number | null;
620
+ packageQuantity: number | null;
621
+ totalQuantity: number | null;
622
+ maxCount: number | null;
623
+ }
624
+ export interface CollectAddressItem {
625
+ name: string | null;
626
+ mobile: string | null;
627
+ country: string | null;
628
+ province: string | null;
629
+ city: string | null;
630
+ district: string | null;
631
+ address: string | null;
632
+ postCode: string | null;
633
+ }
634
+ export interface CollectAddressListResp {
635
+ pageNum: number;
636
+ pageSize: number;
637
+ total: number;
638
+ list: CollectAddressItem[];
639
+ }
640
+ export interface NoticeItem {
641
+ code: string;
642
+ name: string | null;
643
+ category: string | null;
644
+ publishTime: string | null;
645
+ }
646
+ export interface NoticeListResp {
647
+ list: NoticeItem[];
648
+ }
649
+ export interface NoticeDetailResp {
650
+ code: string | null;
651
+ name: string | null;
652
+ category: string | null;
653
+ content: string | null;
654
+ publishTime: string | null;
655
+ }
656
+ export interface MessageItem {
657
+ id: string | null;
658
+ recordId: string | null;
659
+ bizCode: string | null;
660
+ bizName: string | null;
661
+ categoryName: string | null;
662
+ itemCategoryName: string | null;
663
+ title: string | null;
664
+ sendTime: string | null;
665
+ isRead: boolean | null;
666
+ }
667
+ export interface MessageListResp {
668
+ pageNum: number;
669
+ pageSize: number;
670
+ total: number;
671
+ list: MessageItem[];
672
+ }
673
+ export interface MessageDetailResp {
674
+ id: string | null;
675
+ recordId: string | null;
676
+ bizCode: string | null;
677
+ bizName: string | null;
678
+ categoryName: string | null;
679
+ itemCategoryName: string | null;
680
+ title: string | null;
681
+ content: string | null;
682
+ sendTime: string | null;
683
+ isRead: boolean | null;
684
+ }
685
+ export interface UnreadMessageCountResp {
686
+ unReadCount: number;
687
+ }
688
+ export interface CargoKindItem {
689
+ ccId: number | null;
690
+ ccDeclareEName: string | null;
691
+ ccDeclareCName: string | null;
692
+ ccPickupName: string | null;
693
+ ccPieces: number | null;
694
+ ccUnitPrice: number | null;
695
+ ccCurrency: string | null;
696
+ ccHscode: string | null;
697
+ ccNote: string | null;
698
+ }
699
+ export interface CargoKindListResp {
700
+ pageNum: number;
701
+ pageSize: number;
702
+ total: number;
703
+ list: CargoKindItem[];
704
+ }
705
+ export interface CommodityItem {
706
+ commodityId: number | null;
707
+ skuCode: string | null;
708
+ skuEnName: string | null;
709
+ skuCnName: string | null;
710
+ currencyCode: string | null;
711
+ priceStr: string | null;
712
+ weightStr: string | null;
713
+ hsCode: string | null;
714
+ hsName: string | null;
715
+ hasBattery: number | null;
716
+ recordStatus: number | null;
717
+ }
718
+ export interface CommodityListResp {
719
+ pageNum: number;
720
+ pageSize: number;
721
+ total: number;
722
+ list: CommodityItem[];
723
+ }
724
+ export interface HsCodeItem {
725
+ hsCodeId: number | null;
726
+ hsCode: string | null;
727
+ hsName: string | null;
728
+ }
729
+ export interface HsCodeListResp {
730
+ pageNum: number;
731
+ pageSize: number;
732
+ total: number;
733
+ list: HsCodeItem[];
734
+ }
735
+ export interface CustomerDeclareResp {
736
+ id: number | null;
737
+ cmId: number | null;
738
+ cmCode: string | null;
739
+ verifyStatus: number | null;
740
+ }
741
+ export interface FrozenRecordItem {
742
+ businessSystem: string | null;
743
+ currency: string | null;
744
+ businessNo: string | null;
745
+ frozenAmount: number | null;
746
+ frozenTime: string | null;
747
+ unfrozenTime: string | null;
748
+ remark: string | null;
749
+ }
750
+ export interface FrozenRecordListResp {
751
+ pageNum: number;
752
+ pageSize: number;
753
+ total: number;
754
+ list: FrozenRecordItem[];
755
+ }
756
+ export interface NotifyTypeItem {
757
+ key: string | null;
758
+ value: string | null;
759
+ }
760
+ export interface NotifyTypeListResp {
761
+ list: NotifyTypeItem[];
762
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cbs-4px-merchant-cli",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Cbs merchant CLI tool",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -46,7 +46,7 @@
46
46
  "devDependencies": {
47
47
  "@types/node": "^20.0.0",
48
48
  "tsx": "^4.0.0",
49
- "typescript": "^5.4.0"
49
+ "typescript": "^5.9.3"
50
50
  },
51
51
  "engines": {
52
52
  "node": ">=18.0.0"