@voxgig/sdkgen 0.21.0 → 0.23.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 (127) hide show
  1. package/bin/voxgig-sdkgen +12 -4
  2. package/dist/action/action.d.ts +4 -0
  3. package/dist/action/action.js +35 -0
  4. package/dist/action/action.js.map +1 -0
  5. package/dist/action/feature.d.ts +4 -2
  6. package/dist/action/feature.js +57 -38
  7. package/dist/action/feature.js.map +1 -1
  8. package/dist/action/target.d.ts +4 -2
  9. package/dist/action/target.js +136 -45
  10. package/dist/action/target.js.map +1 -1
  11. package/dist/cmp/Entity.js +5 -0
  12. package/dist/cmp/Entity.js.map +1 -1
  13. package/dist/cmp/Feature.js +5 -0
  14. package/dist/cmp/Feature.js.map +1 -1
  15. package/dist/cmp/Main.js +6 -6
  16. package/dist/cmp/Main.js.map +1 -1
  17. package/dist/cmp/ReadmeIntro.js.map +1 -1
  18. package/dist/cmp/Top.d.ts +2 -0
  19. package/dist/cmp/Top.js +23 -0
  20. package/dist/cmp/Top.js.map +1 -0
  21. package/dist/sdkgen.d.ts +10 -4
  22. package/dist/sdkgen.js +54 -10
  23. package/dist/sdkgen.js.map +1 -1
  24. package/dist/tsconfig.tsbuildinfo +1 -1
  25. package/dist/types.d.ts +16 -0
  26. package/dist/types.js +3 -0
  27. package/dist/types.js.map +1 -0
  28. package/dist/utility.d.ts +3 -3
  29. package/dist/utility.js +7 -8
  30. package/dist/utility.js.map +1 -1
  31. package/package.json +6 -10
  32. package/project/.sdk/model/feature/README.md +2 -0
  33. package/project/.sdk/model/feature/log.jsonic +7 -4
  34. package/project/.sdk/model/feature/test.jsonic +26 -0
  35. package/project/.sdk/model/target/ts.jsonic +1 -0
  36. package/project/.sdk/src/cmp/ts/Config_ts.ts +7 -2
  37. package/project/.sdk/src/cmp/ts/EntityOperation_ts.ts +67 -0
  38. package/project/.sdk/src/cmp/ts/EntityTest_ts.ts +180 -0
  39. package/project/.sdk/src/cmp/ts/Entity_ts.ts +41 -66
  40. package/project/.sdk/src/cmp/ts/{MainEntity_ts.ts.off → MainEntity_ts.ts} +2 -2
  41. package/project/.sdk/src/cmp/ts/Main_ts.ts +52 -53
  42. package/project/.sdk/src/cmp/ts/Package_ts.ts +12 -7
  43. package/project/.sdk/src/cmp/ts/{ReadmeInstall_ts.ts.off → ReadmeInstall_ts.ts} +1 -1
  44. package/project/.sdk/src/cmp/ts/{ReadmeQuick_ts.ts.off → ReadmeQuick_ts.ts} +1 -2
  45. package/project/.sdk/src/cmp/ts/{TestMain_ts.ts.off → TestMain_ts.ts} +1 -1
  46. package/project/.sdk/src/cmp/ts/Test_ts.ts +20 -0
  47. package/project/.sdk/src/cmp/ts/fragment/Config.fragment.ts +8 -1
  48. package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.ts +164 -0
  49. package/project/.sdk/src/cmp/ts/fragment/Entity.test.fragment.ts +37 -0
  50. package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.ts +91 -0
  51. package/project/.sdk/src/cmp/ts/fragment/EntityListOp.fragment.ts +92 -0
  52. package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.ts +96 -0
  53. package/project/.sdk/src/cmp/ts/fragment/EntityRemoveOp.fragment.ts +96 -0
  54. package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.ts +95 -0
  55. package/project/.sdk/src/cmp/ts/fragment/Main.fragment.ts +107 -0
  56. package/project/.sdk/src/cmp/ts/utility_ts.ts +10 -0
  57. package/project/.sdk/tm/ts/src/feature/base/BaseFeature.ts +43 -0
  58. package/project/.sdk/tm/ts/src/feature/log/LogFeature.ts +109 -0
  59. package/project/.sdk/tm/ts/src/feature/test/TestFeature.ts +159 -0
  60. package/project/.sdk/tm/ts/src/tsconfig.json +1 -1
  61. package/project/.sdk/tm/ts/src/types.ts +114 -0
  62. package/project/.sdk/tm/ts/src/utility/AddfeatureUtility.ts +47 -0
  63. package/project/.sdk/tm/ts/src/utility/AuthUtility.ts +42 -0
  64. package/project/.sdk/tm/ts/src/utility/BodyUtility.ts +29 -0
  65. package/project/.sdk/tm/ts/src/utility/CleanUtility.ts +50 -0
  66. package/project/.sdk/tm/ts/src/utility/ContextUtility.ts +67 -0
  67. package/project/.sdk/tm/ts/src/utility/DoneUtility.ts +28 -0
  68. package/project/.sdk/tm/ts/src/utility/ErrorUtility.ts +59 -0
  69. package/project/.sdk/tm/ts/src/utility/FeaturehookUtility.ts +26 -0
  70. package/project/.sdk/tm/ts/src/utility/FetcherUtility.ts +17 -0
  71. package/project/.sdk/tm/ts/src/utility/FindparamUtility.ts +54 -0
  72. package/project/.sdk/tm/ts/src/utility/FullurlUtility.ts +46 -0
  73. package/project/.sdk/tm/ts/src/utility/HeadersUtility.ts +24 -0
  74. package/project/.sdk/tm/ts/src/utility/InitfeatureUtility.ts +13 -0
  75. package/project/.sdk/tm/ts/src/utility/JoinurlUtility.ts +15 -0
  76. package/project/.sdk/tm/ts/src/utility/MethodUtility.ts +25 -0
  77. package/project/.sdk/tm/ts/src/utility/OperatorUtility.ts +90 -0
  78. package/project/.sdk/tm/ts/src/utility/OptionsUtility.ts +72 -0
  79. package/project/.sdk/tm/ts/src/utility/ParamsUtility.ts +37 -0
  80. package/project/.sdk/tm/ts/src/utility/QueryUtility.ts +27 -0
  81. package/project/.sdk/tm/ts/src/utility/ReqformUtility.ts +33 -0
  82. package/project/.sdk/tm/ts/src/utility/RequestUtility.ts +66 -0
  83. package/project/.sdk/tm/ts/src/utility/ResbasicUtility.ts +34 -0
  84. package/project/.sdk/tm/ts/src/utility/ResbodyUtility.ts +19 -0
  85. package/project/.sdk/tm/ts/src/utility/ResformUtility.ts +36 -0
  86. package/project/.sdk/tm/ts/src/utility/ResheadersUtility.ts +23 -0
  87. package/project/.sdk/tm/ts/src/utility/ResponseUtility.ts +30 -0
  88. package/project/.sdk/tm/ts/src/utility/ResultUtility.ts +36 -0
  89. package/project/.sdk/tm/ts/src/utility/SpecUtility.ts +61 -0
  90. package/project/.sdk/tm/ts/src/utility/StructUtility.ts +2499 -0
  91. package/project/.sdk/tm/ts/src/utility/Utility.ts +88 -0
  92. package/project/.sdk/tm/ts/test/exists.test.ts +17 -0
  93. package/project/.sdk/tm/ts/test/runner.ts +402 -0
  94. package/project/.sdk/tm/ts/test/tsconfig.json +1 -1
  95. package/project/.sdk/tm/ts/test/utility/Custom.test.ts +62 -0
  96. package/project/.sdk/tm/ts/test/utility/PrimaryUtility.test.ts +244 -0
  97. package/project/.sdk/tm/ts/test/utility/StructUtility.test.ts +678 -0
  98. package/project/.sdk/tm/ts/test/utility/index.ts +9 -0
  99. package/project/.sdk/tm/ts/test/utility.ts +86 -0
  100. package/src/action/action.ts +54 -0
  101. package/src/action/feature.ts +83 -47
  102. package/src/action/target.ts +173 -53
  103. package/src/cmp/Entity.ts +6 -0
  104. package/src/cmp/Feature.ts +6 -3
  105. package/src/cmp/Main.ts +7 -8
  106. package/src/cmp/ReadmeIntro.ts +1 -1
  107. package/src/sdkgen.ts +86 -12
  108. package/src/types.ts +33 -0
  109. package/src/utility.ts +5 -3
  110. package/project/.sdk/model/feature/limit.jsonic +0 -12
  111. package/project/.sdk/model/feature/page.jsonic +0 -9
  112. package/project/.sdk/model/feature/telemetry.jsonic +0 -10
  113. package/project/.sdk/src/cmp/ts/Main_ts.ts~ +0 -88
  114. package/project/.sdk/src/cmp/ts/Package_ts.ts~ +0 -58
  115. package/project/.sdk/src/cmp/ts/Quick_ts.ts.off +0 -82
  116. package/project/.sdk/src/cmp/ts/TestAcceptEntity_ts.ts.off +0 -13
  117. package/project/.sdk/src/cmp/ts/TestAccept_ts.ts.off +0 -18
  118. package/project/.sdk/src/cmp/ts/Test_ts.ts.off +0 -24
  119. package/project/.sdk/src/cmp/ts/fragment/Entity.fragment.js +0 -79
  120. package/project/.sdk/src/cmp/ts/fragment/EntityCreateOp.fragment.js +0 -61
  121. package/project/.sdk/src/cmp/ts/fragment/EntityListOp.fragment.js +0 -57
  122. package/project/.sdk/src/cmp/ts/fragment/EntityLoadOp.fragment.js +0 -61
  123. package/project/.sdk/src/cmp/ts/fragment/EntityRemoveOp.fragment.js +0 -61
  124. package/project/.sdk/src/cmp/ts/fragment/EntityUpdateOp.fragment.js +0 -61
  125. package/project/.sdk/src/cmp/ts/fragment/Main.fragment.js +0 -67
  126. package/project/.sdk/tm/ts/test/README.md~ +0 -2
  127. /package/project/.sdk/src/cmp/ts/{TestEntity_ts.ts.off → TestEntity_ts.ts} +0 -0
