@voxgig/create-sdkgen 0.7.1 → 0.8.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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voxgig/create-sdkgen",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"main": "dist/create-sdkgen.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"types": "dist/create-sdkgen.d.ts",
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"LICENSE"
|
|
42
42
|
],
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@types/node": "25.
|
|
45
|
-
"memfs": "^4.57.
|
|
44
|
+
"@types/node": "25.6.0",
|
|
45
|
+
"memfs": "^4.57.2",
|
|
46
46
|
"typescript": "^5.9.3"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
@@ -22,14 +22,14 @@
|
|
|
22
22
|
"author": "$$const.Name$$",
|
|
23
23
|
"license": "$$const.License$$",
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@types/node": ">=25",
|
|
26
|
-
"typescript": ">=5",
|
|
27
|
-
"@voxgig/apidef": ">=5",
|
|
28
|
-
"@voxgig/model": ">=7",
|
|
29
|
-
"@voxgig/sdkgen": ">=0",
|
|
30
|
-
"@voxgig/util": ">=0",
|
|
31
|
-
"@voxgig/struct": ">=0",
|
|
32
|
-
"jostraca": ">=0",
|
|
33
|
-
"aontu": ">=0"
|
|
25
|
+
"@types/node": ">=25.6",
|
|
26
|
+
"typescript": ">=5.9",
|
|
27
|
+
"@voxgig/apidef": ">=5.5",
|
|
28
|
+
"@voxgig/model": ">=7.6",
|
|
29
|
+
"@voxgig/sdkgen": ">=0.38",
|
|
30
|
+
"@voxgig/util": ">=0.4",
|
|
31
|
+
"@voxgig/struct": ">=0.0.10",
|
|
32
|
+
"jostraca": ">=0.28",
|
|
33
|
+
"aontu": ">=0.39"
|
|
34
34
|
}
|
|
35
35
|
}
|
|
@@ -1,48 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
cmp,
|
|
4
|
+
cmp,
|
|
5
|
+
ReadmeTop,
|
|
5
6
|
} from '@voxgig/sdkgen'
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
import { KIT } from './Root'
|
|
9
|
-
|
|
10
|
-
|
|
11
9
|
const Top = cmp(function Top(props: any) {
|
|
12
|
-
|
|
13
|
-
const { model } = ctx$
|
|
14
|
-
|
|
15
|
-
File({ name: 'README.md' }, () => {
|
|
16
|
-
Content(`# ${model.Name} SDKs
|
|
17
|
-
|
|
18
|
-
## API Entities
|
|
19
|
-
|
|
20
|
-
\`\`\`mermaid
|
|
21
|
-
flowchart LR
|
|
22
|
-
`)
|
|
23
|
-
|
|
24
|
-
const entityMap = model.main[KIT].entity
|
|
25
|
-
|
|
26
|
-
each(entityMap, (entity: any) => {
|
|
27
|
-
const ancestors = entity.ancestors || []
|
|
28
|
-
if (0 < ancestors.length) {
|
|
29
|
-
const pname = ancestors[ancestors.length - 1]
|
|
30
|
-
const parent = entityMap[pname]
|
|
31
|
-
if (null != parent) {
|
|
32
|
-
Line(` ${parent.Name} --> ${entity.Name}`)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
Content(`
|
|
38
|
-
\`\`\`
|
|
39
|
-
|
|
40
|
-
`)
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
10
|
+
ReadmeTop({})
|
|
46
11
|
})
|
|
47
12
|
|
|
48
13
|
|