@voxgig/create-sdkgen 0.1.0 → 0.1.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.
Files changed (63) hide show
  1. package/package.json +3 -3
  2. package/project/standard/.env.local +1 -0
  3. package/project/standard/.sdk/build/apidef.js +8 -0
  4. package/project/standard/.sdk/build/docgen.js +15 -0
  5. package/project/standard/.sdk/build/sdkgen.js +16 -0
  6. package/project/standard/.sdk/def/README.md +4 -0
  7. package/project/standard/.sdk/model/.model-config/model-config.jsonic +17 -0
  8. package/project/standard/.sdk/model/.model-config/model-config.jsonic~ +16 -0
  9. package/project/standard/.sdk/model/README.md +2 -0
  10. package/project/standard/.sdk/model/api/api-def.jsonic +5 -0
  11. package/project/standard/.sdk/model/api/api-entity-index.jsonic +2 -0
  12. package/project/standard/.sdk/model/config.jsonic +13 -0
  13. package/project/standard/.sdk/model/feature/README.md +2 -0
  14. package/project/standard/.sdk/model/feature/feature-index.jsonic +3 -0
  15. package/project/standard/.sdk/model/flow/flow-index.jsonic +2 -0
  16. package/project/standard/.sdk/model/guide.jsonic +5 -0
  17. package/project/standard/.sdk/model/sdk.fragment.jsonic +38 -0
  18. package/project/standard/.sdk/model/target/README.md +2 -0
  19. package/project/standard/.sdk/model/target/target-index.jsonic +2 -0
  20. package/project/standard/.sdk/model/target/target-index.jsonic~ +4 -0
  21. package/project/standard/.sdk/package.json +34 -0
  22. package/project/standard/.sdk/src/DocStaticRoot.ts +45 -0
  23. package/project/standard/.sdk/src/Root.ts +228 -0
  24. package/project/standard/.sdk/src/cmp/README.md +2 -0
  25. package/project/standard/.sdk/src/tsconfig.json +16 -0
  26. package/project/standard/.sdk/test/.model-config/model-config.json +7 -0
  27. package/project/standard/.sdk/test/.model-config/model-config.jsonic +4 -0
  28. package/project/standard/.sdk/test/primary/auth.jsonic +20 -0
  29. package/project/standard/.sdk/test/primary/body.jsonic +27 -0
  30. package/project/standard/.sdk/test/primary/contextify.jsonic +5 -0
  31. package/project/standard/.sdk/test/primary/done.jsonic +7 -0
  32. package/project/standard/.sdk/test/primary/error.jsonic +19 -0
  33. package/project/standard/.sdk/test/primary/findparam.jsonic +22 -0
  34. package/project/standard/.sdk/test/primary/fullurl.jsonic +50 -0
  35. package/project/standard/.sdk/test/primary/headers.jsonic +12 -0
  36. package/project/standard/.sdk/test/primary/inward.jsonic +3 -0
  37. package/project/standard/.sdk/test/primary/method.jsonic +11 -0
  38. package/project/standard/.sdk/test/primary/operator.jsonic +60 -0
  39. package/project/standard/.sdk/test/primary/options.jsonic +60 -0
  40. package/project/standard/.sdk/test/primary/outward.jsonic +3 -0
  41. package/project/standard/.sdk/test/primary/params.jsonic +10 -0
  42. package/project/standard/.sdk/test/primary/query.jsonic +9 -0
  43. package/project/standard/.sdk/test/primary/reqform.jsonic +9 -0
  44. package/project/standard/.sdk/test/primary/request.jsonic +31 -0
  45. package/project/standard/.sdk/test/primary/resbasic.jsonic +15 -0
  46. package/project/standard/.sdk/test/primary/resbody.jsonic +5 -0
  47. package/project/standard/.sdk/test/primary/resform.jsonic +11 -0
  48. package/project/standard/.sdk/test/primary/resheaders.jsonic +9 -0
  49. package/project/standard/.sdk/test/primary/response.jsonic +20 -0
  50. package/project/standard/.sdk/test/primary/spec.jsonic +32 -0
  51. package/project/standard/.sdk/test/struct/getpath.jsonic +143 -0
  52. package/project/standard/.sdk/test/struct/inject.jsonic +76 -0
  53. package/project/standard/.sdk/test/struct/merge.jsonic +161 -0
  54. package/project/standard/.sdk/test/struct/minor.jsonic +693 -0
  55. package/project/standard/.sdk/test/struct/select.jsonic +166 -0
  56. package/project/standard/.sdk/test/struct/transform.jsonic +453 -0
  57. package/project/standard/.sdk/test/struct/validate.jsonic +287 -0
  58. package/project/standard/.sdk/test/struct/walk.jsonic +57 -0
  59. package/project/standard/.sdk/test/test.json +15080 -0
  60. package/project/standard/.sdk/test/test.jsonic +44 -0
  61. package/project/standard/.sdk/tm/LICENSE +22 -0
  62. package/project/standard/.sdk/tm/README.md +2 -0
  63. /package/bin/{voxgig-create-sdkgen → create-sdkgen} +0 -0
