@lcap/nasl 2.21.0-beta.2 → 2.21.0-beta.3

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 (188) hide show
  1. package/out/automate/engine/operators.d.ts +2 -2
  2. package/out/automate/engine/operators.js +14 -5
  3. package/out/automate/engine/operators.js.map +1 -1
  4. package/out/common/BaseNode.d.ts +6 -0
  5. package/out/common/BaseNode.js +45 -8
  6. package/out/common/BaseNode.js.map +1 -1
  7. package/out/concepts/Abort__.d.ts +1 -1
  8. package/out/concepts/Abort__.js +3 -3
  9. package/out/concepts/Abort__.js.map +1 -1
  10. package/out/concepts/App__.d.ts +0 -2
  11. package/out/concepts/App__.js +0 -42
  12. package/out/concepts/App__.js.map +1 -1
  13. package/out/concepts/BindAttribute__.js +18 -0
  14. package/out/concepts/BindAttribute__.js.map +1 -1
  15. package/out/concepts/BindEvent__.js +21 -22
  16. package/out/concepts/BindEvent__.js.map +1 -1
  17. package/out/concepts/CallFunction__.js.map +1 -1
  18. package/out/concepts/CallQueryComponent__.js +16 -16
  19. package/out/concepts/CallQueryComponent__.js.map +1 -1
  20. package/out/concepts/ConfigPropertyValue__.js.map +1 -1
  21. package/out/concepts/DataSource__.d.ts +0 -1
  22. package/out/concepts/DataSource__.js +0 -3
  23. package/out/concepts/DataSource__.js.map +1 -1
  24. package/out/concepts/EntityProperty__.d.ts +0 -23
  25. package/out/concepts/EntityProperty__.js +0 -121
  26. package/out/concepts/EntityProperty__.js.map +1 -1
  27. package/out/concepts/InterfaceParam__.d.ts +0 -3
  28. package/out/concepts/InterfaceParam__.js +0 -64
  29. package/out/concepts/InterfaceParam__.js.map +1 -1
  30. package/out/concepts/Interface__.d.ts +0 -3
  31. package/out/concepts/Interface__.js +4 -8
  32. package/out/concepts/Interface__.js.map +1 -1
  33. package/out/concepts/Logic__.d.ts +1 -1
  34. package/out/concepts/Logic__.js +22 -42
  35. package/out/concepts/Logic__.js.map +1 -1
  36. package/out/concepts/MatchCase__.js +1 -1
  37. package/out/concepts/MatchCase__.js.map +1 -1
  38. package/out/concepts/MemberExpression__.js +1 -1
  39. package/out/concepts/MemberExpression__.js.map +1 -1
  40. package/out/concepts/Module__.d.ts +0 -12
  41. package/out/concepts/Module__.js +0 -7
  42. package/out/concepts/Module__.js.map +1 -1
  43. package/out/concepts/NewMap__.js +5 -1
  44. package/out/concepts/NewMap__.js.map +1 -1
  45. package/out/concepts/NumericLiteral__.js +9 -3
  46. package/out/concepts/NumericLiteral__.js.map +1 -1
  47. package/out/concepts/OqlQueryComponent__.d.ts +0 -1
  48. package/out/concepts/OqlQueryComponent__.js +0 -46
  49. package/out/concepts/OqlQueryComponent__.js.map +1 -1
  50. package/out/concepts/Param__.d.ts +0 -3
  51. package/out/concepts/Param__.js +1 -67
  52. package/out/concepts/Param__.js.map +1 -1
  53. package/out/concepts/Rect__.js.map +1 -1
  54. package/out/concepts/Return__.d.ts +0 -3
  55. package/out/concepts/Return__.js +1 -67
  56. package/out/concepts/Return__.js.map +1 -1
  57. package/out/concepts/SqlQueryComponent__.d.ts +0 -1
  58. package/out/concepts/SqlQueryComponent__.js +0 -46
  59. package/out/concepts/SqlQueryComponent__.js.map +1 -1
  60. package/out/concepts/StructureProperty__.d.ts +0 -3
  61. package/out/concepts/StructureProperty__.js +0 -65
  62. package/out/concepts/StructureProperty__.js.map +1 -1
  63. package/out/concepts/TypeAnnotation__.d.ts +1 -3
  64. package/out/concepts/TypeAnnotation__.js +12 -31
  65. package/out/concepts/TypeAnnotation__.js.map +1 -1
  66. package/out/concepts/Variable__.d.ts +0 -3
  67. package/out/concepts/Variable__.js +1 -67
  68. package/out/concepts/Variable__.js.map +1 -1
  69. package/out/concepts/ViewComponent__.d.ts +7 -0
  70. package/out/concepts/ViewComponent__.js +7 -0
  71. package/out/concepts/ViewComponent__.js.map +1 -1
  72. package/out/concepts/ViewElement__.js +1 -1
  73. package/out/concepts/ViewElement__.js.map +1 -1
  74. package/out/concepts/basics/stdlib/nasl.collection.js +2 -2
  75. package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -1
  76. package/out/concepts/basics/stdlib/nasl.core.js +3 -3
  77. package/out/concepts/basics/stdlib/nasl.core.js.map +1 -1
  78. package/out/concepts/basics/stdlib/nasl.interface.js +1 -1
  79. package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -1
  80. package/out/concepts/basics/stdlib/nasl.process.js +6 -6
  81. package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
  82. package/out/concepts/basics/stdlib/nasl.ui.js +43 -43
  83. package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
  84. package/out/concepts/basics/stdlib/nasl.util.js +19 -46
  85. package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
  86. package/out/concepts/basics/stdlib/nasl.validation.js +13 -13
  87. package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -1
  88. package/out/concepts/basics/types/coreTypeList.js +5 -1
  89. package/out/concepts/basics/types/coreTypeList.js.map +1 -1
  90. package/out/concepts/index__.d.ts +0 -1
  91. package/out/concepts/index__.js +0 -1
  92. package/out/concepts/index__.js.map +1 -1
  93. package/out/generator/genReleaseBody.js +0 -3
  94. package/out/generator/genReleaseBody.js.map +1 -1
  95. package/out/sentry/index.d.ts +28 -0
  96. package/out/sentry/index.js +104 -0
  97. package/out/sentry/index.js.map +1 -0
  98. package/out/server/entity2LogicNamespace.js +1 -1
  99. package/out/server/entity2LogicNamespace.js.map +1 -1
  100. package/out/server/extendBaseNode.js +65 -0
  101. package/out/server/extendBaseNode.js.map +1 -1
  102. package/out/server/formatTsUtils.js +5 -5
  103. package/out/server/formatTsUtils.js.map +1 -1
  104. package/out/server/getLogics.js +9 -7
  105. package/out/server/getLogics.js.map +1 -1
  106. package/out/server/naslServer.d.ts +2 -2
  107. package/out/server/naslServer.js +120 -51
  108. package/out/server/naslServer.js.map +1 -1
  109. package/out/server/translator.js +3 -2
  110. package/out/server/translator.js.map +1 -1
  111. package/out/service/creator/errHandles.js +5 -0
  112. package/out/service/creator/errHandles.js.map +1 -1
  113. package/out/service/storage/init.js +6 -8
  114. package/out/service/storage/init.js.map +1 -1
  115. package/out/templator/genQueryComponent.js +2 -2
  116. package/out/templator/genQueryComponent.js.map +1 -1
  117. package/out/templator/genSelectBlock.js +9 -1
  118. package/out/templator/genSelectBlock.js.map +1 -1
  119. package/out/templator/utils.d.ts +32 -0
  120. package/out/templator/utils.js +7 -7
  121. package/out/templator/utils.js.map +1 -1
  122. package/package.json +2 -2
  123. package/sandbox/stdlib/nasl.auth.ts +3 -1
  124. package/sandbox/stdlib/nasl.browser.ts +1 -1
  125. package/sandbox/stdlib/nasl.collection.ts +9 -9
  126. package/sandbox/stdlib/nasl.core.ts +100 -38
  127. package/sandbox/stdlib/nasl.interface.ts +1 -1
  128. package/sandbox/stdlib/nasl.langUtil.ts +4 -4
  129. package/sandbox/stdlib/nasl.oql.ts +156 -156
  130. package/sandbox/stdlib/nasl.process.ts +6 -6
  131. package/sandbox/stdlib/nasl.ui.ts +42 -42
  132. package/sandbox/stdlib/nasl.util.ts +45 -44
  133. package/sandbox/stdlib/nasl.validation.ts +8 -8
  134. package/src/automate/engine/operators.js +13 -5
  135. package/src/automate/upgrader/2.20.js +1 -0
  136. package/src/common/BaseNode.ts +32 -1
  137. package/src/concepts/Abort__.ts +4 -3
  138. package/src/concepts/App__.ts +2 -38
  139. package/src/concepts/BindAttribute__.ts +17 -1
  140. package/src/concepts/BindEvent__.ts +21 -21
  141. package/src/concepts/CallFunction__.ts +0 -1
  142. package/src/concepts/CallQueryComponent__.ts +16 -74
  143. package/src/concepts/ConfigPropertyValue__.ts +0 -4
  144. package/src/concepts/DataSource__.ts +0 -4
  145. package/src/concepts/EntityProperty__.ts +0 -129
  146. package/src/concepts/InterfaceParam__.ts +0 -55
  147. package/src/concepts/Interface__.ts +4 -4
  148. package/src/concepts/Logic__.ts +31 -47
  149. package/src/concepts/MatchCase__.ts +1 -1
  150. package/src/concepts/MemberExpression__.ts +1 -1
  151. package/src/concepts/Module__.ts +0 -6
  152. package/src/concepts/NewMap__.ts +5 -1
  153. package/src/concepts/NumericLiteral__.ts +9 -4
  154. package/src/concepts/OqlQueryComponent__.ts +0 -40
  155. package/src/concepts/Param__.ts +3 -59
  156. package/src/concepts/Rect__.ts +0 -8
  157. package/src/concepts/Return__.ts +1 -58
  158. package/src/concepts/SqlQueryComponent__.ts +0 -40
  159. package/src/concepts/StructureProperty__.ts +0 -57
  160. package/src/concepts/TypeAnnotation__.ts +12 -72
  161. package/src/concepts/Variable__.ts +1 -58
  162. package/src/concepts/ViewComponent__.ts +6 -0
  163. package/src/concepts/ViewElement__.ts +7 -7
  164. package/src/concepts/basics/stdlib/nasl.collection.ts +2 -2
  165. package/src/concepts/basics/stdlib/nasl.core.ts +3 -3
  166. package/src/concepts/basics/stdlib/nasl.interface.ts +1 -1
  167. package/src/concepts/basics/stdlib/nasl.process.ts +6 -6
  168. package/src/concepts/basics/stdlib/nasl.ui.ts +43 -43
  169. package/src/concepts/basics/stdlib/nasl.util.ts +19 -46
  170. package/src/concepts/basics/stdlib/nasl.validation.ts +13 -13
  171. package/src/concepts/basics/types/coreTypeList.ts +5 -1
  172. package/src/concepts/index__.ts +0 -1
  173. package/src/generator/genReleaseBody.ts +0 -2
  174. package/src/sentry/index.ts +134 -0
  175. package/src/server/entity2LogicNamespace.ts +1 -1
  176. package/src/server/extendBaseNode.ts +61 -1
  177. package/src/server/formatTsUtils.ts +5 -5
  178. package/src/server/getLogics.ts +8 -7
  179. package/src/server/naslServer.ts +120 -53
  180. package/src/server/translator.ts +3 -2
  181. package/src/service/creator/errHandles.js +6 -0
  182. package/src/service/storage/init.ts +6 -8
  183. package/src/templator/genQueryComponent.ts +5 -5
  184. package/src/templator/genSelectBlock.ts +9 -1
  185. package/src/templator/utils.ts +7 -7
  186. package/ts-worker/lib/Messager.js +0 -3
  187. package/ts-worker/src/index.js +0 -1
  188. package/src/concepts/DatabaseTypeAnnotation__.ts +0 -88
