@lcap/nasl-concepts 4.1.0-beta.2 → 4.1.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/out/common/BaseNode.d.ts.map +1 -1
- package/out/common/BaseNode.js +13 -0
- package/out/common/BaseNode.js.map +1 -1
- package/out/concepts/BindStyle__.d.ts +1 -1
- package/out/concepts/BindStyle__.d.ts.map +1 -1
- package/out/concepts/LogicItem__.d.ts +1 -1
- package/out/concepts/LogicItem__.d.ts.map +1 -1
- package/out/concepts/LogicItem__.js.map +1 -1
- package/out/concepts/NewComposite__.d.ts +1 -1
- package/out/concepts/ProcessV2__.js +5 -5
- package/out/concepts/UnaryExpression__.js +2 -2
- package/out/concepts/UnaryExpression__.js.map +1 -1
- package/out/concepts/VariadicExpression__.d.ts +146 -0
- package/out/concepts/VariadicExpression__.d.ts.map +1 -0
- package/out/concepts/VariadicExpression__.js +405 -0
- package/out/concepts/VariadicExpression__.js.map +1 -0
- package/out/concepts/index__.d.ts +1 -0
- package/out/concepts/index__.d.ts.map +1 -1
- package/out/concepts/index__.js +1 -0
- package/out/concepts/index__.js.map +1 -1
- package/out/concepts/utils/asserts.d.ts +51 -0
- package/out/concepts/utils/asserts.d.ts.map +1 -1
- package/out/concepts/utils/asserts.js +82 -14
- package/out/concepts/utils/asserts.js.map +1 -1
- package/out/concepts/utils/types.d.ts +5 -2
- package/out/concepts/utils/types.d.ts.map +1 -1
- package/package.json +5 -5
|
@@ -2,20 +2,20 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isStrictAttribute = exports.isStrictBusinessComponent = exports.isStrictViewComponentDeclaration = exports.isStrictAnonymousFunctionSetter = exports.isStrictPropertyTransformSetter = exports.isStrictPropertySelectSetter = exports.isStrictImageSetter = exports.isStrictIconSetter = exports.isStrictNumberInputSetter = exports.isStrictCapsulesSetter = exports.isStrictEnumSelectSetter = exports.isStrictSetterOption = exports.isStrictSwitchSetter = exports.isStrictInputSetter = exports.isStrictThemeVariable = exports.isStrictBindStyle = exports.isStrictBindEvent = exports.isStrictBindDirective = exports.isStrictBindAttribute = exports.isStrictViewElement = exports.isStrictView = exports.isStrictMetadataType = exports.isStrictEntityIndex = exports.isStrictEntityProperty = exports.isStrictEntity = exports.isStrictDataSource = exports.isStrictEnumItem = exports.isStrictEnum = exports.isStrictStructureProperty = exports.isStrictStructure = exports.isStrictTypeParam = exports.isStrictDatabaseTypeAnnotation = exports.isStrictTypeAnnotation = exports.isStrictMicroApp = exports.isStrictIntegration = exports.isStrictBackend = exports.isStrictFrontend = exports.isStrictFrontendType = exports.isStrictReferredDefinition = exports.isStrictDirectory = exports.isStrictNamespace = exports.isStrictModule = exports.isStrictApp = exports.isStrictApplyAnnotation = exports.isStrictAnnotationProperty = exports.isStrictAnnotation = exports.assertFileNode = exports.isFileNode = exports.assertBaseNode = exports.isBaseNode = void 0;
|
|
4
4
|
exports.isStrictCallInterface = exports.isStrictCallFunction = exports.isStrictCallEvent = exports.isStrictCallLogic = exports.isStrictComment = exports.isStrictBatchAssignment = exports.isStrictAssignment = exports.isStrictContinue = exports.isStrictBreak = exports.isStrictWhileStatement = exports.isStrictForEachStatement = exports.isStrictSwitchCase = exports.isStrictSwitchStatement = exports.isStrictIfStatement = exports.isStrictEnd = exports.isStrictStart = exports.isStrictAbort = exports.isStrictDefaultValue = exports.isStrictTransactional = exports.isStrictInterfaceParam = exports.isStrictMicroserviceInterface = exports.isStrictConnectionInfo = exports.isStrictInterface = exports.isStrictRetryConfig = exports.isStrictAnonymousFunction = exports.isStrictFunction = exports.isStrictSubLogic = exports.isStrictConstant = exports.isStrictFrontendVariable = exports.isStrictBackendVariable = exports.isStrictVariable = exports.isStrictReturn = exports.isStrictParamWithGroup = exports.isStrictParam = exports.isStrictBusinessLogic = exports.isStrictOverriddenLogic = exports.isStrictAuthLogicForCallInterface = exports.isStrictAuthLogic = exports.isStrictPermissionForSharedScope = exports.isStrictSharedScope = exports.isStrictLogic = exports.isStrictViewComponent = exports.isStrictSlot = exports.isStrictTheme = exports.isStrictCSSRule = exports.isStrictLogicDeclaration = exports.isStrictSlotDeclaration = exports.isStrictEventDeclaration = exports.isStrictPropDeclaration = exports.isStrictEvent = void 0;
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
8
|
-
exports.
|
|
9
|
-
exports.
|
|
10
|
-
exports.
|
|
11
|
-
exports.
|
|
12
|
-
exports.
|
|
13
|
-
exports.
|
|
14
|
-
exports.
|
|
15
|
-
exports.
|
|
16
|
-
exports.
|
|
17
|
-
exports.
|
|
18
|
-
exports.assertReassignUnmannedV2 = exports.assertAutoRejectUnmannedV2 = exports.assertAutoApproveUnmannedV2 = exports.assertUnmannedApprovalStrategyV2 = exports.assertOrSignPolicyV2 = exports.assertCountersignPolicyV2 = exports.assertSequentialPolicyV2 = exports.assertApprovalPolicyV2 = exports.assertFlowConditionV2 = exports.assertDepartmentAssignees = exports.assertRoleAssignees = exports.assertUserAssignees = exports.assertAssignees = exports.assertDepartmentManagerV2 = exports.assertDirectManagerV2 = exports.assertManagerV2 = exports.assertDepartmentV2 = exports.assertAssigneeV2 = exports.assertOperatePermissionV2 = exports.assertProcessElementV2 = exports.assertFieldPermissionV2 = exports.assertProcessBindV2 = exports.assertHistoryProcessV2 = exports.assertProcessDefinitionV2 = exports.assertProcessV2 = exports.assertConnectorLogic = exports.assertConnection = exports.assertCallConnector = exports.assertConnector = exports.assertDependency = exports.assertMsgTriggerLauncher = exports.assertConnectorTriggerLauncher = exports.assertTriggerLauncher = exports.assertConnectorTrigger = exports.assertInterfaceTriggerEvent = exports.assertMsgTriggerEvent = exports.assertTriggerEvent = exports.assertCallAuthInterface = exports.assertAuthInterface = exports.assertViewBlockWithImage = exports.assertViewBlock = exports.assertFrontendLibrary = exports.assertAssignmentLine = exports.assertSelectMembers = void 0;
|
|
5
|
+
exports.isStrictConfiguration = exports.isStrictRole = exports.isStrictProcessOutcomes = exports.isStrictAssignee = exports.isStrictProcessOutcome = exports.isStrictCountersignPolicy = exports.isStrictSequentialPolicy = exports.isStrictProcessComponent = exports.isStrictProcessElement = exports.isStrictProcess = exports.isStrictOqlQueryComponent = exports.isStrictSqlQueryComponent = exports.isStrictQueryLimitExpression = exports.isStrictQueryGroupByExpression = exports.isStrictQueryOrderByExpression = exports.isStrictQueryAggregateExpression = exports.isStrictQueryFieldExpression = exports.isStrictQueryJoinExpression = exports.isStrictQueryFromExpression = exports.isStrictQuerySelectExpression = exports.isStrictCallQueryComponent = exports.isStrictPaginate = exports.isStrictNewMap = exports.isStrictNewList = exports.isStrictNewStructure = exports.isStrictNewComposite = exports.isStrictNew = exports.isStrictUnparsed = exports.isStrictMemberExpression = exports.isStrictUnaryExpression = exports.isStrictMatch = exports.isStrictMatchCase = exports.isStrictVariadicExpression = exports.isStrictBinaryExpression = exports.isStrictNumericLiteral = exports.isStrictStaticString = exports.isStrictStringInterpolation = exports.isStrictStringLiteral = exports.isStrictBooleanLiteral = exports.isStrictNullLiteral = exports.isStrictIdentifier = exports.isStrictBlock = exports.isStrictJavaLogic = exports.isStrictJSBlock = exports.isStrictAnchor = exports.isStrictArgument = exports.isStrictValidationRule = exports.isStrictExternalDestination = exports.isStrictDestination = exports.isStrictCallMicroserviceInterface = void 0;
|
|
6
|
+
exports.isAnnotatable = exports.isAnnotationProperty = exports.isAnnotation = exports.isStrictReassignUnmannedV2 = exports.isStrictAutoRejectUnmannedV2 = exports.isStrictAutoApproveUnmannedV2 = exports.isStrictOrSignPolicyV2 = exports.isStrictCountersignPolicyV2 = exports.isStrictSequentialPolicyV2 = exports.isStrictFlowConditionV2 = exports.isStrictDepartmentAssignees = exports.isStrictRoleAssignees = exports.isStrictUserAssignees = exports.isStrictDepartmentManagerV2 = exports.isStrictDirectManagerV2 = exports.isStrictDepartmentV2 = exports.isStrictAssigneeV2 = exports.isStrictOperatePermissionV2 = exports.isStrictProcessElementV2 = exports.isStrictFieldPermissionV2 = exports.isStrictProcessBindV2 = exports.isStrictHistoryProcessV2 = exports.isStrictProcessDefinitionV2 = exports.isStrictProcessV2 = exports.isStrictConnectorLogic = exports.isStrictConnection = exports.isStrictCallConnector = exports.isStrictConnector = exports.isStrictDependency = exports.isStrictMsgTriggerLauncher = exports.isStrictConnectorTriggerLauncher = exports.isStrictTriggerLauncher = exports.isStrictConnectorTrigger = exports.isStrictInterfaceTriggerEvent = exports.isStrictMsgTriggerEvent = exports.isStrictCallAuthInterface = exports.isStrictAuthInterface = exports.isStrictViewBlockWithImage = exports.isStrictViewBlock = exports.isStrictFrontendLibrary = exports.isStrictAssignmentLine = exports.isStrictSelectMembers = exports.isStrictRect = exports.isStrictPoint = exports.isStrictUseComponent = exports.isStrictCompletionProperty = exports.isStrictI18nInfo = exports.isStrictConfigPropertyValue = exports.isStrictConfigProperty = exports.isStrictConfigGroup = void 0;
|
|
7
|
+
exports.isLogicDeclaration = exports.isSlotDeclaration = exports.isEventDeclaration = exports.isPropDeclaration = exports.isEvent = exports.isAttribute = exports.isBusinessComponent = exports.isViewComponentDeclaration = exports.isAnonymousFunctionSetter = exports.isPropertyTransformSetter = exports.isPropertySelectSetter = exports.isImageSetter = exports.isIconSetter = exports.isNumberInputSetter = exports.isCapsulesSetter = exports.isEnumSelectSetter = exports.isSetterOption = exports.isSwitchSetter = exports.isInputSetter = exports.isBaseSetter = exports.isThemeVariable = exports.isBindStyle = exports.isBindEvent = exports.isBindDirective = exports.isBindAttribute = exports.isViewElement = exports.isView = exports.isMetadataType = exports.isEntityIndex = exports.isEntityProperty = exports.isEntity = exports.isDataSource = exports.isEnumItem = exports.isEnum = exports.isStructureProperty = exports.isStructure = exports.isTypeParam = exports.isDatabaseTypeAnnotation = exports.isTypeAnnotation = exports.isMicroApp = exports.isIntegration = exports.isBackend = exports.isFrontend = exports.isFrontendType = exports.isReferredDefinition = exports.isDirectory = exports.isNamespace = exports.isModule = exports.isApp = exports.isApplyAnnotation = void 0;
|
|
8
|
+
exports.isDestination = exports.isCallMicroserviceInterface = exports.isCallInterface = exports.isCallFunction = exports.isCallEvent = exports.isCallLogic = exports.isComment = exports.isBatchAssignment = exports.isAssignment = exports.isContinue = exports.isBreak = exports.isWhileStatement = exports.isForEachStatement = exports.isSwitchCase = exports.isSwitchStatement = exports.isIfStatement = exports.isEnd = exports.isStart = exports.isAbort = exports.isDefaultValue = exports.isTransactional = exports.isInterfaceParam = exports.isMicroserviceInterface = exports.isConnectionInfo = exports.isInterface = exports.isRetryConfig = exports.isImportedInterface = exports.isAnonymousFunction = exports.isFunction = exports.isSubLogic = exports.isLogicItem = exports.isConstant = exports.isFrontendVariable = exports.isBackendVariable = exports.isVariable = exports.isReturn = exports.isParamWithGroup = exports.isParam = exports.isAbstractInterface = exports.isBusinessLogic = exports.isOverriddenLogic = exports.isAuthLogicForCallInterface = exports.isAuthLogic = exports.isPermissionForSharedScope = exports.isSharedScope = exports.isLogic = exports.isViewComponent = exports.isSlot = exports.isTheme = exports.isCSSRule = void 0;
|
|
9
|
+
exports.isConfigGroup = exports.isConfiguration = exports.isRole = exports.isProcessOutcomes = exports.isAssignee = exports.isProcessOutcome = exports.isCountersignPolicy = exports.isSequentialPolicy = exports.isMultiApprovalPolicy = exports.isProcessComponent = exports.isProcessElement = exports.isProcess = exports.isOqlQueryComponent = exports.isSqlQueryComponent = exports.isQueryLimitExpression = exports.isQueryGroupByExpression = exports.isQueryOrderByExpression = exports.isQueryAggregateExpression = exports.isQueryFieldExpression = exports.isQueryJoinExpression = exports.isQueryFromExpression = exports.isQuerySelectExpression = exports.isCallQueryComponent = exports.isPaginate = exports.isNewMap = exports.isNewList = exports.isNewStructure = exports.isNewComposite = exports.isNew = exports.isUnparsed = exports.isMemberExpression = exports.isUnaryExpression = exports.isMatch = exports.isMatchCase = exports.isVariadicExpression = exports.isBinaryExpression = exports.isNumericLiteral = exports.isStaticString = exports.isStringInterpolation = exports.isStringLiteral = exports.isBooleanLiteral = exports.isNullLiteral = exports.isIdentifier = exports.isBlock = exports.isJavaLogic = exports.isJSBlock = exports.isAnchor = exports.isArgument = exports.isValidationRule = exports.isExternalDestination = void 0;
|
|
10
|
+
exports.isAutoRejectUnmannedV2 = exports.isAutoApproveUnmannedV2 = exports.isUnmannedApprovalStrategyV2 = exports.isOrSignPolicyV2 = exports.isCountersignPolicyV2 = exports.isSequentialPolicyV2 = exports.isApprovalPolicyV2 = exports.isFlowConditionV2 = exports.isDepartmentAssignees = exports.isRoleAssignees = exports.isUserAssignees = exports.isAssignees = exports.isDepartmentManagerV2 = exports.isDirectManagerV2 = exports.isManagerV2 = exports.isDepartmentV2 = exports.isAssigneeV2 = exports.isOperatePermissionV2 = exports.isProcessElementV2 = exports.isFieldPermissionV2 = exports.isProcessBindV2 = exports.isHistoryProcessV2 = exports.isProcessDefinitionV2 = exports.isProcessV2 = exports.isConnectorLogic = exports.isConnection = exports.isCallConnector = exports.isConnector = exports.isDependency = exports.isMsgTriggerLauncher = exports.isConnectorTriggerLauncher = exports.isTriggerLauncher = exports.isConnectorTrigger = exports.isInterfaceTriggerEvent = exports.isMsgTriggerEvent = exports.isTriggerEvent = exports.isCallAuthInterface = exports.isAuthInterface = exports.isViewBlockWithImage = exports.isViewBlock = exports.isFrontendLibrary = exports.isAssignmentLine = exports.isSelectMembers = exports.isRect = exports.isPoint = exports.isUseComponent = exports.isCompletionProperty = exports.isI18nInfo = exports.isConfigPropertyValue = exports.isConfigProperty = void 0;
|
|
11
|
+
exports.assertStrictEventDeclaration = exports.assertStrictPropDeclaration = exports.assertStrictEvent = exports.assertStrictAttribute = exports.assertStrictBusinessComponent = exports.assertStrictViewComponentDeclaration = exports.assertStrictAnonymousFunctionSetter = exports.assertStrictPropertyTransformSetter = exports.assertStrictPropertySelectSetter = exports.assertStrictImageSetter = exports.assertStrictIconSetter = exports.assertStrictNumberInputSetter = exports.assertStrictCapsulesSetter = exports.assertStrictEnumSelectSetter = exports.assertStrictSetterOption = exports.assertStrictSwitchSetter = exports.assertStrictInputSetter = exports.assertStrictThemeVariable = exports.assertStrictBindStyle = exports.assertStrictBindEvent = exports.assertStrictBindDirective = exports.assertStrictBindAttribute = exports.assertStrictViewElement = exports.assertStrictView = exports.assertStrictMetadataType = exports.assertStrictEntityIndex = exports.assertStrictEntityProperty = exports.assertStrictEntity = exports.assertStrictDataSource = exports.assertStrictEnumItem = exports.assertStrictEnum = exports.assertStrictStructureProperty = exports.assertStrictStructure = exports.assertStrictTypeParam = exports.assertStrictDatabaseTypeAnnotation = exports.assertStrictTypeAnnotation = exports.assertStrictMicroApp = exports.assertStrictIntegration = exports.assertStrictBackend = exports.assertStrictFrontend = exports.assertStrictFrontendType = exports.assertStrictReferredDefinition = exports.assertStrictDirectory = exports.assertStrictNamespace = exports.assertStrictModule = exports.assertStrictApp = exports.assertStrictApplyAnnotation = exports.assertStrictAnnotationProperty = exports.assertStrictAnnotation = exports.isReassignUnmannedV2 = void 0;
|
|
12
|
+
exports.assertStrictExternalDestination = exports.assertStrictDestination = exports.assertStrictCallMicroserviceInterface = exports.assertStrictCallInterface = exports.assertStrictCallFunction = exports.assertStrictCallEvent = exports.assertStrictCallLogic = exports.assertStrictComment = exports.assertStrictBatchAssignment = exports.assertStrictAssignment = exports.assertStrictContinue = exports.assertStrictBreak = exports.assertStrictWhileStatement = exports.assertStrictForEachStatement = exports.assertStrictSwitchCase = exports.assertStrictSwitchStatement = exports.assertStrictIfStatement = exports.assertStrictEnd = exports.assertStrictStart = exports.assertStrictAbort = exports.assertStrictDefaultValue = exports.assertStrictTransactional = exports.assertStrictInterfaceParam = exports.assertStrictMicroserviceInterface = exports.assertStrictConnectionInfo = exports.assertStrictInterface = exports.assertStrictRetryConfig = exports.assertStrictAnonymousFunction = exports.assertStrictFunction = exports.assertStrictSubLogic = exports.assertStrictConstant = exports.assertStrictFrontendVariable = exports.assertStrictBackendVariable = exports.assertStrictVariable = exports.assertStrictReturn = exports.assertStrictParamWithGroup = exports.assertStrictParam = exports.assertStrictBusinessLogic = exports.assertStrictOverriddenLogic = exports.assertStrictAuthLogicForCallInterface = exports.assertStrictAuthLogic = exports.assertStrictPermissionForSharedScope = exports.assertStrictSharedScope = exports.assertStrictLogic = exports.assertStrictViewComponent = exports.assertStrictSlot = exports.assertStrictTheme = exports.assertStrictCSSRule = exports.assertStrictLogicDeclaration = exports.assertStrictSlotDeclaration = void 0;
|
|
13
|
+
exports.assertStrictConfigPropertyValue = exports.assertStrictConfigProperty = exports.assertStrictConfigGroup = exports.assertStrictConfiguration = exports.assertStrictRole = exports.assertStrictProcessOutcomes = exports.assertStrictAssignee = exports.assertStrictProcessOutcome = exports.assertStrictCountersignPolicy = exports.assertStrictSequentialPolicy = exports.assertStrictProcessComponent = exports.assertStrictProcessElement = exports.assertStrictProcess = exports.assertStrictOqlQueryComponent = exports.assertStrictSqlQueryComponent = exports.assertStrictQueryLimitExpression = exports.assertStrictQueryGroupByExpression = exports.assertStrictQueryOrderByExpression = exports.assertStrictQueryAggregateExpression = exports.assertStrictQueryFieldExpression = exports.assertStrictQueryJoinExpression = exports.assertStrictQueryFromExpression = exports.assertStrictQuerySelectExpression = exports.assertStrictCallQueryComponent = exports.assertStrictPaginate = exports.assertStrictNewMap = exports.assertStrictNewList = exports.assertStrictNewStructure = exports.assertStrictNewComposite = exports.assertStrictNew = exports.assertStrictUnparsed = exports.assertStrictMemberExpression = exports.assertStrictUnaryExpression = exports.assertStrictMatch = exports.assertStrictMatchCase = exports.assertStrictVariadicExpression = exports.assertStrictBinaryExpression = exports.assertStrictNumericLiteral = exports.assertStrictStaticString = exports.assertStrictStringInterpolation = exports.assertStrictStringLiteral = exports.assertStrictBooleanLiteral = exports.assertStrictNullLiteral = exports.assertStrictIdentifier = exports.assertStrictBlock = exports.assertStrictJavaLogic = exports.assertStrictJSBlock = exports.assertStrictAnchor = exports.assertStrictArgument = exports.assertStrictValidationRule = void 0;
|
|
14
|
+
exports.assertModule = exports.assertApp = exports.assertApplyAnnotation = exports.assertAnnotatable = exports.assertAnnotationProperty = exports.assertAnnotation = exports.assertStrictReassignUnmannedV2 = exports.assertStrictAutoRejectUnmannedV2 = exports.assertStrictAutoApproveUnmannedV2 = exports.assertStrictOrSignPolicyV2 = exports.assertStrictCountersignPolicyV2 = exports.assertStrictSequentialPolicyV2 = exports.assertStrictFlowConditionV2 = exports.assertStrictDepartmentAssignees = exports.assertStrictRoleAssignees = exports.assertStrictUserAssignees = exports.assertStrictDepartmentManagerV2 = exports.assertStrictDirectManagerV2 = exports.assertStrictDepartmentV2 = exports.assertStrictAssigneeV2 = exports.assertStrictOperatePermissionV2 = exports.assertStrictProcessElementV2 = exports.assertStrictFieldPermissionV2 = exports.assertStrictProcessBindV2 = exports.assertStrictHistoryProcessV2 = exports.assertStrictProcessDefinitionV2 = exports.assertStrictProcessV2 = exports.assertStrictConnectorLogic = exports.assertStrictConnection = exports.assertStrictCallConnector = exports.assertStrictConnector = exports.assertStrictDependency = exports.assertStrictMsgTriggerLauncher = exports.assertStrictConnectorTriggerLauncher = exports.assertStrictTriggerLauncher = exports.assertStrictConnectorTrigger = exports.assertStrictInterfaceTriggerEvent = exports.assertStrictMsgTriggerEvent = exports.assertStrictCallAuthInterface = exports.assertStrictAuthInterface = exports.assertStrictViewBlockWithImage = exports.assertStrictViewBlock = exports.assertStrictFrontendLibrary = exports.assertStrictAssignmentLine = exports.assertStrictSelectMembers = exports.assertStrictRect = exports.assertStrictPoint = exports.assertStrictUseComponent = exports.assertStrictCompletionProperty = exports.assertStrictI18nInfo = void 0;
|
|
15
|
+
exports.assertSlot = exports.assertTheme = exports.assertCSSRule = exports.assertLogicDeclaration = exports.assertSlotDeclaration = exports.assertEventDeclaration = exports.assertPropDeclaration = exports.assertEvent = exports.assertAttribute = exports.assertBusinessComponent = exports.assertViewComponentDeclaration = exports.assertAnonymousFunctionSetter = exports.assertPropertyTransformSetter = exports.assertPropertySelectSetter = exports.assertImageSetter = exports.assertIconSetter = exports.assertNumberInputSetter = exports.assertCapsulesSetter = exports.assertEnumSelectSetter = exports.assertSetterOption = exports.assertSwitchSetter = exports.assertInputSetter = exports.assertBaseSetter = exports.assertThemeVariable = exports.assertBindStyle = exports.assertBindEvent = exports.assertBindDirective = exports.assertBindAttribute = exports.assertViewElement = exports.assertView = exports.assertMetadataType = exports.assertEntityIndex = exports.assertEntityProperty = exports.assertEntity = exports.assertDataSource = exports.assertEnumItem = exports.assertEnum = exports.assertStructureProperty = exports.assertStructure = exports.assertTypeParam = exports.assertDatabaseTypeAnnotation = exports.assertTypeAnnotation = exports.assertMicroApp = exports.assertIntegration = exports.assertBackend = exports.assertFrontend = exports.assertFrontendType = exports.assertReferredDefinition = exports.assertDirectory = exports.assertNamespace = void 0;
|
|
16
|
+
exports.assertArgument = exports.assertValidationRule = exports.assertExternalDestination = exports.assertDestination = exports.assertCallMicroserviceInterface = exports.assertCallInterface = exports.assertCallFunction = exports.assertCallEvent = exports.assertCallLogic = exports.assertComment = exports.assertBatchAssignment = exports.assertAssignment = exports.assertContinue = exports.assertBreak = exports.assertWhileStatement = exports.assertForEachStatement = exports.assertSwitchCase = exports.assertSwitchStatement = exports.assertIfStatement = exports.assertEnd = exports.assertStart = exports.assertAbort = exports.assertDefaultValue = exports.assertTransactional = exports.assertInterfaceParam = exports.assertMicroserviceInterface = exports.assertConnectionInfo = exports.assertInterface = exports.assertRetryConfig = exports.assertImportedInterface = exports.assertAnonymousFunction = exports.assertFunction = exports.assertSubLogic = exports.assertLogicItem = exports.assertConstant = exports.assertFrontendVariable = exports.assertBackendVariable = exports.assertVariable = exports.assertReturn = exports.assertParamWithGroup = exports.assertParam = exports.assertAbstractInterface = exports.assertBusinessLogic = exports.assertOverriddenLogic = exports.assertAuthLogicForCallInterface = exports.assertAuthLogic = exports.assertPermissionForSharedScope = exports.assertSharedScope = exports.assertLogic = exports.assertViewComponent = void 0;
|
|
17
|
+
exports.assertI18nInfo = exports.assertConfigPropertyValue = exports.assertConfigProperty = exports.assertConfigGroup = exports.assertConfiguration = exports.assertRole = exports.assertProcessOutcomes = exports.assertAssignee = exports.assertProcessOutcome = exports.assertCountersignPolicy = exports.assertSequentialPolicy = exports.assertMultiApprovalPolicy = exports.assertProcessComponent = exports.assertProcessElement = exports.assertProcess = exports.assertOqlQueryComponent = exports.assertSqlQueryComponent = exports.assertQueryLimitExpression = exports.assertQueryGroupByExpression = exports.assertQueryOrderByExpression = exports.assertQueryAggregateExpression = exports.assertQueryFieldExpression = exports.assertQueryJoinExpression = exports.assertQueryFromExpression = exports.assertQuerySelectExpression = exports.assertCallQueryComponent = exports.assertPaginate = exports.assertNewMap = exports.assertNewList = exports.assertNewStructure = exports.assertNewComposite = exports.assertNew = exports.assertUnparsed = exports.assertMemberExpression = exports.assertUnaryExpression = exports.assertMatch = exports.assertMatchCase = exports.assertVariadicExpression = exports.assertBinaryExpression = exports.assertNumericLiteral = exports.assertStaticString = exports.assertStringInterpolation = exports.assertStringLiteral = exports.assertBooleanLiteral = exports.assertNullLiteral = exports.assertIdentifier = exports.assertBlock = exports.assertJavaLogic = exports.assertJSBlock = exports.assertAnchor = void 0;
|
|
18
|
+
exports.assertReassignUnmannedV2 = exports.assertAutoRejectUnmannedV2 = exports.assertAutoApproveUnmannedV2 = exports.assertUnmannedApprovalStrategyV2 = exports.assertOrSignPolicyV2 = exports.assertCountersignPolicyV2 = exports.assertSequentialPolicyV2 = exports.assertApprovalPolicyV2 = exports.assertFlowConditionV2 = exports.assertDepartmentAssignees = exports.assertRoleAssignees = exports.assertUserAssignees = exports.assertAssignees = exports.assertDepartmentManagerV2 = exports.assertDirectManagerV2 = exports.assertManagerV2 = exports.assertDepartmentV2 = exports.assertAssigneeV2 = exports.assertOperatePermissionV2 = exports.assertProcessElementV2 = exports.assertFieldPermissionV2 = exports.assertProcessBindV2 = exports.assertHistoryProcessV2 = exports.assertProcessDefinitionV2 = exports.assertProcessV2 = exports.assertConnectorLogic = exports.assertConnection = exports.assertCallConnector = exports.assertConnector = exports.assertDependency = exports.assertMsgTriggerLauncher = exports.assertConnectorTriggerLauncher = exports.assertTriggerLauncher = exports.assertConnectorTrigger = exports.assertInterfaceTriggerEvent = exports.assertMsgTriggerEvent = exports.assertTriggerEvent = exports.assertCallAuthInterface = exports.assertAuthInterface = exports.assertViewBlockWithImage = exports.assertViewBlock = exports.assertFrontendLibrary = exports.assertAssignmentLine = exports.assertSelectMembers = exports.assertRect = exports.assertPoint = exports.assertUseComponent = exports.assertCompletionProperty = void 0;
|
|
19
19
|
/**
|
|
20
20
|
* 判断为节点
|
|
21
21
|
*/
|
|
@@ -1744,6 +1744,21 @@ function isStrictBinaryExpression(node) {
|
|
|
1744
1744
|
return isBaseNode(node) && node.concept === 'BinaryExpression';
|
|
1745
1745
|
}
|
|
1746
1746
|
exports.isStrictBinaryExpression = isStrictBinaryExpression;
|
|
1747
|
+
/**
|
|
1748
|
+
* 严格判断输入为 VariadicExpression 节点
|
|
1749
|
+
*
|
|
1750
|
+
* @description 仅判断节点本身,不包含继承类
|
|
1751
|
+
* @example
|
|
1752
|
+
* ```ts
|
|
1753
|
+
* if (isStrictVariadicExpression(node)) {
|
|
1754
|
+
* // 在这个花括号内,node 的类型为 VariadicExpression
|
|
1755
|
+
* }
|
|
1756
|
+
* ```
|
|
1757
|
+
*/
|
|
1758
|
+
function isStrictVariadicExpression(node) {
|
|
1759
|
+
return isBaseNode(node) && node.concept === 'VariadicExpression';
|
|
1760
|
+
}
|
|
1761
|
+
exports.isStrictVariadicExpression = isStrictVariadicExpression;
|
|
1747
1762
|
/**
|
|
1748
1763
|
* 严格判断输入为 MatchCase 节点
|
|
1749
1764
|
*
|
|
@@ -4237,6 +4252,7 @@ function isLogicItem(node) {
|
|
|
4237
4252
|
node.concept === 'StringInterpolation' ||
|
|
4238
4253
|
node.concept === 'NumericLiteral' ||
|
|
4239
4254
|
node.concept === 'BinaryExpression' ||
|
|
4255
|
+
node.concept === 'VariadicExpression' ||
|
|
4240
4256
|
node.concept === 'MatchCase' ||
|
|
4241
4257
|
node.concept === 'Match' ||
|
|
4242
4258
|
node.concept === 'UnaryExpression' ||
|
|
@@ -5037,6 +5053,23 @@ function isBinaryExpression(node) {
|
|
|
5037
5053
|
(node.concept === 'BinaryExpression'));
|
|
5038
5054
|
}
|
|
5039
5055
|
exports.isBinaryExpression = isBinaryExpression;
|
|
5056
|
+
/**
|
|
5057
|
+
* 判断输入为 VariadicExpression 节点实例
|
|
5058
|
+
*
|
|
5059
|
+
* @description 包含节点类以及节点继承类的判断
|
|
5060
|
+
* @description 等价于`instanceof`运算,VariadicExpression 节点没有继承类,此判断等价于`isStrictVariadicExpression`
|
|
5061
|
+
* @example
|
|
5062
|
+
* ```ts
|
|
5063
|
+
* if (isVariadicExpression(node)) {
|
|
5064
|
+
* // 在这个花括号内,node 的类型是 VariadicExpression 或者 VariadicExpression 继承类型
|
|
5065
|
+
* }
|
|
5066
|
+
* ```
|
|
5067
|
+
*/
|
|
5068
|
+
function isVariadicExpression(node) {
|
|
5069
|
+
return (isBaseNode(node) &&
|
|
5070
|
+
(node.concept === 'VariadicExpression'));
|
|
5071
|
+
}
|
|
5072
|
+
exports.isVariadicExpression = isVariadicExpression;
|
|
5040
5073
|
/**
|
|
5041
5074
|
* 判断输入为 MatchCase 节点实例
|
|
5042
5075
|
*
|
|
@@ -8423,6 +8456,23 @@ function assertStrictBinaryExpression(node) {
|
|
|
8423
8456
|
}
|
|
8424
8457
|
}
|
|
8425
8458
|
exports.assertStrictBinaryExpression = assertStrictBinaryExpression;
|
|
8459
|
+
/**
|
|
8460
|
+
* 严格断言为 VariadicExpression 节点
|
|
8461
|
+
*
|
|
8462
|
+
* @description 仅断言节点本身,不包含继承类
|
|
8463
|
+
* @example
|
|
8464
|
+
* ```ts
|
|
8465
|
+
* assertStrictVariadicExpression(node);
|
|
8466
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 VariadicExpression 类型
|
|
8467
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
8468
|
+
* ```
|
|
8469
|
+
*/
|
|
8470
|
+
function assertStrictVariadicExpression(node) {
|
|
8471
|
+
if (!isStrictVariadicExpression(node)) {
|
|
8472
|
+
throw new Error(`VariadicExpression 节点严格断言失败`);
|
|
8473
|
+
}
|
|
8474
|
+
}
|
|
8475
|
+
exports.assertStrictVariadicExpression = assertStrictVariadicExpression;
|
|
8426
8476
|
/**
|
|
8427
8477
|
* 严格断言为 MatchCase 节点
|
|
8428
8478
|
*
|
|
@@ -11891,6 +11941,24 @@ function assertBinaryExpression(node) {
|
|
|
11891
11941
|
}
|
|
11892
11942
|
}
|
|
11893
11943
|
exports.assertBinaryExpression = assertBinaryExpression;
|
|
11944
|
+
/**
|
|
11945
|
+
* 断言为 VariadicExpression 节点
|
|
11946
|
+
*
|
|
11947
|
+
* @description 包含节点类以及节点继承类的判断
|
|
11948
|
+
* @description 节点没有继承类时,等价于`assertStrictVariadicExpression`方法
|
|
11949
|
+
* @example
|
|
11950
|
+
* ```ts
|
|
11951
|
+
* assertVariadicExpression(node);
|
|
11952
|
+
* // 当前作用域内,断言语句之后,node 的类型都将会被断言为 VariadicExpression 或者 VariadicExpression 继承类型
|
|
11953
|
+
* // 断言失败会抛出错误,所以此函数是用在必须要严格限定节点类型的地方
|
|
11954
|
+
* ```
|
|
11955
|
+
*/
|
|
11956
|
+
function assertVariadicExpression(node) {
|
|
11957
|
+
if (!isVariadicExpression(node)) {
|
|
11958
|
+
throw new Error(`VariadicExpression 节点断言失败`);
|
|
11959
|
+
}
|
|
11960
|
+
}
|
|
11961
|
+
exports.assertVariadicExpression = assertVariadicExpression;
|
|
11894
11962
|
/**
|
|
11895
11963
|
* 断言为 MatchCase 节点
|
|
11896
11964
|
*
|