snan-cli 1.0.1 → 1.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.
package/README.md CHANGED
@@ -67,6 +67,12 @@ astro metadata tableDetail --fqn=tenant-doris_prod.default.prod_dwi.dwi_order
67
67
  ### 数据资产
68
68
 
69
69
  ```bash
70
+ # 查询 L3 业务模型;结果包含所属业务域、业务阶段及关联资产概要
71
+ astro asset businessModels --keyword="销售|订单"
72
+
73
+ # name 必须来自 businessModels 返回结果
74
+ astro asset businessModelDetail --name="销售订单处理"
75
+
70
76
  astro asset dataModels --keyword="销售|订单"
71
77
  astro asset dataModelDetail --nameEn=SalesOrder
72
78
  astro asset indicators --keyword="GMV|成交额"
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "snan-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "CLI tool to expose backend HTTP interfaces as command-line commands",
5
5
  "type": "commonjs",
6
6
  "bin": {
7
- "astro": "./bin/astro"
7
+ "astro": "bin/astro"
8
8
  },
9
9
  "main": "src/index.js",
10
10
  "files": [
@@ -1,8 +1,22 @@
1
1
  module.exports = {
2
2
  name: 'asset',
3
- description: '数据资产:数据模型和指标查询',
3
+ description: '数据资产:业务模型、数据模型和指标查询',
4
4
  urlPrefix: '/astro-server/openapi/v1/asset',
5
5
  actions: {
6
+ businessModels: {
7
+ description: '获取 L3 业务模型列表(含所属业务域、业务阶段及关联资产概要)',
8
+ method: 'GET',
9
+ params: [
10
+ { name: 'keyword', description: '查询关键字,多个关键字用空格或|分隔,为空查询全部', required: false },
11
+ ],
12
+ },
13
+ businessModelDetail: {
14
+ description: '根据业务模型名称获取详情(含业务定义、层级及关联资产)',
15
+ method: 'GET',
16
+ params: [
17
+ { name: 'name', description: '业务模型名称(唯一标识),必须来自 businessModels 返回结果', required: true },
18
+ ],
19
+ },
6
20
  dataModels: {
7
21
  description: '获取数据资产模型列表(含可用表信息)',
8
22
  method: 'GET',