@@ -23,15 +23,15 @@ export const uiStructures = [
23
23
  }),
24
24
  new StructureProperty({
25
25
  name: 'index',
26
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
26
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
27
27
  }),
28
28
  new StructureProperty({
29
29
  name: 'rowIndex',
30
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
30
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
31
31
  }),
32
32
  new StructureProperty({
33
33
  name: 'columnIndex',
34
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
34
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
35
35
  }),
36
36
  new StructureProperty({
37
37
  name: 'value',
@@ -61,11 +61,11 @@ export const uiStructures = [
61
61
  properties: [
62
62
  new StructureProperty({
63
63
  name: 'page',
64
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
64
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
65
65
  }),
66
66
  new StructureProperty({
67
67
  name: 'size',
68
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
68
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
69
69
  }),
70
70
  new StructureProperty({
71
71
  name: 'sort',
@@ -96,72 +96,72 @@ export const uiStructures = [
96
96
  new StructureProperty({
97
97
  name: 'button',
98
98
  description: '如果鼠标按钮被按下(如果有的话),将会返回一个数值',
99
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
99
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
100
100
  }),
101
101
  new StructureProperty({
102
102
  name: 'clientX',
103
103
  description: '鼠标指针在点击元素(DOM)中的X坐标',
104
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
104
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
105
105
  }),
106
106
  new StructureProperty({
107
107
  name: 'clientY',
108
108
  description: '鼠标指针在点击元素(DOM)中的Y坐标',
109
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
109
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
110
110
  }),
111
111
  new StructureProperty({
112
112
  name: 'ctrlKey',
113
113
  description: '如果 control 键被按下,则返回 true',
114
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
114
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
115
115
  }),
116
116
  new StructureProperty({
117
117
  name: 'metaKey',
118
118
  description: '如果 meta 键被按下,则返回 true',
119
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
119
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
120
120
  }),
121
121
  new StructureProperty({
122
122
  name: 'movementX',
123
123
  description: '鼠标指针相对于最后mousemove事件位置的X坐标',
124
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
124
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
125
125
  }),
126
126
  new StructureProperty({
127
127
  name: 'movementY',
128
128
  description: '鼠标指针相对于最后mousemove事件位置的Y坐标',
129
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
129
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
130
130
  }),
131
131
  new StructureProperty({
132
132
  name: 'offsetX',
133
133
  description: '鼠标指针相对于目标节点内边位置的X坐标',
134
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
134
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
135
135
  }),
136
136
  new StructureProperty({
137
137
  name: 'offsetY',
138
138
  description: '鼠标指针相对于目标节点内边位置的Y坐标',
139
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
139
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
140
140
  }),
141
141
  new StructureProperty({
142
142
  name: 'pageX',
143
143
  description: '相对于整个文档的水平坐标',
144
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
144
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
145
145
  }),
146
146
  new StructureProperty({
147
147
  name: 'pageY',
148
148
  description: '相对于整个文档的垂直坐标',
149
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
149
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
150
150
  }),
151
151
  new StructureProperty({
152
152
  name: 'screenX',
153
153
  description: '相对于全局(屏幕)的水平坐标',
154
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
154
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
155
155
  }),
156
156
  new StructureProperty({
157
157
  name: 'screenY',
158
158
  description: '相对于全局(屏幕)的垂直坐标',
159
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
159
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
160
160
  }),
161
161
  new StructureProperty({
162
162
  name: 'which',
163
163
  description: '对应(键盘)按下的数字类型的 keyCode',
164
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
164
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
165
165
  }),
166
166
  ],
167
167
  }),
@@ -181,27 +181,27 @@ export const uiStructures = [
181
181
  new StructureProperty({
182
182
  name: 'layerX',
183
183
  description: '相对于当前层的水平坐标',
184
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
184
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
185
185
  }),
186
186
  new StructureProperty({
187
187
  name: 'layerY',
188
188
  description: '相对于当前层的垂直坐标',
189
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
189
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
190
190
  }),
191
191
  new StructureProperty({
192
192
  name: 'pageX',
193
193
  description: '相对于整个文档的水平坐标',
194
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
194
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
195
195
  }),
196
196
  new StructureProperty({
197
197
  name: 'pageY',
198
198
  description: '相对于整个文档的垂直坐标',
199
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
199
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
200
200
  }),
201
201
  new StructureProperty({
202
202
  name: 'which',
203
203
  description: '对应(键盘)按下的数字类型的 keyCode',
204
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
204
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
205
205
  }),
206
206
  ],
207
207
  }),
@@ -353,7 +353,7 @@ export const uiStructures = [
353
353
  new StructureProperty({
354
354
  name: 'level',
355
355
  description: '选择的层级',
356
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
356
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
357
357
  }),
358
358
  new StructureProperty({
359
359
  name: 'value',
@@ -422,17 +422,17 @@ export const uiStructures = [
422
422
  new StructureProperty({
423
423
  name: 'value',
424
424
  description: '滑块的值',
425
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
425
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
426
426
  }),
427
427
  new StructureProperty({
428
428
  name: 'oldValue',
429
429
  description: '旧的值',
430
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
430
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
431
431
  }),
432
432
  new StructureProperty({
433
433
  name: 'percent',
434
434
  description: '滑块位置所在的百分比',
435
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
435
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
436
436
  }),
437
437
  ],
438
438
  }),
@@ -462,7 +462,7 @@ export const uiStructures = [
462
462
  new StructureProperty({
463
463
  name: 'index',
464
464
  description: '添加的索引',
465
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
465
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
466
466
  }),
467
467
  new StructureProperty({
468
468
  name: 'data',
@@ -522,42 +522,42 @@ export const uiStructures = [
522
522
  new StructureProperty({
523
523
  name: 'page',
524
524
  description: '选择的页码',
525
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
525
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
526
526
  }),
527
527
  new StructureProperty({
528
528
  name: 'oldPage',
529
529
  description: '旧的页码',
530
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
530
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
531
531
  }),
532
532
  new StructureProperty({
533
533
  name: 'pageSize',
534
534
  description: '当前每页条数',
535
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
535
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
536
536
  }),
537
537
  new StructureProperty({
538
538
  name: 'oldPageSize',
539
539
  description: '旧的每页条数',
540
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
540
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
541
541
  }),
542
542
  new StructureProperty({
543
543
  name: 'size',
544
544
  description: '当前每页条数',
545
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
545
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
546
546
  }),
547
547
  new StructureProperty({
548
548
  name: 'oldSize',
549
549
  description: '旧的每页条数',
550
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
550
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
551
551
  }),
552
552
  new StructureProperty({
553
553
  name: 'number',
554
554
  description: '当前页数',
555
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
555
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
556
556
  }),
557
557
  new StructureProperty({
558
558
  name: 'oldNumber',
559
559
  description: '旧的页数',
560
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
560
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
561
561
  }),
562
562
  ],
563
563
  }),
@@ -577,7 +577,7 @@ export const uiStructures = [
577
577
  new StructureProperty({
578
578
  name: 'duration',
579
579
  description: '提示停留的时间',
580
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
580
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
581
581
  }),
582
582
  ],
583
583
  }),
@@ -746,12 +746,12 @@ export const uiStructures = [
746
746
  new StructureProperty({
747
747
  name: 'count',
748
748
  description: '当前数量',
749
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
749
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
750
750
  }),
751
751
  new StructureProperty({
752
752
  name: 'limit',
753
753
  description: '数量配额',
754
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
754
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
755
755
  }),
756
756
  ],
757
757
  }),
