@youzan-cloud/zan-saas-cli 0.1.0-beta.3 → 0.1.0-beta.4
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/internal/registry/manifest.json +3 -3
- package/npm-shrinkwrap.json +2 -2
- package/package.json +1 -1
- package/skills/zan-saas/SKILL.md +2 -2
- package/skills/zan-saas/references/host-entry.md +2 -2
- package/src/commands/native/benefit/card-definition/list/command.js +4 -3
- package/src/commands/native/benefit/card-definition/list/schema.json +1 -1
- package/src/commands/native/benefit/commands.index.json +2 -2
- package/src/commands/native/benefit/customer-card/list/command.js +1 -0
- package/src/commands/native/benefit/customer-card/list/schema.json +1 -1
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"indexFile": "benefit/commands.index.json",
|
|
31
31
|
"commandCount": 5,
|
|
32
32
|
"indexSize": 1584,
|
|
33
|
-
"indexSha256": "
|
|
33
|
+
"indexSha256": "fef946b05d691ffdc0e016c4def2c922d29b8f8000e199a4a1a39e80f6c5c50c"
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "coupon",
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
{
|
|
158
158
|
"name": "zan-saas",
|
|
159
159
|
"type": "entry",
|
|
160
|
-
"description": "有赞 SaaS
|
|
160
|
+
"description": "有赞 SaaS 产品的命令行工具入口。用户需要查询有赞店铺的商品、订单、客户、会员、营销、库存等业务数据,或执行当前版本支持的店铺操作时使用。具体能力与适用范围以当前安装版指引为准。",
|
|
161
161
|
"dependsOn": [
|
|
162
162
|
"zan-saas-shared"
|
|
163
163
|
],
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
"SKILL.md",
|
|
166
166
|
"references/host-entry.md"
|
|
167
167
|
],
|
|
168
|
-
"fingerprint": "
|
|
168
|
+
"fingerprint": "6fd2bb9b078420651fc470a57b64a7a64e16e565ee5ca5f29445348a5a342031"
|
|
169
169
|
},
|
|
170
170
|
{
|
|
171
171
|
"name": "zan-saas-shared",
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@youzan-cloud/zan-saas-cli",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.4",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@youzan-cloud/zan-saas-cli",
|
|
9
|
-
"version": "0.1.0-beta.
|
|
9
|
+
"version": "0.1.0-beta.4",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"ajv": "8.20.0",
|
package/package.json
CHANGED
package/skills/zan-saas/SKILL.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: zan-saas
|
|
3
|
-
description: 有赞 SaaS
|
|
3
|
+
description: 有赞 SaaS 产品的命令行工具入口。用户需要查询有赞店铺的商品、订单、客户、会员、营销、库存等业务数据,或执行当前版本支持的店铺操作时使用。具体能力与适用范围以当前安装版指引为准。
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# 有赞 SaaS CLI 入口
|
|
7
7
|
|
|
8
8
|
## 人机交接
|
|
9
9
|
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
```markdown
|
|
8
8
|
---
|
|
9
9
|
name: zan-saas
|
|
10
|
-
description:
|
|
10
|
+
description: 有赞 SaaS 产品的命令行工具入口。用户需要查询有赞店铺的商品、订单、客户、会员、营销、库存等业务数据,或执行当前版本支持的店铺操作时使用。具体能力与适用范围以当前安装版指引为准。
|
|
11
11
|
---
|
|
12
12
|
|
|
13
|
-
#
|
|
13
|
+
# 有赞 SaaS CLI
|
|
14
14
|
|
|
15
15
|
开始时运行 `zan-saas --version` 和 `zan-saas skills read zan-saas`。
|
|
16
16
|
使用 CLI 返回的同版正文,再按其中的共享规则与领域指引继续。
|
|
@@ -64,14 +64,15 @@ function createCommand({ context } = {}) {
|
|
|
64
64
|
.choices(['json', 'pretty']).default('json'))
|
|
65
65
|
.option('--dry-run', '本地预览店铺核验和单页查询,不读凭证、不联网')
|
|
66
66
|
.addHelpText('after', `
|
|
67
|
-
total 只描述本次筛选的接口总数,不保证跨页快照;按 nextPageNo
|
|
67
|
+
total 只描述本次筛选的接口总数,不保证跨页快照;按 nextPageNo 继续并保留店铺和筛选。
|
|
68
68
|
nextPageNo=null 不能单独解释为结束;windowLimitReached=true 表示达到页码上限,仍有后续。
|
|
69
69
|
时间点统一输出北京时间 YYYY-MM-DD HH:mm:ss.SSS,字段声明的业务哨兵保留。
|
|
70
|
-
输出 data.cards 和 data.pagination(含 total、nextPageNo、windowLimitReached
|
|
70
|
+
输出 data.cards 和 data.pagination(含 total、nextPageNo、windowLimitReached),不自动翻页或重试。
|
|
71
|
+
分页仅支持 --page-no;页容量由服务端决定,不支持 --page-size。
|
|
71
72
|
仅查询商家卡定义,不表示客户持卡、发卡资格或详情权益;不按名称、类型或状态过滤。
|
|
72
73
|
hasMore 表示是否还有下一页;空页或短页不表示耗尽,不承诺跨页快照。
|
|
73
74
|
服务端最多允许 100 页;第 100 页仍有 hasMore=true 时不能继续遍历,不请求第 101 页。
|
|
74
|
-
不提供 --name
|
|
75
|
+
不提供 --name 或 scan;最多一次店铺核验与一次业务请求。
|
|
75
76
|
真实执行需有效四字段上下文和同店授权凭证;店铺核验不证明员工 OAuth。
|
|
76
77
|
支持微商城单店、零售单店、有赞连锁 D 总部/网店/合伙人,不承诺教育多校区总部。
|
|
77
78
|
契约:zan-saas schema benefit.card-definition.list
|
|
@@ -680,7 +680,7 @@
|
|
|
680
680
|
"diagnosticsVersion": 2
|
|
681
681
|
},
|
|
682
682
|
"notes": [
|
|
683
|
-
"每次只查询一页权益卡定义,默认第 1 页,最大第 100
|
|
683
|
+
"每次只查询一页权益卡定义,默认第 1 页,最大第 100 页;页容量由服务端决定,不支持 --page-size。保留返回顺序和禁用卡。",
|
|
684
684
|
"pageSize 为本次实际页容量,returned 为本次卡定义条数;不按空页或短页判断结束。第 100 页仍有更多时不能继续第 101 页,也不能宣称全量。",
|
|
685
685
|
"可选字段缺失保持省略,已选字段 null 或错型失败;保留空字符串和 false。",
|
|
686
686
|
"支持微商城单店、零售单店、连锁 D 总部、网店及合伙人,不承诺跨页快照。",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"availability": "available",
|
|
19
19
|
"at": "all",
|
|
20
20
|
"module": "benefit/card-definition/list/command.js",
|
|
21
|
-
"fingerprint": "
|
|
21
|
+
"fingerprint": "6e1e404d0773b8360796d76c850f5913b0db5cf17556625bccb3bc1a90a4ef48"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"path": "benefit.card-grant.list",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"availability": "available",
|
|
46
46
|
"at": "all",
|
|
47
47
|
"module": "benefit/customer-card/list/command.js",
|
|
48
|
-
"fingerprint": "
|
|
48
|
+
"fingerprint": "99950d67fbfed296117eb6ad44be1fb6bae4875128847757ebd958c38a570189"
|
|
49
49
|
}
|
|
50
50
|
]
|
|
51
51
|
}
|
|
@@ -66,6 +66,7 @@ function createCommand({ context } = {}) {
|
|
|
66
66
|
.addHelpText('after', `
|
|
67
67
|
当前接口未提供可靠的匹配总数,因此省略 total,hasMore 为 null、nextPageNo 为 null,不自动续页。
|
|
68
68
|
返回 data.customerCards 和 data.pagination;returned 为本次客户持卡条数。
|
|
69
|
+
分页仅支持 --page-no;页容量由服务端决定,不支持 --page-size。
|
|
69
70
|
cardNo 是完整字符串实例号;cardAlias 仅关联定义,不按定义合并持卡。
|
|
70
71
|
保留源 cardState;时间点统一为北京时间 YYYY-MM-DD HH:mm:ss.SSS,包括 9999 年永久哨兵。
|
|
71
72
|
空页不证明耗尽;all 不保证删除历史完整或跨页快照。
|
|
@@ -721,7 +721,7 @@
|
|
|
721
721
|
"diagnosticsVersion": 2
|
|
722
722
|
},
|
|
723
723
|
"notes": [
|
|
724
|
-
"固定一个店铺和客户,每次读取一页持卡实例,默认第 1
|
|
724
|
+
"固定一个店铺和客户,每次读取一页持卡实例,默认第 1 页;页内卡号唯一,页容量由服务端决定,不支持 --page-size。",
|
|
725
725
|
"--status available 查询可用卡,all 查询返回范围内所有状态;all 不保证已删除历史完整或跨页快照。",
|
|
726
726
|
"只返回模型中的五个实例字段,不返回客户资料,不按日期推算状态;缺必需字段、null 或错型整体失败。",
|
|
727
727
|
"支持微商城单店、零售单店、连锁 D 总部、网店及合伙人。",
|