@lcap/nasl 3.1.0-beta.2 → 3.1.0-beta.4
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/out/breakpoint/shared/constants.js +2 -0
- package/out/breakpoint/shared/constants.js.map +1 -1
- package/out/common/Command.d.ts +1 -1
- package/out/common/Command.js +1 -1
- package/out/common/Command.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +8 -9
- package/out/concepts/AnonymousFunction__.js +15 -14
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/Argument__.js +7 -2
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +0 -2
- package/out/concepts/AuthInterface__.js +0 -58
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/BatchAssignment__.js +3 -2
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BindAttribute__.js +10 -1
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +0 -1
- package/out/concepts/CallAuthInterface__.js +5 -8
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallFunction__.js +4 -3
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +3 -1
- package/out/concepts/CallInterface__.js +21 -1
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +2 -0
- package/out/concepts/CallLogic__.js +74 -14
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +29 -29
- package/out/concepts/FrontendLibrary__.js +2 -2
- package/out/concepts/Function__.js +3 -3
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +6 -6
- package/out/concepts/LogicItem__.js +6 -6
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.js +19 -4
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/Namespace__.d.ts +29 -29
- package/out/concepts/Namespace__.js +2 -2
- package/out/concepts/NewComposite__.d.ts +1 -0
- package/out/concepts/NewComposite__.js +67 -3
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +1 -0
- package/out/concepts/NewList__.js +17 -1
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +2 -0
- package/out/concepts/QueryJoinExpression__.js +11 -0
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +1 -0
- package/out/concepts/TypeAnnotation__.js +37 -4
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +33 -33
- package/out/concepts/ViewComponent__.js +7 -7
- package/out/concepts/ViewElement__.d.ts +4 -1
- package/out/concepts/ViewElement__.js +51 -3
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.js +4 -4
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.http.js +28 -26
- package/out/concepts/basics/stdlib/nasl.http.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.js +17 -9
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/types/index.js +1 -1
- package/out/concepts/basics/types/index.js.map +1 -1
- package/out/concepts/types__.d.ts +1 -2
- package/out/generator/genBundleFiles.js +32 -27
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +8 -0
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/genReleaseBody.js +6 -6
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/sentry/index.js +8 -1
- package/out/sentry/index.js.map +1 -1
- package/out/server/getInterfaces.js +1 -1
- package/out/server/getInterfaces.js.map +1 -1
- package/out/server/naslServer.d.ts +10 -2
- package/out/server/naslServer.js +55 -12
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +0 -12
- package/out/server/translator.js.map +1 -1
- package/out/service/storage/init.js +102 -65
- package/out/service/storage/init.js.map +1 -1
- package/out/templator/genCreateBlock.js +2 -2
- package/out/templator/genCreateBlock.js.map +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js +1 -1
- package/out/templator/genCurdEditMultipleKeyBlock.js.map +1 -1
- package/out/templator/genCurdMultipleKeyBlock.js +2 -2
- package/out/templator/genCurdMultipleKeyBlock.js.map +1 -1
- package/out/templator/genEditTableBlock.d.ts +1 -1
- package/out/templator/genEditTableBlock.js +6 -2
- package/out/templator/genEditTableBlock.js.map +1 -1
- package/out/templator/genEnumSelectBlock.js +2 -2
- package/out/templator/genEnumSelectBlock.js.map +1 -1
- package/out/templator/genGridViewBlock.d.ts +2 -2
- package/out/templator/genGridViewBlock.js +14 -8
- package/out/templator/genGridViewBlock.js.map +1 -1
- package/out/templator/genListViewBlock.d.ts +2 -2
- package/out/templator/genListViewBlock.js +9 -5
- package/out/templator/genListViewBlock.js.map +1 -1
- package/out/templator/genSelectBlock.d.ts +2 -2
- package/out/templator/genSelectBlock.js +18 -11
- package/out/templator/genSelectBlock.js.map +1 -1
- package/out/templator/genTableBlock.d.ts +1 -1
- package/out/templator/genTableBlock.js +7 -3
- package/out/templator/genTableBlock.js.map +1 -1
- package/out/templator/genUpdateBlock.js +2 -2
- package/out/templator/genUpdateBlock.js.map +1 -1
- package/package.json +13 -13
- package/sandbox/stdlib/nasl.util.ts +2 -2
- package/src/automate/engine/utils.js +3 -0
- package/src/breakpoint/shared/constants.ts +2 -0
- package/src/common/BaseNode.ts +10 -5
- package/src/common/Command.ts +1 -1
- package/src/concepts/AnonymousFunction__.ts +2 -1
- package/src/concepts/Argument__.ts +5 -5
- package/src/concepts/Assignment__.ts +2 -1
- package/src/concepts/AuthInterface__.ts +3 -53
- package/src/concepts/BindEvent__.ts +5 -6
- package/src/concepts/CallAuthInterface__.ts +5 -8
- package/src/concepts/CallFunction__.ts +2 -1
- package/src/concepts/CallInterface__.ts +84 -63
- package/src/concepts/CallLogic__.ts +89 -67
- package/src/concepts/CompletionProperty__.ts +6 -1
- package/src/concepts/ConfigPropertyValue__.ts +2 -2
- package/src/concepts/Function__.ts +2 -2
- package/src/concepts/QueryJoinExpression__.ts +13 -0
- package/src/concepts/TypeAnnotation__.ts +31 -0
- package/src/concepts/ViewElement__.ts +80 -33
- package/src/concepts/basics/stdlib/nasl.http.ts +26 -24
- package/src/concepts/types__.ts +1 -3
- package/src/generator/genBundleFiles.ts +32 -27
- package/src/generator/genReleaseBody.ts +10 -7
- package/src/generator/permission.ts +6 -6
- package/src/server/getInterfaces.ts +1 -1
- package/src/server/naslServer.ts +58 -8
- package/src/server/translator.ts +0 -12
- package/src/service/storage/init.ts +106 -67
- package/src/templator/genCreateBlock.ts +2 -2
- package/src/templator/genEnumSelectBlock.ts +2 -2
- package/src/templator/genSelectBlock.ts +4 -3
- package/src/templator/genUpdateBlock.ts +2 -2
- package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +71 -0
- package/test/concepts/call-interface/__snapshots__/toJS.spec.ts.snap +140 -0
- package/test/concepts/call-interface/constant.ts +5 -0
- package/test/concepts/call-interface/fixtures/only-interface.json +158 -0
- package/test/concepts/call-interface/fixtures/with-body-complex-argument.json +455 -0
- package/test/concepts/call-interface/fixtures/with-body-no-argument.json +187 -0
- package/test/concepts/call-interface/fixtures/with-body-simple-argument.json +225 -0
- package/test/concepts/call-interface/fixtures/with-headers-no-argument.json +213 -0
- package/test/concepts/call-interface/fixtures/with-headers.json +192 -0
- package/test/concepts/call-interface/fixtures/with-query-no-argument.json +213 -0
- package/test/concepts/call-interface/fixtures/with-query.json +192 -0
- package/test/concepts/call-interface/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/call-interface/toJS.spec.ts +14 -0
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +74 -0
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +141 -0
- package/test/concepts/call-logic/constant.ts +5 -0
- package/test/concepts/call-logic/fixtures/entries-get-with-arguments.json +223 -0
- package/test/concepts/call-logic/fixtures/entries-update-with-arguments.json +359 -0
- package/test/concepts/call-logic/fixtures/global-logic-argument-no-expression.json +209 -0
- package/test/concepts/call-logic/fixtures/global-logic-argument-some-expression.json +311 -0
- package/test/concepts/call-logic/fixtures/only-call-logic.json +10 -0
- package/test/concepts/call-logic/fixtures/view-buildin-logic-with-argument.json +128 -0
- package/test/concepts/call-logic/fixtures/view-component-logic-no-argument.json +126 -0
- package/test/concepts/call-logic/fixtures/view-component-with-validation.json +244 -0
- package/test/concepts/call-logic/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/call-logic/toJS.spec.ts +14 -0
- package/test/concepts/utils.ts +76 -3
- package/test/concepts/validation-rule/__snapshots__/toEmbeddedTS.spec.ts.snap +3 -3
- package/test/concepts/validation-rule/__snapshots__/toJS.spec.ts.snap +16 -0
- package/test/concepts/validation-rule/constant.ts +5 -0
- package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +10 -17
- package/test/concepts/validation-rule/toJS.spec.ts +14 -0
- package/test/concepts/view-element/__snapshots__/toEmbeddedTS.spec.ts.snap +89 -0
- package/test/concepts/view-element/__snapshots__/toVue.spec.ts.snap +44 -0
- package/test/concepts/view-element/constant.ts +5 -0
- package/test/concepts/view-element/fixtures/default-not-found.json +322 -0
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +14 -0
- package/test/concepts/view-element/toVue.spec.ts +14 -0
- package/test/setup.ts +6 -0
- package/ts-worker/lib/tsserver.js +5 -6
- package/ts-worker/package-lock.json +2 -1
- package/bin/naslc +0 -3
- package/out/src/automate/engine/index.d.ts +0 -4
- package/out/src/automate/engine/index.js +0 -443
- package/out/src/automate/engine/index.js.map +0 -1
- package/out/src/automate/engine/operators.d.ts +0 -24
- package/out/src/automate/engine/operators.js +0 -252
- package/out/src/automate/engine/operators.js.map +0 -1
- package/out/src/automate/engine/uniqueName.d.ts +0 -12
- package/out/src/automate/engine/uniqueName.js +0 -112
- package/out/src/automate/engine/uniqueName.js.map +0 -1
- package/out/src/automate/engine/utils.d.ts +0 -25
- package/out/src/automate/engine/utils.js +0 -440
- package/out/src/automate/engine/utils.js.map +0 -1
- package/out/src/automate/engine/viewCache.d.ts +0 -19
- package/out/src/automate/engine/viewCache.js +0 -45
- package/out/src/automate/engine/viewCache.js.map +0 -1
- package/out/src/automate/template/myProcess.d.ts +0 -10
- package/out/src/automate/template/myProcess.js +0 -11498
- package/out/src/automate/template/myProcess.js.map +0 -1
- package/out/src/automate/upgrader/2.12.d.ts +0 -7
- package/out/src/automate/upgrader/2.12.js +0 -63
- package/out/src/automate/upgrader/2.12.js.map +0 -1
- package/out/src/automate/upgrader/2.14-components.d.ts +0 -1115
- package/out/src/automate/upgrader/2.14-components.js +0 -1087
- package/out/src/automate/upgrader/2.14-components.js.map +0 -1
- package/out/src/automate/upgrader/2.14.d.ts +0 -10
- package/out/src/automate/upgrader/2.14.js +0 -236
- package/out/src/automate/upgrader/2.14.js.map +0 -1
- package/out/src/automate/upgrader/2.14.old.d.ts +0 -1
- package/out/src/automate/upgrader/2.14.old.js +0 -125
- package/out/src/automate/upgrader/2.14.old.js.map +0 -1
- package/out/src/automate/upgrader/2.16.d.ts +0 -10
- package/out/src/automate/upgrader/2.16.js +0 -75
- package/out/src/automate/upgrader/2.16.js.map +0 -1
- package/out/src/automate/upgrader/2.17.d.ts +0 -21
- package/out/src/automate/upgrader/2.17.js +0 -557
- package/out/src/automate/upgrader/2.17.js.map +0 -1
- package/out/src/automate/upgrader/2.18.d.ts +0 -10
- package/out/src/automate/upgrader/2.18.js +0 -107
- package/out/src/automate/upgrader/2.18.js.map +0 -1
- package/out/src/automate/upgrader/2.20.d.ts +0 -17
- package/out/src/automate/upgrader/2.20.js +0 -68
- package/out/src/automate/upgrader/2.20.js.map +0 -1
- package/out/src/bak/translator.d.ts +0 -1
- package/out/src/bak/translator.js +0 -119
- package/out/src/bak/translator.js.map +0 -1
- package/out/src/breakpoint/generator/AfterStartNode.d.ts +0 -7
- package/out/src/breakpoint/generator/AfterStartNode.js +0 -27
- package/out/src/breakpoint/generator/AfterStartNode.js.map +0 -1
- package/out/src/breakpoint/generator/BeforeEndNode.d.ts +0 -7
- package/out/src/breakpoint/generator/BeforeEndNode.js +0 -27
- package/out/src/breakpoint/generator/BeforeEndNode.js.map +0 -1
- package/out/src/breakpoint/generator/BreakpointNode.d.ts +0 -14
- package/out/src/breakpoint/generator/BreakpointNode.js +0 -200
- package/out/src/breakpoint/generator/BreakpointNode.js.map +0 -1
- package/out/src/breakpoint/generator/index.d.ts +0 -4
- package/out/src/breakpoint/generator/index.js +0 -98
- package/out/src/breakpoint/generator/index.js.map +0 -1
- package/out/src/breakpoint/index.d.ts +0 -3
- package/out/src/breakpoint/index.js +0 -20
- package/out/src/breakpoint/index.js.map +0 -1
- package/out/src/breakpoint/shared/constants.d.ts +0 -31
- package/out/src/breakpoint/shared/constants.js +0 -91
- package/out/src/breakpoint/shared/constants.js.map +0 -1
- package/out/src/breakpoint/shared/index.d.ts +0 -3
- package/out/src/breakpoint/shared/index.js +0 -33
- package/out/src/breakpoint/shared/index.js.map +0 -1
- package/out/src/breakpoint/shared/operations.d.ts +0 -10
- package/out/src/breakpoint/shared/operations.js +0 -25
- package/out/src/breakpoint/shared/operations.js.map +0 -1
- package/out/src/breakpoint/shared/socket.d.ts +0 -47
- package/out/src/breakpoint/shared/socket.js +0 -210
- package/out/src/breakpoint/shared/socket.js.map +0 -1
- package/out/src/breakpoint/shared/utils.d.ts +0 -23
- package/out/src/breakpoint/shared/utils.js +0 -165
- package/out/src/breakpoint/shared/utils.js.map +0 -1
- package/out/src/breakpoint/store/core.d.ts +0 -32
- package/out/src/breakpoint/store/core.js +0 -388
- package/out/src/breakpoint/store/core.js.map +0 -1
- package/out/src/breakpoint/store/dock.d.ts +0 -1
- package/out/src/breakpoint/store/dock.js +0 -127
- package/out/src/breakpoint/store/dock.js.map +0 -1
- package/out/src/breakpoint/store/index.d.ts +0 -2
- package/out/src/breakpoint/store/index.js +0 -19
- package/out/src/breakpoint/store/index.js.map +0 -1
- package/out/src/common/BaseNode.d.ts +0 -317
- package/out/src/common/BaseNode.js +0 -1156
- package/out/src/common/BaseNode.js.map +0 -1
- package/out/src/common/Command.d.ts +0 -9
- package/out/src/common/Command.js +0 -36
- package/out/src/common/Command.js.map +0 -1
- package/out/src/common/ComponentAPI.d.ts +0 -110
- package/out/src/common/ComponentAPI.js +0 -3
- package/out/src/common/ComponentAPI.js.map +0 -1
- package/out/src/common/EventEmitter.d.ts +0 -59
- package/out/src/common/EventEmitter.js +0 -71
- package/out/src/common/EventEmitter.js.map +0 -1
- package/out/src/common/Messager.d.ts +0 -91
- package/out/src/common/Messager.js +0 -208
- package/out/src/common/Messager.js.map +0 -1
- package/out/src/common/asyncFuncMap.d.ts +0 -2
- package/out/src/common/asyncFuncMap.js +0 -16
- package/out/src/common/asyncFuncMap.js.map +0 -1
- package/out/src/common/classMap.d.ts +0 -4
- package/out/src/common/classMap.js +0 -5
- package/out/src/common/classMap.js.map +0 -1
- package/out/src/common/index.d.ts +0 -4
- package/out/src/common/index.js +0 -21
- package/out/src/common/index.js.map +0 -1
- package/out/src/concepts/Abort__.d.ts +0 -25
- package/out/src/concepts/Abort__.js +0 -80
- package/out/src/concepts/Abort__.js.map +0 -1
- package/out/src/concepts/Anchor__.d.ts +0 -44
- package/out/src/concepts/Anchor__.js +0 -182
- package/out/src/concepts/Anchor__.js.map +0 -1
- package/out/src/concepts/AnonymousFunction__.d.ts +0 -172
- package/out/src/concepts/AnonymousFunction__.js +0 -490
- package/out/src/concepts/AnonymousFunction__.js.map +0 -1
- package/out/src/concepts/App__.d.ts +0 -1510
- package/out/src/concepts/App__.js +0 -2268
- package/out/src/concepts/App__.js.map +0 -1
- package/out/src/concepts/Argument__.d.ts +0 -65
- package/out/src/concepts/Argument__.js +0 -265
- package/out/src/concepts/Argument__.js.map +0 -1
- package/out/src/concepts/Assignee__.d.ts +0 -288
- package/out/src/concepts/Assignee__.js +0 -427
- package/out/src/concepts/Assignee__.js.map +0 -1
- package/out/src/concepts/AssignmentLine__.d.ts +0 -41
- package/out/src/concepts/AssignmentLine__.js +0 -112
- package/out/src/concepts/AssignmentLine__.js.map +0 -1
- package/out/src/concepts/Assignment__.d.ts +0 -73
- package/out/src/concepts/Assignment__.js +0 -286
- package/out/src/concepts/Assignment__.js.map +0 -1
- package/out/src/concepts/Attribute__.d.ts +0 -97
- package/out/src/concepts/Attribute__.js +0 -197
- package/out/src/concepts/Attribute__.js.map +0 -1
- package/out/src/concepts/AuthInterface__.d.ts +0 -37
- package/out/src/concepts/AuthInterface__.js +0 -141
- package/out/src/concepts/AuthInterface__.js.map +0 -1
- package/out/src/concepts/AuthLogicForCallInterface__.d.ts +0 -138
- package/out/src/concepts/AuthLogicForCallInterface__.js +0 -493
- package/out/src/concepts/AuthLogicForCallInterface__.js.map +0 -1
- package/out/src/concepts/AuthLogic__.d.ts +0 -66
- package/out/src/concepts/AuthLogic__.js +0 -206
- package/out/src/concepts/AuthLogic__.js.map +0 -1
- package/out/src/concepts/BackendVariable__.d.ts +0 -137
- package/out/src/concepts/BackendVariable__.js +0 -422
- package/out/src/concepts/BackendVariable__.js.map +0 -1
- package/out/src/concepts/Backend__.d.ts +0 -134
- package/out/src/concepts/Backend__.js +0 -274
- package/out/src/concepts/Backend__.js.map +0 -1
- package/out/src/concepts/BatchAssignment__.d.ts +0 -251
- package/out/src/concepts/BatchAssignment__.js +0 -806
- package/out/src/concepts/BatchAssignment__.js.map +0 -1
- package/out/src/concepts/BinaryExpression__.d.ts +0 -70
- package/out/src/concepts/BinaryExpression__.js +0 -345
- package/out/src/concepts/BinaryExpression__.js.map +0 -1
- package/out/src/concepts/BindAttribute__.d.ts +0 -318
- package/out/src/concepts/BindAttribute__.js +0 -875
- package/out/src/concepts/BindAttribute__.js.map +0 -1
- package/out/src/concepts/BindDirective__.d.ts +0 -161
- package/out/src/concepts/BindDirective__.js +0 -532
- package/out/src/concepts/BindDirective__.js.map +0 -1
- package/out/src/concepts/BindEvent__.d.ts +0 -251
- package/out/src/concepts/BindEvent__.js +0 -788
- package/out/src/concepts/BindEvent__.js.map +0 -1
- package/out/src/concepts/BindStyle__.d.ts +0 -139
- package/out/src/concepts/BindStyle__.js +0 -432
- package/out/src/concepts/BindStyle__.js.map +0 -1
- package/out/src/concepts/BooleanLiteral__.d.ts +0 -34
- package/out/src/concepts/BooleanLiteral__.js +0 -100
- package/out/src/concepts/BooleanLiteral__.js.map +0 -1
- package/out/src/concepts/CallAuthInterface__.d.ts +0 -126
- package/out/src/concepts/CallAuthInterface__.js +0 -409
- package/out/src/concepts/CallAuthInterface__.js.map +0 -1
- package/out/src/concepts/CallConnector__.d.ts +0 -42
- package/out/src/concepts/CallConnector__.js +0 -198
- package/out/src/concepts/CallConnector__.js.map +0 -1
- package/out/src/concepts/CallFunction__.d.ts +0 -157
- package/out/src/concepts/CallFunction__.js +0 -503
- package/out/src/concepts/CallFunction__.js.map +0 -1
- package/out/src/concepts/CallInterface__.d.ts +0 -125
- package/out/src/concepts/CallInterface__.js +0 -677
- package/out/src/concepts/CallInterface__.js.map +0 -1
- package/out/src/concepts/CallLogic__.d.ts +0 -224
- package/out/src/concepts/CallLogic__.js +0 -1140
- package/out/src/concepts/CallLogic__.js.map +0 -1
- package/out/src/concepts/CallQueryComponent__.d.ts +0 -432
- package/out/src/concepts/CallQueryComponent__.js +0 -1264
- package/out/src/concepts/CallQueryComponent__.js.map +0 -1
- package/out/src/concepts/Comment__.d.ts +0 -31
- package/out/src/concepts/Comment__.js +0 -96
- package/out/src/concepts/Comment__.js.map +0 -1
- package/out/src/concepts/CompletionProperty__.d.ts +0 -104
- package/out/src/concepts/CompletionProperty__.js +0 -256
- package/out/src/concepts/CompletionProperty__.js.map +0 -1
- package/out/src/concepts/ConfigGroup__.d.ts +0 -124
- package/out/src/concepts/ConfigGroup__.js +0 -253
- package/out/src/concepts/ConfigGroup__.js.map +0 -1
- package/out/src/concepts/ConfigPropertyValue__.d.ts +0 -44
- package/out/src/concepts/ConfigPropertyValue__.js +0 -106
- package/out/src/concepts/ConfigPropertyValue__.js.map +0 -1
- package/out/src/concepts/ConfigProperty__.d.ts +0 -153
- package/out/src/concepts/ConfigProperty__.js +0 -322
- package/out/src/concepts/ConfigProperty__.js.map +0 -1
- package/out/src/concepts/Configuration__.d.ts +0 -123
- package/out/src/concepts/Configuration__.js +0 -229
- package/out/src/concepts/Configuration__.js.map +0 -1
- package/out/src/concepts/ConnectorTrigger__.d.ts +0 -78
- package/out/src/concepts/ConnectorTrigger__.js +0 -155
- package/out/src/concepts/ConnectorTrigger__.js.map +0 -1
- package/out/src/concepts/Connector__.d.ts +0 -464
- package/out/src/concepts/Connector__.js +0 -698
- package/out/src/concepts/Connector__.js.map +0 -1
- package/out/src/concepts/Constant__.d.ts +0 -110
- package/out/src/concepts/Constant__.js +0 -252
- package/out/src/concepts/Constant__.js.map +0 -1
- package/out/src/concepts/DataElement__.d.ts +0 -46
- package/out/src/concepts/DataElement__.js +0 -117
- package/out/src/concepts/DataElement__.js.map +0 -1
- package/out/src/concepts/DataSource__.d.ts +0 -164
- package/out/src/concepts/DataSource__.js +0 -441
- package/out/src/concepts/DataSource__.js.map +0 -1
- package/out/src/concepts/DatabaseTypeAnnotation__.d.ts +0 -31
- package/out/src/concepts/DatabaseTypeAnnotation__.js +0 -78
- package/out/src/concepts/DatabaseTypeAnnotation__.js.map +0 -1
- package/out/src/concepts/Destination__.d.ts +0 -156
- package/out/src/concepts/Destination__.js +0 -738
- package/out/src/concepts/Destination__.js.map +0 -1
- package/out/src/concepts/End__.d.ts +0 -24
- package/out/src/concepts/End__.js +0 -114
- package/out/src/concepts/End__.js.map +0 -1
- package/out/src/concepts/EntityIndex__.d.ts +0 -95
- package/out/src/concepts/EntityIndex__.js +0 -218
- package/out/src/concepts/EntityIndex__.js.map +0 -1
- package/out/src/concepts/EntityProperty__.d.ts +0 -273
- package/out/src/concepts/EntityProperty__.js +0 -804
- package/out/src/concepts/EntityProperty__.js.map +0 -1
- package/out/src/concepts/Entity__.d.ts +0 -338
- package/out/src/concepts/Entity__.js +0 -709
- package/out/src/concepts/Entity__.js.map +0 -1
- package/out/src/concepts/EnumItem__.d.ts +0 -63
- package/out/src/concepts/EnumItem__.js +0 -145
- package/out/src/concepts/EnumItem__.js.map +0 -1
- package/out/src/concepts/Enum__.d.ts +0 -137
- package/out/src/concepts/Enum__.js +0 -320
- package/out/src/concepts/Enum__.js.map +0 -1
- package/out/src/concepts/Event__.d.ts +0 -143
- package/out/src/concepts/Event__.js +0 -245
- package/out/src/concepts/Event__.js.map +0 -1
- package/out/src/concepts/ExternalDestination__.d.ts +0 -75
- package/out/src/concepts/ExternalDestination__.js +0 -285
- package/out/src/concepts/ExternalDestination__.js.map +0 -1
- package/out/src/concepts/ForEachStatement__.d.ts +0 -188
- package/out/src/concepts/ForEachStatement__.js +0 -447
- package/out/src/concepts/ForEachStatement__.js.map +0 -1
- package/out/src/concepts/FrontendLibrary__.d.ts +0 -213
- package/out/src/concepts/FrontendLibrary__.js +0 -352
- package/out/src/concepts/FrontendLibrary__.js.map +0 -1
- package/out/src/concepts/FrontendVariable__.d.ts +0 -21
- package/out/src/concepts/FrontendVariable__.js +0 -64
- package/out/src/concepts/FrontendVariable__.js.map +0 -1
- package/out/src/concepts/Frontend__.d.ts +0 -477
- package/out/src/concepts/Frontend__.js +0 -841
- package/out/src/concepts/Frontend__.js.map +0 -1
- package/out/src/concepts/Function__.d.ts +0 -416
- package/out/src/concepts/Function__.js +0 -724
- package/out/src/concepts/Function__.js.map +0 -1
- package/out/src/concepts/Identifier__.d.ts +0 -51
- package/out/src/concepts/Identifier__.js +0 -295
- package/out/src/concepts/Identifier__.js.map +0 -1
- package/out/src/concepts/IfStatement__.d.ts +0 -157
- package/out/src/concepts/IfStatement__.js +0 -305
- package/out/src/concepts/IfStatement__.js.map +0 -1
- package/out/src/concepts/Integration__.d.ts +0 -53
- package/out/src/concepts/Integration__.js +0 -143
- package/out/src/concepts/Integration__.js.map +0 -1
- package/out/src/concepts/InterfaceParam__.d.ts +0 -110
- package/out/src/concepts/InterfaceParam__.js +0 -261
- package/out/src/concepts/InterfaceParam__.js.map +0 -1
- package/out/src/concepts/Interface__.d.ts +0 -303
- package/out/src/concepts/Interface__.js +0 -811
- package/out/src/concepts/Interface__.js.map +0 -1
- package/out/src/concepts/JSBlock__.d.ts +0 -33
- package/out/src/concepts/JSBlock__.js +0 -106
- package/out/src/concepts/JSBlock__.js.map +0 -1
- package/out/src/concepts/JavaLogic__.d.ts +0 -42
- package/out/src/concepts/JavaLogic__.js +0 -122
- package/out/src/concepts/JavaLogic__.js.map +0 -1
- package/out/src/concepts/LogicItem__.d.ts +0 -145
- package/out/src/concepts/LogicItem__.js +0 -274
- package/out/src/concepts/LogicItem__.js.map +0 -1
- package/out/src/concepts/Logic__.d.ts +0 -643
- package/out/src/concepts/Logic__.js +0 -1623
- package/out/src/concepts/Logic__.js.map +0 -1
- package/out/src/concepts/MatchCase__.d.ts +0 -257
- package/out/src/concepts/MatchCase__.js +0 -592
- package/out/src/concepts/MatchCase__.js.map +0 -1
- package/out/src/concepts/Match__.d.ts +0 -122
- package/out/src/concepts/Match__.js +0 -616
- package/out/src/concepts/Match__.js.map +0 -1
- package/out/src/concepts/MemberExpression__.d.ts +0 -72
- package/out/src/concepts/MemberExpression__.js +0 -318
- package/out/src/concepts/MemberExpression__.js.map +0 -1
- package/out/src/concepts/MicroApp__.d.ts +0 -51
- package/out/src/concepts/MicroApp__.js +0 -113
- package/out/src/concepts/MicroApp__.js.map +0 -1
- package/out/src/concepts/Module__.d.ts +0 -975
- package/out/src/concepts/Module__.js +0 -1371
- package/out/src/concepts/Module__.js.map +0 -1
- package/out/src/concepts/MsgTriggerEvent__.d.ts +0 -137
- package/out/src/concepts/MsgTriggerEvent__.js +0 -228
- package/out/src/concepts/MsgTriggerEvent__.js.map +0 -1
- package/out/src/concepts/MsgTriggerLauncher__.d.ts +0 -118
- package/out/src/concepts/MsgTriggerLauncher__.js +0 -204
- package/out/src/concepts/MsgTriggerLauncher__.js.map +0 -1
- package/out/src/concepts/Namespace__.d.ts +0 -1068
- package/out/src/concepts/Namespace__.js +0 -1377
- package/out/src/concepts/Namespace__.js.map +0 -1
- package/out/src/concepts/NewComposite__.d.ts +0 -345
- package/out/src/concepts/NewComposite__.js +0 -1086
- package/out/src/concepts/NewComposite__.js.map +0 -1
- package/out/src/concepts/NewList__.d.ts +0 -132
- package/out/src/concepts/NewList__.js +0 -378
- package/out/src/concepts/NewList__.js.map +0 -1
- package/out/src/concepts/NewMap__.d.ts +0 -223
- package/out/src/concepts/NewMap__.js +0 -522
- package/out/src/concepts/NewMap__.js.map +0 -1
- package/out/src/concepts/New__.d.ts +0 -20
- package/out/src/concepts/New__.js +0 -69
- package/out/src/concepts/New__.js.map +0 -1
- package/out/src/concepts/NullLiteral__.d.ts +0 -26
- package/out/src/concepts/NullLiteral__.js +0 -82
- package/out/src/concepts/NullLiteral__.js.map +0 -1
- package/out/src/concepts/NumericLiteral__.d.ts +0 -55
- package/out/src/concepts/NumericLiteral__.js +0 -173
- package/out/src/concepts/NumericLiteral__.js.map +0 -1
- package/out/src/concepts/OqlQueryComponent__.d.ts +0 -72
- package/out/src/concepts/OqlQueryComponent__.js +0 -323
- package/out/src/concepts/OqlQueryComponent__.js.map +0 -1
- package/out/src/concepts/OverriddenLogic__.d.ts +0 -643
- package/out/src/concepts/OverriddenLogic__.js +0 -1602
- package/out/src/concepts/OverriddenLogic__.js.map +0 -1
- package/out/src/concepts/Param__.d.ts +0 -171
- package/out/src/concepts/Param__.js +0 -446
- package/out/src/concepts/Param__.js.map +0 -1
- package/out/src/concepts/Point__.d.ts +0 -31
- package/out/src/concepts/Point__.js +0 -78
- package/out/src/concepts/Point__.js.map +0 -1
- package/out/src/concepts/ProcessComponent__.d.ts +0 -219
- package/out/src/concepts/ProcessComponent__.js +0 -336
- package/out/src/concepts/ProcessComponent__.js.map +0 -1
- package/out/src/concepts/ProcessElement__.d.ts +0 -646
- package/out/src/concepts/ProcessElement__.js +0 -1212
- package/out/src/concepts/ProcessElement__.js.map +0 -1
- package/out/src/concepts/ProcessOutcome__.d.ts +0 -31
- package/out/src/concepts/ProcessOutcome__.js +0 -90
- package/out/src/concepts/ProcessOutcome__.js.map +0 -1
- package/out/src/concepts/ProcessOutcomes__.d.ts +0 -31
- package/out/src/concepts/ProcessOutcomes__.js +0 -90
- package/out/src/concepts/ProcessOutcomes__.js.map +0 -1
- package/out/src/concepts/Process__.d.ts +0 -616
- package/out/src/concepts/Process__.js +0 -1023
- package/out/src/concepts/Process__.js.map +0 -1
- package/out/src/concepts/QueryAggregateExpression__.d.ts +0 -51
- package/out/src/concepts/QueryAggregateExpression__.js +0 -147
- package/out/src/concepts/QueryAggregateExpression__.js.map +0 -1
- package/out/src/concepts/QueryFieldExpression__.d.ts +0 -53
- package/out/src/concepts/QueryFieldExpression__.js +0 -158
- package/out/src/concepts/QueryFieldExpression__.js.map +0 -1
- package/out/src/concepts/QueryFromExpression__.d.ts +0 -96
- package/out/src/concepts/QueryFromExpression__.js +0 -195
- package/out/src/concepts/QueryFromExpression__.js.map +0 -1
- package/out/src/concepts/QueryGroupByExpression__.d.ts +0 -46
- package/out/src/concepts/QueryGroupByExpression__.js +0 -142
- package/out/src/concepts/QueryGroupByExpression__.js.map +0 -1
- package/out/src/concepts/QueryJoinExpression__.d.ts +0 -183
- package/out/src/concepts/QueryJoinExpression__.js +0 -315
- package/out/src/concepts/QueryJoinExpression__.js.map +0 -1
- package/out/src/concepts/QueryLimitExpression__.d.ts +0 -57
- package/out/src/concepts/QueryLimitExpression__.js +0 -159
- package/out/src/concepts/QueryLimitExpression__.js.map +0 -1
- package/out/src/concepts/QueryOrderByExpression__.d.ts +0 -68
- package/out/src/concepts/QueryOrderByExpression__.js +0 -172
- package/out/src/concepts/QueryOrderByExpression__.js.map +0 -1
- package/out/src/concepts/QuerySelectExpression__.d.ts +0 -203
- package/out/src/concepts/QuerySelectExpression__.js +0 -296
- package/out/src/concepts/QuerySelectExpression__.js.map +0 -1
- package/out/src/concepts/Rect__.d.ts +0 -39
- package/out/src/concepts/Rect__.js +0 -92
- package/out/src/concepts/Rect__.js.map +0 -1
- package/out/src/concepts/Return__.d.ts +0 -133
- package/out/src/concepts/Return__.js +0 -348
- package/out/src/concepts/Return__.js.map +0 -1
- package/out/src/concepts/Role__.d.ts +0 -62
- package/out/src/concepts/Role__.js +0 -168
- package/out/src/concepts/Role__.js.map +0 -1
- package/out/src/concepts/SelectMembers__.d.ts +0 -142
- package/out/src/concepts/SelectMembers__.js +0 -293
- package/out/src/concepts/SelectMembers__.js.map +0 -1
- package/out/src/concepts/Slot__.d.ts +0 -74
- package/out/src/concepts/Slot__.js +0 -160
- package/out/src/concepts/Slot__.js.map +0 -1
- package/out/src/concepts/SqlQueryComponent__.d.ts +0 -70
- package/out/src/concepts/SqlQueryComponent__.js +0 -268
- package/out/src/concepts/SqlQueryComponent__.js.map +0 -1
- package/out/src/concepts/Start__.d.ts +0 -24
- package/out/src/concepts/Start__.js +0 -74
- package/out/src/concepts/Start__.js.map +0 -1
- package/out/src/concepts/StringInterpolation__.d.ts +0 -114
- package/out/src/concepts/StringInterpolation__.js +0 -242
- package/out/src/concepts/StringInterpolation__.js.map +0 -1
- package/out/src/concepts/StringLiteral__.d.ts +0 -37
- package/out/src/concepts/StringLiteral__.js +0 -135
- package/out/src/concepts/StringLiteral__.js.map +0 -1
- package/out/src/concepts/StructureProperty__.d.ts +0 -130
- package/out/src/concepts/StructureProperty__.js +0 -297
- package/out/src/concepts/StructureProperty__.js.map +0 -1
- package/out/src/concepts/Structure__.d.ts +0 -251
- package/out/src/concepts/Structure__.js +0 -444
- package/out/src/concepts/Structure__.js.map +0 -1
- package/out/src/concepts/SwitchCase__.d.ts +0 -93
- package/out/src/concepts/SwitchCase__.js +0 -232
- package/out/src/concepts/SwitchCase__.js.map +0 -1
- package/out/src/concepts/SwitchStatement__.d.ts +0 -83
- package/out/src/concepts/SwitchStatement__.js +0 -178
- package/out/src/concepts/SwitchStatement__.js.map +0 -1
- package/out/src/concepts/Theme__.d.ts +0 -37
- package/out/src/concepts/Theme__.js +0 -89
- package/out/src/concepts/Theme__.js.map +0 -1
- package/out/src/concepts/Transactional__.d.ts +0 -87
- package/out/src/concepts/Transactional__.js +0 -166
- package/out/src/concepts/Transactional__.js.map +0 -1
- package/out/src/concepts/TriggerEvent__.d.ts +0 -120
- package/out/src/concepts/TriggerEvent__.js +0 -222
- package/out/src/concepts/TriggerEvent__.js.map +0 -1
- package/out/src/concepts/TriggerLauncher__.d.ts +0 -88
- package/out/src/concepts/TriggerLauncher__.js +0 -235
- package/out/src/concepts/TriggerLauncher__.js.map +0 -1
- package/out/src/concepts/TypeAnnotation__.d.ts +0 -293
- package/out/src/concepts/TypeAnnotation__.js +0 -878
- package/out/src/concepts/TypeAnnotation__.js.map +0 -1
- package/out/src/concepts/TypeParam__.d.ts +0 -24
- package/out/src/concepts/TypeParam__.js +0 -73
- package/out/src/concepts/TypeParam__.js.map +0 -1
- package/out/src/concepts/UnaryExpression__.d.ts +0 -48
- package/out/src/concepts/UnaryExpression__.js +0 -175
- package/out/src/concepts/UnaryExpression__.js.map +0 -1
- package/out/src/concepts/Unparsed__.d.ts +0 -31
- package/out/src/concepts/Unparsed__.js +0 -94
- package/out/src/concepts/Unparsed__.js.map +0 -1
- package/out/src/concepts/UseComponent__.d.ts +0 -31
- package/out/src/concepts/UseComponent__.js +0 -78
- package/out/src/concepts/UseComponent__.js.map +0 -1
- package/out/src/concepts/ValidationRule__.d.ts +0 -147
- package/out/src/concepts/ValidationRule__.js +0 -480
- package/out/src/concepts/ValidationRule__.js.map +0 -1
- package/out/src/concepts/Variable__.d.ts +0 -153
- package/out/src/concepts/Variable__.js +0 -401
- package/out/src/concepts/Variable__.js.map +0 -1
- package/out/src/concepts/ViewBlock__.d.ts +0 -35
- package/out/src/concepts/ViewBlock__.js +0 -85
- package/out/src/concepts/ViewBlock__.js.map +0 -1
- package/out/src/concepts/ViewComponent__.d.ts +0 -565
- package/out/src/concepts/ViewComponent__.js +0 -758
- package/out/src/concepts/ViewComponent__.js.map +0 -1
- package/out/src/concepts/ViewElement__.d.ts +0 -604
- package/out/src/concepts/ViewElement__.js +0 -1910
- package/out/src/concepts/ViewElement__.js.map +0 -1
- package/out/src/concepts/View__.d.ts +0 -713
- package/out/src/concepts/View__.js +0 -1693
- package/out/src/concepts/View__.js.map +0 -1
- package/out/src/concepts/WhileStatement__.d.ts +0 -96
- package/out/src/concepts/WhileStatement__.js +0 -211
- package/out/src/concepts/WhileStatement__.js.map +0 -1
- package/out/src/concepts/basics/stdlib/index.d.ts +0 -4
- package/out/src/concepts/basics/stdlib/index.js +0 -29
- package/out/src/concepts/basics/stdlib/index.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.auth.d.ts +0 -7
- package/out/src/concepts/basics/stdlib/nasl.auth.js +0 -164
- package/out/src/concepts/basics/stdlib/nasl.auth.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.browser.d.ts +0 -3
- package/out/src/concepts/basics/stdlib/nasl.browser.js +0 -96
- package/out/src/concepts/basics/stdlib/nasl.browser.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.collection.d.ts +0 -7
- package/out/src/concepts/basics/stdlib/nasl.collection.js +0 -52
- package/out/src/concepts/basics/stdlib/nasl.collection.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.configuration.d.ts +0 -3
- package/out/src/concepts/basics/stdlib/nasl.configuration.js +0 -33
- package/out/src/concepts/basics/stdlib/nasl.configuration.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.core.d.ts +0 -5
- package/out/src/concepts/basics/stdlib/nasl.core.js +0 -49
- package/out/src/concepts/basics/stdlib/nasl.core.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.http.d.ts +0 -7
- package/out/src/concepts/basics/stdlib/nasl.http.js +0 -167
- package/out/src/concepts/basics/stdlib/nasl.http.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.interface.d.ts +0 -7
- package/out/src/concepts/basics/stdlib/nasl.interface.js +0 -43
- package/out/src/concepts/basics/stdlib/nasl.interface.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.io.d.ts +0 -3
- package/out/src/concepts/basics/stdlib/nasl.io.js +0 -52
- package/out/src/concepts/basics/stdlib/nasl.io.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.logging.d.ts +0 -3
- package/out/src/concepts/basics/stdlib/nasl.logging.js +0 -56
- package/out/src/concepts/basics/stdlib/nasl.logging.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.process.d.ts +0 -7
- package/out/src/concepts/basics/stdlib/nasl.process.js +0 -638
- package/out/src/concepts/basics/stdlib/nasl.process.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.ui.d.ts +0 -7
- package/out/src/concepts/basics/stdlib/nasl.ui.js +0 -1018
- package/out/src/concepts/basics/stdlib/nasl.ui.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.util.d.ts +0 -3
- package/out/src/concepts/basics/stdlib/nasl.util.js +0 -2238
- package/out/src/concepts/basics/stdlib/nasl.util.js.map +0 -1
- package/out/src/concepts/basics/stdlib/nasl.validation.d.ts +0 -3
- package/out/src/concepts/basics/stdlib/nasl.validation.js +0 -565
- package/out/src/concepts/basics/stdlib/nasl.validation.js.map +0 -1
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +0 -5
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js +0 -26
- package/out/src/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +0 -1
- package/out/src/concepts/basics/types/coreTypeList.d.ts +0 -2
- package/out/src/concepts/basics/types/coreTypeList.js +0 -15
- package/out/src/concepts/basics/types/coreTypeList.js.map +0 -1
- package/out/src/concepts/basics/types/index.d.ts +0 -16
- package/out/src/concepts/basics/types/index.js +0 -35
- package/out/src/concepts/basics/types/index.js.map +0 -1
- package/out/src/concepts/index.d.ts +0 -6
- package/out/src/concepts/index.js +0 -25
- package/out/src/concepts/index.js.map +0 -1
- package/out/src/concepts/index__.d.ts +0 -122
- package/out/src/concepts/index__.js +0 -139
- package/out/src/concepts/index__.js.map +0 -1
- package/out/src/concepts/types__.d.ts +0 -124
- package/out/src/concepts/types__.js +0 -3
- package/out/src/concepts/types__.js.map +0 -1
- package/out/src/config.d.ts +0 -43
- package/out/src/config.js +0 -72
- package/out/src/config.js.map +0 -1
- package/out/src/decorators/index.d.ts +0 -55
- package/out/src/decorators/index.js +0 -153
- package/out/src/decorators/index.js.map +0 -1
- package/out/src/enums/KEYWORDS.d.ts +0 -6
- package/out/src/enums/KEYWORDS.js +0 -1244
- package/out/src/enums/KEYWORDS.js.map +0 -1
- package/out/src/enums/LEVEL_NAME_MAP.d.ts +0 -26
- package/out/src/enums/LEVEL_NAME_MAP.js +0 -30
- package/out/src/enums/LEVEL_NAME_MAP.js.map +0 -1
- package/out/src/eventBus.d.ts +0 -3
- package/out/src/eventBus.js +0 -7
- package/out/src/eventBus.js.map +0 -1
- package/out/src/generator/compileComponent.d.ts +0 -11
- package/out/src/generator/compileComponent.js +0 -12
- package/out/src/generator/compileComponent.js.map +0 -1
- package/out/src/generator/genBundleFiles.d.ts +0 -31
- package/out/src/generator/genBundleFiles.js +0 -432
- package/out/src/generator/genBundleFiles.js.map +0 -1
- package/out/src/generator/genHash.d.ts +0 -7
- package/out/src/generator/genHash.js +0 -39
- package/out/src/generator/genHash.js.map +0 -1
- package/out/src/generator/genMetaData.d.ts +0 -31
- package/out/src/generator/genMetaData.js +0 -274
- package/out/src/generator/genMetaData.js.map +0 -1
- package/out/src/generator/genReleaseBody.d.ts +0 -70
- package/out/src/generator/genReleaseBody.js +0 -268
- package/out/src/generator/genReleaseBody.js.map +0 -1
- package/out/src/generator/icestark.d.ts +0 -2
- package/out/src/generator/icestark.js +0 -48
- package/out/src/generator/icestark.js.map +0 -1
- package/out/src/generator/index.d.ts +0 -7
- package/out/src/generator/index.js +0 -24
- package/out/src/generator/index.js.map +0 -1
- package/out/src/generator/microApp.d.ts +0 -2
- package/out/src/generator/microApp.js +0 -35
- package/out/src/generator/microApp.js.map +0 -1
- package/out/src/generator/permission.d.ts +0 -10
- package/out/src/generator/permission.js +0 -267
- package/out/src/generator/permission.js.map +0 -1
- package/out/src/generator/qiankun.d.ts +0 -2
- package/out/src/generator/qiankun.js +0 -52
- package/out/src/generator/qiankun.js.map +0 -1
- package/out/src/generator/styleReplacer.d.ts +0 -3
- package/out/src/generator/styleReplacer.js +0 -71
- package/out/src/generator/styleReplacer.js.map +0 -1
- package/out/src/index.d.ts +0 -14
- package/out/src/index.js +0 -65
- package/out/src/index.js.map +0 -1
- package/out/src/manager/diagnostic.d.ts +0 -35
- package/out/src/manager/diagnostic.js +0 -63
- package/out/src/manager/diagnostic.js.map +0 -1
- package/out/src/manager/stepRecorder.d.ts +0 -20
- package/out/src/manager/stepRecorder.js +0 -110
- package/out/src/manager/stepRecorder.js.map +0 -1
- package/out/src/sentry/index.d.ts +0 -33
- package/out/src/sentry/index.js +0 -141
- package/out/src/sentry/index.js.map +0 -1
- package/out/src/server/createUiTs.d.ts +0 -16
- package/out/src/server/createUiTs.js +0 -248
- package/out/src/server/createUiTs.js.map +0 -1
- package/out/src/server/entity2LogicNamespace.d.ts +0 -10
- package/out/src/server/entity2LogicNamespace.js +0 -380
- package/out/src/server/entity2LogicNamespace.js.map +0 -1
- package/out/src/server/event.d.ts +0 -18
- package/out/src/server/event.js +0 -127
- package/out/src/server/event.js.map +0 -1
- package/out/src/server/extendBaseNode.d.ts +0 -1
- package/out/src/server/extendBaseNode.js +0 -528
- package/out/src/server/extendBaseNode.js.map +0 -1
- package/out/src/server/formatTsUtils.d.ts +0 -37
- package/out/src/server/formatTsUtils.js +0 -857
- package/out/src/server/formatTsUtils.js.map +0 -1
- package/out/src/server/getConnector.d.ts +0 -11
- package/out/src/server/getConnector.js +0 -42
- package/out/src/server/getConnector.js.map +0 -1
- package/out/src/server/getExtensionModules.d.ts +0 -3
- package/out/src/server/getExtensionModules.js +0 -34
- package/out/src/server/getExtensionModules.js.map +0 -1
- package/out/src/server/getFunctions.d.ts +0 -3
- package/out/src/server/getFunctions.js +0 -20
- package/out/src/server/getFunctions.js.map +0 -1
- package/out/src/server/getInterfaces.d.ts +0 -2
- package/out/src/server/getInterfaces.js +0 -48
- package/out/src/server/getInterfaces.js.map +0 -1
- package/out/src/server/getLogging.d.ts +0 -1
- package/out/src/server/getLogging.js +0 -9
- package/out/src/server/getLogging.js.map +0 -1
- package/out/src/server/getLogics.d.ts +0 -4
- package/out/src/server/getLogics.js +0 -335
- package/out/src/server/getLogics.js.map +0 -1
- package/out/src/server/getMemberIdentifier.d.ts +0 -16
- package/out/src/server/getMemberIdentifier.js +0 -317
- package/out/src/server/getMemberIdentifier.js.map +0 -1
- package/out/src/server/getProcessComponents.d.ts +0 -2
- package/out/src/server/getProcessComponents.js +0 -13
- package/out/src/server/getProcessComponents.js.map +0 -1
- package/out/src/server/getProcesses.d.ts +0 -33
- package/out/src/server/getProcesses.js +0 -605
- package/out/src/server/getProcesses.js.map +0 -1
- package/out/src/server/getScope.d.ts +0 -13
- package/out/src/server/getScope.js +0 -61
- package/out/src/server/getScope.js.map +0 -1
- package/out/src/server/getValidates.d.ts +0 -3
- package/out/src/server/getValidates.js +0 -14
- package/out/src/server/getValidates.js.map +0 -1
- package/out/src/server/index.d.ts +0 -5
- package/out/src/server/index.js +0 -41
- package/out/src/server/index.js.map +0 -1
- package/out/src/server/naslServer.d.ts +0 -357
- package/out/src/server/naslServer.js +0 -4369
- package/out/src/server/naslServer.js.map +0 -1
- package/out/src/server/naslStdlibMap.d.ts +0 -2
- package/out/src/server/naslStdlibMap.js +0 -50
- package/out/src/server/naslStdlibMap.js.map +0 -1
- package/out/src/server/process2LogicNamespace.d.ts +0 -26
- package/out/src/server/process2LogicNamespace.js +0 -109
- package/out/src/server/process2LogicNamespace.js.map +0 -1
- package/out/src/server/translator.d.ts +0 -26
- package/out/src/server/translator.js +0 -805
- package/out/src/server/translator.js.map +0 -1
- package/out/src/service/creator/add.configs.d.ts +0 -1
- package/out/src/service/creator/add.configs.js +0 -74
- package/out/src/service/creator/add.configs.js.map +0 -1
- package/out/src/service/creator/errHandles.d.ts +0 -18
- package/out/src/service/creator/errHandles.js +0 -75
- package/out/src/service/creator/errHandles.js.map +0 -1
- package/out/src/service/creator/index.d.ts +0 -1
- package/out/src/service/creator/index.js +0 -74
- package/out/src/service/creator/index.js.map +0 -1
- package/out/src/service/datasource/api.d.ts +0 -12
- package/out/src/service/datasource/api.js +0 -14
- package/out/src/service/datasource/api.js.map +0 -1
- package/out/src/service/datasource/index.d.ts +0 -2
- package/out/src/service/datasource/index.js +0 -10
- package/out/src/service/datasource/index.js.map +0 -1
- package/out/src/service/defaultErrorMessage.json +0 -98
- package/out/src/service/logic/api.d.ts +0 -9
- package/out/src/service/logic/api.js +0 -11
- package/out/src/service/logic/api.js.map +0 -1
- package/out/src/service/logic/checktypeSocket.d.ts +0 -5
- package/out/src/service/logic/checktypeSocket.js +0 -55
- package/out/src/service/logic/checktypeSocket.js.map +0 -1
- package/out/src/service/logic/index.d.ts +0 -2
- package/out/src/service/logic/index.js +0 -10
- package/out/src/service/logic/index.js.map +0 -1
- package/out/src/service/storage/api.d.ts +0 -54
- package/out/src/service/storage/api.js +0 -42
- package/out/src/service/storage/api.js.map +0 -1
- package/out/src/service/storage/index.d.ts +0 -2
- package/out/src/service/storage/index.js +0 -10
- package/out/src/service/storage/index.js.map +0 -1
- package/out/src/service/storage/init.d.ts +0 -68
- package/out/src/service/storage/init.js +0 -784
- package/out/src/service/storage/init.js.map +0 -1
- package/out/src/service/storage/jsoner.d.ts +0 -36
- package/out/src/service/storage/jsoner.js +0 -131
- package/out/src/service/storage/jsoner.js.map +0 -1
- package/out/src/service/storage/map.d.ts +0 -4
- package/out/src/service/storage/map.js +0 -54
- package/out/src/service/storage/map.js.map +0 -1
- package/out/src/service/storage/service.d.ts +0 -25
- package/out/src/service/storage/service.js +0 -80
- package/out/src/service/storage/service.js.map +0 -1
- package/out/src/service/storage/storagePoint.d.ts +0 -17
- package/out/src/service/storage/storagePoint.js +0 -76
- package/out/src/service/storage/storagePoint.js.map +0 -1
- package/out/src/service/video/BaseService.d.ts +0 -7
- package/out/src/service/video/BaseService.js +0 -61
- package/out/src/service/video/BaseService.js.map +0 -1
- package/out/src/service/video/MainCallbackService.d.ts +0 -12
- package/out/src/service/video/MainCallbackService.js +0 -183
- package/out/src/service/video/MainCallbackService.js.map +0 -1
- package/out/src/service/video/VideoTranscribe.d.ts +0 -15
- package/out/src/service/video/VideoTranscribe.js +0 -96
- package/out/src/service/video/VideoTranscribe.js.map +0 -1
- package/out/src/service/video/publishService.d.ts +0 -1
- package/out/src/service/video/publishService.js +0 -58
- package/out/src/service/video/publishService.js.map +0 -1
- package/out/src/templator/genCallComponentLogic.d.ts +0 -17
- package/out/src/templator/genCallComponentLogic.js +0 -30
- package/out/src/templator/genCallComponentLogic.js.map +0 -1
- package/out/src/templator/genCreateBlock.d.ts +0 -10
- package/out/src/templator/genCreateBlock.js +0 -336
- package/out/src/templator/genCreateBlock.js.map +0 -1
- package/out/src/templator/genCurdEditMultipleKeyBlock.d.ts +0 -8
- package/out/src/templator/genCurdEditMultipleKeyBlock.js +0 -514
- package/out/src/templator/genCurdEditMultipleKeyBlock.js.map +0 -1
- package/out/src/templator/genCurdMultipleKeyBlock.d.ts +0 -34
- package/out/src/templator/genCurdMultipleKeyBlock.js +0 -707
- package/out/src/templator/genCurdMultipleKeyBlock.js.map +0 -1
- package/out/src/templator/genEditTableBlock.d.ts +0 -51
- package/out/src/templator/genEditTableBlock.js +0 -299
- package/out/src/templator/genEditTableBlock.js.map +0 -1
- package/out/src/templator/genEnumSelectBlock.d.ts +0 -10
- package/out/src/templator/genEnumSelectBlock.js +0 -26
- package/out/src/templator/genEnumSelectBlock.js.map +0 -1
- package/out/src/templator/genGetBlock.d.ts +0 -6
- package/out/src/templator/genGetBlock.js +0 -138
- package/out/src/templator/genGetBlock.js.map +0 -1
- package/out/src/templator/genGridViewBlock.d.ts +0 -55
- package/out/src/templator/genGridViewBlock.js +0 -350
- package/out/src/templator/genGridViewBlock.js.map +0 -1
- package/out/src/templator/genListViewBlock.d.ts +0 -19
- package/out/src/templator/genListViewBlock.js +0 -143
- package/out/src/templator/genListViewBlock.js.map +0 -1
- package/out/src/templator/genQueryComponent.d.ts +0 -34
- package/out/src/templator/genQueryComponent.js +0 -342
- package/out/src/templator/genQueryComponent.js.map +0 -1
- package/out/src/templator/genSelectBlock.d.ts +0 -45
- package/out/src/templator/genSelectBlock.js +0 -406
- package/out/src/templator/genSelectBlock.js.map +0 -1
- package/out/src/templator/genTableBlock.d.ts +0 -53
- package/out/src/templator/genTableBlock.js +0 -280
- package/out/src/templator/genTableBlock.js.map +0 -1
- package/out/src/templator/genUpdateBlock.d.ts +0 -6
- package/out/src/templator/genUpdateBlock.js +0 -378
- package/out/src/templator/genUpdateBlock.js.map +0 -1
- package/out/src/templator/index.d.ts +0 -17
- package/out/src/templator/index.js +0 -38
- package/out/src/templator/index.js.map +0 -1
- package/out/src/templator/utils.d.ts +0 -676
- package/out/src/templator/utils.js +0 -459
- package/out/src/templator/utils.js.map +0 -1
- package/out/src/test/fixtures/env.d.ts +0 -5
- package/out/src/test/fixtures/env.js +0 -20
- package/out/src/test/fixtures/env.js.map +0 -1
- package/out/src/test/integration/connect-create-file.d.ts +0 -1
- package/out/src/test/integration/connect-create-file.js +0 -39
- package/out/src/test/integration/connect-create-file.js.map +0 -1
- package/out/src/test/integration/connect-file.d.ts +0 -1
- package/out/src/test/integration/connect-file.js +0 -49
- package/out/src/test/integration/connect-file.js.map +0 -1
- package/out/src/test/integration/node-nasl-server.d.ts +0 -1
- package/out/src/test/integration/node-nasl-server.js +0 -13
- package/out/src/test/integration/node-nasl-server.js.map +0 -1
- package/out/src/test/units/baseTypes/Assignment.spec.d.ts +0 -1
- package/out/src/test/units/baseTypes/Assignment.spec.js +0 -43
- package/out/src/test/units/baseTypes/Assignment.spec.js.map +0 -1
- package/out/src/test/units/baseTypes/CallLogic.spec.d.ts +0 -1
- package/out/src/test/units/baseTypes/CallLogic.spec.js +0 -44
- package/out/src/test/units/baseTypes/CallLogic.spec.js.map +0 -1
- package/out/src/test/units/baseTypes/StringLiteral.spec.d.ts +0 -1
- package/out/src/test/units/baseTypes/StringLiteral.spec.js +0 -75
- package/out/src/test/units/baseTypes/StringLiteral.spec.js.map +0 -1
- package/out/src/test/units/baseTypes/new.spec.d.ts +0 -1
- package/out/src/test/units/baseTypes/new.spec.js +0 -37
- package/out/src/test/units/baseTypes/new.spec.js.map +0 -1
- package/out/src/test/units/common/Vertex.spec.d.ts +0 -1
- package/out/src/test/units/common/Vertex.spec.js +0 -22
- package/out/src/test/units/common/Vertex.spec.js.map +0 -1
- package/out/src/test/units/data/Entity.spec.d.ts +0 -1
- package/out/src/test/units/data/Entity.spec.js +0 -12
- package/out/src/test/units/data/Entity.spec.js.map +0 -1
- package/out/src/test/units/login.spec.d.ts +0 -1
- package/out/src/test/units/login.spec.js +0 -12
- package/out/src/test/units/login.spec.js.map +0 -1
- package/out/src/test/units/page/Block.spec.d.ts +0 -0
- package/out/src/test/units/page/Block.spec.js +0 -13
- package/out/src/test/units/page/Block.spec.js.map +0 -1
- package/out/src/test/units/page/Element.spec.d.ts +0 -1
- package/out/src/test/units/page/Element.spec.js +0 -44
- package/out/src/test/units/page/Element.spec.js.map +0 -1
- package/out/src/test/units/temp/temp.spec.d.ts +0 -1
- package/out/src/test/units/temp/temp.spec.js +0 -68
- package/out/src/test/units/temp/temp.spec.js.map +0 -1
- package/out/src/translator/index.d.ts +0 -48
- package/out/src/translator/index.js +0 -114
- package/out/src/translator/index.js.map +0 -1
- package/out/src/translator/lsp.d.ts +0 -45
- package/out/src/translator/lsp.js +0 -6
- package/out/src/translator/lsp.js.map +0 -1
- package/out/src/translator/tsp.d.ts +0 -12
- package/out/src/translator/tsp.js +0 -3
- package/out/src/translator/tsp.js.map +0 -1
- package/out/src/utils/index.d.ts +0 -39
- package/out/src/utils/index.js +0 -191
- package/out/src/utils/index.js.map +0 -1
- package/out/src/utils/logger.d.ts +0 -3
- package/out/src/utils/logger.js +0 -11
- package/out/src/utils/logger.js.map +0 -1
- package/out/src/utils/sortTsString.d.ts +0 -1
- package/out/src/utils/sortTsString.js +0 -36
- package/out/src/utils/sortTsString.js.map +0 -1
- package/out/src/utils/string.d.ts +0 -51
- package/out/src/utils/string.js +0 -110
- package/out/src/utils/string.js.map +0 -1
- package/out/src/utils/traverse.d.ts +0 -36
- package/out/src/utils/traverse.js +0 -145
- package/out/src/utils/traverse.js.map +0 -1
- package/out/test/concepts/utils.d.ts +0 -2
- package/out/test/concepts/utils.js +0 -20
- package/out/test/concepts/utils.js.map +0 -1
- package/out/test/concepts/validation-rule/toEmbeddedTS.spec.d.ts +0 -1
- package/out/test/concepts/validation-rule/toEmbeddedTS.spec.js +0 -23
- package/out/test/concepts/validation-rule/toEmbeddedTS.spec.js.map +0 -1
- package/out/test/setup.d.ts +0 -1
- package/out/test/setup.js +0 -6
- package/out/test/setup.js.map +0 -1
|
@@ -1,784 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.loadAppSync = exports.mountDatabaseTypes = exports.loadApp = exports.handleApp = exports.taskQueue = exports.databaseTypes = exports.breakpoint = exports.batchInstruct = exports.batchAction = exports.batchQuery = void 0;
|
|
30
|
-
const concepts_1 = require("../../concepts");
|
|
31
|
-
const breakpoint_1 = require("../../breakpoint");
|
|
32
|
-
const decorators_1 = require("../../decorators");
|
|
33
|
-
const config_1 = require("../../config");
|
|
34
|
-
const vue_1 = __importDefault(require("vue"));
|
|
35
|
-
const service_1 = __importDefault(require("./service"));
|
|
36
|
-
const uuid_1 = require("uuid");
|
|
37
|
-
const stepRecorder_1 = __importDefault(require("../../manager/stepRecorder"));
|
|
38
|
-
/// #if !process.env.NODE_ENV || process.env.BUILD_TARGET === 'node'
|
|
39
|
-
const fs = __importStar(require("fs-extra"));
|
|
40
|
-
const jsoner = __importStar(require("./jsoner"));
|
|
41
|
-
/// #endif
|
|
42
|
-
exports.batchQuery = service_1.default.batchQuery;
|
|
43
|
-
exports.batchAction = service_1.default.batchAction;
|
|
44
|
-
exports.batchInstruct = service_1.default.batchInstruct;
|
|
45
|
-
exports.breakpoint = service_1.default.breakpoint;
|
|
46
|
-
let tabTimestamp;
|
|
47
|
-
exports.databaseTypes = service_1.default.databaseTypes;
|
|
48
|
-
function getLogic(key, app, diffLogicList) {
|
|
49
|
-
if (!diffLogicList.includes(key)) {
|
|
50
|
-
diffLogicList.push(key);
|
|
51
|
-
if (key.startsWith('app')) {
|
|
52
|
-
const index = key.lastIndexOf('.');
|
|
53
|
-
const name = key.slice(index + 1);
|
|
54
|
-
const logic = app.logics.find((item) => item.name === name);
|
|
55
|
-
if (logic && logic.body && logic.body.length > 2) {
|
|
56
|
-
logic.body.map((item) => getStatement(item, app, diffLogicList));
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else if (key.startsWith('extensions')) {
|
|
60
|
-
const _pathArr = key.split('.');
|
|
61
|
-
const _name = _pathArr[1];
|
|
62
|
-
const _path = _pathArr[3];
|
|
63
|
-
const _list = app.dependencies;
|
|
64
|
-
const _module = _list.find((it) => {
|
|
65
|
-
const name = it.name.replaceAll('-', '_');
|
|
66
|
-
return name === _name;
|
|
67
|
-
});
|
|
68
|
-
const logic = _module?.logics?.find((item) => item.name === _path);
|
|
69
|
-
if (logic && logic.body && logic.body.length > 2) {
|
|
70
|
-
logic.body.map((item) => getStatement(item, app, diffLogicList));
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
/* 获取LogicITEM */
|
|
76
|
-
function getStatement(state, app, diffLogicList) {
|
|
77
|
-
let logicItems = [];
|
|
78
|
-
switch (state.concept) {
|
|
79
|
-
case 'Assignment':
|
|
80
|
-
logicItems = [state.left, state.right];
|
|
81
|
-
break;
|
|
82
|
-
case 'IfStatement':
|
|
83
|
-
logicItems = [...state.consequent, ...state.alternate];
|
|
84
|
-
break;
|
|
85
|
-
case 'ForEachStatement':
|
|
86
|
-
logicItems = [...state.body, state.each, state.start, state.end];
|
|
87
|
-
break;
|
|
88
|
-
case 'Match':
|
|
89
|
-
logicItems = [state.expression, ...state.cases.map(getStatement).flat(1)];
|
|
90
|
-
break;
|
|
91
|
-
case 'MatchCase':
|
|
92
|
-
logicItems = [...state.patterns, ...state.body];
|
|
93
|
-
break;
|
|
94
|
-
case 'SwitchStatement':
|
|
95
|
-
logicItems = state.cases.map(getStatement).flat(1);
|
|
96
|
-
break;
|
|
97
|
-
case 'SwitchCase':
|
|
98
|
-
logicItems = [state.test, ...state.consequent];
|
|
99
|
-
break;
|
|
100
|
-
case 'WhileStatement':
|
|
101
|
-
logicItems = [state.test, ...state.body];
|
|
102
|
-
break;
|
|
103
|
-
case 'CallLogic':
|
|
104
|
-
logicItems = state.arguments?.map((item) => item.expression);
|
|
105
|
-
getLogic(state.calleewholeKey, app, diffLogicList);
|
|
106
|
-
break;
|
|
107
|
-
case 'CallFunction':
|
|
108
|
-
logicItems = state.arguments?.map((item) => item.expression);
|
|
109
|
-
break;
|
|
110
|
-
case 'CallInterface':
|
|
111
|
-
logicItems = state.arguments?.map((item) => item.expression);
|
|
112
|
-
break;
|
|
113
|
-
case 'ExternalDestination':
|
|
114
|
-
logicItems = [state.anchor, state.link];
|
|
115
|
-
break;
|
|
116
|
-
case 'BatchAssignment':
|
|
117
|
-
logicItems = [state.left?.expression, ...state.left?.members, ...state.rights.map((item) => [item?.expression, ...item?.members]).flat(1)];
|
|
118
|
-
break;
|
|
119
|
-
case 'MemberExpression':
|
|
120
|
-
logicItems = [state.object, state.property];
|
|
121
|
-
break;
|
|
122
|
-
case 'StringInterpolation':
|
|
123
|
-
logicItems = [...state.expressions];
|
|
124
|
-
break;
|
|
125
|
-
case 'NewComposite':
|
|
126
|
-
logicItems = [...state.rights.map((item) => item.expression)];
|
|
127
|
-
break;
|
|
128
|
-
case 'NewList':
|
|
129
|
-
logicItems = [...state.items];
|
|
130
|
-
break;
|
|
131
|
-
default:
|
|
132
|
-
break;
|
|
133
|
-
}
|
|
134
|
-
return logicItems.filter((item) => !!item);
|
|
135
|
-
}
|
|
136
|
-
/* 小程序影响的服务端发布 */
|
|
137
|
-
function getMiniAppChange(target, obj, action) {
|
|
138
|
-
if (!target.app.miniEnable) {
|
|
139
|
-
return false;
|
|
140
|
-
}
|
|
141
|
-
/* 分端以后需要改 */
|
|
142
|
-
const len = target.nodePath?.split('.').length;
|
|
143
|
-
if (len > 2) {
|
|
144
|
-
return false;
|
|
145
|
-
}
|
|
146
|
-
if (action === 'delete') {
|
|
147
|
-
return true;
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
if ('name' in obj || 'title' in obj) {
|
|
151
|
-
return true;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* 执行更新
|
|
157
|
-
*/
|
|
158
|
-
async function doAction(app, actionItem) {
|
|
159
|
-
let hasFrontEnd = false;
|
|
160
|
-
let hasBackEnd = false;
|
|
161
|
-
const actionList = [];
|
|
162
|
-
const { list, actionMsg, action } = actionItem || {};
|
|
163
|
-
const itemloop = (_i, app, diffArr) => {
|
|
164
|
-
const _l = getStatement(_i, app, diffArr);
|
|
165
|
-
if (_l.length) {
|
|
166
|
-
_l.map((_ii) => itemloop(_ii, app, diffArr));
|
|
167
|
-
}
|
|
168
|
-
};
|
|
169
|
-
const loopEle = (view, checkAuth) => {
|
|
170
|
-
if (view instanceof concepts_1.View) {
|
|
171
|
-
view?.elements?.forEach((item) => loopEle(item, checkAuth));
|
|
172
|
-
}
|
|
173
|
-
view?.children?.forEach((item) => loopEle(item, checkAuth));
|
|
174
|
-
if (view instanceof concepts_1.ViewElement) {
|
|
175
|
-
if (view.bindEvents.length) {
|
|
176
|
-
const diffArr = [];
|
|
177
|
-
view.bindEvents.forEach((bindEvent) => {
|
|
178
|
-
bindEvent.logics.forEach((logic) => {
|
|
179
|
-
logic.body.forEach((logicItem) => itemloop(logicItem, app, diffArr));
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
const result = diffArr.filter((item) => item.startsWith('app') || item.startsWith('extensions'));
|
|
183
|
-
if (result.length) {
|
|
184
|
-
hasBackEnd = true;
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
if (view.tag === 'u-uploader' || view.tag === 'van-uploader') {
|
|
188
|
-
const bute = view?.bindAttrs.find((item) => item.name === 'url');
|
|
189
|
-
if (checkAuth) {
|
|
190
|
-
if (bute?.value.endsWith('/import') && !view.view.parentAuth) {
|
|
191
|
-
hasBackEnd = true;
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
else {
|
|
195
|
-
if (bute?.value.endsWith('/import')) {
|
|
196
|
-
hasBackEnd = true;
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
};
|
|
202
|
-
try {
|
|
203
|
-
if (Array.isArray(list)) {
|
|
204
|
-
list.forEach((event) => {
|
|
205
|
-
const emitTarget = event?.originEvent?.target;
|
|
206
|
-
const _path = event.originEvent.path;
|
|
207
|
-
const _root = _path.split('.')?.[1] || '';
|
|
208
|
-
if (['backend', 'overriddenLogics', 'dataSources', 'processes', 'roles', 'logics', 'enums', 'structures', 'interfaces', 'interfaceDependencies', 'configuration', 'dependencies', 'authLogics', 'authLogicsForCallInterface'].some((item) => _root.startsWith(item))) {
|
|
209
|
-
hasBackEnd = true;
|
|
210
|
-
}
|
|
211
|
-
if (emitTarget.concept === 'Logic') {
|
|
212
|
-
const diffArr = [];
|
|
213
|
-
if (emitTarget.body.length > 2) {
|
|
214
|
-
emitTarget.body.forEach((it) => {
|
|
215
|
-
itemloop(it, app, diffArr);
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
const result = diffArr.filter((item) => item.startsWith('app') || item.startsWith('extensions'));
|
|
219
|
-
if (result.length) {
|
|
220
|
-
hasBackEnd = true;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
if (emitTarget.view) {
|
|
224
|
-
hasFrontEnd = true;
|
|
225
|
-
}
|
|
226
|
-
if (emitTarget.concept === 'BindDirective') {
|
|
227
|
-
const isDelete = event?.originEvent?.action === 'delete';
|
|
228
|
-
if (isDelete) {
|
|
229
|
-
const isAuto = ~event?.originEvent?.path?.indexOf('name=auth');
|
|
230
|
-
if (isAuto) {
|
|
231
|
-
hasBackEnd = true;
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
if (event?.originEvent?.object?.name === 'auth') {
|
|
235
|
-
hasBackEnd = true;
|
|
236
|
-
}
|
|
237
|
-
}
|
|
238
|
-
if (emitTarget.concept === 'View') {
|
|
239
|
-
if (getMiniAppChange(emitTarget, event?.originEvent?.object, event?.originEvent?.action)) {
|
|
240
|
-
hasBackEnd = true;
|
|
241
|
-
}
|
|
242
|
-
const isDelete = event?.originEvent?.action === 'delete';
|
|
243
|
-
const isUpdateAuth = event?.originEvent?.action === 'update' && event?.originEvent?.object && 'auth' in event?.originEvent?.object;
|
|
244
|
-
const isUpdateBindRoles = event?.originEvent?.action === 'update' && event?.originEvent?.object && 'bindRoles' in event?.originEvent?.object;
|
|
245
|
-
if (isDelete || isUpdateAuth || isUpdateBindRoles) {
|
|
246
|
-
hasBackEnd = true;
|
|
247
|
-
// const app = emitTarget.app;
|
|
248
|
-
// const diffArr: string[] = [];
|
|
249
|
-
// emitTarget.logics.forEach((logic: Logic) => {
|
|
250
|
-
// if (logic.body.length > 2) {
|
|
251
|
-
// logic.body.forEach((it: LogicItem) => {
|
|
252
|
-
// itemloop(it, app, diffArr);
|
|
253
|
-
// });
|
|
254
|
-
// }
|
|
255
|
-
// });
|
|
256
|
-
// const result = diffArr.filter((item) => item.startsWith('app') || item.startsWith('extensions'));
|
|
257
|
-
// if (result.length) {
|
|
258
|
-
// hasBackEnd = true;
|
|
259
|
-
// }
|
|
260
|
-
// emitTarget.children.forEach((item: View | ViewElement) => loopEle(item, isDelete));
|
|
261
|
-
// emitTarget.elements.forEach((item: View | ViewElement) => loopEle(item, isDelete));
|
|
262
|
-
}
|
|
263
|
-
hasFrontEnd = true;
|
|
264
|
-
}
|
|
265
|
-
if (emitTarget.concept === 'ViewElement') {
|
|
266
|
-
if (event?.originEvent?.action !== 'create') {
|
|
267
|
-
if (event?.originEvent?.object && 'bindRoles' in event?.originEvent?.object) {
|
|
268
|
-
hasBackEnd = true;
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
loopEle(emitTarget, true);
|
|
272
|
-
}
|
|
273
|
-
if (emitTarget.concept === 'BindAttribute' && emitTarget.name === 'url' && emitTarget.value.endsWith('/import')) {
|
|
274
|
-
if (!emitTarget.view.parentAuth) {
|
|
275
|
-
hasBackEnd = true;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
if (emitTarget.concept === 'CallLogic') {
|
|
279
|
-
const arrlist = [];
|
|
280
|
-
getLogic(emitTarget.calleeKey, emitTarget.app, arrlist);
|
|
281
|
-
const result = arrlist.filter((item) => item.startsWith('app') || item.startsWith('extensions'));
|
|
282
|
-
// console.log(result, 'CallLogic');
|
|
283
|
-
if (result.length) {
|
|
284
|
-
hasBackEnd = true;
|
|
285
|
-
}
|
|
286
|
-
}
|
|
287
|
-
// 更新端时需要出发后端更新
|
|
288
|
-
if (emitTarget.concept === 'Frontend') {
|
|
289
|
-
hasBackEnd = true;
|
|
290
|
-
}
|
|
291
|
-
event.eventList.forEach(({ action, path, object: objItem }) => {
|
|
292
|
-
if (Array.isArray(objItem)) {
|
|
293
|
-
if (action === 'update') {
|
|
294
|
-
actionList.push({
|
|
295
|
-
action,
|
|
296
|
-
path,
|
|
297
|
-
node: objItem[0],
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
else {
|
|
301
|
-
objItem.forEach((item, index) => {
|
|
302
|
-
actionList.push({
|
|
303
|
-
action,
|
|
304
|
-
path,
|
|
305
|
-
node: item,
|
|
306
|
-
});
|
|
307
|
-
});
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
actionList.push({
|
|
312
|
-
action,
|
|
313
|
-
path,
|
|
314
|
-
object: objItem,
|
|
315
|
-
});
|
|
316
|
-
}
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
}
|
|
321
|
-
catch (error) {
|
|
322
|
-
console.log(error);
|
|
323
|
-
exports.taskQueue.refreshNasl(app, {
|
|
324
|
-
errorInfo: {
|
|
325
|
-
message: error?.message,
|
|
326
|
-
stack: error?.stack,
|
|
327
|
-
},
|
|
328
|
-
});
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
const instructList = [{
|
|
332
|
-
uuid: (0, uuid_1.v4)().replace(/-/g, ''),
|
|
333
|
-
actions: actionList,
|
|
334
|
-
}];
|
|
335
|
-
saveNasl({ app, hasFrontEnd, hasBackEnd, instructList });
|
|
336
|
-
if (!app._historying) {
|
|
337
|
-
if (app._historyIndex !== app._historyList.length) {
|
|
338
|
-
app._historyList = app._historyList.splice(0, app._historyIndex);
|
|
339
|
-
}
|
|
340
|
-
app._historyList.push({
|
|
341
|
-
actionMsg,
|
|
342
|
-
list: list.map((item) => item.originEvent),
|
|
343
|
-
});
|
|
344
|
-
app._historyIndex = app._historyList.length;
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
const actionMap = {
|
|
348
|
-
undo: '已撤销操作:',
|
|
349
|
-
redo: '已重做操作:',
|
|
350
|
-
};
|
|
351
|
-
let msg = actionMap[action];
|
|
352
|
-
msg += actionMsg;
|
|
353
|
-
vue_1.default.prototype.$toast.info(msg);
|
|
354
|
-
app._historying = false;
|
|
355
|
-
}
|
|
356
|
-
stepRecorder_1.default.initialized && stepRecorder_1.default.record(actionMsg, actionItem, actionList);
|
|
357
|
-
}
|
|
358
|
-
var TaskQueueStatus;
|
|
359
|
-
(function (TaskQueueStatus) {
|
|
360
|
-
TaskQueueStatus[TaskQueueStatus["ExceedMaxTaskCount"] = 0] = "ExceedMaxTaskCount";
|
|
361
|
-
TaskQueueStatus[TaskQueueStatus["Retrying"] = 1] = "Retrying";
|
|
362
|
-
})(TaskQueueStatus || (TaskQueueStatus = {}));
|
|
363
|
-
class TaskQueue {
|
|
364
|
-
queue = [];
|
|
365
|
-
lastQueue = [];
|
|
366
|
-
running = false;
|
|
367
|
-
maxTaskCount = 10;
|
|
368
|
-
status = undefined;
|
|
369
|
-
addTask(task) {
|
|
370
|
-
this.queue.push(task);
|
|
371
|
-
if (this.queue.length >= this.maxTaskCount) {
|
|
372
|
-
this.status = TaskQueueStatus.ExceedMaxTaskCount;
|
|
373
|
-
task.app.emit('ExceedMaxTaskCount');
|
|
374
|
-
}
|
|
375
|
-
this.run();
|
|
376
|
-
}
|
|
377
|
-
clear() {
|
|
378
|
-
this.queue = [];
|
|
379
|
-
this.lastQueue = [];
|
|
380
|
-
this.status = undefined;
|
|
381
|
-
this.running = false;
|
|
382
|
-
}
|
|
383
|
-
async run(queue = this.queue) {
|
|
384
|
-
if (this.running)
|
|
385
|
-
return;
|
|
386
|
-
if (queue.length === 0)
|
|
387
|
-
return;
|
|
388
|
-
const app = queue[0].app;
|
|
389
|
-
let hasFrontEnd = false;
|
|
390
|
-
let hasBackEnd = false;
|
|
391
|
-
let instructList = [];
|
|
392
|
-
for (const task of queue) {
|
|
393
|
-
if (task.hasFrontEnd)
|
|
394
|
-
hasFrontEnd = true;
|
|
395
|
-
if (task.hasBackEnd)
|
|
396
|
-
hasBackEnd = true;
|
|
397
|
-
instructList = instructList.concat(task.instructList);
|
|
398
|
-
}
|
|
399
|
-
if (queue === this.queue) {
|
|
400
|
-
this.lastQueue = [...queue];
|
|
401
|
-
this.queue = [];
|
|
402
|
-
}
|
|
403
|
-
this.running = true;
|
|
404
|
-
const error = await _saveNasl({
|
|
405
|
-
app, hasFrontEnd, hasBackEnd, instructList,
|
|
406
|
-
});
|
|
407
|
-
// code: 401650, 检测到当前应用拉取操作已被强制结束, 用户确认后再刷新
|
|
408
|
-
// code: 500502 msg: "该应用已在新tab 页打开,请刷新!" 不重试或刷新
|
|
409
|
-
if (!error)
|
|
410
|
-
this.recover(app);
|
|
411
|
-
else if (![401650, 500502].includes(error.code)) {
|
|
412
|
-
// 连接失败,或超时,或后端持久化异常
|
|
413
|
-
if ((error.message === 'Network Error' || error.message?.includes('timeout') || error.code === 500500)
|
|
414
|
-
&& this.status !== TaskQueueStatus.Retrying) {
|
|
415
|
-
this.running = false;
|
|
416
|
-
this.retry();
|
|
417
|
-
}
|
|
418
|
-
else
|
|
419
|
-
this.refreshNasl(app);
|
|
420
|
-
return;
|
|
421
|
-
}
|
|
422
|
-
this.running = false;
|
|
423
|
-
this.run();
|
|
424
|
-
}
|
|
425
|
-
retry() {
|
|
426
|
-
if (this.lastQueue.length === 0)
|
|
427
|
-
return;
|
|
428
|
-
const app = this.lastQueue[0].app;
|
|
429
|
-
this.status = TaskQueueStatus.Retrying;
|
|
430
|
-
app.emit('Retrying');
|
|
431
|
-
this.run(this.lastQueue);
|
|
432
|
-
}
|
|
433
|
-
async refreshNasl(app, options = { errorInfo: {} }) {
|
|
434
|
-
const failedQueue = this.lastQueue.map(({ hasFrontEnd, hasBackEnd, instructList }) => ({
|
|
435
|
-
hasFrontEnd, hasBackEnd, instructList,
|
|
436
|
-
}));
|
|
437
|
-
const queue = this.queue.map(({ hasFrontEnd, hasBackEnd, instructList }) => ({
|
|
438
|
-
hasFrontEnd, hasBackEnd, instructList,
|
|
439
|
-
}));
|
|
440
|
-
await service_1.default.saveFrontendNasl({
|
|
441
|
-
body: {
|
|
442
|
-
nasl: app.toJSON(),
|
|
443
|
-
failedQueue,
|
|
444
|
-
queue,
|
|
445
|
-
errorInfo: options.errorInfo,
|
|
446
|
-
},
|
|
447
|
-
}).catch((err) => {
|
|
448
|
-
console.log('备份 nasl 失败:', err);
|
|
449
|
-
});
|
|
450
|
-
this.clear();
|
|
451
|
-
app.emit('refresh');
|
|
452
|
-
}
|
|
453
|
-
recover(app) {
|
|
454
|
-
switch (this.status) {
|
|
455
|
-
case TaskQueueStatus.ExceedMaxTaskCount:
|
|
456
|
-
app.emit('BelowMaxTaskCount');
|
|
457
|
-
this.status = undefined;
|
|
458
|
-
break;
|
|
459
|
-
case TaskQueueStatus.Retrying:
|
|
460
|
-
app.emit('SuccessRetry');
|
|
461
|
-
this.status = undefined;
|
|
462
|
-
break;
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
exports.taskQueue = new TaskQueue();
|
|
467
|
-
async function saveNasl(options) {
|
|
468
|
-
exports.taskQueue.addTask(options);
|
|
469
|
-
}
|
|
470
|
-
async function _saveNasl(options) {
|
|
471
|
-
const { app, hasFrontEnd, hasBackEnd, instructList } = options;
|
|
472
|
-
app.emit('saving');
|
|
473
|
-
let ChangedNASLType = '';
|
|
474
|
-
if (hasFrontEnd && hasBackEnd) {
|
|
475
|
-
ChangedNASLType = 'both';
|
|
476
|
-
}
|
|
477
|
-
else if (hasFrontEnd) {
|
|
478
|
-
ChangedNASLType = 'web';
|
|
479
|
-
}
|
|
480
|
-
else if (hasBackEnd) {
|
|
481
|
-
ChangedNASLType = 'backend';
|
|
482
|
-
}
|
|
483
|
-
let err;
|
|
484
|
-
if (config_1.config.storage.protocol === 'http') {
|
|
485
|
-
try {
|
|
486
|
-
await service_1.default.batchInstruct({
|
|
487
|
-
body: instructList,
|
|
488
|
-
headers: {
|
|
489
|
-
appId: app.id,
|
|
490
|
-
ChangedNASLType,
|
|
491
|
-
tabTimestamp,
|
|
492
|
-
// 其他封装在 storageService 里了
|
|
493
|
-
},
|
|
494
|
-
});
|
|
495
|
-
}
|
|
496
|
-
catch (error) {
|
|
497
|
-
err = error;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
else if (config_1.config.storage.protocol === 'mock') {
|
|
501
|
-
// Do nothing
|
|
502
|
-
}
|
|
503
|
-
else {
|
|
504
|
-
const json = await fs.readJSON(config_1.config.storage.basePath);
|
|
505
|
-
let actionList = [];
|
|
506
|
-
for (const { actions } of instructList) {
|
|
507
|
-
actionList = actionList.concat(actions);
|
|
508
|
-
}
|
|
509
|
-
jsoner.batchAction(json, actionList);
|
|
510
|
-
await fs.writeJSON(config_1.config.storage.basePath, json, {
|
|
511
|
-
spaces: 4,
|
|
512
|
-
});
|
|
513
|
-
}
|
|
514
|
-
app.emit('saved', err);
|
|
515
|
-
return err;
|
|
516
|
-
}
|
|
517
|
-
function handleApp(app) {
|
|
518
|
-
app._isCollectingCount = 0;
|
|
519
|
-
app._collectingList = [];
|
|
520
|
-
app._historyList = [];
|
|
521
|
-
app._historyIndex = 0;
|
|
522
|
-
app._historying = false;
|
|
523
|
-
app._timer = null;
|
|
524
|
-
app.on('undo', () => {
|
|
525
|
-
app._historying = true;
|
|
526
|
-
});
|
|
527
|
-
app.on('redo', () => {
|
|
528
|
-
app._historying = true;
|
|
529
|
-
});
|
|
530
|
-
/**
|
|
531
|
-
* 开启收集
|
|
532
|
-
*/
|
|
533
|
-
app.on('collect:start', (event) => {
|
|
534
|
-
if (app._timer) {
|
|
535
|
-
clearTimeout(app._timer);
|
|
536
|
-
}
|
|
537
|
-
if (!app._noTimer) {
|
|
538
|
-
app._noTimer = event.noTimer;
|
|
539
|
-
}
|
|
540
|
-
if (!app._noTimer) {
|
|
541
|
-
app._timer = setTimeout(() => {
|
|
542
|
-
console.error('收集超时,请及时排查原因', event);
|
|
543
|
-
exports.taskQueue.refreshNasl(app, {
|
|
544
|
-
errorInfo: {
|
|
545
|
-
message: '收集超时,请及时排查原因',
|
|
546
|
-
},
|
|
547
|
-
});
|
|
548
|
-
}, 2500);
|
|
549
|
-
}
|
|
550
|
-
if (!app._isCollectingCount) {
|
|
551
|
-
app._actionMsg = event?.actionMsg;
|
|
552
|
-
app._action = event?.action;
|
|
553
|
-
}
|
|
554
|
-
app._isCollectingCount++;
|
|
555
|
-
});
|
|
556
|
-
/**
|
|
557
|
-
* 结束收集
|
|
558
|
-
*/
|
|
559
|
-
app.on('collect:end', async () => {
|
|
560
|
-
app._isCollectingCount--;
|
|
561
|
-
if (app._isCollectingCount === 0) {
|
|
562
|
-
if (app._timer) {
|
|
563
|
-
clearTimeout(app._timer);
|
|
564
|
-
}
|
|
565
|
-
// 结束收集时,立即将全局收集变量状态重置,防止下次收集数据混乱
|
|
566
|
-
const collectingList = app._collectingList;
|
|
567
|
-
const actionMsg = app._actionMsg;
|
|
568
|
-
const action = app._action;
|
|
569
|
-
app._collectingList = [];
|
|
570
|
-
app._actionMsg = '';
|
|
571
|
-
app._action = '';
|
|
572
|
-
app._noTimer = undefined;
|
|
573
|
-
if (Array.isArray(collectingList) && collectingList.length) {
|
|
574
|
-
mountDatabaseTypes(app);
|
|
575
|
-
app.naslServer?.embeddedTSEmitter?.emit('change', {
|
|
576
|
-
value: collectingList,
|
|
577
|
-
});
|
|
578
|
-
await doAction(app, {
|
|
579
|
-
list: collectingList,
|
|
580
|
-
actionMsg,
|
|
581
|
-
action,
|
|
582
|
-
});
|
|
583
|
-
}
|
|
584
|
-
}
|
|
585
|
-
else if (app._isCollectingCount < 0) {
|
|
586
|
-
app._isCollectingCount = 0;
|
|
587
|
-
throw Error('关闭收集有问题,请排查');
|
|
588
|
-
}
|
|
589
|
-
});
|
|
590
|
-
/**
|
|
591
|
-
* 有变更
|
|
592
|
-
*/
|
|
593
|
-
app.on('storage', (event) => {
|
|
594
|
-
// 是否正在收集
|
|
595
|
-
if (app._isCollectingCount === 0) {
|
|
596
|
-
app.naslServer?.embeddedTSEmitter?.emit('change', {
|
|
597
|
-
value: [event],
|
|
598
|
-
});
|
|
599
|
-
let actionMsg = '';
|
|
600
|
-
const { action, target } = event.originEvent || {};
|
|
601
|
-
const { concept, name } = target || {};
|
|
602
|
-
switch (action) {
|
|
603
|
-
case 'create':
|
|
604
|
-
actionMsg = '添加';
|
|
605
|
-
break;
|
|
606
|
-
case 'delete':
|
|
607
|
-
actionMsg = '删除';
|
|
608
|
-
break;
|
|
609
|
-
case 'update':
|
|
610
|
-
actionMsg = '修改';
|
|
611
|
-
break;
|
|
612
|
-
}
|
|
613
|
-
actionMsg += (0, decorators_1.getConceptConstructor)(concept).nodeTitle;
|
|
614
|
-
if (name) {
|
|
615
|
-
actionMsg += `“${name}”`;
|
|
616
|
-
}
|
|
617
|
-
doAction(app, {
|
|
618
|
-
list: [event],
|
|
619
|
-
actionMsg,
|
|
620
|
-
});
|
|
621
|
-
}
|
|
622
|
-
else {
|
|
623
|
-
app._collectingList.push(event);
|
|
624
|
-
}
|
|
625
|
-
});
|
|
626
|
-
}
|
|
627
|
-
exports.handleApp = handleApp;
|
|
628
|
-
/**
|
|
629
|
-
* 加载 app
|
|
630
|
-
* @param appId 如果是从文件读,就不需要传
|
|
631
|
-
* @returns app 对象
|
|
632
|
-
*/
|
|
633
|
-
async function loadApp(appId) {
|
|
634
|
-
let app;
|
|
635
|
-
if (config_1.config.storage.protocol === 'http') {
|
|
636
|
-
console.time('batchQuery');
|
|
637
|
-
const promises = [
|
|
638
|
-
service_1.default.batchQuery({
|
|
639
|
-
body: [
|
|
640
|
-
{
|
|
641
|
-
path: 'app',
|
|
642
|
-
// excludes: ['views'],
|
|
643
|
-
},
|
|
644
|
-
],
|
|
645
|
-
headers: {
|
|
646
|
-
appId,
|
|
647
|
-
checkTabOpenTime: 'true',
|
|
648
|
-
// 其他封装在 storageService 里了
|
|
649
|
-
},
|
|
650
|
-
config: {
|
|
651
|
-
shortResponse: false,
|
|
652
|
-
},
|
|
653
|
-
}),
|
|
654
|
-
service_1.default.breakpoint({
|
|
655
|
-
body: { appId },
|
|
656
|
-
}),
|
|
657
|
-
];
|
|
658
|
-
const [batchQueryRes, breakpointRes] = await Promise.all(promises);
|
|
659
|
-
// 请求
|
|
660
|
-
console.timeEnd('batchQuery');
|
|
661
|
-
tabTimestamp = batchQueryRes?.headers?.tabtimestamp;
|
|
662
|
-
const data = batchQueryRes?.data?.result;
|
|
663
|
-
console.time('new App');
|
|
664
|
-
app = new concepts_1.App(Object.assign(data?.[0], { id: appId }));
|
|
665
|
-
breakpointRes?.forEach((item = {}) => {
|
|
666
|
-
const { path, breakpointStatus } = item;
|
|
667
|
-
if (breakpointStatus) {
|
|
668
|
-
const node = app.findNodeByPath(path);
|
|
669
|
-
if (node) {
|
|
670
|
-
node.breakpoint = breakpointStatus;
|
|
671
|
-
}
|
|
672
|
-
}
|
|
673
|
-
});
|
|
674
|
-
console.timeEnd('new App');
|
|
675
|
-
if (!app.id) {
|
|
676
|
-
app.id = appId;
|
|
677
|
-
}
|
|
678
|
-
(0, breakpoint_1.addBreakpointNodesFromApp)(app);
|
|
679
|
-
}
|
|
680
|
-
else if (config_1.config.storage.protocol === 'mock') {
|
|
681
|
-
app = new concepts_1.App({
|
|
682
|
-
id: appId,
|
|
683
|
-
concept: 'App',
|
|
684
|
-
name: 'devapp',
|
|
685
|
-
title: '开发应用',
|
|
686
|
-
envs: 'dev,online',
|
|
687
|
-
hasAuth: true,
|
|
688
|
-
hasUserCenter: true,
|
|
689
|
-
dataSources: [],
|
|
690
|
-
structures: [],
|
|
691
|
-
enums: [],
|
|
692
|
-
logics: [],
|
|
693
|
-
interfaces: [],
|
|
694
|
-
processes: [],
|
|
695
|
-
roles: [],
|
|
696
|
-
dependencies: [],
|
|
697
|
-
interfaceDependencies: [],
|
|
698
|
-
frontends: [],
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
else {
|
|
702
|
-
const json = await fs.readJSON(config_1.config.storage.basePath);
|
|
703
|
-
app = new concepts_1.App(appId ? Object.assign(json, { id: appId }) : json);
|
|
704
|
-
}
|
|
705
|
-
// config.scope = app.scope;
|
|
706
|
-
handleApp(app);
|
|
707
|
-
app._isCollectingCount = 0;
|
|
708
|
-
mountDatabaseTypes(app);
|
|
709
|
-
return app;
|
|
710
|
-
}
|
|
711
|
-
exports.loadApp = loadApp;
|
|
712
|
-
// 在app上挂载所有的数据库类型
|
|
713
|
-
async function mountDatabaseTypes(app) {
|
|
714
|
-
if (!app.__databaseTypeMap) {
|
|
715
|
-
app.__databaseTypeMap = {};
|
|
716
|
-
}
|
|
717
|
-
const dataSources = app?.dataSources;
|
|
718
|
-
const dbTypeSet = new Set();
|
|
719
|
-
if (Array.isArray(dataSources)) {
|
|
720
|
-
dataSources.forEach((dataSource) => {
|
|
721
|
-
const dataSourceSqlType = JSON.parse(dataSource.dataSourceConfig?.devProperty?.value || '{}')?.type;
|
|
722
|
-
if (dataSourceSqlType && !app.__databaseTypeMap[dataSourceSqlType]) {
|
|
723
|
-
dbTypeSet.add(dataSourceSqlType);
|
|
724
|
-
}
|
|
725
|
-
});
|
|
726
|
-
}
|
|
727
|
-
const dbTypes = [...dbTypeSet];
|
|
728
|
-
if (Array.isArray(dbTypes) && dbTypes.length) {
|
|
729
|
-
const res = await (0, exports.databaseTypes)({
|
|
730
|
-
query: {
|
|
731
|
-
dbTypes: dbTypes.join(','),
|
|
732
|
-
},
|
|
733
|
-
});
|
|
734
|
-
if (Array.isArray(res)) {
|
|
735
|
-
res.forEach((databaseType) => {
|
|
736
|
-
const { dbType, columnTypes } = databaseType || {};
|
|
737
|
-
const columnTypeMap = {};
|
|
738
|
-
if (Array.isArray(columnTypes)) {
|
|
739
|
-
columnTypes.forEach((columnType) => {
|
|
740
|
-
const { naslType, dataBaseTypes } = columnType;
|
|
741
|
-
const dataBaseTypeMap = {};
|
|
742
|
-
let defaultDataBaseType;
|
|
743
|
-
if (Array.isArray(dataBaseTypes)) {
|
|
744
|
-
dataBaseTypes.forEach((dataBaseType) => {
|
|
745
|
-
const { type } = dataBaseType || {};
|
|
746
|
-
if (type) {
|
|
747
|
-
dataBaseTypeMap[type] = dataBaseType;
|
|
748
|
-
const { defaultType } = dataBaseType;
|
|
749
|
-
if (defaultType) {
|
|
750
|
-
defaultDataBaseType = dataBaseType;
|
|
751
|
-
}
|
|
752
|
-
}
|
|
753
|
-
});
|
|
754
|
-
}
|
|
755
|
-
columnTypeMap[naslType] = {
|
|
756
|
-
dataBaseTypes,
|
|
757
|
-
dataBaseTypeMap,
|
|
758
|
-
defaultDataBaseType,
|
|
759
|
-
};
|
|
760
|
-
});
|
|
761
|
-
}
|
|
762
|
-
app.__databaseTypeMap[dbType] = columnTypeMap;
|
|
763
|
-
});
|
|
764
|
-
}
|
|
765
|
-
}
|
|
766
|
-
if (Array.isArray(dataSources)) {
|
|
767
|
-
dataSources.forEach((dataSource) => {
|
|
768
|
-
dataSource.__hasDatabaseConfig = !!(app.__databaseTypeMap?.[dataSource.dataSourceSqlType]);
|
|
769
|
-
});
|
|
770
|
-
}
|
|
771
|
-
}
|
|
772
|
-
exports.mountDatabaseTypes = mountDatabaseTypes;
|
|
773
|
-
/**
|
|
774
|
-
* 加载 app
|
|
775
|
-
* @returns app 对象
|
|
776
|
-
*/
|
|
777
|
-
function loadAppSync() {
|
|
778
|
-
const json = fs.readJSONSync(config_1.config.storage.basePath);
|
|
779
|
-
const app = new concepts_1.App(json);
|
|
780
|
-
handleApp(app);
|
|
781
|
-
return app;
|
|
782
|
-
}
|
|
783
|
-
exports.loadAppSync = loadAppSync;
|
|
784
|
-
//# sourceMappingURL=init.js.map
|