@boboddy/sdk 0.0.7-alpha → 0.0.8-alpha
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/dist/apps/api/src/app.d.ts +1371 -575
- package/dist/apps/api/src/http/routes/step-definition-templates.d.ts +477 -0
- package/dist/apps/api/src/http/routes/step-executions.d.ts +1 -0
- package/dist/packages/core/src/access/authorization/application/authorization-service.d.ts +12 -0
- package/dist/packages/core/src/access/authorization/infra/project-authorization-service.d.ts +7 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/ai-container-launcher.d.ts +21 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/create-project-runtime-session.d.ts +13 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/devcontainer-launcher.d.ts +21 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/get-project-runtime-session.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/git-clone-service.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/list-project-runtime-sessions.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-execution-target.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-network-metadata.d.ts +15 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/project-runtime-session-repo.d.ts +10 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/runtime-session-network-manager.d.ts +14 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/stop-project-runtime-session.d.ts +29 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/application/workspace-manager.d.ts +10 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/contracts/project-runtime-session-contracts.d.ts +62 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity-helpers.d.ts +12 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-entity.d.ts +99 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/domain/project-runtime-session-execution-target.d.ts +16 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/devcontainer-cli-launcher.d.ts +6 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/docker-ai-container-launcher.d.ts +8 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/drizzle-project-runtime-session-repo.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/git-cli-clone-service.d.ts +4 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-jsonc.d.ts +4 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager-support.d.ts +42 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-port-forward-manager.d.ts +24 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-devcontainer-working-directory.d.ts +5 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-docker-runtime-session-network-manager.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/project-runtime-session/infra/local-workspace-manager.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/complete-claimed-runtime-command.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/create-runtime-command.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/fail-claimed-runtime-command.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/interrupt-claimed-runtime-command.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/run-runtime-command-locally.d.ts +26 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-claim-helpers.d.ts +1 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-output-summary.d.ts +4 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-repo.d.ts +20 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/application/runtime-command-runner.d.ts +25 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/contracts/runtime-command-contracts.d.ts +194 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/domain/runtime-command-entity.d.ts +111 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/infra/drizzle-runtime-command-repo.d.ts +20 -0
- package/dist/packages/core/src/agent-sessions/runtime-command/infra/local-runtime-command-runner.d.ts +25 -0
- package/dist/packages/core/src/agent-sessions/runtime-environment/domain/runtime-environment.d.ts +12 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-publisher.d.ts +24 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/application/runtime-operation-event-repo.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/domain/runtime-operation-event.d.ts +35 -0
- package/dist/packages/core/src/agent-sessions/runtime-operation-event/infra/file-runtime-operation-event-repo.d.ts +25 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/create-runtime-service.d.ts +17 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/get-runtime-service.d.ts +11 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-output-summary.d.ts +10 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-repo.d.ts +9 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-service-runner.d.ts +23 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/runtime-session-service-exposure-provider.d.ts +19 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/start-runtime-service-locally.d.ts +21 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/application/stop-runtime-service.d.ts +32 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/contracts/runtime-service-contracts.d.ts +140 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-access-point.d.ts +12 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-entity.d.ts +76 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/domain/runtime-service-healthcheck.d.ts +20 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/drizzle-runtime-service-repo.d.ts +9 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-readiness-probe.d.ts +42 -0
- package/dist/packages/core/src/agent-sessions/runtime-service/infra/local-runtime-service-runner.d.ts +32 -0
- package/dist/packages/core/src/common/contracts/json.d.ts +9 -0
- package/dist/packages/core/src/common/contracts/opencode-mcp.d.ts +73 -0
- package/dist/packages/core/src/common/contracts/uuid-v7.d.ts +8 -0
- package/dist/packages/core/src/lib/db/db-executor.d.ts +4 -0
- package/dist/packages/core/src/lib/db/index.d.ts +7 -0
- package/dist/packages/core/src/lib/db/schema.d.ts +4950 -0
- package/dist/packages/core/src/lib/di.d.ts +112 -0
- package/dist/packages/core/src/lib/domain-events/domain-event.d.ts +12 -0
- package/dist/packages/core/src/lib/domain-events/in-memory-domain-event-dispatcher.d.ts +7 -0
- package/dist/packages/core/src/lib/errors.d.ts +36 -0
- package/dist/packages/core/src/lib/logger.d.ts +7 -0
- package/dist/packages/core/src/lib/time-provider.d.ts +5 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/add-linear-pipeline-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/archive-linear-pipeline-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/create-linear-pipeline-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/get-linear-pipeline-definition.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/linear-pipeline-definition-repo.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/list-linear-pipeline-definitions.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/remove-linear-pipeline-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/set-linear-pipeline-step-advancement-policy-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/application/update-linear-pipeline-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/contracts/linear-pipeline-definition-contracts.d.ts +357 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/domain/linear-pipeline-definition-entity.d.ts +36 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-advancement-policy-definition-entity.d.ts +42 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/entities/linear-pipeline-step-definition-entity.d.ts +42 -0
- package/dist/packages/core/src/pipeline-definitions/pipeline-definition/infra/drizzle-linear-pipeline-definition-repo.d.ts +11 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/archive-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/create-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/get-step-definition.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/list-step-definitions.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/step-definition-repo.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/application/update-step-definition.d.ts +9 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/contracts/step-definition-contracts.d.ts +281 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/domain/step-definition-entity.d.ts +53 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/entities/computed-signal-definition-entity.d.ts +31 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/entities/signal-extractor-definition-entity.d.ts +30 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition/infra/drizzle-step-definition-repo.d.ts +11 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/get-step-definition-template.d.ts +6 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/instantiate-step-definition-template.d.ts +11 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/list-step-definition-templates.d.ts +5 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/application/step-definition-template-repo.d.ts +7 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/contracts/step-definition-template-contracts.d.ts +98 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/domain/step-definition-template-entity.d.ts +37 -0
- package/dist/packages/core/src/pipeline-definitions/step-definition-template/infra/drizzle-step-definition-template-repo.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/create-feedback-requests-on-step-signal-created.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/decline-feedback-request.d.ts +14 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/feedback-request-repo.d.ts +8 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/application/list-feedback-requests-by-step-signal.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/contracts/feedback-request-contracts.d.ts +21 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/domain/feedback-request-entity.d.ts +29 -0
- package/dist/packages/core/src/pipeline-executions/feedback-request/infra/drizzle-feedback-request-repo.d.ts +10 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/accept-linear-pipeline-step-run.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/apply-linear-pipeline-step-result-and-advance.d.ts +17 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/cancel-linear-pipeline-execution.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-execution.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/create-linear-pipeline-step-run-attempt.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/get-linear-pipeline-execution.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-helpers.d.ts +52 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-execution-repo.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/linear-pipeline-step-input-resolution.d.ts +5 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions-by-definition.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/list-linear-pipeline-executions.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/mark-linear-pipeline-step-run-attempt-running.d.ts +11 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/project-linear-pipeline-executions.d.ts +10 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/queue-first-linear-pipeline-step-run.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/retrigger-linear-pipeline-step-run.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/application/start-linear-pipeline-execution.d.ts +15 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/contracts/linear-pipeline-execution-contracts.d.ts +330 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/domain/linear-pipeline-execution-entity.d.ts +43 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-execution-event-entity.d.ts +25 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-evaluation-entity.d.ts +45 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-attempt-entity.d.ts +24 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/entities/linear-pipeline-step-run-entity.d.ts +63 -0
- package/dist/packages/core/src/pipeline-executions/pipeline-execution/infra/drizzle-linear-pipeline-execution-repo.d.ts +19 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/add-step-execution-result.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/claim-step-executions.d.ts +17 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/complete-claimed-step-execution.d.ts +35 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/create-step-execution.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/extract-step-execution-signals.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution-worker-context.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/get-step-execution.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/heartbeat-step-execution-claim.d.ts +17 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/list-step-executions-by-project.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/load-status-adjusted-step-executions.d.ts +31 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/mark-step-execution-running.d.ts +9 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-claim-helpers.d.ts +13 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-contract-mapper.d.ts +7 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/application/step-execution-repo.d.ts +29 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/contracts/step-execution-contracts.d.ts +325 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-execution-entity.d.ts +61 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/domain/step-signal-created.domain-event.d.ts +18 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-execution-result-entity.d.ts +32 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/entities/step-signal-entity.d.ts +36 -0
- package/dist/packages/core/src/pipeline-executions/step-execution/infra/drizzle-step-execution-repo.d.ts +31 -0
- package/dist/packages/core/src/projects/project/application/create-project.d.ts +13 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-create-failing-test-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-description-quality-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-fix-failing-test-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-conventions.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-linear-pipeline-definitions.d.ts +7 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-step-definitions.d.ts +8 -0
- package/dist/packages/core/src/projects/project/application/default-pipelines/default-web-repro-playwright-step-definition.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/get-project.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/list-projects.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/project-authorization.d.ts +4 -0
- package/dist/packages/core/src/projects/project/application/project-contract-mapper.d.ts +3 -0
- package/dist/packages/core/src/projects/project/application/project-repo.d.ts +9 -0
- package/dist/packages/core/src/projects/project/application/seed-default-pipelines-on-project-created.d.ts +12 -0
- package/dist/packages/core/src/projects/project/application/update-project-membership.d.ts +11 -0
- package/dist/packages/core/src/projects/project/contracts/project-contracts.d.ts +37 -0
- package/dist/packages/core/src/projects/project/domain/project-created.domain-event.d.ts +13 -0
- package/dist/packages/core/src/projects/project/domain/project-entity.d.ts +31 -0
- package/dist/packages/core/src/projects/project/domain/project-git-url.d.ts +7 -0
- package/dist/packages/core/src/projects/project/domain/project-membership.d.ts +21 -0
- package/dist/packages/core/src/projects/project/domain/project-permission.d.ts +7 -0
- package/dist/packages/core/src/projects/project/infra/drizzle-project-repo.d.ts +11 -0
- package/dist/packages/core/src/projects/project-context/application/create-project-context-entry.d.ts +13 -0
- package/dist/packages/core/src/projects/project-context/application/delete-project-context-entry.d.ts +10 -0
- package/dist/packages/core/src/projects/project-context/application/list-project-context-entries.d.ts +13 -0
- package/dist/packages/core/src/projects/project-context/application/project-context-entry-repo.d.ts +8 -0
- package/dist/packages/core/src/projects/project-context/contracts/project-context-entry-contracts.d.ts +46 -0
- package/dist/packages/core/src/projects/project-context/domain/project-context-entry-entity.d.ts +27 -0
- package/dist/packages/core/src/projects/project-context/infra/drizzle-project-context-entry-repo.d.ts +10 -0
- package/dist/packages/core/src/projects/project-opencode-config/application/project-opencode-runtime-metadata.d.ts +17 -0
- package/dist/packages/core/src/work-items/work-item/application/create-work-item.d.ts +16 -0
- package/dist/packages/core/src/work-items/work-item/application/delete-work-items.d.ts +14 -0
- package/dist/packages/core/src/work-items/work-item/application/get-work-items.d.ts +14 -0
- package/dist/packages/core/src/work-items/work-item/application/list-work-items-by-project.d.ts +11 -0
- package/dist/packages/core/src/work-items/work-item/application/upsert-work-item.d.ts +16 -0
- package/dist/packages/core/src/work-items/work-item/application/work-item-contract-mapper.d.ts +4 -0
- package/dist/packages/core/src/work-items/work-item/application/work-item-repo.d.ts +27 -0
- package/dist/packages/core/src/work-items/work-item/contracts/work-item-contracts.d.ts +119 -0
- package/dist/packages/core/src/work-items/work-item/domain/date-utils.d.ts +1 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-entity.d.ts +58 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-field-value.d.ts +3 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-id.d.ts +6 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-platform.d.ts +2 -0
- package/dist/packages/core/src/work-items/work-item/domain/work-item-projection-fingerprint-entity.d.ts +18 -0
- package/dist/packages/core/src/work-items/work-item/infra/drizzle-work-item-repo.d.ts +25 -0
- package/dist/packages/sdks/js/src/define-step.d.ts +72 -0
- package/dist/packages/sdks/js/src/step-definitions-client.d.ts +202 -0
- package/dist/packages/sdks/js/src/step-execution-plane-client.d.ts +1 -0
- package/dist/packages/sdks/js/test/define-step.test.d.ts +1 -0
- package/package.json +17 -2
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
declare const inputBindingSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
4
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
5
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
6
|
+
source: z.ZodLiteral<"step_output">;
|
|
7
|
+
stepKey: z.ZodString;
|
|
8
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
9
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10
|
+
source: z.ZodLiteral<"step_signal">;
|
|
11
|
+
stepKey: z.ZodString;
|
|
12
|
+
signalKey: z.ZodString;
|
|
13
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
14
|
+
source: z.ZodLiteral<"literal">;
|
|
15
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
16
|
+
}, z.core.$strip>], "source">;
|
|
17
|
+
declare const inputBindingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
18
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
19
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
21
|
+
source: z.ZodLiteral<"step_output">;
|
|
22
|
+
stepKey: z.ZodString;
|
|
23
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
24
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
25
|
+
source: z.ZodLiteral<"step_signal">;
|
|
26
|
+
stepKey: z.ZodString;
|
|
27
|
+
signalKey: z.ZodString;
|
|
28
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
29
|
+
source: z.ZodLiteral<"literal">;
|
|
30
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
31
|
+
}, z.core.$strip>], "source">>;
|
|
32
|
+
export declare const linearPipelineStepInputBindingsSchema: z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
33
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
34
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
35
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
36
|
+
source: z.ZodLiteral<"step_output">;
|
|
37
|
+
stepKey: z.ZodString;
|
|
38
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
39
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
40
|
+
source: z.ZodLiteral<"step_signal">;
|
|
41
|
+
stepKey: z.ZodString;
|
|
42
|
+
signalKey: z.ZodString;
|
|
43
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
44
|
+
source: z.ZodLiteral<"literal">;
|
|
45
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
46
|
+
}, z.core.$strip>], "source">>;
|
|
47
|
+
export declare const linearPipelineStepAdvancementPolicyDefinitionSchema: z.ZodObject<{
|
|
48
|
+
id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
49
|
+
linearPipelineStepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
50
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
51
|
+
defaultEventType: z.ZodEnum<{
|
|
52
|
+
continue: "continue";
|
|
53
|
+
block: "block";
|
|
54
|
+
needs_review: "needs_review";
|
|
55
|
+
complete: "complete";
|
|
56
|
+
}>;
|
|
57
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
58
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
59
|
+
continue: "continue";
|
|
60
|
+
block: "block";
|
|
61
|
+
needs_review: "needs_review";
|
|
62
|
+
complete: "complete";
|
|
63
|
+
}>>;
|
|
64
|
+
createdAt: z.ZodISODateTime;
|
|
65
|
+
updatedAt: z.ZodISODateTime;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export declare const linearPipelineStepDefinitionSchema: z.ZodObject<{
|
|
68
|
+
id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
69
|
+
linearPipelineDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
70
|
+
stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
71
|
+
stepDefinitionVersion: z.ZodNumber;
|
|
72
|
+
key: z.ZodString;
|
|
73
|
+
name: z.ZodString;
|
|
74
|
+
description: z.ZodNullable<z.ZodString>;
|
|
75
|
+
position: z.ZodNumber;
|
|
76
|
+
inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
77
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
78
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
source: z.ZodLiteral<"step_output">;
|
|
81
|
+
stepKey: z.ZodString;
|
|
82
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
83
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
84
|
+
source: z.ZodLiteral<"step_signal">;
|
|
85
|
+
stepKey: z.ZodString;
|
|
86
|
+
signalKey: z.ZodString;
|
|
87
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
88
|
+
source: z.ZodLiteral<"literal">;
|
|
89
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
90
|
+
}, z.core.$strip>], "source">>>;
|
|
91
|
+
timeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
92
|
+
retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
93
|
+
advancementPolicyDefinition: z.ZodObject<{
|
|
94
|
+
id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
95
|
+
linearPipelineStepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
96
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
97
|
+
defaultEventType: z.ZodEnum<{
|
|
98
|
+
continue: "continue";
|
|
99
|
+
block: "block";
|
|
100
|
+
needs_review: "needs_review";
|
|
101
|
+
complete: "complete";
|
|
102
|
+
}>;
|
|
103
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
104
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
105
|
+
continue: "continue";
|
|
106
|
+
block: "block";
|
|
107
|
+
needs_review: "needs_review";
|
|
108
|
+
complete: "complete";
|
|
109
|
+
}>>;
|
|
110
|
+
createdAt: z.ZodISODateTime;
|
|
111
|
+
updatedAt: z.ZodISODateTime;
|
|
112
|
+
}, z.core.$strip>;
|
|
113
|
+
createdAt: z.ZodISODateTime;
|
|
114
|
+
updatedAt: z.ZodISODateTime;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
export declare const linearPipelineDefinitionSchema: z.ZodObject<{
|
|
117
|
+
id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
118
|
+
projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
119
|
+
key: z.ZodString;
|
|
120
|
+
name: z.ZodString;
|
|
121
|
+
description: z.ZodNullable<z.ZodString>;
|
|
122
|
+
version: z.ZodNumber;
|
|
123
|
+
status: z.ZodEnum<{
|
|
124
|
+
draft: "draft";
|
|
125
|
+
active: "active";
|
|
126
|
+
archived: "archived";
|
|
127
|
+
}>;
|
|
128
|
+
stepDefinitions: z.ZodArray<z.ZodObject<{
|
|
129
|
+
id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
130
|
+
linearPipelineDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
131
|
+
stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
132
|
+
stepDefinitionVersion: z.ZodNumber;
|
|
133
|
+
key: z.ZodString;
|
|
134
|
+
name: z.ZodString;
|
|
135
|
+
description: z.ZodNullable<z.ZodString>;
|
|
136
|
+
position: z.ZodNumber;
|
|
137
|
+
inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
138
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
139
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
140
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
141
|
+
source: z.ZodLiteral<"step_output">;
|
|
142
|
+
stepKey: z.ZodString;
|
|
143
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
144
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
145
|
+
source: z.ZodLiteral<"step_signal">;
|
|
146
|
+
stepKey: z.ZodString;
|
|
147
|
+
signalKey: z.ZodString;
|
|
148
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
149
|
+
source: z.ZodLiteral<"literal">;
|
|
150
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
151
|
+
}, z.core.$strip>], "source">>>;
|
|
152
|
+
timeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
153
|
+
retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
154
|
+
advancementPolicyDefinition: z.ZodObject<{
|
|
155
|
+
id: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
156
|
+
linearPipelineStepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
157
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
158
|
+
defaultEventType: z.ZodEnum<{
|
|
159
|
+
continue: "continue";
|
|
160
|
+
block: "block";
|
|
161
|
+
needs_review: "needs_review";
|
|
162
|
+
complete: "complete";
|
|
163
|
+
}>;
|
|
164
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
165
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
166
|
+
continue: "continue";
|
|
167
|
+
block: "block";
|
|
168
|
+
needs_review: "needs_review";
|
|
169
|
+
complete: "complete";
|
|
170
|
+
}>>;
|
|
171
|
+
createdAt: z.ZodISODateTime;
|
|
172
|
+
updatedAt: z.ZodISODateTime;
|
|
173
|
+
}, z.core.$strip>;
|
|
174
|
+
createdAt: z.ZodISODateTime;
|
|
175
|
+
updatedAt: z.ZodISODateTime;
|
|
176
|
+
}, z.core.$strip>>;
|
|
177
|
+
createdAt: z.ZodISODateTime;
|
|
178
|
+
updatedAt: z.ZodISODateTime;
|
|
179
|
+
}, z.core.$strip>;
|
|
180
|
+
export declare const createLinearPipelineStepDefinitionInputSchema: z.ZodObject<{
|
|
181
|
+
name: z.ZodString;
|
|
182
|
+
description: z.ZodNullable<z.ZodString>;
|
|
183
|
+
key: z.ZodString;
|
|
184
|
+
stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
185
|
+
stepDefinitionVersion: z.ZodNumber;
|
|
186
|
+
position: z.ZodNumber;
|
|
187
|
+
inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
188
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
189
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
source: z.ZodLiteral<"step_output">;
|
|
192
|
+
stepKey: z.ZodString;
|
|
193
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
source: z.ZodLiteral<"step_signal">;
|
|
196
|
+
stepKey: z.ZodString;
|
|
197
|
+
signalKey: z.ZodString;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
source: z.ZodLiteral<"literal">;
|
|
200
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
201
|
+
}, z.core.$strip>], "source">>>;
|
|
202
|
+
timeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
203
|
+
retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
204
|
+
advancementPolicyDefinition: z.ZodObject<{
|
|
205
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
206
|
+
defaultEventType: z.ZodEnum<{
|
|
207
|
+
continue: "continue";
|
|
208
|
+
block: "block";
|
|
209
|
+
needs_review: "needs_review";
|
|
210
|
+
complete: "complete";
|
|
211
|
+
}>;
|
|
212
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
213
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
214
|
+
continue: "continue";
|
|
215
|
+
block: "block";
|
|
216
|
+
needs_review: "needs_review";
|
|
217
|
+
complete: "complete";
|
|
218
|
+
}>>;
|
|
219
|
+
}, z.core.$strip>;
|
|
220
|
+
}, z.core.$strip>;
|
|
221
|
+
export declare const createLinearPipelineDefinitionInputSchema: z.ZodObject<{
|
|
222
|
+
projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
223
|
+
key: z.ZodString;
|
|
224
|
+
name: z.ZodString;
|
|
225
|
+
description: z.ZodNullable<z.ZodString>;
|
|
226
|
+
version: z.ZodNumber;
|
|
227
|
+
status: z.ZodEnum<{
|
|
228
|
+
draft: "draft";
|
|
229
|
+
active: "active";
|
|
230
|
+
archived: "archived";
|
|
231
|
+
}>;
|
|
232
|
+
stepDefinitions: z.ZodArray<z.ZodObject<{
|
|
233
|
+
name: z.ZodString;
|
|
234
|
+
description: z.ZodNullable<z.ZodString>;
|
|
235
|
+
key: z.ZodString;
|
|
236
|
+
stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
237
|
+
stepDefinitionVersion: z.ZodNumber;
|
|
238
|
+
position: z.ZodNumber;
|
|
239
|
+
inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
240
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
241
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
242
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
243
|
+
source: z.ZodLiteral<"step_output">;
|
|
244
|
+
stepKey: z.ZodString;
|
|
245
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
source: z.ZodLiteral<"step_signal">;
|
|
248
|
+
stepKey: z.ZodString;
|
|
249
|
+
signalKey: z.ZodString;
|
|
250
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
251
|
+
source: z.ZodLiteral<"literal">;
|
|
252
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
253
|
+
}, z.core.$strip>], "source">>>;
|
|
254
|
+
timeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
255
|
+
retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
256
|
+
advancementPolicyDefinition: z.ZodObject<{
|
|
257
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
258
|
+
defaultEventType: z.ZodEnum<{
|
|
259
|
+
continue: "continue";
|
|
260
|
+
block: "block";
|
|
261
|
+
needs_review: "needs_review";
|
|
262
|
+
complete: "complete";
|
|
263
|
+
}>;
|
|
264
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
265
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
266
|
+
continue: "continue";
|
|
267
|
+
block: "block";
|
|
268
|
+
needs_review: "needs_review";
|
|
269
|
+
complete: "complete";
|
|
270
|
+
}>>;
|
|
271
|
+
}, z.core.$strip>;
|
|
272
|
+
}, z.core.$strip>>;
|
|
273
|
+
}, z.core.$strip>;
|
|
274
|
+
export declare const updateLinearPipelineDefinitionInputSchema: z.ZodObject<{
|
|
275
|
+
status: z.ZodEnum<{
|
|
276
|
+
draft: "draft";
|
|
277
|
+
active: "active";
|
|
278
|
+
archived: "archived";
|
|
279
|
+
}>;
|
|
280
|
+
name: z.ZodString;
|
|
281
|
+
description: z.ZodNullable<z.ZodString>;
|
|
282
|
+
projectId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
283
|
+
key: z.ZodString;
|
|
284
|
+
version: z.ZodNumber;
|
|
285
|
+
}, z.core.$strip>;
|
|
286
|
+
export declare const updateLinearPipelineStepDefinitionInputSchema: z.ZodObject<{
|
|
287
|
+
name: z.ZodString;
|
|
288
|
+
description: z.ZodNullable<z.ZodString>;
|
|
289
|
+
key: z.ZodString;
|
|
290
|
+
stepDefinitionId: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
291
|
+
stepDefinitionVersion: z.ZodNumber;
|
|
292
|
+
position: z.ZodNumber;
|
|
293
|
+
inputBindingsJson: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
294
|
+
source: z.ZodLiteral<"pipeline_input">;
|
|
295
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
296
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
297
|
+
source: z.ZodLiteral<"step_output">;
|
|
298
|
+
stepKey: z.ZodString;
|
|
299
|
+
path: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
300
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
301
|
+
source: z.ZodLiteral<"step_signal">;
|
|
302
|
+
stepKey: z.ZodString;
|
|
303
|
+
signalKey: z.ZodString;
|
|
304
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
305
|
+
source: z.ZodLiteral<"literal">;
|
|
306
|
+
value: z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonValue, unknown>>;
|
|
307
|
+
}, z.core.$strip>], "source">>>;
|
|
308
|
+
timeoutSeconds: z.ZodNullable<z.ZodNumber>;
|
|
309
|
+
retryPolicyJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
310
|
+
advancementPolicyDefinition: z.ZodObject<{
|
|
311
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
312
|
+
defaultEventType: z.ZodEnum<{
|
|
313
|
+
continue: "continue";
|
|
314
|
+
block: "block";
|
|
315
|
+
needs_review: "needs_review";
|
|
316
|
+
complete: "complete";
|
|
317
|
+
}>;
|
|
318
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
319
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
320
|
+
continue: "continue";
|
|
321
|
+
block: "block";
|
|
322
|
+
needs_review: "needs_review";
|
|
323
|
+
complete: "complete";
|
|
324
|
+
}>>;
|
|
325
|
+
}, z.core.$strip>;
|
|
326
|
+
}, z.core.$strip>;
|
|
327
|
+
export declare const setLinearPipelineStepAdvancementPolicyDefinitionInputSchema: z.ZodObject<{
|
|
328
|
+
rulesJson: z.ZodCustom<import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson, import("../entities/linear-pipeline-step-advancement-policy-definition-entity").LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
329
|
+
defaultEventType: z.ZodEnum<{
|
|
330
|
+
continue: "continue";
|
|
331
|
+
block: "block";
|
|
332
|
+
needs_review: "needs_review";
|
|
333
|
+
complete: "complete";
|
|
334
|
+
}>;
|
|
335
|
+
defaultEventParamsJson: z.ZodNullable<z.ZodType<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/json").AnyJsonObject, unknown>>>;
|
|
336
|
+
allowedEventTypes: z.ZodArray<z.ZodEnum<{
|
|
337
|
+
continue: "continue";
|
|
338
|
+
block: "block";
|
|
339
|
+
needs_review: "needs_review";
|
|
340
|
+
complete: "complete";
|
|
341
|
+
}>>;
|
|
342
|
+
}, z.core.$strip>;
|
|
343
|
+
export declare const getLinearPipelineDefinitionInputSchema: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
344
|
+
export declare const listLinearPipelineDefinitionsByProjectIdInputSchema: z.ZodString & z.ZodType<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string, z.core.$ZodTypeInternals<import("@boboddy/core/common/contracts/uuid-v7").UuidV7, string>>;
|
|
345
|
+
export type LinearPipelineStepAdvancementPolicyDefinitionContract = z.infer<typeof linearPipelineStepAdvancementPolicyDefinitionSchema>;
|
|
346
|
+
export type LinearPipelineStepDefinitionContract = z.infer<typeof linearPipelineStepDefinitionSchema>;
|
|
347
|
+
export type LinearPipelineStepInputBinding = z.infer<typeof inputBindingSchema>;
|
|
348
|
+
export type LinearPipelineStepInputBindings = z.infer<typeof inputBindingsSchema>;
|
|
349
|
+
export type LinearPipelineDefinitionContract = z.infer<typeof linearPipelineDefinitionSchema>;
|
|
350
|
+
export type CreateLinearPipelineStepDefinitionInput = z.input<typeof createLinearPipelineStepDefinitionInputSchema>;
|
|
351
|
+
export type CreateLinearPipelineDefinitionInput = z.input<typeof createLinearPipelineDefinitionInputSchema>;
|
|
352
|
+
export type UpdateLinearPipelineDefinitionInput = z.input<typeof updateLinearPipelineDefinitionInputSchema>;
|
|
353
|
+
export type UpdateLinearPipelineStepDefinitionInput = z.input<typeof updateLinearPipelineStepDefinitionInputSchema>;
|
|
354
|
+
export type SetLinearPipelineStepAdvancementPolicyDefinitionInput = z.input<typeof setLinearPipelineStepAdvancementPolicyDefinitionInputSchema>;
|
|
355
|
+
export type GetLinearPipelineDefinitionInput = z.input<typeof getLinearPipelineDefinitionInputSchema>;
|
|
356
|
+
export type ListLinearPipelineDefinitionsByProjectIdInput = z.input<typeof listLinearPipelineDefinitionsByProjectIdInputSchema>;
|
|
357
|
+
export {};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
2
|
+
import { LinearPipelineStepDefinitionEntity, type LinearPipelineStepDefinitionEntityProps } from "../entities/linear-pipeline-step-definition-entity";
|
|
3
|
+
export declare const linearPipelineDefinitionStatusValues: readonly ["draft", "active", "archived"];
|
|
4
|
+
export type LinearPipelineDefinitionStatus = (typeof linearPipelineDefinitionStatusValues)[number];
|
|
5
|
+
export type LinearPipelineDefinitionEntityProps = {
|
|
6
|
+
id: UuidV7;
|
|
7
|
+
projectId: UuidV7;
|
|
8
|
+
key: string;
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | null | undefined;
|
|
11
|
+
version: number;
|
|
12
|
+
status: LinearPipelineDefinitionStatus;
|
|
13
|
+
stepDefinitions: readonly LinearPipelineStepDefinitionEntityProps[];
|
|
14
|
+
createdAt?: Date | string | null | undefined;
|
|
15
|
+
updatedAt?: Date | string | null | undefined;
|
|
16
|
+
};
|
|
17
|
+
export type CreateLinearPipelineDefinitionEntityProps = Omit<LinearPipelineDefinitionEntityProps, "id"> & {
|
|
18
|
+
id?: UuidV7 | undefined;
|
|
19
|
+
};
|
|
20
|
+
export declare class LinearPipelineDefinitionEntity {
|
|
21
|
+
readonly id: UuidV7;
|
|
22
|
+
readonly projectId: UuidV7;
|
|
23
|
+
readonly key: string;
|
|
24
|
+
readonly name: string;
|
|
25
|
+
readonly description: string | null;
|
|
26
|
+
readonly version: number;
|
|
27
|
+
readonly status: LinearPipelineDefinitionStatus;
|
|
28
|
+
readonly stepDefinitions: LinearPipelineStepDefinitionEntity[];
|
|
29
|
+
readonly createdAt: Date | null | undefined;
|
|
30
|
+
readonly updatedAt: Date | null | undefined;
|
|
31
|
+
private constructor();
|
|
32
|
+
static create(props: CreateLinearPipelineDefinitionEntityProps): LinearPipelineDefinitionEntity;
|
|
33
|
+
static rehydrate(props: LinearPipelineDefinitionEntityProps): LinearPipelineDefinitionEntity;
|
|
34
|
+
archive(now: Date): LinearPipelineDefinitionEntity;
|
|
35
|
+
toJSON(): LinearPipelineDefinitionEntityProps;
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
|
|
2
|
+
import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
3
|
+
import type { RuleProperties } from "json-rules-engine";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
export declare const linearPipelineStepAdvancementPolicyEventTypeValues: readonly ["continue", "block", "needs_review", "complete"];
|
|
6
|
+
export type LinearPipelineStepAdvancementPolicyEventType = (typeof linearPipelineStepAdvancementPolicyEventTypeValues)[number];
|
|
7
|
+
export type LinearPipelineStepAdvancementPolicyRule = Omit<RuleProperties, "onSuccess" | "onFailure"> & Record<string, unknown>;
|
|
8
|
+
export type LinearPipelineStepAdvancementPolicyRulesJson = {
|
|
9
|
+
rules: LinearPipelineStepAdvancementPolicyRule[];
|
|
10
|
+
};
|
|
11
|
+
export type LinearPipelineStepAdvancementPolicyDefinitionEntityProps = {
|
|
12
|
+
id: UuidV7;
|
|
13
|
+
linearPipelineStepDefinitionId: UuidV7;
|
|
14
|
+
rulesJson: LinearPipelineStepAdvancementPolicyRulesJson;
|
|
15
|
+
defaultEventType: LinearPipelineStepAdvancementPolicyEventType;
|
|
16
|
+
defaultEventParamsJson?: AnyJsonObject | null | undefined;
|
|
17
|
+
allowedEventTypes: LinearPipelineStepAdvancementPolicyEventType[];
|
|
18
|
+
createdAt?: Date | string | null | undefined;
|
|
19
|
+
updatedAt?: Date | string | null | undefined;
|
|
20
|
+
};
|
|
21
|
+
export type CreateLinearPipelineStepAdvancementPolicyDefinitionEntityProps = Omit<LinearPipelineStepAdvancementPolicyDefinitionEntityProps, "id"> & {
|
|
22
|
+
id?: UuidV7 | undefined;
|
|
23
|
+
};
|
|
24
|
+
export declare const linearPipelineStepAdvancementPolicyRuleSchema: z.ZodCustom<LinearPipelineStepAdvancementPolicyRule, LinearPipelineStepAdvancementPolicyRule>;
|
|
25
|
+
export declare const linearPipelineStepAdvancementPolicyRulesJsonSchema: z.ZodCustom<LinearPipelineStepAdvancementPolicyRulesJson, LinearPipelineStepAdvancementPolicyRulesJson>;
|
|
26
|
+
export declare const parseLinearPipelineStepAdvancementPolicyRules: (rulesJson: LinearPipelineStepAdvancementPolicyRulesJson, allowedEventTypes: readonly LinearPipelineStepAdvancementPolicyEventType[]) => LinearPipelineStepAdvancementPolicyRule[];
|
|
27
|
+
export declare const validateLinearPipelineStepAdvancementPolicyDefinition: (rulesJson: LinearPipelineStepAdvancementPolicyRulesJson, allowedEventTypes: readonly LinearPipelineStepAdvancementPolicyEventType[]) => void;
|
|
28
|
+
export declare class LinearPipelineStepAdvancementPolicyDefinitionEntity {
|
|
29
|
+
readonly id: UuidV7;
|
|
30
|
+
readonly linearPipelineStepDefinitionId: UuidV7;
|
|
31
|
+
readonly rulesJson: LinearPipelineStepAdvancementPolicyRulesJson;
|
|
32
|
+
readonly rules: LinearPipelineStepAdvancementPolicyRule[];
|
|
33
|
+
readonly defaultEventType: LinearPipelineStepAdvancementPolicyEventType;
|
|
34
|
+
readonly defaultEventParamsJson: AnyJsonObject | null;
|
|
35
|
+
readonly allowedEventTypes: LinearPipelineStepAdvancementPolicyEventType[];
|
|
36
|
+
readonly createdAt: Date | null | undefined;
|
|
37
|
+
readonly updatedAt: Date | null | undefined;
|
|
38
|
+
private constructor();
|
|
39
|
+
static create(props: CreateLinearPipelineStepAdvancementPolicyDefinitionEntityProps): LinearPipelineStepAdvancementPolicyDefinitionEntity;
|
|
40
|
+
static rehydrate(props: LinearPipelineStepAdvancementPolicyDefinitionEntityProps): LinearPipelineStepAdvancementPolicyDefinitionEntity;
|
|
41
|
+
toJSON(): LinearPipelineStepAdvancementPolicyDefinitionEntityProps;
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import type { AnyJsonObject } from "@boboddy/core/common/contracts/json";
|
|
2
|
+
import { type UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
3
|
+
import { LinearPipelineStepAdvancementPolicyDefinitionEntity, type LinearPipelineStepAdvancementPolicyDefinitionEntityProps } from "./linear-pipeline-step-advancement-policy-definition-entity";
|
|
4
|
+
export type LinearPipelineStepDefinitionEntityProps = {
|
|
5
|
+
id: UuidV7;
|
|
6
|
+
linearPipelineDefinitionId: UuidV7;
|
|
7
|
+
stepDefinitionId: UuidV7;
|
|
8
|
+
stepDefinitionVersion: number;
|
|
9
|
+
key: string;
|
|
10
|
+
name: string;
|
|
11
|
+
description?: string | null | undefined;
|
|
12
|
+
position: number;
|
|
13
|
+
inputBindingsJson?: AnyJsonObject | null | undefined;
|
|
14
|
+
timeoutSeconds?: number | null | undefined;
|
|
15
|
+
retryPolicyJson?: AnyJsonObject | null | undefined;
|
|
16
|
+
advancementPolicyDefinition: LinearPipelineStepAdvancementPolicyDefinitionEntityProps | null | undefined;
|
|
17
|
+
createdAt?: Date | string | null | undefined;
|
|
18
|
+
updatedAt?: Date | string | null | undefined;
|
|
19
|
+
};
|
|
20
|
+
export type CreateLinearPipelineStepDefinitionEntityProps = Omit<LinearPipelineStepDefinitionEntityProps, "id"> & {
|
|
21
|
+
id?: UuidV7 | undefined;
|
|
22
|
+
};
|
|
23
|
+
export declare class LinearPipelineStepDefinitionEntity {
|
|
24
|
+
readonly id: UuidV7;
|
|
25
|
+
readonly linearPipelineDefinitionId: UuidV7;
|
|
26
|
+
readonly stepDefinitionId: UuidV7;
|
|
27
|
+
readonly stepDefinitionVersion: number;
|
|
28
|
+
readonly key: string;
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly description: string | null;
|
|
31
|
+
readonly position: number;
|
|
32
|
+
readonly inputBindingsJson: AnyJsonObject | null;
|
|
33
|
+
readonly timeoutSeconds: number | null;
|
|
34
|
+
readonly retryPolicyJson: AnyJsonObject | null;
|
|
35
|
+
readonly advancementPolicyDefinition: LinearPipelineStepAdvancementPolicyDefinitionEntity | null;
|
|
36
|
+
readonly createdAt: Date | null | undefined;
|
|
37
|
+
readonly updatedAt: Date | null | undefined;
|
|
38
|
+
private constructor();
|
|
39
|
+
static create(props: CreateLinearPipelineStepDefinitionEntityProps): LinearPipelineStepDefinitionEntity;
|
|
40
|
+
static rehydrate(props: LinearPipelineStepDefinitionEntityProps): LinearPipelineStepDefinitionEntity;
|
|
41
|
+
toJSON(): LinearPipelineStepDefinitionEntityProps;
|
|
42
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { LinearPipelineDefinitionRepo } from "../application/linear-pipeline-definition-repo";
|
|
3
|
+
import { LinearPipelineDefinitionEntity, type LinearPipelineDefinitionEntityProps } from "../domain/linear-pipeline-definition-entity";
|
|
4
|
+
export declare class DrizzleLinearPipelineDefinitionRepo implements LinearPipelineDefinitionRepo {
|
|
5
|
+
private toEntity;
|
|
6
|
+
private loadManyFromRows;
|
|
7
|
+
load(id: LinearPipelineDefinitionEntityProps["id"], dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity | null>;
|
|
8
|
+
listByProjectId(projectId: LinearPipelineDefinitionEntityProps["projectId"], dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity[]>;
|
|
9
|
+
create(linearPipelineDefinition: LinearPipelineDefinitionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity>;
|
|
10
|
+
save(linearPipelineDefinition: LinearPipelineDefinitionEntity, dbExecutor?: DbExecutor): Promise<LinearPipelineDefinitionEntity>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import { type GetStepDefinitionInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
|
|
4
|
+
import type { StepDefinitionRepo } from "./step-definition-repo";
|
|
5
|
+
export declare const archiveStepDefinition: (input: GetStepDefinitionInput, { stepDefinitionRepo, timeProvider, dbExecutor, }: {
|
|
6
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
7
|
+
timeProvider: TimeProvider;
|
|
8
|
+
dbExecutor?: DbExecutor | undefined;
|
|
9
|
+
}) => Promise<StepDefinitionContract>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import { type CreateStepDefinitionInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
|
|
4
|
+
import type { StepDefinitionRepo } from "./step-definition-repo";
|
|
5
|
+
export declare const createStepDefinition: (input: CreateStepDefinitionInput, { stepDefinitionRepo, timeProvider, dbExecutor, }: {
|
|
6
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
7
|
+
timeProvider: TimeProvider;
|
|
8
|
+
dbExecutor?: DbExecutor | undefined;
|
|
9
|
+
}) => Promise<StepDefinitionContract>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import { type GetStepDefinitionInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
|
|
3
|
+
import type { StepDefinitionRepo } from "./step-definition-repo";
|
|
4
|
+
export declare const getStepDefinition: (input: GetStepDefinitionInput, { stepDefinitionRepo, dbExecutor, }: {
|
|
5
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
6
|
+
dbExecutor?: DbExecutor | undefined;
|
|
7
|
+
}) => Promise<StepDefinitionContract>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import { type ListStepDefinitionsByProjectIdInput, type StepDefinitionContract } from "../contracts/step-definition-contracts";
|
|
3
|
+
import type { StepDefinitionRepo } from "./step-definition-repo";
|
|
4
|
+
export declare const listStepDefinitionsByProjectId: (input: ListStepDefinitionsByProjectIdInput, { stepDefinitionRepo, dbExecutor, }: {
|
|
5
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
6
|
+
dbExecutor?: DbExecutor | undefined;
|
|
7
|
+
}) => Promise<StepDefinitionContract[]>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { StepDefinitionContract } from "../contracts/step-definition-contracts";
|
|
2
|
+
import type { StepDefinitionEntity } from "../domain/step-definition-entity";
|
|
3
|
+
export declare const stepDefinitionEntityToContract: (stepDefinition: StepDefinitionEntity) => StepDefinitionContract;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { UuidV7 } from "@boboddy/core/common/contracts/uuid-v7";
|
|
2
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
3
|
+
import type { StepDefinitionEntity } from "../domain/step-definition-entity";
|
|
4
|
+
export type StepDefinitionRepo = {
|
|
5
|
+
load(id: UuidV7, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity | null>;
|
|
6
|
+
listByProjectId(projectId: UuidV7, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity[]>;
|
|
7
|
+
create(stepDefinition: StepDefinitionEntity, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity>;
|
|
8
|
+
save(stepDefinition: StepDefinitionEntity, dbExecutor?: DbExecutor): Promise<StepDefinitionEntity>;
|
|
9
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DbExecutor } from "@boboddy/core/lib/db/db-executor";
|
|
2
|
+
import type { TimeProvider } from "@boboddy/core/lib/time-provider";
|
|
3
|
+
import { type GetStepDefinitionInput, type StepDefinitionContract, type UpdateStepDefinitionInput } from "../contracts/step-definition-contracts";
|
|
4
|
+
import type { StepDefinitionRepo } from "./step-definition-repo";
|
|
5
|
+
export declare const updateStepDefinition: (stepDefinitionIdInput: GetStepDefinitionInput, input: UpdateStepDefinitionInput, { stepDefinitionRepo, timeProvider, dbExecutor, }: {
|
|
6
|
+
stepDefinitionRepo: StepDefinitionRepo;
|
|
7
|
+
timeProvider: TimeProvider;
|
|
8
|
+
dbExecutor?: DbExecutor | undefined;
|
|
9
|
+
}) => Promise<StepDefinitionContract>;
|