@hatchet-dev/typescript-sdk 1.15.0 → 1.15.2
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/{src/clients → clients}/admin/admin-client.d.ts +9 -9
- package/{src/clients → clients}/admin/admin-client.js +6 -6
- package/{src/clients → clients}/dispatcher/action-listener.d.ts +4 -4
- package/{src/clients → clients}/dispatcher/action-listener.js +3 -3
- package/{src/clients → clients}/dispatcher/dispatcher-client.d.ts +9 -9
- package/{src/clients → clients}/dispatcher/dispatcher-client.js +5 -5
- package/{src/clients → clients}/dispatcher/heartbeat/heartbeat-controller.d.ts +2 -2
- package/{src/clients → clients}/dispatcher/heartbeat/heartbeat-controller.js +1 -1
- package/{src/clients → clients}/dispatcher/heartbeat/heartbeat-worker.js +3 -3
- package/{src/clients → clients}/event/event-client.d.ts +7 -7
- package/{src/clients → clients}/event/event-client.js +4 -4
- package/{src/clients → clients}/hatchet-client/client-config.d.ts +2 -2
- package/{src/clients → clients}/hatchet-client/hatchet-logger.d.ts +1 -1
- package/{src/clients → clients}/hatchet-client/hatchet-logger.js +1 -1
- package/clients/hatchet-client/index.d.ts +3 -0
- package/{src/clients → clients}/hatchet-client/index.js +1 -1
- package/{src/clients → clients}/listeners/durable-listener/durable-listener-client.d.ts +6 -6
- package/{src/clients → clients}/listeners/durable-listener/durable-listener-client.js +1 -1
- package/{src/clients → clients}/listeners/durable-listener/pooled-durable-listener-client.d.ts +2 -2
- package/{src/clients → clients}/listeners/durable-listener/pooled-durable-listener-client.js +2 -2
- package/{src/clients → clients}/listeners/run-listener/child-listener-client.d.ts +3 -3
- package/{src/clients → clients}/listeners/run-listener/child-listener-client.js +3 -3
- package/{src/clients → clients}/listeners/run-listener/pooled-child-listener-client.d.ts +1 -1
- package/{src/clients → clients}/listeners/run-listener/pooled-child-listener-client.js +3 -3
- package/{src/index.d.ts → index.d.ts} +1 -1
- package/{src/index.js → index.js} +1 -1
- package/{src/legacy → legacy}/examples/affinity-workers.js +1 -1
- package/{src/v1/examples/logger → legacy/examples}/byo-logger.js +1 -1
- package/{src/legacy → legacy}/legacy-client.d.ts +9 -9
- package/{src/legacy → legacy}/legacy-client.js +10 -10
- package/{src/legacy → legacy}/legacy-transformer.d.ts +2 -2
- package/{src/legacy → legacy}/legacy-transformer.js +1 -1
- package/{src/legacy → legacy}/step.js +2 -2
- package/package.json +1 -1
- package/sdk.d.ts +2 -0
- package/{src/sdk.js → sdk.js} +1 -1
- package/{src/util → util}/config-loader/config-loader.d.ts +1 -1
- package/{src/util → util}/config-loader/config-loader.js +1 -1
- package/{src/util → util}/grpc-helpers.d.ts +1 -1
- package/{src/util → util}/logger/logger.d.ts +1 -1
- package/{src/util → util}/workflow-run-ref.d.ts +2 -2
- package/{src/v1 → v1}/client/admin.d.ts +9 -9
- package/{src/v1 → v1}/client/admin.js +9 -9
- package/{src/v1 → v1}/client/client.d.ts +8 -8
- package/{src/v1 → v1}/client/client.interface.d.ts +5 -3
- package/{src/v1 → v1}/client/client.js +9 -9
- package/{src/v1 → v1}/client/features/cel.d.ts +1 -1
- package/{src/v1 → v1}/client/features/cel.js +1 -1
- package/{src/v1 → v1}/client/features/crons.d.ts +3 -3
- package/{src/v1 → v1}/client/features/crons.js +2 -2
- package/{src/v1 → v1}/client/features/ratelimits.d.ts +3 -3
- package/{src/v1 → v1}/client/features/ratelimits.js +2 -2
- package/{src/v1 → v1}/client/features/runs.d.ts +7 -7
- package/{src/v1 → v1}/client/features/runs.js +2 -2
- package/{src/v1 → v1}/client/features/schedules.d.ts +3 -3
- package/{src/v1 → v1}/client/features/schedules.js +2 -2
- package/{src/v1 → v1}/client/features/tenant.d.ts +1 -1
- package/{src/v1 → v1}/client/features/webhooks.d.ts +1 -1
- package/{src/v1 → v1}/client/features/webhooks.js +1 -1
- package/{src/v1 → v1}/client/features/workflows.d.ts +2 -2
- package/{src/v1 → v1}/client/features/workflows.js +2 -2
- package/{src/v1 → v1}/client/worker/context.d.ts +10 -10
- package/{src/v1 → v1}/client/worker/context.js +9 -9
- package/{src/v1 → v1}/client/worker/deprecated/deprecation.d.ts +1 -1
- package/{src/v1 → v1}/client/worker/deprecated/legacy-registration.d.ts +2 -2
- package/{src/v1 → v1}/client/worker/deprecated/legacy-registration.js +2 -2
- package/{src/v1 → v1}/client/worker/deprecated/legacy-v1-worker.d.ts +2 -2
- package/{src/v1 → v1}/client/worker/health-server.d.ts +1 -1
- package/{src/v1 → v1}/client/worker/worker-internal.d.ts +8 -8
- package/{src/v1 → v1}/client/worker/worker-internal.js +11 -11
- package/{src/v1 → v1}/client/worker/worker.d.ts +1 -1
- package/{src/v1 → v1}/client/worker/worker.js +1 -1
- package/v1/conditions/transformer.d.ts +5 -0
- package/{src/v1 → v1}/conditions/transformer.js +5 -4
- package/{src/v1 → v1}/declaration.d.ts +4 -4
- package/{src/v1 → v1}/declaration.js +1 -1
- package/{src/v1 → v1}/examples/__e2e__/harness.d.ts +2 -2
- package/{src/v1 → v1}/examples/__e2e__/harness.js +2 -2
- package/{src/v1 → v1}/examples/affinity/affinity-workers.js +1 -1
- package/{src/v1 → v1}/examples/cancellation/cancellation-workflow.js +1 -1
- package/{src/v1 → v1}/examples/cancellation/run.js +1 -1
- package/{src/v1 → v1}/examples/cancellations/run.js +1 -1
- package/{src/v1 → v1}/examples/cancellations/workflow.js +1 -1
- package/{src/v1 → v1}/examples/concurrency-rr/workflow.js +1 -1
- package/{src/v1 → v1}/examples/concurrency_cancel_in_progress/workflow.d.ts +1 -1
- package/{src/v1 → v1}/examples/concurrency_cancel_in_progress/workflow.js +2 -2
- package/{src/v1 → v1}/examples/concurrency_cancel_newest/workflow.d.ts +1 -1
- package/{src/v1 → v1}/examples/concurrency_cancel_newest/workflow.js +2 -2
- package/v1/examples/concurrency_limit_rr/workflow.d.ts +12 -0
- package/{src/v1 → v1}/examples/concurrency_limit_rr/workflow.js +1 -1
- package/{src/v1 → v1}/examples/concurrency_multiple_keys/workflow.d.ts +1 -1
- package/{src/v1 → v1}/examples/concurrency_multiple_keys/workflow.js +1 -1
- package/{src/v1 → v1}/examples/concurrency_workflow_level/workflow.d.ts +1 -1
- package/{src/v1 → v1}/examples/concurrency_workflow_level/workflow.js +1 -1
- package/{src/v1 → v1}/examples/conditions/complex-workflow.js +2 -2
- package/{src/v1 → v1}/examples/conditions/workflow.js +2 -2
- package/{src/v1 → v1}/examples/dag/interface-workflow.d.ts +2 -2
- package/{src/v1 → v1}/examples/dag_match_condition/complex-workflow.js +2 -2
- package/{src/v1 → v1}/examples/dag_match_condition/workflow.js +2 -2
- package/{src/v1 → v1}/examples/deep/workflow.js +1 -1
- package/{src/v1 → v1}/examples/durable/workflow.js +1 -1
- package/{src/v1/examples/durable_event → v1/examples/durable-event}/workflow.js +1 -1
- package/{src/v1 → v1}/examples/durable-sleep/workflow.js +1 -1
- package/{src/v1/examples/durable-event → v1/examples/durable_event}/workflow.js +1 -1
- package/{src/v1 → v1}/examples/durable_sleep/workflow.js +1 -1
- package/{src/v1 → v1}/examples/hatchet-client.d.ts +1 -1
- package/{src/v1 → v1}/examples/hatchet-client.js +1 -1
- package/{src/v1 → v1}/examples/landing_page/durable-excution.js +1 -1
- package/{src/v1 → v1}/examples/landing_page/flow-control.js +1 -1
- package/v1/examples/legacy/workflow.d.ts +2 -0
- package/v1/examples/logger/workflow.d.ts +2 -0
- package/{src/v1 → v1}/examples/logging/byo-logger.js +1 -1
- package/{src/v1 → v1}/examples/middleware/client.d.ts +1 -1
- package/{src/v1 → v1}/examples/middleware/client.js +1 -1
- package/{src/v1 → v1}/examples/middleware/recipes.js +1 -1
- package/{src/v1 → v1}/examples/migration-guides/hatchet-client.d.ts +1 -1
- package/{src/v1 → v1}/examples/migration-guides/hatchet-client.js +1 -1
- package/{src/v1 → v1}/examples/multiple_wf_concurrency/workflow.d.ts +1 -1
- package/{src/v1 → v1}/examples/multiple_wf_concurrency/workflow.js +1 -1
- package/{src/v1 → v1}/examples/non_retryable/workflow.js +1 -1
- package/{src/v1 → v1}/examples/priority/run.js +1 -1
- package/v1/examples/priority/workflow.d.ts +8 -0
- package/{src/v1 → v1}/examples/priority/workflow.js +1 -1
- package/{src/v1 → v1}/examples/quickstart/hatchet-client.d.ts +1 -1
- package/{src/v1 → v1}/examples/quickstart/hatchet-client.js +1 -1
- package/{src/v1 → v1}/examples/rate_limit/workflow.js +1 -1
- package/{src/v1 → v1}/examples/run_details/workflow.js +1 -1
- package/v1/examples/simple/e2e-workflows.d.ts +14 -0
- package/{src/v1 → v1}/examples/simple/replay-cancel.js +1 -1
- package/v1/examples/sticky/workflow.d.ts +5 -0
- package/{src/v1 → v1}/examples/sticky/workflow.js +1 -1
- package/{src/v1 → v1}/examples/timeout/workflow.js +1 -1
- package/{src/v1 → v1}/examples/timeouts/workflow.js +1 -1
- package/{src/v1 → v1}/examples/with_timeouts/workflow.js +1 -1
- package/{src/v1 → v1}/task.d.ts +1 -1
- package/{src/v1 → v1}/task.js +1 -1
- package/{src/v1 → v1}/types.d.ts +1 -1
- package/version.d.ts +1 -0
- package/{src/version.js → version.js} +1 -1
- package/{src/workflow.d.ts → workflow.d.ts} +1 -1
- package/{src/workflow.js → workflow.js} +1 -1
- package/docs/doc_types.d.ts +0 -12
- package/docs/doc_types.js +0 -62
- package/docs/generate.d.ts +0 -1
- package/docs/generate.js +0 -87
- package/docs/paths.d.ts +0 -2
- package/docs/paths.js +0 -16
- package/docs/shared.d.ts +0 -3
- package/docs/shared.js +0 -6
- package/src/clients/hatchet-client/index.d.ts +0 -3
- package/src/sdk.d.ts +0 -2
- package/src/v1/conditions/transformer.d.ts +0 -5
- package/src/v1/examples/concurrency_limit_rr/workflow.d.ts +0 -12
- package/src/v1/examples/legacy/workflow.d.ts +0 -2
- package/src/v1/examples/logger/workflow.d.ts +0 -2
- package/src/v1/examples/priority/workflow.d.ts +0 -8
- package/src/v1/examples/simple/e2e-workflows.d.ts +0 -14
- package/src/v1/examples/sticky/workflow.d.ts +0 -5
- package/src/version.d.ts +0 -1
- /package/{src/clients → clients}/admin/index.d.ts +0 -0
- /package/{src/clients → clients}/admin/index.js +0 -0
- /package/{src/clients → clients}/dispatcher/heartbeat/heartbeat-worker.d.ts +0 -0
- /package/{src/clients → clients}/hatchet-client/client-config.js +0 -0
- /package/{src/clients → clients}/rest/api.d.ts +0 -0
- /package/{src/clients → clients}/rest/api.js +0 -0
- /package/{src/clients → clients}/rest/generated/Api.d.ts +0 -0
- /package/{src/clients → clients}/rest/generated/Api.js +0 -0
- /package/{src/clients → clients}/rest/generated/data-contracts.d.ts +0 -0
- /package/{src/clients → clients}/rest/generated/data-contracts.js +0 -0
- /package/{src/clients → clients}/rest/generated/http-client.d.ts +0 -0
- /package/{src/clients → clients}/rest/generated/http-client.js +0 -0
- /package/{src/clients → clients}/rest/index.d.ts +0 -0
- /package/{src/clients → clients}/rest/index.js +0 -0
- /package/{src/legacy → legacy}/examples/affinity-workers.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/bulk-fanout-trigger.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/bulk-fanout-trigger.js +0 -0
- /package/{src/legacy → legacy}/examples/bulk-fanout-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/bulk-fanout-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/bulk-trigger.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/bulk-trigger.js +0 -0
- /package/{src/legacy → legacy}/examples/byo-logger.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/cancel-in-progress/concurrency-event.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/cancel-in-progress/concurrency-event.js +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/cancel-in-progress/concurrency-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/cancel-in-progress/concurrency-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/group-round-robin/concurrency-event.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/group-round-robin/concurrency-event.js +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/group-round-robin/concurrency-worker-expression.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/group-round-robin/concurrency-worker-expression.js +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/group-round-robin/concurrency-worker-key-fn.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/concurrency/group-round-robin/concurrency-worker-key-fn.js +0 -0
- /package/{src/legacy → legacy}/examples/crons/cron-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/crons/cron-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/crons/programatic-crons.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/crons/programatic-crons.js +0 -0
- /package/{src/legacy → legacy}/examples/dag-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/dag-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/example-event-with-results.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/example-event-with-results.js +0 -0
- /package/{src/legacy → legacy}/examples/example-event.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/example-event.js +0 -0
- /package/{src/legacy → legacy}/examples/fanout-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/fanout-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/logger.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/logger.js +0 -0
- /package/{src/legacy → legacy}/examples/manual-trigger.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/manual-trigger.js +0 -0
- /package/{src/legacy → legacy}/examples/multi-workflow.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/multi-workflow.js +0 -0
- /package/{src/legacy → legacy}/examples/namespaced-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/namespaced-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/on-failure.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/on-failure.js +0 -0
- /package/{src/legacy → legacy}/examples/rate-limit/events.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/rate-limit/events.js +0 -0
- /package/{src/legacy → legacy}/examples/rate-limit/worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/rate-limit/worker.js +0 -0
- /package/{src/legacy → legacy}/examples/retries-with-backoff.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/retries-with-backoff.js +0 -0
- /package/{src/legacy → legacy}/examples/retries-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/retries-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/scheduled-runs/programatic-schedules.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/scheduled-runs/programatic-schedules.js +0 -0
- /package/{src/legacy → legacy}/examples/simple-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/simple-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/sticky-trigger.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/sticky-trigger.js +0 -0
- /package/{src/legacy → legacy}/examples/sticky-worker-with-check.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/sticky-worker-with-check.js +0 -0
- /package/{src/legacy → legacy}/examples/sticky-worker.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/sticky-worker.js +0 -0
- /package/{src/legacy → legacy}/examples/stream-by-additional-meta.d.ts +0 -0
- /package/{src/legacy → legacy}/examples/stream-by-additional-meta.js +0 -0
- /package/{src/legacy → legacy}/step.d.ts +0 -0
- /package/{src/legacy → legacy}/workflow.d.ts +0 -0
- /package/{src/legacy → legacy}/workflow.js +0 -0
- /package/{src/protoc → protoc}/dispatcher/dispatcher.d.ts +0 -0
- /package/{src/protoc → protoc}/dispatcher/dispatcher.js +0 -0
- /package/{src/protoc → protoc}/dispatcher/index.d.ts +0 -0
- /package/{src/protoc → protoc}/dispatcher/index.js +0 -0
- /package/{src/protoc → protoc}/events/events.d.ts +0 -0
- /package/{src/protoc → protoc}/events/events.js +0 -0
- /package/{src/protoc → protoc}/events/index.d.ts +0 -0
- /package/{src/protoc → protoc}/events/index.js +0 -0
- /package/{src/protoc → protoc}/google/protobuf/timestamp.d.ts +0 -0
- /package/{src/protoc → protoc}/google/protobuf/timestamp.js +0 -0
- /package/{src/protoc → protoc}/google/protobuf/wrappers.d.ts +0 -0
- /package/{src/protoc → protoc}/google/protobuf/wrappers.js +0 -0
- /package/{src/protoc → protoc}/v1/dispatcher.d.ts +0 -0
- /package/{src/protoc → protoc}/v1/dispatcher.js +0 -0
- /package/{src/protoc → protoc}/v1/shared/condition.d.ts +0 -0
- /package/{src/protoc → protoc}/v1/shared/condition.js +0 -0
- /package/{src/protoc → protoc}/v1/workflows.d.ts +0 -0
- /package/{src/protoc → protoc}/v1/workflows.js +0 -0
- /package/{src/protoc → protoc}/workflows/index.d.ts +0 -0
- /package/{src/protoc → protoc}/workflows/index.js +0 -0
- /package/{src/protoc → protoc}/workflows/v1-admin.d.ts +0 -0
- /package/{src/protoc → protoc}/workflows/v1-admin.js +0 -0
- /package/{src/protoc → protoc}/workflows/workflows.d.ts +0 -0
- /package/{src/protoc → protoc}/workflows/workflows.js +0 -0
- /package/{src/step.d.ts → step.d.ts} +0 -0
- /package/{src/step.js → step.js} +0 -0
- /package/{src/util → util}/abort-error.d.ts +0 -0
- /package/{src/util → util}/abort-error.js +0 -0
- /package/{src/util → util}/apply-namespace.d.ts +0 -0
- /package/{src/util → util}/apply-namespace.js +0 -0
- /package/{src/util → util}/batch.d.ts +0 -0
- /package/{src/util → util}/batch.js +0 -0
- /package/{src/util → util}/config-loader/index.d.ts +0 -0
- /package/{src/util → util}/config-loader/index.js +0 -0
- /package/{src/util → util}/config-loader/token.d.ts +0 -0
- /package/{src/util → util}/config-loader/token.js +0 -0
- /package/{src/util → util}/errors/hatchet-error.d.ts +0 -0
- /package/{src/util → util}/errors/hatchet-error.js +0 -0
- /package/{src/util → util}/grpc-helpers.js +0 -0
- /package/{src/util → util}/hatchet-promise/hatchet-promise.d.ts +0 -0
- /package/{src/util → util}/hatchet-promise/hatchet-promise.js +0 -0
- /package/{src/util → util}/logger/index.d.ts +0 -0
- /package/{src/util → util}/logger/index.js +0 -0
- /package/{src/util → util}/logger/logger.js +0 -0
- /package/{src/util → util}/logger/task-run-log.d.ts +0 -0
- /package/{src/util → util}/logger/task-run-log.js +0 -0
- /package/{src/util → util}/parse.d.ts +0 -0
- /package/{src/util → util}/parse.js +0 -0
- /package/{src/util → util}/retrier.d.ts +0 -0
- /package/{src/util → util}/retrier.js +0 -0
- /package/{src/util → util}/sleep.d.ts +0 -0
- /package/{src/util → util}/sleep.js +0 -0
- /package/{src/util → util}/thread-helper.d.ts +0 -0
- /package/{src/util → util}/thread-helper.js +0 -0
- /package/{src/util → util}/uuid.d.ts +0 -0
- /package/{src/util → util}/uuid.js +0 -0
- /package/{src/util → util}/workflow-run-ref.js +0 -0
- /package/{src/v1 → v1}/client/client.interface.js +0 -0
- /package/{src/v1 → v1}/client/duration.d.ts +0 -0
- /package/{src/v1 → v1}/client/duration.js +0 -0
- /package/{src/v1 → v1}/client/features/filters.d.ts +0 -0
- /package/{src/v1 → v1}/client/features/filters.js +0 -0
- /package/{src/v1 → v1}/client/features/index.d.ts +0 -0
- /package/{src/v1 → v1}/client/features/index.js +0 -0
- /package/{src/v1 → v1}/client/features/metrics.d.ts +0 -0
- /package/{src/v1 → v1}/client/features/metrics.js +0 -0
- /package/{src/v1 → v1}/client/features/tenant.js +0 -0
- /package/{src/v1 → v1}/client/features/workers.d.ts +0 -0
- /package/{src/v1 → v1}/client/features/workers.js +0 -0
- /package/{src/v1 → v1}/client/worker/deprecated/deprecation.js +0 -0
- /package/{src/v1 → v1}/client/worker/deprecated/index.d.ts +0 -0
- /package/{src/v1 → v1}/client/worker/deprecated/index.js +0 -0
- /package/{src/v1 → v1}/client/worker/deprecated/legacy-v1-worker.js +0 -0
- /package/{src/v1 → v1}/client/worker/deprecated/legacy-worker.d.ts +0 -0
- /package/{src/v1 → v1}/client/worker/deprecated/legacy-worker.js +0 -0
- /package/{src/v1 → v1}/client/worker/health-server.js +0 -0
- /package/{src/v1 → v1}/client/worker/slot-utils.d.ts +0 -0
- /package/{src/v1 → v1}/client/worker/slot-utils.js +0 -0
- /package/{src/v1 → v1}/conditions/base.d.ts +0 -0
- /package/{src/v1 → v1}/conditions/base.js +0 -0
- /package/{src/v1 → v1}/conditions/index.d.ts +0 -0
- /package/{src/v1 → v1}/conditions/index.js +0 -0
- /package/{src/v1 → v1}/conditions/parent-condition.d.ts +0 -0
- /package/{src/v1 → v1}/conditions/parent-condition.js +0 -0
- /package/{src/v1 → v1}/conditions/sleep-condition.d.ts +0 -0
- /package/{src/v1 → v1}/conditions/sleep-condition.js +0 -0
- /package/{src/v1 → v1}/conditions/user-event-condition.d.ts +0 -0
- /package/{src/v1 → v1}/conditions/user-event-condition.js +0 -0
- /package/{src/v1 → v1}/examples/affinity/affinity-workers.d.ts +0 -0
- /package/{src/v1 → v1}/examples/bulk_fanout/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/bulk_fanout/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/bulk_operations/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/bulk_operations/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/cancellation/cancellation-workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/cancellation/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/cancellation/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/cancellation/worker.js +0 -0
- /package/{src/v1 → v1}/examples/cancellations/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/cancellations/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/cancellations/worker.js +0 -0
- /package/{src/v1 → v1}/examples/cancellations/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/child_workflows/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/child_workflows/run.js +0 -0
- /package/{src/v1 → v1}/examples/child_workflows/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/child_workflows/worker.js +0 -0
- /package/{src/v1 → v1}/examples/child_workflows/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/child_workflows/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/load.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/load.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/run.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/worker.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency-rr/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency-types.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency-types.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency_limit_rr/load.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency_limit_rr/load.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency_limit_rr/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency_limit_rr/run.js +0 -0
- /package/{src/v1 → v1}/examples/concurrency_limit_rr/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/concurrency_limit_rr/worker.js +0 -0
- /package/{src/v1 → v1}/examples/conditions/complex-workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/conditions/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/conditions/event.js +0 -0
- /package/{src/v1 → v1}/examples/conditions/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/conditions/run.js +0 -0
- /package/{src/v1 → v1}/examples/conditions/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/conditions/worker.js +0 -0
- /package/{src/v1 → v1}/examples/conditions/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag/interface-workflow.js +0 -0
- /package/{src/v1 → v1}/examples/dag/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag/run.js +0 -0
- /package/{src/v1 → v1}/examples/dag/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag/worker.js +0 -0
- /package/{src/v1 → v1}/examples/dag/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/complex-workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/event.js +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/run.js +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/worker.js +0 -0
- /package/{src/v1 → v1}/examples/dag_match_condition/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/deep/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/deep/run.js +0 -0
- /package/{src/v1 → v1}/examples/deep/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/deep/worker.js +0 -0
- /package/{src/v1 → v1}/examples/deep/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-event/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-event/event.js +0 -0
- /package/{src/v1 → v1}/examples/durable-event/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-event/run.js +0 -0
- /package/{src/v1 → v1}/examples/durable-event/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-event/worker.js +0 -0
- /package/{src/v1 → v1}/examples/durable-event/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/event.js +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/run.js +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/worker.js +0 -0
- /package/{src/v1 → v1}/examples/durable-sleep/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_event/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_event/event.js +0 -0
- /package/{src/v1 → v1}/examples/durable_event/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_event/run.js +0 -0
- /package/{src/v1 → v1}/examples/durable_event/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_event/worker.js +0 -0
- /package/{src/v1 → v1}/examples/durable_event/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/event.js +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/run.js +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/worker.js +0 -0
- /package/{src/v1 → v1}/examples/durable_sleep/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/e2e-worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/e2e-worker.js +0 -0
- /package/{src/v1 → v1}/examples/events/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/events/event.js +0 -0
- /package/{src/v1 → v1}/examples/events/filter.d.ts +0 -0
- /package/{src/v1 → v1}/examples/events/filter.js +0 -0
- /package/{src/v1 → v1}/examples/events/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/events/worker.js +0 -0
- /package/{src/v1 → v1}/examples/events/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/events/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/high-memory/child-worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/high-memory/child-worker.js +0 -0
- /package/{src/v1 → v1}/examples/high-memory/parent-worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/high-memory/parent-worker.js +0 -0
- /package/{src/v1 → v1}/examples/high-memory/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/high-memory/run.js +0 -0
- /package/{src/v1 → v1}/examples/high-memory/workflow-with-child.d.ts +0 -0
- /package/{src/v1 → v1}/examples/high-memory/workflow-with-child.js +0 -0
- /package/{src/v1 → v1}/examples/inferred-typing/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/inferred-typing/run.js +0 -0
- /package/{src/v1 → v1}/examples/inferred-typing/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/inferred-typing/worker.js +0 -0
- /package/{src/v1 → v1}/examples/inferred-typing/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/inferred-typing/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/landing_page/durable-excution.d.ts +0 -0
- /package/{src/v1 → v1}/examples/landing_page/event-signaling.d.ts +0 -0
- /package/{src/v1 → v1}/examples/landing_page/event-signaling.js +0 -0
- /package/{src/v1 → v1}/examples/landing_page/flow-control.d.ts +0 -0
- /package/{src/v1 → v1}/examples/landing_page/queues.d.ts +0 -0
- /package/{src/v1 → v1}/examples/landing_page/queues.js +0 -0
- /package/{src/v1 → v1}/examples/landing_page/scheduling.d.ts +0 -0
- /package/{src/v1 → v1}/examples/landing_page/scheduling.js +0 -0
- /package/{src/v1 → v1}/examples/landing_page/task-routing.d.ts +0 -0
- /package/{src/v1 → v1}/examples/landing_page/task-routing.js +0 -0
- /package/{src/v1 → v1}/examples/legacy/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/legacy/run.js +0 -0
- /package/{src/v1 → v1}/examples/legacy/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/legacy/worker.js +0 -0
- /package/{src/v1 → v1}/examples/legacy/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/logger/byo-logger.d.ts +0 -0
- /package/{src/legacy/examples → v1/examples/logger}/byo-logger.js +0 -0
- /package/{src/v1 → v1}/examples/logger/logger.d.ts +0 -0
- /package/{src/v1 → v1}/examples/logger/logger.js +0 -0
- /package/{src/v1 → v1}/examples/logger/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/logging/byo-logger.d.ts +0 -0
- /package/{src/v1 → v1}/examples/logging/logger.d.ts +0 -0
- /package/{src/v1 → v1}/examples/logging/logger.js +0 -0
- /package/{src/v1 → v1}/examples/middleware/recipes.d.ts +0 -0
- /package/{src/v1 → v1}/examples/middleware/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/middleware/run.js +0 -0
- /package/{src/v1 → v1}/examples/middleware/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/middleware/worker.js +0 -0
- /package/{src/v1 → v1}/examples/middleware/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/middleware/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/migration-guides/mergent.d.ts +0 -0
- /package/{src/v1 → v1}/examples/migration-guides/mergent.js +0 -0
- /package/{src/v1 → v1}/examples/multiple_wf_concurrency/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/multiple_wf_concurrency/run.js +0 -0
- /package/{src/v1 → v1}/examples/multiple_wf_concurrency/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/multiple_wf_concurrency/worker.js +0 -0
- /package/{src/v1 → v1}/examples/non_retryable/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/non_retryable/run.js +0 -0
- /package/{src/v1 → v1}/examples/non_retryable/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/non_retryable/worker.js +0 -0
- /package/{src/v1 → v1}/examples/non_retryable/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_cron/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_cron/worker.js +0 -0
- /package/{src/v1 → v1}/examples/on_cron/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_cron/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/on_event/event.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_event/event.js +0 -0
- /package/{src/v1 → v1}/examples/on_event/filter.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_event/filter.js +0 -0
- /package/{src/v1 → v1}/examples/on_event/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_event/worker.js +0 -0
- /package/{src/v1 → v1}/examples/on_event/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_event/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/on_failure/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_failure/run.js +0 -0
- /package/{src/v1 → v1}/examples/on_failure/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_failure/worker.js +0 -0
- /package/{src/v1 → v1}/examples/on_failure/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_failure/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/on_success/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_success/run.js +0 -0
- /package/{src/v1 → v1}/examples/on_success/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_success/worker.js +0 -0
- /package/{src/v1 → v1}/examples/on_success/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/on_success/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/priority/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/priority/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/priority/worker.js +0 -0
- /package/{src/v1 → v1}/examples/quickstart/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/quickstart/run.js +0 -0
- /package/{src/v1 → v1}/examples/quickstart/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/quickstart/worker.js +0 -0
- /package/{src/v1 → v1}/examples/quickstart/workflows/first-task.d.ts +0 -0
- /package/{src/v1 → v1}/examples/quickstart/workflows/first-task.js +0 -0
- /package/{src/v1 → v1}/examples/rate_limit/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/retries/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/retries/run.js +0 -0
- /package/{src/v1 → v1}/examples/retries/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/retries/worker.js +0 -0
- /package/{src/v1 → v1}/examples/retries/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/retries/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/return_exceptions/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/return_exceptions/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/run_details/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/runtime_affinity/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/runtime_affinity/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/simple/bulk.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/bulk.js +0 -0
- /package/{src/v1 → v1}/examples/simple/client-run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/client-run.js +0 -0
- /package/{src/v1 → v1}/examples/simple/cron.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/cron.js +0 -0
- /package/{src/v1 → v1}/examples/simple/delay.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/delay.js +0 -0
- /package/{src/v1 → v1}/examples/simple/e2e-workflows.js +0 -0
- /package/{src/v1 → v1}/examples/simple/enqueue.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/enqueue.js +0 -0
- /package/{src/v1 → v1}/examples/simple/replay-cancel.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/run.js +0 -0
- /package/{src/v1 → v1}/examples/simple/schedule.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/schedule.js +0 -0
- /package/{src/v1 → v1}/examples/simple/stub-workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/stub-workflow.js +0 -0
- /package/{src/v1 → v1}/examples/simple/typed-run-methods.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/typed-run-methods.js +0 -0
- /package/{src/v1 → v1}/examples/simple/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/worker.js +0 -0
- /package/{src/v1 → v1}/examples/simple/workflow-with-child.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/workflow-with-child.js +0 -0
- /package/{src/v1 → v1}/examples/simple/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/simple/zod.d.ts +0 -0
- /package/{src/v1 → v1}/examples/simple/zod.js +0 -0
- /package/{src/v1 → v1}/examples/sticky/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/sticky/run.js +0 -0
- /package/{src/v1 → v1}/examples/sticky/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/sticky/worker.js +0 -0
- /package/{src/v1 → v1}/examples/streaming/nextjs-proxy.d.ts +0 -0
- /package/{src/v1 → v1}/examples/streaming/nextjs-proxy.js +0 -0
- /package/{src/v1 → v1}/examples/streaming/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/streaming/run.js +0 -0
- /package/{src/v1 → v1}/examples/streaming/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/streaming/worker.js +0 -0
- /package/{src/v1 → v1}/examples/streaming/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/streaming/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/timeout/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/timeout/run.js +0 -0
- /package/{src/v1 → v1}/examples/timeout/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/timeout/worker.js +0 -0
- /package/{src/v1 → v1}/examples/timeout/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/timeouts/run.d.ts +0 -0
- /package/{src/v1 → v1}/examples/timeouts/run.js +0 -0
- /package/{src/v1 → v1}/examples/timeouts/worker.d.ts +0 -0
- /package/{src/v1 → v1}/examples/timeouts/worker.js +0 -0
- /package/{src/v1 → v1}/examples/timeouts/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/webhooks/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/examples/webhooks/workflow.js +0 -0
- /package/{src/v1 → v1}/examples/with_timeouts/workflow.d.ts +0 -0
- /package/{src/v1 → v1}/index.d.ts +0 -0
- /package/{src/v1 → v1}/index.js +0 -0
- /package/{src/v1 → v1}/parent-run-context-vars.d.ts +0 -0
- /package/{src/v1 → v1}/parent-run-context-vars.js +0 -0
- /package/{src/v1 → v1}/slot-types.d.ts +0 -0
- /package/{src/v1 → v1}/slot-types.js +0 -0
- /package/{src/v1 → v1}/types.js +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ClientConfig } from '
|
|
2
|
-
import WorkflowRunRef from '
|
|
3
|
-
import { Priority, RateLimitDuration, RunsClient } from '
|
|
4
|
-
import { RunListenerClient } from '
|
|
5
|
-
import { Api } from '
|
|
6
|
-
import { WorkerLabelComparator, WorkflowServiceClient } from '
|
|
7
|
-
import { AdminServiceClient, CreateWorkflowVersionRequest } from '
|
|
8
|
-
import { Logger } from '
|
|
1
|
+
import { ClientConfig } from '../../clients/hatchet-client/client-config';
|
|
2
|
+
import WorkflowRunRef from '../../util/workflow-run-ref';
|
|
3
|
+
import { Priority, RateLimitDuration, RunsClient } from './..';
|
|
4
|
+
import { RunListenerClient } from '../../clients/listeners/run-listener/child-listener-client';
|
|
5
|
+
import { Api } from '../../clients/rest/generated/Api';
|
|
6
|
+
import { WorkerLabelComparator, WorkflowServiceClient } from '../../protoc/workflows';
|
|
7
|
+
import { AdminServiceClient, CreateWorkflowVersionRequest } from '../../protoc/v1/workflows';
|
|
8
|
+
import { Logger } from '../../util/logger';
|
|
9
9
|
type DesiredWorkerLabelOpt = {
|
|
10
10
|
value: string | number;
|
|
11
11
|
required?: boolean;
|
|
@@ -45,7 +45,7 @@ export declare class AdminClient {
|
|
|
45
45
|
* Creates a new workflow or updates an existing workflow via the v1 admin service.
|
|
46
46
|
* @param workflow a workflow definition to create
|
|
47
47
|
*/
|
|
48
|
-
putWorkflow(workflow: CreateWorkflowVersionRequest): Promise<import("
|
|
48
|
+
putWorkflow(workflow: CreateWorkflowVersionRequest): Promise<import("../../protoc/v1/workflows").CreateWorkflowVersionResponse>;
|
|
49
49
|
/**
|
|
50
50
|
* Run a new instance of a workflow with the given input. This will create a new workflow run and return the ID of the
|
|
51
51
|
* new run.
|
|
@@ -24,15 +24,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.AdminClient = void 0;
|
|
27
|
-
const hatchet_error_1 = __importDefault(require("
|
|
28
|
-
const workflow_run_ref_1 = __importDefault(require("
|
|
29
|
-
const grpc_helpers_1 = require("
|
|
30
|
-
const child_listener_client_1 = require("
|
|
31
|
-
const workflows_1 = require("
|
|
32
|
-
const workflows_2 = require("
|
|
33
|
-
const retrier_1 = require("
|
|
34
|
-
const batch_1 = require("
|
|
35
|
-
const apply_namespace_1 = require("
|
|
27
|
+
const hatchet_error_1 = __importDefault(require("../../util/errors/hatchet-error"));
|
|
28
|
+
const workflow_run_ref_1 = __importDefault(require("../../util/workflow-run-ref"));
|
|
29
|
+
const grpc_helpers_1 = require("../../util/grpc-helpers");
|
|
30
|
+
const child_listener_client_1 = require("../../clients/listeners/run-listener/child-listener-client");
|
|
31
|
+
const workflows_1 = require("../../protoc/workflows");
|
|
32
|
+
const workflows_2 = require("../../protoc/v1/workflows");
|
|
33
|
+
const retrier_1 = require("../../util/retrier");
|
|
34
|
+
const batch_1 = require("../../util/batch");
|
|
35
|
+
const apply_namespace_1 = require("../../util/apply-namespace");
|
|
36
36
|
function convertDesiredWorkerLabels(labels) {
|
|
37
37
|
return Object.fromEntries(Object.entries(labels).map(([key, label]) => [
|
|
38
38
|
key,
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
*
|
|
5
5
|
* @module Hatchet TypeScript SDK Reference
|
|
6
6
|
*/
|
|
7
|
-
import { ClientConfig, HatchetClientOptions, LegacyHatchetClient, TaskMiddleware, InferMiddlewareBefore, InferMiddlewareAfter } from '
|
|
7
|
+
import { ClientConfig, HatchetClientOptions, LegacyHatchetClient, TaskMiddleware, InferMiddlewareBefore, InferMiddlewareAfter } from '../../clients/hatchet-client';
|
|
8
8
|
import { AxiosRequestConfig } from 'axios';
|
|
9
|
-
import WorkflowRunRef from '
|
|
10
|
-
import { Api } from '
|
|
11
|
-
import { EventClient } from '
|
|
12
|
-
import { DispatcherClient } from '
|
|
13
|
-
import { Logger } from '
|
|
14
|
-
import { RunListenerClient } from '
|
|
15
|
-
import { DurableListenerClient } from '
|
|
9
|
+
import WorkflowRunRef from '../../util/workflow-run-ref';
|
|
10
|
+
import { Api } from '../../clients/rest';
|
|
11
|
+
import { EventClient } from '../../clients/event/event-client';
|
|
12
|
+
import { DispatcherClient } from '../../clients/dispatcher/dispatcher-client';
|
|
13
|
+
import { Logger } from '../../util/logger';
|
|
14
|
+
import { RunListenerClient } from '../../clients/listeners/run-listener/child-listener-client';
|
|
15
|
+
import { DurableListenerClient } from '../../clients/listeners/durable-listener/durable-listener-client';
|
|
16
16
|
import { CreateTaskWorkflowOpts, CreateWorkflowOpts, RunOpts, BaseWorkflowDeclaration, WorkflowDeclaration, TaskWorkflowDeclaration, CreateDurableTaskWorkflowOpts } from '../declaration';
|
|
17
17
|
import type { LegacyWorkflow } from '../../legacy/legacy-transformer';
|
|
18
18
|
import { IHatchetClient } from './client.interface';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EventClient } from '
|
|
2
|
-
import { DispatcherClient } from '
|
|
3
|
-
import { Logger } from '
|
|
1
|
+
import { EventClient } from '../../clients/event/event-client';
|
|
2
|
+
import { DispatcherClient } from '../../clients/dispatcher/dispatcher-client';
|
|
3
|
+
import { Logger } from '../../util/logger';
|
|
4
4
|
import { LegacyHatchetClient } from '../../legacy/legacy-client';
|
|
5
5
|
import { MetricsClient } from './features/metrics';
|
|
6
6
|
import { RunsClient } from './features/runs';
|
|
@@ -10,6 +10,7 @@ import { AdminClient } from './admin';
|
|
|
10
10
|
import { ScheduleClient } from './features/schedules';
|
|
11
11
|
import { CronClient } from './features/crons';
|
|
12
12
|
import { CELClient } from './features/cel';
|
|
13
|
+
import { WebhooksClient } from './features/webhooks';
|
|
13
14
|
export interface IHatchetClient {
|
|
14
15
|
/** @deprecated v0 client will be removed in a future release, please upgrade to v1 */
|
|
15
16
|
v0: LegacyHatchetClient;
|
|
@@ -21,6 +22,7 @@ export interface IHatchetClient {
|
|
|
21
22
|
runs: RunsClient;
|
|
22
23
|
workflows: WorkflowsClient;
|
|
23
24
|
workers: WorkersClient;
|
|
25
|
+
webhooks: WebhooksClient;
|
|
24
26
|
scheduled: ScheduleClient;
|
|
25
27
|
crons: CronClient;
|
|
26
28
|
admin: AdminClient;
|
|
@@ -21,16 +21,16 @@ exports.HatchetClient = void 0;
|
|
|
21
21
|
*/
|
|
22
22
|
/* eslint-disable no-dupe-class-members */
|
|
23
23
|
/* eslint-disable no-underscore-dangle */
|
|
24
|
-
const hatchet_client_1 = require("
|
|
25
|
-
const rest_1 = __importDefault(require("
|
|
26
|
-
const config_loader_1 = require("
|
|
27
|
-
const hatchet_logger_1 = require("
|
|
24
|
+
const hatchet_client_1 = require("../../clients/hatchet-client");
|
|
25
|
+
const rest_1 = __importDefault(require("../../clients/rest"));
|
|
26
|
+
const config_loader_1 = require("../../util/config-loader");
|
|
27
|
+
const hatchet_logger_1 = require("../../clients/hatchet-client/hatchet-logger");
|
|
28
28
|
const zod_1 = require("zod");
|
|
29
|
-
const event_client_1 = require("
|
|
30
|
-
const dispatcher_client_1 = require("
|
|
31
|
-
const child_listener_client_1 = require("
|
|
32
|
-
const durable_listener_client_1 = require("
|
|
33
|
-
const grpc_helpers_1 = require("
|
|
29
|
+
const event_client_1 = require("../../clients/event/event-client");
|
|
30
|
+
const dispatcher_client_1 = require("../../clients/dispatcher/dispatcher-client");
|
|
31
|
+
const child_listener_client_1 = require("../../clients/listeners/run-listener/child-listener-client");
|
|
32
|
+
const durable_listener_client_1 = require("../../clients/listeners/durable-listener/durable-listener-client");
|
|
33
|
+
const grpc_helpers_1 = require("../../util/grpc-helpers");
|
|
34
34
|
const nice_grpc_1 = require("nice-grpc");
|
|
35
35
|
const declaration_1 = require("../declaration");
|
|
36
36
|
const legacy_transformer_1 = require("../../legacy/legacy-transformer");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V1CELDebugResponseStatus } from '
|
|
1
|
+
import { V1CELDebugResponseStatus } from '../../../clients/rest/generated/data-contracts';
|
|
2
2
|
import { HatchetClient } from '../client';
|
|
3
3
|
export type DebugCELInput = {
|
|
4
4
|
expression: string;
|
|
@@ -11,7 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CELClient = void 0;
|
|
13
13
|
const axios_1 = require("axios");
|
|
14
|
-
const data_contracts_1 = require("
|
|
14
|
+
const data_contracts_1 = require("../../../clients/rest/generated/data-contracts");
|
|
15
15
|
/**
|
|
16
16
|
* Client for debugging CEL expressions.
|
|
17
17
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { CronWorkflows, CronWorkflowsList } from '
|
|
1
|
+
import { CronWorkflows, CronWorkflowsList } from '../../../clients/rest/generated/data-contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { BaseWorkflowDeclaration } from '
|
|
4
|
-
import type { LegacyWorkflow } from '
|
|
3
|
+
import { BaseWorkflowDeclaration } from '../..';
|
|
4
|
+
import type { LegacyWorkflow } from '../../../legacy/legacy-transformer';
|
|
5
5
|
import { HatchetClient } from '../client';
|
|
6
6
|
import { WorkflowsClient } from './workflows';
|
|
7
7
|
/**
|
|
@@ -23,8 +23,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
exports.CronClient = exports.CreateCronTriggerSchema = void 0;
|
|
24
24
|
const zod_1 = require("zod");
|
|
25
25
|
const axios_1 = require("axios");
|
|
26
|
-
const uuid_1 = require("
|
|
27
|
-
const apply_namespace_1 = require("
|
|
26
|
+
const uuid_1 = require("../../../util/uuid");
|
|
27
|
+
const apply_namespace_1 = require("../../../util/apply-namespace");
|
|
28
28
|
const workflows_1 = require("./workflows");
|
|
29
29
|
/**
|
|
30
30
|
* Schema for creating a Cron Trigger.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { RateLimitDuration } from '
|
|
2
|
-
import { RateLimitOrderByField, RateLimitOrderByDirection } from '
|
|
1
|
+
import { RateLimitDuration } from '../../../protoc/workflows';
|
|
2
|
+
import { RateLimitOrderByField, RateLimitOrderByDirection } from '../../../clients/rest/generated/data-contracts';
|
|
3
3
|
import { HatchetClient } from '../client';
|
|
4
4
|
export { RateLimitDuration, RateLimitOrderByField, RateLimitOrderByDirection };
|
|
5
5
|
export type CreateRateLimitOpts = {
|
|
@@ -26,5 +26,5 @@ export declare class RatelimitsClient {
|
|
|
26
26
|
* @param opts - The options for the list operation.
|
|
27
27
|
* @returns A promise that resolves to the list of rate limits.
|
|
28
28
|
*/
|
|
29
|
-
list(opts: Parameters<typeof this.api.rateLimitList>[1]): Promise<import("
|
|
29
|
+
list(opts: Parameters<typeof this.api.rateLimitList>[1]): Promise<import("../../../clients/rest/generated/data-contracts").RateLimitList>;
|
|
30
30
|
}
|
|
@@ -10,9 +10,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RatelimitsClient = exports.RateLimitOrderByDirection = exports.RateLimitOrderByField = exports.RateLimitDuration = void 0;
|
|
13
|
-
const workflows_1 = require("
|
|
13
|
+
const workflows_1 = require("../../../protoc/workflows");
|
|
14
14
|
Object.defineProperty(exports, "RateLimitDuration", { enumerable: true, get: function () { return workflows_1.RateLimitDuration; } });
|
|
15
|
-
const data_contracts_1 = require("
|
|
15
|
+
const data_contracts_1 = require("../../../clients/rest/generated/data-contracts");
|
|
16
16
|
Object.defineProperty(exports, "RateLimitOrderByField", { enumerable: true, get: function () { return data_contracts_1.RateLimitOrderByField; } });
|
|
17
17
|
Object.defineProperty(exports, "RateLimitOrderByDirection", { enumerable: true, get: function () { return data_contracts_1.RateLimitOrderByDirection; } });
|
|
18
18
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import WorkflowRunRef from '
|
|
2
|
-
import { V1TaskStatus } from '
|
|
3
|
-
import { RunListenerClient } from '
|
|
1
|
+
import WorkflowRunRef from '../../../util/workflow-run-ref';
|
|
2
|
+
import { V1TaskStatus } from '../../../clients/rest/generated/data-contracts';
|
|
3
|
+
import { RunListenerClient } from '../../../clients/listeners/run-listener/child-listener-client';
|
|
4
4
|
import { WorkflowsClient } from './workflows';
|
|
5
5
|
import { HatchetClient } from '../client';
|
|
6
6
|
export type RunFilter = {
|
|
@@ -78,7 +78,7 @@ export declare class RunsClient {
|
|
|
78
78
|
* @param run - The ID of the run to get.
|
|
79
79
|
* @returns A promise that resolves to the run.
|
|
80
80
|
*/
|
|
81
|
-
get<T = any>(run: string | WorkflowRunRef<T>): Promise<import("
|
|
81
|
+
get<T = any>(run: string | WorkflowRunRef<T>): Promise<import("../../../clients/rest/generated/data-contracts").V1WorkflowRunDetails>;
|
|
82
82
|
/**
|
|
83
83
|
* Gets the status of a task or workflow run by its ID.
|
|
84
84
|
* @param run - The ID of the run to get the status of.
|
|
@@ -90,19 +90,19 @@ export declare class RunsClient {
|
|
|
90
90
|
* @param opts - The options for the list operation.
|
|
91
91
|
* @returns A promise that resolves to the list of runs.
|
|
92
92
|
*/
|
|
93
|
-
list(opts?: Partial<ListRunsOpts>): Promise<import("
|
|
93
|
+
list(opts?: Partial<ListRunsOpts>): Promise<import("../../../clients/rest/generated/data-contracts").V1TaskSummaryList>;
|
|
94
94
|
/**
|
|
95
95
|
* Cancels a task or workflow run by its ID.
|
|
96
96
|
* @param opts - The options for the cancel operation.
|
|
97
97
|
* @returns A promise that resolves to the cancelled run.
|
|
98
98
|
*/
|
|
99
|
-
cancel(opts: CancelRunOpts): Promise<import("axios").AxiosResponse<import("
|
|
99
|
+
cancel(opts: CancelRunOpts): Promise<import("axios").AxiosResponse<import("../../../clients/rest/generated/data-contracts").V1CancelledTasks, any, {}>>;
|
|
100
100
|
/**
|
|
101
101
|
* Replays a task or workflow run by its ID.
|
|
102
102
|
* @param opts - The options for the replay operation.
|
|
103
103
|
* @returns A promise that resolves to the replayed run.
|
|
104
104
|
*/
|
|
105
|
-
replay(opts: ReplayRunOpts): Promise<import("axios").AxiosResponse<import("
|
|
105
|
+
replay(opts: ReplayRunOpts): Promise<import("axios").AxiosResponse<import("../../../clients/rest/generated/data-contracts").V1ReplayedTasks, any, {}>>;
|
|
106
106
|
private prepareFilter;
|
|
107
107
|
private prepareListFilter;
|
|
108
108
|
/**
|
|
@@ -33,8 +33,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
33
33
|
};
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.RunsClient = void 0;
|
|
36
|
-
const workflow_run_ref_1 = __importDefault(require("
|
|
37
|
-
const child_listener_client_1 = require("
|
|
36
|
+
const workflow_run_ref_1 = __importDefault(require("../../../util/workflow-run-ref"));
|
|
37
|
+
const child_listener_client_1 = require("../../../clients/listeners/run-listener/child-listener-client");
|
|
38
38
|
/**
|
|
39
39
|
* The runs client is a client for interacting with task and workflow runs within Hatchet.
|
|
40
40
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ScheduledWorkflows, ScheduledWorkflowsBulkDeleteFilter, ScheduledWorkflowsBulkDeleteResponse, ScheduledWorkflowsBulkUpdateResponse, ScheduledWorkflowsList } from '
|
|
1
|
+
import { ScheduledWorkflows, ScheduledWorkflowsBulkDeleteFilter, ScheduledWorkflowsBulkDeleteResponse, ScheduledWorkflowsBulkUpdateResponse, ScheduledWorkflowsList } from '../../../clients/rest/generated/data-contracts';
|
|
2
2
|
import { z } from 'zod';
|
|
3
|
-
import { Workflow } from '
|
|
4
|
-
import { BaseWorkflowDeclaration, WorkflowDefinition } from '
|
|
3
|
+
import { Workflow } from '../../../workflow';
|
|
4
|
+
import { BaseWorkflowDeclaration, WorkflowDefinition } from '../..';
|
|
5
5
|
import { HatchetClient } from '../client';
|
|
6
6
|
import { WorkflowsClient } from './workflows';
|
|
7
7
|
/**
|
|
@@ -23,8 +23,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
exports.ScheduleClient = exports.UpdateScheduledRunTriggerSchema = exports.CreateScheduledRunTriggerSchema = void 0;
|
|
24
24
|
const zod_1 = require("zod");
|
|
25
25
|
const axios_1 = require("axios");
|
|
26
|
-
const uuid_1 = require("
|
|
27
|
-
const apply_namespace_1 = require("
|
|
26
|
+
const uuid_1 = require("../../../util/uuid");
|
|
27
|
+
const apply_namespace_1 = require("../../../util/apply-namespace");
|
|
28
28
|
const workflows_1 = require("./workflows");
|
|
29
29
|
/**
|
|
30
30
|
* Schema for creating a Scheduled Run Trigger.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module Tenant Client
|
|
3
3
|
*/
|
|
4
|
-
import { Tenant } from '
|
|
4
|
+
import { Tenant } from '../../../clients/rest/generated/data-contracts';
|
|
5
5
|
import { HatchetClient } from '../client';
|
|
6
6
|
/**
|
|
7
7
|
* Client for managing Tenants
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { V1CreateWebhookRequestBase, V1UpdateWebhookRequest, V1Webhook, V1WebhookList, V1WebhookSourceName, V1WebhookAPIKeyAuth, V1WebhookBasicAuth, V1WebhookHMACAuth } from '
|
|
1
|
+
import { V1CreateWebhookRequestBase, V1UpdateWebhookRequest, V1Webhook, V1WebhookList, V1WebhookSourceName, V1WebhookAPIKeyAuth, V1WebhookBasicAuth, V1WebhookHMACAuth } from '../../../clients/rest/generated/data-contracts';
|
|
2
2
|
import { HatchetClient } from '../client';
|
|
3
3
|
export type CreateWebhookOptions = V1CreateWebhookRequestBase & {
|
|
4
4
|
auth: V1WebhookBasicAuth | V1WebhookAPIKeyAuth | V1WebhookHMACAuth;
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
};
|
|
22
22
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23
23
|
exports.WebhooksClient = void 0;
|
|
24
|
-
const data_contracts_1 = require("
|
|
24
|
+
const data_contracts_1 = require("../../../clients/rest/generated/data-contracts");
|
|
25
25
|
function getAuthType(auth) {
|
|
26
26
|
if ('username' in auth && 'password' in auth)
|
|
27
27
|
return data_contracts_1.V1WebhookAuthType.BASIC;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BaseWorkflowDeclaration, WorkflowDefinition } from '
|
|
2
|
-
import type { LegacyWorkflow } from '
|
|
1
|
+
import { BaseWorkflowDeclaration, WorkflowDefinition } from '../..';
|
|
2
|
+
import type { LegacyWorkflow } from '../../../legacy/legacy-transformer';
|
|
3
3
|
import { HatchetClient } from '../client';
|
|
4
4
|
export declare const workflowNameString: (workflow: string | WorkflowDefinition | BaseWorkflowDeclaration<any, any> | LegacyWorkflow) => string;
|
|
5
5
|
/**
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.WorkflowsClient = exports.workflowNameString = void 0;
|
|
13
|
-
const legacy_transformer_1 = require("
|
|
14
|
-
const uuid_1 = require("
|
|
13
|
+
const legacy_transformer_1 = require("../../../legacy/legacy-transformer");
|
|
14
|
+
const uuid_1 = require("../../../util/uuid");
|
|
15
15
|
const workflowNameString = (workflow) => {
|
|
16
16
|
if (typeof workflow === 'string') {
|
|
17
17
|
return workflow;
|
|
@@ -7,17 +7,17 @@
|
|
|
7
7
|
* - DurableContext - An extended context for durable tasks that includes additional methods for durable execution.
|
|
8
8
|
* @module Context
|
|
9
9
|
*/
|
|
10
|
-
import { Priority, RunOpts, TaskWorkflowDeclaration, BaseWorkflowDeclaration as WorkflowV1 } from '
|
|
10
|
+
import { Priority, RunOpts, TaskWorkflowDeclaration, BaseWorkflowDeclaration as WorkflowV1 } from '../../declaration';
|
|
11
11
|
import { JsonObject } from '@bufbuild/protobuf';
|
|
12
|
-
import { Action } from '
|
|
13
|
-
import { Logger, LogLevel } from '
|
|
14
|
-
import WorkflowRunRef from '
|
|
15
|
-
import { Conditions } from '
|
|
16
|
-
import { CreateWorkflowDurableTaskOpts, CreateWorkflowTaskOpts } from '
|
|
17
|
-
import { OutputType } from '
|
|
18
|
-
import { HatchetClient } from '
|
|
19
|
-
import { WorkerLabels } from '
|
|
20
|
-
import { NextStep } from '
|
|
12
|
+
import { Action } from '../../../clients/dispatcher/action-listener';
|
|
13
|
+
import { Logger, LogLevel } from '../../../util/logger';
|
|
14
|
+
import WorkflowRunRef from '../../../util/workflow-run-ref';
|
|
15
|
+
import { Conditions } from '../../conditions';
|
|
16
|
+
import { CreateWorkflowDurableTaskOpts, CreateWorkflowTaskOpts } from '../../task';
|
|
17
|
+
import { OutputType } from '../../types';
|
|
18
|
+
import { HatchetClient } from '../..';
|
|
19
|
+
import { WorkerLabels } from '../../../clients/dispatcher/dispatcher-client';
|
|
20
|
+
import { NextStep } from '../../../legacy/step';
|
|
21
21
|
import { InternalWorker } from './worker-internal';
|
|
22
22
|
import { Duration } from '../duration';
|
|
23
23
|
type TriggerData = Record<string, Record<string, any>>;
|
|
@@ -24,14 +24,14 @@ exports.DurableContext = exports.Context = exports.ContextWorker = void 0;
|
|
|
24
24
|
*/
|
|
25
25
|
/* eslint-disable no-underscore-dangle */
|
|
26
26
|
/* eslint-disable max-classes-per-file */
|
|
27
|
-
const declaration_1 = require("
|
|
28
|
-
const hatchet_error_1 = __importDefault(require("
|
|
29
|
-
const parse_1 = require("
|
|
30
|
-
const conditions_1 = require("
|
|
31
|
-
const transformer_1 = require("
|
|
32
|
-
const condition_1 = require("
|
|
33
|
-
const apply_namespace_1 = require("
|
|
34
|
-
const abort_error_1 = require("
|
|
27
|
+
const declaration_1 = require("../../declaration");
|
|
28
|
+
const hatchet_error_1 = __importDefault(require("../../../util/errors/hatchet-error"));
|
|
29
|
+
const parse_1 = require("../../../util/parse");
|
|
30
|
+
const conditions_1 = require("../../conditions");
|
|
31
|
+
const transformer_1 = require("../../conditions/transformer");
|
|
32
|
+
const condition_1 = require("../../../protoc/v1/shared/condition");
|
|
33
|
+
const apply_namespace_1 = require("../../../util/apply-namespace");
|
|
34
|
+
const abort_error_1 = require("../../../util/abort-error");
|
|
35
35
|
/**
|
|
36
36
|
* ContextWorker is a wrapper around the V1Worker class that provides a more user-friendly interface for the worker from the context of a run.
|
|
37
37
|
*/
|
|
@@ -670,7 +670,7 @@ class DurableContext extends Context {
|
|
|
670
670
|
waitFor(conditions) {
|
|
671
671
|
return __awaiter(this, void 0, void 0, function* () {
|
|
672
672
|
this.throwIfCancelled();
|
|
673
|
-
const pbConditions = (0, transformer_1.conditionsToPb)((0, conditions_1.Render)(condition_1.Action.CREATE, conditions));
|
|
673
|
+
const pbConditions = (0, transformer_1.conditionsToPb)((0, conditions_1.Render)(condition_1.Action.CREATE, conditions), this.v1.config.namespace);
|
|
674
674
|
// eslint-disable-next-line no-plusplus
|
|
675
675
|
const key = `waitFor-${this.waitKey++}`;
|
|
676
676
|
yield this.v1.durableListener.registerDurableEvent({
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*
|
|
9
9
|
* Defaults: warnDays=90, errorDays=undefined (error phase disabled unless set).
|
|
10
10
|
*/
|
|
11
|
-
import { Logger } from '
|
|
11
|
+
import { Logger } from '../../../../util/logger';
|
|
12
12
|
export declare class DeprecationError extends Error {
|
|
13
13
|
feature: string;
|
|
14
14
|
constructor(feature: string, message: string);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* instead of `slotConfig`. For backward compatibility with engines
|
|
4
4
|
* that do not support multiple slot types.
|
|
5
5
|
*/
|
|
6
|
-
import { DispatcherClient, WorkerLabels } from '
|
|
7
|
-
import { ActionListener } from '
|
|
6
|
+
import { DispatcherClient, WorkerLabels } from '../../../../clients/dispatcher/dispatcher-client';
|
|
7
|
+
import { ActionListener } from '../../../../clients/dispatcher/action-listener';
|
|
8
8
|
export interface LegacyRegistrationOptions {
|
|
9
9
|
workerName: string;
|
|
10
10
|
services: string[];
|
|
@@ -15,8 +15,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.legacyGetActionListener = legacyGetActionListener;
|
|
18
|
-
const dispatcher_client_1 = require("
|
|
19
|
-
const action_listener_1 = require("
|
|
18
|
+
const dispatcher_client_1 = require("../../../../clients/dispatcher/dispatcher-client");
|
|
19
|
+
const action_listener_1 = require("../../../../clients/dispatcher/action-listener");
|
|
20
20
|
/**
|
|
21
21
|
* Registers a worker using the legacy `slots` proto field instead of `slotConfig`.
|
|
22
22
|
*/
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Legacy V1Worker subclass that registers with the old `slots` proto field
|
|
3
3
|
* instead of `slotConfig`. Used when connected to pre-slot-config engines.
|
|
4
4
|
*/
|
|
5
|
-
import { ActionListener } from '
|
|
6
|
-
import { HatchetClient } from '
|
|
5
|
+
import { ActionListener } from '../../../../clients/dispatcher/action-listener';
|
|
6
|
+
import { HatchetClient } from '../../..';
|
|
7
7
|
import { InternalWorker } from '../worker-internal';
|
|
8
8
|
export declare class LegacyV1Worker extends InternalWorker {
|
|
9
9
|
private _legacySlotCount;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Action, ActionListener } from '
|
|
2
|
-
import { StepActionEvent, StepActionEventType, GroupKeyActionEvent, GroupKeyActionEventType } from '
|
|
3
|
-
import HatchetPromise from '
|
|
4
|
-
import { CreateStepRateLimit } from '
|
|
5
|
-
import { Logger } from '
|
|
6
|
-
import { BaseWorkflowDeclaration, WorkflowDefinition, HatchetClient } from '
|
|
7
|
-
import { CreateWorkflowTaskOpts } from '
|
|
8
|
-
import { WorkerLabels } from '
|
|
1
|
+
import { Action, ActionListener } from '../../../clients/dispatcher/action-listener';
|
|
2
|
+
import { StepActionEvent, StepActionEventType, GroupKeyActionEvent, GroupKeyActionEventType } from '../../../protoc/dispatcher';
|
|
3
|
+
import HatchetPromise from '../../../util/hatchet-promise/hatchet-promise';
|
|
4
|
+
import { CreateStepRateLimit } from '../../../protoc/workflows';
|
|
5
|
+
import { Logger } from '../../../util/logger';
|
|
6
|
+
import { BaseWorkflowDeclaration, WorkflowDefinition, HatchetClient } from '../..';
|
|
7
|
+
import { CreateWorkflowTaskOpts } from '../../task';
|
|
8
|
+
import { WorkerLabels } from '../../../clients/dispatcher/dispatcher-client';
|
|
9
9
|
import { Context } from './context';
|
|
10
10
|
import { SlotConfig } from '../../slot-types';
|
|
11
11
|
export type ActionRegistry = Record<Action['actionId'], Function>;
|
|
@@ -23,17 +23,17 @@ exports.InternalWorker = void 0;
|
|
|
23
23
|
exports.mapRateLimitPb = mapRateLimitPb;
|
|
24
24
|
/* eslint-disable no-underscore-dangle */
|
|
25
25
|
/* eslint-disable no-nested-ternary */
|
|
26
|
-
const hatchet_error_1 = __importDefault(require("
|
|
27
|
-
const dispatcher_1 = require("
|
|
28
|
-
const hatchet_promise_1 = __importDefault(require("
|
|
29
|
-
const workflows_1 = require("
|
|
30
|
-
const logger_1 = require("
|
|
31
|
-
const task_1 = require("
|
|
32
|
-
const transformer_1 = require("
|
|
26
|
+
const hatchet_error_1 = __importDefault(require("../../../util/errors/hatchet-error"));
|
|
27
|
+
const dispatcher_1 = require("../../../protoc/dispatcher");
|
|
28
|
+
const hatchet_promise_1 = __importDefault(require("../../../util/hatchet-promise/hatchet-promise"));
|
|
29
|
+
const workflows_1 = require("../../../protoc/workflows");
|
|
30
|
+
const logger_1 = require("../../../util/logger");
|
|
31
|
+
const task_1 = require("../../task");
|
|
32
|
+
const transformer_1 = require("../../conditions/transformer");
|
|
33
33
|
const zod_to_json_schema_1 = require("zod-to-json-schema");
|
|
34
|
-
const apply_namespace_1 = require("
|
|
35
|
-
const sleep_1 = __importDefault(require("
|
|
36
|
-
const abort_error_1 = require("
|
|
34
|
+
const apply_namespace_1 = require("../../../util/apply-namespace");
|
|
35
|
+
const sleep_1 = __importDefault(require("../../../util/sleep"));
|
|
36
|
+
const abort_error_1 = require("../../../util/abort-error");
|
|
37
37
|
const context_1 = require("./context");
|
|
38
38
|
const parent_run_context_vars_1 = require("../../parent-run-context-vars");
|
|
39
39
|
const health_server_1 = require("./health-server");
|
|
@@ -272,7 +272,7 @@ class InternalWorker {
|
|
|
272
272
|
workerLabels: mapWorkerLabelPb(task.desiredWorkerLabels || ((_g = workflow.taskDefaults) === null || _g === void 0 ? void 0 : _g.workerLabels)),
|
|
273
273
|
backoffFactor: ((_h = task.backoff) === null || _h === void 0 ? void 0 : _h.factor) || ((_k = (_j = workflow.taskDefaults) === null || _j === void 0 ? void 0 : _j.backoff) === null || _k === void 0 ? void 0 : _k.factor),
|
|
274
274
|
backoffMaxSeconds: ((_l = task.backoff) === null || _l === void 0 ? void 0 : _l.maxSeconds) || ((_o = (_m = workflow.taskDefaults) === null || _m === void 0 ? void 0 : _m.backoff) === null || _o === void 0 ? void 0 : _o.maxSeconds),
|
|
275
|
-
conditions: (0, transformer_1.taskConditionsToPb)(task),
|
|
275
|
+
conditions: (0, transformer_1.taskConditionsToPb)(task, this.client.config.namespace),
|
|
276
276
|
isDurable: durableTaskSet.has(task),
|
|
277
277
|
slotRequests: task.slotRequests || (durableTaskSet.has(task) ? { durable: 1 } : { default: 1 }),
|
|
278
278
|
concurrency: task.concurrency
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkerLabels } from '
|
|
1
|
+
import { WorkerLabels } from '../../../clients/dispatcher/dispatcher-client';
|
|
2
2
|
import { BaseWorkflowDeclaration } from '../../declaration';
|
|
3
3
|
import type { LegacyWorkflow } from '../../../legacy/legacy-transformer';
|
|
4
4
|
import { HatchetClient } from '../..';
|
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.__testing = exports.Worker = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../util/sleep"));
|
|
17
17
|
const legacy_transformer_1 = require("../../../legacy/legacy-transformer");
|
|
18
18
|
const worker_internal_1 = require("./worker-internal");
|
|
19
19
|
const slot_utils_1 = require("./slot-utils");
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { TaskConditions } from '../../protoc/v1/shared/condition';
|
|
2
|
+
import { CreateWorkflowTaskOpts } from '../task';
|
|
3
|
+
import { Condition } from './base';
|
|
4
|
+
export declare function taskConditionsToPb(task: Omit<CreateWorkflowTaskOpts<any, any>, 'fn'>, namespace?: string): TaskConditions;
|
|
5
|
+
export declare function conditionsToPb(conditions: Condition[], namespace?: string): TaskConditions;
|
|
@@ -2,17 +2,18 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.taskConditionsToPb = taskConditionsToPb;
|
|
4
4
|
exports.conditionsToPb = conditionsToPb;
|
|
5
|
+
const apply_namespace_1 = require("../../util/apply-namespace");
|
|
5
6
|
const _1 = require(".");
|
|
6
7
|
const base_1 = require("./base");
|
|
7
8
|
const parent_condition_1 = require("./parent-condition");
|
|
8
|
-
function taskConditionsToPb(task) {
|
|
9
|
+
function taskConditionsToPb(task, namespace) {
|
|
9
10
|
const waitForConditions = (0, _1.Render)(base_1.Action.QUEUE, task.waitFor);
|
|
10
11
|
const cancelIfConditions = (0, _1.Render)(base_1.Action.CANCEL, task.cancelIf);
|
|
11
12
|
const skipIfConditions = (0, _1.Render)(base_1.Action.SKIP, task.skipIf);
|
|
12
13
|
const mergedConditions = [...waitForConditions, ...cancelIfConditions, ...skipIfConditions];
|
|
13
|
-
return conditionsToPb(mergedConditions);
|
|
14
|
+
return conditionsToPb(mergedConditions, namespace);
|
|
14
15
|
}
|
|
15
|
-
function conditionsToPb(conditions) {
|
|
16
|
+
function conditionsToPb(conditions, namespace) {
|
|
16
17
|
const parentOverrideConditions = [];
|
|
17
18
|
const sleepConditions = [];
|
|
18
19
|
const userEventConditions = [];
|
|
@@ -26,7 +27,7 @@ function conditionsToPb(conditions) {
|
|
|
26
27
|
else if (condition instanceof _1.UserEventCondition) {
|
|
27
28
|
userEventConditions.push({
|
|
28
29
|
base: Object.assign(Object.assign({}, baseToPb(condition.base)), { expression: condition.expression || '' }),
|
|
29
|
-
userEventKey: condition.eventKey,
|
|
30
|
+
userEventKey: (0, apply_namespace_1.applyNamespace)(condition.eventKey, namespace),
|
|
30
31
|
});
|
|
31
32
|
}
|
|
32
33
|
else if (condition instanceof parent_condition_1.ParentCondition) {
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* - `TaskWorkflowDeclaration`, returned by `hatchet.task(...)`, which is a single standalone task that exposes the same execution helpers as a workflow.
|
|
6
6
|
* @module Runnables
|
|
7
7
|
*/
|
|
8
|
-
import WorkflowRunRef from '
|
|
9
|
-
import { CronWorkflows, ScheduledWorkflows, V1CreateFilterRequest } from '
|
|
8
|
+
import WorkflowRunRef from '../util/workflow-run-ref';
|
|
9
|
+
import { CronWorkflows, ScheduledWorkflows, V1CreateFilterRequest } from '../clients/rest/generated/data-contracts';
|
|
10
10
|
import { z } from 'zod';
|
|
11
|
-
import { WorkerLabelComparator } from '
|
|
11
|
+
import { WorkerLabelComparator } from '../protoc/v1/workflows';
|
|
12
12
|
import { IHatchetClient } from './client/client.interface';
|
|
13
13
|
import { CreateWorkflowTaskOpts, CreateOnFailureTaskOpts, TaskFn, CreateWorkflowDurableTaskOpts, CreateBaseTaskOpts, CreateOnSuccessTaskOpts, Concurrency, DurableTaskFn } from './task';
|
|
14
14
|
import { Duration } from './client/duration';
|
|
@@ -328,7 +328,7 @@ export declare class BaseWorkflowDeclaration<I extends InputType = UnknownInputT
|
|
|
328
328
|
* @returns A promise that resolves with the workflow state.
|
|
329
329
|
* @throws Error if the workflow is not bound to a Hatchet client.
|
|
330
330
|
*/
|
|
331
|
-
get(): Promise<import("
|
|
331
|
+
get(): Promise<import("../clients/rest/generated/data-contracts").Workflow>;
|
|
332
332
|
/**
|
|
333
333
|
* @deprecated use definition.name instead
|
|
334
334
|
* @hidden
|