@linkl/link-openapi-skills 0.0.0-stage → 0.1.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 (30) hide show
  1. package/LICENSE +4 -0
  2. package/README.md +70 -2
  3. package/bin/cli.js +125 -0
  4. package/openapi/basic-data.json +432 -0
  5. package/openapi/general-service.json +106 -0
  6. package/openapi/international-logistics.json +3439 -0
  7. package/openapi/last-mile-order.json +1643 -0
  8. package/openapi/settlement-service.json +603 -0
  9. package/openapi/user-service.json +289 -0
  10. package/package.json +18 -3
  11. package/skills/link-basic-data/SKILL.md +22 -0
  12. package/skills/link-basic-data/references/api-reference.md +22 -0
  13. package/skills/link-general-service/SKILL.md +22 -0
  14. package/skills/link-general-service/references/api-reference.md +12 -0
  15. package/skills/link-international-logistics/SKILL.md +22 -0
  16. package/skills/link-international-logistics/references/api-reference.md +62 -0
  17. package/skills/link-last-mile-order/SKILL.md +22 -0
  18. package/skills/link-last-mile-order/references/api-reference.md +37 -0
  19. package/skills/link-openapi-integration/SKILL.md +41 -0
  20. package/skills/link-openapi-integration/references/API-INVENTORY.md +33 -0
  21. package/skills/link-openapi-integration/references/basic-data.md +9 -0
  22. package/skills/link-openapi-integration/references/general-service.md +7 -0
  23. package/skills/link-openapi-integration/references/international-logistics.md +17 -0
  24. package/skills/link-openapi-integration/references/last-mile-order.md +12 -0
  25. package/skills/link-openapi-integration/references/settlement-service.md +9 -0
  26. package/skills/link-openapi-integration/references/user-service.md +9 -0
  27. package/skills/link-settlement-service/SKILL.md +22 -0
  28. package/skills/link-settlement-service/references/api-reference.md +22 -0
  29. package/skills/link-user-service/SKILL.md +22 -0
  30. package/skills/link-user-service/references/api-reference.md +22 -0
