@webiny/api-workflows 0.0.0-unstable.b9b64acb6d → 0.0.0-unstable.d0f34a8194
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 -11
- package/graphql/validation/approveWorkflowState.js +0 -7
- package/graphql/validation/approveWorkflowState.js.map +0 -1
- package/graphql/validation/cancelWorkflowState.d.ts +0 -8
- package/graphql/validation/cancelWorkflowState.js +0 -6
- package/graphql/validation/cancelWorkflowState.js.map +0 -1
- package/graphql/validation/createWorkflowState.d.ts +0 -14
- package/graphql/validation/createWorkflowState.js +0 -8
- package/graphql/validation/createWorkflowState.js.map +0 -1
- package/graphql/validation/deleteWorkflow.d.ts +0 -11
- package/graphql/validation/deleteWorkflow.js +0 -7
- package/graphql/validation/deleteWorkflow.js.map +0 -1
- package/graphql/validation/getTargetWorkflowState.d.ts +0 -11
- package/graphql/validation/getTargetWorkflowState.js +0 -7
- package/graphql/validation/getTargetWorkflowState.js.map +0 -1
- package/graphql/validation/getWorkflow.d.ts +0 -11
- package/graphql/validation/getWorkflow.js +0 -7
- package/graphql/validation/getWorkflow.js.map +0 -1
- package/graphql/validation/getWorkflowState.d.ts +0 -8
- package/graphql/validation/getWorkflowState.js +0 -6
- package/graphql/validation/getWorkflowState.js.map +0 -1
- package/graphql/validation/listWorkflowStates.d.ts +0 -108
- package/graphql/validation/listWorkflowStates.js +0 -42
- package/graphql/validation/listWorkflowStates.js.map +0 -1
- package/graphql/validation/listWorkflows.d.ts +0 -42
- package/graphql/validation/listWorkflows.js +0 -22
- package/graphql/validation/listWorkflows.js.map +0 -1
- package/graphql/validation/rejectWorkflowState.d.ts +0 -11
- package/graphql/validation/rejectWorkflowState.js +0 -7
- package/graphql/validation/rejectWorkflowState.js.map +0 -1
- package/graphql/validation/startWorkflowState.d.ts +0 -8
- package/graphql/validation/startWorkflowState.js +0 -6
- package/graphql/validation/startWorkflowState.js.map +0 -1
- package/graphql/validation/step.d.ts +0 -49
- package/graphql/validation/step.js +0 -21
- package/graphql/validation/step.js.map +0 -1
- package/graphql/validation/storeWorkflow.d.ts +0 -107
- package/graphql/validation/storeWorkflow.js +0 -9
- package/graphql/validation/storeWorkflow.js.map +0 -1
- package/graphql/validation/takeOverWorkflowStateStep.d.ts +0 -8
- package/graphql/validation/takeOverWorkflowStateStep.js +0 -6
- package/graphql/validation/takeOverWorkflowStateStep.js.map +0 -1
- package/graphql/validation/workflow.d.ts +0 -80
- 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,9 @@
|
|
|
1
|
+
const redactAssignmentRecords = (records, permissions)=>{
|
|
2
|
+
if (permissions.editor || permissions.reassign) return [
|
|
3
|
+
...records
|
|
4
|
+
];
|
|
5
|
+
return records.filter((record)=>"skip" !== record.kind);
|
|
6
|
+
};
|
|
7
|
+
export { redactAssignmentRecords };
|
|
8
|
+
|
|
9
|
+
//# sourceMappingURL=redactAssignmentRecords.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/assignment/redactAssignmentRecords.js","sources":["../../../src/domain/assignment/redactAssignmentRecords.ts"],"sourcesContent":["import type { WorkflowsPermissionSet } from \"~/domain/permissions/types.js\";\nimport type { AssignmentRecord } from \"./types.js\";\n\n/**\n * The assignment entries one viewer may see (spec 8, D89, D127, R96). Pure. `editor` and\n * `reassign` (full access sets both) see every record; everyone else sees only the outcomes,\n * because a skip names a person and why they were passed over. Order is kept.\n */\nexport const redactAssignmentRecords = <TRecord extends AssignmentRecord>(\n records: TRecord[],\n permissions: WorkflowsPermissionSet\n): TRecord[] => {\n if (permissions.editor || permissions.reassign) {\n return [...records];\n }\n return records.filter(record => record.kind !== \"skip\");\n};\n"],"names":["redactAssignmentRecords","records","permissions","record"],"mappings":"AAQO,MAAMA,0BAA0B,CACnCC,SACAC;IAEA,IAAIA,YAAY,MAAM,IAAIA,YAAY,QAAQ,EAC1C,OAAO;WAAID;KAAQ;IAEvB,OAAOA,QAAQ,MAAM,CAACE,CAAAA,SAAUA,AAAgB,WAAhBA,OAAO,IAAI;AAC/C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ReviewFact } from "../../domain/review/facts.js";
|
|
2
|
+
import type { ReviewData } from "../../domain/review/types.js";
|
|
3
|
+
import type { AssignmentRecordValues } from "./types.js";
|
|
4
|
+
/**
|
|
5
|
+
* The assignment-log records one saved fact produces, in decision order (spec 4.3, 6, R117).
|
|
6
|
+
* Pure. Step reached carries the resolver's skips and outcome; start, take over and reassign carry one
|
|
7
|
+
* outcome. `assignedOn` is the fact's time, which is the reach `now`. Every fact type has a case,
|
|
8
|
+
* so a new fact does not compile until it says whether it writes records.
|
|
9
|
+
*/
|
|
10
|
+
export declare const toAssignmentRecordValues: (review: ReviewData, fact: ReviewFact) => AssignmentRecordValues[];
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const toAssignmentRecordValues = (review, fact)=>{
|
|
2
|
+
switch(fact.type){
|
|
3
|
+
case "stepReached":
|
|
4
|
+
case "stepStarted":
|
|
5
|
+
case "stepTakenOver":
|
|
6
|
+
case "stepReassigned":
|
|
7
|
+
return fact.records.map((record)=>({
|
|
8
|
+
...record,
|
|
9
|
+
by: record.by ? {
|
|
10
|
+
...record.by
|
|
11
|
+
} : null,
|
|
12
|
+
reviewId: review.id,
|
|
13
|
+
workflowId: review.workflowId,
|
|
14
|
+
stepId: fact.change.stepId,
|
|
15
|
+
assignedOn: fact.occurredOn
|
|
16
|
+
}));
|
|
17
|
+
case "requested":
|
|
18
|
+
case "stepApproved":
|
|
19
|
+
case "stepRejected":
|
|
20
|
+
case "stepFailed":
|
|
21
|
+
case "stepRestarted":
|
|
22
|
+
case "cancelled":
|
|
23
|
+
case "approved":
|
|
24
|
+
return [];
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
export { toAssignmentRecordValues };
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=toAssignmentRecordValues.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/assignment/toAssignmentRecordValues.js","sources":["../../../src/domain/assignment/toAssignmentRecordValues.ts"],"sourcesContent":["import type { ReviewFact } from \"~/domain/review/facts.js\";\nimport type { ReviewData } from \"~/domain/review/types.js\";\nimport type { AssignmentRecordValues } from \"./types.js\";\n\n/**\n * The assignment-log records one saved fact produces, in decision order (spec 4.3, 6, R117).\n * Pure. Step reached carries the resolver's skips and outcome; start, take over and reassign carry one\n * outcome. `assignedOn` is the fact's time, which is the reach `now`. Every fact type has a case,\n * so a new fact does not compile until it says whether it writes records.\n */\nexport const toAssignmentRecordValues = (\n review: ReviewData,\n fact: ReviewFact\n): AssignmentRecordValues[] => {\n switch (fact.type) {\n case \"stepReached\":\n case \"stepStarted\":\n case \"stepTakenOver\":\n case \"stepReassigned\":\n return fact.records.map((record): AssignmentRecordValues => {\n return {\n ...record,\n by: record.by ? { ...record.by } : null,\n reviewId: review.id,\n workflowId: review.workflowId,\n stepId: fact.change.stepId,\n assignedOn: fact.occurredOn\n };\n });\n case \"requested\":\n case \"stepApproved\":\n case \"stepRejected\":\n case \"stepFailed\":\n case \"stepRestarted\":\n case \"cancelled\":\n case \"approved\":\n return [];\n }\n};\n"],"names":["toAssignmentRecordValues","review","fact","record"],"mappings":"AAUO,MAAMA,2BAA2B,CACpCC,QACAC;IAEA,OAAQA,KAAK,IAAI;QACb,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACD,OAAOA,KAAK,OAAO,CAAC,GAAG,CAAC,CAACC,SACd;oBACH,GAAGA,MAAM;oBACT,IAAIA,OAAO,EAAE,GAAG;wBAAE,GAAGA,OAAO,EAAE;oBAAC,IAAI;oBACnC,UAAUF,OAAO,EAAE;oBACnB,YAAYA,OAAO,UAAU;oBAC7B,QAAQC,KAAK,MAAM,CAAC,MAAM;oBAC1B,YAAYA,KAAK,UAAU;gBAC/B;QAER,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;QACL,KAAK;YACD,OAAO,EAAE;IACjB;AACJ"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import type { Actor, ReviewData, ReviewStep, ReviewViewerFlags } from "../../domain/review/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* `outcome`: who got the step (pick, rule, strategy, pool, start, take over, reassign). `skip`: a
|
|
4
|
+
* person passed over, with the reason (requester, excluded, not a member, cannot read); only
|
|
5
|
+
* viewers with `editor` or `reassign` see these (D89, D127).
|
|
6
|
+
*/
|
|
7
|
+
export type AssignmentRecordKind = "outcome" | "skip";
|
|
8
|
+
/**
|
|
9
|
+
* Why a step has its owner (R109). `rule`: a rule's user target; a rule's team target leaves the
|
|
10
|
+
* strategy name or `pool` with the rule in `ruleId`. `poolStart`, `takeOver` and `reassign` are
|
|
11
|
+
* the transitions that change the owner after the step was reached.
|
|
12
|
+
*/
|
|
13
|
+
export type AssignmentSource = "picked" | "rule" | "roundRobin" | "leastLoaded" | "pool" | "poolStart" | "takeOver" | "reassign";
|
|
14
|
+
/**
|
|
15
|
+
* One assignment decision, before it is tied to a saved review (R117): the resolver and the
|
|
16
|
+
* transitions produce these, `ReviewSaver` writes them after the save.
|
|
17
|
+
*/
|
|
18
|
+
export interface AssignmentDecision {
|
|
19
|
+
kind: AssignmentRecordKind;
|
|
20
|
+
/**
|
|
21
|
+
* The owner (outcome) or the person passed over (skip); `null` for the pool and for a skipped
|
|
22
|
+
* rule whose team target is not one of the step's teams.
|
|
23
|
+
*/
|
|
24
|
+
userId: string | null;
|
|
25
|
+
source: AssignmentSource;
|
|
26
|
+
/** The rule that decided or was skipped; `null` otherwise. */
|
|
27
|
+
ruleId: string | null;
|
|
28
|
+
/** Who acted, for take over and reassign. */
|
|
29
|
+
by: Actor | null;
|
|
30
|
+
/**
|
|
31
|
+
* A fixed text for skips and pool fall-through (R112, R116). Never an exclusion's own reason
|
|
32
|
+
* (D89, D97).
|
|
33
|
+
*/
|
|
34
|
+
reason: string | null;
|
|
35
|
+
}
|
|
36
|
+
/** One assignment-log record (spec 4.3, D20, D45, D127), written after the review save (R117). */
|
|
37
|
+
export interface AssignmentRecordValues extends AssignmentDecision {
|
|
38
|
+
reviewId: string;
|
|
39
|
+
workflowId: string;
|
|
40
|
+
stepId: string;
|
|
41
|
+
assignedOn: string;
|
|
42
|
+
}
|
|
43
|
+
export interface AssignmentRecord extends AssignmentRecordValues {
|
|
44
|
+
id: string;
|
|
45
|
+
}
|
|
46
|
+
/** A record as the review screens read it (D127, R251). */
|
|
47
|
+
export interface AssignmentEntry extends AssignmentRecord {
|
|
48
|
+
/** The user's display name; `null` without a user, for a deleted user or when it could not be read. */
|
|
49
|
+
userDisplayName: string | null;
|
|
50
|
+
}
|
|
51
|
+
/** A review step with its assignment-log entries, newest first (D127). */
|
|
52
|
+
export interface ReviewStepWithAssignments extends ReviewStep {
|
|
53
|
+
assignments: AssignmentEntry[];
|
|
54
|
+
}
|
|
55
|
+
/** A review as the get-review wrappers return it: each step carries its entries (R96). */
|
|
56
|
+
export interface ReviewWithAssignments extends Omit<ReviewData, "steps"> {
|
|
57
|
+
steps: ReviewStepWithAssignments[];
|
|
58
|
+
}
|
|
59
|
+
/** The get-review wrappers' value: the review with entries and the viewer's flags (spec 5.3). */
|
|
60
|
+
export interface ReviewWithAssignmentsAndViewerFlags {
|
|
61
|
+
review: ReviewWithAssignments;
|
|
62
|
+
flags: ReviewViewerFlags;
|
|
63
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import zod from "zod";
|
|
2
|
+
/** The stored config of an "automation" step (R133). */
|
|
3
|
+
export interface AutomationStepConfig {
|
|
4
|
+
automationId: string;
|
|
5
|
+
/** Validated against the definition's `settingsSchema`; stored as the author entered them and parsed again on every use. */
|
|
6
|
+
settings: Record<string, unknown>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* The shell of an automation step's config: which automation, and its settings. The settings
|
|
10
|
+
* themselves are validated against the chosen definition's `settingsSchema`, not here. This is
|
|
11
|
+
* the step type's `configSchema` (what `listStepTypes` returns); the editor gets the settings
|
|
12
|
+
* schema per automation from `listAutomationDefinitions`.
|
|
13
|
+
*/
|
|
14
|
+
export declare const automationStepConfigSchema: zod.ZodObject<{
|
|
15
|
+
automationId: zod.ZodString;
|
|
16
|
+
settings: zod.ZodRecord<zod.ZodString, zod.ZodUnknown>;
|
|
17
|
+
}, zod.core.$strip>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import zod from "zod";
|
|
2
|
+
const automationStepConfigSchema = zod.object({
|
|
3
|
+
automationId: zod.string().min(1),
|
|
4
|
+
settings: zod.record(zod.string(), zod.unknown())
|
|
5
|
+
});
|
|
6
|
+
export { automationStepConfigSchema };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=automationStepConfigSchema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/automation/automationStepConfigSchema.js","sources":["../../../src/domain/automation/automationStepConfigSchema.ts"],"sourcesContent":["import zod from \"zod\";\n\n/** The stored config of an \"automation\" step (R133). */\nexport interface AutomationStepConfig {\n automationId: string;\n /** Validated against the definition's `settingsSchema`; stored as the author entered them and parsed again on every use. */\n settings: Record<string, unknown>;\n}\n\n/**\n * The shell of an automation step's config: which automation, and its settings. The settings\n * themselves are validated against the chosen definition's `settingsSchema`, not here. This is\n * the step type's `configSchema` (what `listStepTypes` returns); the editor gets the settings\n * schema per automation from `listAutomationDefinitions`.\n */\nexport const automationStepConfigSchema = zod.object({\n automationId: zod.string().min(1),\n settings: zod.record(zod.string(), zod.unknown())\n});\n"],"names":["automationStepConfigSchema","zod"],"mappings":";AAeO,MAAMA,6BAA6BC,IAAI,MAAM,CAAC;IACjD,cAAcA,IAAI,MAAM,GAAG,GAAG,CAAC;IAC/B,UAAUA,IAAI,MAAM,CAACA,IAAI,MAAM,IAAIA,IAAI,OAAO;AAClD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Actor } from "../../domain/review/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* The actor of an automation step (spec 5.2, D58, D107, R141): the requester's id and name with
|
|
4
|
+
* the `automation` type, so the step's owner, its approve and reject facts and its `fail` facts
|
|
5
|
+
* say who the automation acts for. `identityType` is omitted: an automation is not an identity.
|
|
6
|
+
* Pure.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getAutomationActor: (requester: Actor) => Actor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/automation/getAutomationActor.js","sources":["../../../src/domain/automation/getAutomationActor.ts"],"sourcesContent":["import type { Actor } from \"~/domain/review/types.js\";\n\n/**\n * The actor of an automation step (spec 5.2, D58, D107, R141): the requester's id and name with\n * the `automation` type, so the step's owner, its approve and reject facts and its `fail` facts\n * say who the automation acts for. `identityType` is omitted: an automation is not an identity.\n * Pure.\n */\nexport const getAutomationActor = (requester: Actor): Actor => {\n return {\n type: \"automation\",\n id: requester.id,\n displayName: requester.displayName\n };\n};\n"],"names":["getAutomationActor","requester"],"mappings":"AAQO,MAAMA,qBAAqB,CAACC,YACxB;QACH,MAAM;QACN,IAAIA,UAAU,EAAE;QAChB,aAAaA,UAAU,WAAW;IACtC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AuthenticatedIdentity } from "@webiny/api-core/features/security/IdentityContext/index.js";
|
|
2
|
+
import type { Actor } from "../../domain/review/types.js";
|
|
3
|
+
/**
|
|
4
|
+
* The identity an automation step runs as (D58, D87, R149, R161): the review's requester, with
|
|
5
|
+
* the requester's identity type (`admin` when it has none) and tenant access. The trigger and
|
|
6
|
+
* the run handler both use it, so the task's `createdBy` and the handler's identity match.
|
|
7
|
+
* Pure.
|
|
8
|
+
*/
|
|
9
|
+
export declare const getRequesterIdentity: (requester: Actor) => AuthenticatedIdentity;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuthenticatedIdentity } from "@webiny/api-core/features/security/IdentityContext/index.js";
|
|
2
|
+
const getRequesterIdentity = (requester)=>new AuthenticatedIdentity({
|
|
3
|
+
id: requester.id,
|
|
4
|
+
displayName: requester.displayName,
|
|
5
|
+
type: requester.identityType ?? "admin",
|
|
6
|
+
context: {
|
|
7
|
+
canAccessTenant: true
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
export { getRequesterIdentity };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=getRequesterIdentity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/automation/getRequesterIdentity.js","sources":["../../../src/domain/automation/getRequesterIdentity.ts"],"sourcesContent":["import { AuthenticatedIdentity } from \"@webiny/api-core/features/security/IdentityContext/index.js\";\nimport type { Actor } from \"~/domain/review/types.js\";\n\n/**\n * The identity an automation step runs as (D58, D87, R149, R161): the review's requester, with\n * the requester's identity type (`admin` when it has none) and tenant access. The trigger and\n * the run handler both use it, so the task's `createdBy` and the handler's identity match.\n * Pure.\n */\nexport const getRequesterIdentity = (requester: Actor): AuthenticatedIdentity => {\n return new AuthenticatedIdentity({\n id: requester.id,\n displayName: requester.displayName,\n type: requester.identityType ?? \"admin\",\n context: { canAccessTenant: true }\n });\n};\n"],"names":["getRequesterIdentity","requester","AuthenticatedIdentity"],"mappings":";AASO,MAAMA,uBAAuB,CAACC,YAC1B,IAAIC,sBAAsB;QAC7B,IAAID,UAAU,EAAE;QAChB,aAAaA,UAAU,WAAW;QAClC,MAAMA,UAAU,YAAY,IAAI;QAChC,SAAS;YAAE,iBAAiB;QAAK;IACrC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Whether an automation's `models` cover every model of a workflow (D35, R136): `"*"` covers all,
|
|
3
|
+
* `"<app>.*"` covers the namespace ids starting with `"<app>."`, anything else is an exact
|
|
4
|
+
* namespace id. A workflow without models is never covered.
|
|
5
|
+
*/
|
|
6
|
+
export declare const matchesAutomationScope: (automationModels: string[], workflowModels: string[]) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const WILDCARD_SUFFIX = ".*";
|
|
2
|
+
const coversModel = (automationModel, workflowModel)=>{
|
|
3
|
+
if ("*" === automationModel) return true;
|
|
4
|
+
if (automationModel.endsWith(WILDCARD_SUFFIX) && automationModel.length > WILDCARD_SUFFIX.length) {
|
|
5
|
+
const prefix = automationModel.slice(0, -1);
|
|
6
|
+
return workflowModel.startsWith(prefix) && workflowModel.length > prefix.length;
|
|
7
|
+
}
|
|
8
|
+
return automationModel === workflowModel;
|
|
9
|
+
};
|
|
10
|
+
const matchesAutomationScope = (automationModels, workflowModels)=>{
|
|
11
|
+
if (0 === workflowModels.length) return false;
|
|
12
|
+
return workflowModels.every((workflowModel)=>automationModels.some((automationModel)=>coversModel(automationModel, workflowModel)));
|
|
13
|
+
};
|
|
14
|
+
export { matchesAutomationScope };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=matchesAutomationScope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/automation/matchesAutomationScope.js","sources":["../../../src/domain/automation/matchesAutomationScope.ts"],"sourcesContent":["const WILDCARD_SUFFIX = \".*\";\n\nconst coversModel = (automationModel: string, workflowModel: string): boolean => {\n if (automationModel === \"*\") {\n return true;\n }\n if (\n automationModel.endsWith(WILDCARD_SUFFIX) &&\n automationModel.length > WILDCARD_SUFFIX.length\n ) {\n // \"cms.*\" covers \"cms.article\": the namespace prefix up to and including the dot.\n const prefix = automationModel.slice(0, -1);\n return workflowModel.startsWith(prefix) && workflowModel.length > prefix.length;\n }\n return automationModel === workflowModel;\n};\n\n/**\n * Whether an automation's `models` cover every model of a workflow (D35, R136): `\"*\"` covers all,\n * `\"<app>.*\"` covers the namespace ids starting with `\"<app>.\"`, anything else is an exact\n * namespace id. A workflow without models is never covered.\n */\nexport const matchesAutomationScope = (\n automationModels: string[],\n workflowModels: string[]\n): boolean => {\n if (workflowModels.length === 0) {\n return false;\n }\n return workflowModels.every(workflowModel => {\n return automationModels.some(automationModel => {\n return coversModel(automationModel, workflowModel);\n });\n });\n};\n"],"names":["WILDCARD_SUFFIX","coversModel","automationModel","workflowModel","prefix","matchesAutomationScope","automationModels","workflowModels"],"mappings":"AAAA,MAAMA,kBAAkB;AAExB,MAAMC,cAAc,CAACC,iBAAyBC;IAC1C,IAAID,AAAoB,QAApBA,iBACA,OAAO;IAEX,IACIA,gBAAgB,QAAQ,CAACF,oBACzBE,gBAAgB,MAAM,GAAGF,gBAAgB,MAAM,EACjD;QAEE,MAAMI,SAASF,gBAAgB,KAAK,CAAC,GAAG;QACxC,OAAOC,cAAc,UAAU,CAACC,WAAWD,cAAc,MAAM,GAAGC,OAAO,MAAM;IACnF;IACA,OAAOF,oBAAoBC;AAC/B;AAOO,MAAME,yBAAyB,CAClCC,kBACAC;IAEA,IAAIA,AAA0B,MAA1BA,eAAe,MAAM,EACrB,OAAO;IAEX,OAAOA,eAAe,KAAK,CAACJ,CAAAA,gBACjBG,iBAAiB,IAAI,CAACJ,CAAAA,kBAClBD,YAAYC,iBAAiBC;AAGhD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Result } from "@webiny/feature/api";
|
|
2
|
+
import type { ZodType } from "zod";
|
|
3
|
+
/**
|
|
4
|
+
* Parses a step's settings with the definition's `settingsSchema` (R133, R137, R148). Ok is the
|
|
5
|
+
* parsed value (defaults applied); fail is the first issue as `"<path>: <message>"`, the path
|
|
6
|
+
* dot-joined and omitted when empty. Save, reach and restart word their own reasons around it.
|
|
7
|
+
*/
|
|
8
|
+
export declare const parseAutomationSettings: (settingsSchema: ZodType, settings: unknown) => Result<unknown, string>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Result } from "@webiny/feature/api";
|
|
2
|
+
import { parseAutomationSettingsIssue } from "./parseAutomationSettingsIssue.js";
|
|
3
|
+
const parseAutomationSettings = (settingsSchema, settings)=>{
|
|
4
|
+
const parsed = parseAutomationSettingsIssue(settingsSchema, settings);
|
|
5
|
+
if (parsed.isOk()) return Result.ok(parsed.value);
|
|
6
|
+
const { path, message } = parsed.error;
|
|
7
|
+
return Result.fail(path ? `${path}: ${message}` : message);
|
|
8
|
+
};
|
|
9
|
+
export { parseAutomationSettings };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=parseAutomationSettings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/automation/parseAutomationSettings.js","sources":["../../../src/domain/automation/parseAutomationSettings.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport type { ZodType } from \"zod\";\nimport { parseAutomationSettingsIssue } from \"./parseAutomationSettingsIssue.js\";\n\n/**\n * Parses a step's settings with the definition's `settingsSchema` (R133, R137, R148). Ok is the\n * parsed value (defaults applied); fail is the first issue as `\"<path>: <message>\"`, the path\n * dot-joined and omitted when empty. Save, reach and restart word their own reasons around it.\n */\nexport const parseAutomationSettings = (\n settingsSchema: ZodType,\n settings: unknown\n): Result<unknown, string> => {\n const parsed = parseAutomationSettingsIssue(settingsSchema, settings);\n if (parsed.isOk()) {\n return Result.ok(parsed.value);\n }\n const { path, message } = parsed.error;\n return Result.fail(path ? `${path}: ${message}` : message);\n};\n"],"names":["parseAutomationSettings","settingsSchema","settings","parsed","parseAutomationSettingsIssue","Result","path","message"],"mappings":";;AASO,MAAMA,0BAA0B,CACnCC,gBACAC;IAEA,MAAMC,SAASC,6BAA6BH,gBAAgBC;IAC5D,IAAIC,OAAO,IAAI,IACX,OAAOE,OAAO,EAAE,CAACF,OAAO,KAAK;IAEjC,MAAM,EAAEG,IAAI,EAAEC,OAAO,EAAE,GAAGJ,OAAO,KAAK;IACtC,OAAOE,OAAO,IAAI,CAACC,OAAO,GAAGA,KAAK,EAAE,EAAEC,SAAS,GAAGA;AACtD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Result } from "@webiny/feature/api";
|
|
2
|
+
import type { ZodType } from "zod";
|
|
3
|
+
/** The first problem of a step's automation settings (R267): where it is and what is wrong. */
|
|
4
|
+
export interface AutomationSettingsIssue {
|
|
5
|
+
/** The zod issue path joined by dots; empty when the issue has no path. */
|
|
6
|
+
path: string;
|
|
7
|
+
message: string;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Parses a step's settings with the definition's `settingsSchema`, like `parseAutomationSettings`,
|
|
11
|
+
* but fails with the first issue split into its path and message, so the save-time validation can
|
|
12
|
+
* name the settings field (R267). Ok is the parsed value (defaults applied).
|
|
13
|
+
*/
|
|
14
|
+
export declare const parseAutomationSettingsIssue: (schema: ZodType, settings: unknown) => Result<unknown, AutomationSettingsIssue>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Result } from "@webiny/feature/api";
|
|
2
|
+
const parseAutomationSettingsIssue = (schema, settings)=>{
|
|
3
|
+
const parsed = schema.safeParse(settings);
|
|
4
|
+
if (parsed.success) return Result.ok(parsed.data);
|
|
5
|
+
const [issue] = parsed.error.issues;
|
|
6
|
+
const path = issue?.path.map(String).join(".") ?? "";
|
|
7
|
+
const message = issue?.message ?? "unknown error";
|
|
8
|
+
return Result.fail({
|
|
9
|
+
path,
|
|
10
|
+
message
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export { parseAutomationSettingsIssue };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=parseAutomationSettingsIssue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/automation/parseAutomationSettingsIssue.js","sources":["../../../src/domain/automation/parseAutomationSettingsIssue.ts"],"sourcesContent":["import { Result } from \"@webiny/feature/api\";\nimport type { ZodType } from \"zod\";\n\n/** The first problem of a step's automation settings (R267): where it is and what is wrong. */\nexport interface AutomationSettingsIssue {\n /** The zod issue path joined by dots; empty when the issue has no path. */\n path: string;\n message: string;\n}\n\n/**\n * Parses a step's settings with the definition's `settingsSchema`, like `parseAutomationSettings`,\n * but fails with the first issue split into its path and message, so the save-time validation can\n * name the settings field (R267). Ok is the parsed value (defaults applied).\n */\nexport const parseAutomationSettingsIssue = (\n schema: ZodType,\n settings: unknown\n): Result<unknown, AutomationSettingsIssue> => {\n const parsed = schema.safeParse(settings);\n if (parsed.success) {\n return Result.ok(parsed.data);\n }\n const [issue] = parsed.error.issues;\n const path = issue?.path.map(String).join(\".\") ?? \"\";\n const message = issue?.message ?? \"unknown error\";\n return Result.fail({ path, message });\n};\n"],"names":["parseAutomationSettingsIssue","schema","settings","parsed","Result","issue","path","String","message"],"mappings":";AAeO,MAAMA,+BAA+B,CACxCC,QACAC;IAEA,MAAMC,SAASF,OAAO,SAAS,CAACC;IAChC,IAAIC,OAAO,OAAO,EACd,OAAOC,OAAO,EAAE,CAACD,OAAO,IAAI;IAEhC,MAAM,CAACE,MAAM,GAAGF,OAAO,KAAK,CAAC,MAAM;IACnC,MAAMG,OAAOD,OAAO,KAAK,IAAIE,QAAQ,KAAK,QAAQ;IAClD,MAAMC,UAAUH,OAAO,WAAW;IAClC,OAAOD,OAAO,IAAI,CAAC;QAAEE;QAAME;IAAQ;AACvC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A step type the workflow editor can offer (D130): a row of `listStepTypes`, built from the
|
|
3
|
+
* `StepType` registry (R138).
|
|
4
|
+
*/
|
|
5
|
+
export interface WorkflowStepTypeInfo {
|
|
6
|
+
/** Stored on `WorkflowStep.type`, e.g. "review". */
|
|
7
|
+
type: string;
|
|
8
|
+
title: string;
|
|
9
|
+
/** Whether a step of this type may be added now. */
|
|
10
|
+
available: boolean;
|
|
11
|
+
/** Why it is unavailable; `null` when available. */
|
|
12
|
+
unavailableReason: string | null;
|
|
13
|
+
/** JSON schema of the step's `config`; `null` when the type has no editable config yet. */
|
|
14
|
+
configSchema: Record<string, unknown> | null;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* An automation a workflow author can add as a step (R138): a row of `listAutomationDefinitions`.
|
|
18
|
+
* `models` is the scope (D35); `settingsSchema` is the JSON schema of what the author fills in.
|
|
19
|
+
*/
|
|
20
|
+
export interface AutomationDefinitionInfo {
|
|
21
|
+
id: string;
|
|
22
|
+
name: string;
|
|
23
|
+
models: string[];
|
|
24
|
+
settingsSchema: Record<string, unknown>;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* An AI tool a workflow author can allowlist on an AI step (R167): a row of `listAiTools`. No
|
|
28
|
+
* input schema: the editor shows what a tool is, the runner builds what the model sees.
|
|
29
|
+
*/
|
|
30
|
+
export interface WorkflowAiToolInfo {
|
|
31
|
+
name: string;
|
|
32
|
+
title: string;
|
|
33
|
+
description: string;
|
|
34
|
+
/** The plain name the step editor shows. */
|
|
35
|
+
label: string;
|
|
36
|
+
/** The one sentence the step editor shows. */
|
|
37
|
+
summary: string;
|
|
38
|
+
/** True when the tool writes or updates the content under review (R283). */
|
|
39
|
+
changesContent: boolean;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* A user as the workflows configuration screens list one (D48, D104, R286): no email or roles.
|
|
43
|
+
* `teamIds` are the ids of the user's teams, never their names; `[]` for a user with no teams and
|
|
44
|
+
* for every user while teams are off.
|
|
45
|
+
*/
|
|
46
|
+
export interface WorkflowListedUser {
|
|
47
|
+
id: string;
|
|
48
|
+
displayName: string;
|
|
49
|
+
teamIds: string[];
|
|
50
|
+
}
|
|
51
|
+
/** The shared user list (R123). `missingIds`: requested ids with no user (D117); `[]` for a search. */
|
|
52
|
+
export interface WorkflowUserList {
|
|
53
|
+
users: WorkflowListedUser[];
|
|
54
|
+
missingIds: string[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A team as the workflow editor lists one (R268): no slug, description or roles. `memberCount` is
|
|
58
|
+
* the number of admin users in the team, so the editor can warn about a team with no members.
|
|
59
|
+
*/
|
|
60
|
+
export interface WorkflowTeamSummary {
|
|
61
|
+
id: string;
|
|
62
|
+
name: string;
|
|
63
|
+
memberCount: number;
|
|
64
|
+
}
|
|
65
|
+
/** The shared team list (R268). `missingIds`: requested ids with no team; `[]` for a search. */
|
|
66
|
+
export interface WorkflowTeamList {
|
|
67
|
+
teams: WorkflowTeamSummary[];
|
|
68
|
+
missingIds: string[];
|
|
69
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Runs on one item; must not throw (a throw rejects the whole run). */
|
|
2
|
+
export type ConcurrentItemTask<T> = (item: T) => Promise<void>;
|
|
3
|
+
/**
|
|
4
|
+
* Runs `task` on every item, at most `limit` at a time, in no particular order: a fixed number of
|
|
5
|
+
* workers each takes the next item.
|
|
6
|
+
*
|
|
7
|
+
* An accepted exception to "no storage I/O in loops", only for independent writes that have no
|
|
8
|
+
* batch API and stay few. Its two uses:
|
|
9
|
+
* - `ReviewSaver`: the assignment records of a save (the CMS has no create-multiple). Usually one
|
|
10
|
+
* to three; at most about the step's team size when nearly every candidate is skipped.
|
|
11
|
+
* - `DeleteTargetReviewsUseCase`: `CleanupTaskSubtreeUseCase` per run task of a deleted review
|
|
12
|
+
* (it takes one task id). One to four per review; run tasks have no subtasks.
|
|
13
|
+
* Anything with a batch API, or that can grow with stored data, must batch instead.
|
|
14
|
+
*/
|
|
15
|
+
export declare const forEachWithConcurrency: <T>(items: T[], limit: number, task: ConcurrentItemTask<T>) => Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const forEachWithConcurrency = async (items, limit, task)=>{
|
|
2
|
+
let next = 0;
|
|
3
|
+
const worker = async ()=>{
|
|
4
|
+
while(next < items.length){
|
|
5
|
+
const item = items[next];
|
|
6
|
+
next++;
|
|
7
|
+
await task(item);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
const workerCount = Math.min(limit, items.length);
|
|
11
|
+
const workers = [];
|
|
12
|
+
for(let index = 0; index < workerCount; index++)workers.push(worker());
|
|
13
|
+
await Promise.all(workers);
|
|
14
|
+
};
|
|
15
|
+
export { forEachWithConcurrency };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=forEachWithConcurrency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/forEachWithConcurrency.js","sources":["../../src/domain/forEachWithConcurrency.ts"],"sourcesContent":["/** Runs on one item; must not throw (a throw rejects the whole run). */\nexport type ConcurrentItemTask<T> = (item: T) => Promise<void>;\n\n/**\n * Runs `task` on every item, at most `limit` at a time, in no particular order: a fixed number of\n * workers each takes the next item.\n *\n * An accepted exception to \"no storage I/O in loops\", only for independent writes that have no\n * batch API and stay few. Its two uses:\n * - `ReviewSaver`: the assignment records of a save (the CMS has no create-multiple). Usually one\n * to three; at most about the step's team size when nearly every candidate is skipped.\n * - `DeleteTargetReviewsUseCase`: `CleanupTaskSubtreeUseCase` per run task of a deleted review\n * (it takes one task id). One to four per review; run tasks have no subtasks.\n * Anything with a batch API, or that can grow with stored data, must batch instead.\n */\nexport const forEachWithConcurrency = async <T>(\n items: T[],\n limit: number,\n task: ConcurrentItemTask<T>\n): Promise<void> => {\n let next = 0;\n const worker = async (): Promise<void> => {\n while (next < items.length) {\n const item = items[next];\n next++;\n // oxlint-disable-next-line no-await-in-loop -- each worker runs its items one by one; the workers run in parallel.\n await task(item);\n }\n };\n const workerCount = Math.min(limit, items.length);\n const workers: Promise<void>[] = [];\n for (let index = 0; index < workerCount; index++) {\n workers.push(worker());\n }\n await Promise.all(workers);\n};\n"],"names":["forEachWithConcurrency","items","limit","task","next","worker","item","workerCount","Math","workers","index","Promise"],"mappings":"AAeO,MAAMA,yBAAyB,OAClCC,OACAC,OACAC;IAEA,IAAIC,OAAO;IACX,MAAMC,SAAS;QACX,MAAOD,OAAOH,MAAM,MAAM,CAAE;YACxB,MAAMK,OAAOL,KAAK,CAACG,KAAK;YACxBA;YAEA,MAAMD,KAAKG;QACf;IACJ;IACA,MAAMC,cAAcC,KAAK,GAAG,CAACN,OAAOD,MAAM,MAAM;IAChD,MAAMQ,UAA2B,EAAE;IACnC,IAAK,IAAIC,QAAQ,GAAGA,QAAQH,aAAaG,QACrCD,QAAQ,IAAI,CAACJ;IAEjB,MAAMM,QAAQ,GAAG,CAACF;AACtB"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PersistenceErrorSource } from "./PersistenceErrorSource.js";
|
|
2
|
+
/**
|
|
3
|
+
* An error that keeps the raw storage error off its message and payload (R146). Server code logs
|
|
4
|
+
* `source`; clients only get the fixed message.
|
|
5
|
+
*/
|
|
6
|
+
export interface ErrorWithSource extends Error {
|
|
7
|
+
readonly source: PersistenceErrorSource;
|
|
8
|
+
}
|
|
9
|
+
/** Duck-typed so errors built in other packages are recognised. */
|
|
10
|
+
export declare const hasErrorSource: (error: unknown) => error is ErrorWithSource;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/hasErrorSource.js","sources":["../../src/domain/hasErrorSource.ts"],"sourcesContent":["import type { PersistenceErrorSource } from \"./PersistenceErrorSource.js\";\n\n/**\n * An error that keeps the raw storage error off its message and payload (R146). Server code logs\n * `source`; clients only get the fixed message.\n */\nexport interface ErrorWithSource extends Error {\n readonly source: PersistenceErrorSource;\n}\n\n/** Duck-typed so errors built in other packages are recognised. */\nexport const hasErrorSource = (error: unknown): error is ErrorWithSource => {\n return error instanceof Error && (error as Partial<ErrorWithSource>).source instanceof Error;\n};\n"],"names":["hasErrorSource","error","Error"],"mappings":"AAWO,MAAMA,iBAAiB,CAACC,QACpBA,iBAAiBC,SAAUD,MAAmC,MAAM,YAAYC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The rejection comment as a message shows it (R189a): trimmed, and cut so that the result,
|
|
3
|
+
* including the appended `…`, is at most `NOTIFICATION_COMMENT_MAX_LENGTH` code points. Counted by
|
|
4
|
+
* code point, so an emoji is never split. Pure.
|
|
5
|
+
*/
|
|
6
|
+
export declare const clampComment: (comment: string) => string;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NOTIFICATION_COMMENT_MAX_LENGTH } from "./constants.js";
|
|
2
|
+
const clampComment = (comment)=>{
|
|
3
|
+
const trimmed = comment.trim();
|
|
4
|
+
const characters = Array.from(trimmed);
|
|
5
|
+
if (characters.length <= NOTIFICATION_COMMENT_MAX_LENGTH) return trimmed;
|
|
6
|
+
const kept = characters.slice(0, NOTIFICATION_COMMENT_MAX_LENGTH - 1).join("");
|
|
7
|
+
return `${kept.trimEnd()}…`;
|
|
8
|
+
};
|
|
9
|
+
export { clampComment };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=clampComment.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/notifications/clampComment.js","sources":["../../../src/domain/notifications/clampComment.ts"],"sourcesContent":["import { NOTIFICATION_COMMENT_MAX_LENGTH } from \"~/domain/notifications/constants.js\";\n\n/**\n * The rejection comment as a message shows it (R189a): trimmed, and cut so that the result,\n * including the appended `…`, is at most `NOTIFICATION_COMMENT_MAX_LENGTH` code points. Counted by\n * code point, so an emoji is never split. Pure.\n */\nexport const clampComment = (comment: string): string => {\n const trimmed = comment.trim();\n const characters = Array.from(trimmed);\n if (characters.length <= NOTIFICATION_COMMENT_MAX_LENGTH) {\n return trimmed;\n }\n const kept = characters.slice(0, NOTIFICATION_COMMENT_MAX_LENGTH - 1).join(\"\");\n return `${kept.trimEnd()}…`;\n};\n"],"names":["clampComment","comment","trimmed","characters","Array","NOTIFICATION_COMMENT_MAX_LENGTH","kept"],"mappings":";AAOO,MAAMA,eAAe,CAACC;IACzB,MAAMC,UAAUD,QAAQ,IAAI;IAC5B,MAAME,aAAaC,MAAM,IAAI,CAACF;IAC9B,IAAIC,WAAW,MAAM,IAAIE,iCACrB,OAAOH;IAEX,MAAMI,OAAOH,WAAW,KAAK,CAAC,GAAGE,kCAAkC,GAAG,IAAI,CAAC;IAC3E,OAAO,GAAGC,KAAK,OAAO,GAAG,CAAC,CAAC;AAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/notifications/constants.js","sources":["../../../src/domain/notifications/constants.ts"],"sourcesContent":["/** The rejection comment in a message is cut to this many characters, `…` included (R189a). */\nexport const NOTIFICATION_COMMENT_MAX_LENGTH = 300;\n"],"names":["NOTIFICATION_COMMENT_MAX_LENGTH"],"mappings":"AACO,MAAMA,kCAAkC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Actor } from "../../domain/review/types.js";
|
|
2
|
+
/** A notification recipient, known by its id. */
|
|
3
|
+
export interface DropActorRecipient {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* Nobody is told about their own action (R184), but only a person's. An AI or an automation actor
|
|
8
|
+
* carries the requester's id (D58), so it never drops the requester: the requester still hears
|
|
9
|
+
* that the AI rejected the review. Returns a new array. Pure.
|
|
10
|
+
*/
|
|
11
|
+
export declare const dropActor: <T extends DropActorRecipient>(recipients: T[], actor: Actor) => T[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/notifications/dropActor.js","sources":["../../../src/domain/notifications/dropActor.ts"],"sourcesContent":["import type { Actor } from \"~/domain/review/types.js\";\n\n/** A notification recipient, known by its id. */\nexport interface DropActorRecipient {\n id: string;\n}\n\n/**\n * Nobody is told about their own action (R184), but only a person's. An AI or an automation actor\n * carries the requester's id (D58), so it never drops the requester: the requester still hears\n * that the AI rejected the review. Returns a new array. Pure.\n */\nexport const dropActor = <T extends DropActorRecipient>(recipients: T[], actor: Actor): T[] => {\n if (actor.type !== \"user\") {\n return [...recipients];\n }\n return recipients.filter(recipient => recipient.id !== actor.id);\n};\n"],"names":["dropActor","recipients","actor","recipient"],"mappings":"AAYO,MAAMA,YAAY,CAA+BC,YAAiBC;IACrE,IAAIA,AAAe,WAAfA,MAAM,IAAI,EACV,OAAO;WAAID;KAAW;IAE1B,OAAOA,WAAW,MAAM,CAACE,CAAAA,YAAaA,UAAU,EAAE,KAAKD,MAAM,EAAE;AACnE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { Actor } from "../../domain/review/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* How a message names an actor (D107, D126, R189a): a person by their display name (a blank name
|
|
4
|
+
* reads "A user"), an AI step or an automation by the step title, never by the model's or the
|
|
5
|
+
* automation's own name. Pure.
|
|
6
|
+
*/
|
|
7
|
+
export declare const getActorName: (actor: Actor, stepTitle: string) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/notifications/getActorName.js","sources":["../../../src/domain/notifications/getActorName.ts"],"sourcesContent":["import type { Actor } from \"~/domain/review/types.js\";\n\n/**\n * How a message names an actor (D107, D126, R189a): a person by their display name (a blank name\n * reads \"A user\"), an AI step or an automation by the step title, never by the model's or the\n * automation's own name. Pure.\n */\nexport const getActorName = (actor: Actor, stepTitle: string): string => {\n if (actor.type !== \"user\") {\n return stepTitle;\n }\n const name = actor.displayName.trim();\n return name === \"\" ? \"A user\" : name;\n};\n"],"names":["getActorName","actor","stepTitle","name"],"mappings":"AAOO,MAAMA,eAAe,CAACC,OAAcC;IACvC,IAAID,AAAe,WAAfA,MAAM,IAAI,EACV,OAAOC;IAEX,MAAMC,OAAOF,MAAM,WAAW,CAAC,IAAI;IACnC,OAAOE,AAAS,OAATA,OAAc,WAAWA;AACpC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Actor, ReviewData } from "../../domain/review/types.js";
|
|
2
|
+
/**
|
|
3
|
+
* Who gets the silent `workflows.reviewChanged` message (R254): the requester and the current
|
|
4
|
+
* owner when that is a user, each once, minus the actor when the actor is a user (`dropActor`, the
|
|
5
|
+
* phase 7 rule). The actor's own tab refreshes through its own action. No pool lookup. An empty
|
|
6
|
+
* or missing id is never a recipient. Pure.
|
|
7
|
+
*/
|
|
8
|
+
export declare const getReviewChangeRecipients: (review: ReviewData, actor: Actor) => string[];
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { dropActor } from "./dropActor.js";
|
|
2
|
+
const getReviewChangeRecipients = (review, actor)=>{
|
|
3
|
+
const ids = [];
|
|
4
|
+
for (const id of [
|
|
5
|
+
review.createdBy.id,
|
|
6
|
+
review.currentOwnerId
|
|
7
|
+
])if ("string" == typeof id && "" !== id && !ids.includes(id)) ids.push(id);
|
|
8
|
+
const recipients = ids.map((id)=>({
|
|
9
|
+
id
|
|
10
|
+
}));
|
|
11
|
+
const remaining = dropActor(recipients, actor);
|
|
12
|
+
return remaining.map((item)=>item.id);
|
|
13
|
+
};
|
|
14
|
+
export { getReviewChangeRecipients };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=getReviewChangeRecipients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/notifications/getReviewChangeRecipients.js","sources":["../../../src/domain/notifications/getReviewChangeRecipients.ts"],"sourcesContent":["import { dropActor } from \"~/domain/notifications/dropActor.js\";\nimport type { Actor, ReviewData } from \"~/domain/review/types.js\";\n\n/**\n * Who gets the silent `workflows.reviewChanged` message (R254): the requester and the current\n * owner when that is a user, each once, minus the actor when the actor is a user (`dropActor`, the\n * phase 7 rule). The actor's own tab refreshes through its own action. No pool lookup. An empty\n * or missing id is never a recipient. Pure.\n */\nexport const getReviewChangeRecipients = (review: ReviewData, actor: Actor): string[] => {\n const ids: string[] = [];\n for (const id of [review.createdBy.id, review.currentOwnerId]) {\n if (typeof id === \"string\" && id !== \"\" && !ids.includes(id)) {\n ids.push(id);\n }\n }\n\n const recipients = ids.map(id => ({ id }));\n const remaining = dropActor(recipients, actor);\n return remaining.map(item => item.id);\n};\n"],"names":["getReviewChangeRecipients","review","actor","ids","id","recipients","remaining","dropActor","item"],"mappings":";AASO,MAAMA,4BAA4B,CAACC,QAAoBC;IAC1D,MAAMC,MAAgB,EAAE;IACxB,KAAK,MAAMC,MAAM;QAACH,OAAO,SAAS,CAAC,EAAE;QAAEA,OAAO,cAAc;KAAC,CACzD,IAAI,AAAc,YAAd,OAAOG,MAAmBA,AAAO,OAAPA,MAAa,CAACD,IAAI,QAAQ,CAACC,KACrDD,IAAI,IAAI,CAACC;IAIjB,MAAMC,aAAaF,IAAI,GAAG,CAACC,CAAAA,KAAO;YAAEA;QAAG;IACvC,MAAME,YAAYC,UAAUF,YAAYH;IACxC,OAAOI,UAAU,GAAG,CAACE,CAAAA,OAAQA,KAAK,EAAE;AACxC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { NotificationMessage } from "../../../domain/notifications/types.js";
|
|
2
|
+
export interface ApprovedMessageParams {
|
|
3
|
+
/** `review.title`. */
|
|
4
|
+
contentTitle: string;
|
|
5
|
+
}
|
|
6
|
+
/** The requester's review is approved by every step (R189, `approved`). */
|
|
7
|
+
export declare const buildApprovedMessage: (params: ApprovedMessageParams) => NotificationMessage;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const buildApprovedMessage = (params)=>{
|
|
2
|
+
const { contentTitle } = params;
|
|
3
|
+
return {
|
|
4
|
+
title: `“${contentTitle}” was approved`,
|
|
5
|
+
body: "All steps approved. It’s ready to publish.",
|
|
6
|
+
subject: `Approved: ${contentTitle}`,
|
|
7
|
+
text: "Every step approved this revision. It’s ready to publish.",
|
|
8
|
+
linkLabel: "Open content"
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export { buildApprovedMessage };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=buildApprovedMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domain/notifications/messages/buildApprovedMessage.js","sources":["../../../../src/domain/notifications/messages/buildApprovedMessage.ts"],"sourcesContent":["import type { NotificationMessage } from \"~/domain/notifications/types.js\";\n\nexport interface ApprovedMessageParams {\n /** `review.title`. */\n contentTitle: string;\n}\n\n/** The requester's review is approved by every step (R189, `approved`). */\nexport const buildApprovedMessage = (params: ApprovedMessageParams): NotificationMessage => {\n const { contentTitle } = params;\n return {\n title: `“${contentTitle}” was approved`,\n body: \"All steps approved. It’s ready to publish.\",\n subject: `Approved: ${contentTitle}`,\n text: \"Every step approved this revision. It’s ready to publish.\",\n linkLabel: \"Open content\"\n };\n};\n"],"names":["buildApprovedMessage","params","contentTitle"],"mappings":"AAQO,MAAMA,uBAAuB,CAACC;IACjC,MAAM,EAAEC,YAAY,EAAE,GAAGD;IACzB,OAAO;QACH,OAAO,CAAC,CAAC,EAAEC,aAAa,cAAc,CAAC;QACvC,MAAM;QACN,SAAS,CAAC,UAAU,EAAEA,cAAc;QACpC,MAAM;QACN,WAAW;IACf;AACJ"}
|