@lcap/nasl 3.4.0-beta.6 → 3.5.0-alpha.1
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/.mocharc.js +1 -1
- package/out/automate/engine/uniqueName.js +7 -3
- package/out/automate/engine/uniqueName.js.map +1 -1
- package/out/automate/engine/utils.d.ts +1 -1
- package/out/automate/engine/utils.js +6 -6
- package/out/automate/engine/utils.js.map +1 -1
- package/out/bak/translator.js +2 -1
- package/out/bak/translator.js.map +1 -1
- package/out/breakpoint/generator/AfterStartNode.js +1 -1
- package/out/breakpoint/generator/AfterStartNode.js.map +1 -1
- package/out/breakpoint/generator/BeforeEndNode.js +1 -1
- package/out/breakpoint/generator/BeforeEndNode.js.map +1 -1
- package/out/breakpoint/generator/BreakpointNode.js +3 -3
- package/out/breakpoint/generator/BreakpointNode.js.map +1 -1
- package/out/common/BaseNode.d.ts +16 -12
- package/out/common/BaseNode.js +41 -140
- package/out/common/BaseNode.js.map +1 -1
- package/out/common/Command.js +1 -2
- package/out/common/Command.js.map +1 -1
- package/out/common/EventEmitter.d.ts +1 -1
- package/out/common/EventEmitter.js +8 -2
- package/out/common/EventEmitter.js.map +1 -1
- package/out/common/Messager.js +0 -2
- package/out/common/Messager.js.map +1 -1
- package/out/common/utils.d.ts +2 -2
- package/out/common/utils.js.map +1 -1
- package/out/concepts/Abort__.d.ts +1 -1
- package/out/concepts/Abort__.js +9 -17
- package/out/concepts/Abort__.js.map +1 -1
- package/out/concepts/AbstractInterface__.d.ts +1 -1
- package/out/concepts/AbstractInterface__.js +5 -9
- package/out/concepts/AbstractInterface__.js.map +1 -1
- package/out/concepts/Anchor__.d.ts +1 -1
- package/out/concepts/Anchor__.js +6 -19
- package/out/concepts/Anchor__.js.map +1 -1
- package/out/concepts/AnonymousFunction__.d.ts +5 -5
- package/out/concepts/AnonymousFunction__.js +28 -53
- package/out/concepts/AnonymousFunction__.js.map +1 -1
- package/out/concepts/App__.d.ts +19 -19
- package/out/concepts/App__.js +243 -295
- package/out/concepts/App__.js.map +1 -1
- package/out/concepts/Argument__.d.ts +3 -3
- package/out/concepts/Argument__.js +12 -35
- package/out/concepts/Argument__.js.map +1 -1
- package/out/concepts/Assignee__.d.ts +2 -2
- package/out/concepts/Assignee__.js +41 -46
- package/out/concepts/Assignee__.js.map +1 -1
- package/out/concepts/AssignmentLine__.d.ts +1 -1
- package/out/concepts/AssignmentLine__.js +13 -21
- package/out/concepts/AssignmentLine__.js.map +1 -1
- package/out/concepts/Assignment__.d.ts +2 -2
- package/out/concepts/Assignment__.js +43 -38
- package/out/concepts/Assignment__.js.map +1 -1
- package/out/concepts/Attribute__.d.ts +6 -6
- package/out/concepts/Attribute__.js +16 -74
- package/out/concepts/Attribute__.js.map +1 -1
- package/out/concepts/AuthInterface__.d.ts +3 -3
- package/out/concepts/AuthInterface__.js +11 -24
- package/out/concepts/AuthInterface__.js.map +1 -1
- package/out/concepts/AuthLogicForCallInterface__.d.ts +2 -2
- package/out/concepts/AuthLogicForCallInterface__.js +44 -50
- package/out/concepts/AuthLogicForCallInterface__.js.map +1 -1
- package/out/concepts/AuthLogic__.d.ts +7 -7
- package/out/concepts/AuthLogic__.js +11 -24
- package/out/concepts/AuthLogic__.js.map +1 -1
- package/out/concepts/BackendVariable__.d.ts +10 -10
- package/out/concepts/BackendVariable__.js +37 -58
- package/out/concepts/BackendVariable__.js.map +1 -1
- package/out/concepts/Backend__.d.ts +3 -3
- package/out/concepts/Backend__.js +21 -33
- package/out/concepts/Backend__.js.map +1 -1
- package/out/concepts/BatchAssignment__.d.ts +4 -4
- package/out/concepts/BatchAssignment__.js +45 -53
- package/out/concepts/BatchAssignment__.js.map +1 -1
- package/out/concepts/BinaryExpression__.d.ts +1 -1
- package/out/concepts/BinaryExpression__.js +15 -33
- package/out/concepts/BinaryExpression__.js.map +1 -1
- package/out/concepts/BindAttribute__.d.ts +13 -13
- package/out/concepts/BindAttribute__.js +29 -87
- package/out/concepts/BindAttribute__.js.map +1 -1
- package/out/concepts/BindDirective__.d.ts +7 -7
- package/out/concepts/BindDirective__.js +19 -66
- package/out/concepts/BindDirective__.js.map +1 -1
- package/out/concepts/BindEvent__.d.ts +11 -11
- package/out/concepts/BindEvent__.js +43 -66
- package/out/concepts/BindEvent__.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +7 -7
- package/out/concepts/BindStyle__.js +19 -36
- package/out/concepts/BindStyle__.js.map +1 -1
- package/out/concepts/Block__.d.ts +1 -1
- package/out/concepts/Block__.js +15 -20
- package/out/concepts/Block__.js.map +1 -1
- package/out/concepts/BooleanLiteral__.d.ts +1 -1
- package/out/concepts/BooleanLiteral__.js +5 -18
- package/out/concepts/BooleanLiteral__.js.map +1 -1
- package/out/concepts/CallAuthInterface__.d.ts +6 -5
- package/out/concepts/CallAuthInterface__.js +22 -27
- package/out/concepts/CallAuthInterface__.js.map +1 -1
- package/out/concepts/CallConnector__.d.ts +3 -3
- package/out/concepts/CallConnector__.js +16 -29
- package/out/concepts/CallConnector__.js.map +1 -1
- package/out/concepts/CallFunction__.d.ts +4 -4
- package/out/concepts/CallFunction__.js +59 -59
- package/out/concepts/CallFunction__.js.map +1 -1
- package/out/concepts/CallInterface__.d.ts +7 -6
- package/out/concepts/CallInterface__.js +65 -63
- package/out/concepts/CallInterface__.js.map +1 -1
- package/out/concepts/CallLogic__.d.ts +5 -5
- package/out/concepts/CallLogic__.js +116 -116
- package/out/concepts/CallLogic__.js.map +1 -1
- package/out/concepts/CallQueryComponent__.d.ts +15 -15
- package/out/concepts/CallQueryComponent__.js +83 -114
- package/out/concepts/CallQueryComponent__.js.map +1 -1
- package/out/concepts/Comment__.d.ts +1 -1
- package/out/concepts/Comment__.js +5 -18
- package/out/concepts/Comment__.js.map +1 -1
- package/out/concepts/CompletionProperty__.d.ts +2 -2
- package/out/concepts/CompletionProperty__.js +18 -62
- package/out/concepts/CompletionProperty__.js.map +1 -1
- package/out/concepts/ConfigGroup__.d.ts +3 -3
- package/out/concepts/ConfigGroup__.js +21 -33
- package/out/concepts/ConfigGroup__.js.map +1 -1
- package/out/concepts/ConfigPropertyValue__.d.ts +2 -2
- package/out/concepts/ConfigPropertyValue__.js +11 -29
- package/out/concepts/ConfigPropertyValue__.js.map +1 -1
- package/out/concepts/ConfigProperty__.d.ts +4 -4
- package/out/concepts/ConfigProperty__.js +21 -43
- package/out/concepts/ConfigProperty__.js.map +1 -1
- package/out/concepts/Configuration__.d.ts +4 -4
- package/out/concepts/Configuration__.js +21 -28
- package/out/concepts/Configuration__.js.map +1 -1
- package/out/concepts/Connection__.d.ts +4 -4
- package/out/concepts/Connection__.js +21 -43
- package/out/concepts/Connection__.js.map +1 -1
- package/out/concepts/ConnectorTrigger__.d.ts +7 -7
- package/out/concepts/ConnectorTrigger__.js +11 -34
- package/out/concepts/ConnectorTrigger__.js.map +1 -1
- package/out/concepts/Connector__.d.ts +15 -15
- package/out/concepts/Connector__.js +87 -124
- package/out/concepts/Connector__.js.map +1 -1
- package/out/concepts/Constant__.d.ts +11 -11
- package/out/concepts/Constant__.js +28 -43
- package/out/concepts/Constant__.js.map +1 -1
- package/out/concepts/CountersignPolicy__.d.ts +28 -0
- package/out/concepts/CountersignPolicy__.js +62 -0
- package/out/concepts/CountersignPolicy__.js.map +1 -0
- package/out/concepts/DataSource__.d.ts +4 -4
- package/out/concepts/DataSource__.js +22 -44
- package/out/concepts/DataSource__.js.map +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.d.ts +1 -1
- package/out/concepts/DatabaseTypeAnnotation__.js +5 -23
- package/out/concepts/DatabaseTypeAnnotation__.js.map +1 -1
- package/out/concepts/DefaultValue__.d.ts +2 -2
- package/out/concepts/DefaultValue__.js +43 -25
- package/out/concepts/DefaultValue__.js.map +1 -1
- package/out/concepts/Destination__.d.ts +5 -5
- package/out/concepts/Destination__.js +33 -53
- package/out/concepts/Destination__.js.map +1 -1
- package/out/concepts/End__.d.ts +1 -1
- package/out/concepts/End__.js +9 -17
- package/out/concepts/End__.js.map +1 -1
- package/out/concepts/EntityIndex__.d.ts +5 -5
- package/out/concepts/EntityIndex__.js +15 -43
- package/out/concepts/EntityIndex__.js.map +1 -1
- package/out/concepts/EntityProperty__.d.ts +13 -9
- package/out/concepts/EntityProperty__.js +41 -119
- package/out/concepts/EntityProperty__.js.map +1 -1
- package/out/concepts/Entity__.d.ts +7 -7
- package/out/concepts/Entity__.js +40 -64
- package/out/concepts/Entity__.js.map +1 -1
- package/out/concepts/EnumItem__.d.ts +4 -4
- package/out/concepts/EnumItem__.js +11 -37
- package/out/concepts/EnumItem__.js.map +1 -1
- package/out/concepts/Enum__.d.ts +5 -5
- package/out/concepts/Enum__.js +23 -54
- package/out/concepts/Enum__.js.map +1 -1
- package/out/concepts/Event__.d.ts +5 -5
- package/out/concepts/Event__.js +21 -53
- package/out/concepts/Event__.js.map +1 -1
- package/out/concepts/ExternalDestination__.d.ts +2 -2
- package/out/concepts/ExternalDestination__.js +38 -33
- package/out/concepts/ExternalDestination__.js.map +1 -1
- package/out/concepts/ForEachStatement__.d.ts +2 -2
- package/out/concepts/ForEachStatement__.js +28 -73
- package/out/concepts/ForEachStatement__.js.map +1 -1
- package/out/concepts/FrontendLibrary__.d.ts +5 -5
- package/out/concepts/FrontendLibrary__.js +30 -47
- package/out/concepts/FrontendLibrary__.js.map +1 -1
- package/out/concepts/FrontendVariable__.d.ts +13 -1
- package/out/concepts/FrontendVariable__.js +23 -13
- package/out/concepts/FrontendVariable__.js.map +1 -1
- package/out/concepts/Frontend__.d.ts +8 -8
- package/out/concepts/Frontend__.js +91 -108
- package/out/concepts/Frontend__.js.map +1 -1
- package/out/concepts/Function__.d.ts +8 -8
- package/out/concepts/Function__.js +53 -73
- package/out/concepts/Function__.js.map +1 -1
- package/out/concepts/I18nInfo__.d.ts +1 -1
- package/out/concepts/I18nInfo__.js +5 -28
- package/out/concepts/I18nInfo__.js.map +1 -1
- package/out/concepts/Identifier__.d.ts +2 -2
- package/out/concepts/Identifier__.js +43 -38
- package/out/concepts/Identifier__.js.map +1 -1
- package/out/concepts/IfStatement__.d.ts +1 -1
- package/out/concepts/IfStatement__.js +43 -30
- package/out/concepts/IfStatement__.js.map +1 -1
- package/out/concepts/ImportedInterface__.d.ts +1 -1
- package/out/concepts/ImportedInterface__.js +5 -14
- package/out/concepts/ImportedInterface__.js.map +1 -1
- package/out/concepts/Integration__.d.ts +5 -5
- package/out/concepts/Integration__.js +21 -33
- package/out/concepts/Integration__.js.map +1 -1
- package/out/concepts/InterfaceParam__.d.ts +11 -11
- package/out/concepts/InterfaceParam__.js +11 -49
- package/out/concepts/InterfaceParam__.js.map +1 -1
- package/out/concepts/Interface__.d.ts +16 -15
- package/out/concepts/Interface__.js +43 -81
- package/out/concepts/Interface__.js.map +1 -1
- package/out/concepts/JSBlock__.d.ts +1 -1
- package/out/concepts/JSBlock__.js +9 -22
- package/out/concepts/JSBlock__.js.map +1 -1
- package/out/concepts/JavaLogic__.d.ts +1 -1
- package/out/concepts/JavaLogic__.js +5 -28
- package/out/concepts/JavaLogic__.js.map +1 -1
- package/out/concepts/LogicItem__.d.ts +12 -12
- package/out/concepts/LogicItem__.js +18 -45
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/Logic__.d.ts +20 -19
- package/out/concepts/Logic__.js +110 -155
- package/out/concepts/Logic__.js.map +1 -1
- package/out/concepts/MatchCase__.d.ts +2 -2
- package/out/concepts/MatchCase__.js +36 -43
- package/out/concepts/MatchCase__.js.map +1 -1
- package/out/concepts/Match__.d.ts +3 -3
- package/out/concepts/Match__.js +84 -56
- package/out/concepts/Match__.js.map +1 -1
- package/out/concepts/MemberExpression__.d.ts +3 -2
- package/out/concepts/MemberExpression__.js +58 -48
- package/out/concepts/MemberExpression__.js.map +1 -1
- package/out/concepts/MetadataType__.d.ts +6 -14
- package/out/concepts/MetadataType__.js +36 -77
- package/out/concepts/MetadataType__.js.map +1 -1
- package/out/concepts/MicroApp__.d.ts +1 -1
- package/out/concepts/MicroApp__.js +5 -48
- package/out/concepts/MicroApp__.js.map +1 -1
- package/out/concepts/Module__.d.ts +16 -16
- package/out/concepts/Module__.js +126 -190
- package/out/concepts/Module__.js.map +1 -1
- package/out/concepts/MsgTriggerEvent__.d.ts +8 -8
- package/out/concepts/MsgTriggerEvent__.js +21 -28
- package/out/concepts/MsgTriggerEvent__.js.map +1 -1
- package/out/concepts/MsgTriggerLauncher__.d.ts +5 -5
- package/out/concepts/MsgTriggerLauncher__.js +21 -33
- package/out/concepts/MsgTriggerLauncher__.js.map +1 -1
- package/out/concepts/MultiApprovalPolicy__.d.ts +26 -0
- package/out/concepts/MultiApprovalPolicy__.js +59 -0
- package/out/concepts/MultiApprovalPolicy__.js.map +1 -0
- package/out/concepts/Namespace__.d.ts +12 -12
- package/out/concepts/Namespace__.js +115 -140
- package/out/concepts/Namespace__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +6 -6
- package/out/concepts/NewComposite__.js +70 -71
- package/out/concepts/NewComposite__.js.map +1 -1
- package/out/concepts/NewList__.d.ts +2 -2
- package/out/concepts/NewList__.js +19 -30
- package/out/concepts/NewList__.js.map +1 -1
- package/out/concepts/NewMap__.d.ts +2 -2
- package/out/concepts/NewMap__.js +28 -39
- package/out/concepts/NewMap__.js.map +1 -1
- package/out/concepts/New__.d.ts +1 -1
- package/out/concepts/New__.js +5 -13
- package/out/concepts/New__.js.map +1 -1
- package/out/concepts/NullLiteral__.d.ts +2 -2
- package/out/concepts/NullLiteral__.js +6 -14
- package/out/concepts/NullLiteral__.js.map +1 -1
- package/out/concepts/NumericLiteral__.d.ts +3 -3
- package/out/concepts/NumericLiteral__.js +8 -26
- package/out/concepts/NumericLiteral__.js.map +1 -1
- package/out/concepts/OqlQueryComponent__.d.ts +4 -4
- package/out/concepts/OqlQueryComponent__.js +18 -41
- package/out/concepts/OqlQueryComponent__.js.map +1 -1
- package/out/concepts/OverriddenLogic__.d.ts +18 -18
- package/out/concepts/OverriddenLogic__.js +108 -148
- package/out/concepts/OverriddenLogic__.js.map +1 -1
- package/out/concepts/Param__.d.ts +15 -15
- package/out/concepts/Param__.js +60 -66
- package/out/concepts/Param__.js.map +1 -1
- package/out/concepts/Point__.d.ts +1 -1
- package/out/concepts/Point__.js +5 -23
- package/out/concepts/Point__.js.map +1 -1
- package/out/concepts/ProcessComponent__.d.ts +5 -5
- package/out/concepts/ProcessComponent__.js +30 -57
- package/out/concepts/ProcessComponent__.js.map +1 -1
- package/out/concepts/ProcessElement__.d.ts +29 -13
- package/out/concepts/ProcessElement__.js +119 -119
- package/out/concepts/ProcessElement__.js.map +1 -1
- package/out/concepts/ProcessOutcome__.d.ts +1 -1
- package/out/concepts/ProcessOutcome__.js +9 -22
- package/out/concepts/ProcessOutcome__.js.map +1 -1
- package/out/concepts/ProcessOutcomes__.d.ts +1 -1
- package/out/concepts/ProcessOutcomes__.js +13 -21
- package/out/concepts/ProcessOutcomes__.js.map +1 -1
- package/out/concepts/Process__.d.ts +11 -9
- package/out/concepts/Process__.js +64 -85
- package/out/concepts/Process__.js.map +1 -1
- package/out/concepts/QueryAggregateExpression__.d.ts +2 -2
- package/out/concepts/QueryAggregateExpression__.js +5 -28
- package/out/concepts/QueryAggregateExpression__.js.map +1 -1
- package/out/concepts/QueryFieldExpression__.d.ts +1 -1
- package/out/concepts/QueryFieldExpression__.js +9 -32
- package/out/concepts/QueryFieldExpression__.js.map +1 -1
- package/out/concepts/QueryFromExpression__.d.ts +2 -2
- package/out/concepts/QueryFromExpression__.js +36 -35
- package/out/concepts/QueryFromExpression__.js.map +1 -1
- package/out/concepts/QueryGroupByExpression__.d.ts +1 -1
- package/out/concepts/QueryGroupByExpression__.js +5 -18
- package/out/concepts/QueryGroupByExpression__.js.map +1 -1
- package/out/concepts/QueryJoinExpression__.d.ts +2 -2
- package/out/concepts/QueryJoinExpression__.js +22 -48
- package/out/concepts/QueryJoinExpression__.js.map +1 -1
- package/out/concepts/QueryLimitExpression__.d.ts +1 -1
- package/out/concepts/QueryLimitExpression__.js +5 -23
- package/out/concepts/QueryLimitExpression__.js.map +1 -1
- package/out/concepts/QueryOrderByExpression__.d.ts +1 -1
- package/out/concepts/QueryOrderByExpression__.js +5 -23
- package/out/concepts/QueryOrderByExpression__.js.map +1 -1
- package/out/concepts/QuerySelectExpression__.d.ts +3 -3
- package/out/concepts/QuerySelectExpression__.js +28 -35
- package/out/concepts/QuerySelectExpression__.js.map +1 -1
- package/out/concepts/Rect__.d.ts +1 -1
- package/out/concepts/Rect__.js +5 -33
- package/out/concepts/Rect__.js.map +1 -1
- package/out/concepts/Return__.d.ts +13 -13
- package/out/concepts/Return__.js +30 -52
- package/out/concepts/Return__.js.map +1 -1
- package/out/concepts/Role__.d.ts +2 -2
- package/out/concepts/Role__.js +15 -38
- package/out/concepts/Role__.js.map +1 -1
- package/out/concepts/SelectMembers__.d.ts +2 -2
- package/out/concepts/SelectMembers__.js +19 -31
- package/out/concepts/SelectMembers__.js.map +1 -1
- package/out/concepts/SequentialPolicy__.d.ts +20 -0
- package/out/concepts/SequentialPolicy__.js +48 -0
- package/out/concepts/SequentialPolicy__.js.map +1 -0
- package/out/concepts/Slot__.d.ts +5 -5
- package/out/concepts/Slot__.js +11 -49
- package/out/concepts/Slot__.js.map +1 -1
- package/out/concepts/SqlQueryComponent__.d.ts +4 -4
- package/out/concepts/SqlQueryComponent__.js +16 -44
- package/out/concepts/SqlQueryComponent__.js.map +1 -1
- package/out/concepts/Start__.d.ts +1 -1
- package/out/concepts/Start__.js +9 -17
- package/out/concepts/Start__.js.map +1 -1
- package/out/concepts/StaticString__.d.ts +49 -0
- package/out/concepts/StaticString__.js +91 -0
- package/out/concepts/StaticString__.js.map +1 -0
- package/out/concepts/StringInterpolation__.d.ts +2 -2
- package/out/concepts/StringInterpolation__.js +22 -23
- package/out/concepts/StringInterpolation__.js.map +1 -1
- package/out/concepts/StringLiteral__.d.ts +2 -2
- package/out/concepts/StringLiteral__.js +10 -23
- package/out/concepts/StringLiteral__.js.map +1 -1
- package/out/concepts/StructureProperty__.d.ts +11 -7
- package/out/concepts/StructureProperty__.js +23 -66
- package/out/concepts/StructureProperty__.js.map +1 -1
- package/out/concepts/Structure__.d.ts +7 -6
- package/out/concepts/Structure__.js +30 -52
- package/out/concepts/Structure__.js.map +1 -1
- package/out/concepts/SwitchCase__.d.ts +1 -1
- package/out/concepts/SwitchCase__.js +36 -24
- package/out/concepts/SwitchCase__.js.map +1 -1
- package/out/concepts/SwitchStatement__.d.ts +2 -2
- package/out/concepts/SwitchStatement__.js +36 -20
- package/out/concepts/SwitchStatement__.js.map +1 -1
- package/out/concepts/Theme__.d.ts +1 -1
- package/out/concepts/Theme__.js +13 -21
- package/out/concepts/Theme__.js.map +1 -1
- package/out/concepts/Transactional__.d.ts +9 -9
- package/out/concepts/Transactional__.js +11 -34
- package/out/concepts/Transactional__.js.map +1 -1
- package/out/concepts/TriggerEvent__.d.ts +9 -78
- package/out/concepts/TriggerEvent__.js +15 -118
- package/out/concepts/TriggerEvent__.js.map +1 -1
- package/out/concepts/TriggerLauncher__.d.ts +4 -4
- package/out/concepts/TriggerLauncher__.js +11 -39
- package/out/concepts/TriggerLauncher__.js.map +1 -1
- package/out/concepts/TypeAnnotation__.d.ts +7 -6
- package/out/concepts/TypeAnnotation__.js +41 -65
- package/out/concepts/TypeAnnotation__.js.map +1 -1
- package/out/concepts/TypeParam__.d.ts +1 -1
- package/out/concepts/TypeParam__.js +11 -24
- package/out/concepts/TypeParam__.js.map +1 -1
- package/out/concepts/UnaryExpression__.d.ts +1 -1
- package/out/concepts/UnaryExpression__.js +5 -23
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/Unparsed__.d.ts +2 -2
- package/out/concepts/Unparsed__.js +6 -19
- package/out/concepts/Unparsed__.js.map +1 -1
- package/out/concepts/UseComponent__.d.ts +1 -1
- package/out/concepts/UseComponent__.js +5 -23
- package/out/concepts/UseComponent__.js.map +1 -1
- package/out/concepts/ValidationRule__.d.ts +3 -3
- package/out/concepts/ValidationRule__.js +48 -51
- package/out/concepts/ValidationRule__.js.map +1 -1
- package/out/concepts/Variable__.d.ts +16 -16
- package/out/concepts/Variable__.js +38 -54
- package/out/concepts/Variable__.js.map +1 -1
- package/out/concepts/ViewBlock__.d.ts +1 -1
- package/out/concepts/ViewBlock__.js +5 -28
- package/out/concepts/ViewBlock__.js.map +1 -1
- package/out/concepts/ViewComponent__.d.ts +8 -8
- package/out/concepts/ViewComponent__.js +110 -121
- package/out/concepts/ViewComponent__.js.map +1 -1
- package/out/concepts/ViewElement__.d.ts +9 -9
- package/out/concepts/ViewElement__.js +138 -162
- package/out/concepts/ViewElement__.js.map +1 -1
- package/out/concepts/View__.d.ts +25 -13
- package/out/concepts/View__.js +197 -184
- package/out/concepts/View__.js.map +1 -1
- package/out/concepts/WhileStatement__.d.ts +1 -1
- package/out/concepts/WhileStatement__.js +36 -24
- package/out/concepts/WhileStatement__.js.map +1 -1
- package/out/concepts/basics/stdlib/index.d.ts +12 -0
- package/out/concepts/basics/stdlib/index.js +46 -1
- package/out/concepts/basics/stdlib/index.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.auth.d.ts +7 -5
- package/out/concepts/basics/stdlib/nasl.auth.js +76 -69
- package/out/concepts/basics/stdlib/nasl.auth.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.browser.d.ts +4 -2
- package/out/concepts/basics/stdlib/nasl.browser.js +54 -45
- package/out/concepts/basics/stdlib/nasl.browser.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.collection.d.ts +7 -5
- package/out/concepts/basics/stdlib/nasl.collection.js +29 -24
- package/out/concepts/basics/stdlib/nasl.collection.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.configuration.d.ts +4 -2
- package/out/concepts/basics/stdlib/nasl.configuration.js +27 -18
- package/out/concepts/basics/stdlib/nasl.configuration.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.core.d.ts +5 -3
- package/out/concepts/basics/stdlib/nasl.core.js +25 -27
- package/out/concepts/basics/stdlib/nasl.core.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.event.d.ts +4 -2
- package/out/concepts/basics/stdlib/nasl.event.js +16 -7
- package/out/concepts/basics/stdlib/nasl.event.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.http.d.ts +7 -5
- package/out/concepts/basics/stdlib/nasl.http.js +78 -73
- package/out/concepts/basics/stdlib/nasl.http.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.interface.d.ts +6 -4
- package/out/concepts/basics/stdlib/nasl.interface.js +28 -22
- package/out/concepts/basics/stdlib/nasl.interface.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.io.d.ts +4 -2
- package/out/concepts/basics/stdlib/nasl.io.js +30 -21
- package/out/concepts/basics/stdlib/nasl.io.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.logging.d.ts +4 -2
- package/out/concepts/basics/stdlib/nasl.logging.js +33 -24
- package/out/concepts/basics/stdlib/nasl.logging.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.process.d.ts +6 -4
- package/out/concepts/basics/stdlib/nasl.process.js +541 -536
- package/out/concepts/basics/stdlib/nasl.process.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.ui.d.ts +6 -4
- package/out/concepts/basics/stdlib/nasl.ui.js +400 -425
- package/out/concepts/basics/stdlib/nasl.ui.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.util.d.ts +5 -4
- package/out/concepts/basics/stdlib/nasl.util.js +716 -702
- package/out/concepts/basics/stdlib/nasl.util.js.map +1 -1
- package/out/concepts/basics/stdlib/nasl.validation.d.ts +4 -2
- package/out/concepts/basics/stdlib/nasl.validation.js +191 -182
- package/out/concepts/basics/stdlib/nasl.validation.js.map +1 -1
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.d.ts +4 -5
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js +29 -8
- package/out/concepts/basics/stdlib/reference2TypeAnnotationList.js.map +1 -1
- package/out/concepts/index.d.ts +2 -1
- package/out/concepts/index.js +18 -2
- package/out/concepts/index.js.map +1 -1
- package/out/concepts/index__.d.ts +4 -0
- package/out/concepts/index__.js +4 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/types__.d.ts +0 -127
- package/out/concepts/types__.js +0 -2
- package/out/concepts/utils/asserts.d.ts +6676 -0
- package/out/concepts/utils/asserts.js +8870 -0
- package/out/concepts/utils/asserts.js.map +1 -0
- package/out/concepts/utils/types.d.ts +430 -0
- package/out/concepts/utils/types.js +3 -0
- package/out/concepts/utils/types.js.map +1 -0
- package/out/decorators/index.d.ts +10 -7
- package/out/decorators/index.js +12 -8
- package/out/decorators/index.js.map +1 -1
- package/out/generator/genBundleFiles.js +33 -1
- package/out/generator/genBundleFiles.js.map +1 -1
- package/out/generator/genMetaData.js +32 -3
- package/out/generator/genMetaData.js.map +1 -1
- package/out/generator/genReleaseBody.js.map +1 -1
- package/out/manager/diagnostic.js +3 -1
- package/out/manager/diagnostic.js.map +1 -1
- package/out/server/extendBaseNode.js.map +1 -1
- package/out/server/formatTsUtils.d.ts +4 -5
- package/out/server/formatTsUtils.js +13 -12
- package/out/server/formatTsUtils.js.map +1 -1
- package/out/server/getConnector.js +19 -1
- package/out/server/getConnector.js.map +1 -1
- package/out/server/getFunctions.js +2 -2
- package/out/server/getFunctions.js.map +1 -1
- package/out/server/getLogging.js +1 -1
- package/out/server/getLogging.js.map +1 -1
- package/out/server/getLogics.d.ts +1 -0
- package/out/server/getLogics.js +17 -13
- package/out/server/getLogics.js.map +1 -1
- package/out/server/getMemberIdentifier.d.ts +4 -4
- package/out/server/getMemberIdentifier.js +22 -1
- package/out/server/getMemberIdentifier.js.map +1 -1
- package/out/server/getProcessComponents.js +1 -1
- package/out/server/getProcessComponents.js.map +1 -1
- package/out/server/getProcesses.js +56 -6
- package/out/server/getProcesses.js.map +1 -1
- package/out/server/getValidates.d.ts +1 -1
- package/out/server/getValidates.js +2 -2
- package/out/server/getValidates.js.map +1 -1
- package/out/server/index.js +1 -0
- package/out/server/index.js.map +1 -1
- package/out/server/naslServer.d.ts +8 -12
- package/out/server/naslServer.js +58 -76
- package/out/server/naslServer.js.map +1 -1
- package/out/server/translator.js +3 -0
- package/out/server/translator.js.map +1 -1
- package/out/service/creator/errHandles.js +6 -3
- package/out/service/creator/errHandles.js.map +1 -1
- package/out/service/storage/init.d.ts +2 -0
- package/out/service/storage/init.js +35 -20
- package/out/service/storage/init.js.map +1 -1
- package/out/translator/types.d.ts +1 -0
- package/out/translator/utils.d.ts +1 -1
- package/out/translator/utils.js +1 -2
- package/out/translator/utils.js.map +1 -1
- package/out/utils/i18nInfo.js +0 -30
- package/out/utils/i18nInfo.js.map +1 -1
- package/out/utils/time-slicing/controller.d.ts +1 -1
- package/out/utils/time-slicing/controller.js +79 -65
- package/out/utils/time-slicing/controller.js.map +1 -1
- package/out/utils/time-slicing/performance.js +0 -1
- package/out/utils/time-slicing/performance.js.map +1 -1
- package/out/utils/time-slicing/runner.d.ts +1 -1
- package/out/utils/time-slicing/runner.js +4 -5
- package/out/utils/time-slicing/runner.js.map +1 -1
- package/out/utils/time-slicing/tool.d.ts +1 -1
- package/out/utils/types.d.ts +5 -0
- package/package.json +2 -2
- package/sandbox/stdlib/nasl.configuration.ts +16 -1
- package/sandbox/stdlib/nasl.core.ts +3 -0
- package/sandbox/stdlib/nasl.oql.ts +19 -2
- package/sandbox/stdlib/nasl.util.ts +2 -2
- package/src/automate/engine/utils.js +6 -6
- package/src/bak/translator.js +2 -1
- package/src/common/BaseNode.ts +30 -30
- package/src/common/Command.ts +1 -1
- package/src/common/EventEmitter.ts +6 -1
- package/src/common/utils.ts +2 -2
- package/src/concepts/Abort__.ts +5 -6
- package/src/concepts/AbstractInterface__.ts +5 -5
- package/src/concepts/Anchor__.ts +7 -9
- package/src/concepts/AnonymousFunction__.ts +23 -29
- package/src/concepts/App__.ts +89 -73
- package/src/concepts/Argument__.ts +11 -15
- package/src/concepts/Assignee__.ts +13 -11
- package/src/concepts/AssignmentLine__.ts +5 -5
- package/src/concepts/Assignment__.ts +24 -25
- package/src/concepts/Attribute__.ts +10 -20
- package/src/concepts/AuthInterface__.ts +9 -15
- package/src/concepts/AuthLogicForCallInterface__.ts +43 -33
- package/src/concepts/AuthLogic__.ts +11 -13
- package/src/concepts/BackendVariable__.ts +39 -30
- package/src/concepts/Backend__.ts +10 -10
- package/src/concepts/BatchAssignment__.ts +23 -18
- package/src/concepts/BinaryExpression__.ts +14 -14
- package/src/concepts/BindAttribute__.ts +25 -34
- package/src/concepts/BindDirective__.ts +14 -21
- package/src/concepts/BindEvent__.ts +31 -30
- package/src/concepts/BindStyle__.ts +14 -15
- package/src/concepts/Block__.ts +9 -8
- package/src/concepts/BooleanLiteral__.ts +5 -7
- package/src/concepts/CallAuthInterface__.ts +16 -16
- package/src/concepts/CallConnector__.ts +15 -14
- package/src/concepts/CallFunction__.ts +23 -22
- package/src/concepts/CallInterface__.ts +25 -23
- package/src/concepts/CallLogic__.ts +127 -85
- package/src/concepts/CallQueryComponent__.ts +41 -32
- package/src/concepts/Comment__.ts +5 -7
- package/src/concepts/CompletionProperty__.ts +6 -13
- package/src/concepts/ConfigGroup__.ts +10 -10
- package/src/concepts/ConfigPropertyValue__.ts +6 -8
- package/src/concepts/ConfigProperty__.ts +13 -15
- package/src/concepts/Configuration__.ts +10 -9
- package/src/concepts/Connection__.ts +10 -12
- package/src/concepts/ConnectorTrigger__.ts +11 -14
- package/src/concepts/Connector__.ts +33 -33
- package/src/concepts/Constant__.ts +35 -26
- package/src/concepts/CountersignPolicy__.ts +78 -0
- package/src/concepts/DataSource__.ts +10 -12
- package/src/concepts/DatabaseTypeAnnotation__.ts +5 -7
- package/src/concepts/DefaultValue__.ts +18 -8
- package/src/concepts/Destination__.ts +18 -18
- package/src/concepts/End__.ts +7 -8
- package/src/concepts/EntityIndex__.ts +9 -13
- package/src/concepts/EntityProperty__.ts +18 -28
- package/src/concepts/Entity__.ts +19 -22
- package/src/concepts/EnumItem__.ts +8 -10
- package/src/concepts/Enum__.ts +12 -14
- package/src/concepts/Event__.ts +11 -15
- package/src/concepts/ExternalDestination__.ts +12 -15
- package/src/concepts/ForEachStatement__.ts +28 -41
- package/src/concepts/FrontendLibrary__.ts +14 -14
- package/src/concepts/FrontendVariable__.ts +22 -6
- package/src/concepts/Frontend__.ts +48 -30
- package/src/concepts/Function__.ts +26 -23
- package/src/concepts/I18nInfo__.ts +5 -8
- package/src/concepts/Identifier__.ts +12 -15
- package/src/concepts/IfStatement__.ts +9 -9
- package/src/concepts/ImportedInterface__.ts +5 -7
- package/src/concepts/Integration__.ts +11 -11
- package/src/concepts/InterfaceParam__.ts +20 -24
- package/src/concepts/Interface__.ts +26 -31
- package/src/concepts/JSBlock__.ts +5 -7
- package/src/concepts/JavaLogic__.ts +5 -9
- package/src/concepts/LogicItem__.ts +21 -25
- package/src/concepts/Logic__.ts +87 -81
- package/src/concepts/MatchCase__.ts +20 -18
- package/src/concepts/Match__.ts +48 -23
- package/src/concepts/MemberExpression__.ts +32 -29
- package/src/concepts/MetadataType__.ts +15 -34
- package/src/concepts/MicroApp__.ts +5 -12
- package/src/concepts/Module__.ts +47 -43
- package/src/concepts/MsgTriggerEvent__.ts +14 -14
- package/src/concepts/MsgTriggerLauncher__.ts +11 -12
- package/src/concepts/MultiApprovalPolicy__.ts +72 -0
- package/src/concepts/Namespace__.ts +40 -32
- package/src/concepts/NewComposite__.ts +43 -28
- package/src/concepts/NewList__.ts +14 -14
- package/src/concepts/NewMap__.ts +17 -16
- package/src/concepts/New__.ts +5 -6
- package/src/concepts/NullLiteral__.ts +6 -7
- package/src/concepts/NumericLiteral__.ts +8 -10
- package/src/concepts/OqlQueryComponent__.ts +12 -14
- package/src/concepts/OverriddenLogic__.ts +81 -71
- package/src/concepts/Param__.ts +40 -40
- package/src/concepts/Point__.ts +5 -7
- package/src/concepts/ProcessComponent__.ts +13 -15
- package/src/concepts/ProcessElement__.ts +101 -34
- package/src/concepts/ProcessOutcome__.ts +5 -7
- package/src/concepts/ProcessOutcomes__.ts +5 -6
- package/src/concepts/Process__.ts +29 -25
- package/src/concepts/QueryAggregateExpression__.ts +6 -10
- package/src/concepts/QueryFieldExpression__.ts +6 -10
- package/src/concepts/QueryFromExpression__.ts +8 -11
- package/src/concepts/QueryGroupByExpression__.ts +5 -7
- package/src/concepts/QueryJoinExpression__.ts +11 -14
- package/src/concepts/QueryLimitExpression__.ts +5 -8
- package/src/concepts/QueryOrderByExpression__.ts +5 -8
- package/src/concepts/QuerySelectExpression__.ts +11 -10
- package/src/concepts/Rect__.ts +5 -9
- package/src/concepts/Return__.ts +30 -26
- package/src/concepts/Role__.ts +7 -10
- package/src/concepts/SelectMembers__.ts +10 -10
- package/src/concepts/SequentialPolicy__.ts +60 -0
- package/src/concepts/Slot__.ts +9 -15
- package/src/concepts/SqlQueryComponent__.ts +11 -16
- package/src/concepts/Start__.ts +5 -6
- package/src/concepts/StaticString__.ts +104 -0
- package/src/concepts/StringInterpolation__.ts +13 -9
- package/src/concepts/StringLiteral__.ts +6 -8
- package/src/concepts/StructureProperty__.ts +16 -20
- package/src/concepts/Structure__.ts +14 -15
- package/src/concepts/SwitchCase__.ts +7 -8
- package/src/concepts/SwitchStatement__.ts +8 -8
- package/src/concepts/Theme__.ts +5 -5
- package/src/concepts/Transactional__.ts +13 -16
- package/src/concepts/TriggerEvent__.ts +22 -177
- package/src/concepts/TriggerLauncher__.ts +9 -13
- package/src/concepts/TypeAnnotation__.ts +22 -18
- package/src/concepts/TypeParam__.ts +5 -6
- package/src/concepts/UnaryExpression__.ts +5 -8
- package/src/concepts/Unparsed__.ts +6 -8
- package/src/concepts/UseComponent__.ts +5 -7
- package/src/concepts/ValidationRule__.ts +13 -16
- package/src/concepts/Variable__.ts +50 -37
- package/src/concepts/ViewBlock__.ts +5 -8
- package/src/concepts/ViewComponent__.ts +68 -47
- package/src/concepts/ViewElement__.ts +114 -89
- package/src/concepts/View__.ts +183 -91
- package/src/concepts/WhileStatement__.ts +7 -8
- package/src/concepts/basics/stdlib/index.ts +66 -20
- package/src/concepts/basics/stdlib/nasl.auth.ts +167 -149
- package/src/concepts/basics/stdlib/nasl.browser.ts +143 -132
- package/src/concepts/basics/stdlib/nasl.collection.ts +54 -39
- package/src/concepts/basics/stdlib/nasl.configuration.ts +19 -9
- package/src/concepts/basics/stdlib/nasl.core.ts +41 -35
- package/src/concepts/basics/stdlib/nasl.event.ts +27 -17
- package/src/concepts/basics/stdlib/nasl.http.ts +170 -158
- package/src/concepts/basics/stdlib/nasl.interface.ts +48 -37
- package/src/concepts/basics/stdlib/nasl.io.ts +54 -44
- package/src/concepts/basics/stdlib/nasl.logging.ts +56 -55
- package/src/concepts/basics/stdlib/nasl.process.ts +610 -594
- package/src/concepts/basics/stdlib/nasl.ui.ts +1005 -986
- package/src/concepts/basics/stdlib/nasl.util.ts +2270 -2251
- package/src/concepts/basics/stdlib/nasl.validation.ts +567 -556
- package/src/concepts/basics/stdlib/reference2TypeAnnotationList.ts +19 -23
- package/src/concepts/index.ts +9 -1
- package/src/concepts/index__.ts +4 -0
- package/src/concepts/types__.ts +0 -254
- package/src/concepts/utils/asserts.ts +9530 -0
- package/src/concepts/utils/types.ts +670 -0
- package/src/decorators/index.ts +17 -16
- package/src/generator/genBundleFiles.ts +34 -2
- package/src/generator/genMetaData.ts +31 -3
- package/src/generator/genReleaseBody.ts +41 -40
- package/src/server/extendBaseNode.ts +2 -1
- package/src/server/formatTsUtils.ts +21 -20
- package/src/server/getConnector.ts +21 -2
- package/src/server/getFunctions.ts +3 -3
- package/src/server/getLogging.ts +2 -2
- package/src/server/getLogics.ts +16 -12
- package/src/server/getMemberIdentifier.ts +26 -5
- package/src/server/getProcessComponents.ts +2 -2
- package/src/server/getProcesses.ts +56 -6
- package/src/server/getValidates.ts +3 -2
- package/src/server/index.ts +2 -1
- package/src/server/naslServer.ts +51 -60
- package/src/server/translator.ts +3 -0
- package/src/service/creator/errHandles.js +7 -4
- package/src/service/storage/init.ts +34 -7
- package/src/translator/types.ts +1 -0
- package/src/translator/utils.ts +1 -2
- package/src/utils/i18nInfo.ts +0 -30
- package/src/utils/time-slicing/controller.ts +34 -23
- package/src/utils/time-slicing/runner.ts +7 -9
- package/src/utils/time-slicing/tool.ts +1 -1
- package/src/utils/types.ts +6 -0
- package/test/concepts/anonymous-function/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/anonymous-function/toJS.spec.ts +2 -2
- package/test/concepts/anonymous-function/toVue.spec.ts +2 -2
- package/test/concepts/assignment/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/assignment/toJS.spec.ts +2 -2
- package/test/concepts/assignment/toVue.spec.ts +2 -2
- package/test/concepts/batch-assignment/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/batch-assignment/toJS.spec.ts +2 -2
- package/test/concepts/batch-assignment/toVue.spec.ts +2 -2
- package/test/concepts/binary-expression/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/binary-expression/toJS.spec.ts +2 -2
- package/test/concepts/binary-expression/toVue.spec.ts +2 -2
- package/test/concepts/boolean-literal/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/boolean-literal/toJS.spec.ts +2 -2
- package/test/concepts/boolean-literal/toVue.spec.ts +2 -2
- package/test/concepts/call-function/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/call-function/toJS.spec.ts +2 -2
- package/test/concepts/call-interface/__snapshots__/toEmbeddedTS.spec.ts.snap +6 -9
- package/test/concepts/call-interface/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/call-interface/toJS.spec.ts +2 -2
- package/test/concepts/call-logic/__snapshots__/getQuickInfoOffset.spec.ts.snap +27 -3
- package/test/concepts/call-logic/__snapshots__/toEmbeddedTS.spec.ts.snap +18 -3
- package/test/concepts/call-logic/__snapshots__/toJS.spec.ts.snap +15 -0
- package/test/concepts/call-logic/__snapshots__/toUI.spec.ts.snap +7 -0
- package/test/concepts/call-logic/__snapshots__/toVue.spec.ts.snap +101 -0
- package/test/concepts/call-logic/__snapshots__/toVueDesigner.spec.ts.snap +7 -0
- package/test/concepts/call-logic/fixtures/json-deserialize.json +173 -0
- package/test/concepts/call-logic/fixtures/json-serialize-with-string.json +177 -0
- package/test/concepts/call-logic/fixtures/json-serialize.json +178 -0
- package/test/concepts/call-logic/getQuickInfoOffset.spec.ts +3 -3
- package/test/concepts/call-logic/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/call-logic/toJS.spec.ts +2 -2
- package/test/concepts/call-logic/toUI.spec.ts +16 -0
- package/test/concepts/call-logic/toVue.spec.ts +14 -0
- package/test/concepts/call-logic/toVueDesigner.spec.ts +16 -0
- package/test/concepts/data-source/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/data-source/toEmbeddedTSFile.spec.ts +3 -3
- package/test/concepts/entity/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/entity/toEmbeddedTSFile.spec.ts +2 -2
- package/test/concepts/identifier/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/identifier/toJS.spec.ts +2 -2
- package/test/concepts/identifier/toVue.spec.ts +2 -2
- package/test/concepts/match/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/match/toJS.spec.ts +2 -2
- package/test/concepts/member-expression/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/member-expression/toJS.spec.ts +2 -2
- package/test/concepts/member-expression/toVue.spec.ts +2 -2
- package/test/concepts/null-literal/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/null-literal/toJS.spec.ts +2 -2
- package/test/concepts/null-literal/toVue.spec.ts +2 -2
- package/test/concepts/numeric-literal/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/numeric-literal/toJS.spec.ts +2 -2
- package/test/concepts/numeric-literal/toVue.spec.ts +2 -2
- package/test/concepts/string-literal/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/string-literal/toJS.spec.ts +2 -2
- package/test/concepts/string-literal/toVue.spec.ts +2 -2
- package/test/concepts/utils.ts +2 -2
- package/test/concepts/validation-rule/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/validation-rule/toJS.spec.ts +2 -2
- package/test/concepts/validation-rule/validation-rule.spec.ts +3 -3
- package/test/concepts/view-element/toEmbeddedTS.spec.ts +3 -3
- package/test/concepts/view-element/toVue.spec.ts +2 -2
- package/test/time-slicing/runner.spec.ts +5 -1
- package/test/time-slicing/time-slicing-nodejs.spec.ts +1 -1
- package/test/time-slicing/wrapper.spec.ts +1 -1
- package/tsconfig.json +2 -1
|
@@ -3,165 +3,176 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.createTimezoneParam = void 0;
|
|
6
|
+
exports.initialize = exports.createTimezoneParam = void 0;
|
|
7
7
|
const Namespace__1 = __importDefault(require("../../Namespace__"));
|
|
8
|
-
const Param__1 = __importDefault(require("../../Param__"));
|
|
9
|
-
const Return__1 = __importDefault(require("../../Return__"));
|
|
10
|
-
const Logic__1 = __importDefault(require("../../Logic__"));
|
|
11
|
-
const Function__1 = __importDefault(require("../../Function__"));
|
|
12
|
-
const TypeAnnotation__1 = __importDefault(require("../../TypeAnnotation__"));
|
|
13
|
-
const TypeParam__1 = __importDefault(require("../../TypeParam__"));
|
|
14
|
-
const NumericLiteral__1 = __importDefault(require("../../NumericLiteral__"));
|
|
15
|
-
const Identifier__1 = __importDefault(require("../../Identifier__"));
|
|
16
|
-
const BooleanLiteral__1 = __importDefault(require("../../BooleanLiteral__"));
|
|
17
|
-
const StringLiteral__1 = __importDefault(require("../../StringLiteral__"));
|
|
18
|
-
const AnonymousFunction__1 = __importDefault(require("../../AnonymousFunction__"));
|
|
19
|
-
const StringInterpolation__1 = __importDefault(require("../../StringInterpolation__"));
|
|
20
|
-
const NewList__1 = __importDefault(require("../../NewList__"));
|
|
21
|
-
const DefaultValue__1 = __importDefault(require("../../DefaultValue__"));
|
|
22
8
|
const timeZone_1 = require("./timeZone");
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
name:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
9
|
+
const decorators_1 = require("../../../decorators");
|
|
10
|
+
const createTimezoneParam = (fnName) => {
|
|
11
|
+
const Param = (0, decorators_1.getConceptConstructor)('Param');
|
|
12
|
+
const StringLiteral = (0, decorators_1.getConceptConstructor)('StringLiteral');
|
|
13
|
+
return new Param({
|
|
14
|
+
name: '时区',
|
|
15
|
+
description: '以此时区为基准',
|
|
16
|
+
useComponent: { type: 's-bidirectional-bind-switch' },
|
|
17
|
+
defaultExpression: new StringLiteral({
|
|
18
|
+
name: `${fnName}TimeZoneDefaultExpression`,
|
|
19
|
+
value: 'global'
|
|
20
|
+
}),
|
|
21
|
+
options: timeZone_1.TIMEZONES,
|
|
22
|
+
hidden: true,
|
|
23
|
+
});
|
|
24
|
+
};
|
|
34
25
|
exports.createTimezoneParam = createTimezoneParam;
|
|
35
|
-
|
|
26
|
+
const utilNamespace = new Namespace__1.default({
|
|
36
27
|
name: 'util',
|
|
37
|
-
logics: [
|
|
38
|
-
|
|
28
|
+
logics: [],
|
|
29
|
+
functions: [],
|
|
30
|
+
});
|
|
31
|
+
exports.default = utilNamespace;
|
|
32
|
+
/** @internal */
|
|
33
|
+
function initialize() {
|
|
34
|
+
const TypeAnnotation = (0, decorators_1.getConceptConstructor)('TypeAnnotation');
|
|
35
|
+
const Logic = (0, decorators_1.getConceptConstructor)('Logic');
|
|
36
|
+
const Param = (0, decorators_1.getConceptConstructor)('Param');
|
|
37
|
+
const Return = (0, decorators_1.getConceptConstructor)('Return');
|
|
38
|
+
const Function = (0, decorators_1.getConceptConstructor)('Function');
|
|
39
|
+
const AnonymousFunction = (0, decorators_1.getConceptConstructor)('AnonymousFunction');
|
|
40
|
+
const StringInterpolation = (0, decorators_1.getConceptConstructor)('StringInterpolation');
|
|
41
|
+
const TypeParam = (0, decorators_1.getConceptConstructor)('TypeParam');
|
|
42
|
+
const Identifier = (0, decorators_1.getConceptConstructor)('Identifier');
|
|
43
|
+
const BooleanLiteral = (0, decorators_1.getConceptConstructor)('BooleanLiteral');
|
|
44
|
+
const NumericLiteral = (0, decorators_1.getConceptConstructor)('NumericLiteral');
|
|
45
|
+
const StringLiteral = (0, decorators_1.getConceptConstructor)('StringLiteral');
|
|
46
|
+
const NewList = (0, decorators_1.getConceptConstructor)('NewList');
|
|
47
|
+
const DefaultValue = (0, decorators_1.getConceptConstructor)('DefaultValue');
|
|
48
|
+
const logics = [
|
|
49
|
+
new Logic({
|
|
39
50
|
name: 'consoleLog',
|
|
40
51
|
params: [
|
|
41
|
-
new
|
|
52
|
+
new Param({
|
|
42
53
|
name: 'arg',
|
|
43
|
-
typeAnnotation:
|
|
44
|
-
defaultExpression: new
|
|
54
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
55
|
+
defaultExpression: new StringInterpolation(),
|
|
45
56
|
}),
|
|
46
57
|
],
|
|
47
58
|
}),
|
|
48
|
-
new
|
|
59
|
+
new Logic({
|
|
49
60
|
name: 'jsonSerialize',
|
|
50
61
|
params: [
|
|
51
|
-
new
|
|
62
|
+
new Param({
|
|
52
63
|
name: 'arg',
|
|
53
64
|
}),
|
|
54
65
|
],
|
|
55
66
|
returns: [
|
|
56
|
-
new
|
|
67
|
+
new Return({
|
|
57
68
|
name: 'result',
|
|
58
|
-
typeAnnotation:
|
|
69
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
59
70
|
}),
|
|
60
71
|
],
|
|
61
72
|
}),
|
|
62
|
-
new
|
|
73
|
+
new Logic({
|
|
63
74
|
name: 'jsonDeserialize',
|
|
64
75
|
typeParams: [
|
|
65
|
-
new
|
|
76
|
+
new TypeParam({
|
|
66
77
|
name: 'T',
|
|
67
78
|
}),
|
|
68
79
|
],
|
|
69
80
|
params: [
|
|
70
|
-
new
|
|
81
|
+
new Param({
|
|
71
82
|
name: 'arg',
|
|
72
|
-
typeAnnotation:
|
|
83
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
73
84
|
}),
|
|
74
85
|
],
|
|
75
86
|
returns: [
|
|
76
|
-
new
|
|
87
|
+
new Return({
|
|
77
88
|
name: 'result',
|
|
78
|
-
typeAnnotation:
|
|
89
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
79
90
|
useComponent: { type: 's-datatype-select' },
|
|
80
91
|
}),
|
|
81
92
|
],
|
|
82
93
|
}),
|
|
83
|
-
]
|
|
84
|
-
functions
|
|
85
|
-
new
|
|
94
|
+
];
|
|
95
|
+
const functions = [
|
|
96
|
+
new Function({
|
|
86
97
|
name: 'Convert',
|
|
87
98
|
description: '各基础数据类型之间转换',
|
|
88
99
|
typeParams: [
|
|
89
|
-
new
|
|
100
|
+
new TypeParam({
|
|
90
101
|
name: 'T',
|
|
91
102
|
}),
|
|
92
103
|
],
|
|
93
104
|
params: [
|
|
94
|
-
new
|
|
105
|
+
new Param({
|
|
95
106
|
name: 'value',
|
|
96
107
|
description: '选择变量或常量',
|
|
97
|
-
defaultExpression: new
|
|
108
|
+
defaultExpression: new Identifier(),
|
|
98
109
|
}),
|
|
99
110
|
],
|
|
100
111
|
returns: [
|
|
101
|
-
new
|
|
102
|
-
typeAnnotation:
|
|
112
|
+
new Return({
|
|
113
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
103
114
|
}),
|
|
104
115
|
],
|
|
105
116
|
}),
|
|
106
|
-
new
|
|
117
|
+
new Function({
|
|
107
118
|
name: 'ToString',
|
|
108
119
|
description: '各类型转换成字符串',
|
|
109
120
|
params: [
|
|
110
|
-
new
|
|
121
|
+
new Param({
|
|
111
122
|
name: 'value',
|
|
112
123
|
description: '待转成字符串的表达式',
|
|
113
|
-
typeAnnotation:
|
|
124
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Any'),
|
|
114
125
|
}),
|
|
115
126
|
],
|
|
116
127
|
returns: [
|
|
117
|
-
new
|
|
118
|
-
typeAnnotation:
|
|
128
|
+
new Return({
|
|
129
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
119
130
|
}),
|
|
120
131
|
],
|
|
121
132
|
}),
|
|
122
|
-
new
|
|
133
|
+
new Function({
|
|
123
134
|
name: 'FromString',
|
|
124
135
|
description: '字符串转换成其他类型',
|
|
125
136
|
typeParams: [
|
|
126
|
-
new
|
|
137
|
+
new TypeParam({
|
|
127
138
|
name: 'T',
|
|
128
139
|
}),
|
|
129
140
|
],
|
|
130
141
|
params: [
|
|
131
|
-
new
|
|
142
|
+
new Param({
|
|
132
143
|
name: 'value',
|
|
133
|
-
defaultExpression: new
|
|
144
|
+
defaultExpression: new Identifier(),
|
|
134
145
|
}),
|
|
135
146
|
],
|
|
136
147
|
returns: [
|
|
137
|
-
new
|
|
138
|
-
typeAnnotation:
|
|
148
|
+
new Return({
|
|
149
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
139
150
|
}),
|
|
140
151
|
],
|
|
141
152
|
}),
|
|
142
|
-
new
|
|
153
|
+
new Function({
|
|
143
154
|
name: 'IndexOf',
|
|
144
155
|
description: '搜索字符串位置',
|
|
145
156
|
params: [
|
|
146
|
-
new
|
|
157
|
+
new Param({
|
|
147
158
|
name: 'str',
|
|
148
159
|
description: '指定字符串',
|
|
149
|
-
typeAnnotation:
|
|
160
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
150
161
|
}),
|
|
151
|
-
new
|
|
162
|
+
new Param({
|
|
152
163
|
name: 'search',
|
|
153
164
|
description: '指定需要搜索的字段,String类型',
|
|
154
|
-
typeAnnotation:
|
|
165
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
155
166
|
}),
|
|
156
|
-
new
|
|
167
|
+
new Param({
|
|
157
168
|
name: 'fromIndex',
|
|
158
169
|
description: '开始搜索的索引值,Integer类型,用数字表示第几项,项数索引从0开始',
|
|
159
|
-
defaultExpression: new
|
|
170
|
+
defaultExpression: new NumericLiteral({ value: '0' }),
|
|
160
171
|
}),
|
|
161
|
-
new
|
|
172
|
+
new Param({
|
|
162
173
|
name: 'ignoreCase',
|
|
163
174
|
description: '是否忽略大小写,true为忽略,false为不忽略',
|
|
164
|
-
defaultExpression: new
|
|
175
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
165
176
|
options: [
|
|
166
177
|
{
|
|
167
178
|
text: 'true',
|
|
@@ -177,29 +188,29 @@ exports.default = new Namespace__1.default({
|
|
|
177
188
|
}),
|
|
178
189
|
],
|
|
179
190
|
returns: [
|
|
180
|
-
new
|
|
181
|
-
typeAnnotation:
|
|
191
|
+
new Return({
|
|
192
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
182
193
|
}),
|
|
183
194
|
],
|
|
184
195
|
}),
|
|
185
|
-
new
|
|
196
|
+
new Function({
|
|
186
197
|
name: 'LastIndexOf',
|
|
187
198
|
description: '从末尾搜索字符串位置',
|
|
188
199
|
params: [
|
|
189
|
-
new
|
|
200
|
+
new Param({
|
|
190
201
|
name: 'str',
|
|
191
202
|
description: '指定字符串',
|
|
192
|
-
typeAnnotation:
|
|
203
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
193
204
|
}),
|
|
194
|
-
new
|
|
205
|
+
new Param({
|
|
195
206
|
name: 'search',
|
|
196
207
|
description: '指定需要搜索的字段,String类型',
|
|
197
|
-
typeAnnotation:
|
|
208
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
198
209
|
}),
|
|
199
|
-
new
|
|
210
|
+
new Param({
|
|
200
211
|
name: 'ignoreCase',
|
|
201
212
|
description: '是否忽略大小写,true为忽略,false为不忽略',
|
|
202
|
-
defaultExpression: new
|
|
213
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
203
214
|
options: [
|
|
204
215
|
{
|
|
205
216
|
text: 'true',
|
|
@@ -215,511 +226,511 @@ exports.default = new Namespace__1.default({
|
|
|
215
226
|
}),
|
|
216
227
|
],
|
|
217
228
|
returns: [
|
|
218
|
-
new
|
|
219
|
-
typeAnnotation:
|
|
229
|
+
new Return({
|
|
230
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
220
231
|
}),
|
|
221
232
|
],
|
|
222
233
|
}),
|
|
223
|
-
new
|
|
234
|
+
new Function({
|
|
224
235
|
name: 'Replace',
|
|
225
236
|
description: '字符串替换。返回替换后的新字符串。',
|
|
226
237
|
params: [
|
|
227
|
-
new
|
|
238
|
+
new Param({
|
|
228
239
|
name: 'str',
|
|
229
240
|
description: '指定原始字符串',
|
|
230
|
-
typeAnnotation:
|
|
241
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
231
242
|
}),
|
|
232
|
-
new
|
|
243
|
+
new Param({
|
|
233
244
|
name: 'search',
|
|
234
245
|
description: '指定原始字符串中需要被替换的字符串',
|
|
235
|
-
typeAnnotation:
|
|
246
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
236
247
|
}),
|
|
237
|
-
new
|
|
248
|
+
new Param({
|
|
238
249
|
name: 'replace',
|
|
239
250
|
description: '指定进行替换操作的字符串',
|
|
240
|
-
typeAnnotation:
|
|
251
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
241
252
|
}),
|
|
242
253
|
],
|
|
243
254
|
returns: [
|
|
244
|
-
new
|
|
245
|
-
typeAnnotation:
|
|
255
|
+
new Return({
|
|
256
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
246
257
|
}),
|
|
247
258
|
],
|
|
248
259
|
}),
|
|
249
|
-
new
|
|
260
|
+
new Function({
|
|
250
261
|
name: 'SubString',
|
|
251
262
|
description: '字符串截取。返回截取的字符串。',
|
|
252
263
|
params: [
|
|
253
|
-
new
|
|
264
|
+
new Param({
|
|
254
265
|
name: 'str',
|
|
255
266
|
description: '指定需要截取的字符串',
|
|
256
|
-
typeAnnotation:
|
|
267
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
257
268
|
}),
|
|
258
|
-
new
|
|
269
|
+
new Param({
|
|
259
270
|
name: 'start',
|
|
260
271
|
description: 'int类型,输入数字指定开始截取的位置',
|
|
261
|
-
typeAnnotation:
|
|
272
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
262
273
|
}),
|
|
263
|
-
new
|
|
274
|
+
new Param({
|
|
264
275
|
name: 'length',
|
|
265
276
|
description: '指定截取的字符串长度',
|
|
266
|
-
typeAnnotation:
|
|
277
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
267
278
|
}),
|
|
268
279
|
],
|
|
269
280
|
returns: [
|
|
270
|
-
new
|
|
271
|
-
typeAnnotation:
|
|
281
|
+
new Return({
|
|
282
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
272
283
|
}),
|
|
273
284
|
],
|
|
274
285
|
}),
|
|
275
|
-
new
|
|
286
|
+
new Function({
|
|
276
287
|
name: 'EnumToList',
|
|
277
288
|
description: '返回枚举value和text的List集合',
|
|
278
289
|
typeParams: [
|
|
279
|
-
new
|
|
290
|
+
new TypeParam({
|
|
280
291
|
name: 'enum',
|
|
281
292
|
useComponent: { type: 's-enum-select' },
|
|
282
293
|
}),
|
|
283
294
|
],
|
|
284
295
|
returns: [
|
|
285
|
-
new
|
|
286
|
-
typeAnnotation:
|
|
287
|
-
typeArguments: [
|
|
296
|
+
new Return({
|
|
297
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
298
|
+
typeArguments: [TypeAnnotation.createPrimitive('String')],
|
|
288
299
|
}),
|
|
289
300
|
}),
|
|
290
301
|
],
|
|
291
302
|
}),
|
|
292
|
-
new
|
|
303
|
+
new Function({
|
|
293
304
|
name: 'EnumValueToText',
|
|
294
305
|
description: '返回枚举指定value的标题字符串',
|
|
295
306
|
typeParams: [
|
|
296
|
-
new
|
|
307
|
+
new TypeParam({
|
|
297
308
|
name: 'enum',
|
|
298
309
|
useComponent: { type: 's-enum-select' },
|
|
299
310
|
}),
|
|
300
311
|
],
|
|
301
312
|
params: [
|
|
302
|
-
new
|
|
313
|
+
new Param({
|
|
303
314
|
name: 'value',
|
|
304
315
|
description: '指定需要将枚举值转换为标题的字段',
|
|
305
|
-
typeAnnotation:
|
|
316
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
306
317
|
}),
|
|
307
318
|
],
|
|
308
319
|
returns: [
|
|
309
|
-
new
|
|
310
|
-
typeAnnotation:
|
|
320
|
+
new Return({
|
|
321
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
311
322
|
}),
|
|
312
323
|
],
|
|
313
324
|
}),
|
|
314
|
-
new
|
|
325
|
+
new Function({
|
|
315
326
|
name: 'StringToEnumValue',
|
|
316
327
|
description: '在指定enum中找到与参数str相同的枚举值并返回。',
|
|
317
328
|
typeParams: [
|
|
318
|
-
new
|
|
329
|
+
new TypeParam({
|
|
319
330
|
name: 'enum',
|
|
320
331
|
useComponent: { type: 's-enum-select' },
|
|
321
332
|
}),
|
|
322
333
|
],
|
|
323
334
|
params: [
|
|
324
|
-
new
|
|
335
|
+
new Param({
|
|
325
336
|
name: 'value',
|
|
326
337
|
description: '指定一个字符串',
|
|
327
|
-
typeAnnotation:
|
|
338
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
328
339
|
}),
|
|
329
340
|
],
|
|
330
341
|
returns: [
|
|
331
|
-
new
|
|
332
|
-
typeAnnotation:
|
|
342
|
+
new Return({
|
|
343
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
333
344
|
}),
|
|
334
345
|
],
|
|
335
346
|
}),
|
|
336
|
-
new
|
|
347
|
+
new Function({
|
|
337
348
|
name: 'Split',
|
|
338
349
|
description: '将字符串参数,用分割符分割成字符串列表,并返回',
|
|
339
350
|
params: [
|
|
340
|
-
new
|
|
351
|
+
new Param({
|
|
341
352
|
name: 'str',
|
|
342
353
|
description: '指定字符串',
|
|
343
|
-
typeAnnotation:
|
|
354
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
344
355
|
}),
|
|
345
|
-
new
|
|
356
|
+
new Param({
|
|
346
357
|
name: 'separator',
|
|
347
358
|
description: '指定字符串中作为分隔符的参数',
|
|
348
|
-
typeAnnotation:
|
|
359
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
349
360
|
}),
|
|
350
361
|
],
|
|
351
362
|
returns: [
|
|
352
|
-
new
|
|
353
|
-
typeAnnotation:
|
|
354
|
-
typeArguments: [
|
|
363
|
+
new Return({
|
|
364
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
365
|
+
typeArguments: [TypeAnnotation.createPrimitive('String')],
|
|
355
366
|
}),
|
|
356
367
|
}),
|
|
357
368
|
],
|
|
358
369
|
}),
|
|
359
|
-
new
|
|
370
|
+
new Function({
|
|
360
371
|
name: 'Join',
|
|
361
372
|
description: '将列表的项,用连接符连接成一个字符串,并返回',
|
|
362
373
|
params: [
|
|
363
|
-
new
|
|
374
|
+
new Param({
|
|
364
375
|
name: 'list',
|
|
365
376
|
description: '指定列表',
|
|
366
|
-
typeAnnotation:
|
|
367
|
-
typeArguments: [
|
|
377
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
378
|
+
typeArguments: [TypeAnnotation.createPrimitive('String')],
|
|
368
379
|
}),
|
|
369
380
|
}),
|
|
370
|
-
new
|
|
381
|
+
new Param({
|
|
371
382
|
name: 'separator',
|
|
372
383
|
description: '连接符,用于连接列表中的项',
|
|
373
|
-
typeAnnotation:
|
|
384
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
374
385
|
}),
|
|
375
386
|
],
|
|
376
387
|
returns: [
|
|
377
|
-
new
|
|
378
|
-
typeAnnotation:
|
|
388
|
+
new Return({
|
|
389
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
379
390
|
}),
|
|
380
391
|
],
|
|
381
392
|
}),
|
|
382
|
-
new
|
|
393
|
+
new Function({
|
|
383
394
|
name: 'Length',
|
|
384
395
|
description: '返回String或Map或List的长度',
|
|
385
396
|
params: [
|
|
386
|
-
new
|
|
397
|
+
new Param({
|
|
387
398
|
name: 'param',
|
|
388
399
|
description: '指定字符串',
|
|
389
|
-
typeAnnotation:
|
|
400
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
390
401
|
}),
|
|
391
402
|
],
|
|
392
403
|
returns: [
|
|
393
|
-
new
|
|
394
|
-
typeAnnotation:
|
|
404
|
+
new Return({
|
|
405
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
395
406
|
}),
|
|
396
407
|
],
|
|
397
408
|
}),
|
|
398
|
-
new
|
|
409
|
+
new Function({
|
|
399
410
|
name: 'ToLower',
|
|
400
411
|
description: '返回全部小写的字符串',
|
|
401
412
|
params: [
|
|
402
|
-
new
|
|
413
|
+
new Param({
|
|
403
414
|
name: 'str1',
|
|
404
415
|
description: '指定字符串',
|
|
405
|
-
typeAnnotation:
|
|
416
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
406
417
|
}),
|
|
407
418
|
],
|
|
408
419
|
returns: [
|
|
409
|
-
new
|
|
410
|
-
typeAnnotation:
|
|
420
|
+
new Return({
|
|
421
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
411
422
|
}),
|
|
412
423
|
],
|
|
413
424
|
}),
|
|
414
|
-
new
|
|
425
|
+
new Function({
|
|
415
426
|
name: 'ToUpper',
|
|
416
427
|
description: '返回全部大写的字符串',
|
|
417
428
|
params: [
|
|
418
|
-
new
|
|
429
|
+
new Param({
|
|
419
430
|
name: 'str1',
|
|
420
431
|
description: '指定字符串',
|
|
421
|
-
typeAnnotation:
|
|
432
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
422
433
|
}),
|
|
423
434
|
],
|
|
424
435
|
returns: [
|
|
425
|
-
new
|
|
426
|
-
typeAnnotation:
|
|
436
|
+
new Return({
|
|
437
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
427
438
|
}),
|
|
428
439
|
],
|
|
429
440
|
}),
|
|
430
|
-
new
|
|
441
|
+
new Function({
|
|
431
442
|
name: 'Trim',
|
|
432
443
|
description: '删除字符串的前后空格。返回裁剪后的新字符串。',
|
|
433
444
|
params: [
|
|
434
|
-
new
|
|
445
|
+
new Param({
|
|
435
446
|
name: 'str1',
|
|
436
447
|
description: '指定字符串',
|
|
437
|
-
typeAnnotation:
|
|
448
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
438
449
|
}),
|
|
439
450
|
],
|
|
440
451
|
returns: [
|
|
441
|
-
new
|
|
442
|
-
typeAnnotation:
|
|
452
|
+
new Return({
|
|
453
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
443
454
|
}),
|
|
444
455
|
],
|
|
445
456
|
}),
|
|
446
|
-
new
|
|
457
|
+
new Function({
|
|
447
458
|
name: 'Get',
|
|
448
459
|
description: '获得列表位于指定索引处的项',
|
|
449
460
|
params: [
|
|
450
|
-
new
|
|
461
|
+
new Param({
|
|
451
462
|
name: 'list',
|
|
452
463
|
description: '指定列表',
|
|
453
|
-
typeAnnotation:
|
|
454
|
-
typeArguments: [
|
|
464
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
465
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
455
466
|
}),
|
|
456
467
|
}),
|
|
457
|
-
new
|
|
468
|
+
new Param({
|
|
458
469
|
name: 'index',
|
|
459
470
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
460
|
-
typeAnnotation:
|
|
471
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
461
472
|
}),
|
|
462
473
|
],
|
|
463
474
|
returns: [
|
|
464
|
-
new
|
|
465
|
-
typeAnnotation:
|
|
475
|
+
new Return({
|
|
476
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
466
477
|
}),
|
|
467
478
|
],
|
|
468
479
|
}),
|
|
469
|
-
new
|
|
480
|
+
new Function({
|
|
470
481
|
name: 'Set',
|
|
471
482
|
description: '(修改原数据)为列表的指定索引项赋值(覆盖原索引项)',
|
|
472
483
|
params: [
|
|
473
|
-
new
|
|
484
|
+
new Param({
|
|
474
485
|
name: 'list',
|
|
475
486
|
description: '指定列表',
|
|
476
|
-
typeAnnotation:
|
|
477
|
-
typeArguments: [
|
|
487
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
488
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
478
489
|
}),
|
|
479
490
|
}),
|
|
480
|
-
new
|
|
491
|
+
new Param({
|
|
481
492
|
name: 'index',
|
|
482
493
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
483
|
-
typeAnnotation:
|
|
494
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
484
495
|
}),
|
|
485
|
-
new
|
|
496
|
+
new Param({
|
|
486
497
|
name: 'item',
|
|
487
498
|
description: '列表指定索引下的新项',
|
|
488
|
-
typeAnnotation:
|
|
499
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
489
500
|
}),
|
|
490
501
|
],
|
|
491
502
|
returns: [
|
|
492
|
-
new
|
|
493
|
-
typeAnnotation:
|
|
503
|
+
new Return({
|
|
504
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
494
505
|
}),
|
|
495
506
|
],
|
|
496
507
|
}),
|
|
497
|
-
new
|
|
508
|
+
new Function({
|
|
498
509
|
name: 'Contains',
|
|
499
510
|
description: '测试列表是否包含某一项,返回测试结果',
|
|
500
511
|
params: [
|
|
501
|
-
new
|
|
512
|
+
new Param({
|
|
502
513
|
name: 'list',
|
|
503
514
|
description: '指定列表',
|
|
504
|
-
typeAnnotation:
|
|
505
|
-
typeArguments: [
|
|
515
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
516
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
506
517
|
}),
|
|
507
518
|
}),
|
|
508
|
-
new
|
|
519
|
+
new Param({
|
|
509
520
|
name: 'item',
|
|
510
521
|
description: '指定项',
|
|
511
|
-
typeAnnotation:
|
|
522
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
512
523
|
}),
|
|
513
524
|
],
|
|
514
525
|
returns: [
|
|
515
|
-
new
|
|
516
|
-
typeAnnotation:
|
|
526
|
+
new Return({
|
|
527
|
+
typeAnnotation: TypeAnnotation.createTypeParam('Boolean'),
|
|
517
528
|
}),
|
|
518
529
|
],
|
|
519
530
|
}),
|
|
520
|
-
new
|
|
531
|
+
new Function({
|
|
521
532
|
name: 'Add',
|
|
522
533
|
description: '(修改原数据)在列表末尾追加项。',
|
|
523
534
|
params: [
|
|
524
|
-
new
|
|
535
|
+
new Param({
|
|
525
536
|
name: 'list',
|
|
526
537
|
description: '指定列表',
|
|
527
|
-
typeAnnotation:
|
|
528
|
-
typeArguments: [
|
|
538
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
539
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
529
540
|
}),
|
|
530
541
|
}),
|
|
531
|
-
new
|
|
542
|
+
new Param({
|
|
532
543
|
name: 'item',
|
|
533
544
|
description: '指定需要在列表末尾增加的项',
|
|
534
|
-
typeAnnotation:
|
|
545
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
535
546
|
}),
|
|
536
547
|
],
|
|
537
548
|
}),
|
|
538
|
-
new
|
|
549
|
+
new Function({
|
|
539
550
|
name: 'AddAll',
|
|
540
551
|
description: '(修改原数据)为一个列表添加另一列表中的多项内容。返回新列表的长度',
|
|
541
552
|
params: [
|
|
542
|
-
new
|
|
553
|
+
new Param({
|
|
543
554
|
name: 'list',
|
|
544
555
|
description: '指定列表1',
|
|
545
|
-
typeAnnotation:
|
|
546
|
-
typeArguments: [
|
|
556
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
557
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
547
558
|
}),
|
|
548
559
|
}),
|
|
549
|
-
new
|
|
560
|
+
new Param({
|
|
550
561
|
name: 'addList',
|
|
551
562
|
description: '指定列表2',
|
|
552
|
-
typeAnnotation:
|
|
553
|
-
typeArguments: [
|
|
563
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
564
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
554
565
|
}),
|
|
555
566
|
}),
|
|
556
567
|
],
|
|
557
568
|
returns: [
|
|
558
|
-
new
|
|
559
|
-
typeAnnotation:
|
|
569
|
+
new Return({
|
|
570
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
560
571
|
}),
|
|
561
572
|
],
|
|
562
573
|
}),
|
|
563
|
-
new
|
|
574
|
+
new Function({
|
|
564
575
|
name: 'Insert',
|
|
565
576
|
description: '(修改原数据)在列表的指定索引处插入新项(原索引项依次后推)',
|
|
566
577
|
params: [
|
|
567
|
-
new
|
|
578
|
+
new Param({
|
|
568
579
|
name: 'list',
|
|
569
580
|
description: '指定列表',
|
|
570
|
-
typeAnnotation:
|
|
571
|
-
typeArguments: [
|
|
581
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
582
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
572
583
|
}),
|
|
573
584
|
}),
|
|
574
|
-
new
|
|
585
|
+
new Param({
|
|
575
586
|
name: 'index',
|
|
576
587
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
577
|
-
typeAnnotation:
|
|
588
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
578
589
|
}),
|
|
579
|
-
new
|
|
590
|
+
new Param({
|
|
580
591
|
name: 'item',
|
|
581
592
|
description: '待插入项',
|
|
582
|
-
typeAnnotation:
|
|
593
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
583
594
|
}),
|
|
584
595
|
],
|
|
585
596
|
}),
|
|
586
|
-
new
|
|
597
|
+
new Function({
|
|
587
598
|
name: 'Remove',
|
|
588
599
|
description: '(修改原数据)删除列表的某项',
|
|
589
600
|
params: [
|
|
590
|
-
new
|
|
601
|
+
new Param({
|
|
591
602
|
name: 'list',
|
|
592
603
|
description: '指定列表',
|
|
593
|
-
typeAnnotation:
|
|
594
|
-
typeArguments: [
|
|
604
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
605
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
595
606
|
}),
|
|
596
607
|
}),
|
|
597
|
-
new
|
|
608
|
+
new Param({
|
|
598
609
|
name: 'item',
|
|
599
610
|
description: '指定项',
|
|
600
|
-
typeAnnotation:
|
|
611
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
601
612
|
}),
|
|
602
613
|
],
|
|
603
614
|
}),
|
|
604
|
-
new
|
|
615
|
+
new Function({
|
|
605
616
|
name: 'RemoveAt',
|
|
606
617
|
description: '(修改原数据)在列表中删除位于指定索引的项。返回被删除的项',
|
|
607
618
|
params: [
|
|
608
|
-
new
|
|
619
|
+
new Param({
|
|
609
620
|
name: 'list',
|
|
610
621
|
description: '指定列表',
|
|
611
|
-
typeAnnotation:
|
|
612
|
-
typeArguments: [
|
|
622
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
623
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
613
624
|
}),
|
|
614
625
|
}),
|
|
615
|
-
new
|
|
626
|
+
new Param({
|
|
616
627
|
name: 'index',
|
|
617
628
|
description: '索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
618
|
-
typeAnnotation:
|
|
629
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
619
630
|
}),
|
|
620
631
|
],
|
|
621
632
|
returns: [
|
|
622
|
-
new
|
|
623
|
-
typeAnnotation:
|
|
633
|
+
new Return({
|
|
634
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
624
635
|
}),
|
|
625
636
|
],
|
|
626
637
|
}),
|
|
627
|
-
new
|
|
638
|
+
new Function({
|
|
628
639
|
name: 'ListHead',
|
|
629
640
|
description: '返回列表的首项',
|
|
630
641
|
params: [
|
|
631
|
-
new
|
|
642
|
+
new Param({
|
|
632
643
|
name: 'list',
|
|
633
644
|
description: '指定列表',
|
|
634
645
|
}),
|
|
635
646
|
],
|
|
636
647
|
returns: [
|
|
637
|
-
new
|
|
638
|
-
typeAnnotation:
|
|
648
|
+
new Return({
|
|
649
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
639
650
|
}),
|
|
640
651
|
],
|
|
641
652
|
}),
|
|
642
|
-
new
|
|
653
|
+
new Function({
|
|
643
654
|
name: 'ListLast',
|
|
644
655
|
description: '返回列表的末项',
|
|
645
656
|
params: [
|
|
646
|
-
new
|
|
657
|
+
new Param({
|
|
647
658
|
name: 'list',
|
|
648
659
|
description: '指定列表',
|
|
649
660
|
}),
|
|
650
661
|
],
|
|
651
662
|
returns: [
|
|
652
|
-
new
|
|
653
|
-
typeAnnotation:
|
|
663
|
+
new Return({
|
|
664
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
654
665
|
}),
|
|
655
666
|
],
|
|
656
667
|
}),
|
|
657
|
-
new
|
|
668
|
+
new Function({
|
|
658
669
|
name: 'ListFlatten',
|
|
659
670
|
description: '将嵌套列表摊平一层并返回(List<List<T>> 变为 List<T>)',
|
|
660
671
|
params: [
|
|
661
|
-
new
|
|
672
|
+
new Param({
|
|
662
673
|
name: 'list',
|
|
663
674
|
description: '指定列表',
|
|
664
675
|
}),
|
|
665
676
|
],
|
|
666
677
|
returns: [
|
|
667
|
-
new
|
|
668
|
-
typeAnnotation:
|
|
669
|
-
typeArguments: [
|
|
678
|
+
new Return({
|
|
679
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
680
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
670
681
|
}),
|
|
671
682
|
}),
|
|
672
683
|
],
|
|
673
684
|
}),
|
|
674
|
-
new
|
|
685
|
+
new Function({
|
|
675
686
|
name: 'ListToMap',
|
|
676
687
|
description: '选取列表项的某些属性,根据这些属性将列表变为 Map 并返回',
|
|
677
688
|
params: [
|
|
678
|
-
new
|
|
689
|
+
new Param({
|
|
679
690
|
name: 'list',
|
|
680
691
|
description: '指定列表',
|
|
681
692
|
}),
|
|
682
|
-
new
|
|
693
|
+
new Param({
|
|
683
694
|
name: 'by',
|
|
684
695
|
description: `根据项的属性及其本身进行key和value的定义`,
|
|
685
|
-
defaultExpression: new
|
|
696
|
+
defaultExpression: new AnonymousFunction({
|
|
686
697
|
params: [
|
|
687
|
-
new
|
|
698
|
+
new Param({
|
|
688
699
|
name: 'item',
|
|
689
700
|
typeAnnotation: null,
|
|
690
701
|
}),
|
|
691
702
|
],
|
|
692
|
-
body: new
|
|
703
|
+
body: new Identifier(),
|
|
693
704
|
}),
|
|
694
705
|
}),
|
|
695
|
-
new
|
|
706
|
+
new Param({
|
|
696
707
|
name: 'byVal',
|
|
697
|
-
defaultExpression: new
|
|
708
|
+
defaultExpression: new AnonymousFunction({
|
|
698
709
|
params: [
|
|
699
|
-
new
|
|
710
|
+
new Param({
|
|
700
711
|
name: 'item',
|
|
701
712
|
typeAnnotation: null,
|
|
702
713
|
}),
|
|
703
714
|
],
|
|
704
|
-
body: new
|
|
715
|
+
body: new Identifier(),
|
|
705
716
|
}),
|
|
706
717
|
}),
|
|
707
718
|
],
|
|
708
719
|
}),
|
|
709
|
-
new
|
|
720
|
+
new Function({
|
|
710
721
|
name: 'ListTransform',
|
|
711
722
|
description: '对列表的每一项调用函数 by,得到新项;返回新项构成的列表',
|
|
712
723
|
params: [
|
|
713
|
-
new
|
|
724
|
+
new Param({
|
|
714
725
|
name: 'list',
|
|
715
726
|
description: '指定列表',
|
|
716
727
|
}),
|
|
717
|
-
new
|
|
728
|
+
new Param({
|
|
718
729
|
name: 'by',
|
|
719
730
|
description: '指定对列表中项的某个属性或项本身的处理方式,支持算数运算和比较运算',
|
|
720
|
-
defaultExpression: new
|
|
731
|
+
defaultExpression: new AnonymousFunction({
|
|
721
732
|
params: [
|
|
722
|
-
new
|
|
733
|
+
new Param({
|
|
723
734
|
name: 'item',
|
|
724
735
|
typeAnnotation: null,
|
|
725
736
|
}),
|
|
@@ -728,251 +739,251 @@ exports.default = new Namespace__1.default({
|
|
|
728
739
|
}),
|
|
729
740
|
],
|
|
730
741
|
returns: [
|
|
731
|
-
new
|
|
732
|
-
typeAnnotation:
|
|
733
|
-
typeArguments: [
|
|
742
|
+
new Return({
|
|
743
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
744
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
734
745
|
}),
|
|
735
746
|
}),
|
|
736
747
|
],
|
|
737
748
|
}),
|
|
738
|
-
new
|
|
749
|
+
new Function({
|
|
739
750
|
name: 'ListSum',
|
|
740
751
|
description: '返回数值列表中所有项的和',
|
|
741
752
|
params: [
|
|
742
|
-
new
|
|
753
|
+
new Param({
|
|
743
754
|
name: 'list',
|
|
744
755
|
description: '指定列表',
|
|
745
756
|
}),
|
|
746
757
|
],
|
|
747
758
|
returns: [
|
|
748
|
-
new
|
|
749
|
-
typeAnnotation:
|
|
759
|
+
new Return({
|
|
760
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
750
761
|
}),
|
|
751
762
|
],
|
|
752
763
|
}),
|
|
753
|
-
new
|
|
764
|
+
new Function({
|
|
754
765
|
name: 'ListProduct',
|
|
755
766
|
description: '返回数值列表中所有项的积',
|
|
756
767
|
params: [
|
|
757
|
-
new
|
|
768
|
+
new Param({
|
|
758
769
|
name: 'list',
|
|
759
770
|
description: '指定数值类型列表',
|
|
760
771
|
}),
|
|
761
772
|
],
|
|
762
773
|
returns: [
|
|
763
|
-
new
|
|
764
|
-
typeAnnotation:
|
|
774
|
+
new Return({
|
|
775
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
765
776
|
}),
|
|
766
777
|
],
|
|
767
778
|
}),
|
|
768
|
-
new
|
|
779
|
+
new Function({
|
|
769
780
|
name: 'ListAverage',
|
|
770
781
|
description: '返回数值列表中所有项的平均值',
|
|
771
782
|
params: [
|
|
772
|
-
new
|
|
783
|
+
new Param({
|
|
773
784
|
name: 'list',
|
|
774
785
|
description: '指定数值类型列表',
|
|
775
786
|
}),
|
|
776
787
|
],
|
|
777
788
|
returns: [
|
|
778
|
-
new
|
|
779
|
-
typeAnnotation:
|
|
789
|
+
new Return({
|
|
790
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
780
791
|
}),
|
|
781
792
|
],
|
|
782
793
|
}),
|
|
783
|
-
new
|
|
794
|
+
new Function({
|
|
784
795
|
name: 'ListMax',
|
|
785
796
|
description: '返回数值列表中所有项的最大值',
|
|
786
797
|
params: [
|
|
787
|
-
new
|
|
798
|
+
new Param({
|
|
788
799
|
name: 'list',
|
|
789
800
|
description: '指定数值类型列表',
|
|
790
801
|
}),
|
|
791
802
|
],
|
|
792
803
|
returns: [
|
|
793
|
-
new
|
|
794
|
-
typeAnnotation:
|
|
804
|
+
new Return({
|
|
805
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
795
806
|
}),
|
|
796
807
|
],
|
|
797
808
|
}),
|
|
798
|
-
new
|
|
809
|
+
new Function({
|
|
799
810
|
name: 'ListMin',
|
|
800
811
|
description: '返回数值列表中所有项的最小值',
|
|
801
812
|
params: [
|
|
802
|
-
new
|
|
813
|
+
new Param({
|
|
803
814
|
name: 'list',
|
|
804
815
|
description: '指定数值类型列表',
|
|
805
816
|
}),
|
|
806
817
|
],
|
|
807
818
|
returns: [
|
|
808
|
-
new
|
|
809
|
-
typeAnnotation:
|
|
819
|
+
new Return({
|
|
820
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
810
821
|
}),
|
|
811
822
|
],
|
|
812
823
|
}),
|
|
813
|
-
new
|
|
824
|
+
new Function({
|
|
814
825
|
name: 'MapGet',
|
|
815
826
|
description: '查询出Map中key为指定值的value值列表',
|
|
816
827
|
params: [
|
|
817
|
-
new
|
|
828
|
+
new Param({
|
|
818
829
|
name: 'map',
|
|
819
830
|
description: '指定映射',
|
|
820
|
-
typeAnnotation:
|
|
831
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
821
832
|
typeArguments: [
|
|
822
|
-
|
|
823
|
-
|
|
833
|
+
TypeAnnotation.createTypeParam('K'),
|
|
834
|
+
TypeAnnotation.createTypeParam('V'),
|
|
824
835
|
],
|
|
825
836
|
}),
|
|
826
837
|
}),
|
|
827
|
-
new
|
|
838
|
+
new Param({
|
|
828
839
|
name: 'key',
|
|
829
840
|
description: '指定参数key',
|
|
830
|
-
typeAnnotation:
|
|
841
|
+
typeAnnotation: TypeAnnotation.createTypeParam('K'),
|
|
831
842
|
}),
|
|
832
843
|
],
|
|
833
844
|
returns: [
|
|
834
|
-
new
|
|
835
|
-
typeAnnotation:
|
|
845
|
+
new Return({
|
|
846
|
+
typeAnnotation: TypeAnnotation.createTypeParam('V'),
|
|
836
847
|
}),
|
|
837
848
|
],
|
|
838
849
|
}),
|
|
839
|
-
new
|
|
850
|
+
new Function({
|
|
840
851
|
name: 'MapPut',
|
|
841
852
|
description: '(修改原数据)为Map中添加键值对',
|
|
842
853
|
params: [
|
|
843
|
-
new
|
|
854
|
+
new Param({
|
|
844
855
|
name: 'map',
|
|
845
856
|
description: '指定映射',
|
|
846
|
-
typeAnnotation:
|
|
857
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
847
858
|
typeArguments: [
|
|
848
|
-
|
|
849
|
-
|
|
859
|
+
TypeAnnotation.createTypeParam('K'),
|
|
860
|
+
TypeAnnotation.createTypeParam('V'),
|
|
850
861
|
],
|
|
851
862
|
}),
|
|
852
863
|
}),
|
|
853
|
-
new
|
|
864
|
+
new Param({
|
|
854
865
|
name: 'key',
|
|
855
866
|
description: '指定参数key',
|
|
856
|
-
typeAnnotation:
|
|
867
|
+
typeAnnotation: TypeAnnotation.createTypeParam('K'),
|
|
857
868
|
}),
|
|
858
|
-
new
|
|
869
|
+
new Param({
|
|
859
870
|
name: 'value',
|
|
860
871
|
description: '指定参数value',
|
|
861
|
-
typeAnnotation:
|
|
872
|
+
typeAnnotation: TypeAnnotation.createTypeParam('V'),
|
|
862
873
|
}),
|
|
863
874
|
],
|
|
864
875
|
}),
|
|
865
|
-
new
|
|
876
|
+
new Function({
|
|
866
877
|
name: 'MapRemove',
|
|
867
878
|
description: '(修改原数据)删除Map中的键值对',
|
|
868
879
|
params: [
|
|
869
|
-
new
|
|
880
|
+
new Param({
|
|
870
881
|
name: 'map',
|
|
871
882
|
description: '指定列表',
|
|
872
|
-
typeAnnotation:
|
|
883
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
873
884
|
typeArguments: [
|
|
874
|
-
|
|
875
|
-
|
|
885
|
+
TypeAnnotation.createTypeParam('K'),
|
|
886
|
+
TypeAnnotation.createTypeParam('V'),
|
|
876
887
|
],
|
|
877
888
|
}),
|
|
878
889
|
}),
|
|
879
|
-
new
|
|
890
|
+
new Param({
|
|
880
891
|
name: 'key',
|
|
881
892
|
description: '指定参数key',
|
|
882
|
-
typeAnnotation:
|
|
893
|
+
typeAnnotation: TypeAnnotation.createTypeParam('K'),
|
|
883
894
|
}),
|
|
884
895
|
],
|
|
885
896
|
}),
|
|
886
|
-
new
|
|
897
|
+
new Function({
|
|
887
898
|
name: 'MapContains',
|
|
888
899
|
description: '判断Map中是否存在参数指定的键值对',
|
|
889
900
|
params: [
|
|
890
|
-
new
|
|
901
|
+
new Param({
|
|
891
902
|
name: 'map',
|
|
892
903
|
description: '指定映射',
|
|
893
|
-
typeAnnotation:
|
|
904
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
894
905
|
typeArguments: [
|
|
895
|
-
|
|
896
|
-
|
|
906
|
+
TypeAnnotation.createTypeParam('K'),
|
|
907
|
+
TypeAnnotation.createTypeParam('V'),
|
|
897
908
|
],
|
|
898
909
|
}),
|
|
899
910
|
}),
|
|
900
|
-
new
|
|
911
|
+
new Param({
|
|
901
912
|
name: 'key',
|
|
902
913
|
description: '指定参数key',
|
|
903
|
-
typeAnnotation:
|
|
914
|
+
typeAnnotation: TypeAnnotation.createTypeParam('K'),
|
|
904
915
|
}),
|
|
905
916
|
],
|
|
906
917
|
returns: [
|
|
907
|
-
new
|
|
908
|
-
typeAnnotation:
|
|
918
|
+
new Return({
|
|
919
|
+
typeAnnotation: TypeAnnotation.createTypeParam('Boolean'),
|
|
909
920
|
}),
|
|
910
921
|
],
|
|
911
922
|
}),
|
|
912
|
-
new
|
|
923
|
+
new Function({
|
|
913
924
|
name: 'MapKeys',
|
|
914
925
|
description: '输出Map中key集合',
|
|
915
926
|
params: [
|
|
916
|
-
new
|
|
927
|
+
new Param({
|
|
917
928
|
name: 'map',
|
|
918
929
|
description: '指定映射',
|
|
919
|
-
typeAnnotation:
|
|
930
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
920
931
|
typeArguments: [
|
|
921
|
-
|
|
922
|
-
|
|
932
|
+
TypeAnnotation.createTypeParam('K'),
|
|
933
|
+
TypeAnnotation.createTypeParam('V'),
|
|
923
934
|
],
|
|
924
935
|
}),
|
|
925
936
|
}),
|
|
926
937
|
],
|
|
927
938
|
returns: [
|
|
928
|
-
new
|
|
929
|
-
typeAnnotation:
|
|
930
|
-
typeArguments: [
|
|
939
|
+
new Return({
|
|
940
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
941
|
+
typeArguments: [TypeAnnotation.createTypeParam('K')],
|
|
931
942
|
}),
|
|
932
943
|
}),
|
|
933
944
|
],
|
|
934
945
|
}),
|
|
935
|
-
new
|
|
946
|
+
new Function({
|
|
936
947
|
name: 'MapValues',
|
|
937
948
|
description: '输出Map中value集合',
|
|
938
949
|
params: [
|
|
939
|
-
new
|
|
950
|
+
new Param({
|
|
940
951
|
name: 'map',
|
|
941
952
|
description: '指定映射',
|
|
942
|
-
typeAnnotation:
|
|
953
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
943
954
|
typeArguments: [
|
|
944
|
-
|
|
945
|
-
|
|
955
|
+
TypeAnnotation.createTypeParam('K'),
|
|
956
|
+
TypeAnnotation.createTypeParam('V'),
|
|
946
957
|
],
|
|
947
958
|
}),
|
|
948
959
|
}),
|
|
949
960
|
],
|
|
950
961
|
returns: [
|
|
951
|
-
new
|
|
952
|
-
typeAnnotation:
|
|
953
|
-
typeArguments: [
|
|
962
|
+
new Return({
|
|
963
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
964
|
+
typeArguments: [TypeAnnotation.createTypeParam('V')],
|
|
954
965
|
}),
|
|
955
966
|
}),
|
|
956
967
|
],
|
|
957
968
|
}),
|
|
958
|
-
new
|
|
969
|
+
new Function({
|
|
959
970
|
name: 'MapFilter',
|
|
960
971
|
description: '在指定Map中过滤出符合条件参数的Map列表',
|
|
961
972
|
params: [
|
|
962
|
-
new
|
|
973
|
+
new Param({
|
|
963
974
|
name: 'map',
|
|
964
975
|
description: '指定映射',
|
|
965
976
|
}),
|
|
966
|
-
new
|
|
977
|
+
new Param({
|
|
967
978
|
name: 'by',
|
|
968
979
|
description: '针对键值对的参数key和value设置过滤条件,支持算数运算、比较运算和逻辑运算',
|
|
969
|
-
defaultExpression: new
|
|
980
|
+
defaultExpression: new AnonymousFunction({
|
|
970
981
|
params: [
|
|
971
|
-
new
|
|
982
|
+
new Param({
|
|
972
983
|
name: 'key',
|
|
973
984
|
typeAnnotation: null,
|
|
974
985
|
}),
|
|
975
|
-
new
|
|
986
|
+
new Param({
|
|
976
987
|
name: 'value',
|
|
977
988
|
typeAnnotation: null,
|
|
978
989
|
}),
|
|
@@ -981,52 +992,52 @@ exports.default = new Namespace__1.default({
|
|
|
981
992
|
}),
|
|
982
993
|
],
|
|
983
994
|
returns: [
|
|
984
|
-
new
|
|
985
|
-
typeAnnotation:
|
|
995
|
+
new Return({
|
|
996
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
986
997
|
typeArguments: [
|
|
987
|
-
|
|
988
|
-
|
|
998
|
+
TypeAnnotation.createTypeParam('K'),
|
|
999
|
+
TypeAnnotation.createTypeParam('V'),
|
|
989
1000
|
],
|
|
990
1001
|
}),
|
|
991
1002
|
}),
|
|
992
1003
|
],
|
|
993
1004
|
}),
|
|
994
|
-
new
|
|
1005
|
+
new Function({
|
|
995
1006
|
name: 'MapTransform',
|
|
996
1007
|
description: '对 Map 的每一项调用函数 by,得到新项,并返回新项构成的 Map。(Map 的每一项从 (K0, V0) 变为 (K, V)。)',
|
|
997
1008
|
params: [
|
|
998
|
-
new
|
|
1009
|
+
new Param({
|
|
999
1010
|
name: 'map',
|
|
1000
1011
|
description: '指定映射',
|
|
1001
1012
|
}),
|
|
1002
|
-
new
|
|
1013
|
+
new Param({
|
|
1003
1014
|
name: 'by',
|
|
1004
1015
|
description: `指定映射中键值对的参数处理方式,支持算数运算和比较运算`,
|
|
1005
|
-
defaultExpression: new
|
|
1016
|
+
defaultExpression: new AnonymousFunction({
|
|
1006
1017
|
params: [
|
|
1007
|
-
new
|
|
1018
|
+
new Param({
|
|
1008
1019
|
name: 'key',
|
|
1009
1020
|
typeAnnotation: null,
|
|
1010
1021
|
}),
|
|
1011
|
-
new
|
|
1022
|
+
new Param({
|
|
1012
1023
|
name: 'value',
|
|
1013
1024
|
typeAnnotation: null,
|
|
1014
1025
|
}),
|
|
1015
1026
|
],
|
|
1016
|
-
body: new
|
|
1027
|
+
body: new Identifier({
|
|
1017
1028
|
name: 'key',
|
|
1018
1029
|
}),
|
|
1019
1030
|
}),
|
|
1020
1031
|
}),
|
|
1021
|
-
new
|
|
1032
|
+
new Param({
|
|
1022
1033
|
name: 'byVal',
|
|
1023
|
-
defaultExpression: new
|
|
1034
|
+
defaultExpression: new AnonymousFunction({
|
|
1024
1035
|
params: [
|
|
1025
|
-
new
|
|
1036
|
+
new Param({
|
|
1026
1037
|
name: 'key',
|
|
1027
1038
|
typeAnnotation: null,
|
|
1028
1039
|
}),
|
|
1029
|
-
new
|
|
1040
|
+
new Param({
|
|
1030
1041
|
name: 'value',
|
|
1031
1042
|
typeAnnotation: null,
|
|
1032
1043
|
}),
|
|
@@ -1035,124 +1046,124 @@ exports.default = new Namespace__1.default({
|
|
|
1035
1046
|
}),
|
|
1036
1047
|
],
|
|
1037
1048
|
returns: [
|
|
1038
|
-
new
|
|
1039
|
-
typeAnnotation:
|
|
1040
|
-
typeArguments: [
|
|
1049
|
+
new Return({
|
|
1050
|
+
typeAnnotation: TypeAnnotation.createGeneric('Map', {
|
|
1051
|
+
typeArguments: [TypeAnnotation.createTypeParam('K'), TypeAnnotation.createTypeParam('V')],
|
|
1041
1052
|
}),
|
|
1042
1053
|
}),
|
|
1043
1054
|
],
|
|
1044
1055
|
}),
|
|
1045
|
-
new
|
|
1056
|
+
new Function({
|
|
1046
1057
|
name: 'CurrDate',
|
|
1047
1058
|
description: '返回指定时区的当前日期',
|
|
1048
1059
|
params: [],
|
|
1049
1060
|
returns: [
|
|
1050
|
-
new
|
|
1051
|
-
typeAnnotation:
|
|
1061
|
+
new Return({
|
|
1062
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Date'),
|
|
1052
1063
|
}),
|
|
1053
1064
|
],
|
|
1054
1065
|
}),
|
|
1055
|
-
new
|
|
1066
|
+
new Function({
|
|
1056
1067
|
name: 'CurrTime',
|
|
1057
1068
|
description: '返回指定时区的当前时间',
|
|
1058
1069
|
params: [],
|
|
1059
1070
|
returns: [
|
|
1060
|
-
new
|
|
1061
|
-
typeAnnotation:
|
|
1071
|
+
new Return({
|
|
1072
|
+
typeAnnotation: TypeAnnotation.createTypeParam('Time'),
|
|
1062
1073
|
}),
|
|
1063
1074
|
],
|
|
1064
1075
|
}),
|
|
1065
|
-
new
|
|
1076
|
+
new Function({
|
|
1066
1077
|
name: 'CurrDateTime',
|
|
1067
1078
|
description: '返回指定时区的当前日期时间',
|
|
1068
1079
|
params: [],
|
|
1069
1080
|
returns: [
|
|
1070
|
-
new
|
|
1071
|
-
typeAnnotation:
|
|
1081
|
+
new Return({
|
|
1082
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1072
1083
|
}),
|
|
1073
1084
|
],
|
|
1074
1085
|
}),
|
|
1075
|
-
new
|
|
1086
|
+
new Function({
|
|
1076
1087
|
name: 'FormatDate',
|
|
1077
1088
|
description: '返回格式化日期字符串',
|
|
1078
1089
|
params: [
|
|
1079
|
-
new
|
|
1090
|
+
new Param({
|
|
1080
1091
|
name: 'date',
|
|
1081
1092
|
description: '指定需要格式化日期的字段',
|
|
1082
|
-
typeAnnotation:
|
|
1093
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Date'),
|
|
1083
1094
|
}),
|
|
1084
|
-
new
|
|
1095
|
+
new Param({
|
|
1085
1096
|
name: 'formatter',
|
|
1086
1097
|
description: '格式化规则,默认为yyyy-MM-dd,即年月日格式',
|
|
1087
|
-
defaultValue: new
|
|
1088
|
-
expression: new
|
|
1098
|
+
defaultValue: new DefaultValue({
|
|
1099
|
+
expression: new StringLiteral({ value: 'yyyy-MM-dd' }),
|
|
1089
1100
|
concept: 'DefaultValue',
|
|
1090
1101
|
}),
|
|
1091
|
-
defaultExpression: new
|
|
1092
|
-
typeAnnotation:
|
|
1102
|
+
defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd' }),
|
|
1103
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1093
1104
|
})
|
|
1094
1105
|
],
|
|
1095
1106
|
returns: [
|
|
1096
|
-
new
|
|
1097
|
-
typeAnnotation:
|
|
1107
|
+
new Return({
|
|
1108
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1098
1109
|
}),
|
|
1099
1110
|
],
|
|
1100
1111
|
}),
|
|
1101
|
-
new
|
|
1112
|
+
new Function({
|
|
1102
1113
|
name: 'FormatDateTime',
|
|
1103
1114
|
description: '返回格式化日期时间字符串。当输入为 DateTime 类型时,会把数据转到目标时区的当地时间进行格式化。',
|
|
1104
1115
|
params: [
|
|
1105
|
-
new
|
|
1116
|
+
new Param({
|
|
1106
1117
|
name: 'date',
|
|
1107
1118
|
description: '指定需要格式化日期时间的字段',
|
|
1108
|
-
typeAnnotation:
|
|
1119
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1109
1120
|
}),
|
|
1110
|
-
new
|
|
1121
|
+
new Param({
|
|
1111
1122
|
name: 'formatter',
|
|
1112
1123
|
description: '格式化规则,默认为yyyy-MM-dd',
|
|
1113
|
-
typeAnnotation:
|
|
1114
|
-
defaultValue: new
|
|
1115
|
-
expression: new
|
|
1124
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1125
|
+
defaultValue: new DefaultValue({
|
|
1126
|
+
expression: new StringLiteral({ value: 'yyyy-MM-dd HH:mm:ss' }),
|
|
1116
1127
|
concept: 'DefaultValue',
|
|
1117
1128
|
}),
|
|
1118
|
-
defaultExpression: new
|
|
1129
|
+
defaultExpression: new StringLiteral({ value: 'yyyy-MM-dd HH:mm:ss' }),
|
|
1119
1130
|
}),
|
|
1120
1131
|
],
|
|
1121
1132
|
returns: [
|
|
1122
|
-
new
|
|
1123
|
-
typeAnnotation:
|
|
1133
|
+
new Return({
|
|
1134
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1124
1135
|
}),
|
|
1125
1136
|
],
|
|
1126
1137
|
}),
|
|
1127
|
-
new
|
|
1138
|
+
new Function({
|
|
1128
1139
|
name: 'FormatNumber',
|
|
1129
1140
|
description: '返回格式化的数字字符串',
|
|
1130
1141
|
params: [
|
|
1131
|
-
new
|
|
1142
|
+
new Param({
|
|
1132
1143
|
name: 'value',
|
|
1133
1144
|
description: '指定需要格式化小数位数的字段',
|
|
1134
|
-
typeAnnotation:
|
|
1135
|
-
defaultExpression: new
|
|
1145
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
|
|
1146
|
+
defaultExpression: new Identifier(),
|
|
1136
1147
|
}),
|
|
1137
|
-
new
|
|
1148
|
+
new Param({
|
|
1138
1149
|
name: 'digits',
|
|
1139
|
-
typeAnnotation:
|
|
1150
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1140
1151
|
description: '保留小数位数',
|
|
1141
|
-
defaultValue: new
|
|
1142
|
-
expression: new
|
|
1152
|
+
defaultValue: new DefaultValue({
|
|
1153
|
+
expression: new NumericLiteral({ value: '2' }),
|
|
1143
1154
|
concept: 'DefaultValue',
|
|
1144
1155
|
}),
|
|
1145
|
-
defaultExpression: new
|
|
1156
|
+
defaultExpression: new NumericLiteral({ value: '2' }),
|
|
1146
1157
|
}),
|
|
1147
|
-
new
|
|
1158
|
+
new Param({
|
|
1148
1159
|
name: 'showGroups',
|
|
1149
1160
|
description: '是否显示千分位:true显示,false不显示',
|
|
1150
|
-
typeAnnotation:
|
|
1151
|
-
defaultValue: new
|
|
1152
|
-
expression: new
|
|
1161
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1162
|
+
defaultValue: new DefaultValue({
|
|
1163
|
+
expression: new BooleanLiteral({ value: 'false' }),
|
|
1153
1164
|
concept: 'DefaultValue',
|
|
1154
1165
|
}),
|
|
1155
|
-
defaultExpression: new
|
|
1166
|
+
defaultExpression: new BooleanLiteral({ value: 'false' }),
|
|
1156
1167
|
options: [
|
|
1157
1168
|
{
|
|
1158
1169
|
text: 'true',
|
|
@@ -1168,78 +1179,78 @@ exports.default = new Namespace__1.default({
|
|
|
1168
1179
|
}),
|
|
1169
1180
|
],
|
|
1170
1181
|
returns: [
|
|
1171
|
-
new
|
|
1172
|
-
typeAnnotation:
|
|
1182
|
+
new Return({
|
|
1183
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1173
1184
|
}),
|
|
1174
1185
|
],
|
|
1175
1186
|
}),
|
|
1176
|
-
new
|
|
1187
|
+
new Function({
|
|
1177
1188
|
name: 'AddDays',
|
|
1178
1189
|
description: '返回日期天数加法计算结果',
|
|
1179
1190
|
params: [
|
|
1180
|
-
new
|
|
1191
|
+
new Param({
|
|
1181
1192
|
name: 'dateTime',
|
|
1182
1193
|
description: '指定日期时间',
|
|
1183
|
-
typeAnnotation:
|
|
1194
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1184
1195
|
}),
|
|
1185
|
-
new
|
|
1196
|
+
new Param({
|
|
1186
1197
|
name: 'amount',
|
|
1187
1198
|
description: '增加的天数',
|
|
1188
|
-
typeAnnotation:
|
|
1199
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1189
1200
|
}),
|
|
1190
1201
|
],
|
|
1191
1202
|
returns: [
|
|
1192
|
-
new
|
|
1193
|
-
typeAnnotation:
|
|
1203
|
+
new Return({
|
|
1204
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1194
1205
|
}),
|
|
1195
1206
|
],
|
|
1196
1207
|
}),
|
|
1197
|
-
new
|
|
1208
|
+
new Function({
|
|
1198
1209
|
name: 'AddMonths',
|
|
1199
1210
|
description: '返回月份加法计算结果',
|
|
1200
1211
|
params: [
|
|
1201
|
-
new
|
|
1212
|
+
new Param({
|
|
1202
1213
|
name: 'dateTime',
|
|
1203
1214
|
description: '指定日期时间',
|
|
1204
|
-
typeAnnotation:
|
|
1215
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1205
1216
|
}),
|
|
1206
|
-
new
|
|
1217
|
+
new Param({
|
|
1207
1218
|
name: 'amount',
|
|
1208
1219
|
description: '增加的月数',
|
|
1209
|
-
typeAnnotation:
|
|
1220
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1210
1221
|
}),
|
|
1211
1222
|
],
|
|
1212
1223
|
returns: [
|
|
1213
|
-
new
|
|
1214
|
-
typeAnnotation:
|
|
1224
|
+
new Return({
|
|
1225
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1215
1226
|
}),
|
|
1216
1227
|
],
|
|
1217
1228
|
}),
|
|
1218
|
-
new
|
|
1229
|
+
new Function({
|
|
1219
1230
|
name: 'DateDiff',
|
|
1220
1231
|
description: '返回日期比较结果',
|
|
1221
1232
|
params: [
|
|
1222
|
-
new
|
|
1233
|
+
new Param({
|
|
1223
1234
|
name: 'dateTime1',
|
|
1224
1235
|
description: '指定日期时间1',
|
|
1225
|
-
typeAnnotation:
|
|
1226
|
-
defaultExpression: new
|
|
1236
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1237
|
+
defaultExpression: new Identifier(),
|
|
1227
1238
|
}),
|
|
1228
|
-
new
|
|
1239
|
+
new Param({
|
|
1229
1240
|
name: 'dateTime2',
|
|
1230
1241
|
description: '指定日期时间2',
|
|
1231
|
-
typeAnnotation:
|
|
1232
|
-
defaultExpression: new
|
|
1242
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1243
|
+
defaultExpression: new Identifier(),
|
|
1233
1244
|
}),
|
|
1234
|
-
new
|
|
1245
|
+
new Param({
|
|
1235
1246
|
name: 'calcType',
|
|
1236
1247
|
description: '计算类型。计算两个日期时间之间的差值,支持年数、季度数、月数、星期数、天数、小时数、分钟数、秒数',
|
|
1237
|
-
typeAnnotation:
|
|
1238
|
-
defaultValue: new
|
|
1239
|
-
expression: new
|
|
1248
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1249
|
+
defaultValue: new DefaultValue({
|
|
1250
|
+
expression: new StringLiteral({ value: 'd' }),
|
|
1240
1251
|
concept: 'DefaultValue',
|
|
1241
1252
|
}),
|
|
1242
|
-
defaultExpression: new
|
|
1253
|
+
defaultExpression: new StringLiteral({ value: 'd' }),
|
|
1243
1254
|
options: [
|
|
1244
1255
|
{
|
|
1245
1256
|
text: 'Year',
|
|
@@ -1283,15 +1294,15 @@ exports.default = new Namespace__1.default({
|
|
|
1283
1294
|
},
|
|
1284
1295
|
],
|
|
1285
1296
|
}),
|
|
1286
|
-
new
|
|
1297
|
+
new Param({
|
|
1287
1298
|
name: '结果处理',
|
|
1288
1299
|
description: '结果是否绝对值处理',
|
|
1289
|
-
typeAnnotation:
|
|
1290
|
-
defaultValue: new
|
|
1291
|
-
expression: new
|
|
1300
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1301
|
+
defaultValue: new DefaultValue({
|
|
1302
|
+
expression: new BooleanLiteral({ value: 'true' }),
|
|
1292
1303
|
concept: 'DefaultValue',
|
|
1293
1304
|
}),
|
|
1294
|
-
defaultExpression: new
|
|
1305
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
1295
1306
|
options: [
|
|
1296
1307
|
{
|
|
1297
1308
|
text: '绝对值',
|
|
@@ -1307,30 +1318,30 @@ exports.default = new Namespace__1.default({
|
|
|
1307
1318
|
}),
|
|
1308
1319
|
],
|
|
1309
1320
|
returns: [
|
|
1310
|
-
new
|
|
1311
|
-
typeAnnotation:
|
|
1321
|
+
new Return({
|
|
1322
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1312
1323
|
}),
|
|
1313
1324
|
],
|
|
1314
1325
|
}),
|
|
1315
|
-
new
|
|
1326
|
+
new Function({
|
|
1316
1327
|
name: 'ConvertTimezone',
|
|
1317
1328
|
description: '为指定日期时间转换时区',
|
|
1318
1329
|
params: [
|
|
1319
|
-
new
|
|
1330
|
+
new Param({
|
|
1320
1331
|
name: '指定日期',
|
|
1321
1332
|
description: '指定日期',
|
|
1322
|
-
typeAnnotation:
|
|
1333
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1323
1334
|
}),
|
|
1324
|
-
new
|
|
1335
|
+
new Param({
|
|
1325
1336
|
name: '转换时区至',
|
|
1326
1337
|
description: '转换时区至',
|
|
1327
|
-
typeAnnotation:
|
|
1328
|
-
defaultValue: new
|
|
1329
|
-
expression: new
|
|
1338
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1339
|
+
defaultValue: new DefaultValue({
|
|
1340
|
+
expression: new StringLiteral({ value: 'Asia/Shanghai' }),
|
|
1330
1341
|
concept: 'DefaultValue',
|
|
1331
1342
|
}),
|
|
1332
1343
|
useComponent: { type: 's-bidirectional-bind-switch' },
|
|
1333
|
-
defaultExpression: new
|
|
1344
|
+
defaultExpression: new StringLiteral({
|
|
1334
1345
|
value: 'Asia/Shanghai',
|
|
1335
1346
|
name: 'ConvertTimezoneDefaultExpression',
|
|
1336
1347
|
}),
|
|
@@ -1364,74 +1375,74 @@ exports.default = new Namespace__1.default({
|
|
|
1364
1375
|
}),
|
|
1365
1376
|
],
|
|
1366
1377
|
returns: [
|
|
1367
|
-
new
|
|
1368
|
-
typeAnnotation:
|
|
1378
|
+
new Return({
|
|
1379
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1369
1380
|
}),
|
|
1370
1381
|
],
|
|
1371
1382
|
}),
|
|
1372
|
-
new
|
|
1383
|
+
new Function({
|
|
1373
1384
|
name: 'GetDateCount',
|
|
1374
1385
|
description: '按指定维度计算日期,如“所在年-第几周”。当输入为 DateTime 类型时,会把数据转到提供的时区的当地时间进行计算。',
|
|
1375
1386
|
params: [
|
|
1376
|
-
new
|
|
1387
|
+
new Param({
|
|
1377
1388
|
name: '指定日期',
|
|
1378
1389
|
description: '将被计算的日期',
|
|
1379
|
-
typeAnnotation:
|
|
1390
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1380
1391
|
}),
|
|
1381
|
-
new
|
|
1392
|
+
new Param({
|
|
1382
1393
|
name: '根据指定日期计算',
|
|
1383
1394
|
description: '获取指定日期的特定信息,如是其所在年的第几天',
|
|
1384
|
-
typeAnnotation:
|
|
1385
|
-
defaultValue: new
|
|
1386
|
-
expression: new
|
|
1395
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1396
|
+
defaultValue: new DefaultValue({
|
|
1397
|
+
expression: new StringLiteral({ value: 'week-year' }),
|
|
1387
1398
|
concept: 'DefaultValue',
|
|
1388
1399
|
}),
|
|
1389
|
-
defaultExpression: new
|
|
1400
|
+
defaultExpression: new StringLiteral({ value: 'week-year' }),
|
|
1390
1401
|
cascader: true,
|
|
1391
1402
|
}),
|
|
1392
1403
|
],
|
|
1393
1404
|
returns: [
|
|
1394
|
-
new
|
|
1395
|
-
typeAnnotation:
|
|
1405
|
+
new Return({
|
|
1406
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1396
1407
|
}),
|
|
1397
1408
|
],
|
|
1398
1409
|
}),
|
|
1399
|
-
new
|
|
1410
|
+
new Function({
|
|
1400
1411
|
name: 'AlterDateTime',
|
|
1401
1412
|
description: '为指定日期时间调整增加(减少)时间',
|
|
1402
1413
|
params: [
|
|
1403
|
-
new
|
|
1414
|
+
new Param({
|
|
1404
1415
|
name: '指定日期时间',
|
|
1405
1416
|
description: '将被更改的日期时间或日期',
|
|
1406
|
-
typeAnnotation:
|
|
1417
|
+
typeAnnotation: TypeAnnotation.createPrimitive('DateTime'),
|
|
1407
1418
|
}),
|
|
1408
|
-
new
|
|
1419
|
+
new Param({
|
|
1409
1420
|
name: '调整',
|
|
1410
1421
|
description: '为指定的日期时间增加或减少指定的数量,只能填整数',
|
|
1411
|
-
typeAnnotation:
|
|
1412
|
-
defaultValue: new
|
|
1413
|
-
expression: new
|
|
1422
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1423
|
+
defaultValue: new DefaultValue({
|
|
1424
|
+
expression: new StringLiteral({ value: 'Increase' }),
|
|
1414
1425
|
concept: 'DefaultValue',
|
|
1415
1426
|
}),
|
|
1416
|
-
defaultExpression: new
|
|
1427
|
+
defaultExpression: new StringLiteral({ value: 'Increase' }),
|
|
1417
1428
|
options: [
|
|
1418
1429
|
{ text: '增加', value: 'Increase' },
|
|
1419
1430
|
{ text: '减少', value: 'Decrease' },
|
|
1420
1431
|
],
|
|
1421
1432
|
}),
|
|
1422
|
-
new
|
|
1433
|
+
new Param({
|
|
1423
1434
|
name: 'amount',
|
|
1424
|
-
typeAnnotation:
|
|
1425
|
-
defaultExpression: new
|
|
1435
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1436
|
+
defaultExpression: new NumericLiteral({ value: '0' }),
|
|
1426
1437
|
}),
|
|
1427
|
-
new
|
|
1438
|
+
new Param({
|
|
1428
1439
|
name: '计算数',
|
|
1429
|
-
typeAnnotation:
|
|
1430
|
-
defaultValue: new
|
|
1431
|
-
expression: new
|
|
1440
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1441
|
+
defaultValue: new DefaultValue({
|
|
1442
|
+
expression: new StringLiteral({ value: 'day' }),
|
|
1432
1443
|
concept: 'DefaultValue',
|
|
1433
1444
|
}),
|
|
1434
|
-
defaultExpression: new
|
|
1445
|
+
defaultExpression: new StringLiteral({ value: 'day' }),
|
|
1435
1446
|
options: [
|
|
1436
1447
|
{ text: '天', value: 'day' },
|
|
1437
1448
|
{ text: '周', value: 'week' },
|
|
@@ -1442,28 +1453,28 @@ exports.default = new Namespace__1.default({
|
|
|
1442
1453
|
}),
|
|
1443
1454
|
],
|
|
1444
1455
|
}),
|
|
1445
|
-
new
|
|
1456
|
+
new Function({
|
|
1446
1457
|
name: 'GetSpecificDaysOfWeek',
|
|
1447
1458
|
description: '按“星期几”获取指定日期范围内的日子。当输入为 DateTime 类型时,会把数据转到提供的时区的当地时间进行计算。',
|
|
1448
1459
|
params: [
|
|
1449
|
-
new
|
|
1460
|
+
new Param({
|
|
1450
1461
|
name: '起始',
|
|
1451
1462
|
description: '起始日期(包含)',
|
|
1452
|
-
typeAnnotation:
|
|
1463
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Date'),
|
|
1453
1464
|
}),
|
|
1454
|
-
new
|
|
1465
|
+
new Param({
|
|
1455
1466
|
name: '结束',
|
|
1456
1467
|
description: '结束日期(包含)',
|
|
1457
|
-
typeAnnotation:
|
|
1468
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Date'),
|
|
1458
1469
|
}),
|
|
1459
|
-
new
|
|
1470
|
+
new Param({
|
|
1460
1471
|
name: '指定',
|
|
1461
1472
|
description: '指定的星期几,可多选',
|
|
1462
1473
|
useComponent: { type: 's-bidirectional-bind-switch' },
|
|
1463
|
-
defaultExpression: new
|
|
1474
|
+
defaultExpression: new NewList({
|
|
1464
1475
|
name: 'GetSpecificDaysOfWeekTargetDefaultExpression',
|
|
1465
|
-
typeAnnotation:
|
|
1466
|
-
typeArguments: [
|
|
1476
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1477
|
+
typeArguments: [TypeAnnotation.createPrimitive('Long')],
|
|
1467
1478
|
}),
|
|
1468
1479
|
}),
|
|
1469
1480
|
options: [
|
|
@@ -1478,123 +1489,123 @@ exports.default = new Namespace__1.default({
|
|
|
1478
1489
|
}),
|
|
1479
1490
|
],
|
|
1480
1491
|
returns: [
|
|
1481
|
-
new
|
|
1482
|
-
typeAnnotation:
|
|
1483
|
-
typeArguments: [
|
|
1492
|
+
new Return({
|
|
1493
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1494
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1484
1495
|
}),
|
|
1485
1496
|
}),
|
|
1486
1497
|
],
|
|
1487
1498
|
}),
|
|
1488
|
-
new
|
|
1499
|
+
new Function({
|
|
1489
1500
|
name: 'Clone',
|
|
1490
1501
|
description: '复制一个所选参数的实例',
|
|
1491
1502
|
params: [
|
|
1492
|
-
new
|
|
1503
|
+
new Param({
|
|
1493
1504
|
name: 'struct',
|
|
1494
1505
|
description: '指定对象',
|
|
1495
|
-
typeAnnotation:
|
|
1506
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1496
1507
|
}),
|
|
1497
1508
|
],
|
|
1498
1509
|
returns: [
|
|
1499
|
-
new
|
|
1500
|
-
typeAnnotation:
|
|
1510
|
+
new Return({
|
|
1511
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1501
1512
|
}),
|
|
1502
1513
|
],
|
|
1503
1514
|
}),
|
|
1504
|
-
new
|
|
1515
|
+
new Function({
|
|
1505
1516
|
name: 'Clear',
|
|
1506
1517
|
description: '(修改原数据)清除复杂对象中每个属性的数据(若输入是单个基础类型如 Integer 的值,则不做处理)',
|
|
1507
1518
|
params: [
|
|
1508
|
-
new
|
|
1519
|
+
new Param({
|
|
1509
1520
|
name: 'struct',
|
|
1510
1521
|
description: '指定对象',
|
|
1511
|
-
typeAnnotation:
|
|
1522
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1512
1523
|
}),
|
|
1513
1524
|
],
|
|
1514
1525
|
returns: [
|
|
1515
|
-
new
|
|
1516
|
-
typeAnnotation:
|
|
1526
|
+
new Return({
|
|
1527
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1517
1528
|
}),
|
|
1518
1529
|
],
|
|
1519
1530
|
}),
|
|
1520
|
-
new
|
|
1531
|
+
new Function({
|
|
1521
1532
|
name: 'RandomInt',
|
|
1522
1533
|
description: '产生随机整数',
|
|
1523
1534
|
params: [
|
|
1524
|
-
new
|
|
1535
|
+
new Param({
|
|
1525
1536
|
name: 'start',
|
|
1526
1537
|
description: '起始数字,Integer类型',
|
|
1527
|
-
typeAnnotation:
|
|
1538
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1528
1539
|
}),
|
|
1529
|
-
new
|
|
1540
|
+
new Param({
|
|
1530
1541
|
name: 'end',
|
|
1531
1542
|
description: '截至数字,Integer类型',
|
|
1532
|
-
typeAnnotation:
|
|
1543
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1533
1544
|
}),
|
|
1534
1545
|
],
|
|
1535
1546
|
returns: [
|
|
1536
|
-
new
|
|
1537
|
-
typeAnnotation:
|
|
1547
|
+
new Return({
|
|
1548
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1538
1549
|
}),
|
|
1539
1550
|
],
|
|
1540
1551
|
}),
|
|
1541
|
-
new
|
|
1552
|
+
new Function({
|
|
1542
1553
|
name: 'CreateListPage',
|
|
1543
1554
|
description: '将List<T>列表转换为列表分页',
|
|
1544
1555
|
params: [
|
|
1545
|
-
new
|
|
1556
|
+
new Param({
|
|
1546
1557
|
name: 'list',
|
|
1547
1558
|
description: '指定列表',
|
|
1548
|
-
typeAnnotation:
|
|
1549
|
-
typeArguments: [
|
|
1559
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1560
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1550
1561
|
}),
|
|
1551
1562
|
}),
|
|
1552
|
-
new
|
|
1563
|
+
new Param({
|
|
1553
1564
|
name: 'total',
|
|
1554
1565
|
description: '指定数据条数',
|
|
1555
|
-
typeAnnotation:
|
|
1566
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1556
1567
|
}),
|
|
1557
1568
|
],
|
|
1558
1569
|
returns: [
|
|
1559
|
-
new
|
|
1560
|
-
typeAnnotation:
|
|
1561
|
-
typeArguments: [
|
|
1570
|
+
new Return({
|
|
1571
|
+
typeAnnotation: TypeAnnotation.createPrimitive('PageOf', {
|
|
1572
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1562
1573
|
}),
|
|
1563
1574
|
}),
|
|
1564
1575
|
],
|
|
1565
1576
|
}),
|
|
1566
|
-
new
|
|
1577
|
+
new Function({
|
|
1567
1578
|
name: 'ListSort',
|
|
1568
1579
|
description: '(修改原数据)为列表按指定规则排序',
|
|
1569
1580
|
params: [
|
|
1570
|
-
new
|
|
1581
|
+
new Param({
|
|
1571
1582
|
name: 'list',
|
|
1572
1583
|
description: '指定列表',
|
|
1573
|
-
typeAnnotation:
|
|
1574
|
-
typeArguments: [
|
|
1584
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1585
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1575
1586
|
}),
|
|
1576
1587
|
}),
|
|
1577
|
-
new
|
|
1588
|
+
new Param({
|
|
1578
1589
|
name: 'by',
|
|
1579
1590
|
description: '指定列表中项的某个属性或项本身,支持算数运算和比较运算',
|
|
1580
|
-
defaultExpression: new
|
|
1591
|
+
defaultExpression: new AnonymousFunction({
|
|
1581
1592
|
params: [
|
|
1582
|
-
new
|
|
1593
|
+
new Param({
|
|
1583
1594
|
name: 'item',
|
|
1584
1595
|
typeAnnotation: null,
|
|
1585
1596
|
}),
|
|
1586
1597
|
],
|
|
1587
1598
|
}),
|
|
1588
1599
|
}),
|
|
1589
|
-
new
|
|
1600
|
+
new Param({
|
|
1590
1601
|
name: 'sort',
|
|
1591
1602
|
description: '支持升序或降序设置,asc为升序,desc为降序。',
|
|
1592
|
-
typeAnnotation:
|
|
1593
|
-
defaultValue: new
|
|
1594
|
-
expression: new
|
|
1603
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1604
|
+
defaultValue: new DefaultValue({
|
|
1605
|
+
expression: new BooleanLiteral({ value: 'true' }),
|
|
1595
1606
|
concept: 'DefaultValue',
|
|
1596
1607
|
}),
|
|
1597
|
-
defaultExpression: new
|
|
1608
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
1598
1609
|
options: [
|
|
1599
1610
|
{
|
|
1600
1611
|
text: 'asc',
|
|
@@ -1611,23 +1622,23 @@ exports.default = new Namespace__1.default({
|
|
|
1611
1622
|
],
|
|
1612
1623
|
returns: [],
|
|
1613
1624
|
}),
|
|
1614
|
-
new
|
|
1625
|
+
new Function({
|
|
1615
1626
|
name: 'ListFind',
|
|
1616
1627
|
description: '返回列表中第一个符合条件的项',
|
|
1617
1628
|
params: [
|
|
1618
|
-
new
|
|
1629
|
+
new Param({
|
|
1619
1630
|
name: 'list',
|
|
1620
1631
|
description: '指定列表',
|
|
1621
|
-
typeAnnotation:
|
|
1622
|
-
typeArguments: [
|
|
1632
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1633
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1623
1634
|
}),
|
|
1624
1635
|
}),
|
|
1625
|
-
new
|
|
1636
|
+
new Param({
|
|
1626
1637
|
name: 'by',
|
|
1627
1638
|
description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
|
|
1628
|
-
defaultExpression: new
|
|
1639
|
+
defaultExpression: new AnonymousFunction({
|
|
1629
1640
|
params: [
|
|
1630
|
-
new
|
|
1641
|
+
new Param({
|
|
1631
1642
|
name: 'item',
|
|
1632
1643
|
typeAnnotation: null,
|
|
1633
1644
|
}),
|
|
@@ -1636,28 +1647,28 @@ exports.default = new Namespace__1.default({
|
|
|
1636
1647
|
}),
|
|
1637
1648
|
],
|
|
1638
1649
|
returns: [
|
|
1639
|
-
new
|
|
1640
|
-
typeAnnotation:
|
|
1650
|
+
new Return({
|
|
1651
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1641
1652
|
}),
|
|
1642
1653
|
],
|
|
1643
1654
|
}),
|
|
1644
|
-
new
|
|
1655
|
+
new Function({
|
|
1645
1656
|
name: 'ListFindIndex',
|
|
1646
1657
|
description: '返回列表中第一个符合条件的项的索引值',
|
|
1647
1658
|
params: [
|
|
1648
|
-
new
|
|
1659
|
+
new Param({
|
|
1649
1660
|
name: 'list',
|
|
1650
1661
|
description: '指定列表',
|
|
1651
|
-
typeAnnotation:
|
|
1652
|
-
typeArguments: [
|
|
1662
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1663
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1653
1664
|
}),
|
|
1654
1665
|
}),
|
|
1655
|
-
new
|
|
1666
|
+
new Param({
|
|
1656
1667
|
name: 'by',
|
|
1657
1668
|
description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
|
|
1658
|
-
defaultExpression: new
|
|
1669
|
+
defaultExpression: new AnonymousFunction({
|
|
1659
1670
|
params: [
|
|
1660
|
-
new
|
|
1671
|
+
new Param({
|
|
1661
1672
|
name: 'item',
|
|
1662
1673
|
typeAnnotation: null,
|
|
1663
1674
|
}),
|
|
@@ -1666,25 +1677,25 @@ exports.default = new Namespace__1.default({
|
|
|
1666
1677
|
}),
|
|
1667
1678
|
],
|
|
1668
1679
|
returns: [
|
|
1669
|
-
new
|
|
1670
|
-
typeAnnotation:
|
|
1680
|
+
new Return({
|
|
1681
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1671
1682
|
}),
|
|
1672
1683
|
],
|
|
1673
1684
|
}),
|
|
1674
|
-
new
|
|
1685
|
+
new Function({
|
|
1675
1686
|
name: 'ListFilter',
|
|
1676
1687
|
description: '筛选列表中符合条件的所有项,返回这些项构成的新的列表',
|
|
1677
1688
|
params: [
|
|
1678
|
-
new
|
|
1689
|
+
new Param({
|
|
1679
1690
|
name: 'list',
|
|
1680
1691
|
description: '指定列表',
|
|
1681
1692
|
}),
|
|
1682
|
-
new
|
|
1693
|
+
new Param({
|
|
1683
1694
|
name: 'by',
|
|
1684
1695
|
description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
|
|
1685
|
-
defaultExpression: new
|
|
1696
|
+
defaultExpression: new AnonymousFunction({
|
|
1686
1697
|
params: [
|
|
1687
|
-
new
|
|
1698
|
+
new Param({
|
|
1688
1699
|
name: 'item',
|
|
1689
1700
|
typeAnnotation: null,
|
|
1690
1701
|
}),
|
|
@@ -1693,204 +1704,204 @@ exports.default = new Namespace__1.default({
|
|
|
1693
1704
|
}),
|
|
1694
1705
|
],
|
|
1695
1706
|
returns: [
|
|
1696
|
-
new
|
|
1707
|
+
new Return({
|
|
1697
1708
|
name: 'list',
|
|
1698
|
-
typeAnnotation:
|
|
1699
|
-
typeArguments: [
|
|
1709
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1710
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1700
1711
|
}),
|
|
1701
1712
|
}),
|
|
1702
1713
|
],
|
|
1703
1714
|
}),
|
|
1704
|
-
new
|
|
1715
|
+
new Function({
|
|
1705
1716
|
name: 'ListReverse',
|
|
1706
1717
|
description: '(修改原数据)将列表的所有项反向排列(例如第一项变为最后一项)',
|
|
1707
1718
|
params: [
|
|
1708
|
-
new
|
|
1719
|
+
new Param({
|
|
1709
1720
|
name: 'list',
|
|
1710
1721
|
description: '指定列表',
|
|
1711
|
-
typeAnnotation:
|
|
1712
|
-
typeArguments: [
|
|
1722
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1723
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1713
1724
|
}),
|
|
1714
1725
|
}),
|
|
1715
1726
|
],
|
|
1716
1727
|
returns: [],
|
|
1717
1728
|
}),
|
|
1718
|
-
new
|
|
1729
|
+
new Function({
|
|
1719
1730
|
name: 'ListDistinct',
|
|
1720
1731
|
description: '(修改原数据)为列表去除重复项',
|
|
1721
1732
|
params: [
|
|
1722
|
-
new
|
|
1733
|
+
new Param({
|
|
1723
1734
|
name: 'list',
|
|
1724
1735
|
description: '指定列表',
|
|
1725
|
-
typeAnnotation:
|
|
1726
|
-
typeArguments: [
|
|
1736
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1737
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1727
1738
|
}),
|
|
1728
1739
|
}),
|
|
1729
1740
|
],
|
|
1730
1741
|
returns: [],
|
|
1731
1742
|
}),
|
|
1732
|
-
new
|
|
1743
|
+
new Function({
|
|
1733
1744
|
name: 'ListDistinctBy',
|
|
1734
1745
|
description: '按某几个属性为列表去除重复项。返回去除重复项后的列表',
|
|
1735
1746
|
params: [
|
|
1736
|
-
new
|
|
1747
|
+
new Param({
|
|
1737
1748
|
name: 'list',
|
|
1738
1749
|
description: '指定列表',
|
|
1739
1750
|
}),
|
|
1740
|
-
new
|
|
1751
|
+
new Param({
|
|
1741
1752
|
name: 'by',
|
|
1742
1753
|
description: '指定列表中项的某几个属性,若项无属性,则该函数不生效',
|
|
1743
|
-
defaultExpression: new
|
|
1754
|
+
defaultExpression: new NewList({
|
|
1744
1755
|
name: 'ListDistinctByTargetDefaultExpression',
|
|
1745
|
-
typeAnnotation:
|
|
1746
|
-
typeArguments: [
|
|
1756
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1757
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1747
1758
|
}),
|
|
1748
1759
|
items: [
|
|
1749
|
-
new
|
|
1760
|
+
new AnonymousFunction({
|
|
1750
1761
|
params: [
|
|
1751
|
-
new
|
|
1762
|
+
new Param({
|
|
1752
1763
|
name: 'item',
|
|
1753
1764
|
description: '是否忽略大小写',
|
|
1754
1765
|
typeAnnotation: null,
|
|
1755
1766
|
}),
|
|
1756
1767
|
],
|
|
1757
|
-
body: new
|
|
1768
|
+
body: new Identifier(),
|
|
1758
1769
|
}),
|
|
1759
1770
|
],
|
|
1760
1771
|
}),
|
|
1761
1772
|
}),
|
|
1762
1773
|
],
|
|
1763
|
-
returns: [new
|
|
1764
|
-
typeAnnotation:
|
|
1774
|
+
returns: [new Return({
|
|
1775
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1765
1776
|
typeArguments: [
|
|
1766
|
-
|
|
1777
|
+
TypeAnnotation.createTypeParam('T'),
|
|
1767
1778
|
],
|
|
1768
1779
|
}),
|
|
1769
1780
|
})],
|
|
1770
1781
|
}),
|
|
1771
|
-
new
|
|
1782
|
+
new Function({
|
|
1772
1783
|
name: 'ListGroupBy',
|
|
1773
1784
|
description: '按某个属性为列表分组。以选中的属性为 key 建立 Map 并返回。',
|
|
1774
1785
|
params: [
|
|
1775
|
-
new
|
|
1786
|
+
new Param({
|
|
1776
1787
|
name: 'list',
|
|
1777
1788
|
description: '指定列表',
|
|
1778
1789
|
}),
|
|
1779
|
-
new
|
|
1790
|
+
new Param({
|
|
1780
1791
|
name: 'by',
|
|
1781
1792
|
description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
|
|
1782
|
-
defaultExpression: new
|
|
1793
|
+
defaultExpression: new AnonymousFunction({
|
|
1783
1794
|
params: [
|
|
1784
|
-
new
|
|
1795
|
+
new Param({
|
|
1785
1796
|
name: 'item',
|
|
1786
1797
|
description: '是否忽略大小写',
|
|
1787
1798
|
typeAnnotation: null,
|
|
1788
1799
|
}),
|
|
1789
1800
|
],
|
|
1790
|
-
body: new
|
|
1801
|
+
body: new Identifier(),
|
|
1791
1802
|
}),
|
|
1792
1803
|
}),
|
|
1793
1804
|
],
|
|
1794
|
-
returns: [new
|
|
1795
|
-
typeAnnotation:
|
|
1805
|
+
returns: [new Return({
|
|
1806
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
1796
1807
|
typeArguments: [
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
typeArguments: [
|
|
1808
|
+
TypeAnnotation.createTypeParam('K'),
|
|
1809
|
+
TypeAnnotation.createGeneric('List', {
|
|
1810
|
+
typeArguments: [TypeAnnotation.createTypeParam('A')],
|
|
1800
1811
|
}),
|
|
1801
1812
|
],
|
|
1802
1813
|
}),
|
|
1803
1814
|
})],
|
|
1804
1815
|
}),
|
|
1805
|
-
new
|
|
1816
|
+
new Function({
|
|
1806
1817
|
name: 'ListSlice',
|
|
1807
1818
|
description: '将列表按照规则切片,返回切片后的子列表',
|
|
1808
1819
|
params: [
|
|
1809
|
-
new
|
|
1820
|
+
new Param({
|
|
1810
1821
|
name: 'list',
|
|
1811
1822
|
description: '指定列表',
|
|
1812
|
-
typeAnnotation:
|
|
1813
|
-
typeArguments: [
|
|
1823
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1824
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1814
1825
|
}),
|
|
1815
1826
|
}),
|
|
1816
|
-
new
|
|
1827
|
+
new Param({
|
|
1817
1828
|
name: 'start',
|
|
1818
1829
|
description: '切片起始的索引,integer类型,项数索引从0开始',
|
|
1819
|
-
typeAnnotation:
|
|
1830
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1820
1831
|
}),
|
|
1821
|
-
new
|
|
1832
|
+
new Param({
|
|
1822
1833
|
name: 'end',
|
|
1823
1834
|
description: '切片结束的索引,integer类型,用数字表示第几项,项数索引从0开始',
|
|
1824
|
-
typeAnnotation:
|
|
1835
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1825
1836
|
}),
|
|
1826
1837
|
],
|
|
1827
1838
|
returns: [
|
|
1828
|
-
new
|
|
1829
|
-
typeAnnotation:
|
|
1830
|
-
typeArguments: [
|
|
1839
|
+
new Return({
|
|
1840
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1841
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1831
1842
|
}),
|
|
1832
1843
|
}),
|
|
1833
1844
|
],
|
|
1834
1845
|
}),
|
|
1835
|
-
new
|
|
1846
|
+
new Function({
|
|
1836
1847
|
name: 'SliceToListPage',
|
|
1837
1848
|
description: '将列表按照规则切片,返回切片后的列表分页',
|
|
1838
1849
|
params: [
|
|
1839
|
-
new
|
|
1850
|
+
new Param({
|
|
1840
1851
|
name: 'list',
|
|
1841
1852
|
description: '指定列表',
|
|
1842
|
-
typeAnnotation:
|
|
1843
|
-
typeArguments: [
|
|
1853
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1854
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1844
1855
|
}),
|
|
1845
1856
|
}),
|
|
1846
|
-
new
|
|
1857
|
+
new Param({
|
|
1847
1858
|
name: 'page',
|
|
1848
1859
|
description: '页数,integer类型,从1开始',
|
|
1849
|
-
typeAnnotation:
|
|
1860
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1850
1861
|
}),
|
|
1851
|
-
new
|
|
1862
|
+
new Param({
|
|
1852
1863
|
name: 'size',
|
|
1853
1864
|
description: '每页的大小,integer类型',
|
|
1854
|
-
typeAnnotation:
|
|
1865
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1855
1866
|
}),
|
|
1856
1867
|
],
|
|
1857
1868
|
returns: [
|
|
1858
|
-
new
|
|
1859
|
-
typeAnnotation:
|
|
1860
|
-
typeArguments: [
|
|
1869
|
+
new Return({
|
|
1870
|
+
typeAnnotation: TypeAnnotation.createGeneric('PageOf', {
|
|
1871
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1861
1872
|
}),
|
|
1862
1873
|
}),
|
|
1863
1874
|
],
|
|
1864
1875
|
}),
|
|
1865
|
-
new
|
|
1876
|
+
new Function({
|
|
1866
1877
|
name: 'New',
|
|
1867
1878
|
description: '根据参数选择的类型,返回该参数的实例化对象',
|
|
1868
1879
|
typeParams: [
|
|
1869
|
-
new
|
|
1880
|
+
new TypeParam({
|
|
1870
1881
|
name: 'T',
|
|
1871
1882
|
}),
|
|
1872
1883
|
],
|
|
1873
1884
|
params: [],
|
|
1874
1885
|
returns: [
|
|
1875
|
-
new
|
|
1876
|
-
typeAnnotation:
|
|
1886
|
+
new Return({
|
|
1887
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1877
1888
|
}),
|
|
1878
1889
|
],
|
|
1879
1890
|
}),
|
|
1880
|
-
new
|
|
1891
|
+
new Function({
|
|
1881
1892
|
name: 'Round',
|
|
1882
1893
|
description: '对指定的小数按指定的舍入模式进行舍入,返回舍入后的整数',
|
|
1883
1894
|
params: [
|
|
1884
|
-
new
|
|
1895
|
+
new Param({
|
|
1885
1896
|
name: 'value',
|
|
1886
1897
|
description: '被取整小数',
|
|
1887
|
-
typeAnnotation:
|
|
1898
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Decimal'),
|
|
1888
1899
|
}),
|
|
1889
|
-
new
|
|
1900
|
+
new Param({
|
|
1890
1901
|
name: 'mode',
|
|
1891
1902
|
description: '取整模式:HalfUp 四舍五入,如 -2.5 取整为 -3,2.5 取整为 3。TowardsZero 截断、向零取整:如 -2.6 取整为 -2,2.6 取整为 2。TowardsInfinity 进位、向正负无穷取整,如 -1.1 取整为 -2,1.1 取整为 2',
|
|
1892
|
-
typeAnnotation:
|
|
1893
|
-
defaultExpression: new
|
|
1903
|
+
typeAnnotation: TypeAnnotation.createPrimitive('String'),
|
|
1904
|
+
defaultExpression: new StringLiteral({ value: 'HalfUp' }),
|
|
1894
1905
|
options: [
|
|
1895
1906
|
{ text: 'HalfUp', value: 'HalfUp', description: '四舍五入' },
|
|
1896
1907
|
{ text: 'TowardsZero', value: 'TowardsZero', description: '截断、向零取整,如 -2.6 取整为 -2' },
|
|
@@ -1899,44 +1910,44 @@ exports.default = new Namespace__1.default({
|
|
|
1899
1910
|
}),
|
|
1900
1911
|
],
|
|
1901
1912
|
returns: [
|
|
1902
|
-
new
|
|
1903
|
-
typeAnnotation:
|
|
1913
|
+
new Return({
|
|
1914
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
1904
1915
|
}),
|
|
1905
1916
|
],
|
|
1906
1917
|
}),
|
|
1907
|
-
new
|
|
1918
|
+
new Function({
|
|
1908
1919
|
name: 'HasValue',
|
|
1909
1920
|
description: '判断参数是否为有效值,null、空字符串、纯空格、长度为0的集合均不被视为有效值,传入多个参数时,判断是否全部都是有效值',
|
|
1910
1921
|
params: [
|
|
1911
|
-
new
|
|
1922
|
+
new Param({
|
|
1912
1923
|
name: 'param1',
|
|
1913
1924
|
description: '指定参数1',
|
|
1914
|
-
typeAnnotation:
|
|
1925
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Any'),
|
|
1915
1926
|
}),
|
|
1916
1927
|
],
|
|
1917
1928
|
returns: [
|
|
1918
|
-
new
|
|
1919
|
-
typeAnnotation:
|
|
1929
|
+
new Return({
|
|
1930
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1920
1931
|
}),
|
|
1921
1932
|
],
|
|
1922
1933
|
}),
|
|
1923
|
-
new
|
|
1934
|
+
new Function({
|
|
1924
1935
|
name: 'ListFindAsync',
|
|
1925
1936
|
description: '返回列表中第一个符合条件的项',
|
|
1926
1937
|
params: [
|
|
1927
|
-
new
|
|
1938
|
+
new Param({
|
|
1928
1939
|
name: 'list',
|
|
1929
1940
|
description: '指定列表',
|
|
1930
|
-
typeAnnotation:
|
|
1931
|
-
typeArguments: [
|
|
1941
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1942
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1932
1943
|
}),
|
|
1933
1944
|
}),
|
|
1934
|
-
new
|
|
1945
|
+
new Param({
|
|
1935
1946
|
name: 'by',
|
|
1936
1947
|
description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
|
|
1937
|
-
defaultExpression: new
|
|
1948
|
+
defaultExpression: new AnonymousFunction({
|
|
1938
1949
|
params: [
|
|
1939
|
-
new
|
|
1950
|
+
new Param({
|
|
1940
1951
|
name: 'item',
|
|
1941
1952
|
typeAnnotation: null,
|
|
1942
1953
|
}),
|
|
@@ -1945,43 +1956,43 @@ exports.default = new Namespace__1.default({
|
|
|
1945
1956
|
}),
|
|
1946
1957
|
],
|
|
1947
1958
|
returns: [
|
|
1948
|
-
new
|
|
1949
|
-
typeAnnotation:
|
|
1959
|
+
new Return({
|
|
1960
|
+
typeAnnotation: TypeAnnotation.createTypeParam('T'),
|
|
1950
1961
|
}),
|
|
1951
1962
|
],
|
|
1952
1963
|
}),
|
|
1953
|
-
new
|
|
1964
|
+
new Function({
|
|
1954
1965
|
name: 'ListSortAsync',
|
|
1955
1966
|
description: '(修改原数据)为列表按指定规则排序',
|
|
1956
1967
|
params: [
|
|
1957
|
-
new
|
|
1968
|
+
new Param({
|
|
1958
1969
|
name: 'list',
|
|
1959
1970
|
description: '指定列表',
|
|
1960
|
-
typeAnnotation:
|
|
1961
|
-
typeArguments: [
|
|
1971
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
1972
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
1962
1973
|
}),
|
|
1963
1974
|
}),
|
|
1964
|
-
new
|
|
1975
|
+
new Param({
|
|
1965
1976
|
name: 'by',
|
|
1966
1977
|
description: '指定列表中项的某个属性或项本身,支持算数运算和比较运算',
|
|
1967
|
-
defaultExpression: new
|
|
1978
|
+
defaultExpression: new AnonymousFunction({
|
|
1968
1979
|
params: [
|
|
1969
|
-
new
|
|
1980
|
+
new Param({
|
|
1970
1981
|
name: 'item',
|
|
1971
1982
|
typeAnnotation: null,
|
|
1972
1983
|
}),
|
|
1973
1984
|
],
|
|
1974
1985
|
}),
|
|
1975
1986
|
}),
|
|
1976
|
-
new
|
|
1987
|
+
new Param({
|
|
1977
1988
|
name: 'sort',
|
|
1978
1989
|
description: '支持升序或降序设置,asc为升序,desc为降序。',
|
|
1979
|
-
typeAnnotation:
|
|
1980
|
-
defaultValue: new
|
|
1981
|
-
expression: new
|
|
1990
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Boolean'),
|
|
1991
|
+
defaultValue: new DefaultValue({
|
|
1992
|
+
expression: new BooleanLiteral({ value: 'true' }),
|
|
1982
1993
|
concept: 'DefaultValue',
|
|
1983
1994
|
}),
|
|
1984
|
-
defaultExpression: new
|
|
1995
|
+
defaultExpression: new BooleanLiteral({ value: 'true' }),
|
|
1985
1996
|
options: [
|
|
1986
1997
|
{ text: 'asc(升序)', value: 'true' },
|
|
1987
1998
|
{ text: 'desc(降序)', value: 'false' },
|
|
@@ -1990,20 +2001,20 @@ exports.default = new Namespace__1.default({
|
|
|
1990
2001
|
],
|
|
1991
2002
|
returns: [],
|
|
1992
2003
|
}),
|
|
1993
|
-
new
|
|
2004
|
+
new Function({
|
|
1994
2005
|
name: 'ListFilterAsync',
|
|
1995
2006
|
description: '筛选列表中符合条件的所有项,返回这些项构成的新的列表',
|
|
1996
2007
|
params: [
|
|
1997
|
-
new
|
|
2008
|
+
new Param({
|
|
1998
2009
|
name: 'list',
|
|
1999
2010
|
description: '指定列表',
|
|
2000
2011
|
}),
|
|
2001
|
-
new
|
|
2012
|
+
new Param({
|
|
2002
2013
|
name: 'by',
|
|
2003
2014
|
description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
|
|
2004
|
-
defaultExpression: new
|
|
2015
|
+
defaultExpression: new AnonymousFunction({
|
|
2005
2016
|
params: [
|
|
2006
|
-
new
|
|
2017
|
+
new Param({
|
|
2007
2018
|
name: 'item',
|
|
2008
2019
|
typeAnnotation: null,
|
|
2009
2020
|
}),
|
|
@@ -2012,31 +2023,31 @@ exports.default = new Namespace__1.default({
|
|
|
2012
2023
|
}),
|
|
2013
2024
|
],
|
|
2014
2025
|
returns: [
|
|
2015
|
-
new
|
|
2026
|
+
new Return({
|
|
2016
2027
|
name: 'list',
|
|
2017
|
-
typeAnnotation:
|
|
2018
|
-
typeArguments: [
|
|
2028
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
2029
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
2019
2030
|
}),
|
|
2020
2031
|
}),
|
|
2021
2032
|
],
|
|
2022
2033
|
}),
|
|
2023
|
-
new
|
|
2034
|
+
new Function({
|
|
2024
2035
|
name: 'ListFindIndexAsync',
|
|
2025
2036
|
description: '返回列表中第一个符合条件的项的索引值',
|
|
2026
2037
|
params: [
|
|
2027
|
-
new
|
|
2038
|
+
new Param({
|
|
2028
2039
|
name: 'list',
|
|
2029
2040
|
description: '指定列表',
|
|
2030
|
-
typeAnnotation:
|
|
2031
|
-
typeArguments: [
|
|
2041
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
2042
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
2032
2043
|
}),
|
|
2033
2044
|
}),
|
|
2034
|
-
new
|
|
2045
|
+
new Param({
|
|
2035
2046
|
name: 'by',
|
|
2036
2047
|
description: '指定列表中项的某个属性或项本身,通过算数运算、比较运算或逻辑运算进行条件判断并输出布尔值',
|
|
2037
|
-
defaultExpression: new
|
|
2048
|
+
defaultExpression: new AnonymousFunction({
|
|
2038
2049
|
params: [
|
|
2039
|
-
new
|
|
2050
|
+
new Param({
|
|
2040
2051
|
name: 'item',
|
|
2041
2052
|
typeAnnotation: null,
|
|
2042
2053
|
}),
|
|
@@ -2045,90 +2056,90 @@ exports.default = new Namespace__1.default({
|
|
|
2045
2056
|
}),
|
|
2046
2057
|
],
|
|
2047
2058
|
returns: [
|
|
2048
|
-
new
|
|
2049
|
-
typeAnnotation:
|
|
2059
|
+
new Return({
|
|
2060
|
+
typeAnnotation: TypeAnnotation.createPrimitive('Long'),
|
|
2050
2061
|
}),
|
|
2051
2062
|
],
|
|
2052
2063
|
}),
|
|
2053
|
-
new
|
|
2064
|
+
new Function({
|
|
2054
2065
|
name: 'ListDistinctByAsync',
|
|
2055
2066
|
description: '按某个属性为列表去除重复项。返回去除重复项后的列表',
|
|
2056
2067
|
params: [
|
|
2057
|
-
new
|
|
2068
|
+
new Param({
|
|
2058
2069
|
name: 'list',
|
|
2059
2070
|
description: '指定列表',
|
|
2060
2071
|
}),
|
|
2061
|
-
new
|
|
2072
|
+
new Param({
|
|
2062
2073
|
name: 'by',
|
|
2063
2074
|
description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
|
|
2064
|
-
defaultExpression: new
|
|
2075
|
+
defaultExpression: new AnonymousFunction({
|
|
2065
2076
|
params: [
|
|
2066
|
-
new
|
|
2077
|
+
new Param({
|
|
2067
2078
|
name: 'item',
|
|
2068
2079
|
description: '是否忽略大小写',
|
|
2069
2080
|
typeAnnotation: null,
|
|
2070
2081
|
}),
|
|
2071
2082
|
],
|
|
2072
|
-
body: new
|
|
2083
|
+
body: new Identifier(),
|
|
2073
2084
|
}),
|
|
2074
2085
|
}),
|
|
2075
2086
|
],
|
|
2076
|
-
returns: [new
|
|
2077
|
-
typeAnnotation:
|
|
2087
|
+
returns: [new Return({
|
|
2088
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
2078
2089
|
typeArguments: [
|
|
2079
|
-
|
|
2090
|
+
TypeAnnotation.createTypeParam('T'),
|
|
2080
2091
|
],
|
|
2081
2092
|
}),
|
|
2082
2093
|
})],
|
|
2083
2094
|
}),
|
|
2084
|
-
new
|
|
2095
|
+
new Function({
|
|
2085
2096
|
name: 'ListGroupByAsync',
|
|
2086
2097
|
description: '按某个属性为列表分组。以选中的属性为 key 建立 Map 并返回。',
|
|
2087
2098
|
params: [
|
|
2088
|
-
new
|
|
2099
|
+
new Param({
|
|
2089
2100
|
name: 'list',
|
|
2090
2101
|
description: '指定列表',
|
|
2091
2102
|
}),
|
|
2092
|
-
new
|
|
2103
|
+
new Param({
|
|
2093
2104
|
name: 'by',
|
|
2094
2105
|
description: '指定列表中项的某个属性,若项无属性,则该函数不生效',
|
|
2095
|
-
defaultExpression: new
|
|
2106
|
+
defaultExpression: new AnonymousFunction({
|
|
2096
2107
|
params: [
|
|
2097
|
-
new
|
|
2108
|
+
new Param({
|
|
2098
2109
|
name: 'item',
|
|
2099
2110
|
description: '是否忽略大小写',
|
|
2100
2111
|
typeAnnotation: null,
|
|
2101
2112
|
}),
|
|
2102
2113
|
],
|
|
2103
|
-
body: new
|
|
2114
|
+
body: new Identifier(),
|
|
2104
2115
|
}),
|
|
2105
2116
|
}),
|
|
2106
2117
|
],
|
|
2107
|
-
returns: [new
|
|
2108
|
-
typeAnnotation:
|
|
2118
|
+
returns: [new Return({
|
|
2119
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
2109
2120
|
typeArguments: [
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
typeArguments: [
|
|
2121
|
+
TypeAnnotation.createTypeParam('K'),
|
|
2122
|
+
TypeAnnotation.createGeneric('List', {
|
|
2123
|
+
typeArguments: [TypeAnnotation.createTypeParam('A')],
|
|
2113
2124
|
}),
|
|
2114
2125
|
],
|
|
2115
2126
|
}),
|
|
2116
2127
|
})],
|
|
2117
2128
|
}),
|
|
2118
|
-
new
|
|
2129
|
+
new Function({
|
|
2119
2130
|
name: 'ListTransformAsync',
|
|
2120
2131
|
description: '对列表的每一项调用函数 by,得到新项;返回新项构成的列表',
|
|
2121
2132
|
params: [
|
|
2122
|
-
new
|
|
2133
|
+
new Param({
|
|
2123
2134
|
name: 'list',
|
|
2124
2135
|
description: '指定列表',
|
|
2125
2136
|
}),
|
|
2126
|
-
new
|
|
2137
|
+
new Param({
|
|
2127
2138
|
name: 'by',
|
|
2128
2139
|
description: '指定对列表中项的某个属性或项本身的处理方式,支持算数运算和比较运算',
|
|
2129
|
-
defaultExpression: new
|
|
2140
|
+
defaultExpression: new AnonymousFunction({
|
|
2130
2141
|
params: [
|
|
2131
|
-
new
|
|
2142
|
+
new Param({
|
|
2132
2143
|
name: 'item',
|
|
2133
2144
|
typeAnnotation: null,
|
|
2134
2145
|
}),
|
|
@@ -2137,31 +2148,31 @@ exports.default = new Namespace__1.default({
|
|
|
2137
2148
|
}),
|
|
2138
2149
|
],
|
|
2139
2150
|
returns: [
|
|
2140
|
-
new
|
|
2141
|
-
typeAnnotation:
|
|
2142
|
-
typeArguments: [
|
|
2151
|
+
new Return({
|
|
2152
|
+
typeAnnotation: TypeAnnotation.createGeneric('List', {
|
|
2153
|
+
typeArguments: [TypeAnnotation.createTypeParam('T')],
|
|
2143
2154
|
}),
|
|
2144
2155
|
}),
|
|
2145
2156
|
],
|
|
2146
2157
|
}),
|
|
2147
|
-
new
|
|
2158
|
+
new Function({
|
|
2148
2159
|
name: 'MapFilterAsync',
|
|
2149
2160
|
description: '在指定Map中过滤出符合条件参数的Map列表',
|
|
2150
2161
|
params: [
|
|
2151
|
-
new
|
|
2162
|
+
new Param({
|
|
2152
2163
|
name: 'map',
|
|
2153
2164
|
description: '指定映射',
|
|
2154
2165
|
}),
|
|
2155
|
-
new
|
|
2166
|
+
new Param({
|
|
2156
2167
|
name: 'by',
|
|
2157
2168
|
description: '针对键值对的参数key和value设置过滤条件,支持算数运算、比较运算和逻辑运算',
|
|
2158
|
-
defaultExpression: new
|
|
2169
|
+
defaultExpression: new AnonymousFunction({
|
|
2159
2170
|
params: [
|
|
2160
|
-
new
|
|
2171
|
+
new Param({
|
|
2161
2172
|
name: 'key',
|
|
2162
2173
|
typeAnnotation: null,
|
|
2163
2174
|
}),
|
|
2164
|
-
new
|
|
2175
|
+
new Param({
|
|
2165
2176
|
name: 'value',
|
|
2166
2177
|
typeAnnotation: null,
|
|
2167
2178
|
}),
|
|
@@ -2170,52 +2181,52 @@ exports.default = new Namespace__1.default({
|
|
|
2170
2181
|
}),
|
|
2171
2182
|
],
|
|
2172
2183
|
returns: [
|
|
2173
|
-
new
|
|
2174
|
-
typeAnnotation:
|
|
2184
|
+
new Return({
|
|
2185
|
+
typeAnnotation: TypeAnnotation.createGeneric('map', {
|
|
2175
2186
|
typeArguments: [
|
|
2176
|
-
|
|
2177
|
-
|
|
2187
|
+
TypeAnnotation.createTypeParam('K'),
|
|
2188
|
+
TypeAnnotation.createTypeParam('V'),
|
|
2178
2189
|
],
|
|
2179
2190
|
}),
|
|
2180
2191
|
}),
|
|
2181
2192
|
],
|
|
2182
2193
|
}),
|
|
2183
|
-
new
|
|
2194
|
+
new Function({
|
|
2184
2195
|
name: 'MapTransformAsync',
|
|
2185
2196
|
description: '对 Map 的每一项调用函数 by,得到新项,并返回新项构成的 Map。(Map 的每一项从 (K0, V0) 变为 (K, V)。)',
|
|
2186
2197
|
params: [
|
|
2187
|
-
new
|
|
2198
|
+
new Param({
|
|
2188
2199
|
name: 'map',
|
|
2189
2200
|
description: '指定映射',
|
|
2190
2201
|
}),
|
|
2191
|
-
new
|
|
2202
|
+
new Param({
|
|
2192
2203
|
name: 'by',
|
|
2193
2204
|
description: `指定映射中键值对的参数处理方式,支持算数运算和比较运算`,
|
|
2194
|
-
defaultExpression: new
|
|
2205
|
+
defaultExpression: new AnonymousFunction({
|
|
2195
2206
|
params: [
|
|
2196
|
-
new
|
|
2207
|
+
new Param({
|
|
2197
2208
|
name: 'key',
|
|
2198
2209
|
typeAnnotation: null,
|
|
2199
2210
|
}),
|
|
2200
|
-
new
|
|
2211
|
+
new Param({
|
|
2201
2212
|
name: 'value',
|
|
2202
2213
|
typeAnnotation: null,
|
|
2203
2214
|
}),
|
|
2204
2215
|
],
|
|
2205
|
-
body: new
|
|
2216
|
+
body: new Identifier({
|
|
2206
2217
|
name: 'key',
|
|
2207
2218
|
}),
|
|
2208
2219
|
}),
|
|
2209
2220
|
}),
|
|
2210
|
-
new
|
|
2221
|
+
new Param({
|
|
2211
2222
|
name: 'byVal',
|
|
2212
|
-
defaultExpression: new
|
|
2223
|
+
defaultExpression: new AnonymousFunction({
|
|
2213
2224
|
params: [
|
|
2214
|
-
new
|
|
2225
|
+
new Param({
|
|
2215
2226
|
name: 'key',
|
|
2216
2227
|
typeAnnotation: null,
|
|
2217
2228
|
}),
|
|
2218
|
-
new
|
|
2229
|
+
new Param({
|
|
2219
2230
|
name: 'value',
|
|
2220
2231
|
typeAnnotation: null,
|
|
2221
2232
|
}),
|
|
@@ -2224,48 +2235,51 @@ exports.default = new Namespace__1.default({
|
|
|
2224
2235
|
}),
|
|
2225
2236
|
],
|
|
2226
2237
|
returns: [
|
|
2227
|
-
new
|
|
2228
|
-
typeAnnotation:
|
|
2229
|
-
typeArguments: [
|
|
2238
|
+
new Return({
|
|
2239
|
+
typeAnnotation: TypeAnnotation.createGeneric('Map', {
|
|
2240
|
+
typeArguments: [TypeAnnotation.createTypeParam('K'), TypeAnnotation.createTypeParam('V')],
|
|
2230
2241
|
}),
|
|
2231
2242
|
}),
|
|
2232
2243
|
],
|
|
2233
2244
|
}),
|
|
2234
|
-
new
|
|
2245
|
+
new Function({
|
|
2235
2246
|
name: 'ListToMapAsync',
|
|
2236
2247
|
description: '选取列表项的某些属性,根据这些属性将列表变为 Map 并返回',
|
|
2237
2248
|
params: [
|
|
2238
|
-
new
|
|
2249
|
+
new Param({
|
|
2239
2250
|
name: 'list',
|
|
2240
2251
|
description: '指定列表',
|
|
2241
2252
|
}),
|
|
2242
|
-
new
|
|
2253
|
+
new Param({
|
|
2243
2254
|
name: 'by',
|
|
2244
2255
|
description: `根据项的属性及其本身进行key和value的定义`,
|
|
2245
|
-
defaultExpression: new
|
|
2256
|
+
defaultExpression: new AnonymousFunction({
|
|
2246
2257
|
params: [
|
|
2247
|
-
new
|
|
2258
|
+
new Param({
|
|
2248
2259
|
name: 'item',
|
|
2249
2260
|
typeAnnotation: null,
|
|
2250
2261
|
}),
|
|
2251
2262
|
],
|
|
2252
|
-
body: new
|
|
2263
|
+
body: new Identifier(),
|
|
2253
2264
|
}),
|
|
2254
2265
|
}),
|
|
2255
|
-
new
|
|
2266
|
+
new Param({
|
|
2256
2267
|
name: 'byVal',
|
|
2257
|
-
defaultExpression: new
|
|
2268
|
+
defaultExpression: new AnonymousFunction({
|
|
2258
2269
|
params: [
|
|
2259
|
-
new
|
|
2270
|
+
new Param({
|
|
2260
2271
|
name: 'item',
|
|
2261
2272
|
typeAnnotation: null,
|
|
2262
2273
|
}),
|
|
2263
2274
|
],
|
|
2264
|
-
body: new
|
|
2275
|
+
body: new Identifier(),
|
|
2265
2276
|
}),
|
|
2266
2277
|
}),
|
|
2267
2278
|
],
|
|
2268
2279
|
}),
|
|
2269
|
-
]
|
|
2270
|
-
|
|
2280
|
+
];
|
|
2281
|
+
logics.forEach((logic) => utilNamespace.addLogic(logic));
|
|
2282
|
+
functions.forEach((func) => utilNamespace.addFunction(func));
|
|
2283
|
+
}
|
|
2284
|
+
exports.initialize = initialize;
|
|
2271
2285
|
//# sourceMappingURL=nasl.util.js.map
|