@@ -0,0 +1,603 @@
1
+ {
2
+ "openapi": "3.0.1",
3
+ "info": {
4
+ "title": "链路ERP开放平台",
5
+ "description": "financeservice",
6
+ "contact": {
7
+ "name": "link",
8
+ "url": "https://www.linkl.com.cn"
9
+ },
10
+ "version": "1.0"
11
+ },
12
+ "servers": [
13
+ {
14
+ "url": "https://www.linkl.com.cn"
15
+ }
16
+ ],
17
+ "paths": {
18
+ "/openapi/queryPrice": {
19
+ "post": {
20
+ "tags": [
21
+ "API列表"
22
+ ],
23
+ "summary": "查价",
24
+ "operationId": "queryPrice",
25
+ "requestBody": {
26
+ "content": {
27
+ "application/json": {
28
+ "schema": {
29
+ "$ref": "#/components/schemas/CLFRO_OpenApiQueryPriceRequest"
30
+ }
31
+ }
32
+ },
33
+ "required": true
34
+ },
35
+ "responses": {
36
+ "200": {
37
+ "description": "OK",
38
+ "content": {
39
+ "*/*": {
40
+ "schema": {
41
+ "$ref": "#/components/schemas/CLCMRULLFRO_OpenApiQueryPriceResponse"
42
+ }
43
+ }
44
+ }
45
+ }
46
+ },
47
+ "x-order": 2,
48
+ "parameters": [
49
+ {
50
+ "name": "linkToken",
51
+ "in": "header",
52
+ "required": true,
53
+ "description": "接口访问凭证,请按接口要求填写。",
54
+ "schema": {
55
+ "type": "string"
56
+ }
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ "/openapi/fetchAvailableProducts": {
62
+ "post": {
63
+ "tags": [
64
+ "API列表"
65
+ ],
66
+ "summary": "获取可用服务产品",
67
+ "operationId": "fetchAvailableProducts",
68
+ "requestBody": {
69
+ "content": {
70
+ "application/json": {
71
+ "schema": {
72
+ "$ref": "#/components/schemas/CLFRO_OpenApiAvailableProductRequest"
73
+ }
74
+ }
75
+ },
76
+ "required": true
77
+ },
78
+ "responses": {
79
+ "200": {
80
+ "description": "OK",
81
+ "content": {
82
+ "*/*": {
83
+ "schema": {
84
+ "$ref": "#/components/schemas/CLCMRULLFRO_OpenApiAvailableProductResponse"
85
+ }
86
+ }
87
+ }
88
+ }
89
+ },
90
+ "x-order": 1,
91
+ "parameters": [
92
+ {
93
+ "name": "linkToken",
94
+ "in": "header",
95
+ "required": true,
96
+ "description": "接口访问凭证,请按接口要求填写。",
97
+ "schema": {
98
+ "type": "string"
99
+ }
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ "/openapi/balance": {
105
+ "post": {
106
+ "tags": [
107
+ "API列表"
108
+ ],
109
+ "summary": "查询余额",
110
+ "operationId": "balance",
111
+ "requestBody": {
112
+ "content": {
113
+ "application/json": {
114
+ "schema": {
115
+ "$ref": "#/components/schemas/CLFRO_OpenApiBalanceRequest"
116
+ }
117
+ }
118
+ },
119
+ "required": true
120
+ },
121
+ "responses": {
122
+ "200": {
123
+ "description": "OK",
124
+ "content": {
125
+ "*/*": {
126
+ "schema": {
127
+ "$ref": "#/components/schemas/CLCMRLFRO_OpenApiBalanceResponse"
128
+ }
129
+ }
130
+ }
131
+ }
132
+ },
133
+ "x-order": 4,
134
+ "parameters": [
135
+ {
136
+ "name": "linkToken",
137
+ "in": "header",
138
+ "required": true,
139
+ "description": "接口访问凭证,请按接口要求填写。",
140
+ "schema": {
141
+ "type": "string"
142
+ }
143
+ }
144
+ ]
145
+ }
146
+ }
147
+ },
148
+ "components": {
149
+ "schemas": {
150
+ "CLFRO_OpenApiQueryPriceRequest": {
151
+ "required": [
152
+ "customerKey",
153
+ "weight"
154
+ ],
155
+ "type": "object",
156
+ "properties": {
157
+ "customerKey": {
158
+ "type": "string",
159
+ "description": "customerKey,请联系客服提供,保密使用"
160
+ },
161
+ "productCode": {
162
+ "type": "string",
163
+ "description": "产品代码"
164
+ },
165
+ "countryCode": {
166
+ "type": "string",
167
+ "description": "国家简码"
168
+ },
169
+ "state": {
170
+ "type": "string",
171
+ "description": "州/省"
172
+ },
173
+ "city": {
174
+ "type": "string",
175
+ "description": "城市"
176
+ },
177
+ "district": {
178
+ "type": "string",
179
+ "description": "区/县"
180
+ },
181
+ "postcode": {
182
+ "type": "string",
183
+ "description": "邮编"
184
+ },
185
+ "fbaWarehouseCode": {
186
+ "type": "string",
187
+ "description": "fba仓库代码"
188
+ },
189
+ "weight": {
190
+ "type": "number",
191
+ "description": "重量"
192
+ },
193
+ "pieces": {
194
+ "type": "array",
195
+ "description": "单件明细",
196
+ "items": {
197
+ "$ref": "#/components/schemas/CLFRO_OpenApiQueryPriceRequest$OpenApiQueryPricePieceRequest"
198
+ }
199
+ },
200
+ "goodsType": {
201
+ "type": "integer",
202
+ "description": "货物类型(0:普货,1:特货 2:敏感货)",
203
+ "format": "int32"
204
+ },
205
+ "packageType": {
206
+ "type": "integer",
207
+ "description": "包裹类型(0:包裹(WPX),1:文件(DOC),2:包裹袋(PAK))",
208
+ "format": "int32",
209
+ "default": 0
210
+ },
211
+ "departurePort": {
212
+ "type": "string",
213
+ "description": "起运地(长度:[30])"
214
+ },
215
+ "sortType": {
216
+ "type": "integer",
217
+ "description": "排序模式(0:综合 1:低价 2:热度)",
218
+ "format": "int32"
219
+ },
220
+ "productPreference": {
221
+ "type": "integer",
222
+ "description": "是否产品优选(0:否 1:是)",
223
+ "format": "int32"
224
+ }
225
+ },
226
+ "description": "查价请求",
227
+ "title": "查价请求"
228
+ },
229
+ "CLFRO_OpenApiQueryPriceRequest$OpenApiQueryPricePieceRequest": {
230
+ "type": "object",
231
+ "properties": {
232
+ "actualWeight": {
233
+ "type": "number",
234
+ "description": "实重"
235
+ },
236
+ "length": {
237
+ "type": "number",
238
+ "description": "长"
239
+ },
240
+ "width": {
241
+ "type": "number",
242
+ "description": "宽"
243
+ },
244
+ "height": {
245
+ "type": "number",
246
+ "description": "高"
247
+ }
248
+ },
249
+ "description": "单件信息请求",
250
+ "title": "单件信息请求"
251
+ },
252
+ "CLCM_TypeRemark": {
253
+ "type": "object",
254
+ "properties": {
255
+ "type": {
256
+ "type": "integer",
257
+ "description": "类型",
258
+ "format": "int32"
259
+ },
260
+ "remark": {
261
+ "type": "string",
262
+ "description": "备注"
263
+ }
264
+ },
265
+ "description": "类型备注",
266
+ "title": "类型备注"
267
+ },
268
+ "CLCMRULLFRO_OpenApiQueryPriceResponse": {
269
+ "type": "object",
270
+ "properties": {
271
+ "code": {
272
+ "type": "integer",
273
+ "description": "返回码(0:成功 其他:失败),业务code需大于1000",
274
+ "format": "int32"
275
+ },
276
+ "data": {
277
+ "type": "array",
278
+ "description": "数据结果",
279
+ "items": {
280
+ "$ref": "#/components/schemas/CLFRO_OpenApiQueryPriceResponse"
281
+ }
282
+ },
283
+ "msg": {
284
+ "type": "string",
285
+ "description": "错误消息"
286
+ }
287
+ },
288
+ "description": "Result",
289
+ "title": "Result"
290
+ },
291
+ "CLFRO_OpenApiQueryPriceResponse": {
292
+ "type": "object",
293
+ "properties": {
294
+ "productName": {
295
+ "type": "string",
296
+ "description": "渠道名称"
297
+ },
298
+ "productCode": {
299
+ "type": "string",
300
+ "description": "渠道代码"
301
+ },
302
+ "productCategory": {
303
+ "type": "integer",
304
+ "description": "渠道类别",
305
+ "format": "int32"
306
+ },
307
+ "zoneIndex": {
308
+ "type": "integer",
309
+ "description": "分区",
310
+ "format": "int32"
311
+ },
312
+ "zoneName": {
313
+ "type": "string",
314
+ "description": "分区名称"
315
+ },
316
+ "timeCost": {
317
+ "type": "string",
318
+ "description": "时效"
319
+ },
320
+ "channelAdvantage": {
321
+ "type": "string",
322
+ "description": "渠道优势"
323
+ },
324
+ "typeRemarks": {
325
+ "type": "array",
326
+ "description": "类型备注",
327
+ "items": {
328
+ "$ref": "#/components/schemas/CLCM_TypeRemark"
329
+ }
330
+ },
331
+ "volumeDivisor": {
332
+ "type": "integer",
333
+ "description": "材积除数",
334
+ "format": "int32"
335
+ },
336
+ "remoteLevel": {
337
+ "type": "string",
338
+ "description": "偏远等级"
339
+ },
340
+ "businessType": {
341
+ "type": "integer",
342
+ "description": "业务类型",
343
+ "format": "int32"
344
+ },
345
+ "departurePort": {
346
+ "type": "string",
347
+ "description": "起运机场/港"
348
+ },
349
+ "chargeWeight": {
350
+ "type": "number",
351
+ "description": "计费重"
352
+ },
353
+ "freight": {
354
+ "$ref": "#/components/schemas/CLFRO_OpenApiQueryPriceResponse$CalFeeModel"
355
+ },
356
+ "surcharges": {
357
+ "type": "array",
358
+ "description": "附加费",
359
+ "items": {
360
+ "$ref": "#/components/schemas/CLFRO_OpenApiQueryPriceResponse$CalFeeModel"
361
+ }
362
+ },
363
+ "fees": {
364
+ "type": "array",
365
+ "description": "费用明细",
366
+ "items": {
367
+ "$ref": "#/components/schemas/CLFRO_OpenApiQueryPriceResponse$CalFeeModel"
368
+ }
369
+ },
370
+ "totalSurchargeConversion": {
371
+ "type": "number",
372
+ "description": "附加费金额(RMB)"
373
+ },
374
+ "totalConversion": {
375
+ "type": "number",
376
+ "description": "总费用(RMB)"
377
+ },
378
+ "freightUnitConversion": {
379
+ "type": "number",
380
+ "description": "运费单价(RMB/KG)"
381
+ }
382
+ },
383
+ "description": "查价响应",
384
+ "title": "查价响应"
385
+ },
386
+ "CLFRO_OpenApiQueryPriceResponse$CalFeeModel": {
387
+ "type": "object",
388
+ "properties": {
389
+ "subjectName": {
390
+ "type": "string",
391
+ "description": "科目名"
392
+ },
393
+ "subjectCode": {
394
+ "type": "string",
395
+ "description": "科目代码"
396
+ },
397
+ "originalValue": {
398
+ "type": "number",
399
+ "description": "原始金额(不含油金额)"
400
+ },
401
+ "fuelSurchargeValue": {
402
+ "type": "number",
403
+ "description": "燃油费金额"
404
+ },
405
+ "value": {
406
+ "type": "number",
407
+ "description": "原币金额(含油金额)"
408
+ },
409
+ "conversionValue": {
410
+ "type": "number",
411
+ "description": "本币金额"
412
+ },
413
+ "currency": {
414
+ "type": "string",
415
+ "description": "币种"
416
+ },
417
+ "formula": {
418
+ "type": "string",
419
+ "description": "公式"
420
+ },
421
+ "remark": {
422
+ "type": "string",
423
+ "description": "备注"
424
+ },
425
+ "discount": {
426
+ "type": "string",
427
+ "description": "折扣"
428
+ }
429
+ },
430
+ "description": "费用",
431
+ "title": "费用"
432
+ },
433
+ "CLFRO_OpenApiAvailableProductRequest": {
434
+ "required": [
435
+ "businessSysCode",
436
+ "customerKey"
437
+ ],
438
+ "type": "object",
439
+ "properties": {
440
+ "customerKey": {
441
+ "type": "string",
442
+ "description": "customerKey,请联系客服提供,保密使用"
443
+ },
444
+ "businessSysCode": {
445
+ "type": "string",
446
+ "description": "业务系统代码(LMS:国际物流(默认) PDS:尾程制单 OWMS:海外仓)"
447
+ }
448
+ },
449
+ "description": "查询可用产品请求",
450
+ "title": "查询可用产品请求"
451
+ },
452
+ "CLCMRULLFRO_OpenApiAvailableProductResponse": {
453
+ "type": "object",
454
+ "properties": {
455
+ "code": {
456
+ "type": "integer",
457
+ "description": "返回码(0:成功 其他:失败),业务code需大于1000",
458
+ "format": "int32"
459
+ },
460
+ "data": {
461
+ "type": "array",
462
+ "description": "数据结果",
463
+ "items": {
464
+ "$ref": "#/components/schemas/CLFRO_OpenApiAvailableProductResponse"
465
+ }
466
+ },
467
+ "msg": {
468
+ "type": "string",
469
+ "description": "错误消息"
470
+ }
471
+ },
472
+ "description": "Result",
473
+ "title": "Result"
474
+ },
475
+ "CLFRO_OpenApiAvailableProductResponse": {
476
+ "type": "object",
477
+ "properties": {
478
+ "code": {
479
+ "type": "string",
480
+ "description": "产品代码"
481
+ },
482
+ "name": {
483
+ "type": "string",
484
+ "description": "产品名称"
485
+ },
486
+ "category": {
487
+ "type": "string",
488
+ "description": "类别"
489
+ }
490
+ },
491
+ "description": "查询可用产品响应",
492
+ "title": "查询可用产品响应"
493
+ },
494
+ "CLFRO_OpenApiBalanceRequest": {
495
+ "required": [
496
+ "customerKey"
497
+ ],
498
+ "type": "object",
499
+ "properties": {
500
+ "customerKey": {
501
+ "type": "string",
502
+ "description": "customerKey,请联系客服提供,保密使用"
503
+ }
504
+ },
505
+ "description": "客户余额请求",
506
+ "title": "客户余额请求"
507
+ },
508
+ "CLCMRLFRO_OpenApiBalanceResponse": {
509
+ "type": "object",
510
+ "properties": {
511
+ "code": {
512
+ "type": "integer",
513
+ "description": "返回码(0:成功 其他:失败),业务code需大于1000",
514
+ "format": "int32"
515
+ },
516
+ "data": {
517
+ "$ref": "#/components/schemas/CLFRO_OpenApiBalanceResponse"
518
+ },
519
+ "msg": {
520
+ "type": "string",
521
+ "description": "错误消息"
522
+ }
523
+ },
524
+ "description": "Result",
525
+ "title": "Result"
526
+ },
527
+ "CLFRO_OpenApiBalanceResponse": {
528
+ "type": "object",
529
+ "properties": {
530
+ "estimatedBalancesConversion": {
531
+ "type": "number",
532
+ "description": "预估余额"
533
+ },
534
+ "balancesConversion": {
535
+ "type": "number",
536
+ "description": "余额"
537
+ },
538
+ "balances": {
539
+ "type": "object",
540
+ "additionalProperties": {
541
+ "type": "number",
542
+ "description": "余额(分币种)"
543
+ },
544
+ "description": "余额(分币种)"
545
+ },
546
+ "notBilledFees": {
547
+ "type": "object",
548
+ "additionalProperties": {
549
+ "type": "number",
550
+ "description": "未对账费用(分币种)"
551
+ },
552
+ "description": "未对账费用(分币种)"
553
+ },
554
+ "notBilledFeesConversion": {
555
+ "type": "number",
556
+ "description": "未对账费用"
557
+ },
558
+ "notPayedBills": {
559
+ "type": "object",
560
+ "additionalProperties": {
561
+ "type": "number",
562
+ "description": "未付款账单(分币种)"
563
+ },
564
+ "description": "未付款账单(分币种)"
565
+ },
566
+ "notPayedBillsConversion": {
567
+ "type": "number",
568
+ "description": "未付款账单"
569
+ }
570
+ },
571
+ "description": "客户余额响应",
572
+ "title": "客户余额响应"
573
+ }
574
+ }
575
+ },
576
+ "x-openapi": {
577
+ "x-setting": {
578
+ "customCode": 200,
579
+ "language": "zh-CN",
580
+ "enableSwaggerModels": false,
581
+ "swaggerModelName": "Swagger Models",
582
+ "enableReloadCacheParameter": false,
583
+ "enableAfterScript": true,
584
+ "enableDocumentManage": false,
585
+ "enableVersion": false,
586
+ "enableRequestCache": true,
587
+ "enableFilterMultipartApis": false,
588
+ "enableFilterMultipartApiMethodType": "POST",
589
+ "enableHost": false,
590
+ "enableHostText": "",
591
+ "enableDynamicParameter": false,
592
+ "enableDebug": false,
593
+ "enableFooter": true,
594
+ "enableFooterCustom": false,
595
+ "enableSearch": true,
596
+ "enableOpenApi": true,
597
+ "enableHomeCustom": false,
598
+ "enableGroup": true,
599
+ "enableResponseCode": true
600
+ },
601
+ "x-markdownFiles": []
602
+ }
603
+ }