@@ -1,61 +0,0 @@
1
- class EntityOperation { // REMOVED
2
-
3
- async create(data) {
4
- let entity = this
5
- let client = this.#client
6
- const utility = this.#utility
7
- const { operator, spec, request, response, result, error, struct, done } = utility
8
-
9
- let op = {
10
- entity: 'Name',
11
- name: 'create',
12
- path: 'PATH',
13
- params: ['PARAM-LIST'],
14
- alias: {'ALIAS':'MAP'},
15
- match: this.#match,
16
- data: null == data ? this.#data : data,
17
- state: {},
18
- reqform: 'REQFORM',
19
- resform: 'RESFORM',
20
- }
21
-
22
- let ctx = { client, op, utility, entity }
23
-
24
-
25
- // #PreOperation-Hook
26
-
27
- await operator(ctx)
28
-
29
-
30
- // #PreSpec-Hook
31
-
32
- this.#data = ctx.op.data
33
-
34
- await spec(ctx)
35
-
36
-
37
- // #PreRequest-Hook
38
-
39
- await request(ctx)
40
-
41
-
42
- // #PreResponse-Hook
43
-
44
- await response(ctx)
45
-
46
-
47
- // #PreResult-Hook
48
-
49
- await result(ctx)
50
-
51
-
52
- // #PostOperation-Hook
53
-
54
- if(null != ctx.result.resdata) {
55
- this.#data = ctx.result.resdata
56
- }
57
-
58
- return done(ctx)
59
- }
60
-
61
- } // REMOVED
@@ -1,57 +0,0 @@
1
- class EntityOperation { // REMOVED
2
-
3
- async list(match) {
4
- let entity = this
5
- let client = this.#client
6
- const utility = this.#utility
7
- const { operator, spec, request, response, result, error, struct, done } = utility
8
-
9
- let op = {
10
- entity: 'Name',
11
- name: 'list',
12
- path: 'PATH',
13
- params: ['PARAM-LIST'],
14
- alias: {'ALIAS':'MAP'},
15
- match,
16
- data: this.#data,
17
- state: {},
18
- reqform: 'REQFORM',
19
- resform: 'RESFORM',
20
- }
21
-
22
- let ctx = { client, entity, op, utility}
23
-
24
-
25
- // #PreOperation-Hook
26
-
27
- await operator(ctx)
28
-
29
-
30
- // #PreSpec-Hook
31
-
32
- this.#match = ctx.op.match
33
-
34
- await spec(ctx)
35
-
36
-
37
- // #PreRequest-Hook
38
-
39
- await request(ctx)
40
-
41
-
42
- // #PreResponse-Hook
43
-
44
- await response(ctx)
45
-
46
-
47
- // #PreResult-Hook
48
-
49
- await result(ctx)
50
-
51
-
52
- // #PostOperation-Hook
53
-
54
- return done(ctx)
55
- }
56
-
57
- } // REMOVED
@@ -1,61 +0,0 @@
1
- class EntityOperation { // REMOVED
2
-
3
- async load(match) {
4
- const entity = this
5
- const client = this.#client
6
- const utility = this.#utility
7
- const { operator, spec, request, response, result, error, struct, done } = utility
8
-
9
- const op = {
10
- entity: 'Name',
11
- name: 'load',
12
- path: 'PATH',
13
- params: ['PARAM-LIST'],
14
- alias: {'ALIAS':'MAP'},
15
- match,
16
- data: this.#data,
17
- state: {},
18
- reqform: 'REQFORM',
19
- resform: 'RESFORM',
20
- }
21
-
22
- let ctx = { client, entity, op, utility}
23
-
24
-
25
- // #PreOperation-Hook
26
-
27
- await operator(ctx)
28
-
29
-
30
- // #PreSpec-Hook
31
-
32
- this.#match = op.match
33
-
34
- await spec(ctx)
35
-
36
-
37
- // #PreRequest-Hook
38
-
39
- await request(ctx)
40
-
41
-
42
- // #PreResponse-Hook
43
-
44
- await response(ctx)
45
-
46
-
47
- // #PreResult-Hook
48
-
49
- await result(ctx)
50
-
51
-
52
- // #PostOperation-Hook
53
-
54
- if(null != ctx.result.resdata) {
55
- this.#data = ctx.result.resdata
56
- }
57
-
58
- return done(ctx)
59
- }
60
-
61
- } // REMOVED
@@ -1,61 +0,0 @@
1
- class EntityOperation { // REMOVED
2
-
3
- async remove(match) {
4
- let entity = this
5
- let client = this.#client
6
- const utility = this.#utility
7
- const { operator, spec, request, response, result, error, struct, done } = utility
8
-
9
- let op = {
10
- entity: 'Name',
11
- name: 'remove',
12
- path: 'PATH',
13
- params: ['PARAM-LIST'],
14
- alias: {'ALIAS':'MAP'},
15
- match,
16
- data: this.#data,
17
- state: {},
18
- reqform: 'REQFORM',
19
- resform: 'RESFORM',
20
- }
21
-
22
- let ctx = {client, entity, op, utility}
23
-
24
-
25
- // #PreOperation-Hook
26
-
27
- await operator(ctx)
28
-
29
-
30
- // #PreSpec-Hook
31
-
32
- this.#data = op.data
33
-
34
- await spec(ctx)
35
-
36
-
37
- // #PreRequest-Hook
38
-
39
- await request(ctx)
40
-
41
-
42
- // #PreResponse-Hook
43
-
44
- await response(ctx)
45
-
46
-
47
- // #PreResult-Hook
48
-
49
- await result(ctx)
50
-
51
-
52
- // #PostOperation-Hook
53
-
54
- if(null != ctx.result.resdata) {
55
- this.#data = ctx.result.resdata
56
- }
57
-
58
- return done(ctx)
59
- }
60
-
61
- } // REMOVED
@@ -1,61 +0,0 @@
1
- class EntityOperation { // REMOVED
2
-
3
- async update(data) {
4
- let entity = this
5
- let client = this.#client
6
- const utility = this.#utility
7
- const { operator, spec, request, response, result, error, struct, done } = utility
8
-
9
- let op = {
10
- entity: 'Name',
11
- name: 'update',
12
- path: 'PATH',
13
- params: ['PARAM-LIST'],
14
- alias: {'ALIAS':'MAP'},
15
- match: this.#match,
16
- data: null == data ? this.#data : data,
17
- state: {},
18
- reqform: 'REQFORM',
19
- resform: 'RESFORM',
20
- }
21
-
22
- let ctx = {client, entity, op, utility}
23
-
24
-
25
- // #PreOperation-Hook
26
-
27
- await operator(ctx)
28
-
29
-
30
- // #PreSpec-Hook
31
-
32
- this.#data = op.data
33
-
34
- await spec(ctx)
35
-
36
-
37
- // #PreRequest-Hook
38
-
39
- await request(ctx)
40
-
41
-
42
- // #PreResponse-Hook
43
-
44
- await response(ctx)
45
-
46
-
47
- // #PreResult-Hook
48
-
49
- await result(ctx)
50
-
51
-
52
- // #PostOperation-Hook
53
-
54
- if(null != ctx.result.resdata) {
55
- this.#data = ctx.result.resdata
56
- }
57
-
58
- return done(ctx)
59
- }
60
-
61
- } // REMOVED
@@ -1,67 +0,0 @@
1
-
2
- const { Config } = require('./Config')
3
- const { Utility } = require('./utility/Utility')
4
-
5
-
6
- class NameSDK {
7
- #options
8
- #features
9
- #utility = Utility
10
-
11
- constructor(options) {
12
-
13
- this.#options = this.#utility.options({
14
- client: this,
15
- utility: this.#utility,
16
- config: Config,
17
- options,
18
- })
19
-
20
- // #FeatureOptions
21
-
22
- this.#features = {
23
- // #BuildFeature
24
- }
25
-
26
- // #PostConstruct-Hook
27
- }
28
-
29
-
30
- options() {
31
- return { ...this.#options }
32
- }
33
-
34
- features() {
35
- return { ...this.#features }
36
- }
37
-
38
- utility() {
39
- return { ...this.#utility }
40
- }
41
-
42
-
43
- static test(opts) {
44
- return new NameSDK({
45
- // #TestOptions
46
- ...(opts || {})
47
- })
48
- }
49
-
50
- test(opts) {
51
- return new NameSDK({
52
- // #TestOptions
53
- ...(opts || this.#options || {})
54
- })
55
- }
56
-
57
-
58
- // <[SLOT]>
59
- }
60
-
61
-
62
- const SDK = NameSDK
63
-
64
- module.exports = {
65
- NameSDK,
66
- SDK,
67
- }
@@ -1,2 +0,0 @@
1
- # Test
2
-