cbs-4px-merchant-cli 0.0.1 → 0.0.3
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/dist/cli.js +536 -42
- package/dist/cli.js.map +1 -1
- package/dist/commands/address.d.ts +2 -0
- package/dist/commands/address.js +59 -0
- package/dist/commands/address.js.map +1 -0
- package/dist/commands/claim.js +8 -2
- package/dist/commands/claim.js.map +1 -1
- package/dist/commands/config.js +333 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/country.d.ts +5 -0
- package/dist/commands/country.js +50 -0
- package/dist/commands/country.js.map +1 -0
- package/dist/commands/customs.d.ts +23 -0
- package/dist/commands/customs.js +176 -0
- package/dist/commands/customs.js.map +1 -0
- package/dist/commands/finance.d.ts +62 -0
- package/dist/commands/finance.js +509 -0
- package/dist/commands/finance.js.map +1 -0
- package/dist/commands/label.js +7 -1
- package/dist/commands/label.js.map +1 -1
- package/dist/commands/notice.d.ts +18 -0
- package/dist/commands/notice.js +210 -0
- package/dist/commands/notice.js.map +1 -0
- package/dist/commands/order.d.ts +12 -0
- package/dist/commands/order.js +76 -1
- package/dist/commands/order.js.map +1 -1
- package/dist/commands/pickup.d.ts +21 -0
- package/dist/commands/pickup.js +249 -0
- package/dist/commands/pickup.js.map +1 -0
- package/dist/commands/problem.d.ts +41 -0
- package/dist/commands/problem.js +371 -0
- package/dist/commands/problem.js.map +1 -0
- package/dist/commands/product.d.ts +28 -0
- package/dist/commands/product.js +249 -1
- package/dist/commands/product.js.map +1 -1
- package/dist/commands/service.d.ts +41 -0
- package/dist/commands/service.js +395 -0
- package/dist/commands/service.js.map +1 -0
- package/dist/commands/skill.d.ts +15 -0
- package/dist/commands/skill.js +374 -0
- package/dist/commands/skill.js.map +1 -0
- package/dist/commands/track.d.ts +13 -0
- package/dist/commands/track.js +92 -1
- package/dist/commands/track.js.map +1 -1
- package/dist/commands/update.d.ts +1 -1
- package/dist/commands/update.js +72 -9
- package/dist/commands/update.js.map +1 -1
- package/dist/services/api-client.d.ts +49 -2
- package/dist/services/api-client.js +464 -6
- package/dist/services/api-client.js.map +1 -1
- package/dist/services/skill-installer.d.ts +174 -0
- package/dist/services/skill-installer.js +540 -0
- package/dist/services/skill-installer.js.map +1 -0
- package/dist/types/index.d.ts +609 -0
- package/package.json +8 -6
- package/scripts/postinstall.js +31 -161
- package/skill/SKILL.md +72 -14
- package/skill/package.json +25 -0
- package/skill/reference/customs.md +220 -0
- package/skill/reference/finance.md +337 -0
- package/skill/reference/index.md +62 -6
- package/skill/reference/notice.md +238 -0
- package/skill/reference/order.md +172 -0
- package/skill/reference/pickup.md +222 -0
- package/skill/reference/problem.md +318 -0
- package/skill/reference/product.md +203 -0
- package/skill/reference/service.md +406 -0
- package/skill/reference/track.md +105 -0
- package/skill/reference/update.md +99 -14
- package/skill/reference/claim.md +0 -66
|
@@ -0,0 +1,337 @@
|
|
|
1
|
+
# `fmc finance` command
|
|
2
|
+
|
|
3
|
+
## Command details
|
|
4
|
+
|
|
5
|
+
### `fmc finance balance`
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| **Name** | `finance balance` |
|
|
10
|
+
| **Description** | 查询账户余额 |
|
|
11
|
+
| **Usage** | `fmc finance balance [flags]` |
|
|
12
|
+
|
|
13
|
+
需要 API Key 认证。
|
|
14
|
+
|
|
15
|
+
#### Options
|
|
16
|
+
|
|
17
|
+
| Flag | Type | Required | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 DSS |
|
|
20
|
+
|
|
21
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
22
|
+
|
|
23
|
+
#### Examples
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
fmc finance balance
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
fmc finance balance --output json
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
#### Output (text mode)
|
|
34
|
+
|
|
35
|
+
```
|
|
36
|
+
账户余额
|
|
37
|
+
──────────────────────────────────────────────────
|
|
38
|
+
付费类型 预付费
|
|
39
|
+
授信额度 50,000.00
|
|
40
|
+
可用授信额度 41,800.00
|
|
41
|
+
可用余额 12,580.50
|
|
42
|
+
欠费金额 0.00
|
|
43
|
+
|
|
44
|
+
账户余额明细
|
|
45
|
+
────────────────────────────────────────
|
|
46
|
+
CNY (DSS)
|
|
47
|
+
现金余额 10,000.00
|
|
48
|
+
信用余额 2,580.50
|
|
49
|
+
账户余额 12,580.50
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
### `fmc finance bill list`
|
|
55
|
+
|
|
56
|
+
| Field | Value |
|
|
57
|
+
| --- | --- |
|
|
58
|
+
| **Name** | `finance bill list` |
|
|
59
|
+
| **Description** | 查询已出账单列表 |
|
|
60
|
+
| **Usage** | `fmc finance bill list [flags]` |
|
|
61
|
+
|
|
62
|
+
需要 API Key 认证。
|
|
63
|
+
|
|
64
|
+
#### Options
|
|
65
|
+
|
|
66
|
+
| Flag | Type | Required | Description |
|
|
67
|
+
| --- | --- | --- | --- |
|
|
68
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 GRS |
|
|
69
|
+
| `--bill-no <no>` | string | no | 账单编号 |
|
|
70
|
+
| `--bill-month <month>` | string | no | 账单月份 (yyyy-MM) |
|
|
71
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
72
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
73
|
+
|
|
74
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
75
|
+
|
|
76
|
+
#### Examples
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
fmc finance bill list
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
fmc finance bill list --bill-month 2024-01
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
fmc finance bill list --page 2 --size 20 --output json
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
#### Output (text mode)
|
|
91
|
+
|
|
92
|
+
```
|
|
93
|
+
账单列表
|
|
94
|
+
──────────────────────────────────────────────────
|
|
95
|
+
共 25 条
|
|
96
|
+
|
|
97
|
+
BILL-202401 已结算
|
|
98
|
+
业务系统 GRS
|
|
99
|
+
应收金额 5,280.50 CNY
|
|
100
|
+
账单周期 2024-01-01~2024-01-31
|
|
101
|
+
还款截止 2024-02-15
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
### `fmc finance daily-fee list`
|
|
107
|
+
|
|
108
|
+
| Field | Value |
|
|
109
|
+
| --- | --- |
|
|
110
|
+
| **Name** | `finance daily-fee list` |
|
|
111
|
+
| **Description** | 查询每日充值/消费费用 |
|
|
112
|
+
| **Usage** | `fmc finance daily-fee list [flags]` |
|
|
113
|
+
|
|
114
|
+
需要 API Key 认证。
|
|
115
|
+
|
|
116
|
+
#### Options
|
|
117
|
+
|
|
118
|
+
| Flag | Type | Required | Description |
|
|
119
|
+
| --- | --- | --- | --- |
|
|
120
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 GRS |
|
|
121
|
+
| `--currency-code <code>` | string | no | 币种编码 |
|
|
122
|
+
| `--start-date <date>` | string | no | 起始日期 (yyyy-MM-dd) |
|
|
123
|
+
| `--end-date <date>` | string | no | 结束日期 (yyyy-MM-dd) |
|
|
124
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
125
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
126
|
+
|
|
127
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
128
|
+
|
|
129
|
+
#### Examples
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
fmc finance daily-fee list
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
fmc finance daily-fee list --start-date 2024-01-01 --end-date 2024-01-07
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
```bash
|
|
140
|
+
fmc finance daily-fee list --output json
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
#### Output (text mode)
|
|
144
|
+
|
|
145
|
+
```
|
|
146
|
+
每日费用
|
|
147
|
+
──────────────────────────────────────────────────
|
|
148
|
+
页码 1/1 共 7 条
|
|
149
|
+
|
|
150
|
+
2024-01-07
|
|
151
|
+
费用金额 680.50
|
|
152
|
+
收款金额 520.00
|
|
153
|
+
业务系统 GRS
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
---
|
|
157
|
+
|
|
158
|
+
### `fmc finance unbilled list`
|
|
159
|
+
|
|
160
|
+
| Field | Value |
|
|
161
|
+
| --- | --- |
|
|
162
|
+
| **Name** | `finance unbilled list` |
|
|
163
|
+
| **Description** | 查询未出账单(传 `--business-no` 查明细,不传查列表) |
|
|
164
|
+
| **Usage** | `fmc finance unbilled list [flags]` |
|
|
165
|
+
|
|
166
|
+
需要 API Key 认证。
|
|
167
|
+
|
|
168
|
+
#### Options
|
|
169
|
+
|
|
170
|
+
| Flag | Type | Required | Description |
|
|
171
|
+
| --- | --- | --- | --- |
|
|
172
|
+
| `--business-no <no>` | string | no | 业务单号(传入则查该单计费明细) |
|
|
173
|
+
| `--currency-code <code>` | string | no | 币种编码(查明细时必填) |
|
|
174
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 GRS |
|
|
175
|
+
| `--bill-no <no>` | string | no | 账单编号(查列表时筛选) |
|
|
176
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
177
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
178
|
+
|
|
179
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
180
|
+
|
|
181
|
+
#### Examples
|
|
182
|
+
|
|
183
|
+
```bash
|
|
184
|
+
fmc finance unbilled list
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
```bash
|
|
188
|
+
fmc finance unbilled list --business-no FPX12345678 --currency-code CNY
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
fmc finance unbilled list --output json
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
### `fmc finance recharge list`
|
|
198
|
+
|
|
199
|
+
| Field | Value |
|
|
200
|
+
| --- | --- |
|
|
201
|
+
| **Name** | `finance recharge list` |
|
|
202
|
+
| **Description** | 查询充值记录(加 `--offline` 查线下水单) |
|
|
203
|
+
| **Usage** | `fmc finance recharge list [flags]` |
|
|
204
|
+
|
|
205
|
+
需要 API Key 认证。
|
|
206
|
+
|
|
207
|
+
#### Options
|
|
208
|
+
|
|
209
|
+
| Flag | Type | Required | Description |
|
|
210
|
+
| --- | --- | --- | --- |
|
|
211
|
+
| `--offline` | boolean | no | 查询线下充值记录(水单) |
|
|
212
|
+
| `--business-system <system>` | string | no | 品牌(业务系统),默认 DSS |
|
|
213
|
+
| `--start-date <date>` | string | no | 起始日期 (yyyy-MM-dd) |
|
|
214
|
+
| `--end-date <date>` | string | no | 结束日期 (yyyy-MM-dd) |
|
|
215
|
+
| `--currency <code>` | string | no | 币种(仅线下) |
|
|
216
|
+
| `--trade-no <no>` | string | no | 付款凭证号(仅线下) |
|
|
217
|
+
| `--status <code>` | string | no | 水单状态(仅线下) |
|
|
218
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
219
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
220
|
+
|
|
221
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
222
|
+
|
|
223
|
+
#### Examples
|
|
224
|
+
|
|
225
|
+
```bash
|
|
226
|
+
fmc finance recharge list
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
```bash
|
|
230
|
+
fmc finance recharge list --offline
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
fmc finance recharge list --start-date 2024-01-01 --end-date 2024-06-30
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
fmc finance recharge list --output json
|
|
239
|
+
```
|
|
240
|
+
|
|
241
|
+
---
|
|
242
|
+
|
|
243
|
+
### `fmc finance fee detail`
|
|
244
|
+
|
|
245
|
+
| Field | Value |
|
|
246
|
+
| --- | --- |
|
|
247
|
+
| **Name** | `finance fee detail` |
|
|
248
|
+
| **Description** | 查询计费明细 |
|
|
249
|
+
| **Usage** | `fmc finance fee detail <businessNo> [flags]` |
|
|
250
|
+
|
|
251
|
+
需要 API Key 认证。
|
|
252
|
+
|
|
253
|
+
#### Options
|
|
254
|
+
|
|
255
|
+
| Flag | Type | Required | Description |
|
|
256
|
+
| --- | --- | --- | --- |
|
|
257
|
+
| `<businessNo>` | string | yes | 业务单号 |
|
|
258
|
+
|
|
259
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
260
|
+
|
|
261
|
+
#### Examples
|
|
262
|
+
|
|
263
|
+
```bash
|
|
264
|
+
fmc finance fee detail FPX12345678
|
|
265
|
+
```
|
|
266
|
+
|
|
267
|
+
```bash
|
|
268
|
+
fmc finance fee detail FPX12345678 --output json
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
#### Output (text mode)
|
|
272
|
+
|
|
273
|
+
```
|
|
274
|
+
费用明细
|
|
275
|
+
──────────────────────────────────────────────────
|
|
276
|
+
运费
|
|
277
|
+
计费单号 BIL001
|
|
278
|
+
应付金额 25.00 CNY
|
|
279
|
+
计费状态 已计费
|
|
280
|
+
|
|
281
|
+
燃油附加费
|
|
282
|
+
计费单号 BIL002
|
|
283
|
+
应付金额 5.00 CNY
|
|
284
|
+
计费状态 已计费
|
|
285
|
+
```
|
|
286
|
+
|
|
287
|
+
---
|
|
288
|
+
|
|
289
|
+
### `fmc finance frozen list`
|
|
290
|
+
|
|
291
|
+
| Field | Value |
|
|
292
|
+
| --- | --- |
|
|
293
|
+
| **Name** | `finance frozen list` |
|
|
294
|
+
| **Description** | 查询冻结流水 |
|
|
295
|
+
| **Usage** | `fmc finance frozen list [flags]` |
|
|
296
|
+
|
|
297
|
+
需要 API Key 认证。
|
|
298
|
+
|
|
299
|
+
#### Options
|
|
300
|
+
|
|
301
|
+
| Flag | Type | Required | Description |
|
|
302
|
+
| --- | --- | --- | --- |
|
|
303
|
+
| `--brand <brand>` | string | no | 品牌(业务系统) |
|
|
304
|
+
| `--currency <code>` | string | no | 币种编码 |
|
|
305
|
+
| `--business-no <no>` | string | no | 业务单号 |
|
|
306
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
307
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
308
|
+
|
|
309
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
310
|
+
|
|
311
|
+
#### Examples
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
fmc finance frozen list
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
```bash
|
|
318
|
+
fmc finance frozen list --currency CNY
|
|
319
|
+
```
|
|
320
|
+
|
|
321
|
+
```bash
|
|
322
|
+
fmc finance frozen list --business-no FPX12345678 --output json
|
|
323
|
+
```
|
|
324
|
+
|
|
325
|
+
#### Output (text mode)
|
|
326
|
+
|
|
327
|
+
```
|
|
328
|
+
冻结流水列表
|
|
329
|
+
────────────────────────────────────────────────────────────
|
|
330
|
+
FPX12345678
|
|
331
|
+
品牌 DSS
|
|
332
|
+
冻结金额 25.00 CNY
|
|
333
|
+
冻结时间 2024-01-15 10:30:00
|
|
334
|
+
解冻时间 2024-01-20 09:00:00
|
|
335
|
+
|
|
336
|
+
共 1 条
|
|
337
|
+
```
|
package/skill/reference/index.md
CHANGED
|
@@ -14,11 +14,58 @@ Command **details** are in sibling `<group>.md` files in this directory.
|
|
|
14
14
|
| `fmc config list` | 查看当前配置 | [config.md](config.md) |
|
|
15
15
|
| `fmc config export-schema` | 导出命令的 JSON tool schema | [config.md](config.md) |
|
|
16
16
|
| `fmc track get` | 查询物流轨迹 | [track.md](track.md) |
|
|
17
|
+
| `fmc track sub order` | 查询轨迹订阅订单 | [track.md](track.md) |
|
|
18
|
+
| `fmc track sub product` | 查询轨迹订阅产品 | [track.md](track.md) |
|
|
17
19
|
| `fmc label get` | 获取面单打印信息(PDF 链接) | [label.md](label.md) |
|
|
18
20
|
| `fmc order get` | 获取订单详情 | [order.md](order.md) |
|
|
21
|
+
| `fmc order list` | 查询订单列表 | [order.md](order.md) |
|
|
22
|
+
| `fmc order address-book` | 查询地址簿列表 | [order.md](order.md) |
|
|
23
|
+
| `fmc order country` | 模糊搜索目的国家 | [order.md](order.md) |
|
|
19
24
|
| `fmc product recommend` | 获取推荐物流产品及报价 | [product.md](product.md) |
|
|
20
|
-
| `fmc
|
|
25
|
+
| `fmc product list` | 查询可用产品列表 | [product.md](product.md) |
|
|
26
|
+
| `fmc product detail` | 查询产品详情 | [product.md](product.md) |
|
|
27
|
+
| `fmc product eta` | 查询预估时效 | [product.md](product.md) |
|
|
28
|
+
| `fmc product search` | 搜索产品 | [product.md](product.md) |
|
|
29
|
+
| `fmc problem list` | 查询问题件列表 | [problem.md](problem.md) |
|
|
30
|
+
| `fmc problem suggest` | 获取异常件 AI 处理建议 | [problem.md](problem.md) |
|
|
31
|
+
| `fmc problem notify list` | 查询通知件列表 | [problem.md](problem.md) |
|
|
32
|
+
| `fmc problem notify type` | 查询尾程异常类型枚举 | [problem.md](problem.md) |
|
|
33
|
+
| `fmc problem lastmile list` | 查询尾程异常列表 | [problem.md](problem.md) |
|
|
34
|
+
| `fmc problem arrear list` | 查询欠费件列表 | [problem.md](problem.md) |
|
|
35
|
+
| `fmc problem intercepted list` | 查询拦截件列表 | [problem.md](problem.md) |
|
|
36
|
+
| `fmc service repair list` | 查询售后工单列表 | [service.md](service.md) |
|
|
37
|
+
| `fmc service check list` | 查询查件列表 | [service.md](service.md) |
|
|
38
|
+
| `fmc service complaint list` | 查询投诉列表 | [service.md](service.md) |
|
|
39
|
+
| `fmc service detail` | 查询服务单详情 | [service.md](service.md) |
|
|
40
|
+
| `fmc service record` | 查询服务单处理记录 | [service.md](service.md) |
|
|
41
|
+
| `fmc service claim list` | 查询理赔列表 | [service.md](service.md) |
|
|
42
|
+
| `fmc service claim detail` | 查询理赔详情 | [service.md](service.md) |
|
|
43
|
+
| `fmc service claim reason` | 查询理赔原因列表 | [service.md](service.md) |
|
|
44
|
+
| `fmc finance balance` | 查询账户余额 | [finance.md](finance.md) |
|
|
45
|
+
| `fmc finance bill list` | 查询账单列表 | [finance.md](finance.md) |
|
|
46
|
+
| `fmc finance daily-fee list` | 查询每日费用 | [finance.md](finance.md) |
|
|
47
|
+
| `fmc finance unbilled list` | 查询未出账汇总及明细 | [finance.md](finance.md) |
|
|
48
|
+
| `fmc finance recharge list` | 查询充值记录(在线及线下) | [finance.md](finance.md) |
|
|
49
|
+
| `fmc finance fee detail` | 查询计费明细 | [finance.md](finance.md) |
|
|
50
|
+
| `fmc finance frozen list` | 查询冻结流水 | [finance.md](finance.md) |
|
|
51
|
+
| `fmc pickup material list` | 查询物料申请单列表 | [pickup.md](pickup.md) |
|
|
52
|
+
| `fmc pickup material detail` | 查询物料申请单详情 | [pickup.md](pickup.md) |
|
|
53
|
+
| `fmc pickup material quota` | 查询本月物料申请额度 | [pickup.md](pickup.md) |
|
|
54
|
+
| `fmc pickup address list` | 查询揽收地址列表 | [pickup.md](pickup.md) |
|
|
55
|
+
| `fmc notice list` | 查询系统公告列表 | [notice.md](notice.md) |
|
|
56
|
+
| `fmc notice detail` | 查询公告详情 | [notice.md](notice.md) |
|
|
57
|
+
| `fmc notice message list` | 查询站内消息列表 | [notice.md](notice.md) |
|
|
58
|
+
| `fmc notice message detail` | 查询站内消息详情 | [notice.md](notice.md) |
|
|
59
|
+
| `fmc notice message unread` | 查询未读消息数量 | [notice.md](notice.md) |
|
|
60
|
+
| `fmc customs cargo list` | 查询申报品列表 | [customs.md](customs.md) |
|
|
61
|
+
| `fmc customs commodity list` | 查询商品备案列表 | [customs.md](customs.md) |
|
|
62
|
+
| `fmc customs commodity detail` | 查询商品备案详情 | [customs.md](customs.md) |
|
|
63
|
+
| `fmc customs hscode search` | 查询海关编码 | [customs.md](customs.md) |
|
|
64
|
+
| `fmc customs registration info` | 查询客户备案信息 | [customs.md](customs.md) |
|
|
21
65
|
| `fmc update` | 升级 CLI 及对应 skill 到最新版本 | [update.md](update.md) |
|
|
66
|
+
| `fmc skill install` | 把当前版本的 skill 同步到本机 AI 工具 | [update.md](update.md) |
|
|
67
|
+
| `fmc skill status` | 查看各 AI 工具的 skill 安装与版本状态 | [update.md](update.md) |
|
|
68
|
+
| `fmc skill uninstall` | 移除本 CLI 安装的 skill | [update.md](update.md) |
|
|
22
69
|
|
|
23
70
|
## By group
|
|
24
71
|
|
|
@@ -26,12 +73,18 @@ Command **details** are in sibling `<group>.md` files in this directory.
|
|
|
26
73
|
| --- | --- | --- |
|
|
27
74
|
| `auth` | `login`, `status` | [auth.md](auth.md) |
|
|
28
75
|
| `config` | `set`, `list`, `export-schema` | [config.md](config.md) |
|
|
29
|
-
| `track` | `get` | [track.md](track.md) |
|
|
76
|
+
| `track` | `get`, `sub order`, `sub product` | [track.md](track.md) |
|
|
30
77
|
| `label` | `get` | [label.md](label.md) |
|
|
31
|
-
| `order` | `get` | [order.md](order.md) |
|
|
32
|
-
| `product` | `recommend` | [product.md](product.md) |
|
|
33
|
-
| `
|
|
78
|
+
| `order` | `get`, `list`, `address-book`, `country` | [order.md](order.md) |
|
|
79
|
+
| `product` | `recommend`, `list`, `detail`, `eta`, `search` | [product.md](product.md) |
|
|
80
|
+
| `problem` | `list`, `suggest`, `notify list`, `notify type`, `lastmile list`, `arrear list`, `intercepted list` | [problem.md](problem.md) |
|
|
81
|
+
| `service` | `repair list`, `check list`, `complaint list`, `detail`, `record`, `claim list`, `claim detail`, `claim reason` | [service.md](service.md) |
|
|
82
|
+
| `finance` | `balance`, `bill list`, `daily-fee list`, `unbilled list`, `recharge list`, `fee detail`, `frozen list` | [finance.md](finance.md) |
|
|
83
|
+
| `pickup` | `material list`, `material detail`, `material quota`, `address list` | [pickup.md](pickup.md) |
|
|
84
|
+
| `notice` | `list`, `detail`, `message list`, `message detail`, `message unread` | [notice.md](notice.md) |
|
|
85
|
+
| `customs` | `cargo list`, `commodity list`, `commodity detail`, `hscode search`, `registration info` | [customs.md](customs.md) |
|
|
34
86
|
| `update` | (no subcommand) | [update.md](update.md) |
|
|
87
|
+
| `skill` | `install`, `status`, `uninstall` | [update.md](update.md) |
|
|
35
88
|
|
|
36
89
|
## Global flags
|
|
37
90
|
|
|
@@ -46,6 +99,9 @@ Command **details** are in sibling `<group>.md` files in this directory.
|
|
|
46
99
|
## Notes
|
|
47
100
|
|
|
48
101
|
- `track get` 命令无需认证即可使用。
|
|
49
|
-
-
|
|
102
|
+
- 其余大部分命令需要先配置 API Key:`fmc auth login --api-key <SK_xxx>`。
|
|
103
|
+
- 新增的 `problem`、`service`、`finance`、`pickup`、`notice`、`customs` 模块均需要 API Key 认证。`order` 模块下的 `address-book`、`country` 子命令也需要认证。
|
|
50
104
|
- 配置文件位于 `~/.bportal/config.json`;升级状态缓存位于 `~/.bportal/update-state.json`。
|
|
51
105
|
- 当检测到新版本可用时,stderr 会输出 `{"_notice":{"type":"update",...}}`;设置环境变量 `BPORTAL_NO_UPDATE_NOTIFIER=1` 可关闭。
|
|
106
|
+
- 当已安装的 skill 版本与 CLI 不一致时,stderr 会输出 `{"_notice":{"type":"skills",...}}`;执行 `fmc skill install` 即可同步。
|
|
107
|
+
- `npm install -g cbs-4px-merchant-cli` **不保证**会自动注册 skill(npm 11 默认拦截安装期脚本,且仍退出 0),安装后应显式执行 `fmc skill install`。
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
# `fmc notice` command
|
|
2
|
+
|
|
3
|
+
## Command details
|
|
4
|
+
|
|
5
|
+
### `fmc notice list`
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
| --- | --- |
|
|
9
|
+
| **Name** | `notice list` |
|
|
10
|
+
| **Description** | 查询系统公告列表 |
|
|
11
|
+
| **Usage** | `fmc notice list [flags]` |
|
|
12
|
+
|
|
13
|
+
需要 API Key 认证。
|
|
14
|
+
|
|
15
|
+
#### Options
|
|
16
|
+
|
|
17
|
+
| Flag | Type | Required | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `--category <cat>` | string | no | 公告分类筛选 |
|
|
20
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
21
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
22
|
+
|
|
23
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
24
|
+
|
|
25
|
+
#### Examples
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
fmc notice list
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
fmc notice list --category 系统维护
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
fmc notice list --page 2 --size 20 --output json
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
#### Output (text mode)
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
公告列表
|
|
43
|
+
──────────────────────────────────────────────────
|
|
44
|
+
|
|
45
|
+
NTC20240115001
|
|
46
|
+
公告名称 春节假期运营时间调整通知
|
|
47
|
+
分类 运营通知
|
|
48
|
+
发布时间 2024-01-15 10:00:00
|
|
49
|
+
|
|
50
|
+
NTC20240110001
|
|
51
|
+
公告名称 系统升级维护公告
|
|
52
|
+
分类 系统维护
|
|
53
|
+
发布时间 2024-01-10 09:00:00
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
### `fmc notice detail`
|
|
59
|
+
|
|
60
|
+
| Field | Value |
|
|
61
|
+
| --- | --- |
|
|
62
|
+
| **Name** | `notice detail` |
|
|
63
|
+
| **Description** | 查询公告详情 |
|
|
64
|
+
| **Usage** | `fmc notice detail <code> [flags]` |
|
|
65
|
+
|
|
66
|
+
需要 API Key 认证。
|
|
67
|
+
|
|
68
|
+
#### Options
|
|
69
|
+
|
|
70
|
+
| Flag | Type | Required | Description |
|
|
71
|
+
| --- | --- | --- | --- |
|
|
72
|
+
| `<code>` | string | yes | 公告编号 |
|
|
73
|
+
|
|
74
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
75
|
+
|
|
76
|
+
#### Examples
|
|
77
|
+
|
|
78
|
+
```bash
|
|
79
|
+
fmc notice detail NTC20240115001
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
fmc notice detail NTC20240115001 --output json
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
#### Output (text mode)
|
|
87
|
+
|
|
88
|
+
```
|
|
89
|
+
公告详情
|
|
90
|
+
──────────────────────────────────────────────────
|
|
91
|
+
公告编码 NTC20240115001
|
|
92
|
+
公告名称 春节假期运营时间调整通知
|
|
93
|
+
分类 运营通知
|
|
94
|
+
发布时间 2024-01-15 10:00:00
|
|
95
|
+
|
|
96
|
+
公告内容
|
|
97
|
+
────────────────────────────────────────
|
|
98
|
+
尊敬的客户,春节假期期间物流时效可能有所延长,请提前安排发货。
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
### `fmc notice message list`
|
|
104
|
+
|
|
105
|
+
| Field | Value |
|
|
106
|
+
| --- | --- |
|
|
107
|
+
| **Name** | `notice message list` |
|
|
108
|
+
| **Description** | 查询站内消息列表 |
|
|
109
|
+
| **Usage** | `fmc notice message list [flags]` |
|
|
110
|
+
|
|
111
|
+
需要 API Key 认证。
|
|
112
|
+
|
|
113
|
+
#### Options
|
|
114
|
+
|
|
115
|
+
| Flag | Type | Required | Description |
|
|
116
|
+
| --- | --- | --- | --- |
|
|
117
|
+
| `--biz-code <code>` | string | no | 业务编码 |
|
|
118
|
+
| `--read <bool>` | string | no | 是否已读:true / false |
|
|
119
|
+
| `--keyword <word>` | string | no | 搜索关键词 |
|
|
120
|
+
| `--page <num>` | number | no | 页码,默认 1 |
|
|
121
|
+
| `--size <num>` | number | no | 每页数量,默认 10 |
|
|
122
|
+
|
|
123
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
124
|
+
|
|
125
|
+
#### Examples
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
fmc notice message list
|
|
129
|
+
```
|
|
130
|
+
|
|
131
|
+
```bash
|
|
132
|
+
fmc notice message list --read false
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```bash
|
|
136
|
+
fmc notice message list --keyword 运费 --page 1 --size 20 --output json
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
#### Output (text mode)
|
|
140
|
+
|
|
141
|
+
```
|
|
142
|
+
站内消息列表
|
|
143
|
+
────────────────────────────────────────────────────────────
|
|
144
|
+
[未读] MSG001
|
|
145
|
+
标题 您的包裹 FPX12345678 已签收
|
|
146
|
+
业务类型 轨迹通知
|
|
147
|
+
分类 物流消息
|
|
148
|
+
发送时间 2024-01-15 10:30:00
|
|
149
|
+
|
|
150
|
+
[已读] MSG002
|
|
151
|
+
标题 账单 BILL-202401 已生成
|
|
152
|
+
业务类型 财务通知
|
|
153
|
+
分类 账务消息
|
|
154
|
+
发送时间 2024-01-10 09:00:00
|
|
155
|
+
|
|
156
|
+
共 2 条
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
---
|
|
160
|
+
|
|
161
|
+
### `fmc notice message detail`
|
|
162
|
+
|
|
163
|
+
| Field | Value |
|
|
164
|
+
| --- | --- |
|
|
165
|
+
| **Name** | `notice message detail` |
|
|
166
|
+
| **Description** | 查询站内消息详情 |
|
|
167
|
+
| **Usage** | `fmc notice message detail <recordId> [flags]` |
|
|
168
|
+
|
|
169
|
+
需要 API Key 认证。
|
|
170
|
+
|
|
171
|
+
#### Options
|
|
172
|
+
|
|
173
|
+
| Flag | Type | Required | Description |
|
|
174
|
+
| --- | --- | --- | --- |
|
|
175
|
+
| `<recordId>` | string | yes | 消息记录ID |
|
|
176
|
+
|
|
177
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
178
|
+
|
|
179
|
+
#### Examples
|
|
180
|
+
|
|
181
|
+
```bash
|
|
182
|
+
fmc notice message detail MSG001
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
```bash
|
|
186
|
+
fmc notice message detail MSG001 --output json
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
#### Output (text mode)
|
|
190
|
+
|
|
191
|
+
```
|
|
192
|
+
消息详情
|
|
193
|
+
──────────────────────────────────────────────────
|
|
194
|
+
记录ID MSG001
|
|
195
|
+
标题 您的包裹 FPX12345678 已签收
|
|
196
|
+
业务类型 轨迹通知
|
|
197
|
+
分类 物流消息
|
|
198
|
+
发送时间 2024-01-15 10:30:00
|
|
199
|
+
状态 未读
|
|
200
|
+
|
|
201
|
+
消息内容
|
|
202
|
+
────────────────────────────────────────
|
|
203
|
+
您好,您的包裹 FPX12345678 已于 2024-01-15 10:30 签收。
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
### `fmc notice message unread`
|
|
209
|
+
|
|
210
|
+
| Field | Value |
|
|
211
|
+
| --- | --- |
|
|
212
|
+
| **Name** | `notice message unread` |
|
|
213
|
+
| **Description** | 查询未读消息数量 |
|
|
214
|
+
| **Usage** | `fmc notice message unread [flags]` |
|
|
215
|
+
|
|
216
|
+
需要 API Key 认证。
|
|
217
|
+
|
|
218
|
+
#### Options
|
|
219
|
+
|
|
220
|
+
无额外参数。
|
|
221
|
+
|
|
222
|
+
支持全局选项: `--output`, `--verbose`, `--dry-run`
|
|
223
|
+
|
|
224
|
+
#### Examples
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
fmc notice message unread
|
|
228
|
+
```
|
|
229
|
+
|
|
230
|
+
```bash
|
|
231
|
+
fmc notice message unread --output json
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
#### Output (text mode)
|
|
235
|
+
|
|
236
|
+
```
|
|
237
|
+
未读消息数量: 5
|
|
238
|
+
```
|