@@ -826,7 +826,7 @@ export const uiStructures = [
826
826
  new StructureProperty({
827
827
  name: 'size',
828
828
  description: '文件大小',
829
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
829
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
830
830
  }),
831
831
  new StructureProperty({
832
832
  name: 'type',
@@ -853,11 +853,11 @@ export const uiStructures = [
853
853
  }),
854
854
  new StructureProperty({
855
855
  name: 'level',
856
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
856
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
857
857
  }),
858
858
  new StructureProperty({
859
859
  name: 'index',
860
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
860
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
861
861
  }),
862
862
  ],
863
863
  }),
@@ -384,7 +384,7 @@ export default new Namespace({
384
384
  ],
385
385
  returns: [
386
386
  new Return({
387
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
387
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
388
388
  }),
389
389
  ],
390
390
  }),
@@ -450,7 +450,7 @@ export default new Namespace({
450
450
  new Param({
451
451
  name: 'index',
452
452
  description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
453
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
453
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
454
454
  }),
455
455
  ],
456
456
  returns: [
@@ -473,7 +473,7 @@ export default new Namespace({
473
473
  new Param({
474
474
  name: 'index',
475
475
  description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
476
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
476
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
477
477
  }),
478
478
  new Param({
479
479
  name: 'item',
@@ -549,7 +549,7 @@ export default new Namespace({
549
549
  ],
550
550
  returns: [
551
551
  new Return({
552
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
552
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
553
553
  }),
554
554
  ],
555
555
  }),
@@ -567,7 +567,7 @@ export default new Namespace({
567
567
  new Param({
568
568
  name: 'index',
569
569
  description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
570
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
570
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
571
571
  }),
572
572
  new Param({
573
573
  name: 'item',
@@ -608,7 +608,7 @@ export default new Namespace({
608
608
  new Param({
609
609
  name: 'index',
610
610
  description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
611
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
611
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
612
612
  }),
613
613
  ],
614
614
  returns: [
@@ -1125,7 +1125,7 @@ export default new Namespace({
1125
1125
  }),
1126
1126
  new Param({
1127
1127
  name: 'digits',
1128
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1128
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1129
1129
  description: '保留小数位数',
1130
1130
  defaultValue: '2',
1131
1131
  defaultExpression: new NumericLiteral({ value: '2' }),
@@ -1160,7 +1160,7 @@ export default new Namespace({
1160
1160
  new Param({
1161
1161
  name: 'amount',
1162
1162
  description: '增加的天数',
1163
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1163
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1164
1164
  }),
1165
1165
  ],
1166
1166
  returns: [
@@ -1181,7 +1181,7 @@ export default new Namespace({
1181
1181
  new Param({
1182
1182
  name: 'amount',
1183
1183
  description: '增加的月数',
1184
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1184
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1185
1185
  }),
1186
1186
  ],
1187
1187
  returns: [
@@ -1226,7 +1226,7 @@ export default new Namespace({
1226
1226
  ],
1227
1227
  returns: [
1228
1228
  new Return({
1229
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1229
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1230
1230
  }),
1231
1231
  ],
1232
1232
  }),
@@ -1268,16 +1268,16 @@ export default new Namespace({
1268
1268
  params: [
1269
1269
  new Param({
1270
1270
  name: 'start',
1271
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1271
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1272
1272
  }),
1273
1273
  new Param({
1274
1274
  name: 'end',
1275
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1275
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1276
1276
  }),
1277
1277
  ],
1278
1278
  returns: [
1279
1279
  new Return({
1280
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1280
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1281
1281
  }),
1282
1282
  ],
1283
1283
  }),
@@ -1295,7 +1295,7 @@ export default new Namespace({
1295
1295
  new Param({
1296
1296
  name: 'total',
1297
1297
  description: '指定数据条数',
1298
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1298
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1299
1299
  }),
1300
1300
  ],
1301
1301
  returns: [
@@ -1405,7 +1405,7 @@ export default new Namespace({
1405
1405
  ],
1406
1406
  returns: [
1407
1407
  new Return({
1408
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1408
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1409
1409
  }),
1410
1410
  ],
1411
1411
  }),
@@ -1546,12 +1546,12 @@ export default new Namespace({
1546
1546
  new Param({
1547
1547
  name: 'start',
1548
1548
  description: '切片起始的索引,integer类型,项数索引从0开始',
1549
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1549
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1550
1550
  }),
1551
1551
  new Param({
1552
1552
  name: 'end',
1553
1553
  description: '切片结束的索引,integer类型,用数字表示第几项,项数索引从0开始',
1554
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1554
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1555
1555
  }),
1556
1556
  ],
1557
1557
  returns: [
@@ -1576,12 +1576,12 @@ export default new Namespace({
1576
1576
  new Param({
1577
1577
  name: 'page',
1578
1578
  description: '页数,integer类型,从1开始',
1579
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1579
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1580
1580
  }),
1581
1581
  new Param({
1582
1582
  name: 'size',
1583
1583
  description: '每页的大小,integer类型',
1584
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1584
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
1585
1585
  }),
1586
1586
  ],
1587
1587
  returns: [
@@ -1608,32 +1608,5 @@ export default new Namespace({
1608
1608
  }),
1609
1609
  ],
1610
1610
  }),
1611
- new Function({
1612
- name: 'Round',
1613
- description: '对指定的小数按指定的舍入模式进行舍入,返回舍入后的整数',
1614
- params: [
1615
- new Param({
1616
- name: 'value',
1617
- description: '被取整小数',
1618
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
1619
- }),
1620
- new Param({
1621
- name: 'mode',
1622
- description: '取整模式',
1623
- typeAnnotation: TypeAnnotation.createPrimitive('String'),
1624
- defaultExpression: new StringLiteral({ value: 'HalfUp' }),
1625
- options: [
1626
- { text: 'TowardsZero', value: 'TowardsZero' },
1627
- { text: 'TowardsInfinity', value: 'TowardsInfinity' },
1628
- { text: 'HalfUp', value: 'HalfUp' },
1629
- ],
1630
- }),
1631
- ],
1632
- returns: [
1633
- new Return({
1634
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
1635
- }),
1636
- ],
1637
- }),
1638
1611
  ],
1639
1612
  });
@@ -28,7 +28,7 @@ export default new Namespace({
28
28
  params: [
29
29
  new Param({
30
30
  name: 'min',
31
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
31
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
32
32
  required: true,
33
33
  }),
34
34
  ],
@@ -43,7 +43,7 @@ export default new Namespace({
43
43
  params: [
44
44
  new Param({
45
45
  name: 'max',
46
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
46
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
47
47
  required: true,
48
48
  }),
49
49
  ],
@@ -58,12 +58,12 @@ export default new Namespace({
58
58
  params: [
59
59
  new Param({
60
60
  name: 'min',
61
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
61
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
62
62
  required: true,
63
63
  }),
64
64
  new Param({
65
65
  name: 'max',
66
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
66
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
67
67
  required: true,
68
68
  }),
69
69
  ],
@@ -78,7 +78,7 @@ export default new Namespace({
78
78
  params: [
79
79
  new Param({
80
80
  name: 'min',
81
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
81
+ typeAnnotation: TypeAnnotation.createPrimitive('Double'),
82
82
  required: true,
83
83
  }),
84
84
  ],
@@ -93,7 +93,7 @@ export default new Namespace({
93
93
  params: [
94
94
  new Param({
95
95
  name: 'max',
96
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
96
+ typeAnnotation: TypeAnnotation.createPrimitive('Double'),
97
97
  required: true,
98
98
  }),
99
99
  ],
@@ -108,12 +108,12 @@ export default new Namespace({
108
108
  params: [
109
109
  new Param({
110
110
  name: 'min',
111
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
111
+ typeAnnotation: TypeAnnotation.createPrimitive('Double'),
112
112
  required: true,
113
113
  }),
114
114
  new Param({
115
115
  name: 'max',
116
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
116
+ typeAnnotation: TypeAnnotation.createPrimitive('Double'),
117
117
  required: true,
118
118
  }),
119
119
  ],
@@ -384,7 +384,7 @@ export default new Namespace({
384
384
  params: [
385
385
  new Param({
386
386
  name: 'version',
387
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
387
+ typeAnnotation: TypeAnnotation.createPrimitive('Double'),
388
388
  required: true,
389
389
  }),
390
390
  ],
@@ -399,7 +399,7 @@ export default new Namespace({
399
399
  params: [
400
400
  new Param({
401
401
  name: 'version',
402
- typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
402
+ typeAnnotation: TypeAnnotation.createPrimitive('Double'),
403
403
  required: true,
404
404
  }),
405
405
  ],
@@ -415,12 +415,12 @@ export default new Namespace({
415
415
  params: [
416
416
  new Param({
417
417
  name: 'min',
418
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
418
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
419
419
  required: true,
420
420
  }),
421
421
  new Param({
422
422
  name: 'max',
423
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
423
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
424
424
  required: true,
425
425
  }),
426
426
  ],
@@ -436,7 +436,7 @@ export default new Namespace({
436
436
  params: [
437
437
  new Param({
438
438
  name: 'divisor',
439
- typeAnnotation: TypeAnnotation.createPrimitive('Long'),
439
+ typeAnnotation: TypeAnnotation.createPrimitive('Integer'),
440
440
  required: true,
441
441
  }),
442
442
  ],
@@ -2,11 +2,15 @@ import { TypeAnnotation, PRIMITIVE_TYPE } from '../../TypeAnnotation__';
2
2
 
3
3
  export const primitiveTypeList: Array<TypeAnnotation> = [
4
4
  TypeAnnotation.createPrimitive('Boolean'),
5
+ TypeAnnotation.createPrimitive('Integer'),
5
6
  TypeAnnotation.createPrimitive('Long'),
7
+ TypeAnnotation.createPrimitive('Double'),
6
8
  TypeAnnotation.createPrimitive('Decimal'),
7
9
  TypeAnnotation.createPrimitive('String'),
8
- // TypeAnnotation.createPrimitive('Binary'),
10
+ TypeAnnotation.createPrimitive('Text'),
11
+ TypeAnnotation.createPrimitive('Binary'),
9
12
  TypeAnnotation.createPrimitive('Date'),
10
13
  TypeAnnotation.createPrimitive('Time'),
11
14
  TypeAnnotation.createPrimitive('DateTime'),
15
+ TypeAnnotation.createPrimitive('Email'),
12
16
  ];
@@ -3,7 +3,6 @@ export * from './Module__';
3
3
  export * from './Namespace__';
4
4
  export * from './Frontend__';
5
5
  export * from './TypeAnnotation__';
6
- export * from './DatabaseTypeAnnotation__';
7
6
  export * from './TypeParam__';
8
7
  export * from './Structure__';
9
8
  export * from './StructureProperty__';
@@ -282,8 +282,6 @@ function getAuthApiPathList(app: App, frontends: Array<Frontend>) {
282
282
  logicItems = state.arguments?.map((item) => item.expression);
283
283
  } else if (state instanceof CallInterface) {
284
284
  logicItems = state.arguments?.map((item) => item.expression);
285
- } else if (state instanceof ExternalDestination) {
286
- logicItems = [state.anchor, state.link];
287
285
  } else if (state instanceof MemberExpression) {
288
286
  logicItems = [state.object, state.property];
289
287
  } else if (state instanceof StringInterpolation) {