@@ -0,0 +1,161 @@
1
+
2
+
3
+
4
+ basic: {
5
+ in: [
6
+ {a:1,b:2},
7
+ {b:3,d:4},
8
+ ]
9
+ out: {
10
+ a: 1, b: 3, d: 4
11
+ }
12
+ }
13
+
14
+
15
+ cases: {
16
+ set: [
17
+ { in: [{a:1}, {}], out: {a:1} }
18
+ { in: [{}, {a:2}], out: {a:2} }
19
+ { in: [{a:3}, {a:4}], out: {a:4} }
20
+
21
+ { in: [{x:1}, {a:21}], out: {x:1,a:21} }
22
+
23
+ { in: [{a:{b:3}}, {}], out: {a:{b:3}} }
24
+ { in: [{}, {a:{b:4}}], out: {a:{b:4}} }
25
+ { in: [{x:2}, {a:{b:41}}], out: {x:2,a:{b:41}} }
26
+
27
+ { in:
28
+ [
29
+ { a: 1, b: 2 },
30
+ {
31
+ b: 3,
32
+ d: {
33
+ e: 4,
34
+ ee: 5
35
+ },
36
+ f: 6
37
+ },
38
+ {
39
+ x: {
40
+ y: { z: 7, zz: 8 }
41
+ },
42
+ q: { u: 9, uu: 10 },
43
+ v: 11
44
+ },
45
+ ]
46
+ out: {
47
+ a: 1,
48
+ b: 3,
49
+ d: { e: 4, ee: 5 },
50
+ f: 6,
51
+ x: { y: { z: 7, zz: 8 } },
52
+ q: { u: 9, uu: 10 },
53
+ v: 11
54
+ }
55
+ }
56
+
57
+ { in: [1,2], out: 2 }
58
+ { in: [1,2,3], out: 3 }
59
+ { in: [{},4], out: 4 }
60
+ { in: [[],5], out: 5 }
61
+ { in: [[],{}], out: {} }
62
+ { in: [{},[]], out: [] }
63
+ { in: [[6],{x:7}], out: {x:7} }
64
+ { in: [{x:8},[9]], out: [9] }
65
+
66
+ { in: [1,{a:11}], out: {a:11}}
67
+ { in: [{},{a:{b:12}}], out: {a:{b:12}}}
68
+ { in: [{},{},{a:{b:13}}], out: {a:{b:13}}}
69
+ { in: [{},null,{a:{b:14}}], out: {a:{b:14}}}
70
+ { in: [{},null,{a:{b:15}},true,[],{a:{b:16,c:null}}], out: {a:{b:16,c:null}}}
71
+ { in: [[],{a:17}], out: {a:17}}
72
+ { in: [{},[18]], out: [18]}
73
+
74
+ { in: [{x1:1}], out: {x1:1} }
75
+ { in: [{x1:2},{}], out: {x1:2} }
76
+ { in: [{},{x1:3}], out: {x1:3} }
77
+
78
+ { in: [{x21:{}}], out: {x21:{}} }
79
+ { in: [{x22:{}},{}], out: {x22:{}} }
80
+ { in: [{},{x23:{}}], out: {x23:{}} }
81
+
82
+ { in: [{x31:[]}], out: {x31:[]} }
83
+ { in: [{x32:[]},{}], out: {x32:[]} }
84
+ { in: [{},{x33:[]}], out: {x33:[]} }
85
+
86
+ { in: [{x41:{a:1}}], out: {x41:{a:1}} }
87
+ { in: [{x42:{a:1}},{}], out: {x42:{a:1}} }
88
+ { in: [{},{x43:{a:1}}], out: {x43:{a:1}} }
89
+
90
+ { in: [{x51:[1]}], out: {x51:[1]} }
91
+ { in: [{x52:[1]},{}], out: {x52:[1]} }
92
+ { in: [{},{x53:[1]}], out: {x53:[1]} }
93
+
94
+ { in: [{},{s0:''}], out: {s0:''} }
95
+ { in: [{s1:''},{}], out: {s1:''} }
96
+ { in: [{},{},{s2:''}], out: {s2:''} }
97
+ { in: [{s3:''},{},{}], out: {s3:''} }
98
+ { in: [{},{s4:''},{}], out: {s4:''} }
99
+ ]
100
+ }
101
+
102
+
103
+ array: {
104
+ set: [
105
+ { }
106
+ { in: 1, out: 1 }
107
+ { in: {a:2}, out: {a:2} }
108
+ { in: {a:{b:3}}, out: {a:{b:3}} }
109
+
110
+ { in: [] }
111
+
112
+ { in: ['a'], out: 'a' }
113
+ { in: ['a','b'], out: 'b' }
114
+ { in: ['a','b','c'], out: 'c' }
115
+ { in: ['a','b','c', null], out: null }
116
+
117
+ { in: [[11], []], out: [11] }
118
+ { in: [[12], [22]], out: [22] }
119
+ { in: [[13,14], [25]], out: [25,14] }
120
+ { in: [[15,151], [26,27]], out: [26,27] }
121
+ { in: [[15], [261,271]], out: [261,271] }
122
+ { in: [[[16]], [[28,29]]], out: [[28,29]] }
123
+
124
+ { in: [{a:1}, {}], out: {a:1} }
125
+ { in: [{}, {a:2}], out: {a:2} }
126
+ { in: [{a:22}, {a:33}], out: {a:33} }
127
+ { in: [{a:22}, {a:33}, {a:44}], out: {a:44} }
128
+ { in: [{a:3}, {b:4}], out: {a:3, b:4} }
129
+
130
+ { in: [{a:{b:5}}, {}], out: {a:{b:5}} }
131
+ { in: [{}, {a:{b:6}}], out: {a:{b:6}} }
132
+ { in: [{a:{b:701}}, {a:{b:801}}], out: {a:{b:801}} }
133
+ { in: [{a:{b:702}}, {a:{b:802}}, {a:{b:902}}], out: {a:{b:902}} }
134
+
135
+ { in: [ [4] ], out: [ 4 ] }
136
+ { in: [ [5],[55] ], out: [ 55 ] }
137
+ { in: [ [51],[552],[5553] ], out: [ 5553 ] }
138
+ { in: [{}, {a:[6]} ], out: { a: [ 6 ] } }
139
+
140
+ { in: [['a','b'],['A','b','c']], out: [ 'A','b','c' ] }
141
+
142
+ { in: [{}, {a:[7]}], out: {a:[7]} }
143
+ { in: [{}, {a:[{b:71}]}], out: {a:[{b:71}]} }
144
+
145
+ { in: [{}, {a:[{b:72}], c:[{d:[8]}]} ],
146
+ out: { a: [ { b: 72 } ], c: [ { d: [8] } ] } }
147
+
148
+ { in: [ {a:[1,2], b:{c:3,d:4}}, {a:[11], b:{c:33}} ],
149
+ out: { a: [ 11, 2 ], b: { c: 33, d: 4 } } }
150
+ ]
151
+ }
152
+
153
+
154
+ integrity: {
155
+ set: [
156
+ { in: [{e:5},{a:1,d:4},{a:2,b:3}],
157
+ out: {a:2,b:3,d:4,e:5},
158
+ match:in:[{e:5},{a:1,d:4},{a:2,b:3}]
159
+ }
160
+ ]
161
+ }