@webiny/api-workflows 0.0.0-unstable.81ae05e56b → 0.0.0-unstable.9609e4e0c9
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/WorkflowsFeature.d.ts +5 -0
- package/WorkflowsFeature.js +155 -0
- package/WorkflowsFeature.js.map +1 -0
- package/constants.d.ts +25 -1
- package/constants.js +17 -3
- package/constants.js.map +1 -1
- package/domain/PersistenceError.d.ts +21 -0
- package/domain/PersistenceError.js +22 -0
- package/domain/PersistenceError.js.map +1 -0
- package/domain/PersistenceErrorSource.d.ts +6 -0
- package/domain/PersistenceErrorSource.js +0 -0
- package/domain/ai/getAiActor.d.ts +7 -0
- package/domain/ai/getAiActor.js +8 -0
- package/domain/ai/getAiActor.js.map +1 -0
- package/domain/aiTools/isWorkflowAiToolName.d.ts +6 -0
- package/domain/aiTools/isWorkflowAiToolName.js +5 -0
- package/domain/aiTools/isWorkflowAiToolName.js.map +1 -0
- package/domain/assignment/abstractions/AssignmentModelProvider.d.ts +9 -0
- package/domain/assignment/abstractions/AssignmentModelProvider.js +5 -0
- package/domain/assignment/abstractions/AssignmentModelProvider.js.map +1 -0
- package/domain/assignment/abstractions/AssignmentRepository.d.ts +59 -0
- package/domain/assignment/abstractions/AssignmentRepository.js +5 -0
- package/domain/assignment/abstractions/AssignmentRepository.js.map +1 -0
- package/domain/assignment/assignment.model.d.ts +12 -0
- package/domain/assignment/assignment.model.js +36 -0
- package/domain/assignment/assignment.model.js.map +1 -0
- package/domain/assignment/attachAssignmentRecords.d.ts +8 -0
- package/domain/assignment/attachAssignmentRecords.js +13 -0
- package/domain/assignment/attachAssignmentRecords.js.map +1 -0
- package/domain/assignment/errors.d.ts +6 -0
- package/domain/assignment/errors.js +9 -0
- package/domain/assignment/errors.js.map +1 -0
- package/domain/assignment/redactAssignmentRecords.d.ts +8 -0
- package/domain/assignment/redactAssignmentRecords.js +9 -0
- package/domain/assignment/redactAssignmentRecords.js.map +1 -0
- package/domain/assignment/toAssignmentRecordValues.d.ts +10 -0
- package/domain/assignment/toAssignmentRecordValues.js +29 -0
- package/domain/assignment/toAssignmentRecordValues.js.map +1 -0
- package/domain/assignment/types.d.ts +63 -0
- package/domain/assignment/types.js +0 -0
- package/domain/automation/automationStepConfigSchema.d.ts +17 -0
- package/domain/automation/automationStepConfigSchema.js +8 -0
- package/domain/automation/automationStepConfigSchema.js.map +1 -0
- package/domain/automation/getAutomationActor.d.ts +8 -0
- package/domain/automation/getAutomationActor.js +8 -0
- package/domain/automation/getAutomationActor.js.map +1 -0
- package/domain/automation/getRequesterIdentity.d.ts +9 -0
- package/domain/automation/getRequesterIdentity.js +12 -0
- package/domain/automation/getRequesterIdentity.js.map +1 -0
- package/domain/automation/matchesAutomationScope.d.ts +6 -0
- package/domain/automation/matchesAutomationScope.js +16 -0
- package/domain/automation/matchesAutomationScope.js.map +1 -0
- package/domain/automation/parseAutomationSettings.d.ts +8 -0
- package/domain/automation/parseAutomationSettings.js +11 -0
- package/domain/automation/parseAutomationSettings.js.map +1 -0
- package/domain/automation/parseAutomationSettingsIssue.d.ts +14 -0
- package/domain/automation/parseAutomationSettingsIssue.js +15 -0
- package/domain/automation/parseAutomationSettingsIssue.js.map +1 -0
- package/domain/config/types.d.ts +69 -0
- package/domain/config/types.js +0 -0
- package/domain/forEachWithConcurrency.d.ts +15 -0
- package/domain/forEachWithConcurrency.js +17 -0
- package/domain/forEachWithConcurrency.js.map +1 -0
- package/domain/hasErrorSource.d.ts +10 -0
- package/domain/hasErrorSource.js +4 -0
- package/domain/hasErrorSource.js.map +1 -0
- package/domain/notifications/clampComment.d.ts +6 -0
- package/domain/notifications/clampComment.js +11 -0
- package/domain/notifications/clampComment.js.map +1 -0
- package/domain/notifications/constants.d.ts +2 -0
- package/domain/notifications/constants.js +4 -0
- package/domain/notifications/constants.js.map +1 -0
- package/domain/notifications/dropActor.d.ts +11 -0
- package/domain/notifications/dropActor.js +9 -0
- package/domain/notifications/dropActor.js.map +1 -0
- package/domain/notifications/getActorName.d.ts +7 -0
- package/domain/notifications/getActorName.js +8 -0
- package/domain/notifications/getActorName.js.map +1 -0
- package/domain/notifications/getReviewChangeRecipients.d.ts +8 -0
- package/domain/notifications/getReviewChangeRecipients.js +16 -0
- package/domain/notifications/getReviewChangeRecipients.js.map +1 -0
- package/domain/notifications/messages/buildApprovedMessage.d.ts +7 -0
- package/domain/notifications/messages/buildApprovedMessage.js +13 -0
- package/domain/notifications/messages/buildApprovedMessage.js.map +1 -0
- package/domain/notifications/messages/buildAssignedMessage.d.ts +18 -0
- package/domain/notifications/messages/buildAssignedMessage.js +14 -0
- package/domain/notifications/messages/buildAssignedMessage.js.map +1 -0
- package/domain/notifications/messages/buildCancelledMessage.d.ts +15 -0
- package/domain/notifications/messages/buildCancelledMessage.js +30 -0
- package/domain/notifications/messages/buildCancelledMessage.js.map +1 -0
- package/domain/notifications/messages/buildFailedMessage.d.ts +13 -0
- package/domain/notifications/messages/buildFailedMessage.js +13 -0
- package/domain/notifications/messages/buildFailedMessage.js.map +1 -0
- package/domain/notifications/messages/buildPoolReachedMessage.d.ts +10 -0
- package/domain/notifications/messages/buildPoolReachedMessage.js +13 -0
- package/domain/notifications/messages/buildPoolReachedMessage.js.map +1 -0
- package/domain/notifications/messages/buildReassignedMessage.d.ts +12 -0
- package/domain/notifications/messages/buildReassignedMessage.js +13 -0
- package/domain/notifications/messages/buildReassignedMessage.js.map +1 -0
- package/domain/notifications/messages/buildRejectedMessage.d.ts +12 -0
- package/domain/notifications/messages/buildRejectedMessage.js +25 -0
- package/domain/notifications/messages/buildRejectedMessage.js.map +1 -0
- package/domain/notifications/messages/buildTakenOverMessage.d.ts +10 -0
- package/domain/notifications/messages/buildTakenOverMessage.js +13 -0
- package/domain/notifications/messages/buildTakenOverMessage.js.map +1 -0
- package/domain/notifications/messages/getAssignmentReason.d.ts +7 -0
- package/domain/notifications/messages/getAssignmentReason.js +17 -0
- package/domain/notifications/messages/getAssignmentReason.js.map +1 -0
- package/domain/notifications/toSingleLine.d.ts +6 -0
- package/domain/notifications/toSingleLine.js +4 -0
- package/domain/notifications/toSingleLine.js.map +1 -0
- package/domain/notifications/types.d.ts +58 -0
- package/domain/notifications/types.js +0 -0
- package/domain/permissions/errors.d.ts +15 -0
- package/domain/permissions/errors.js +19 -0
- package/domain/permissions/errors.js.map +1 -0
- package/domain/permissions/types.d.ts +11 -0
- package/domain/permissions/types.js +0 -0
- package/domain/review/Review.d.ts +258 -0
- package/domain/review/Review.js +702 -0
- package/domain/review/Review.js.map +1 -0
- package/domain/review/ReviewStepRunInfo.d.ts +18 -0
- package/domain/review/ReviewStepRunInfo.js +0 -0
- package/domain/review/abstractions/ReviewModelProvider.d.ts +9 -0
- package/domain/review/abstractions/ReviewModelProvider.js +5 -0
- package/domain/review/abstractions/ReviewModelProvider.js.map +1 -0
- package/domain/review/abstractions/ReviewRepository.d.ts +122 -0
- package/domain/review/abstractions/ReviewRepository.js +5 -0
- package/domain/review/abstractions/ReviewRepository.js.map +1 -0
- package/domain/review/applyTargetAccess.d.ts +6 -0
- package/domain/review/applyTargetAccess.js +17 -0
- package/domain/review/applyTargetAccess.js.map +1 -0
- package/domain/review/canCancelByPermission.d.ts +9 -0
- package/domain/review/canCancelByPermission.js +8 -0
- package/domain/review/canCancelByPermission.js.map +1 -0
- package/domain/review/canReassignByPermission.d.ts +7 -0
- package/domain/review/canReassignByPermission.js +4 -0
- package/domain/review/canReassignByPermission.js.map +1 -0
- package/domain/review/canRestartByPermission.d.ts +9 -0
- package/domain/review/canRestartByPermission.js +8 -0
- package/domain/review/canRestartByPermission.js.map +1 -0
- package/domain/review/canViewStepRunByPermission.d.ts +7 -0
- package/domain/review/canViewStepRunByPermission.js +4 -0
- package/domain/review/canViewStepRunByPermission.js.map +1 -0
- package/domain/review/errors.d.ts +234 -0
- package/domain/review/errors.js +190 -0
- package/domain/review/errors.js.map +1 -0
- package/domain/review/facts.d.ts +111 -0
- package/domain/review/facts.js +0 -0
- package/domain/review/getDeleteCancelReason.d.ts +5 -0
- package/domain/review/getDeleteCancelReason.js +6 -0
- package/domain/review/getDeleteCancelReason.js.map +1 -0
- package/domain/review/getReviewViewerFlags.d.ts +14 -0
- package/domain/review/getReviewViewerFlags.js +39 -0
- package/domain/review/getReviewViewerFlags.js.map +1 -0
- package/domain/review/getStaleStepRunReason.d.ts +17 -0
- package/domain/review/getStaleStepRunReason.js +13 -0
- package/domain/review/getStaleStepRunReason.js.map +1 -0
- package/domain/review/matchesReviewList.d.ts +17 -0
- package/domain/review/matchesReviewList.js +27 -0
- package/domain/review/matchesReviewList.js.map +1 -0
- package/domain/review/matchesReviewReadFilter.d.ts +6 -0
- package/domain/review/matchesReviewReadFilter.js +9 -0
- package/domain/review/matchesReviewReadFilter.js.map +1 -0
- package/domain/review/review.model.d.ts +14 -0
- package/domain/review/review.model.js +112 -0
- package/domain/review/review.model.js.map +1 -0
- package/domain/review/toBlockingReview.d.ts +7 -0
- package/domain/review/toBlockingReview.js +18 -0
- package/domain/review/toBlockingReview.js.map +1 -0
- package/domain/review/types.d.ts +211 -0
- package/domain/review/types.js +0 -0
- package/domain/routing/createRoutingFailedResolution.d.ts +8 -0
- package/domain/routing/createRoutingFailedResolution.js +30 -0
- package/domain/routing/createRoutingFailedResolution.js.map +1 -0
- package/domain/routing/errors.d.ts +25 -0
- package/domain/routing/errors.js +18 -0
- package/domain/routing/errors.js.map +1 -0
- package/domain/routing/findNarrowedTeamId.d.ts +5 -0
- package/domain/routing/findNarrowedTeamId.js +8 -0
- package/domain/routing/findNarrowedTeamId.js.map +1 -0
- package/domain/routing/getFailedRoutingConditions.d.ts +10 -0
- package/domain/routing/getFailedRoutingConditions.js +13 -0
- package/domain/routing/getFailedRoutingConditions.js.map +1 -0
- package/domain/routing/getRoutingUserSkipReason.d.ts +16 -0
- package/domain/routing/getRoutingUserSkipReason.js +10 -0
- package/domain/routing/getRoutingUserSkipReason.js.map +1 -0
- package/domain/routing/listNotEvaluatedTrace.d.ts +7 -0
- package/domain/routing/listNotEvaluatedTrace.js +9 -0
- package/domain/routing/listNotEvaluatedTrace.js.map +1 -0
- package/domain/routing/listRoutingCandidates.d.ts +15 -0
- package/domain/routing/listRoutingCandidates.js +7 -0
- package/domain/routing/listRoutingCandidates.js.map +1 -0
- package/domain/routing/listStrategySkips.d.ts +22 -0
- package/domain/routing/listStrategySkips.js +28 -0
- package/domain/routing/listStrategySkips.js.map +1 -0
- package/domain/routing/matchRoutingRuleConditions.d.ts +9 -0
- package/domain/routing/matchRoutingRuleConditions.js +7 -0
- package/domain/routing/matchRoutingRuleConditions.js.map +1 -0
- package/domain/routing/matchRoutingRuleLocalConditions.d.ts +8 -0
- package/domain/routing/matchRoutingRuleLocalConditions.js +10 -0
- package/domain/routing/matchRoutingRuleLocalConditions.js.map +1 -0
- package/domain/routing/matchesFolderCondition.d.ts +8 -0
- package/domain/routing/matchesFolderCondition.js +11 -0
- package/domain/routing/matchesFolderCondition.js.map +1 -0
- package/domain/routing/matchesFolderTypeCondition.d.ts +8 -0
- package/domain/routing/matchesFolderTypeCondition.js +7 -0
- package/domain/routing/matchesFolderTypeCondition.js.map +1 -0
- package/domain/routing/matchesRequesterTeamCondition.d.ts +4 -0
- package/domain/routing/matchesRequesterTeamCondition.js +4 -0
- package/domain/routing/matchesRequesterTeamCondition.js.map +1 -0
- package/domain/routing/matchesRequesterUserCondition.d.ts +4 -0
- package/domain/routing/matchesRequesterUserCondition.js +4 -0
- package/domain/routing/matchesRequesterUserCondition.js.map +1 -0
- package/domain/routing/orderLeastLoaded.d.ts +7 -0
- package/domain/routing/orderLeastLoaded.js +18 -0
- package/domain/routing/orderLeastLoaded.js.map +1 -0
- package/domain/routing/orderRoundRobin.d.ts +7 -0
- package/domain/routing/orderRoundRobin.js +16 -0
- package/domain/routing/orderRoundRobin.js.map +1 -0
- package/domain/routing/reasons.d.ts +22 -0
- package/domain/routing/reasons.js +12 -0
- package/domain/routing/reasons.js.map +1 -0
- package/domain/routing/redactStepCandidates.d.ts +8 -0
- package/domain/routing/redactStepCandidates.js +12 -0
- package/domain/routing/redactStepCandidates.js.map +1 -0
- package/domain/routing/toInspectionTrace.d.ts +6 -0
- package/domain/routing/toInspectionTrace.js +11 -0
- package/domain/routing/toInspectionTrace.js.map +1 -0
- package/domain/routing/toRoutingEvaluation.d.ts +20 -0
- package/domain/routing/toRoutingEvaluation.js +40 -0
- package/domain/routing/toRoutingEvaluation.js.map +1 -0
- package/domain/routing/toStepAssignmentResolution.d.ts +7 -0
- package/domain/routing/toStepAssignmentResolution.js +24 -0
- package/domain/routing/toStepAssignmentResolution.js.map +1 -0
- package/domain/routing/toStepMembersParams.d.ts +15 -0
- package/domain/routing/toStepMembersParams.js +19 -0
- package/domain/routing/toStepMembersParams.js.map +1 -0
- package/domain/routing/types.d.ts +198 -0
- package/domain/routing/types.js +0 -0
- package/domain/settings/WorkflowSettingsValidator.d.ts +7 -0
- package/domain/settings/WorkflowSettingsValidator.js +39 -0
- package/domain/settings/WorkflowSettingsValidator.js.map +1 -0
- package/domain/settings/abstractions/WorkflowSettingsModelProvider.d.ts +9 -0
- package/domain/settings/abstractions/WorkflowSettingsModelProvider.js +5 -0
- package/domain/settings/abstractions/WorkflowSettingsModelProvider.js.map +1 -0
- package/domain/settings/abstractions/WorkflowSettingsRepository.d.ts +13 -0
- package/domain/settings/abstractions/WorkflowSettingsRepository.js +5 -0
- package/domain/settings/abstractions/WorkflowSettingsRepository.js.map +1 -0
- package/domain/settings/errors.d.ts +14 -0
- package/domain/settings/errors.js +18 -0
- package/domain/settings/errors.js.map +1 -0
- package/domain/settings/filterActiveExclusions.d.ts +3 -0
- package/domain/settings/filterActiveExclusions.js +4 -0
- package/domain/settings/filterActiveExclusions.js.map +1 -0
- package/domain/settings/settings.model.d.ts +9 -0
- package/domain/settings/settings.model.js +26 -0
- package/domain/settings/settings.model.js.map +1 -0
- package/domain/settings/types.d.ts +10 -0
- package/domain/settings/types.js +0 -0
- package/domain/toChunks.d.ts +2 -0
- package/domain/toChunks.js +8 -0
- package/domain/toChunks.js.map +1 -0
- package/domain/workflow/WorkflowValidator.d.ts +26 -0
- package/domain/workflow/WorkflowValidator.js +65 -0
- package/domain/workflow/WorkflowValidator.js.map +1 -0
- package/domain/workflow/abstractions/WorkflowModelProvider.d.ts +12 -0
- package/domain/workflow/abstractions/WorkflowModelProvider.js +5 -0
- package/domain/workflow/abstractions/WorkflowModelProvider.js.map +1 -0
- package/domain/workflow/abstractions/WorkflowRepository.d.ts +32 -0
- package/domain/workflow/abstractions/WorkflowRepository.js +5 -0
- package/domain/workflow/abstractions/WorkflowRepository.js.map +1 -0
- package/domain/workflow/canPickReviewer.d.ts +8 -0
- package/domain/workflow/canPickReviewer.js +10 -0
- package/domain/workflow/canPickReviewer.js.map +1 -0
- package/domain/workflow/errors.d.ts +53 -15
- package/domain/workflow/errors.js +46 -29
- package/domain/workflow/errors.js.map +1 -1
- package/domain/workflow/findReviewStepConfigProblem.d.ts +8 -0
- package/domain/workflow/findReviewStepConfigProblem.js +21 -0
- package/domain/workflow/findReviewStepConfigProblem.js.map +1 -0
- package/domain/workflow/findRuleWithoutTarget.d.ts +10 -0
- package/domain/workflow/findRuleWithoutTarget.js +15 -0
- package/domain/workflow/findRuleWithoutTarget.js.map +1 -0
- package/domain/workflow/getConfigIssueField.d.ts +6 -0
- package/domain/workflow/getConfigIssueField.js +7 -0
- package/domain/workflow/getConfigIssueField.js.map +1 -0
- package/domain/workflow/isAppWorkflow.d.ts +7 -0
- package/domain/workflow/isAppWorkflow.js +5 -0
- package/domain/workflow/isAppWorkflow.js.map +1 -0
- package/domain/workflow/reviewStepConfigSchema.d.ts +39 -0
- package/domain/workflow/reviewStepConfigSchema.js +41 -0
- package/domain/workflow/reviewStepConfigSchema.js.map +1 -0
- package/domain/workflow/ruleErrorMessages.d.ts +26 -0
- package/domain/workflow/ruleErrorMessages.js +16 -0
- package/domain/workflow/ruleErrorMessages.js.map +1 -0
- package/domain/workflow/stepTypes.d.ts +7 -0
- package/domain/workflow/stepTypes.js +6 -0
- package/domain/workflow/stepTypes.js.map +1 -0
- package/domain/workflow/types.d.ts +102 -0
- package/domain/workflow/types.js +0 -0
- package/domain/workflow/workflow.model.d.ts +12 -0
- package/domain/workflow/workflow.model.js +34 -0
- package/domain/workflow/workflow.model.js.map +1 -0
- package/features/aiTools/BuiltInAiToolsFeature.d.ts +5 -0
- package/features/aiTools/BuiltInAiToolsFeature.js +13 -0
- package/features/aiTools/BuiltInAiToolsFeature.js.map +1 -0
- package/features/aiTools/ReadTargetTool/ReadTargetTool.d.ts +29 -0
- package/features/aiTools/ReadTargetTool/ReadTargetTool.js +61 -0
- package/features/aiTools/ReadTargetTool/ReadTargetTool.js.map +1 -0
- package/features/aiTools/UpdateTargetFieldsTool/UpdateTargetFieldsTool.d.ts +43 -0
- package/features/aiTools/UpdateTargetFieldsTool/UpdateTargetFieldsTool.js +85 -0
- package/features/aiTools/UpdateTargetFieldsTool/UpdateTargetFieldsTool.js.map +1 -0
- package/features/aiTools/WorkflowAiTool/abstractions.d.ts +60 -0
- package/features/aiTools/WorkflowAiTool/abstractions.js +5 -0
- package/features/aiTools/WorkflowAiTool/abstractions.js.map +1 -0
- package/features/aiTools/WorkflowAiTool/index.d.ts +1 -0
- package/features/aiTools/WorkflowAiTool/index.js +1 -0
- package/features/aiTools/WorkflowAiToolRegistryService/WorkflowAiToolRegistryService.d.ts +13 -0
- package/features/aiTools/WorkflowAiToolRegistryService/WorkflowAiToolRegistryService.js +42 -0
- package/features/aiTools/WorkflowAiToolRegistryService/WorkflowAiToolRegistryService.js.map +1 -0
- package/features/aiTools/WorkflowAiToolRegistryService/abstractions.d.ts +12 -0
- package/features/aiTools/WorkflowAiToolRegistryService/abstractions.js +5 -0
- package/features/aiTools/WorkflowAiToolRegistryService/abstractions.js.map +1 -0
- package/features/aiTools/WorkflowAiToolRegistryService/feature.d.ts +4 -0
- package/features/aiTools/WorkflowAiToolRegistryService/feature.js +11 -0
- package/features/aiTools/WorkflowAiToolRegistryService/feature.js.map +1 -0
- package/features/aiTools/WorkflowAiToolRegistryService/index.d.ts +1 -0
- package/features/aiTools/WorkflowAiToolRegistryService/index.js +1 -0
- package/features/aiTools/constants.d.ts +18 -0
- package/features/aiTools/constants.js +10 -0
- package/features/aiTools/constants.js.map +1 -0
- package/features/assignment/ListReviewAssignments/ListReviewAssignmentsUseCase.d.ts +17 -0
- package/features/assignment/ListReviewAssignments/ListReviewAssignmentsUseCase.js +69 -0
- package/features/assignment/ListReviewAssignments/ListReviewAssignmentsUseCase.js.map +1 -0
- package/features/assignment/ListReviewAssignments/abstractions.d.ts +28 -0
- package/features/assignment/ListReviewAssignments/abstractions.js +5 -0
- package/features/assignment/ListReviewAssignments/abstractions.js.map +1 -0
- package/features/assignment/ListReviewAssignments/feature.d.ts +4 -0
- package/features/assignment/ListReviewAssignments/feature.js +11 -0
- package/features/assignment/ListReviewAssignments/feature.js.map +1 -0
- package/features/assignment/ListReviewAssignments/index.d.ts +2 -0
- package/features/assignment/ListReviewAssignments/index.js +1 -0
- package/features/assignment/shared/AssignmentEntryMapper.d.ts +19 -0
- package/features/assignment/shared/AssignmentEntryMapper.js +38 -0
- package/features/assignment/shared/AssignmentEntryMapper.js.map +1 -0
- package/features/assignment/shared/AssignmentModelProvider.d.ts +13 -0
- package/features/assignment/shared/AssignmentModelProvider.js +22 -0
- package/features/assignment/shared/AssignmentModelProvider.js.map +1 -0
- package/features/assignment/shared/AssignmentRepository.d.ts +22 -0
- package/features/assignment/shared/AssignmentRepository.js +97 -0
- package/features/assignment/shared/AssignmentRepository.js.map +1 -0
- package/features/assignment/shared/feature.d.ts +4 -0
- package/features/assignment/shared/feature.js +13 -0
- package/features/assignment/shared/feature.js.map +1 -0
- package/features/automation/AutomationDefinition/abstractions.d.ts +66 -0
- package/features/automation/AutomationDefinition/abstractions.js +5 -0
- package/features/automation/AutomationDefinition/abstractions.js.map +1 -0
- package/features/automation/AutomationDefinition/index.d.ts +2 -0
- package/features/automation/AutomationDefinition/index.js +1 -0
- package/features/automation/AutomationDefinitionRegistryService/AutomationDefinitionRegistryService.d.ts +12 -0
- package/features/automation/AutomationDefinitionRegistryService/AutomationDefinitionRegistryService.js +30 -0
- package/features/automation/AutomationDefinitionRegistryService/AutomationDefinitionRegistryService.js.map +1 -0
- package/features/automation/AutomationDefinitionRegistryService/abstractions.d.ts +12 -0
- package/features/automation/AutomationDefinitionRegistryService/abstractions.js +5 -0
- package/features/automation/AutomationDefinitionRegistryService/abstractions.js.map +1 -0
- package/features/automation/AutomationDefinitionRegistryService/feature.d.ts +4 -0
- package/features/automation/AutomationDefinitionRegistryService/feature.js +11 -0
- package/features/automation/AutomationDefinitionRegistryService/feature.js.map +1 -0
- package/features/automation/AutomationDefinitionRegistryService/index.d.ts +1 -0
- package/features/automation/AutomationDefinitionRegistryService/index.js +1 -0
- package/features/bypass/WorkflowBypassService/WorkflowBypassService.d.ts +11 -0
- package/features/bypass/WorkflowBypassService/WorkflowBypassService.js +20 -0
- package/features/bypass/WorkflowBypassService/WorkflowBypassService.js.map +1 -0
- package/features/bypass/WorkflowBypassService/abstractions.d.ts +19 -0
- package/features/bypass/WorkflowBypassService/abstractions.js +5 -0
- package/features/bypass/WorkflowBypassService/abstractions.js.map +1 -0
- package/features/bypass/WorkflowBypassService/feature.d.ts +4 -0
- package/features/bypass/WorkflowBypassService/feature.js +11 -0
- package/features/bypass/WorkflowBypassService/feature.js.map +1 -0
- package/features/bypass/WorkflowBypassService/index.d.ts +1 -0
- package/features/bypass/WorkflowBypassService/index.js +1 -0
- package/features/config/GetWorkflowSettingsForEditor/GetWorkflowSettingsForEditorUseCase.d.ts +13 -0
- package/features/config/GetWorkflowSettingsForEditor/GetWorkflowSettingsForEditorUseCase.js +27 -0
- package/features/config/GetWorkflowSettingsForEditor/GetWorkflowSettingsForEditorUseCase.js.map +1 -0
- package/features/config/GetWorkflowSettingsForEditor/abstractions.d.ts +31 -0
- package/features/config/GetWorkflowSettingsForEditor/abstractions.js +5 -0
- package/features/config/GetWorkflowSettingsForEditor/abstractions.js.map +1 -0
- package/features/config/GetWorkflowSettingsForEditor/feature.d.ts +4 -0
- package/features/config/GetWorkflowSettingsForEditor/feature.js +11 -0
- package/features/config/GetWorkflowSettingsForEditor/feature.js.map +1 -0
- package/features/config/GetWorkflowSettingsForEditor/index.d.ts +2 -0
- package/features/config/GetWorkflowSettingsForEditor/index.js +1 -0
- package/features/config/ListAutomationDefinitions/ListAutomationDefinitionsUseCase.d.ts +13 -0
- package/features/config/ListAutomationDefinitions/ListAutomationDefinitionsUseCase.js +45 -0
- package/features/config/ListAutomationDefinitions/ListAutomationDefinitionsUseCase.js.map +1 -0
- package/features/config/ListAutomationDefinitions/abstractions.d.ts +27 -0
- package/features/config/ListAutomationDefinitions/abstractions.js +5 -0
- package/features/config/ListAutomationDefinitions/abstractions.js.map +1 -0
- package/features/config/ListAutomationDefinitions/feature.d.ts +4 -0
- package/features/config/ListAutomationDefinitions/feature.js +11 -0
- package/features/config/ListAutomationDefinitions/feature.js.map +1 -0
- package/features/config/ListAutomationDefinitions/index.d.ts +2 -0
- package/features/config/ListAutomationDefinitions/index.js +1 -0
- package/features/config/ListWorkflowAiTools/ListWorkflowAiToolsUseCase.d.ts +13 -0
- package/features/config/ListWorkflowAiTools/ListWorkflowAiToolsUseCase.js +41 -0
- package/features/config/ListWorkflowAiTools/ListWorkflowAiToolsUseCase.js.map +1 -0
- package/features/config/ListWorkflowAiTools/abstractions.d.ts +26 -0
- package/features/config/ListWorkflowAiTools/abstractions.js +5 -0
- package/features/config/ListWorkflowAiTools/abstractions.js.map +1 -0
- package/features/config/ListWorkflowAiTools/feature.d.ts +4 -0
- package/features/config/ListWorkflowAiTools/feature.js +11 -0
- package/features/config/ListWorkflowAiTools/feature.js.map +1 -0
- package/features/config/ListWorkflowAiTools/index.d.ts +2 -0
- package/features/config/ListWorkflowAiTools/index.js +1 -0
- package/features/config/ListWorkflowNotificationTransports/ListWorkflowNotificationTransportsUseCase.d.ts +13 -0
- package/features/config/ListWorkflowNotificationTransports/ListWorkflowNotificationTransportsUseCase.js +38 -0
- package/features/config/ListWorkflowNotificationTransports/ListWorkflowNotificationTransportsUseCase.js.map +1 -0
- package/features/config/ListWorkflowNotificationTransports/abstractions.d.ts +25 -0
- package/features/config/ListWorkflowNotificationTransports/abstractions.js +5 -0
- package/features/config/ListWorkflowNotificationTransports/abstractions.js.map +1 -0
- package/features/config/ListWorkflowNotificationTransports/feature.d.ts +4 -0
- package/features/config/ListWorkflowNotificationTransports/feature.js +11 -0
- package/features/config/ListWorkflowNotificationTransports/feature.js.map +1 -0
- package/features/config/ListWorkflowNotificationTransports/index.d.ts +2 -0
- package/features/config/ListWorkflowNotificationTransports/index.js +1 -0
- package/features/config/ListWorkflowStepTypes/ListWorkflowStepTypesUseCase.d.ts +15 -0
- package/features/config/ListWorkflowStepTypes/ListWorkflowStepTypesUseCase.js +77 -0
- package/features/config/ListWorkflowStepTypes/ListWorkflowStepTypesUseCase.js.map +1 -0
- package/features/config/ListWorkflowStepTypes/abstractions.d.ts +27 -0
- package/features/config/ListWorkflowStepTypes/abstractions.js +5 -0
- package/features/config/ListWorkflowStepTypes/abstractions.js.map +1 -0
- package/features/config/ListWorkflowStepTypes/feature.d.ts +4 -0
- package/features/config/ListWorkflowStepTypes/feature.js +11 -0
- package/features/config/ListWorkflowStepTypes/feature.js.map +1 -0
- package/features/config/ListWorkflowStepTypes/index.d.ts +2 -0
- package/features/config/ListWorkflowStepTypes/index.js +1 -0
- package/features/config/ListWorkflowTeams/ListWorkflowTeamsUseCase.d.ts +19 -0
- package/features/config/ListWorkflowTeams/ListWorkflowTeamsUseCase.js +120 -0
- package/features/config/ListWorkflowTeams/ListWorkflowTeamsUseCase.js.map +1 -0
- package/features/config/ListWorkflowTeams/abstractions.d.ts +36 -0
- package/features/config/ListWorkflowTeams/abstractions.js +5 -0
- package/features/config/ListWorkflowTeams/abstractions.js.map +1 -0
- package/features/config/ListWorkflowTeams/feature.d.ts +4 -0
- package/features/config/ListWorkflowTeams/feature.js +11 -0
- package/features/config/ListWorkflowTeams/feature.js.map +1 -0
- package/features/config/ListWorkflowTeams/index.d.ts +3 -0
- package/features/config/ListWorkflowTeams/index.js +1 -0
- package/features/config/ListWorkflowUsers/ListWorkflowUsersUseCase.d.ts +17 -0
- package/features/config/ListWorkflowUsers/ListWorkflowUsersUseCase.js +105 -0
- package/features/config/ListWorkflowUsers/ListWorkflowUsersUseCase.js.map +1 -0
- package/features/config/ListWorkflowUsers/abstractions.d.ts +44 -0
- package/features/config/ListWorkflowUsers/abstractions.js +5 -0
- package/features/config/ListWorkflowUsers/abstractions.js.map +1 -0
- package/features/config/ListWorkflowUsers/feature.d.ts +4 -0
- package/features/config/ListWorkflowUsers/feature.js +11 -0
- package/features/config/ListWorkflowUsers/feature.js.map +1 -0
- package/features/config/ListWorkflowUsers/index.d.ts +3 -0
- package/features/config/ListWorkflowUsers/index.js +1 -0
- package/features/config/SaveWorkflowSettingsForEditor/SaveWorkflowSettingsForEditorUseCase.d.ts +13 -0
- package/features/config/SaveWorkflowSettingsForEditor/SaveWorkflowSettingsForEditorUseCase.js +25 -0
- package/features/config/SaveWorkflowSettingsForEditor/SaveWorkflowSettingsForEditorUseCase.js.map +1 -0
- package/features/config/SaveWorkflowSettingsForEditor/abstractions.d.ts +27 -0
- package/features/config/SaveWorkflowSettingsForEditor/abstractions.js +5 -0
- package/features/config/SaveWorkflowSettingsForEditor/abstractions.js.map +1 -0
- package/features/config/SaveWorkflowSettingsForEditor/feature.d.ts +4 -0
- package/features/config/SaveWorkflowSettingsForEditor/feature.js +11 -0
- package/features/config/SaveWorkflowSettingsForEditor/feature.js.map +1 -0
- package/features/config/SaveWorkflowSettingsForEditor/index.d.ts +1 -0
- package/features/config/SaveWorkflowSettingsForEditor/index.js +1 -0
- package/features/identity/CandidateReadAccess/CandidateReadAccess.d.ts +28 -0
- package/features/identity/CandidateReadAccess/CandidateReadAccess.js +40 -0
- package/features/identity/CandidateReadAccess/CandidateReadAccess.js.map +1 -0
- package/features/identity/CandidateReadAccess/abstractions.d.ts +25 -0
- package/features/identity/CandidateReadAccess/abstractions.js +5 -0
- package/features/identity/CandidateReadAccess/abstractions.js.map +1 -0
- package/features/identity/CandidateReadAccess/feature.d.ts +4 -0
- package/features/identity/CandidateReadAccess/feature.js +11 -0
- package/features/identity/CandidateReadAccess/feature.js.map +1 -0
- package/features/identity/CandidateReadAccess/index.d.ts +1 -0
- package/features/identity/CandidateReadAccess/index.js +1 -0
- package/features/identity/CurrentReviewViewer/CurrentReviewViewer.d.ts +21 -0
- package/features/identity/CurrentReviewViewer/CurrentReviewViewer.js +48 -0
- package/features/identity/CurrentReviewViewer/CurrentReviewViewer.js.map +1 -0
- package/features/identity/CurrentReviewViewer/abstractions.d.ts +23 -0
- package/features/identity/CurrentReviewViewer/abstractions.js +5 -0
- package/features/identity/CurrentReviewViewer/abstractions.js.map +1 -0
- package/features/identity/CurrentReviewViewer/feature.d.ts +4 -0
- package/features/identity/CurrentReviewViewer/feature.js +11 -0
- package/features/identity/CurrentReviewViewer/feature.js.map +1 -0
- package/features/identity/CurrentReviewViewer/index.d.ts +1 -0
- package/features/identity/CurrentReviewViewer/index.js +1 -0
- package/features/identity/CurrentUserTeams/CurrentUserTeams.d.ts +22 -0
- package/features/identity/CurrentUserTeams/CurrentUserTeams.js +39 -0
- package/features/identity/CurrentUserTeams/CurrentUserTeams.js.map +1 -0
- package/features/identity/CurrentUserTeams/abstractions.d.ts +15 -0
- package/features/identity/CurrentUserTeams/abstractions.js +5 -0
- package/features/identity/CurrentUserTeams/abstractions.js.map +1 -0
- package/features/identity/CurrentUserTeams/feature.d.ts +4 -0
- package/features/identity/CurrentUserTeams/feature.js +11 -0
- package/features/identity/CurrentUserTeams/feature.js.map +1 -0
- package/features/identity/CurrentUserTeams/index.d.ts +1 -0
- package/features/identity/CurrentUserTeams/index.js +1 -0
- package/features/identity/ReviewTeamLoader/ReviewTeamLoader.d.ts +24 -0
- package/features/identity/ReviewTeamLoader/ReviewTeamLoader.js +63 -0
- package/features/identity/ReviewTeamLoader/ReviewTeamLoader.js.map +1 -0
- package/features/identity/ReviewTeamLoader/abstractions.d.ts +21 -0
- package/features/identity/ReviewTeamLoader/abstractions.js +5 -0
- package/features/identity/ReviewTeamLoader/abstractions.js.map +1 -0
- package/features/identity/ReviewTeamLoader/feature.d.ts +4 -0
- package/features/identity/ReviewTeamLoader/feature.js +11 -0
- package/features/identity/ReviewTeamLoader/feature.js.map +1 -0
- package/features/identity/ReviewTeamLoader/index.d.ts +1 -0
- package/features/identity/ReviewTeamLoader/index.js +1 -0
- package/features/model/WorkflowModelParser/abstractions.d.ts +21 -0
- package/features/model/WorkflowModelParser/abstractions.js +5 -0
- package/features/model/WorkflowModelParser/abstractions.js.map +1 -0
- package/features/model/WorkflowModelParser/index.d.ts +1 -0
- package/features/model/WorkflowModelParser/index.js +1 -0
- package/features/model/WorkflowModelParserService/WorkflowModelParserService.d.ts +11 -0
- package/features/model/WorkflowModelParserService/WorkflowModelParserService.js +28 -0
- package/features/model/WorkflowModelParserService/WorkflowModelParserService.js.map +1 -0
- package/features/model/WorkflowModelParserService/abstractions.d.ts +10 -0
- package/features/model/WorkflowModelParserService/abstractions.js +5 -0
- package/features/model/WorkflowModelParserService/abstractions.js.map +1 -0
- package/features/model/WorkflowModelParserService/index.d.ts +1 -0
- package/features/model/WorkflowModelParserService/index.js +1 -0
- package/features/model/feature.d.ts +5 -0
- package/features/model/feature.js +11 -0
- package/features/model/feature.js.map +1 -0
- package/features/notifications/ListNotificationTransports/ListNotificationTransportsRepository.d.ts +11 -0
- package/features/notifications/ListNotificationTransports/ListNotificationTransportsRepository.js +33 -0
- package/features/notifications/ListNotificationTransports/ListNotificationTransportsRepository.js.map +1 -0
- package/features/notifications/ListNotificationTransports/ListNotificationTransportsUseCase.d.ts +14 -0
- package/features/notifications/ListNotificationTransports/ListNotificationTransportsUseCase.js +18 -0
- package/features/notifications/ListNotificationTransports/ListNotificationTransportsUseCase.js.map +1 -0
- package/features/notifications/ListNotificationTransports/abstractions.d.ts +25 -0
- package/features/notifications/ListNotificationTransports/abstractions.js +6 -0
- package/features/notifications/ListNotificationTransports/abstractions.js.map +1 -0
- package/features/notifications/ListNotificationTransports/feature.d.ts +4 -0
- package/features/notifications/ListNotificationTransports/feature.js +13 -0
- package/features/notifications/ListNotificationTransports/feature.js.map +1 -0
- package/features/notifications/ListNotificationTransports/index.d.ts +1 -0
- package/features/notifications/ListNotificationTransports/index.js +1 -0
- package/features/notifications/NotificationRecipientService/NotificationRecipientService.d.ts +16 -0
- package/features/notifications/NotificationRecipientService/NotificationRecipientService.js +77 -0
- package/features/notifications/NotificationRecipientService/NotificationRecipientService.js.map +1 -0
- package/features/notifications/NotificationRecipientService/abstractions.d.ts +47 -0
- package/features/notifications/NotificationRecipientService/abstractions.js +5 -0
- package/features/notifications/NotificationRecipientService/abstractions.js.map +1 -0
- package/features/notifications/NotificationRecipientService/feature.d.ts +4 -0
- package/features/notifications/NotificationRecipientService/feature.js +11 -0
- package/features/notifications/NotificationRecipientService/feature.js.map +1 -0
- package/features/notifications/NotificationRecipientService/index.d.ts +1 -0
- package/features/notifications/NotificationRecipientService/index.js +1 -0
- package/features/notifications/NotificationTransport/MailNotificationTransport.d.ts +7 -4
- package/features/notifications/NotificationTransport/MailNotificationTransport.js +60 -39
- package/features/notifications/NotificationTransport/MailNotificationTransport.js.map +1 -1
- package/features/notifications/NotificationTransport/abstractions.d.ts +23 -4
- package/features/notifications/NotificationTransport/abstractions.js +2 -1
- package/features/notifications/NotificationTransport/abstractions.js.map +1 -1
- package/features/notifications/NotificationTransport/feature.d.ts +4 -1
- package/features/notifications/NotificationTransport/feature.js +6 -5
- package/features/notifications/NotificationTransport/feature.js.map +1 -1
- package/features/notifications/NotificationTransport/index.d.ts +0 -2
- package/features/notifications/NotificationTransport/index.js +0 -3
- package/features/notifications/ReviewChangeNotifierService/ReviewChangeNotifierService.d.ts +13 -0
- package/features/notifications/ReviewChangeNotifierService/ReviewChangeNotifierService.js +49 -0
- package/features/notifications/ReviewChangeNotifierService/ReviewChangeNotifierService.js.map +1 -0
- package/features/notifications/ReviewChangeNotifierService/abstractions.d.ts +25 -0
- package/features/notifications/ReviewChangeNotifierService/abstractions.js +5 -0
- package/features/notifications/ReviewChangeNotifierService/abstractions.js.map +1 -0
- package/features/notifications/ReviewChangeNotifierService/feature.d.ts +4 -0
- package/features/notifications/ReviewChangeNotifierService/feature.js +11 -0
- package/features/notifications/ReviewChangeNotifierService/feature.js.map +1 -0
- package/features/notifications/ReviewChangeNotifierService/index.d.ts +1 -0
- package/features/notifications/ReviewChangeNotifierService/index.js +1 -0
- package/features/notifications/ReviewNotifierService/ReviewNotifierService.d.ts +19 -0
- package/features/notifications/ReviewNotifierService/ReviewNotifierService.js +149 -0
- package/features/notifications/ReviewNotifierService/ReviewNotifierService.js.map +1 -0
- package/features/notifications/ReviewNotifierService/abstractions.d.ts +27 -0
- package/features/notifications/ReviewNotifierService/abstractions.js +5 -0
- package/features/notifications/ReviewNotifierService/abstractions.js.map +1 -0
- package/features/notifications/ReviewNotifierService/feature.d.ts +4 -0
- package/features/notifications/ReviewNotifierService/feature.js +11 -0
- package/features/notifications/ReviewNotifierService/feature.js.map +1 -0
- package/features/notifications/ReviewNotifierService/index.d.ts +1 -0
- package/features/notifications/ReviewNotifierService/index.js +1 -0
- package/features/notifications/ReviewTargetLink/abstractions.d.ts +26 -0
- package/features/notifications/ReviewTargetLink/abstractions.js +5 -0
- package/features/notifications/ReviewTargetLink/abstractions.js.map +1 -0
- package/features/notifications/ReviewTargetLink/index.d.ts +1 -0
- package/features/notifications/ReviewTargetLink/index.js +1 -0
- package/features/notifications/ReviewTargetLinkService/ReviewTargetLinkService.d.ts +17 -0
- package/features/notifications/ReviewTargetLinkService/ReviewTargetLinkService.js +54 -0
- package/features/notifications/ReviewTargetLinkService/ReviewTargetLinkService.js.map +1 -0
- package/features/notifications/ReviewTargetLinkService/abstractions.d.ts +17 -0
- package/features/notifications/ReviewTargetLinkService/abstractions.js +5 -0
- package/features/notifications/ReviewTargetLinkService/abstractions.js.map +1 -0
- package/features/notifications/ReviewTargetLinkService/feature.d.ts +4 -0
- package/features/notifications/ReviewTargetLinkService/feature.js +11 -0
- package/features/notifications/ReviewTargetLinkService/feature.js.map +1 -0
- package/features/notifications/ReviewTargetLinkService/index.d.ts +1 -0
- package/features/notifications/ReviewTargetLinkService/index.js +1 -0
- package/features/notifications/ReviewWebsocketSender/ReviewWebsocketSender.d.ts +16 -0
- package/features/notifications/ReviewWebsocketSender/ReviewWebsocketSender.js +91 -0
- package/features/notifications/ReviewWebsocketSender/ReviewWebsocketSender.js.map +1 -0
- package/features/notifications/ReviewWebsocketSender/abstractions.d.ts +27 -0
- package/features/notifications/ReviewWebsocketSender/abstractions.js +5 -0
- package/features/notifications/ReviewWebsocketSender/abstractions.js.map +1 -0
- package/features/notifications/ReviewWebsocketSender/feature.d.ts +4 -0
- package/features/notifications/ReviewWebsocketSender/feature.js +11 -0
- package/features/notifications/ReviewWebsocketSender/feature.js.map +1 -0
- package/features/notifications/ReviewWebsocketSender/index.d.ts +1 -0
- package/features/notifications/ReviewWebsocketSender/index.js +1 -0
- package/features/notifications/WorkflowsAdminUrlService/WorkflowsAdminUrlService.d.ts +8 -0
- package/features/notifications/WorkflowsAdminUrlService/WorkflowsAdminUrlService.js +22 -0
- package/features/notifications/WorkflowsAdminUrlService/WorkflowsAdminUrlService.js.map +1 -0
- package/features/notifications/WorkflowsAdminUrlService/abstractions.d.ts +16 -0
- package/features/notifications/WorkflowsAdminUrlService/abstractions.js +5 -0
- package/features/notifications/WorkflowsAdminUrlService/abstractions.js.map +1 -0
- package/features/notifications/WorkflowsAdminUrlService/feature.d.ts +4 -0
- package/features/notifications/WorkflowsAdminUrlService/feature.js +11 -0
- package/features/notifications/WorkflowsAdminUrlService/feature.js.map +1 -0
- package/features/notifications/WorkflowsAdminUrlService/index.d.ts +1 -0
- package/features/notifications/WorkflowsAdminUrlService/index.js +1 -0
- package/features/notifications/feature.d.ts +13 -0
- package/features/notifications/feature.js +43 -0
- package/features/notifications/feature.js.map +1 -0
- package/features/notifications/handlers/ReviewApprovedNotifications.d.ts +17 -0
- package/features/notifications/handlers/ReviewApprovedNotifications.js +54 -0
- package/features/notifications/handlers/ReviewApprovedNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewCancelledNotifications.d.ts +19 -0
- package/features/notifications/handlers/ReviewCancelledNotifications.js +60 -0
- package/features/notifications/handlers/ReviewCancelledNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewRequestedChangeNotifications.d.ts +18 -0
- package/features/notifications/handlers/ReviewRequestedChangeNotifications.js +39 -0
- package/features/notifications/handlers/ReviewRequestedChangeNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepApprovedChangeNotifications.d.ts +19 -0
- package/features/notifications/handlers/ReviewStepApprovedChangeNotifications.js +40 -0
- package/features/notifications/handlers/ReviewStepApprovedChangeNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepFailedNotifications.d.ts +18 -0
- package/features/notifications/handlers/ReviewStepFailedNotifications.js +53 -0
- package/features/notifications/handlers/ReviewStepFailedNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepReachedNotifications.d.ts +19 -0
- package/features/notifications/handlers/ReviewStepReachedNotifications.js +90 -0
- package/features/notifications/handlers/ReviewStepReachedNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepReassignedNotifications.d.ts +17 -0
- package/features/notifications/handlers/ReviewStepReassignedNotifications.js +80 -0
- package/features/notifications/handlers/ReviewStepReassignedNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepRejectedNotifications.d.ts +18 -0
- package/features/notifications/handlers/ReviewStepRejectedNotifications.js +58 -0
- package/features/notifications/handlers/ReviewStepRejectedNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepRestartedChangeNotifications.d.ts +18 -0
- package/features/notifications/handlers/ReviewStepRestartedChangeNotifications.js +39 -0
- package/features/notifications/handlers/ReviewStepRestartedChangeNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepStartedChangeNotifications.d.ts +18 -0
- package/features/notifications/handlers/ReviewStepStartedChangeNotifications.js +39 -0
- package/features/notifications/handlers/ReviewStepStartedChangeNotifications.js.map +1 -0
- package/features/notifications/handlers/ReviewStepTakenOverNotifications.d.ts +18 -0
- package/features/notifications/handlers/ReviewStepTakenOverNotifications.js +58 -0
- package/features/notifications/handlers/ReviewStepTakenOverNotifications.js.map +1 -0
- package/features/notifications/shared/constants.d.ts +11 -0
- package/features/notifications/shared/constants.js +7 -0
- package/features/notifications/shared/constants.js.map +1 -0
- package/features/notifications/shared/escapeHtml.d.ts +5 -0
- package/features/notifications/shared/escapeHtml.js +4 -0
- package/features/notifications/shared/escapeHtml.js.map +1 -0
- package/features/notifications/shared/getErrorLogFields.d.ts +10 -0
- package/features/notifications/shared/getErrorLogFields.js +10 -0
- package/features/notifications/shared/getErrorLogFields.js.map +1 -0
- package/features/permissions/WorkflowEditorAccess/WorkflowEditorAccess.d.ts +13 -0
- package/features/permissions/WorkflowEditorAccess/WorkflowEditorAccess.js +37 -0
- package/features/permissions/WorkflowEditorAccess/WorkflowEditorAccess.js.map +1 -0
- package/features/permissions/WorkflowEditorAccess/abstractions.d.ts +28 -0
- package/features/permissions/WorkflowEditorAccess/abstractions.js +5 -0
- package/features/permissions/WorkflowEditorAccess/abstractions.js.map +1 -0
- package/features/permissions/WorkflowEditorAccess/feature.d.ts +4 -0
- package/features/permissions/WorkflowEditorAccess/feature.js +11 -0
- package/features/permissions/WorkflowEditorAccess/feature.js.map +1 -0
- package/features/permissions/WorkflowEditorAccess/index.d.ts +1 -0
- package/features/permissions/WorkflowEditorAccess/index.js +1 -0
- package/features/permissions/WorkflowsPermissions/WorkflowsPermissions.d.ts +20 -0
- package/features/permissions/WorkflowsPermissions/WorkflowsPermissions.js +44 -0
- package/features/permissions/WorkflowsPermissions/WorkflowsPermissions.js.map +1 -0
- package/features/permissions/WorkflowsPermissions/abstractions.d.ts +20 -0
- package/features/permissions/WorkflowsPermissions/abstractions.js +5 -0
- package/features/permissions/WorkflowsPermissions/abstractions.js.map +1 -0
- package/features/permissions/WorkflowsPermissions/feature.d.ts +4 -0
- package/features/permissions/WorkflowsPermissions/feature.js +11 -0
- package/features/permissions/WorkflowsPermissions/feature.js.map +1 -0
- package/features/permissions/WorkflowsPermissions/index.d.ts +1 -0
- package/features/permissions/WorkflowsPermissions/index.js +1 -0
- package/features/review/ApproveReviewStep/ApproveReviewStepUseCase.d.ts +15 -0
- package/features/review/ApproveReviewStep/ApproveReviewStepUseCase.js +46 -0
- package/features/review/ApproveReviewStep/ApproveReviewStepUseCase.js.map +1 -0
- package/features/review/ApproveReviewStep/abstractions.d.ts +25 -0
- package/features/review/ApproveReviewStep/abstractions.js +5 -0
- package/features/review/ApproveReviewStep/abstractions.js.map +1 -0
- package/features/review/ApproveReviewStep/events.d.ts +29 -0
- package/features/review/ApproveReviewStep/events.js +23 -0
- package/features/review/ApproveReviewStep/events.js.map +1 -0
- package/features/review/ApproveReviewStep/feature.d.ts +4 -0
- package/features/review/ApproveReviewStep/feature.js +11 -0
- package/features/review/ApproveReviewStep/feature.js.map +1 -0
- package/features/review/ApproveReviewStep/index.d.ts +4 -0
- package/features/review/ApproveReviewStep/index.js +2 -0
- package/features/review/CancelReview/CancelReviewUseCase.d.ts +15 -0
- package/features/review/CancelReview/CancelReviewUseCase.js +45 -0
- package/features/review/CancelReview/CancelReviewUseCase.js.map +1 -0
- package/features/review/CancelReview/abstractions.d.ts +23 -0
- package/features/review/CancelReview/abstractions.js +5 -0
- package/features/review/CancelReview/abstractions.js.map +1 -0
- package/features/review/CancelReview/events.d.ts +16 -0
- package/features/review/CancelReview/events.js +14 -0
- package/features/review/CancelReview/events.js.map +1 -0
- package/features/review/CancelReview/feature.d.ts +4 -0
- package/features/review/CancelReview/feature.js +11 -0
- package/features/review/CancelReview/feature.js.map +1 -0
- package/features/review/CancelReview/index.d.ts +3 -0
- package/features/review/CancelReview/index.js +2 -0
- package/features/review/CancelTargetReviews/CancelTargetReviewsUseCase.d.ts +16 -0
- package/features/review/CancelTargetReviews/CancelTargetReviewsUseCase.js +31 -0
- package/features/review/CancelTargetReviews/CancelTargetReviewsUseCase.js.map +1 -0
- package/features/review/CancelTargetReviews/abstractions.d.ts +34 -0
- package/features/review/CancelTargetReviews/abstractions.js +5 -0
- package/features/review/CancelTargetReviews/abstractions.js.map +1 -0
- package/features/review/CancelTargetReviews/feature.d.ts +4 -0
- package/features/review/CancelTargetReviews/feature.js +11 -0
- package/features/review/CancelTargetReviews/feature.js.map +1 -0
- package/features/review/CancelTargetReviews/index.d.ts +1 -0
- package/features/review/CancelTargetReviews/index.js +1 -0
- package/features/review/DeleteTargetReviews/AssignmentPageSize.d.ts +9 -0
- package/features/review/DeleteTargetReviews/AssignmentPageSize.js +5 -0
- package/features/review/DeleteTargetReviews/AssignmentPageSize.js.map +1 -0
- package/features/review/DeleteTargetReviews/DefaultAssignmentPageSize.d.ts +8 -0
- package/features/review/DeleteTargetReviews/DefaultAssignmentPageSize.js +14 -0
- package/features/review/DeleteTargetReviews/DefaultAssignmentPageSize.js.map +1 -0
- package/features/review/DeleteTargetReviews/DeleteTargetReviewsUseCase.d.ts +21 -0
- package/features/review/DeleteTargetReviews/DeleteTargetReviewsUseCase.js +98 -0
- package/features/review/DeleteTargetReviews/DeleteTargetReviewsUseCase.js.map +1 -0
- package/features/review/DeleteTargetReviews/abstractions.d.ts +44 -0
- package/features/review/DeleteTargetReviews/abstractions.js +5 -0
- package/features/review/DeleteTargetReviews/abstractions.js.map +1 -0
- package/features/review/DeleteTargetReviews/feature.d.ts +4 -0
- package/features/review/DeleteTargetReviews/feature.js +13 -0
- package/features/review/DeleteTargetReviews/feature.js.map +1 -0
- package/features/review/DeleteTargetReviews/index.d.ts +1 -0
- package/features/review/DeleteTargetReviews/index.js +1 -0
- package/features/review/GetActiveTargetReview/GetActiveTargetReviewUseCase.d.ts +11 -0
- package/features/review/GetActiveTargetReview/GetActiveTargetReviewUseCase.js +22 -0
- package/features/review/GetActiveTargetReview/GetActiveTargetReviewUseCase.js.map +1 -0
- package/features/review/GetActiveTargetReview/abstractions.d.ts +29 -0
- package/features/review/GetActiveTargetReview/abstractions.js +5 -0
- package/features/review/GetActiveTargetReview/abstractions.js.map +1 -0
- package/features/review/GetActiveTargetReview/feature.d.ts +4 -0
- package/features/review/GetActiveTargetReview/feature.js +11 -0
- package/features/review/GetActiveTargetReview/feature.js.map +1 -0
- package/features/review/GetActiveTargetReview/index.d.ts +1 -0
- package/features/review/GetActiveTargetReview/index.js +1 -0
- package/features/review/GetReview/GetReviewUseCase.d.ts +13 -0
- package/features/review/GetReview/GetReviewUseCase.js +25 -0
- package/features/review/GetReview/GetReviewUseCase.js.map +1 -0
- package/features/review/GetReview/abstractions.d.ts +26 -0
- package/features/review/GetReview/abstractions.js +5 -0
- package/features/review/GetReview/abstractions.js.map +1 -0
- package/features/review/GetReview/feature.d.ts +4 -0
- package/features/review/GetReview/feature.js +11 -0
- package/features/review/GetReview/feature.js.map +1 -0
- package/features/review/GetReview/index.d.ts +1 -0
- package/features/review/GetReview/index.js +1 -0
- package/features/review/GetTargetReview/GetTargetReviewUseCase.d.ts +13 -0
- package/features/review/GetTargetReview/GetTargetReviewUseCase.js +29 -0
- package/features/review/GetTargetReview/GetTargetReviewUseCase.js.map +1 -0
- package/features/review/GetTargetReview/abstractions.d.ts +30 -0
- package/features/review/GetTargetReview/abstractions.js +5 -0
- package/features/review/GetTargetReview/abstractions.js.map +1 -0
- package/features/review/GetTargetReview/feature.d.ts +4 -0
- package/features/review/GetTargetReview/feature.js +11 -0
- package/features/review/GetTargetReview/feature.js.map +1 -0
- package/features/review/GetTargetReview/index.d.ts +1 -0
- package/features/review/GetTargetReview/index.js +1 -0
- package/features/review/ListReviewCandidateTeams/ListReviewCandidateTeamsUseCase.d.ts +13 -0
- package/features/review/ListReviewCandidateTeams/ListReviewCandidateTeamsUseCase.js +52 -0
- package/features/review/ListReviewCandidateTeams/ListReviewCandidateTeamsUseCase.js.map +1 -0
- package/features/review/ListReviewCandidateTeams/abstractions.d.ts +24 -0
- package/features/review/ListReviewCandidateTeams/abstractions.js +5 -0
- package/features/review/ListReviewCandidateTeams/abstractions.js.map +1 -0
- package/features/review/ListReviewCandidateTeams/feature.d.ts +4 -0
- package/features/review/ListReviewCandidateTeams/feature.js +11 -0
- package/features/review/ListReviewCandidateTeams/feature.js.map +1 -0
- package/features/review/ListReviewCandidateTeams/index.d.ts +2 -0
- package/features/review/ListReviewCandidateTeams/index.js +1 -0
- package/features/review/ListReviewedModels/ListReviewedModelsUseCase.d.ts +16 -0
- package/features/review/ListReviewedModels/ListReviewedModelsUseCase.js +29 -0
- package/features/review/ListReviewedModels/ListReviewedModelsUseCase.js.map +1 -0
- package/features/review/ListReviewedModels/abstractions.d.ts +21 -0
- package/features/review/ListReviewedModels/abstractions.js +5 -0
- package/features/review/ListReviewedModels/abstractions.js.map +1 -0
- package/features/review/ListReviewedModels/feature.d.ts +4 -0
- package/features/review/ListReviewedModels/feature.js +11 -0
- package/features/review/ListReviewedModels/feature.js.map +1 -0
- package/features/review/ListReviewedModels/index.d.ts +1 -0
- package/features/review/ListReviewedModels/index.js +1 -0
- package/features/review/ListReviews/DefaultReviewListLimits.d.ts +9 -0
- package/features/review/ListReviews/DefaultReviewListLimits.js +15 -0
- package/features/review/ListReviews/DefaultReviewListLimits.js.map +1 -0
- package/features/review/ListReviews/ListReviewsUseCase.d.ts +13 -0
- package/features/review/ListReviews/ListReviewsUseCase.js +127 -0
- package/features/review/ListReviews/ListReviewsUseCase.js.map +1 -0
- package/features/review/ListReviews/ReviewListLimits.d.ts +14 -0
- package/features/review/ListReviews/ReviewListLimits.js +5 -0
- package/features/review/ListReviews/ReviewListLimits.js.map +1 -0
- package/features/review/ListReviews/abstractions.d.ts +51 -0
- package/features/review/ListReviews/abstractions.js +5 -0
- package/features/review/ListReviews/abstractions.js.map +1 -0
- package/features/review/ListReviews/createReviewListWhere.d.ts +9 -0
- package/features/review/ListReviews/createReviewListWhere.js +55 -0
- package/features/review/ListReviews/createReviewListWhere.js.map +1 -0
- package/features/review/ListReviews/feature.d.ts +4 -0
- package/features/review/ListReviews/feature.js +13 -0
- package/features/review/ListReviews/feature.js.map +1 -0
- package/features/review/ListReviews/index.d.ts +1 -0
- package/features/review/ListReviews/index.js +1 -0
- package/features/review/ListReviews/reviewListCursor.d.ts +14 -0
- package/features/review/ListReviews/reviewListCursor.js +29 -0
- package/features/review/ListReviews/reviewListCursor.js.map +1 -0
- package/features/review/ListReviewsByTargets/ListReviewsByTargetsUseCase.d.ts +11 -0
- package/features/review/ListReviewsByTargets/ListReviewsByTargetsUseCase.js +23 -0
- package/features/review/ListReviewsByTargets/ListReviewsByTargetsUseCase.js.map +1 -0
- package/features/review/ListReviewsByTargets/abstractions.d.ts +32 -0
- package/features/review/ListReviewsByTargets/abstractions.js +5 -0
- package/features/review/ListReviewsByTargets/abstractions.js.map +1 -0
- package/features/review/ListReviewsByTargets/feature.d.ts +4 -0
- package/features/review/ListReviewsByTargets/feature.js +11 -0
- package/features/review/ListReviewsByTargets/feature.js.map +1 -0
- package/features/review/ListReviewsByTargets/index.d.ts +1 -0
- package/features/review/ListReviewsByTargets/index.js +1 -0
- package/features/review/ListTargetReviews/ListTargetReviewsUseCase.d.ts +11 -0
- package/features/review/ListTargetReviews/ListTargetReviewsUseCase.js +24 -0
- package/features/review/ListTargetReviews/ListTargetReviewsUseCase.js.map +1 -0
- package/features/review/ListTargetReviews/abstractions.d.ts +33 -0
- package/features/review/ListTargetReviews/abstractions.js +5 -0
- package/features/review/ListTargetReviews/abstractions.js.map +1 -0
- package/features/review/ListTargetReviews/feature.d.ts +4 -0
- package/features/review/ListTargetReviews/feature.js +11 -0
- package/features/review/ListTargetReviews/feature.js.map +1 -0
- package/features/review/ListTargetReviews/index.d.ts +1 -0
- package/features/review/ListTargetReviews/index.js +1 -0
- package/features/review/ReassignReviewStep/ReassignReviewStepUseCase.d.ts +15 -0
- package/features/review/ReassignReviewStep/ReassignReviewStepUseCase.js +80 -0
- package/features/review/ReassignReviewStep/ReassignReviewStepUseCase.js.map +1 -0
- package/features/review/ReassignReviewStep/abstractions.d.ts +43 -0
- package/features/review/ReassignReviewStep/abstractions.js +5 -0
- package/features/review/ReassignReviewStep/abstractions.js.map +1 -0
- package/features/review/ReassignReviewStep/events.d.ts +16 -0
- package/features/review/ReassignReviewStep/events.js +14 -0
- package/features/review/ReassignReviewStep/events.js.map +1 -0
- package/features/review/ReassignReviewStep/feature.d.ts +4 -0
- package/features/review/ReassignReviewStep/feature.js +11 -0
- package/features/review/ReassignReviewStep/feature.js.map +1 -0
- package/features/review/ReassignReviewStep/index.d.ts +2 -0
- package/features/review/ReassignReviewStep/index.js +2 -0
- package/features/review/RejectReviewStep/RejectReviewStepUseCase.d.ts +13 -0
- package/features/review/RejectReviewStep/RejectReviewStepUseCase.js +36 -0
- package/features/review/RejectReviewStep/RejectReviewStepUseCase.js.map +1 -0
- package/features/review/RejectReviewStep/abstractions.d.ts +27 -0
- package/features/review/RejectReviewStep/abstractions.js +5 -0
- package/features/review/RejectReviewStep/abstractions.js.map +1 -0
- package/features/review/RejectReviewStep/events.d.ts +17 -0
- package/features/review/RejectReviewStep/events.js +14 -0
- package/features/review/RejectReviewStep/events.js.map +1 -0
- package/features/review/RejectReviewStep/feature.d.ts +4 -0
- package/features/review/RejectReviewStep/feature.js +11 -0
- package/features/review/RejectReviewStep/feature.js.map +1 -0
- package/features/review/RejectReviewStep/index.d.ts +3 -0
- package/features/review/RejectReviewStep/index.js +2 -0
- package/features/review/RequestReview/RequestReviewUseCase.d.ts +19 -0
- package/features/review/RequestReview/RequestReviewUseCase.js +96 -0
- package/features/review/RequestReview/RequestReviewUseCase.js.map +1 -0
- package/features/review/RequestReview/abstractions.d.ts +43 -0
- package/features/review/RequestReview/abstractions.js +5 -0
- package/features/review/RequestReview/abstractions.js.map +1 -0
- package/features/review/RequestReview/events.d.ts +16 -0
- package/features/review/RequestReview/events.js +14 -0
- package/features/review/RequestReview/events.js.map +1 -0
- package/features/review/RequestReview/feature.d.ts +4 -0
- package/features/review/RequestReview/feature.js +11 -0
- package/features/review/RequestReview/feature.js.map +1 -0
- package/features/review/RequestReview/index.d.ts +2 -0
- package/features/review/RequestReview/index.js +2 -0
- package/features/review/RestartReviewStep/RestartReviewStepUseCase.d.ts +15 -0
- package/features/review/RestartReviewStep/RestartReviewStepUseCase.js +43 -0
- package/features/review/RestartReviewStep/RestartReviewStepUseCase.js.map +1 -0
- package/features/review/RestartReviewStep/abstractions.d.ts +36 -0
- package/features/review/RestartReviewStep/abstractions.js +5 -0
- package/features/review/RestartReviewStep/abstractions.js.map +1 -0
- package/features/review/RestartReviewStep/events.d.ts +17 -0
- package/features/review/RestartReviewStep/events.js +14 -0
- package/features/review/RestartReviewStep/events.js.map +1 -0
- package/features/review/RestartReviewStep/feature.d.ts +4 -0
- package/features/review/RestartReviewStep/feature.js +11 -0
- package/features/review/RestartReviewStep/feature.js.map +1 -0
- package/features/review/RestartReviewStep/index.d.ts +2 -0
- package/features/review/RestartReviewStep/index.js +2 -0
- package/features/review/ReviewLifecycleFeature.d.ts +13 -0
- package/features/review/ReviewLifecycleFeature.js +21 -0
- package/features/review/ReviewLifecycleFeature.js.map +1 -0
- package/features/review/ReviewSaver/ReviewSaver.d.ts +23 -0
- package/features/review/ReviewSaver/ReviewSaver.js +170 -0
- package/features/review/ReviewSaver/ReviewSaver.js.map +1 -0
- package/features/review/ReviewSaver/abstractions.d.ts +21 -0
- package/features/review/ReviewSaver/abstractions.js +5 -0
- package/features/review/ReviewSaver/abstractions.js.map +1 -0
- package/features/review/ReviewStepReacher/ReviewStepReacher.d.ts +12 -0
- package/features/review/ReviewStepReacher/ReviewStepReacher.js +45 -0
- package/features/review/ReviewStepReacher/ReviewStepReacher.js.map +1 -0
- package/features/review/ReviewStepReacher/abstractions.d.ts +28 -0
- package/features/review/ReviewStepReacher/abstractions.js +5 -0
- package/features/review/ReviewStepReacher/abstractions.js.map +1 -0
- package/features/review/ReviewStepReacher/events.d.ts +16 -0
- package/features/review/ReviewStepReacher/events.js +14 -0
- package/features/review/ReviewStepReacher/events.js.map +1 -0
- package/features/review/ReviewTargetEditor/abstractions.d.ts +61 -0
- package/features/review/ReviewTargetEditor/abstractions.js +5 -0
- package/features/review/ReviewTargetEditor/abstractions.js.map +1 -0
- package/features/review/ReviewTargetEditor/index.d.ts +2 -0
- package/features/review/ReviewTargetEditor/index.js +1 -0
- package/features/review/ReviewTargetEditorService/ReviewTargetEditorService.d.ts +14 -0
- package/features/review/ReviewTargetEditorService/ReviewTargetEditorService.js +37 -0
- package/features/review/ReviewTargetEditorService/ReviewTargetEditorService.js.map +1 -0
- package/features/review/ReviewTargetEditorService/abstractions.d.ts +17 -0
- package/features/review/ReviewTargetEditorService/abstractions.js +5 -0
- package/features/review/ReviewTargetEditorService/abstractions.js.map +1 -0
- package/features/review/ReviewTargetEditorService/index.d.ts +1 -0
- package/features/review/ReviewTargetEditorService/index.js +1 -0
- package/features/review/ReviewTargetFolderChain/abstractions.d.ts +26 -0
- package/features/review/ReviewTargetFolderChain/abstractions.js +5 -0
- package/features/review/ReviewTargetFolderChain/abstractions.js.map +1 -0
- package/features/review/ReviewTargetFolderChain/index.d.ts +1 -0
- package/features/review/ReviewTargetFolderChain/index.js +1 -0
- package/features/review/ReviewTargetFolderChangeGuard/ReviewTargetFolderChangeGuard.d.ts +13 -0
- package/features/review/ReviewTargetFolderChangeGuard/ReviewTargetFolderChangeGuard.js +43 -0
- package/features/review/ReviewTargetFolderChangeGuard/ReviewTargetFolderChangeGuard.js.map +1 -0
- package/features/review/ReviewTargetFolderChangeGuard/abstractions.d.ts +35 -0
- package/features/review/ReviewTargetFolderChangeGuard/abstractions.js +5 -0
- package/features/review/ReviewTargetFolderChangeGuard/abstractions.js.map +1 -0
- package/features/review/ReviewTargetFolderChangeGuard/index.d.ts +1 -0
- package/features/review/ReviewTargetFolderChangeGuard/index.js +1 -0
- package/features/review/ReviewTargetLoader/abstractions.d.ts +26 -0
- package/features/review/ReviewTargetLoader/abstractions.js +5 -0
- package/features/review/ReviewTargetLoader/abstractions.js.map +1 -0
- package/features/review/ReviewTargetLoader/index.d.ts +2 -0
- package/features/review/ReviewTargetLoader/index.js +1 -0
- package/features/review/ReviewTargetReadAccess/abstractions.d.ts +56 -0
- package/features/review/ReviewTargetReadAccess/abstractions.js +5 -0
- package/features/review/ReviewTargetReadAccess/abstractions.js.map +1 -0
- package/features/review/ReviewTargetReadAccess/index.d.ts +1 -0
- package/features/review/ReviewTargetReadAccess/index.js +1 -0
- package/features/review/ReviewTargetSync/abstractions.d.ts +26 -0
- package/features/review/ReviewTargetSync/abstractions.js +5 -0
- package/features/review/ReviewTargetSync/abstractions.js.map +1 -0
- package/features/review/ReviewTargetSync/index.d.ts +1 -0
- package/features/review/ReviewTargetSync/index.js +1 -0
- package/features/review/ReviewTargetUpdateGuard/ReviewTargetUpdateGuard.d.ts +15 -0
- package/features/review/ReviewTargetUpdateGuard/ReviewTargetUpdateGuard.js +45 -0
- package/features/review/ReviewTargetUpdateGuard/ReviewTargetUpdateGuard.js.map +1 -0
- package/features/review/ReviewTargetUpdateGuard/abstractions.d.ts +34 -0
- package/features/review/ReviewTargetUpdateGuard/abstractions.js +5 -0
- package/features/review/ReviewTargetUpdateGuard/abstractions.js.map +1 -0
- package/features/review/ReviewTargetUpdateGuard/index.d.ts +1 -0
- package/features/review/ReviewTargetUpdateGuard/index.js +1 -0
- package/features/review/StartReviewStep/StartReviewStepUseCase.d.ts +13 -0
- package/features/review/StartReviewStep/StartReviewStepUseCase.js +34 -0
- package/features/review/StartReviewStep/StartReviewStepUseCase.js.map +1 -0
- package/features/review/StartReviewStep/abstractions.d.ts +27 -0
- package/features/review/StartReviewStep/abstractions.js +5 -0
- package/features/review/StartReviewStep/abstractions.js.map +1 -0
- package/features/review/StartReviewStep/events.d.ts +16 -0
- package/features/review/StartReviewStep/events.js +14 -0
- package/features/review/StartReviewStep/events.js.map +1 -0
- package/features/review/StartReviewStep/feature.d.ts +4 -0
- package/features/review/StartReviewStep/feature.js +11 -0
- package/features/review/StartReviewStep/feature.js.map +1 -0
- package/features/review/StartReviewStep/index.d.ts +3 -0
- package/features/review/StartReviewStep/index.js +2 -0
- package/features/review/StepAssignmentResolver/RoutingStepAssignmentResolver.d.ts +20 -0
- package/features/review/StepAssignmentResolver/RoutingStepAssignmentResolver.js +86 -0
- package/features/review/StepAssignmentResolver/RoutingStepAssignmentResolver.js.map +1 -0
- package/features/review/StepAssignmentResolver/abstractions.d.ts +30 -0
- package/features/review/StepAssignmentResolver/abstractions.js +5 -0
- package/features/review/StepAssignmentResolver/abstractions.js.map +1 -0
- package/features/review/StepAssignmentResolver/index.d.ts +1 -0
- package/features/review/StepAssignmentResolver/index.js +1 -0
- package/features/review/TakeOverReviewStep/TakeOverReviewStepUseCase.d.ts +13 -0
- package/features/review/TakeOverReviewStep/TakeOverReviewStepUseCase.js +35 -0
- package/features/review/TakeOverReviewStep/TakeOverReviewStepUseCase.js.map +1 -0
- package/features/review/TakeOverReviewStep/abstractions.d.ts +33 -0
- package/features/review/TakeOverReviewStep/abstractions.js +5 -0
- package/features/review/TakeOverReviewStep/abstractions.js.map +1 -0
- package/features/review/TakeOverReviewStep/events.d.ts +16 -0
- package/features/review/TakeOverReviewStep/events.js +14 -0
- package/features/review/TakeOverReviewStep/events.js.map +1 -0
- package/features/review/TakeOverReviewStep/feature.d.ts +4 -0
- package/features/review/TakeOverReviewStep/feature.js +11 -0
- package/features/review/TakeOverReviewStep/feature.js.map +1 -0
- package/features/review/TakeOverReviewStep/index.d.ts +3 -0
- package/features/review/TakeOverReviewStep/index.js +2 -0
- package/features/review/shared/ReviewEntryMapper.d.ts +83 -0
- package/features/review/shared/ReviewEntryMapper.js +191 -0
- package/features/review/shared/ReviewEntryMapper.js.map +1 -0
- package/features/review/shared/ReviewModelProvider.d.ts +13 -0
- package/features/review/shared/ReviewModelProvider.js +22 -0
- package/features/review/shared/ReviewModelProvider.js.map +1 -0
- package/features/review/shared/ReviewRepository.d.ts +52 -0
- package/features/review/shared/ReviewRepository.js +344 -0
- package/features/review/shared/ReviewRepository.js.map +1 -0
- package/features/review/shared/events.d.ts +38 -0
- package/features/review/shared/events.js +14 -0
- package/features/review/shared/events.js.map +1 -0
- package/features/review/shared/feature.d.ts +4 -0
- package/features/review/shared/feature.js +13 -0
- package/features/review/shared/feature.js.map +1 -0
- package/features/review/shared/types.d.ts +36 -0
- package/features/review/shared/types.js +0 -0
- package/features/routing/InspectRouting/InspectRoutingUseCase.d.ts +11 -0
- package/features/routing/InspectRouting/InspectRoutingUseCase.js +92 -0
- package/features/routing/InspectRouting/InspectRoutingUseCase.js.map +1 -0
- package/features/routing/InspectRouting/abstractions.d.ts +36 -0
- package/features/routing/InspectRouting/abstractions.js +5 -0
- package/features/routing/InspectRouting/abstractions.js.map +1 -0
- package/features/routing/InspectRouting/feature.d.ts +4 -0
- package/features/routing/InspectRouting/feature.js +11 -0
- package/features/routing/InspectRouting/feature.js.map +1 -0
- package/features/routing/InspectRouting/index.d.ts +3 -0
- package/features/routing/InspectRouting/index.js +1 -0
- package/features/routing/ListStepCandidates/ListStepCandidatesUseCase.d.ts +15 -0
- package/features/routing/ListStepCandidates/ListStepCandidatesUseCase.js +99 -0
- package/features/routing/ListStepCandidates/ListStepCandidatesUseCase.js.map +1 -0
- package/features/routing/ListStepCandidates/abstractions.d.ts +50 -0
- package/features/routing/ListStepCandidates/abstractions.js +5 -0
- package/features/routing/ListStepCandidates/abstractions.js.map +1 -0
- package/features/routing/ListStepCandidates/feature.d.ts +4 -0
- package/features/routing/ListStepCandidates/feature.js +11 -0
- package/features/routing/ListStepCandidates/feature.js.map +1 -0
- package/features/routing/ListStepCandidates/index.d.ts +3 -0
- package/features/routing/ListStepCandidates/index.js +1 -0
- package/features/routing/RoutingEvaluatorService/RoutingEvaluatorService.d.ts +33 -0
- package/features/routing/RoutingEvaluatorService/RoutingEvaluatorService.js +546 -0
- package/features/routing/RoutingEvaluatorService/RoutingEvaluatorService.js.map +1 -0
- package/features/routing/RoutingEvaluatorService/abstractions.d.ts +41 -0
- package/features/routing/RoutingEvaluatorService/abstractions.js +5 -0
- package/features/routing/RoutingEvaluatorService/abstractions.js.map +1 -0
- package/features/routing/RoutingEvaluatorService/feature.d.ts +4 -0
- package/features/routing/RoutingEvaluatorService/feature.js +11 -0
- package/features/routing/RoutingEvaluatorService/feature.js.map +1 -0
- package/features/routing/RoutingEvaluatorService/index.d.ts +1 -0
- package/features/routing/RoutingEvaluatorService/index.js +1 -0
- package/features/routing/RoutingStrategyService/RoutingStrategyService.d.ts +17 -0
- package/features/routing/RoutingStrategyService/RoutingStrategyService.js +101 -0
- package/features/routing/RoutingStrategyService/RoutingStrategyService.js.map +1 -0
- package/features/routing/RoutingStrategyService/abstractions.d.ts +34 -0
- package/features/routing/RoutingStrategyService/abstractions.js +5 -0
- package/features/routing/RoutingStrategyService/abstractions.js.map +1 -0
- package/features/routing/RoutingStrategyService/feature.d.ts +4 -0
- package/features/routing/RoutingStrategyService/feature.js +11 -0
- package/features/routing/RoutingStrategyService/feature.js.map +1 -0
- package/features/routing/RoutingStrategyService/index.d.ts +1 -0
- package/features/routing/RoutingStrategyService/index.js +1 -0
- package/features/settings/GetWorkflowSettings/GetWorkflowSettingsUseCase.d.ts +11 -0
- package/features/settings/GetWorkflowSettings/GetWorkflowSettingsUseCase.js +26 -0
- package/features/settings/GetWorkflowSettings/GetWorkflowSettingsUseCase.js.map +1 -0
- package/features/settings/GetWorkflowSettings/abstractions.d.ts +26 -0
- package/features/settings/GetWorkflowSettings/abstractions.js +5 -0
- package/features/settings/GetWorkflowSettings/abstractions.js.map +1 -0
- package/features/settings/GetWorkflowSettings/feature.d.ts +4 -0
- package/features/settings/GetWorkflowSettings/feature.js +11 -0
- package/features/settings/GetWorkflowSettings/feature.js.map +1 -0
- package/features/settings/GetWorkflowSettings/index.d.ts +3 -0
- package/features/settings/GetWorkflowSettings/index.js +1 -0
- package/features/settings/SaveWorkflowSettings/SaveWorkflowSettingsUseCase.d.ts +11 -0
- package/features/settings/SaveWorkflowSettings/SaveWorkflowSettingsUseCase.js +23 -0
- package/features/settings/SaveWorkflowSettings/SaveWorkflowSettingsUseCase.js.map +1 -0
- package/features/settings/SaveWorkflowSettings/abstractions.d.ts +23 -0
- package/features/settings/SaveWorkflowSettings/abstractions.js +5 -0
- package/features/settings/SaveWorkflowSettings/abstractions.js.map +1 -0
- package/features/settings/SaveWorkflowSettings/feature.d.ts +4 -0
- package/features/settings/SaveWorkflowSettings/feature.js +11 -0
- package/features/settings/SaveWorkflowSettings/feature.js.map +1 -0
- package/features/settings/SaveWorkflowSettings/index.d.ts +2 -0
- package/features/settings/SaveWorkflowSettings/index.js +1 -0
- package/features/settings/shared/WorkflowSettingsEntryMapper.d.ts +15 -0
- package/features/settings/shared/WorkflowSettingsEntryMapper.js +32 -0
- package/features/settings/shared/WorkflowSettingsEntryMapper.js.map +1 -0
- package/features/settings/shared/WorkflowSettingsModelProvider.d.ts +13 -0
- package/features/settings/shared/WorkflowSettingsModelProvider.js +22 -0
- package/features/settings/shared/WorkflowSettingsModelProvider.js.map +1 -0
- package/features/settings/shared/WorkflowSettingsRepository.d.ts +21 -0
- package/features/settings/shared/WorkflowSettingsRepository.js +65 -0
- package/features/settings/shared/WorkflowSettingsRepository.js.map +1 -0
- package/features/settings/shared/feature.d.ts +4 -0
- package/features/settings/shared/feature.js +13 -0
- package/features/settings/shared/feature.js.map +1 -0
- package/features/shared/ActorEntryMapper.d.ts +13 -0
- package/features/shared/ActorEntryMapper.js +24 -0
- package/features/shared/ActorEntryMapper.js.map +1 -0
- package/features/shared/toIsoString.d.ts +2 -0
- package/features/shared/toIsoString.js +8 -0
- package/features/shared/toIsoString.js.map +1 -0
- package/features/stepRun/AutomationStepRunner/AutomationStepRunner.d.ts +27 -0
- package/features/stepRun/AutomationStepRunner/AutomationStepRunner.js +96 -0
- package/features/stepRun/AutomationStepRunner/AutomationStepRunner.js.map +1 -0
- package/features/stepRun/AutomationStepRunner/feature.d.ts +4 -0
- package/features/stepRun/AutomationStepRunner/feature.js +11 -0
- package/features/stepRun/AutomationStepRunner/feature.js.map +1 -0
- package/features/stepRun/GetReviewStepRun/GetReviewStepRunUseCase.d.ts +13 -0
- package/features/stepRun/GetReviewStepRun/GetReviewStepRunUseCase.js +46 -0
- package/features/stepRun/GetReviewStepRun/GetReviewStepRunUseCase.js.map +1 -0
- package/features/stepRun/GetReviewStepRun/abstractions.d.ts +32 -0
- package/features/stepRun/GetReviewStepRun/abstractions.js +5 -0
- package/features/stepRun/GetReviewStepRun/abstractions.js.map +1 -0
- package/features/stepRun/GetReviewStepRun/feature.d.ts +4 -0
- package/features/stepRun/GetReviewStepRun/feature.js +11 -0
- package/features/stepRun/GetReviewStepRun/feature.js.map +1 -0
- package/features/stepRun/GetReviewStepRun/index.d.ts +1 -0
- package/features/stepRun/GetReviewStepRun/index.js +1 -0
- package/features/stepRun/GetReviewStepRun/toReviewStepRunInfo.d.ts +15 -0
- package/features/stepRun/GetReviewStepRun/toReviewStepRunInfo.js +52 -0
- package/features/stepRun/GetReviewStepRun/toReviewStepRunInfo.js.map +1 -0
- package/features/stepRun/ReviewTaskAbortService/ReviewTaskAbortService.d.ts +13 -0
- package/features/stepRun/ReviewTaskAbortService/ReviewTaskAbortService.js +41 -0
- package/features/stepRun/ReviewTaskAbortService/ReviewTaskAbortService.js.map +1 -0
- package/features/stepRun/ReviewTaskAbortService/abstractions.d.ts +20 -0
- package/features/stepRun/ReviewTaskAbortService/abstractions.js +5 -0
- package/features/stepRun/ReviewTaskAbortService/abstractions.js.map +1 -0
- package/features/stepRun/ReviewTaskAbortService/feature.d.ts +4 -0
- package/features/stepRun/ReviewTaskAbortService/feature.js +11 -0
- package/features/stepRun/ReviewTaskAbortService/feature.js.map +1 -0
- package/features/stepRun/ReviewTaskAbortService/index.d.ts +1 -0
- package/features/stepRun/ReviewTaskAbortService/index.js +1 -0
- package/features/stepRun/StepRunFailure.d.ts +8 -0
- package/features/stepRun/StepRunFailure.js +9 -0
- package/features/stepRun/StepRunFailure.js.map +1 -0
- package/features/stepRun/StepRunReachService/StepRunReachService.d.ts +18 -0
- package/features/stepRun/StepRunReachService/StepRunReachService.js +87 -0
- package/features/stepRun/StepRunReachService/StepRunReachService.js.map +1 -0
- package/features/stepRun/StepRunReachService/abstractions.d.ts +38 -0
- package/features/stepRun/StepRunReachService/abstractions.js +5 -0
- package/features/stepRun/StepRunReachService/abstractions.js.map +1 -0
- package/features/stepRun/StepRunReachService/feature.d.ts +4 -0
- package/features/stepRun/StepRunReachService/feature.js +11 -0
- package/features/stepRun/StepRunReachService/feature.js.map +1 -0
- package/features/stepRun/StepRunReachService/index.d.ts +1 -0
- package/features/stepRun/StepRunReachService/index.js +1 -0
- package/features/stepRun/StepRunStaleCheckService/StepRunStaleCheckService.d.ts +15 -0
- package/features/stepRun/StepRunStaleCheckService/StepRunStaleCheckService.js +47 -0
- package/features/stepRun/StepRunStaleCheckService/StepRunStaleCheckService.js.map +1 -0
- package/features/stepRun/StepRunStaleCheckService/abstractions.d.ts +29 -0
- package/features/stepRun/StepRunStaleCheckService/abstractions.js +5 -0
- package/features/stepRun/StepRunStaleCheckService/abstractions.js.map +1 -0
- package/features/stepRun/StepRunStaleCheckService/feature.d.ts +4 -0
- package/features/stepRun/StepRunStaleCheckService/feature.js +11 -0
- package/features/stepRun/StepRunStaleCheckService/feature.js.map +1 -0
- package/features/stepRun/StepRunStaleCheckService/index.d.ts +1 -0
- package/features/stepRun/StepRunStaleCheckService/index.js +1 -0
- package/features/stepRun/StepRunner/abstractions.d.ts +72 -0
- package/features/stepRun/StepRunner/abstractions.js +5 -0
- package/features/stepRun/StepRunner/abstractions.js.map +1 -0
- package/features/stepRun/StepRunner/index.d.ts +1 -0
- package/features/stepRun/StepRunner/index.js +1 -0
- package/features/stepRun/StepRunnerRegistryService/StepRunnerRegistryService.d.ts +11 -0
- package/features/stepRun/StepRunnerRegistryService/StepRunnerRegistryService.js +25 -0
- package/features/stepRun/StepRunnerRegistryService/StepRunnerRegistryService.js.map +1 -0
- package/features/stepRun/StepRunnerRegistryService/abstractions.d.ts +13 -0
- package/features/stepRun/StepRunnerRegistryService/abstractions.js +5 -0
- package/features/stepRun/StepRunnerRegistryService/abstractions.js.map +1 -0
- package/features/stepRun/StepRunnerRegistryService/feature.d.ts +4 -0
- package/features/stepRun/StepRunnerRegistryService/feature.js +11 -0
- package/features/stepRun/StepRunnerRegistryService/feature.js.map +1 -0
- package/features/stepRun/StepRunnerRegistryService/index.d.ts +1 -0
- package/features/stepRun/StepRunnerRegistryService/index.js +1 -0
- package/features/stepRun/StuckStepService/StuckStepService.d.ts +20 -0
- package/features/stepRun/StuckStepService/StuckStepService.js +142 -0
- package/features/stepRun/StuckStepService/StuckStepService.js.map +1 -0
- package/features/stepRun/StuckStepService/abstractions.d.ts +21 -0
- package/features/stepRun/StuckStepService/abstractions.js +5 -0
- package/features/stepRun/StuckStepService/abstractions.js.map +1 -0
- package/features/stepRun/StuckStepService/feature.d.ts +4 -0
- package/features/stepRun/StuckStepService/feature.js +11 -0
- package/features/stepRun/StuckStepService/feature.js.map +1 -0
- package/features/stepRun/StuckStepService/index.d.ts +1 -0
- package/features/stepRun/StuckStepService/index.js +1 -0
- package/features/stepRun/WorkflowStepRunTask/WorkflowStepRunTaskDefinition.d.ts +27 -0
- package/features/stepRun/WorkflowStepRunTask/WorkflowStepRunTaskDefinition.js +20 -0
- package/features/stepRun/WorkflowStepRunTask/WorkflowStepRunTaskDefinition.js.map +1 -0
- package/features/stepRun/WorkflowStepRunTask/WorkflowStepRunTaskHandler.d.ts +43 -0
- package/features/stepRun/WorkflowStepRunTask/WorkflowStepRunTaskHandler.js +452 -0
- package/features/stepRun/WorkflowStepRunTask/WorkflowStepRunTaskHandler.js.map +1 -0
- package/features/stepRun/WorkflowStepRunTask/feature.d.ts +4 -0
- package/features/stepRun/WorkflowStepRunTask/feature.js +11 -0
- package/features/stepRun/WorkflowStepRunTask/feature.js.map +1 -0
- package/features/stepRun/WorkflowStepRunTask/index.d.ts +2 -0
- package/features/stepRun/WorkflowStepRunTask/index.js +2 -0
- package/features/stepRun/WorkflowStepRunTask/toStepRunTaskError.d.ts +10 -0
- package/features/stepRun/WorkflowStepRunTask/toStepRunTaskError.js +7 -0
- package/features/stepRun/WorkflowStepRunTask/toStepRunTaskError.js.map +1 -0
- package/features/stepRun/constants.d.ts +47 -0
- package/features/stepRun/constants.js +16 -0
- package/features/stepRun/constants.js.map +1 -0
- package/features/stepRun/types.d.ts +8 -0
- package/features/stepRun/types.js +0 -0
- package/features/stepTypes/AutomationStepType/AutomationStepType.d.ts +40 -0
- package/features/stepTypes/AutomationStepType/AutomationStepType.js +89 -0
- package/features/stepTypes/AutomationStepType/AutomationStepType.js.map +1 -0
- package/features/stepTypes/ReviewStepType/ReviewStepType.d.ts +86 -0
- package/features/stepTypes/ReviewStepType/ReviewStepType.js +78 -0
- package/features/stepTypes/ReviewStepType/ReviewStepType.js.map +1 -0
- package/features/stepTypes/StepType/abstractions.d.ts +67 -0
- package/features/stepTypes/StepType/abstractions.js +5 -0
- package/features/stepTypes/StepType/abstractions.js.map +1 -0
- package/features/stepTypes/StepType/index.d.ts +1 -0
- package/features/stepTypes/StepType/index.js +1 -0
- package/features/stepTypes/StepTypeRegistryService/StepTypeRegistryService.d.ts +12 -0
- package/features/stepTypes/StepTypeRegistryService/StepTypeRegistryService.js +30 -0
- package/features/stepTypes/StepTypeRegistryService/StepTypeRegistryService.js.map +1 -0
- package/features/stepTypes/StepTypeRegistryService/abstractions.d.ts +12 -0
- package/features/stepTypes/StepTypeRegistryService/abstractions.js +5 -0
- package/features/stepTypes/StepTypeRegistryService/abstractions.js.map +1 -0
- package/features/stepTypes/StepTypeRegistryService/index.d.ts +1 -0
- package/features/stepTypes/StepTypeRegistryService/index.js +1 -0
- package/features/stepTypes/feature.d.ts +5 -0
- package/features/stepTypes/feature.js +15 -0
- package/features/stepTypes/feature.js.map +1 -0
- package/features/workflow/DeleteWorkflow/DeleteWorkflowUseCase.d.ts +8 -10
- package/features/workflow/DeleteWorkflow/DeleteWorkflowUseCase.js +39 -49
- package/features/workflow/DeleteWorkflow/DeleteWorkflowUseCase.js.map +1 -1
- package/features/workflow/DeleteWorkflow/abstractions.d.ts +17 -37
- package/features/workflow/DeleteWorkflow/abstractions.js +2 -16
- package/features/workflow/DeleteWorkflow/abstractions.js.map +1 -1
- package/features/workflow/DeleteWorkflow/events.d.ts +29 -9
- package/features/workflow/DeleteWorkflow/events.js +18 -15
- package/features/workflow/DeleteWorkflow/events.js.map +1 -1
- package/features/workflow/DeleteWorkflow/feature.d.ts +4 -1
- package/features/workflow/DeleteWorkflow/feature.js +6 -7
- package/features/workflow/DeleteWorkflow/feature.js.map +1 -1
- package/features/workflow/DeleteWorkflow/index.d.ts +4 -4
- package/features/workflow/DeleteWorkflow/index.js +2 -5
- package/features/workflow/GetBoundWorkflow/GetBoundWorkflowUseCase.d.ts +11 -0
- package/features/workflow/GetBoundWorkflow/GetBoundWorkflowUseCase.js +29 -0
- package/features/workflow/GetBoundWorkflow/GetBoundWorkflowUseCase.js.map +1 -0
- package/features/workflow/GetBoundWorkflow/abstractions.d.ts +30 -0
- package/features/workflow/GetBoundWorkflow/abstractions.js +5 -0
- package/features/workflow/GetBoundWorkflow/abstractions.js.map +1 -0
- package/features/workflow/GetBoundWorkflow/feature.d.ts +4 -0
- package/features/workflow/GetBoundWorkflow/feature.js +11 -0
- package/features/workflow/GetBoundWorkflow/feature.js.map +1 -0
- package/features/workflow/GetBoundWorkflow/index.d.ts +2 -0
- package/features/workflow/GetBoundWorkflow/index.js +1 -0
- package/features/workflow/GetWorkflow/GetWorkflowUseCase.d.ts +5 -7
- package/features/workflow/GetWorkflow/GetWorkflowUseCase.js +12 -27
- package/features/workflow/GetWorkflow/GetWorkflowUseCase.js.map +1 -1
- package/features/workflow/GetWorkflow/abstractions.d.ts +10 -32
- package/features/workflow/GetWorkflow/abstractions.js +2 -12
- package/features/workflow/GetWorkflow/abstractions.js.map +1 -1
- package/features/workflow/GetWorkflow/feature.d.ts +4 -1
- package/features/workflow/GetWorkflow/feature.js +6 -7
- package/features/workflow/GetWorkflow/feature.js.map +1 -1
- package/features/workflow/GetWorkflow/index.d.ts +2 -1
- package/features/workflow/GetWorkflow/index.js +1 -3
- package/features/workflow/ListWorkflows/ListWorkflowsUseCase.d.ts +5 -4
- package/features/workflow/ListWorkflows/ListWorkflowsUseCase.js +17 -14
- package/features/workflow/ListWorkflows/ListWorkflowsUseCase.js.map +1 -1
- package/features/workflow/ListWorkflows/abstractions.d.ts +18 -45
- package/features/workflow/ListWorkflows/abstractions.js +2 -12
- package/features/workflow/ListWorkflows/abstractions.js.map +1 -1
- package/features/workflow/ListWorkflows/feature.d.ts +4 -1
- package/features/workflow/ListWorkflows/feature.js +6 -7
- package/features/workflow/ListWorkflows/feature.js.map +1 -1
- package/features/workflow/ListWorkflows/index.d.ts +2 -1
- package/features/workflow/ListWorkflows/index.js +1 -3
- package/features/workflow/ReadableBlockingReviews/ReadableBlockingReviewsService.d.ts +8 -0
- package/features/workflow/ReadableBlockingReviews/ReadableBlockingReviewsService.js +23 -0
- package/features/workflow/ReadableBlockingReviews/ReadableBlockingReviewsService.js.map +1 -0
- package/features/workflow/ReadableBlockingReviews/abstractions.d.ts +26 -0
- package/features/workflow/ReadableBlockingReviews/abstractions.js +7 -0
- package/features/workflow/ReadableBlockingReviews/abstractions.js.map +1 -0
- package/features/workflow/ReadableBlockingReviews/feature.d.ts +4 -0
- package/features/workflow/ReadableBlockingReviews/feature.js +11 -0
- package/features/workflow/ReadableBlockingReviews/feature.js.map +1 -0
- package/features/workflow/ReadableBlockingReviews/index.d.ts +1 -0
- package/features/workflow/ReadableBlockingReviews/index.js +1 -0
- package/features/workflow/StoreWorkflow/StoreWorkflowUseCase.d.ts +17 -7
- package/features/workflow/StoreWorkflow/StoreWorkflowUseCase.js +204 -29
- package/features/workflow/StoreWorkflow/StoreWorkflowUseCase.js.map +1 -1
- package/features/workflow/StoreWorkflow/abstractions.d.ts +24 -20
- package/features/workflow/StoreWorkflow/abstractions.js +2 -8
- package/features/workflow/StoreWorkflow/abstractions.js.map +1 -1
- package/features/workflow/StoreWorkflow/events.d.ts +75 -0
- package/features/workflow/StoreWorkflow/events.js +41 -0
- package/features/workflow/StoreWorkflow/events.js.map +1 -0
- package/features/workflow/StoreWorkflow/feature.d.ts +4 -1
- package/features/workflow/StoreWorkflow/feature.js +6 -12
- package/features/workflow/StoreWorkflow/feature.js.map +1 -1
- package/features/workflow/StoreWorkflow/index.d.ts +3 -2
- package/features/workflow/StoreWorkflow/index.js +1 -3
- package/features/workflow/shared/WorkflowEntryMapper.d.ts +22 -0
- package/features/workflow/shared/WorkflowEntryMapper.js +58 -0
- package/features/workflow/shared/WorkflowEntryMapper.js.map +1 -0
- package/features/workflow/shared/WorkflowModelProvider.d.ts +17 -0
- package/features/workflow/shared/WorkflowModelProvider.js +22 -0
- package/features/workflow/shared/WorkflowModelProvider.js.map +1 -0
- package/features/workflow/shared/WorkflowRepository.d.ts +28 -0
- package/features/workflow/shared/WorkflowRepository.js +120 -0
- package/features/workflow/shared/WorkflowRepository.js.map +1 -0
- package/features/workflow/shared/feature.d.ts +4 -0
- package/features/workflow/shared/feature.js +13 -0
- package/features/workflow/shared/feature.js.map +1 -0
- package/graphql/WorkflowsSchemaFactory.d.ts +15 -0
- package/graphql/WorkflowsSchemaFactory.js +745 -0
- package/graphql/WorkflowsSchemaFactory.js.map +1 -0
- package/index.d.ts +1 -2
- package/index.js +1 -104
- package/package.json +29 -21
- package/types.d.ts +6 -17
- package/types.js +0 -3
- package/domain/notifications/abstractions.d.ts +0 -64
- package/domain/notifications/abstractions.js +0 -10
- package/domain/notifications/abstractions.js.map +0 -1
- package/domain/notifications/errors.d.ts +0 -5
- package/domain/notifications/errors.js +0 -11
- package/domain/notifications/errors.js.map +0 -1
- package/domain/workflow/WorkflowMapper.d.ts +0 -12
- package/domain/workflow/WorkflowMapper.js +0 -29
- package/domain/workflow/WorkflowMapper.js.map +0 -1
- package/domain/workflow/abstractions.d.ts +0 -37
- package/domain/workflow/abstractions.js +0 -6
- package/domain/workflow/abstractions.js.map +0 -1
- package/domain/workflow/workflowModel.d.ts +0 -9
- package/domain/workflow/workflowModel.js +0 -32
- package/domain/workflow/workflowModel.js.map +0 -1
- package/domain/workflowState/WorkflowState.d.ts +0 -55
- package/domain/workflowState/WorkflowState.js +0 -327
- package/domain/workflowState/WorkflowState.js.map +0 -1
- package/domain/workflowState/WorkflowStateMapper.d.ts +0 -9
- package/domain/workflowState/WorkflowStateMapper.js +0 -40
- package/domain/workflowState/WorkflowStateMapper.js.map +0 -1
- package/domain/workflowState/abstractions.d.ts +0 -75
- package/domain/workflowState/abstractions.js +0 -13
- package/domain/workflowState/abstractions.js.map +0 -1
- package/domain/workflowState/errors.d.ts +0 -86
- package/domain/workflowState/errors.js +0 -139
- package/domain/workflowState/errors.js.map +0 -1
- package/domain/workflowState/guards/canReview.d.ts +0 -2
- package/domain/workflowState/guards/canReview.js +0 -5
- package/domain/workflowState/guards/canReview.js.map +0 -1
- package/domain/workflowState/guards/canTakeOver.d.ts +0 -2
- package/domain/workflowState/guards/canTakeOver.js +0 -5
- package/domain/workflowState/guards/canTakeOver.js.map +0 -1
- package/domain/workflowState/guards/isInReview.d.ts +0 -2
- package/domain/workflowState/guards/isInReview.js +0 -6
- package/domain/workflowState/guards/isInReview.js.map +0 -1
- package/domain/workflowState/guards/isRejected.d.ts +0 -2
- package/domain/workflowState/guards/isRejected.js +0 -6
- package/domain/workflowState/guards/isRejected.js.map +0 -1
- package/domain/workflowState/guards/isStepOwner.d.ts +0 -2
- package/domain/workflowState/guards/isStepOwner.js +0 -5
- package/domain/workflowState/guards/isStepOwner.js.map +0 -1
- package/domain/workflowState/stateModel.d.ts +0 -9
- package/domain/workflowState/stateModel.js +0 -58
- package/domain/workflowState/stateModel.js.map +0 -1
- package/features/internal/GetUserTeams/GetUserTeamsUseCase.d.ts +0 -12
- package/features/internal/GetUserTeams/GetUserTeamsUseCase.js +0 -36
- package/features/internal/GetUserTeams/GetUserTeamsUseCase.js.map +0 -1
- package/features/internal/GetUserTeams/abstractions.d.ts +0 -10
- package/features/internal/GetUserTeams/abstractions.js +0 -4
- package/features/internal/GetUserTeams/abstractions.js.map +0 -1
- package/features/internal/GetUserTeams/feature.d.ts +0 -1
- package/features/internal/GetUserTeams/feature.js +0 -10
- package/features/internal/GetUserTeams/feature.js.map +0 -1
- package/features/internal/GetUserTeams/index.d.ts +0 -1
- package/features/internal/GetUserTeams/index.js +0 -3
- package/features/internal/GetUserTeams/index.js.map +0 -1
- package/features/notifications/ListNotificationTypes/ListNotificationTypesRepository.d.ts +0 -11
- package/features/notifications/ListNotificationTypes/ListNotificationTypesRepository.js +0 -24
- package/features/notifications/ListNotificationTypes/ListNotificationTypesRepository.js.map +0 -1
- package/features/notifications/ListNotificationTypes/ListNotificationTypesUseCase.d.ts +0 -13
- package/features/notifications/ListNotificationTypes/ListNotificationTypesUseCase.js +0 -39
- package/features/notifications/ListNotificationTypes/ListNotificationTypesUseCase.js.map +0 -1
- package/features/notifications/ListNotificationTypes/abstractions.d.ts +0 -31
- package/features/notifications/ListNotificationTypes/abstractions.js +0 -15
- package/features/notifications/ListNotificationTypes/abstractions.js.map +0 -1
- package/features/notifications/ListNotificationTypes/feature.d.ts +0 -1
- package/features/notifications/ListNotificationTypes/feature.js +0 -12
- package/features/notifications/ListNotificationTypes/feature.js.map +0 -1
- package/features/notifications/ListNotificationTypes/index.d.ts +0 -3
- package/features/notifications/ListNotificationTypes/index.js +0 -4
- package/features/notifications/ListNotificationTypes/index.js.map +0 -1
- package/features/notifications/NotificationTransport/index.js.map +0 -1
- package/features/shared/abstractions.d.ts +0 -21
- package/features/shared/abstractions.js +0 -3
- package/features/shared/abstractions.js.map +0 -1
- package/features/workflow/CreateWorkflow/CreateWorkflowRepository.d.ts +0 -14
- package/features/workflow/CreateWorkflow/CreateWorkflowRepository.js +0 -45
- package/features/workflow/CreateWorkflow/CreateWorkflowRepository.js.map +0 -1
- package/features/workflow/CreateWorkflow/CreateWorkflowUseCase.d.ts +0 -15
- package/features/workflow/CreateWorkflow/CreateWorkflowUseCase.js +0 -56
- package/features/workflow/CreateWorkflow/CreateWorkflowUseCase.js.map +0 -1
- package/features/workflow/CreateWorkflow/abstractions.d.ts +0 -56
- package/features/workflow/CreateWorkflow/abstractions.js +0 -19
- package/features/workflow/CreateWorkflow/abstractions.js.map +0 -1
- package/features/workflow/CreateWorkflow/events.d.ts +0 -21
- package/features/workflow/CreateWorkflow/events.js +0 -20
- package/features/workflow/CreateWorkflow/events.js.map +0 -1
- package/features/workflow/CreateWorkflow/feature.d.ts +0 -1
- package/features/workflow/CreateWorkflow/feature.js +0 -12
- package/features/workflow/CreateWorkflow/feature.js.map +0 -1
- package/features/workflow/CreateWorkflow/index.d.ts +0 -4
- package/features/workflow/CreateWorkflow/index.js +0 -5
- package/features/workflow/CreateWorkflow/index.js.map +0 -1
- package/features/workflow/DeleteWorkflow/DeleteWorkflowRepository.d.ts +0 -13
- package/features/workflow/DeleteWorkflow/DeleteWorkflowRepository.js +0 -33
- package/features/workflow/DeleteWorkflow/DeleteWorkflowRepository.js.map +0 -1
- package/features/workflow/DeleteWorkflow/index.js.map +0 -1
- package/features/workflow/GetWorkflow/GetWorkflowRepository.d.ts +0 -14
- package/features/workflow/GetWorkflow/GetWorkflowRepository.js +0 -46
- package/features/workflow/GetWorkflow/GetWorkflowRepository.js.map +0 -1
- package/features/workflow/GetWorkflow/index.js.map +0 -1
- package/features/workflow/ListWorkflows/ListWorkflowsRepository.d.ts +0 -18
- package/features/workflow/ListWorkflows/ListWorkflowsRepository.js +0 -67
- package/features/workflow/ListWorkflows/ListWorkflowsRepository.js.map +0 -1
- package/features/workflow/ListWorkflows/index.js.map +0 -1
- package/features/workflow/StoreWorkflow/index.js.map +0 -1
- package/features/workflow/UpdateWorkflow/UpdateWorkflowRepository.d.ts +0 -15
- package/features/workflow/UpdateWorkflow/UpdateWorkflowRepository.js +0 -49
- package/features/workflow/UpdateWorkflow/UpdateWorkflowRepository.js.map +0 -1
- package/features/workflow/UpdateWorkflow/UpdateWorkflowUseCase.d.ts +0 -15
- package/features/workflow/UpdateWorkflow/UpdateWorkflowUseCase.js +0 -58
- package/features/workflow/UpdateWorkflow/UpdateWorkflowUseCase.js.map +0 -1
- package/features/workflow/UpdateWorkflow/abstractions.d.ts +0 -57
- package/features/workflow/UpdateWorkflow/abstractions.js +0 -19
- package/features/workflow/UpdateWorkflow/abstractions.js.map +0 -1
- package/features/workflow/UpdateWorkflow/events.d.ts +0 -21
- package/features/workflow/UpdateWorkflow/events.js +0 -20
- package/features/workflow/UpdateWorkflow/events.js.map +0 -1
- package/features/workflow/UpdateWorkflow/feature.d.ts +0 -1
- package/features/workflow/UpdateWorkflow/feature.js +0 -12
- package/features/workflow/UpdateWorkflow/feature.js.map +0 -1
- package/features/workflow/UpdateWorkflow/index.d.ts +0 -4
- package/features/workflow/UpdateWorkflow/index.js +0 -5
- package/features/workflow/UpdateWorkflow/index.js.map +0 -1
- package/features/workflowState/ApproveWorkflowStateStep/ApproveWorkflowStateStepUseCase.d.ts +0 -15
- package/features/workflowState/ApproveWorkflowStateStep/ApproveWorkflowStateStepUseCase.js +0 -39
- package/features/workflowState/ApproveWorkflowStateStep/ApproveWorkflowStateStepUseCase.js.map +0 -1
- package/features/workflowState/ApproveWorkflowStateStep/abstractions.d.ts +0 -26
- package/features/workflowState/ApproveWorkflowStateStep/abstractions.js +0 -4
- package/features/workflowState/ApproveWorkflowStateStep/abstractions.js.map +0 -1
- package/features/workflowState/ApproveWorkflowStateStep/events.d.ts +0 -12
- package/features/workflowState/ApproveWorkflowStateStep/events.js +0 -11
- package/features/workflowState/ApproveWorkflowStateStep/events.js.map +0 -1
- package/features/workflowState/ApproveWorkflowStateStep/feature.d.ts +0 -1
- package/features/workflowState/ApproveWorkflowStateStep/feature.js +0 -10
- package/features/workflowState/ApproveWorkflowStateStep/feature.js.map +0 -1
- package/features/workflowState/ApproveWorkflowStateStep/index.d.ts +0 -2
- package/features/workflowState/ApproveWorkflowStateStep/index.js +0 -4
- package/features/workflowState/ApproveWorkflowStateStep/index.js.map +0 -1
- package/features/workflowState/CancelWorkflowState/CancelWorkflowStateUseCase.d.ts +0 -13
- package/features/workflowState/CancelWorkflowState/CancelWorkflowStateUseCase.js +0 -29
- package/features/workflowState/CancelWorkflowState/CancelWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/CancelWorkflowState/abstractions.d.ts +0 -26
- package/features/workflowState/CancelWorkflowState/abstractions.js +0 -9
- package/features/workflowState/CancelWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/CancelWorkflowState/events.d.ts +0 -12
- package/features/workflowState/CancelWorkflowState/events.js +0 -11
- package/features/workflowState/CancelWorkflowState/events.js.map +0 -1
- package/features/workflowState/CancelWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/CancelWorkflowState/feature.js +0 -10
- package/features/workflowState/CancelWorkflowState/feature.js.map +0 -1
- package/features/workflowState/CancelWorkflowState/index.d.ts +0 -2
- package/features/workflowState/CancelWorkflowState/index.js +0 -4
- package/features/workflowState/CancelWorkflowState/index.js.map +0 -1
- package/features/workflowState/CreateWorkflowState/CreateWorkflowStateRepository.d.ts +0 -14
- package/features/workflowState/CreateWorkflowState/CreateWorkflowStateRepository.js +0 -32
- package/features/workflowState/CreateWorkflowState/CreateWorkflowStateRepository.js.map +0 -1
- package/features/workflowState/CreateWorkflowState/CreateWorkflowStateUseCase.d.ts +0 -20
- package/features/workflowState/CreateWorkflowState/CreateWorkflowStateUseCase.js +0 -108
- package/features/workflowState/CreateWorkflowState/CreateWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/CreateWorkflowState/abstractions.d.ts +0 -54
- package/features/workflowState/CreateWorkflowState/abstractions.js +0 -15
- package/features/workflowState/CreateWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/CreateWorkflowState/events.d.ts +0 -12
- package/features/workflowState/CreateWorkflowState/events.js +0 -11
- package/features/workflowState/CreateWorkflowState/events.js.map +0 -1
- package/features/workflowState/CreateWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/CreateWorkflowState/feature.js +0 -12
- package/features/workflowState/CreateWorkflowState/feature.js.map +0 -1
- package/features/workflowState/CreateWorkflowState/index.d.ts +0 -2
- package/features/workflowState/CreateWorkflowState/index.js +0 -4
- package/features/workflowState/CreateWorkflowState/index.js.map +0 -1
- package/features/workflowState/DeleteTargetWorkflowState/DeleteTargetWorkflowStateUseCase.d.ts +0 -21
- package/features/workflowState/DeleteTargetWorkflowState/DeleteTargetWorkflowStateUseCase.js +0 -59
- package/features/workflowState/DeleteTargetWorkflowState/DeleteTargetWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/DeleteTargetWorkflowState/abstractions.d.ts +0 -23
- package/features/workflowState/DeleteTargetWorkflowState/abstractions.js +0 -4
- package/features/workflowState/DeleteTargetWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/DeleteTargetWorkflowState/events.d.ts +0 -12
- package/features/workflowState/DeleteTargetWorkflowState/events.js +0 -11
- package/features/workflowState/DeleteTargetWorkflowState/events.js.map +0 -1
- package/features/workflowState/DeleteTargetWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/DeleteTargetWorkflowState/feature.js +0 -10
- package/features/workflowState/DeleteTargetWorkflowState/feature.js.map +0 -1
- package/features/workflowState/DeleteTargetWorkflowState/index.d.ts +0 -2
- package/features/workflowState/DeleteTargetWorkflowState/index.js +0 -4
- package/features/workflowState/DeleteTargetWorkflowState/index.js.map +0 -1
- package/features/workflowState/DeleteWorkflowState/DeleteWorkflowStateRepository.d.ts +0 -13
- package/features/workflowState/DeleteWorkflowState/DeleteWorkflowStateRepository.js +0 -20
- package/features/workflowState/DeleteWorkflowState/DeleteWorkflowStateRepository.js.map +0 -1
- package/features/workflowState/DeleteWorkflowState/DeleteWorkflowStateUseCase.d.ts +0 -14
- package/features/workflowState/DeleteWorkflowState/DeleteWorkflowStateUseCase.js +0 -32
- package/features/workflowState/DeleteWorkflowState/DeleteWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/DeleteWorkflowState/abstractions.d.ts +0 -25
- package/features/workflowState/DeleteWorkflowState/abstractions.js +0 -5
- package/features/workflowState/DeleteWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/DeleteWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/DeleteWorkflowState/feature.js +0 -12
- package/features/workflowState/DeleteWorkflowState/feature.js.map +0 -1
- package/features/workflowState/DeleteWorkflowState/index.d.ts +0 -1
- package/features/workflowState/DeleteWorkflowState/index.js +0 -3
- package/features/workflowState/DeleteWorkflowState/index.js.map +0 -1
- package/features/workflowState/GetTargetWorkflowState/GetTargetWorkflowStateRepository.d.ts +0 -14
- package/features/workflowState/GetTargetWorkflowState/GetTargetWorkflowStateRepository.js +0 -52
- package/features/workflowState/GetTargetWorkflowState/GetTargetWorkflowStateRepository.js.map +0 -1
- package/features/workflowState/GetTargetWorkflowState/GetTargetWorkflowStateUseCase.d.ts +0 -14
- package/features/workflowState/GetTargetWorkflowState/GetTargetWorkflowStateUseCase.js +0 -38
- package/features/workflowState/GetTargetWorkflowState/GetTargetWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/GetTargetWorkflowState/abstractions.d.ts +0 -48
- package/features/workflowState/GetTargetWorkflowState/abstractions.js +0 -15
- package/features/workflowState/GetTargetWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/GetTargetWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/GetTargetWorkflowState/feature.js +0 -12
- package/features/workflowState/GetTargetWorkflowState/feature.js.map +0 -1
- package/features/workflowState/GetTargetWorkflowState/index.d.ts +0 -1
- package/features/workflowState/GetTargetWorkflowState/index.js +0 -3
- package/features/workflowState/GetTargetWorkflowState/index.js.map +0 -1
- package/features/workflowState/GetWorkflowState/GetWorkflowStateRepository.d.ts +0 -14
- package/features/workflowState/GetWorkflowState/GetWorkflowStateRepository.js +0 -32
- package/features/workflowState/GetWorkflowState/GetWorkflowStateRepository.js.map +0 -1
- package/features/workflowState/GetWorkflowState/GetWorkflowStateUseCase.d.ts +0 -14
- package/features/workflowState/GetWorkflowState/GetWorkflowStateUseCase.js +0 -30
- package/features/workflowState/GetWorkflowState/GetWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/GetWorkflowState/abstractions.d.ts +0 -39
- package/features/workflowState/GetWorkflowState/abstractions.js +0 -15
- package/features/workflowState/GetWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/GetWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/GetWorkflowState/feature.js +0 -12
- package/features/workflowState/GetWorkflowState/feature.js.map +0 -1
- package/features/workflowState/GetWorkflowState/index.d.ts +0 -1
- package/features/workflowState/GetWorkflowState/index.js +0 -3
- package/features/workflowState/GetWorkflowState/index.js.map +0 -1
- package/features/workflowState/ListOwnWorkflowStates/ListOwnWorkflowStatesUseCase.d.ts +0 -13
- package/features/workflowState/ListOwnWorkflowStates/ListOwnWorkflowStatesUseCase.js +0 -41
- package/features/workflowState/ListOwnWorkflowStates/ListOwnWorkflowStatesUseCase.js.map +0 -1
- package/features/workflowState/ListOwnWorkflowStates/abstractions.d.ts +0 -22
- package/features/workflowState/ListOwnWorkflowStates/abstractions.js +0 -9
- package/features/workflowState/ListOwnWorkflowStates/abstractions.js.map +0 -1
- package/features/workflowState/ListOwnWorkflowStates/feature.d.ts +0 -1
- package/features/workflowState/ListOwnWorkflowStates/feature.js +0 -10
- package/features/workflowState/ListOwnWorkflowStates/feature.js.map +0 -1
- package/features/workflowState/ListOwnWorkflowStates/index.d.ts +0 -1
- package/features/workflowState/ListOwnWorkflowStates/index.js +0 -3
- package/features/workflowState/ListOwnWorkflowStates/index.js.map +0 -1
- package/features/workflowState/ListRequestedWorkflowStates/ListRequestedWorkflowStatesUseCase.d.ts +0 -15
- package/features/workflowState/ListRequestedWorkflowStates/ListRequestedWorkflowStatesUseCase.js +0 -49
- package/features/workflowState/ListRequestedWorkflowStates/ListRequestedWorkflowStatesUseCase.js.map +0 -1
- package/features/workflowState/ListRequestedWorkflowStates/abstractions.d.ts +0 -22
- package/features/workflowState/ListRequestedWorkflowStates/abstractions.js +0 -9
- package/features/workflowState/ListRequestedWorkflowStates/abstractions.js.map +0 -1
- package/features/workflowState/ListRequestedWorkflowStates/feature.d.ts +0 -1
- package/features/workflowState/ListRequestedWorkflowStates/feature.js +0 -10
- package/features/workflowState/ListRequestedWorkflowStates/feature.js.map +0 -1
- package/features/workflowState/ListRequestedWorkflowStates/index.d.ts +0 -1
- package/features/workflowState/ListRequestedWorkflowStates/index.js +0 -3
- package/features/workflowState/ListRequestedWorkflowStates/index.js.map +0 -1
- package/features/workflowState/ListWorkflowStates/ListWorkflowStatesRepository.d.ts +0 -16
- package/features/workflowState/ListWorkflowStates/ListWorkflowStatesRepository.js +0 -43
- package/features/workflowState/ListWorkflowStates/ListWorkflowStatesRepository.js.map +0 -1
- package/features/workflowState/ListWorkflowStates/ListWorkflowStatesUseCase.d.ts +0 -14
- package/features/workflowState/ListWorkflowStates/ListWorkflowStatesUseCase.js +0 -36
- package/features/workflowState/ListWorkflowStates/ListWorkflowStatesUseCase.js.map +0 -1
- package/features/workflowState/ListWorkflowStates/abstractions.d.ts +0 -71
- package/features/workflowState/ListWorkflowStates/abstractions.js +0 -15
- package/features/workflowState/ListWorkflowStates/abstractions.js.map +0 -1
- package/features/workflowState/ListWorkflowStates/feature.d.ts +0 -1
- package/features/workflowState/ListWorkflowStates/feature.js +0 -12
- package/features/workflowState/ListWorkflowStates/feature.js.map +0 -1
- package/features/workflowState/ListWorkflowStates/index.d.ts +0 -1
- package/features/workflowState/ListWorkflowStates/index.js +0 -3
- package/features/workflowState/ListWorkflowStates/index.js.map +0 -1
- package/features/workflowState/README.md +0 -8
- package/features/workflowState/RejectWorkflowStateStep/RejectWorkflowStateStepUseCase.d.ts +0 -15
- package/features/workflowState/RejectWorkflowStateStep/RejectWorkflowStateStepUseCase.js +0 -39
- package/features/workflowState/RejectWorkflowStateStep/RejectWorkflowStateStepUseCase.js.map +0 -1
- package/features/workflowState/RejectWorkflowStateStep/abstractions.d.ts +0 -26
- package/features/workflowState/RejectWorkflowStateStep/abstractions.js +0 -4
- package/features/workflowState/RejectWorkflowStateStep/abstractions.js.map +0 -1
- package/features/workflowState/RejectWorkflowStateStep/events.d.ts +0 -12
- package/features/workflowState/RejectWorkflowStateStep/events.js +0 -11
- package/features/workflowState/RejectWorkflowStateStep/events.js.map +0 -1
- package/features/workflowState/RejectWorkflowStateStep/feature.d.ts +0 -1
- package/features/workflowState/RejectWorkflowStateStep/feature.js +0 -10
- package/features/workflowState/RejectWorkflowStateStep/feature.js.map +0 -1
- package/features/workflowState/RejectWorkflowStateStep/index.d.ts +0 -2
- package/features/workflowState/RejectWorkflowStateStep/index.js +0 -4
- package/features/workflowState/RejectWorkflowStateStep/index.js.map +0 -1
- package/features/workflowState/StartWorkflowStateStep/StartWorkflowStateStepUseCase.d.ts +0 -15
- package/features/workflowState/StartWorkflowStateStep/StartWorkflowStateStepUseCase.js +0 -39
- package/features/workflowState/StartWorkflowStateStep/StartWorkflowStateStepUseCase.js.map +0 -1
- package/features/workflowState/StartWorkflowStateStep/abstractions.d.ts +0 -25
- package/features/workflowState/StartWorkflowStateStep/abstractions.js +0 -4
- package/features/workflowState/StartWorkflowStateStep/abstractions.js.map +0 -1
- package/features/workflowState/StartWorkflowStateStep/events.d.ts +0 -12
- package/features/workflowState/StartWorkflowStateStep/events.js +0 -11
- package/features/workflowState/StartWorkflowStateStep/events.js.map +0 -1
- package/features/workflowState/StartWorkflowStateStep/feature.d.ts +0 -1
- package/features/workflowState/StartWorkflowStateStep/feature.js +0 -10
- package/features/workflowState/StartWorkflowStateStep/feature.js.map +0 -1
- package/features/workflowState/StartWorkflowStateStep/index.d.ts +0 -2
- package/features/workflowState/StartWorkflowStateStep/index.js +0 -4
- package/features/workflowState/StartWorkflowStateStep/index.js.map +0 -1
- package/features/workflowState/TakeOverWorkflowStateStep/TakeOverWorkflowStateStepUseCase.d.ts +0 -15
- package/features/workflowState/TakeOverWorkflowStateStep/TakeOverWorkflowStateStepUseCase.js +0 -39
- package/features/workflowState/TakeOverWorkflowStateStep/TakeOverWorkflowStateStepUseCase.js.map +0 -1
- package/features/workflowState/TakeOverWorkflowStateStep/abstractions.d.ts +0 -26
- package/features/workflowState/TakeOverWorkflowStateStep/abstractions.js +0 -4
- package/features/workflowState/TakeOverWorkflowStateStep/abstractions.js.map +0 -1
- package/features/workflowState/TakeOverWorkflowStateStep/events.d.ts +0 -12
- package/features/workflowState/TakeOverWorkflowStateStep/events.js +0 -11
- package/features/workflowState/TakeOverWorkflowStateStep/events.js.map +0 -1
- package/features/workflowState/TakeOverWorkflowStateStep/feature.d.ts +0 -1
- package/features/workflowState/TakeOverWorkflowStateStep/feature.js +0 -10
- package/features/workflowState/TakeOverWorkflowStateStep/feature.js.map +0 -1
- package/features/workflowState/TakeOverWorkflowStateStep/index.d.ts +0 -2
- package/features/workflowState/TakeOverWorkflowStateStep/index.js +0 -4
- package/features/workflowState/TakeOverWorkflowStateStep/index.js.map +0 -1
- package/features/workflowState/UpdateWorkflowState/UpdateWorkflowStateRepository.d.ts +0 -17
- package/features/workflowState/UpdateWorkflowState/UpdateWorkflowStateRepository.js +0 -48
- package/features/workflowState/UpdateWorkflowState/UpdateWorkflowStateRepository.js.map +0 -1
- package/features/workflowState/UpdateWorkflowState/UpdateWorkflowStateUseCase.d.ts +0 -20
- package/features/workflowState/UpdateWorkflowState/UpdateWorkflowStateUseCase.js +0 -57
- package/features/workflowState/UpdateWorkflowState/UpdateWorkflowStateUseCase.js.map +0 -1
- package/features/workflowState/UpdateWorkflowState/abstractions.d.ts +0 -48
- package/features/workflowState/UpdateWorkflowState/abstractions.js +0 -15
- package/features/workflowState/UpdateWorkflowState/abstractions.js.map +0 -1
- package/features/workflowState/UpdateWorkflowState/events.d.ts +0 -12
- package/features/workflowState/UpdateWorkflowState/events.js +0 -11
- package/features/workflowState/UpdateWorkflowState/events.js.map +0 -1
- package/features/workflowState/UpdateWorkflowState/feature.d.ts +0 -1
- package/features/workflowState/UpdateWorkflowState/feature.js +0 -12
- package/features/workflowState/UpdateWorkflowState/feature.js.map +0 -1
- package/features/workflowState/UpdateWorkflowState/index.d.ts +0 -2
- package/features/workflowState/UpdateWorkflowState/index.js +0 -4
- package/features/workflowState/UpdateWorkflowState/index.js.map +0 -1
- package/graphql/notifications.d.ts +0 -2
- package/graphql/notifications.js +0 -51
- package/graphql/notifications.js.map +0 -1
- package/graphql/validation/approveWorkflowState.d.ts +0 -5
- package/graphql/validation/approveWorkflowState.js +0 -7
- package/graphql/validation/approveWorkflowState.js.map +0 -1
- package/graphql/validation/cancelWorkflowState.d.ts +0 -4
- package/graphql/validation/cancelWorkflowState.js +0 -6
- package/graphql/validation/cancelWorkflowState.js.map +0 -1
- package/graphql/validation/createWorkflowState.d.ts +0 -6
- package/graphql/validation/createWorkflowState.js +0 -8
- package/graphql/validation/createWorkflowState.js.map +0 -1
- package/graphql/validation/deleteWorkflow.d.ts +0 -5
- package/graphql/validation/deleteWorkflow.js +0 -7
- package/graphql/validation/deleteWorkflow.js.map +0 -1
- package/graphql/validation/getTargetWorkflowState.d.ts +0 -5
- package/graphql/validation/getTargetWorkflowState.js +0 -7
- package/graphql/validation/getTargetWorkflowState.js.map +0 -1
- package/graphql/validation/getWorkflow.d.ts +0 -5
- package/graphql/validation/getWorkflow.js +0 -7
- package/graphql/validation/getWorkflow.js.map +0 -1
- package/graphql/validation/getWorkflowState.d.ts +0 -4
- package/graphql/validation/getWorkflowState.js +0 -6
- package/graphql/validation/getWorkflowState.js.map +0 -1
- package/graphql/validation/listWorkflowStates.d.ts +0 -26
- package/graphql/validation/listWorkflowStates.js +0 -42
- package/graphql/validation/listWorkflowStates.js.map +0 -1
- package/graphql/validation/listWorkflows.d.ts +0 -12
- package/graphql/validation/listWorkflows.js +0 -22
- package/graphql/validation/listWorkflows.js.map +0 -1
- package/graphql/validation/rejectWorkflowState.d.ts +0 -5
- package/graphql/validation/rejectWorkflowState.js +0 -7
- package/graphql/validation/rejectWorkflowState.js.map +0 -1
- package/graphql/validation/startWorkflowState.d.ts +0 -4
- package/graphql/validation/startWorkflowState.js +0 -6
- package/graphql/validation/startWorkflowState.js.map +0 -1
- package/graphql/validation/step.d.ts +0 -21
- package/graphql/validation/step.js +0 -21
- package/graphql/validation/step.js.map +0 -1
- package/graphql/validation/storeWorkflow.d.ts +0 -35
- package/graphql/validation/storeWorkflow.js +0 -9
- package/graphql/validation/storeWorkflow.js.map +0 -1
- package/graphql/validation/takeOverWorkflowStateStep.d.ts +0 -4
- package/graphql/validation/takeOverWorkflowStateStep.js +0 -6
- package/graphql/validation/takeOverWorkflowStateStep.js.map +0 -1
- package/graphql/validation/workflow.d.ts +0 -33
- package/graphql/validation/workflow.js +0 -10
- package/graphql/validation/workflow.js.map +0 -1
- package/graphql/workflowState.d.ts +0 -2
- package/graphql/workflowState.js +0 -427
- package/graphql/workflowState.js.map +0 -1
- package/graphql/workflows.d.ts +0 -2
- package/graphql/workflows.js +0 -216
- package/graphql/workflows.js.map +0 -1
- package/index.js.map +0 -1
- package/types.js.map +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { Result } from "@webiny/feature/api";
|
|
2
|
+
import { WorkflowValidationError } from "./errors.js";
|
|
3
|
+
const fail = (message, where = {})=>Result.fail(new WorkflowValidationError(message, where));
|
|
4
|
+
class WorkflowValidator {
|
|
5
|
+
static validate(values, validateStep, isKnownModel) {
|
|
6
|
+
if (!values.id) return fail("Workflow ID is required.");
|
|
7
|
+
if (!values.name || !values.name.trim()) return fail("Workflow name is required.", {
|
|
8
|
+
field: "name"
|
|
9
|
+
});
|
|
10
|
+
if (1 !== values.models.length || !values.models[0]) return fail("A workflow must be bound to exactly one model.", {
|
|
11
|
+
field: "models"
|
|
12
|
+
});
|
|
13
|
+
const [model] = values.models;
|
|
14
|
+
if (!isKnownModel(model)) return fail(`Model "${model}" is not supported.`, {
|
|
15
|
+
field: "models"
|
|
16
|
+
});
|
|
17
|
+
if (0 === values.steps.length) return fail("Add at least one step.", {
|
|
18
|
+
field: "steps"
|
|
19
|
+
});
|
|
20
|
+
const stepIds = new Set();
|
|
21
|
+
const steps = [];
|
|
22
|
+
for (const step of values.steps){
|
|
23
|
+
const result = WorkflowValidator.validateStep(step, stepIds, validateStep);
|
|
24
|
+
if (result.isFail()) return Result.fail(result.error);
|
|
25
|
+
steps.push(result.value);
|
|
26
|
+
}
|
|
27
|
+
return Result.ok({
|
|
28
|
+
id: values.id,
|
|
29
|
+
name: values.name.trim(),
|
|
30
|
+
models: [
|
|
31
|
+
...values.models
|
|
32
|
+
],
|
|
33
|
+
steps
|
|
34
|
+
});
|
|
35
|
+
}
|
|
36
|
+
static validateStep(step, stepIds, validateStep) {
|
|
37
|
+
if (!step.id) return fail("Every step needs an ID.", {
|
|
38
|
+
field: "steps"
|
|
39
|
+
});
|
|
40
|
+
if (stepIds.has(step.id)) return fail(`Step ID "${step.id}" is used more than once.`, {
|
|
41
|
+
stepId: step.id,
|
|
42
|
+
field: "id"
|
|
43
|
+
});
|
|
44
|
+
stepIds.add(step.id);
|
|
45
|
+
if (!step.title || !step.title.trim()) return fail(`Step "${step.id}" needs a title.`, {
|
|
46
|
+
stepId: step.id,
|
|
47
|
+
field: "title"
|
|
48
|
+
});
|
|
49
|
+
const validated = validateStep(step);
|
|
50
|
+
if (validated.isFail()) return Result.fail(validated.error);
|
|
51
|
+
const { description, ...rest } = validated.value;
|
|
52
|
+
const trimmedDescription = description?.trim();
|
|
53
|
+
return Result.ok({
|
|
54
|
+
...rest,
|
|
55
|
+
color: validated.value.color ?? "",
|
|
56
|
+
...trimmedDescription ? {
|
|
57
|
+
description: trimmedDescription
|
|
58
|
+
} : {},
|
|
59
|
+
notifications: validated.value.notifications ?? []
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
export { WorkflowValidator };
|
|
64
|
+
|
|
65
|
+
//# sourceMappingURL=WorkflowValidator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/WorkflowValidator.js","sources":["../../../src/domain/workflow/WorkflowValidator.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport { WorkflowValidationError } from \"./errors.js\";\nimport type { WorkflowValidationErrorData } from \"./errors.js\";\nimport type { WorkflowStep, WorkflowValues } from \"./types.js\";\n\n/**\n * Whether an app knows the model: `WorkflowModelParserService` parses it (each app adapter\n * registers its parser). Whether the model exists and is publishable is checked by the app's\n * workflows package on `WorkflowBeforeCreate|Update`.\n */\nexport type WorkflowModelCheck = (model: string) => boolean;\n\n/**\n * Validates one step's type and config: the step type registry's `validate` (R131). Returns the\n * step with its normalised `config`.\n */\nexport type WorkflowStepValidator = (\n step: WorkflowStep\n) => Result<WorkflowStep, WorkflowValidationError>;\n\nconst fail = (message: string, where: Partial<WorkflowValidationErrorData> = {}) => {\n return Result.fail(new WorkflowValidationError(message, where));\n};\n\n/**\n * Validates a workflow on create and update (one path, spec 4.1, D41, D108). It checks the\n * structure (id, name, one model an app knows, steps, step ids and titles) and normalises each step; the step\n * type and its config are checked by `validateStep`, which `StoreWorkflowUseCase` builds from the\n * step type registry. Checks that need storage (model already bound to another workflow) live in\n * `StoreWorkflowUseCase`; the \"model is publishable\" check is a `WorkflowBeforeCreate` /\n * `WorkflowBeforeUpdate` handler in the CMS workflows package.\n */\nexport class WorkflowValidator {\n public static validate(\n values: WorkflowValues,\n validateStep: WorkflowStepValidator,\n isKnownModel: WorkflowModelCheck\n ): Result<WorkflowValues, WorkflowValidationError> {\n if (!values.id) {\n return fail(\"Workflow ID is required.\");\n }\n if (!values.name || !values.name.trim()) {\n return fail(\"Workflow name is required.\", { field: \"name\" });\n }\n if (values.models.length !== 1 || !values.models[0]) {\n return fail(\"A workflow must be bound to exactly one model.\", { field: \"models\" });\n }\n const [model] = values.models;\n if (!isKnownModel(model)) {\n return fail(`Model \"${model}\" is not supported.`, { field: \"models\" });\n }\n if (values.steps.length === 0) {\n return fail(\"Add at least one step.\", { field: \"steps\" });\n }\n\n const stepIds = new Set<string>();\n const steps: WorkflowStep[] = [];\n for (const step of values.steps) {\n const result = WorkflowValidator.validateStep(step, stepIds, validateStep);\n if (result.isFail()) {\n return Result.fail(result.error);\n }\n steps.push(result.value);\n }\n\n return Result.ok({\n id: values.id,\n name: values.name.trim(),\n models: [...values.models],\n steps\n });\n }\n\n private static validateStep(\n step: WorkflowStep,\n stepIds: Set<string>,\n validateStep: WorkflowStepValidator\n ): Result<WorkflowStep, WorkflowValidationError> {\n if (!step.id) {\n return fail(\"Every step needs an ID.\", { field: \"steps\" });\n }\n if (stepIds.has(step.id)) {\n return fail(`Step ID \"${step.id}\" is used more than once.`, {\n stepId: step.id,\n field: \"id\"\n });\n }\n stepIds.add(step.id);\n\n if (!step.title || !step.title.trim()) {\n return fail(`Step \"${step.id}\" needs a title.`, { stepId: step.id, field: \"title\" });\n }\n\n const validated = validateStep(step);\n if (validated.isFail()) {\n return Result.fail(validated.error);\n }\n\n // Normalise to what the mapper returns on read, so stored values equal returned values.\n const { description, ...rest } = validated.value;\n const trimmedDescription = description?.trim();\n return Result.ok({\n ...rest,\n color: validated.value.color ?? \"\",\n ...(trimmedDescription ? { description: trimmedDescription } : {}),\n notifications: validated.value.notifications ?? []\n });\n }\n}\n"],"names":["fail","message","where","Result","WorkflowValidationError","WorkflowValidator","values","validateStep","isKnownModel","model","stepIds","Set","steps","step","result","validated","description","rest","trimmedDescription"],"mappings":";;AAoBA,MAAMA,OAAO,CAACC,SAAiBC,QAA8C,CAAC,CAAC,GACpEC,OAAO,IAAI,CAAC,IAAIC,wBAAwBH,SAASC;AAWrD,MAAMG;IACT,OAAc,SACVC,MAAsB,EACtBC,YAAmC,EACnCC,YAAgC,EACe;QAC/C,IAAI,CAACF,OAAO,EAAE,EACV,OAAON,KAAK;QAEhB,IAAI,CAACM,OAAO,IAAI,IAAI,CAACA,OAAO,IAAI,CAAC,IAAI,IACjC,OAAON,KAAK,8BAA8B;YAAE,OAAO;QAAO;QAE9D,IAAIM,AAAyB,MAAzBA,OAAO,MAAM,CAAC,MAAM,IAAU,CAACA,OAAO,MAAM,CAAC,EAAE,EAC/C,OAAON,KAAK,kDAAkD;YAAE,OAAO;QAAS;QAEpF,MAAM,CAACS,MAAM,GAAGH,OAAO,MAAM;QAC7B,IAAI,CAACE,aAAaC,QACd,OAAOT,KAAK,CAAC,OAAO,EAAES,MAAM,mBAAmB,CAAC,EAAE;YAAE,OAAO;QAAS;QAExE,IAAIH,AAAwB,MAAxBA,OAAO,KAAK,CAAC,MAAM,EACnB,OAAON,KAAK,0BAA0B;YAAE,OAAO;QAAQ;QAG3D,MAAMU,UAAU,IAAIC;QACpB,MAAMC,QAAwB,EAAE;QAChC,KAAK,MAAMC,QAAQP,OAAO,KAAK,CAAE;YAC7B,MAAMQ,SAAST,kBAAkB,YAAY,CAACQ,MAAMH,SAASH;YAC7D,IAAIO,OAAO,MAAM,IACb,OAAOX,OAAO,IAAI,CAACW,OAAO,KAAK;YAEnCF,MAAM,IAAI,CAACE,OAAO,KAAK;QAC3B;QAEA,OAAOX,OAAO,EAAE,CAAC;YACb,IAAIG,OAAO,EAAE;YACb,MAAMA,OAAO,IAAI,CAAC,IAAI;YACtB,QAAQ;mBAAIA,OAAO,MAAM;aAAC;YAC1BM;QACJ;IACJ;IAEA,OAAe,aACXC,IAAkB,EAClBH,OAAoB,EACpBH,YAAmC,EACU;QAC7C,IAAI,CAACM,KAAK,EAAE,EACR,OAAOb,KAAK,2BAA2B;YAAE,OAAO;QAAQ;QAE5D,IAAIU,QAAQ,GAAG,CAACG,KAAK,EAAE,GACnB,OAAOb,KAAK,CAAC,SAAS,EAAEa,KAAK,EAAE,CAAC,yBAAyB,CAAC,EAAE;YACxD,QAAQA,KAAK,EAAE;YACf,OAAO;QACX;QAEJH,QAAQ,GAAG,CAACG,KAAK,EAAE;QAEnB,IAAI,CAACA,KAAK,KAAK,IAAI,CAACA,KAAK,KAAK,CAAC,IAAI,IAC/B,OAAOb,KAAK,CAAC,MAAM,EAAEa,KAAK,EAAE,CAAC,gBAAgB,CAAC,EAAE;YAAE,QAAQA,KAAK,EAAE;YAAE,OAAO;QAAQ;QAGtF,MAAME,YAAYR,aAAaM;QAC/B,IAAIE,UAAU,MAAM,IAChB,OAAOZ,OAAO,IAAI,CAACY,UAAU,KAAK;QAItC,MAAM,EAAEC,WAAW,EAAE,GAAGC,MAAM,GAAGF,UAAU,KAAK;QAChD,MAAMG,qBAAqBF,aAAa;QACxC,OAAOb,OAAO,EAAE,CAAC;YACb,GAAGc,IAAI;YACP,OAAOF,UAAU,KAAK,CAAC,KAAK,IAAI;YAChC,GAAIG,qBAAqB;gBAAE,aAAaA;YAAmB,IAAI,CAAC,CAAC;YACjE,eAAeH,UAAU,KAAK,CAAC,aAAa,IAAI,EAAE;QACtD;IACJ;AACJ"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CmsModel } from "@webiny/api-headless-cms/types/index.js";
|
|
2
|
+
export interface IWorkflowModelProvider {
|
|
3
|
+
get(): Promise<CmsModel>;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Provides the tenant's `wbyWorkflow` model. A provider rather than the model itself: fetching a
|
|
7
|
+
* model is asynchronous and tenant-dependent, while DI resolution is synchronous.
|
|
8
|
+
*/
|
|
9
|
+
export declare const WorkflowModelProvider: import("@webiny/di").Abstraction<IWorkflowModelProvider>;
|
|
10
|
+
export declare namespace WorkflowModelProvider {
|
|
11
|
+
type Interface = IWorkflowModelProvider;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/abstractions/WorkflowModelProvider.js","sources":["../../../../src/domain/workflow/abstractions/WorkflowModelProvider.ts"],"sourcesContent":["import { createAbstraction } from \"@webiny/feature/api\";\nimport type { CmsModel } from \"@webiny/api-headless-cms/types/index.js\";\n\nexport interface IWorkflowModelProvider {\n get(): Promise<CmsModel>;\n}\n\n/**\n * Provides the tenant's `wbyWorkflow` model. A provider rather than the model itself: fetching a\n * model is asynchronous and tenant-dependent, while DI resolution is synchronous.\n */\nexport const WorkflowModelProvider =\n createAbstraction<IWorkflowModelProvider>(\"WorkflowModelProvider\");\n\nexport namespace WorkflowModelProvider {\n export type Interface = IWorkflowModelProvider;\n}\n"],"names":["WorkflowModelProvider","createAbstraction"],"mappings":";AAWO,MAAMA,wBACTC,kBAA0C"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { type Result } from "@webiny/feature/api";
|
|
2
|
+
import type { CmsEntryMeta } from "@webiny/api-headless-cms/types/index.js";
|
|
3
|
+
import type { Workflow, WorkflowValues } from "../types.js";
|
|
4
|
+
import type { WorkflowNotFoundError, WorkflowPersistenceError } from "../errors.js";
|
|
5
|
+
export interface WorkflowRepositoryListWhere {
|
|
6
|
+
/** Workflows bound to any of these namespace ids. */
|
|
7
|
+
models_in?: string[];
|
|
8
|
+
}
|
|
9
|
+
export interface WorkflowRepositoryListParams {
|
|
10
|
+
where?: WorkflowRepositoryListWhere;
|
|
11
|
+
limit?: number;
|
|
12
|
+
after?: string | null;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkflowRepositoryListResult {
|
|
15
|
+
items: Workflow[];
|
|
16
|
+
meta: CmsEntryMeta;
|
|
17
|
+
}
|
|
18
|
+
export interface IWorkflowRepository {
|
|
19
|
+
get(id: string): Promise<Result<Workflow, WorkflowNotFoundError | WorkflowPersistenceError>>;
|
|
20
|
+
list(params: WorkflowRepositoryListParams): Promise<Result<WorkflowRepositoryListResult, WorkflowPersistenceError>>;
|
|
21
|
+
create(values: WorkflowValues): Promise<Result<Workflow, WorkflowPersistenceError>>;
|
|
22
|
+
update(values: WorkflowValues): Promise<Result<Workflow, WorkflowNotFoundError | WorkflowPersistenceError>>;
|
|
23
|
+
delete(id: string): Promise<Result<void, WorkflowNotFoundError | WorkflowPersistenceError>>;
|
|
24
|
+
}
|
|
25
|
+
/** Reads and writes workflows (entries of the private `wbyWorkflow` model, always revision 1). */
|
|
26
|
+
export declare const WorkflowRepository: import("@webiny/di").Abstraction<IWorkflowRepository>;
|
|
27
|
+
export declare namespace WorkflowRepository {
|
|
28
|
+
type Interface = IWorkflowRepository;
|
|
29
|
+
type ListParams = WorkflowRepositoryListParams;
|
|
30
|
+
type ListWhere = WorkflowRepositoryListWhere;
|
|
31
|
+
type ListResult = WorkflowRepositoryListResult;
|
|
32
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/abstractions/WorkflowRepository.js","sources":["../../../../src/domain/workflow/abstractions/WorkflowRepository.ts"],"sourcesContent":["import { createAbstraction, type Result } from \"@webiny/feature/api\";\nimport type { CmsEntryMeta } from \"@webiny/api-headless-cms/types/index.js\";\nimport type { Workflow, WorkflowValues } from \"../types.js\";\nimport type { WorkflowNotFoundError, WorkflowPersistenceError } from \"../errors.js\";\n\nexport interface WorkflowRepositoryListWhere {\n /** Workflows bound to any of these namespace ids. */\n models_in?: string[];\n}\n\nexport interface WorkflowRepositoryListParams {\n where?: WorkflowRepositoryListWhere;\n limit?: number;\n after?: string | null;\n}\n\nexport interface WorkflowRepositoryListResult {\n items: Workflow[];\n meta: CmsEntryMeta;\n}\n\nexport interface IWorkflowRepository {\n get(id: string): Promise<Result<Workflow, WorkflowNotFoundError | WorkflowPersistenceError>>;\n list(\n params: WorkflowRepositoryListParams\n ): Promise<Result<WorkflowRepositoryListResult, WorkflowPersistenceError>>;\n create(values: WorkflowValues): Promise<Result<Workflow, WorkflowPersistenceError>>;\n update(\n values: WorkflowValues\n ): Promise<Result<Workflow, WorkflowNotFoundError | WorkflowPersistenceError>>;\n delete(id: string): Promise<Result<void, WorkflowNotFoundError | WorkflowPersistenceError>>;\n}\n\n/** Reads and writes workflows (entries of the private `wbyWorkflow` model, always revision 1). */\nexport const WorkflowRepository = createAbstraction<IWorkflowRepository>(\"WorkflowRepository\");\n\nexport namespace WorkflowRepository {\n export type Interface = IWorkflowRepository;\n export type ListParams = WorkflowRepositoryListParams;\n export type ListWhere = WorkflowRepositoryListWhere;\n export type ListResult = WorkflowRepositoryListResult;\n}\n"],"names":["WorkflowRepository","createAbstraction"],"mappings":";AAkCO,MAAMA,qBAAqBC,kBAAuC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { WorkflowStep } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* `canPick` for one step at submit (spec 5.3, D22): a review step whose config allows a manual
|
|
4
|
+
* pick. Computed from the workflow alone. The request-time conditions (write access to the
|
|
5
|
+
* target, D77; which users may be picked, D33/D61) belong to the app wrappers (request) and to
|
|
6
|
+
* routing, which validates the pick when the step is reached (R112).
|
|
7
|
+
*/
|
|
8
|
+
export declare const canPickReviewer: (step: WorkflowStep) => boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { parseReviewStepConfig } from "./reviewStepConfigSchema.js";
|
|
2
|
+
import { REVIEW_STEP_TYPE } from "./stepTypes.js";
|
|
3
|
+
const canPickReviewer = (step)=>{
|
|
4
|
+
if (step.type !== REVIEW_STEP_TYPE) return false;
|
|
5
|
+
const config = parseReviewStepConfig(step.config);
|
|
6
|
+
return config?.assignment.allowManualPick === true;
|
|
7
|
+
};
|
|
8
|
+
export { canPickReviewer };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=canPickReviewer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/canPickReviewer.js","sources":["../../../src/domain/workflow/canPickReviewer.ts"],"sourcesContent":["import type { WorkflowStep } from \"./types.js\";\nimport { parseReviewStepConfig } from \"./reviewStepConfigSchema.js\";\nimport { REVIEW_STEP_TYPE } from \"./stepTypes.js\";\n\n/**\n * `canPick` for one step at submit (spec 5.3, D22): a review step whose config allows a manual\n * pick. Computed from the workflow alone. The request-time conditions (write access to the\n * target, D77; which users may be picked, D33/D61) belong to the app wrappers (request) and to\n * routing, which validates the pick when the step is reached (R112).\n */\nexport const canPickReviewer = (step: WorkflowStep): boolean => {\n if (step.type !== REVIEW_STEP_TYPE) {\n return false;\n }\n const config = parseReviewStepConfig(step.config);\n return config?.assignment.allowManualPick === true;\n};\n"],"names":["canPickReviewer","step","REVIEW_STEP_TYPE","config","parseReviewStepConfig"],"mappings":";;AAUO,MAAMA,kBAAkB,CAACC;IAC5B,IAAIA,KAAK,IAAI,KAAKC,kBACd,OAAO;IAEX,MAAMC,SAASC,sBAAsBH,KAAK,MAAM;IAChD,OAAOE,QAAQ,WAAW,oBAAoB;AAClD"}
|
|
@@ -1,23 +1,61 @@
|
|
|
1
1
|
import { BaseError } from "@webiny/feature/api";
|
|
2
|
-
|
|
2
|
+
import type { PersistenceErrorSource } from "../PersistenceErrorSource.js";
|
|
3
|
+
import { PersistenceError } from "../../domain/PersistenceError.js";
|
|
4
|
+
import type { WorkflowBlockingReview, WorkflowIdentity } from "./types.js";
|
|
5
|
+
export interface WorkflowNotFoundErrorData {
|
|
3
6
|
id: string;
|
|
4
|
-
|
|
5
|
-
|
|
7
|
+
}
|
|
8
|
+
export declare class WorkflowNotFoundError extends BaseError<WorkflowNotFoundErrorData> {
|
|
6
9
|
readonly code: "Workflows/Workflow/NotFound";
|
|
7
|
-
constructor(data:
|
|
8
|
-
id: string;
|
|
9
|
-
app: string;
|
|
10
|
-
});
|
|
10
|
+
constructor(data: WorkflowNotFoundErrorData);
|
|
11
11
|
}
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
export interface WorkflowConflictErrorData {
|
|
13
|
+
savedOn: string;
|
|
14
|
+
savedBy: WorkflowIdentity;
|
|
15
15
|
}
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
/** The stored workflow changed after the caller loaded it (D131). */
|
|
17
|
+
export declare class WorkflowConflictError extends BaseError<WorkflowConflictErrorData> {
|
|
18
|
+
readonly code: "Workflows/Workflow/Conflict";
|
|
19
|
+
constructor(data: WorkflowConflictErrorData);
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
/**
|
|
22
|
+
* Where a validation problem is (R267, R288). `stepId` is null for a problem of the whole
|
|
23
|
+
* workflow; `field` is null when no field can be named; `workflowId` is the other workflow of the
|
|
24
|
+
* duplicate-model error; `ruleId` is the routing rule of a rule-level failure, null otherwise.
|
|
25
|
+
*/
|
|
26
|
+
export interface WorkflowValidationErrorData {
|
|
27
|
+
stepId: string | null;
|
|
28
|
+
field: string | null;
|
|
29
|
+
workflowId: string | null;
|
|
30
|
+
ruleId: string | null;
|
|
31
|
+
}
|
|
32
|
+
export declare class WorkflowValidationError extends BaseError<WorkflowValidationErrorData> {
|
|
21
33
|
readonly code: "Workflows/Workflow/Validation";
|
|
22
|
-
constructor(message: string);
|
|
34
|
+
constructor(message: string, where?: Partial<WorkflowValidationErrorData>);
|
|
35
|
+
}
|
|
36
|
+
/** Duck-typed so errors thrown by handlers in other packages are recognised. */
|
|
37
|
+
export declare const isWorkflowValidationError: (error: unknown) => error is WorkflowValidationError;
|
|
38
|
+
export declare class WorkflowPersistenceError extends PersistenceError {
|
|
39
|
+
readonly code: "Workflows/Workflow/Persistence";
|
|
40
|
+
constructor(error: PersistenceErrorSource);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* A lookup the workflow editor needs failed: the user directory, the teams, the notification
|
|
44
|
+
* transports or the viewer's permissions. Not the workflow storage, so the client is not told
|
|
45
|
+
* that the workflow could not be read or saved; the raw cause stays on `source` (R146).
|
|
46
|
+
*/
|
|
47
|
+
export declare class WorkflowLookupError extends PersistenceError {
|
|
48
|
+
readonly code: "Workflows/Workflow/Lookup";
|
|
49
|
+
constructor(error: PersistenceErrorSource);
|
|
50
|
+
}
|
|
51
|
+
export interface WorkflowHasActiveReviewsErrorData {
|
|
52
|
+
/** Exact number of in-progress reviews, regardless of what the caller can read (D115). */
|
|
53
|
+
count: number;
|
|
54
|
+
/** The engine returns every blocking review; app wrappers keep the first 5 readable (R57). */
|
|
55
|
+
reviews: WorkflowBlockingReview[];
|
|
56
|
+
}
|
|
57
|
+
/** D81, D115. */
|
|
58
|
+
export declare class WorkflowHasActiveReviewsError extends BaseError<WorkflowHasActiveReviewsErrorData> {
|
|
59
|
+
readonly code: "Workflows/Workflow/HasActiveReviews";
|
|
60
|
+
constructor(data: WorkflowHasActiveReviewsErrorData);
|
|
23
61
|
}
|
|
@@ -1,36 +1,53 @@
|
|
|
1
1
|
import { BaseError } from "@webiny/feature/api";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
2
|
+
import { PersistenceError } from "../PersistenceError.js";
|
|
3
|
+
class WorkflowNotFoundError extends BaseError {
|
|
4
|
+
constructor(data){
|
|
5
|
+
super({
|
|
6
|
+
message: `Workflow "${data.id}" was not found.`,
|
|
7
|
+
data
|
|
8
|
+
}), this.code = "Workflows/Workflow/NotFound";
|
|
9
|
+
}
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
11
|
+
class WorkflowConflictError extends BaseError {
|
|
12
|
+
constructor(data){
|
|
13
|
+
super({
|
|
14
|
+
message: `The workflow was changed by ${data.savedBy.displayName} on ${data.savedOn}. Reload it to see the latest version.`,
|
|
15
|
+
data
|
|
16
|
+
}), this.code = "Workflows/Workflow/Conflict";
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
class WorkflowValidationError extends BaseError {
|
|
20
|
+
constructor(message, where = {}){
|
|
21
|
+
super({
|
|
22
|
+
message,
|
|
23
|
+
data: {
|
|
24
|
+
stepId: where.stepId ?? null,
|
|
25
|
+
field: where.field ?? null,
|
|
26
|
+
workflowId: where.workflowId ?? null,
|
|
27
|
+
ruleId: where.ruleId ?? null
|
|
28
|
+
}
|
|
29
|
+
}), this.code = "Workflows/Workflow/Validation";
|
|
30
|
+
}
|
|
26
31
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
}
|
|
32
|
+
const isWorkflowValidationError = (error)=>error instanceof Error && "Workflows/Workflow/Validation" === error.code;
|
|
33
|
+
class WorkflowPersistenceError extends PersistenceError {
|
|
34
|
+
constructor(error){
|
|
35
|
+
super("The workflow could not be read or saved.", error), this.code = "Workflows/Workflow/Persistence";
|
|
36
|
+
}
|
|
34
37
|
}
|
|
38
|
+
class WorkflowLookupError extends PersistenceError {
|
|
39
|
+
constructor(error){
|
|
40
|
+
super("A lookup the workflow editor needs failed.", error), this.code = "Workflows/Workflow/Lookup";
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
class WorkflowHasActiveReviewsError extends BaseError {
|
|
44
|
+
constructor(data){
|
|
45
|
+
super({
|
|
46
|
+
message: `The workflow cannot be deleted while ${data.count} review(s) are in progress.`,
|
|
47
|
+
data
|
|
48
|
+
}), this.code = "Workflows/Workflow/HasActiveReviews";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
export { WorkflowConflictError, WorkflowHasActiveReviewsError, WorkflowLookupError, WorkflowNotFoundError, WorkflowPersistenceError, WorkflowValidationError, isWorkflowValidationError };
|
|
35
52
|
|
|
36
53
|
//# sourceMappingURL=errors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"
|
|
1
|
+
{"version":3,"file":"domain/workflow/errors.js","sources":["../../../src/domain/workflow/errors.ts"],"sourcesContent":["import { BaseError } from \"@webiny/feature/api\";\nimport type { PersistenceErrorSource } from \"../PersistenceErrorSource.js\";\nimport { PersistenceError } from \"~/domain/PersistenceError.js\";\nimport type { WorkflowBlockingReview, WorkflowIdentity } from \"./types.js\";\n\nexport interface WorkflowNotFoundErrorData {\n id: string;\n}\n\nexport class WorkflowNotFoundError extends BaseError<WorkflowNotFoundErrorData> {\n override readonly code = \"Workflows/Workflow/NotFound\" as const;\n\n constructor(data: WorkflowNotFoundErrorData) {\n super({\n message: `Workflow \"${data.id}\" was not found.`,\n data\n });\n }\n}\n\nexport interface WorkflowConflictErrorData {\n savedOn: string;\n savedBy: WorkflowIdentity;\n}\n\n/** The stored workflow changed after the caller loaded it (D131). */\nexport class WorkflowConflictError extends BaseError<WorkflowConflictErrorData> {\n override readonly code = \"Workflows/Workflow/Conflict\" as const;\n\n constructor(data: WorkflowConflictErrorData) {\n super({\n message: `The workflow was changed by ${data.savedBy.displayName} on ${data.savedOn}. Reload it to see the latest version.`,\n data\n });\n }\n}\n\n/**\n * Where a validation problem is (R267, R288). `stepId` is null for a problem of the whole\n * workflow; `field` is null when no field can be named; `workflowId` is the other workflow of the\n * duplicate-model error; `ruleId` is the routing rule of a rule-level failure, null otherwise.\n */\nexport interface WorkflowValidationErrorData {\n stepId: string | null;\n field: string | null;\n workflowId: string | null;\n ruleId: string | null;\n}\n\nexport class WorkflowValidationError extends BaseError<WorkflowValidationErrorData> {\n override readonly code = \"Workflows/Workflow/Validation\" as const;\n\n constructor(message: string, where: Partial<WorkflowValidationErrorData> = {}) {\n super({\n message,\n data: {\n stepId: where.stepId ?? null,\n field: where.field ?? null,\n workflowId: where.workflowId ?? null,\n ruleId: where.ruleId ?? null\n }\n });\n }\n}\n\n/** Duck-typed so errors thrown by handlers in other packages are recognised. */\nexport const isWorkflowValidationError = (error: unknown): error is WorkflowValidationError => {\n return (\n error instanceof Error &&\n (error as Partial<WorkflowValidationError>).code === \"Workflows/Workflow/Validation\"\n );\n};\n\nexport class WorkflowPersistenceError extends PersistenceError {\n override readonly code = \"Workflows/Workflow/Persistence\" as const;\n\n constructor(error: PersistenceErrorSource) {\n super(\"The workflow could not be read or saved.\", error);\n }\n}\n\n/**\n * A lookup the workflow editor needs failed: the user directory, the teams, the notification\n * transports or the viewer's permissions. Not the workflow storage, so the client is not told\n * that the workflow could not be read or saved; the raw cause stays on `source` (R146).\n */\nexport class WorkflowLookupError extends PersistenceError {\n override readonly code = \"Workflows/Workflow/Lookup\" as const;\n\n constructor(error: PersistenceErrorSource) {\n super(\"A lookup the workflow editor needs failed.\", error);\n }\n}\n\nexport interface WorkflowHasActiveReviewsErrorData {\n /** Exact number of in-progress reviews, regardless of what the caller can read (D115). */\n count: number;\n /** The engine returns every blocking review; app wrappers keep the first 5 readable (R57). */\n reviews: WorkflowBlockingReview[];\n}\n\n/** D81, D115. */\nexport class WorkflowHasActiveReviewsError extends BaseError<WorkflowHasActiveReviewsErrorData> {\n override readonly code = \"Workflows/Workflow/HasActiveReviews\" as const;\n\n constructor(data: WorkflowHasActiveReviewsErrorData) {\n super({\n message: `The workflow cannot be deleted while ${data.count} review(s) are in progress.`,\n data\n });\n }\n}\n"],"names":["WorkflowNotFoundError","BaseError","data","WorkflowConflictError","WorkflowValidationError","message","where","isWorkflowValidationError","error","Error","WorkflowPersistenceError","PersistenceError","WorkflowLookupError","WorkflowHasActiveReviewsError"],"mappings":";;AASO,MAAMA,8BAA8BC;IAGvC,YAAYC,IAA+B,CAAE;QACzC,KAAK,CAAC;YACF,SAAS,CAAC,UAAU,EAAEA,KAAK,EAAE,CAAC,gBAAgB,CAAC;YAC/CA;QACJ,SANc,IAAI,GAAG;IAOzB;AACJ;AAQO,MAAMC,8BAA8BF;IAGvC,YAAYC,IAA+B,CAAE;QACzC,KAAK,CAAC;YACF,SAAS,CAAC,4BAA4B,EAAEA,KAAK,OAAO,CAAC,WAAW,CAAC,IAAI,EAAEA,KAAK,OAAO,CAAC,sCAAsC,CAAC;YAC3HA;QACJ,SANc,IAAI,GAAG;IAOzB;AACJ;AAcO,MAAME,gCAAgCH;IAGzC,YAAYI,OAAe,EAAEC,QAA8C,CAAC,CAAC,CAAE;QAC3E,KAAK,CAAC;YACFD;YACA,MAAM;gBACF,QAAQC,MAAM,MAAM,IAAI;gBACxB,OAAOA,MAAM,KAAK,IAAI;gBACtB,YAAYA,MAAM,UAAU,IAAI;gBAChC,QAAQA,MAAM,MAAM,IAAI;YAC5B;QACJ,SAXc,IAAI,GAAG;IAYzB;AACJ;AAGO,MAAMC,4BAA4B,CAACC,QAElCA,iBAAiBC,SAChBD,AAAoD,oCAApDA,MAA2C,IAAI;AAIjD,MAAME,iCAAiCC;IAG1C,YAAYH,KAA6B,CAAE;QACvC,KAAK,CAAC,4CAA4CA,QAAAA,IAAAA,CAHpC,IAAI,GAAG;IAIzB;AACJ;AAOO,MAAMI,4BAA4BD;IAGrC,YAAYH,KAA6B,CAAE;QACvC,KAAK,CAAC,8CAA8CA,QAAAA,IAAAA,CAHtC,IAAI,GAAG;IAIzB;AACJ;AAUO,MAAMK,sCAAsCZ;IAG/C,YAAYC,IAAuC,CAAE;QACjD,KAAK,CAAC;YACF,SAAS,CAAC,qCAAqC,EAAEA,KAAK,KAAK,CAAC,2BAA2B,CAAC;YACxFA;QACJ,SANc,IAAI,GAAG;IAOzB;AACJ"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReviewStepConfig, ReviewStepConfigProblem } from "./types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The first problem of a parsed review step config, or null when it is valid: no teams, two rules
|
|
4
|
+
* with the same id, or a rule whose team target is not one of the step's teams (spec 4.1, 6). Shared by save
|
|
5
|
+
* (`WorkflowValidator`) and the inspector (R121). User targets need a lookup, so
|
|
6
|
+
* `StoreWorkflowUseCase` checks them (R122).
|
|
7
|
+
*/
|
|
8
|
+
export declare const findReviewStepConfigProblem: (config: ReviewStepConfig) => ReviewStepConfigProblem | null;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
const findReviewStepConfigProblem = (config)=>{
|
|
2
|
+
if (0 === config.teams.length) return {
|
|
3
|
+
type: "noTeams"
|
|
4
|
+
};
|
|
5
|
+
const ruleIds = new Set();
|
|
6
|
+
for (const rule of config.assignment.rules){
|
|
7
|
+
if (ruleIds.has(rule.id)) return {
|
|
8
|
+
type: "duplicateRuleId",
|
|
9
|
+
ruleId: rule.id
|
|
10
|
+
};
|
|
11
|
+
ruleIds.add(rule.id);
|
|
12
|
+
}
|
|
13
|
+
for (const rule of config.assignment.rules)if ("team" === rule.target.type && !config.teams.includes(rule.target.id)) return {
|
|
14
|
+
type: "teamTargetOutsideTeams",
|
|
15
|
+
ruleId: rule.id
|
|
16
|
+
};
|
|
17
|
+
return null;
|
|
18
|
+
};
|
|
19
|
+
export { findReviewStepConfigProblem };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=findReviewStepConfigProblem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/findReviewStepConfigProblem.js","sources":["../../../src/domain/workflow/findReviewStepConfigProblem.ts"],"sourcesContent":["import type { ReviewStepConfig, ReviewStepConfigProblem } from \"./types.js\";\n\n/**\n * The first problem of a parsed review step config, or null when it is valid: no teams, two rules\n * with the same id, or a rule whose team target is not one of the step's teams (spec 4.1, 6). Shared by save\n * (`WorkflowValidator`) and the inspector (R121). User targets need a lookup, so\n * `StoreWorkflowUseCase` checks them (R122).\n */\nexport const findReviewStepConfigProblem = (\n config: ReviewStepConfig\n): ReviewStepConfigProblem | null => {\n if (config.teams.length === 0) {\n return { type: \"noTeams\" };\n }\n const ruleIds = new Set<string>();\n for (const rule of config.assignment.rules) {\n if (ruleIds.has(rule.id)) {\n return { type: \"duplicateRuleId\", ruleId: rule.id };\n }\n ruleIds.add(rule.id);\n }\n for (const rule of config.assignment.rules) {\n if (rule.target.type === \"team\" && !config.teams.includes(rule.target.id)) {\n return { type: \"teamTargetOutsideTeams\", ruleId: rule.id };\n }\n }\n return null;\n};\n"],"names":["findReviewStepConfigProblem","config","ruleIds","Set","rule"],"mappings":"AAQO,MAAMA,8BAA8B,CACvCC;IAEA,IAAIA,AAAwB,MAAxBA,OAAO,KAAK,CAAC,MAAM,EACnB,OAAO;QAAE,MAAM;IAAU;IAE7B,MAAMC,UAAU,IAAIC;IACpB,KAAK,MAAMC,QAAQH,OAAO,UAAU,CAAC,KAAK,CAAE;QACxC,IAAIC,QAAQ,GAAG,CAACE,KAAK,EAAE,GACnB,OAAO;YAAE,MAAM;YAAmB,QAAQA,KAAK,EAAE;QAAC;QAEtDF,QAAQ,GAAG,CAACE,KAAK,EAAE;IACvB;IACA,KAAK,MAAMA,QAAQH,OAAO,UAAU,CAAC,KAAK,CACtC,IAAIG,AAAqB,WAArBA,KAAK,MAAM,CAAC,IAAI,IAAe,CAACH,OAAO,KAAK,CAAC,QAAQ,CAACG,KAAK,MAAM,CAAC,EAAE,GACpE,OAAO;QAAE,MAAM;QAA0B,QAAQA,KAAK,EAAE;IAAC;IAGjE,OAAO;AACX"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface RuleWithoutTarget {
|
|
2
|
+
/** The rule's id; null when the rule has none. */
|
|
3
|
+
ruleId: string | null;
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* The first routing rule of a raw review step config that is an object without an object
|
|
7
|
+
* `target` (R288). Runs on the config as received, before the schema, because the schema reports
|
|
8
|
+
* the same rule by index and without its id. A rule that is not an object is left to the schema.
|
|
9
|
+
*/
|
|
10
|
+
export declare const findRuleWithoutTarget: (config: unknown) => RuleWithoutTarget | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const isRecord = (value)=>"object" == typeof value && null !== value && !Array.isArray(value);
|
|
2
|
+
const findRuleWithoutTarget = (config)=>{
|
|
3
|
+
if (!isRecord(config) || !isRecord(config.assignment)) return null;
|
|
4
|
+
const rules = Array.isArray(config.assignment.rules) ? config.assignment.rules : [];
|
|
5
|
+
for (const rule of rules)if (isRecord(rule) && !isRecord(rule.target)) {
|
|
6
|
+
const ruleId = "string" == typeof rule.id && "" !== rule.id ? rule.id : null;
|
|
7
|
+
return {
|
|
8
|
+
ruleId
|
|
9
|
+
};
|
|
10
|
+
}
|
|
11
|
+
return null;
|
|
12
|
+
};
|
|
13
|
+
export { findRuleWithoutTarget };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=findRuleWithoutTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/findRuleWithoutTarget.js","sources":["../../../src/domain/workflow/findRuleWithoutTarget.ts"],"sourcesContent":["export interface RuleWithoutTarget {\n /** The rule's id; null when the rule has none. */\n ruleId: string | null;\n}\n\ntype UnknownRecord = Record<string, unknown>;\n\nconst isRecord = (value: unknown): value is UnknownRecord => {\n return typeof value === \"object\" && value !== null && !Array.isArray(value);\n};\n\n/**\n * The first routing rule of a raw review step config that is an object without an object\n * `target` (R288). Runs on the config as received, before the schema, because the schema reports\n * the same rule by index and without its id. A rule that is not an object is left to the schema.\n */\nexport const findRuleWithoutTarget = (config: unknown): RuleWithoutTarget | null => {\n if (!isRecord(config) || !isRecord(config.assignment)) {\n return null;\n }\n const rules = Array.isArray(config.assignment.rules) ? config.assignment.rules : [];\n for (const rule of rules) {\n if (isRecord(rule) && !isRecord(rule.target)) {\n const ruleId = typeof rule.id === \"string\" && rule.id !== \"\" ? rule.id : null;\n return { ruleId };\n }\n }\n return null;\n};\n"],"names":["isRecord","value","Array","findRuleWithoutTarget","config","rules","rule","ruleId"],"mappings":"AAOA,MAAMA,WAAW,CAACC,QACP,AAAiB,YAAjB,OAAOA,SAAsBA,AAAU,SAAVA,SAAkB,CAACC,MAAM,OAAO,CAACD;AAQlE,MAAME,wBAAwB,CAACC;IAClC,IAAI,CAACJ,SAASI,WAAW,CAACJ,SAASI,OAAO,UAAU,GAChD,OAAO;IAEX,MAAMC,QAAQH,MAAM,OAAO,CAACE,OAAO,UAAU,CAAC,KAAK,IAAIA,OAAO,UAAU,CAAC,KAAK,GAAG,EAAE;IACnF,KAAK,MAAME,QAAQD,MACf,IAAIL,SAASM,SAAS,CAACN,SAASM,KAAK,MAAM,GAAG;QAC1C,MAAMC,SAAS,AAAmB,YAAnB,OAAOD,KAAK,EAAE,IAAiBA,AAAY,OAAZA,KAAK,EAAE,GAAUA,KAAK,EAAE,GAAG;QACzE,OAAO;YAAEC;QAAO;IACpB;IAEJ,OAAO;AACX"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The error field of a step config problem that a schema found (R267): `config.<path>` with the
|
|
3
|
+
* zod issue path joined by dots (array indexes are path parts), or `config` when the issue has no
|
|
4
|
+
* path.
|
|
5
|
+
*/
|
|
6
|
+
export declare const getConfigIssueField: (path: readonly PropertyKey[]) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/getConfigIssueField.js","sources":["../../../src/domain/workflow/getConfigIssueField.ts"],"sourcesContent":["/**\n * The error field of a step config problem that a schema found (R267): `config.<path>` with the\n * zod issue path joined by dots (array indexes are path parts), or `config` when the issue has no\n * path.\n */\nexport const getConfigIssueField = (path: readonly PropertyKey[]): string => {\n if (path.length === 0) {\n return \"config\";\n }\n return `config.${path.map(String).join(\".\")}`;\n};\n"],"names":["getConfigIssueField","path","String"],"mappings":"AAKO,MAAMA,sBAAsB,CAACC;IAChC,IAAIA,AAAgB,MAAhBA,KAAK,MAAM,EACX,OAAO;IAEX,OAAO,CAAC,OAAO,EAAEA,KAAK,GAAG,CAACC,QAAQ,IAAI,CAAC,MAAM;AACjD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { WorkflowValues } from "./types.js";
|
|
2
|
+
/** Whether a namespace id belongs to the app, e.g. `cms.<modelId>` or `wb.page`. */
|
|
3
|
+
export type AppNamespacePredicate = (model: string) => boolean;
|
|
4
|
+
/** Every model is one of the app's namespaces; an empty list is left to the engine's validation. */
|
|
5
|
+
export declare const belongsToApp: (models: string[], isAppNamespace: AppNamespacePredicate) => boolean;
|
|
6
|
+
/** A stored workflow of the app (R46): bound to at least one model, all of them the app's. */
|
|
7
|
+
export declare const isAppWorkflow: (workflow: WorkflowValues, isAppNamespace: AppNamespacePredicate) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
const belongsToApp = (models, isAppNamespace)=>models.every(isAppNamespace);
|
|
2
|
+
const isAppWorkflow = (workflow, isAppNamespace)=>workflow.models.length > 0 && belongsToApp(workflow.models, isAppNamespace);
|
|
3
|
+
export { belongsToApp, isAppWorkflow };
|
|
4
|
+
|
|
5
|
+
//# sourceMappingURL=isAppWorkflow.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/isAppWorkflow.js","sources":["../../../src/domain/workflow/isAppWorkflow.ts"],"sourcesContent":["import type { WorkflowValues } from \"./types.js\";\n\n/** Whether a namespace id belongs to the app, e.g. `cms.<modelId>` or `wb.page`. */\nexport type AppNamespacePredicate = (model: string) => boolean;\n\n/** Every model is one of the app's namespaces; an empty list is left to the engine's validation. */\nexport const belongsToApp = (models: string[], isAppNamespace: AppNamespacePredicate): boolean => {\n return models.every(isAppNamespace);\n};\n\n/** A stored workflow of the app (R46): bound to at least one model, all of them the app's. */\nexport const isAppWorkflow = (\n workflow: WorkflowValues,\n isAppNamespace: AppNamespacePredicate\n): boolean => {\n return workflow.models.length > 0 && belongsToApp(workflow.models, isAppNamespace);\n};\n"],"names":["belongsToApp","models","isAppNamespace","isAppWorkflow","workflow"],"mappings":"AAMO,MAAMA,eAAe,CAACC,QAAkBC,iBACpCD,OAAO,KAAK,CAACC;AAIjB,MAAMC,gBAAgB,CACzBC,UACAF,iBAEOE,SAAS,MAAM,CAAC,MAAM,GAAG,KAAKJ,aAAaI,SAAS,MAAM,EAAEF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import zod from "zod";
|
|
2
|
+
import type { ReviewStepConfig } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* Config of a "review" step (spec 4.1): the `configSchema` of the built-in `ReviewStepType`
|
|
5
|
+
* (R131). Stored as JSON on the workflow and review models.
|
|
6
|
+
*/
|
|
7
|
+
export declare const reviewStepConfigSchema: zod.ZodObject<{
|
|
8
|
+
teams: zod.ZodArray<zod.ZodString>;
|
|
9
|
+
assignment: zod.ZodObject<{
|
|
10
|
+
strategy: zod.ZodEnum<{
|
|
11
|
+
leastLoaded: "leastLoaded";
|
|
12
|
+
none: "none";
|
|
13
|
+
roundRobin: "roundRobin";
|
|
14
|
+
}>;
|
|
15
|
+
allowManualPick: zod.ZodBoolean;
|
|
16
|
+
rules: zod.ZodArray<zod.ZodObject<{
|
|
17
|
+
id: zod.ZodString;
|
|
18
|
+
conditions: zod.ZodObject<{
|
|
19
|
+
requesterUserId: zod.ZodOptional<zod.ZodString>;
|
|
20
|
+
requesterTeamId: zod.ZodOptional<zod.ZodString>;
|
|
21
|
+
folder: zod.ZodOptional<zod.ZodObject<{
|
|
22
|
+
id: zod.ZodString;
|
|
23
|
+
type: zod.ZodString;
|
|
24
|
+
includeDescendants: zod.ZodBoolean;
|
|
25
|
+
}, zod.core.$strip>>;
|
|
26
|
+
modelId: zod.ZodOptional<zod.ZodString>;
|
|
27
|
+
}, zod.core.$strip>;
|
|
28
|
+
target: zod.ZodObject<{
|
|
29
|
+
type: zod.ZodEnum<{
|
|
30
|
+
team: "team";
|
|
31
|
+
user: "user";
|
|
32
|
+
}>;
|
|
33
|
+
id: zod.ZodString;
|
|
34
|
+
}, zod.core.$strip>;
|
|
35
|
+
}, zod.core.$strip>>;
|
|
36
|
+
}, zod.core.$strip>;
|
|
37
|
+
}, zod.core.$strip>;
|
|
38
|
+
/** Parses a stored review step config; `null` when it does not match the schema. */
|
|
39
|
+
export declare const parseReviewStepConfig: (config: unknown) => ReviewStepConfig | null;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import zod from "zod";
|
|
2
|
+
const routingRuleFolderConditionSchema = zod.object({
|
|
3
|
+
id: zod.string().min(1, "Folder ID is required."),
|
|
4
|
+
type: zod.string().min(1, "Folder type is required."),
|
|
5
|
+
includeDescendants: zod.boolean()
|
|
6
|
+
});
|
|
7
|
+
const routingRuleSchema = zod.object({
|
|
8
|
+
id: zod.string().min(1, "Rule ID is required."),
|
|
9
|
+
conditions: zod.object({
|
|
10
|
+
requesterUserId: zod.string().min(1).optional(),
|
|
11
|
+
requesterTeamId: zod.string().min(1).optional(),
|
|
12
|
+
folder: routingRuleFolderConditionSchema.optional(),
|
|
13
|
+
modelId: zod.string().min(1).optional()
|
|
14
|
+
}),
|
|
15
|
+
target: zod.object({
|
|
16
|
+
type: zod["enum"]([
|
|
17
|
+
"user",
|
|
18
|
+
"team"
|
|
19
|
+
]),
|
|
20
|
+
id: zod.string().min(1, "Rule target ID is required.")
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
const reviewStepConfigSchema = zod.object({
|
|
24
|
+
teams: zod.array(zod.string().min(1, "Team ID is required.")),
|
|
25
|
+
assignment: zod.object({
|
|
26
|
+
strategy: zod["enum"]([
|
|
27
|
+
"none",
|
|
28
|
+
"roundRobin",
|
|
29
|
+
"leastLoaded"
|
|
30
|
+
]),
|
|
31
|
+
allowManualPick: zod.boolean(),
|
|
32
|
+
rules: zod.array(routingRuleSchema)
|
|
33
|
+
})
|
|
34
|
+
});
|
|
35
|
+
const parseReviewStepConfig = (config)=>{
|
|
36
|
+
const result = reviewStepConfigSchema.safeParse(config);
|
|
37
|
+
return result.success ? result.data : null;
|
|
38
|
+
};
|
|
39
|
+
export { parseReviewStepConfig, reviewStepConfigSchema };
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=reviewStepConfigSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/workflow/reviewStepConfigSchema.js","sources":["../../../src/domain/workflow/reviewStepConfigSchema.ts"],"sourcesContent":["import zod from \"zod\";\nimport type { ReviewStepConfig } from \"./types.js\";\n\nconst routingRuleFolderConditionSchema = zod.object({\n id: zod.string().min(1, \"Folder ID is required.\"),\n type: zod.string().min(1, \"Folder type is required.\"),\n includeDescendants: zod.boolean()\n});\n\nconst routingRuleSchema = zod.object({\n id: zod.string().min(1, \"Rule ID is required.\"),\n conditions: zod.object({\n requesterUserId: zod.string().min(1).optional(),\n requesterTeamId: zod.string().min(1).optional(),\n folder: routingRuleFolderConditionSchema.optional(),\n modelId: zod.string().min(1).optional()\n }),\n target: zod.object({\n type: zod.enum([\"user\", \"team\"]),\n id: zod.string().min(1, \"Rule target ID is required.\")\n })\n});\n\n/**\n * Config of a \"review\" step (spec 4.1): the `configSchema` of the built-in `ReviewStepType`\n * (R131). Stored as JSON on the workflow and review models.\n */\nexport const reviewStepConfigSchema = zod.object({\n teams: zod.array(zod.string().min(1, \"Team ID is required.\")),\n assignment: zod.object({\n strategy: zod.enum([\"none\", \"roundRobin\", \"leastLoaded\"]),\n allowManualPick: zod.boolean(),\n rules: zod.array(routingRuleSchema)\n })\n});\n\n/** Parses a stored review step config; `null` when it does not match the schema. */\nexport const parseReviewStepConfig = (config: unknown): ReviewStepConfig | null => {\n const result = reviewStepConfigSchema.safeParse(config);\n return result.success ? result.data : null;\n};\n"],"names":["routingRuleFolderConditionSchema","zod","routingRuleSchema","reviewStepConfigSchema","parseReviewStepConfig","config","result"],"mappings":";AAGA,MAAMA,mCAAmCC,IAAI,MAAM,CAAC;IAChD,IAAIA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG;IACxB,MAAMA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG;IAC1B,oBAAoBA,IAAI,OAAO;AACnC;AAEA,MAAMC,oBAAoBD,IAAI,MAAM,CAAC;IACjC,IAAIA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG;IACxB,YAAYA,IAAI,MAAM,CAAC;QACnB,iBAAiBA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG,QAAQ;QAC7C,iBAAiBA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG,QAAQ;QAC7C,QAAQD,iCAAiC,QAAQ;QACjD,SAASC,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG,QAAQ;IACzC;IACA,QAAQA,IAAI,MAAM,CAAC;QACf,MAAMA,GAAG,CAAHA,OAAQ,CAAC;YAAC;YAAQ;SAAO;QAC/B,IAAIA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG;IAC5B;AACJ;AAMO,MAAME,yBAAyBF,IAAI,MAAM,CAAC;IAC7C,OAAOA,IAAI,KAAK,CAACA,IAAI,MAAM,GAAG,GAAG,CAAC,GAAG;IACrC,YAAYA,IAAI,MAAM,CAAC;QACnB,UAAUA,GAAG,CAAHA,OAAQ,CAAC;YAAC;YAAQ;YAAc;SAAc;QACxD,iBAAiBA,IAAI,OAAO;QAC5B,OAAOA,IAAI,KAAK,CAACC;IACrB;AACJ;AAGO,MAAME,wBAAwB,CAACC;IAClC,MAAMC,SAASH,uBAAuB,SAAS,CAACE;IAChD,OAAOC,OAAO,OAAO,GAAGA,OAAO,IAAI,GAAG;AAC1C"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The field of every rule-level failure (R288): the rule is named by `ruleId` in the error data,
|
|
3
|
+
* not by an index, so the editor finds it again after a reorder.
|
|
4
|
+
*/
|
|
5
|
+
export declare const RULE_TARGET_FIELD = "config.assignment.rules.target";
|
|
6
|
+
/**
|
|
7
|
+
* The field of a step whose rules share an id. The error names no `ruleId`: the id does not pick
|
|
8
|
+
* out one rule.
|
|
9
|
+
*/
|
|
10
|
+
export declare const RULES_FIELD = "config.assignment.rules";
|
|
11
|
+
/**
|
|
12
|
+
* Two rules of a step share an id. Save names the step; the inspector has only the config and no
|
|
13
|
+
* step title, so it passes `null`.
|
|
14
|
+
*/
|
|
15
|
+
export declare const getRuleIdDuplicateMessage: (stepTitle: string | null, ruleId: string) => string;
|
|
16
|
+
/** A user target who is not a member of the step's teams; checked on save (R122, Q51). */
|
|
17
|
+
export declare const RULE_TARGET_USER_NOT_MEMBER_MESSAGE = "The target user is not a member of the step's teams.";
|
|
18
|
+
/** A team target whose team no longer exists; checked on save while teams are on (D174). */
|
|
19
|
+
export declare const RULE_TARGET_TEAM_DELETED_MESSAGE = "The team was deleted.";
|
|
20
|
+
/** A team target outside the step's teams; checked on save and by the inspector (Q52). */
|
|
21
|
+
export declare const RULE_TARGET_TEAM_OUTSIDE_TEAMS_MESSAGE = "The target team is not one of the step's reviewing teams.";
|
|
22
|
+
/**
|
|
23
|
+
* A rule without a target. Save names the step; the inspector has only the config and no step
|
|
24
|
+
* title, so it passes `null`.
|
|
25
|
+
*/
|
|
26
|
+
export declare const getRuleTargetMissingMessage: (stepTitle: string | null) => string;
|