@hatchet-dev/typescript-sdk 1.14.0 → 1.15.0
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/docs/doc_types.d.ts +12 -0
- package/docs/doc_types.js +62 -0
- package/docs/generate.js +87 -0
- package/docs/paths.d.ts +2 -0
- package/docs/paths.js +16 -0
- package/docs/shared.d.ts +3 -0
- package/docs/shared.js +6 -0
- package/package.json +4 -3
- package/{clients → src/clients}/admin/admin-client.d.ts +17 -9
- package/{clients → src/clients}/admin/admin-client.js +26 -10
- package/{clients → src/clients}/dispatcher/action-listener.d.ts +4 -4
- package/{clients → src/clients}/dispatcher/action-listener.js +3 -3
- package/{clients → src/clients}/dispatcher/dispatcher-client.d.ts +9 -9
- package/{clients → src/clients}/dispatcher/dispatcher-client.js +5 -5
- package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-controller.d.ts +2 -2
- package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-controller.js +1 -1
- package/{clients → src/clients}/dispatcher/heartbeat/heartbeat-worker.js +3 -3
- package/{clients → src/clients}/event/event-client.d.ts +7 -7
- package/{clients → src/clients}/event/event-client.js +4 -4
- package/{clients → src/clients}/hatchet-client/client-config.d.ts +2 -2
- package/{clients → src/clients}/hatchet-client/hatchet-logger.d.ts +1 -1
- package/{clients → src/clients}/hatchet-client/hatchet-logger.js +1 -1
- package/src/clients/hatchet-client/index.d.ts +3 -0
- package/{clients → src/clients}/hatchet-client/index.js +1 -1
- package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.d.ts +6 -6
- package/{clients → src/clients}/listeners/durable-listener/durable-listener-client.js +1 -1
- package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.d.ts +2 -2
- package/{clients → src/clients}/listeners/durable-listener/pooled-durable-listener-client.js +2 -2
- package/{clients → src/clients}/listeners/run-listener/child-listener-client.d.ts +3 -3
- package/{clients → src/clients}/listeners/run-listener/child-listener-client.js +3 -3
- package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.d.ts +1 -1
- package/{clients → src/clients}/listeners/run-listener/pooled-child-listener-client.js +3 -3
- package/{index.d.ts → src/index.d.ts} +1 -1
- package/{index.js → src/index.js} +1 -1
- package/{legacy → src/legacy}/examples/affinity-workers.js +1 -1
- package/{legacy → src/legacy}/legacy-client.d.ts +9 -9
- package/{legacy → src/legacy}/legacy-client.js +10 -10
- package/{legacy → src/legacy}/legacy-transformer.d.ts +2 -2
- package/{legacy → src/legacy}/legacy-transformer.js +1 -1
- package/{legacy → src/legacy}/step.js +1 -1
- package/{protoc → src/protoc}/v1/workflows.d.ts +8 -0
- package/{protoc → src/protoc}/v1/workflows.js +109 -2
- package/{protoc → src/protoc}/workflows/workflows.d.ts +9 -0
- package/{protoc → src/protoc}/workflows/workflows.js +109 -2
- package/src/sdk.d.ts +2 -0
- package/{sdk.js → src/sdk.js} +1 -1
- package/{util → src/util}/config-loader/config-loader.d.ts +1 -1
- package/{util → src/util}/config-loader/config-loader.js +1 -1
- package/{util → src/util}/grpc-helpers.d.ts +1 -1
- package/{util → src/util}/logger/logger.d.ts +1 -1
- package/{util → src/util}/workflow-run-ref.d.ts +2 -2
- package/{v1 → src/v1}/client/admin.d.ts +18 -9
- package/{v1 → src/v1}/client/admin.js +29 -13
- package/{v1 → src/v1}/client/client.d.ts +27 -9
- package/{v1 → src/v1}/client/client.interface.d.ts +3 -3
- package/{v1 → src/v1}/client/client.js +28 -10
- package/{v1 → src/v1}/client/features/cel.d.ts +1 -1
- package/{v1 → src/v1}/client/features/cel.js +1 -1
- package/{v1 → src/v1}/client/features/crons.d.ts +6 -4
- package/{v1 → src/v1}/client/features/crons.js +4 -3
- package/{v1 → src/v1}/client/features/filters.d.ts +30 -0
- package/{v1 → src/v1}/client/features/filters.js +30 -0
- package/{v1 → src/v1}/client/features/metrics.d.ts +10 -6
- package/{v1 → src/v1}/client/features/metrics.js +10 -6
- package/src/v1/client/features/ratelimits.d.ts +30 -0
- package/{v1 → src/v1}/client/features/ratelimits.js +13 -3
- package/{v1 → src/v1}/client/features/runs.d.ts +43 -8
- package/{v1 → src/v1}/client/features/runs.js +38 -3
- package/{v1 → src/v1}/client/features/schedules.d.ts +7 -4
- package/{v1 → src/v1}/client/features/schedules.js +5 -3
- package/{v1 → src/v1}/client/features/tenant.d.ts +4 -1
- package/src/v1/client/features/webhooks.d.ts +54 -0
- package/{v1 → src/v1}/client/features/webhooks.js +31 -5
- package/src/v1/client/features/workers.d.ts +38 -0
- package/{v1 → src/v1}/client/features/workers.js +25 -1
- package/{v1 → src/v1}/client/features/workflows.d.ts +21 -3
- package/{v1 → src/v1}/client/features/workflows.js +21 -3
- package/{v1 → src/v1}/client/worker/context.d.ts +31 -10
- package/{v1 → src/v1}/client/worker/context.js +29 -8
- package/{v1 → src/v1}/client/worker/deprecated/deprecation.d.ts +1 -1
- package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.d.ts +2 -2
- package/{v1 → src/v1}/client/worker/deprecated/legacy-registration.js +2 -2
- package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.d.ts +2 -2
- package/{v1 → src/v1}/client/worker/health-server.d.ts +1 -1
- package/{v1 → src/v1}/client/worker/worker-internal.d.ts +8 -8
- package/{v1 → src/v1}/client/worker/worker-internal.js +10 -10
- package/{v1 → src/v1}/client/worker/worker.d.ts +1 -1
- package/{v1 → src/v1}/client/worker/worker.js +1 -1
- package/{v1 → src/v1}/conditions/transformer.d.ts +1 -1
- package/{v1 → src/v1}/declaration.d.ts +92 -8
- package/{v1 → src/v1}/declaration.js +63 -5
- package/{v1 → src/v1}/examples/__e2e__/harness.d.ts +2 -2
- package/{v1 → src/v1}/examples/__e2e__/harness.js +2 -2
- package/{v1 → src/v1}/examples/affinity/affinity-workers.js +1 -1
- package/{v1 → src/v1}/examples/cancellation/cancellation-workflow.js +1 -1
- package/{v1 → src/v1}/examples/cancellation/run.js +1 -1
- package/{v1 → src/v1}/examples/cancellations/run.js +1 -1
- package/{v1 → src/v1}/examples/cancellations/workflow.js +1 -1
- package/{v1 → src/v1}/examples/concurrency-rr/workflow.js +1 -1
- package/{v1 → src/v1}/examples/concurrency_cancel_in_progress/workflow.d.ts +1 -1
- package/{v1 → src/v1}/examples/concurrency_cancel_in_progress/workflow.js +2 -2
- package/{v1 → src/v1}/examples/concurrency_cancel_newest/workflow.d.ts +1 -1
- package/{v1 → src/v1}/examples/concurrency_cancel_newest/workflow.js +2 -2
- package/src/v1/examples/concurrency_limit_rr/workflow.d.ts +12 -0
- package/{v1 → src/v1}/examples/concurrency_limit_rr/workflow.js +1 -1
- package/{v1 → src/v1}/examples/concurrency_multiple_keys/workflow.d.ts +1 -1
- package/{v1 → src/v1}/examples/concurrency_multiple_keys/workflow.js +1 -1
- package/{v1 → src/v1}/examples/concurrency_workflow_level/workflow.d.ts +1 -1
- package/{v1 → src/v1}/examples/concurrency_workflow_level/workflow.js +1 -1
- package/{v1 → src/v1}/examples/conditions/complex-workflow.js +2 -2
- package/{v1 → src/v1}/examples/conditions/workflow.js +2 -2
- package/{v1 → src/v1}/examples/dag/interface-workflow.d.ts +2 -2
- package/{v1 → src/v1}/examples/dag_match_condition/complex-workflow.js +2 -2
- package/{v1 → src/v1}/examples/dag_match_condition/workflow.js +2 -2
- package/{v1 → src/v1}/examples/deep/workflow.js +1 -1
- package/{v1 → src/v1}/examples/durable/workflow.js +1 -1
- package/{v1/examples/durable_event → src/v1/examples/durable-event}/workflow.js +1 -1
- package/{v1 → src/v1}/examples/durable-sleep/workflow.js +1 -1
- package/{v1/examples/durable-event → src/v1/examples/durable_event}/workflow.js +1 -1
- package/{v1 → src/v1}/examples/durable_sleep/workflow.js +1 -1
- package/{v1 → src/v1}/examples/hatchet-client.d.ts +1 -1
- package/{v1 → src/v1}/examples/hatchet-client.js +1 -1
- package/{v1 → src/v1}/examples/landing_page/durable-excution.js +1 -1
- package/{v1 → src/v1}/examples/landing_page/flow-control.js +1 -1
- package/src/v1/examples/legacy/workflow.d.ts +2 -0
- package/{v1/examples/logging → src/v1/examples/logger}/byo-logger.js +1 -1
- package/src/v1/examples/logger/workflow.d.ts +2 -0
- package/{legacy/examples → src/v1/examples/logging}/byo-logger.js +1 -1
- package/{v1 → src/v1}/examples/middleware/client.d.ts +1 -1
- package/{v1 → src/v1}/examples/middleware/client.js +1 -1
- package/{v1 → src/v1}/examples/middleware/recipes.js +1 -1
- package/{v1 → src/v1}/examples/migration-guides/hatchet-client.d.ts +1 -1
- package/{v1 → src/v1}/examples/migration-guides/hatchet-client.js +1 -1
- package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.d.ts +1 -1
- package/{v1 → src/v1}/examples/multiple_wf_concurrency/workflow.js +1 -1
- package/{v1 → src/v1}/examples/non_retryable/workflow.js +1 -1
- package/{v1 → src/v1}/examples/priority/run.js +1 -1
- package/src/v1/examples/priority/workflow.d.ts +8 -0
- package/{v1 → src/v1}/examples/priority/workflow.js +1 -1
- package/{v1 → src/v1}/examples/quickstart/hatchet-client.d.ts +1 -1
- package/{v1 → src/v1}/examples/quickstart/hatchet-client.js +1 -1
- package/{v1 → src/v1}/examples/rate_limit/workflow.js +1 -1
- package/{v1 → src/v1}/examples/run_details/workflow.js +1 -1
- package/src/v1/examples/runtime_affinity/workflow.d.ts +3 -0
- package/src/v1/examples/runtime_affinity/workflow.js +19 -0
- package/src/v1/examples/simple/e2e-workflows.d.ts +14 -0
- package/{v1 → src/v1}/examples/simple/replay-cancel.js +1 -1
- package/src/v1/examples/sticky/workflow.d.ts +5 -0
- package/{v1 → src/v1}/examples/sticky/workflow.js +1 -1
- package/{v1 → src/v1}/examples/timeout/workflow.js +1 -1
- package/src/v1/examples/timeouts/worker.d.ts +1 -0
- package/{v1 → src/v1}/examples/timeouts/workflow.js +1 -1
- package/{v1 → src/v1}/examples/with_timeouts/workflow.js +1 -1
- package/{v1 → src/v1}/task.d.ts +1 -1
- package/{v1 → src/v1}/task.js +1 -1
- package/{v1 → src/v1}/types.d.ts +1 -1
- package/src/version.d.ts +1 -0
- package/{version.js → src/version.js} +1 -1
- package/{workflow.d.ts → src/workflow.d.ts} +1 -1
- package/{workflow.js → src/workflow.js} +1 -1
- package/clients/hatchet-client/index.d.ts +0 -3
- package/sdk.d.ts +0 -2
- package/v1/client/features/ratelimits.d.ts +0 -20
- package/v1/client/features/webhooks.d.ts +0 -28
- package/v1/client/features/workers.d.ts +0 -14
- package/v1/examples/concurrency_limit_rr/workflow.d.ts +0 -12
- package/v1/examples/legacy/workflow.d.ts +0 -2
- package/v1/examples/logger/workflow.d.ts +0 -2
- package/v1/examples/priority/workflow.d.ts +0 -8
- package/v1/examples/simple/e2e-workflows.d.ts +0 -14
- package/v1/examples/sticky/workflow.d.ts +0 -5
- package/version.d.ts +0 -1
- package/{clients/dispatcher/heartbeat/heartbeat-worker.d.ts → docs/generate.d.ts} +0 -0
- package/{clients → src/clients}/admin/index.d.ts +0 -0
- package/{clients → src/clients}/admin/index.js +0 -0
- package/{legacy/examples/affinity-workers.d.ts → src/clients/dispatcher/heartbeat/heartbeat-worker.d.ts} +0 -0
- package/{clients → src/clients}/hatchet-client/client-config.js +0 -0
- package/{clients → src/clients}/rest/api.d.ts +0 -0
- package/{clients → src/clients}/rest/api.js +0 -0
- package/{clients → src/clients}/rest/generated/Api.d.ts +0 -0
- package/{clients → src/clients}/rest/generated/Api.js +0 -0
- package/{clients → src/clients}/rest/generated/data-contracts.d.ts +0 -0
- package/{clients → src/clients}/rest/generated/data-contracts.js +0 -0
- package/{clients → src/clients}/rest/generated/http-client.d.ts +0 -0
- package/{clients → src/clients}/rest/generated/http-client.js +0 -0
- package/{clients → src/clients}/rest/index.d.ts +0 -0
- package/{clients → src/clients}/rest/index.js +0 -0
- package/{v1/examples/affinity → src/legacy/examples}/affinity-workers.d.ts +0 -0
- package/{legacy → src/legacy}/examples/bulk-fanout-trigger.d.ts +0 -0
- package/{legacy → src/legacy}/examples/bulk-fanout-trigger.js +0 -0
- package/{legacy → src/legacy}/examples/bulk-fanout-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/bulk-fanout-worker.js +0 -0
- package/{legacy → src/legacy}/examples/bulk-trigger.d.ts +0 -0
- package/{legacy → src/legacy}/examples/bulk-trigger.js +0 -0
- package/{legacy → src/legacy}/examples/byo-logger.d.ts +0 -0
- package/{v1/examples/logger → src/legacy/examples}/byo-logger.js +0 -0
- package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-event.d.ts +0 -0
- package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-event.js +0 -0
- package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/concurrency/cancel-in-progress/concurrency-worker.js +0 -0
- package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-event.d.ts +0 -0
- package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-event.js +0 -0
- package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-expression.d.ts +0 -0
- package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-expression.js +0 -0
- package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-key-fn.d.ts +0 -0
- package/{legacy → src/legacy}/examples/concurrency/group-round-robin/concurrency-worker-key-fn.js +0 -0
- package/{legacy → src/legacy}/examples/crons/cron-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/crons/cron-worker.js +0 -0
- package/{legacy → src/legacy}/examples/crons/programatic-crons.d.ts +0 -0
- package/{legacy → src/legacy}/examples/crons/programatic-crons.js +0 -0
- package/{legacy → src/legacy}/examples/dag-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/dag-worker.js +0 -0
- package/{legacy → src/legacy}/examples/example-event-with-results.d.ts +0 -0
- package/{legacy → src/legacy}/examples/example-event-with-results.js +0 -0
- package/{legacy → src/legacy}/examples/example-event.d.ts +0 -0
- package/{legacy → src/legacy}/examples/example-event.js +0 -0
- package/{legacy → src/legacy}/examples/fanout-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/fanout-worker.js +0 -0
- package/{legacy → src/legacy}/examples/logger.d.ts +0 -0
- package/{legacy → src/legacy}/examples/logger.js +0 -0
- package/{legacy → src/legacy}/examples/manual-trigger.d.ts +0 -0
- package/{legacy → src/legacy}/examples/manual-trigger.js +0 -0
- package/{legacy → src/legacy}/examples/multi-workflow.d.ts +0 -0
- package/{legacy → src/legacy}/examples/multi-workflow.js +0 -0
- package/{legacy → src/legacy}/examples/namespaced-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/namespaced-worker.js +0 -0
- package/{legacy → src/legacy}/examples/on-failure.d.ts +0 -0
- package/{legacy → src/legacy}/examples/on-failure.js +0 -0
- package/{legacy → src/legacy}/examples/rate-limit/events.d.ts +0 -0
- package/{legacy → src/legacy}/examples/rate-limit/events.js +0 -0
- package/{legacy → src/legacy}/examples/rate-limit/worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/rate-limit/worker.js +0 -0
- package/{legacy → src/legacy}/examples/retries-with-backoff.d.ts +0 -0
- package/{legacy → src/legacy}/examples/retries-with-backoff.js +0 -0
- package/{legacy → src/legacy}/examples/retries-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/retries-worker.js +0 -0
- package/{legacy → src/legacy}/examples/scheduled-runs/programatic-schedules.d.ts +0 -0
- package/{legacy → src/legacy}/examples/scheduled-runs/programatic-schedules.js +0 -0
- package/{legacy → src/legacy}/examples/simple-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/simple-worker.js +0 -0
- package/{legacy → src/legacy}/examples/sticky-trigger.d.ts +0 -0
- package/{legacy → src/legacy}/examples/sticky-trigger.js +0 -0
- package/{legacy → src/legacy}/examples/sticky-worker-with-check.d.ts +0 -0
- package/{legacy → src/legacy}/examples/sticky-worker-with-check.js +0 -0
- package/{legacy → src/legacy}/examples/sticky-worker.d.ts +0 -0
- package/{legacy → src/legacy}/examples/sticky-worker.js +0 -0
- package/{legacy → src/legacy}/examples/stream-by-additional-meta.d.ts +0 -0
- package/{legacy → src/legacy}/examples/stream-by-additional-meta.js +0 -0
- package/{legacy → src/legacy}/step.d.ts +12 -12
- package/{legacy → src/legacy}/workflow.d.ts +36 -36
- /package/{legacy → src/legacy}/workflow.js +0 -0
- /package/{protoc → src/protoc}/dispatcher/dispatcher.d.ts +0 -0
- /package/{protoc → src/protoc}/dispatcher/dispatcher.js +0 -0
- /package/{protoc → src/protoc}/dispatcher/index.d.ts +0 -0
- /package/{protoc → src/protoc}/dispatcher/index.js +0 -0
- /package/{protoc → src/protoc}/events/events.d.ts +0 -0
- /package/{protoc → src/protoc}/events/events.js +0 -0
- /package/{protoc → src/protoc}/events/index.d.ts +0 -0
- /package/{protoc → src/protoc}/events/index.js +0 -0
- /package/{protoc → src/protoc}/google/protobuf/timestamp.d.ts +0 -0
- /package/{protoc → src/protoc}/google/protobuf/timestamp.js +0 -0
- /package/{protoc → src/protoc}/google/protobuf/wrappers.d.ts +0 -0
- /package/{protoc → src/protoc}/google/protobuf/wrappers.js +0 -0
- /package/{protoc → src/protoc}/v1/dispatcher.d.ts +0 -0
- /package/{protoc → src/protoc}/v1/dispatcher.js +0 -0
- /package/{protoc → src/protoc}/v1/shared/condition.d.ts +0 -0
- /package/{protoc → src/protoc}/v1/shared/condition.js +0 -0
- /package/{protoc → src/protoc}/workflows/index.d.ts +0 -0
- /package/{protoc → src/protoc}/workflows/index.js +0 -0
- /package/{protoc → src/protoc}/workflows/v1-admin.d.ts +0 -0
- /package/{protoc → src/protoc}/workflows/v1-admin.js +0 -0
- /package/{step.d.ts → src/step.d.ts} +0 -0
- /package/{step.js → src/step.js} +0 -0
- /package/{util → src/util}/abort-error.d.ts +0 -0
- /package/{util → src/util}/abort-error.js +0 -0
- /package/{util → src/util}/apply-namespace.d.ts +0 -0
- /package/{util → src/util}/apply-namespace.js +0 -0
- /package/{util → src/util}/batch.d.ts +0 -0
- /package/{util → src/util}/batch.js +0 -0
- /package/{util → src/util}/config-loader/index.d.ts +0 -0
- /package/{util → src/util}/config-loader/index.js +0 -0
- /package/{util → src/util}/config-loader/token.d.ts +0 -0
- /package/{util → src/util}/config-loader/token.js +0 -0
- /package/{util → src/util}/errors/hatchet-error.d.ts +0 -0
- /package/{util → src/util}/errors/hatchet-error.js +0 -0
- /package/{util → src/util}/grpc-helpers.js +0 -0
- /package/{util → src/util}/hatchet-promise/hatchet-promise.d.ts +0 -0
- /package/{util → src/util}/hatchet-promise/hatchet-promise.js +0 -0
- /package/{util → src/util}/logger/index.d.ts +0 -0
- /package/{util → src/util}/logger/index.js +0 -0
- /package/{util → src/util}/logger/logger.js +0 -0
- /package/{util → src/util}/logger/task-run-log.d.ts +0 -0
- /package/{util → src/util}/logger/task-run-log.js +0 -0
- /package/{util → src/util}/parse.d.ts +0 -0
- /package/{util → src/util}/parse.js +0 -0
- /package/{util → src/util}/retrier.d.ts +0 -0
- /package/{util → src/util}/retrier.js +0 -0
- /package/{util → src/util}/sleep.d.ts +0 -0
- /package/{util → src/util}/sleep.js +0 -0
- /package/{util → src/util}/thread-helper.d.ts +0 -0
- /package/{util → src/util}/thread-helper.js +0 -0
- /package/{util → src/util}/uuid.d.ts +0 -0
- /package/{util → src/util}/uuid.js +0 -0
- /package/{util → src/util}/workflow-run-ref.js +0 -0
- /package/{v1 → src/v1}/client/client.interface.js +0 -0
- /package/{v1 → src/v1}/client/duration.d.ts +0 -0
- /package/{v1 → src/v1}/client/duration.js +0 -0
- /package/{v1 → src/v1}/client/features/index.d.ts +0 -0
- /package/{v1 → src/v1}/client/features/index.js +0 -0
- /package/{v1 → src/v1}/client/features/tenant.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/deprecation.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/index.d.ts +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/index.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/legacy-v1-worker.js +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.d.ts +0 -0
- /package/{v1 → src/v1}/client/worker/deprecated/legacy-worker.js +0 -0
- /package/{v1 → src/v1}/client/worker/health-server.js +0 -0
- /package/{v1 → src/v1}/client/worker/slot-utils.d.ts +0 -0
- /package/{v1 → src/v1}/client/worker/slot-utils.js +0 -0
- /package/{v1 → src/v1}/conditions/base.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/base.js +0 -0
- /package/{v1 → src/v1}/conditions/index.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/index.js +0 -0
- /package/{v1 → src/v1}/conditions/parent-condition.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/parent-condition.js +0 -0
- /package/{v1 → src/v1}/conditions/sleep-condition.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/sleep-condition.js +0 -0
- /package/{v1 → src/v1}/conditions/transformer.js +0 -0
- /package/{v1 → src/v1}/conditions/user-event-condition.d.ts +0 -0
- /package/{v1 → src/v1}/conditions/user-event-condition.js +0 -0
- /package/{v1/examples/cancellation/run.d.ts → src/v1/examples/affinity/affinity-workers.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/bulk_fanout/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/bulk_fanout/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/bulk_operations/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/bulk_operations/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/cancellation/cancellation-workflow.d.ts +0 -0
- /package/{v1/examples/cancellations → src/v1/examples/cancellation}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/cancellation/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/cancellation/worker.js +0 -0
- /package/{v1/examples/child_workflows → src/v1/examples/cancellations}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/cancellations/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/cancellations/worker.js +0 -0
- /package/{v1 → src/v1}/examples/cancellations/workflow.d.ts +0 -0
- /package/{v1/examples/concurrency-rr → src/v1/examples/child_workflows}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/run.js +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/worker.js +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/child_workflows/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/load.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/load.js +0 -0
- /package/{v1/examples/concurrency_limit_rr → src/v1/examples/concurrency-rr}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/run.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/worker.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency-rr/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-types.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency-types.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency_limit_rr/load.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency_limit_rr/load.js +0 -0
- /package/{v1/examples/conditions → src/v1/examples/concurrency_limit_rr}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency_limit_rr/run.js +0 -0
- /package/{v1 → src/v1}/examples/concurrency_limit_rr/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/concurrency_limit_rr/worker.js +0 -0
- /package/{v1 → src/v1}/examples/conditions/complex-workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/conditions/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/conditions/event.js +0 -0
- /package/{v1/examples/dag → src/v1/examples/conditions}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/conditions/run.js +0 -0
- /package/{v1 → src/v1}/examples/conditions/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/conditions/worker.js +0 -0
- /package/{v1 → src/v1}/examples/conditions/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/interface-workflow.js +0 -0
- /package/{v1/examples/dag_match_condition → src/v1/examples/dag}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/run.js +0 -0
- /package/{v1 → src/v1}/examples/dag/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/worker.js +0 -0
- /package/{v1 → src/v1}/examples/dag/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/complex-workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/event.js +0 -0
- /package/{v1/examples/deep → src/v1/examples/dag_match_condition}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/run.js +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/worker.js +0 -0
- /package/{v1 → src/v1}/examples/dag_match_condition/workflow.d.ts +0 -0
- /package/{v1/examples/durable-event → src/v1/examples/deep}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/deep/run.js +0 -0
- /package/{v1 → src/v1}/examples/deep/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/deep/worker.js +0 -0
- /package/{v1 → src/v1}/examples/deep/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/event.js +0 -0
- /package/{v1/examples/durable-sleep → src/v1/examples/durable-event}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/run.js +0 -0
- /package/{v1 → src/v1}/examples/durable-event/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-event/worker.js +0 -0
- /package/{v1 → src/v1}/examples/durable-event/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/event.js +0 -0
- /package/{v1/examples/durable_event → src/v1/examples/durable-sleep}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/run.js +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/worker.js +0 -0
- /package/{v1 → src/v1}/examples/durable-sleep/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_event/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_event/event.js +0 -0
- /package/{v1/examples/durable_sleep → src/v1/examples/durable_event}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_event/run.js +0 -0
- /package/{v1 → src/v1}/examples/durable_event/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_event/worker.js +0 -0
- /package/{v1 → src/v1}/examples/durable_event/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_sleep/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_sleep/event.js +0 -0
- /package/{v1/examples/high-memory → src/v1/examples/durable_sleep}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_sleep/run.js +0 -0
- /package/{v1 → src/v1}/examples/durable_sleep/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/durable_sleep/worker.js +0 -0
- /package/{v1 → src/v1}/examples/durable_sleep/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/e2e-worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/e2e-worker.js +0 -0
- /package/{v1 → src/v1}/examples/events/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/events/event.js +0 -0
- /package/{v1 → src/v1}/examples/events/filter.d.ts +0 -0
- /package/{v1 → src/v1}/examples/events/filter.js +0 -0
- /package/{v1 → src/v1}/examples/events/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/events/worker.js +0 -0
- /package/{v1 → src/v1}/examples/events/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/events/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/high-memory/child-worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/high-memory/child-worker.js +0 -0
- /package/{v1 → src/v1}/examples/high-memory/parent-worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/high-memory/parent-worker.js +0 -0
- /package/{v1/examples/inferred-typing → src/v1/examples/high-memory}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/high-memory/run.js +0 -0
- /package/{v1 → src/v1}/examples/high-memory/workflow-with-child.d.ts +0 -0
- /package/{v1 → src/v1}/examples/high-memory/workflow-with-child.js +0 -0
- /package/{v1/examples/legacy → src/v1/examples/inferred-typing}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/run.js +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/worker.js +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/inferred-typing/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/durable-excution.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/event-signaling.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/event-signaling.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/flow-control.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/queues.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/queues.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/scheduling.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/scheduling.js +0 -0
- /package/{v1 → src/v1}/examples/landing_page/task-routing.d.ts +0 -0
- /package/{v1 → src/v1}/examples/landing_page/task-routing.js +0 -0
- /package/{v1/examples/middleware → src/v1/examples/legacy}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/legacy/run.js +0 -0
- /package/{v1 → src/v1}/examples/legacy/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/legacy/worker.js +0 -0
- /package/{v1 → src/v1}/examples/legacy/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/logger/byo-logger.d.ts +0 -0
- /package/{v1 → src/v1}/examples/logger/logger.d.ts +0 -0
- /package/{v1 → src/v1}/examples/logger/logger.js +0 -0
- /package/{v1 → src/v1}/examples/logger/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/logging/byo-logger.d.ts +0 -0
- /package/{v1 → src/v1}/examples/logging/logger.d.ts +0 -0
- /package/{v1 → src/v1}/examples/logging/logger.js +0 -0
- /package/{v1 → src/v1}/examples/middleware/recipes.d.ts +0 -0
- /package/{v1/examples/multiple_wf_concurrency → src/v1/examples/middleware}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/middleware/run.js +0 -0
- /package/{v1 → src/v1}/examples/middleware/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/middleware/worker.js +0 -0
- /package/{v1 → src/v1}/examples/middleware/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/middleware/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/migration-guides/mergent.d.ts +0 -0
- /package/{v1 → src/v1}/examples/migration-guides/mergent.js +0 -0
- /package/{v1/examples/non_retryable → src/v1/examples/multiple_wf_concurrency}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/multiple_wf_concurrency/run.js +0 -0
- /package/{v1 → src/v1}/examples/multiple_wf_concurrency/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/multiple_wf_concurrency/worker.js +0 -0
- /package/{v1/examples/on_failure → src/v1/examples/non_retryable}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/run.js +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/worker.js +0 -0
- /package/{v1 → src/v1}/examples/non_retryable/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_cron/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_cron/worker.js +0 -0
- /package/{v1 → src/v1}/examples/on_cron/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_cron/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/on_event/event.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_event/event.js +0 -0
- /package/{v1 → src/v1}/examples/on_event/filter.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_event/filter.js +0 -0
- /package/{v1 → src/v1}/examples/on_event/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_event/worker.js +0 -0
- /package/{v1 → src/v1}/examples/on_event/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_event/workflow.js +0 -0
- /package/{v1/examples/on_success → src/v1/examples/on_failure}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_failure/run.js +0 -0
- /package/{v1 → src/v1}/examples/on_failure/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_failure/worker.js +0 -0
- /package/{v1 → src/v1}/examples/on_failure/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_failure/workflow.js +0 -0
- /package/{v1/examples/priority → src/v1/examples/on_success}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_success/run.js +0 -0
- /package/{v1 → src/v1}/examples/on_success/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_success/worker.js +0 -0
- /package/{v1 → src/v1}/examples/on_success/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/on_success/workflow.js +0 -0
- /package/{v1/examples/quickstart → src/v1/examples/priority}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/priority/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/priority/worker.js +0 -0
- /package/{v1/examples/retries → src/v1/examples/quickstart}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/quickstart/run.js +0 -0
- /package/{v1 → src/v1}/examples/quickstart/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/quickstart/worker.js +0 -0
- /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.d.ts +0 -0
- /package/{v1 → src/v1}/examples/quickstart/workflows/first-task.js +0 -0
- /package/{v1 → src/v1}/examples/rate_limit/workflow.d.ts +0 -0
- /package/{v1/examples/sticky → src/v1/examples/retries}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/retries/run.js +0 -0
- /package/{v1 → src/v1}/examples/retries/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/retries/worker.js +0 -0
- /package/{v1 → src/v1}/examples/retries/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/retries/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/return_exceptions/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/return_exceptions/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/run_details/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/bulk.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/bulk.js +0 -0
- /package/{v1 → src/v1}/examples/simple/client-run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/client-run.js +0 -0
- /package/{v1 → src/v1}/examples/simple/cron.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/cron.js +0 -0
- /package/{v1 → src/v1}/examples/simple/delay.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/delay.js +0 -0
- /package/{v1 → src/v1}/examples/simple/e2e-workflows.js +0 -0
- /package/{v1 → src/v1}/examples/simple/enqueue.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/enqueue.js +0 -0
- /package/{v1 → src/v1}/examples/simple/replay-cancel.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/run.js +0 -0
- /package/{v1 → src/v1}/examples/simple/schedule.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/schedule.js +0 -0
- /package/{v1 → src/v1}/examples/simple/stub-workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/stub-workflow.js +0 -0
- /package/{v1 → src/v1}/examples/simple/typed-run-methods.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/typed-run-methods.js +0 -0
- /package/{v1 → src/v1}/examples/simple/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/worker.js +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow-with-child.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow-with-child.js +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/simple/zod.d.ts +0 -0
- /package/{v1 → src/v1}/examples/simple/zod.js +0 -0
- /package/{v1/examples/streaming → src/v1/examples/sticky}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/sticky/run.js +0 -0
- /package/{v1 → src/v1}/examples/sticky/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/sticky/worker.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.d.ts +0 -0
- /package/{v1 → src/v1}/examples/streaming/nextjs-proxy.js +0 -0
- /package/{v1/examples/timeout → src/v1/examples/streaming}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/streaming/run.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/streaming/worker.js +0 -0
- /package/{v1 → src/v1}/examples/streaming/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/streaming/workflow.js +0 -0
- /package/{v1/examples/timeouts → src/v1/examples/timeout}/run.d.ts +0 -0
- /package/{v1 → src/v1}/examples/timeout/run.js +0 -0
- /package/{v1 → src/v1}/examples/timeout/worker.d.ts +0 -0
- /package/{v1 → src/v1}/examples/timeout/worker.js +0 -0
- /package/{v1 → src/v1}/examples/timeout/workflow.d.ts +0 -0
- /package/{v1/examples/timeouts/worker.d.ts → src/v1/examples/timeouts/run.d.ts} +0 -0
- /package/{v1 → src/v1}/examples/timeouts/run.js +0 -0
- /package/{v1 → src/v1}/examples/timeouts/worker.js +0 -0
- /package/{v1 → src/v1}/examples/timeouts/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/webhooks/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/examples/webhooks/workflow.js +0 -0
- /package/{v1 → src/v1}/examples/with_timeouts/workflow.d.ts +0 -0
- /package/{v1 → src/v1}/index.d.ts +0 -0
- /package/{v1 → src/v1}/index.js +0 -0
- /package/{v1 → src/v1}/parent-run-context-vars.d.ts +0 -0
- /package/{v1 → src/v1}/parent-run-context-vars.js +0 -0
- /package/{v1 → src/v1}/slot-types.d.ts +0 -0
- /package/{v1 → src/v1}/slot-types.js +0 -0
- /package/{v1 → src/v1}/types.js +0 -0
|
@@ -13,7 +13,7 @@ exports.TaskWorkflowDeclaration = exports.WorkflowDeclaration = exports.BaseWork
|
|
|
13
13
|
exports.CreateTaskWorkflow = CreateTaskWorkflow;
|
|
14
14
|
exports.CreateWorkflow = CreateWorkflow;
|
|
15
15
|
exports.CreateDurableTaskWorkflow = CreateDurableTaskWorkflow;
|
|
16
|
-
const abort_error_1 = require("
|
|
16
|
+
const abort_error_1 = require("../../util/abort-error");
|
|
17
17
|
const parent_run_context_vars_1 = require("./parent-run-context-vars");
|
|
18
18
|
const UNBOUND_ERR = new Error('workflow unbound to hatchet client, hint: use client.run instead');
|
|
19
19
|
// eslint-disable-next-line no-shadow
|
|
@@ -29,6 +29,7 @@ var Priority;
|
|
|
29
29
|
* Prefer using `StickyStrategy.SOFT` / `StickyStrategy.HARD` (v1, non-protobuf).
|
|
30
30
|
* For backwards compatibility, the workflow/task `sticky` field also accepts legacy
|
|
31
31
|
* protobuf enum values (`0`/`1`) and strings (`'SOFT'`/`'HARD'`).
|
|
32
|
+
* @internal
|
|
32
33
|
*/
|
|
33
34
|
exports.StickyStrategy = {
|
|
34
35
|
SOFT: 'soft',
|
|
@@ -38,12 +39,14 @@ exports.StickyStrategy = {
|
|
|
38
39
|
* Represents a workflow that can be executed by Hatchet.
|
|
39
40
|
* @template I The input type for the workflow.
|
|
40
41
|
* @template O The return type of the workflow.
|
|
42
|
+
* @internal
|
|
41
43
|
*/
|
|
42
44
|
class BaseWorkflowDeclaration {
|
|
43
45
|
/**
|
|
44
46
|
* Creates a new workflow instance.
|
|
45
47
|
* @param options The options for creating the workflow.
|
|
46
48
|
* @param client Optional Hatchet client instance.
|
|
49
|
+
* @internal
|
|
47
50
|
*/
|
|
48
51
|
constructor(options, client) {
|
|
49
52
|
this.definition = Object.assign(Object.assign({}, options), { _tasks: [], _durableTasks: [] });
|
|
@@ -281,6 +284,7 @@ class BaseWorkflowDeclaration {
|
|
|
281
284
|
// }
|
|
282
285
|
/**
|
|
283
286
|
* @deprecated use definition.name instead
|
|
287
|
+
* @hidden
|
|
284
288
|
*/
|
|
285
289
|
get id() {
|
|
286
290
|
return this.definition.name;
|
|
@@ -294,6 +298,44 @@ class BaseWorkflowDeclaration {
|
|
|
294
298
|
}
|
|
295
299
|
}
|
|
296
300
|
exports.BaseWorkflowDeclaration = BaseWorkflowDeclaration;
|
|
301
|
+
/**
|
|
302
|
+
* A Hatchet workflow, which lets you define tasks and perform actions on the workflow.
|
|
303
|
+
*
|
|
304
|
+
* Workflows in Hatchet represent coordinated units of work that can be triggered,
|
|
305
|
+
* scheduled, or run on a cron schedule. Each workflow can contain multiple tasks
|
|
306
|
+
* that can be arranged in dependencies (DAGs), with customized retry behavior,
|
|
307
|
+
* timeouts, concurrency controls, and more.
|
|
308
|
+
*
|
|
309
|
+
* Example:
|
|
310
|
+
* ```typescript
|
|
311
|
+
* import { hatchet } from './hatchet-client';
|
|
312
|
+
*
|
|
313
|
+
* type MyInput = { name: string };
|
|
314
|
+
*
|
|
315
|
+
* const workflow = hatchet.workflow<MyInput>({
|
|
316
|
+
* name: 'my-workflow',
|
|
317
|
+
* });
|
|
318
|
+
*
|
|
319
|
+
* workflow.task({
|
|
320
|
+
* name: 'greet',
|
|
321
|
+
* fn: async (input) => {
|
|
322
|
+
* return { message: `Hello, ${input.name}!` };
|
|
323
|
+
* },
|
|
324
|
+
* });
|
|
325
|
+
*
|
|
326
|
+
* // Run the workflow
|
|
327
|
+
* await workflow.run({ name: 'World' });
|
|
328
|
+
* ```
|
|
329
|
+
*
|
|
330
|
+
* Workflows support various execution patterns, including:
|
|
331
|
+
* - One-time execution with `run()` and `runNoWait()`
|
|
332
|
+
* - Scheduled execution with `schedule()`
|
|
333
|
+
* - Cron-based recurring execution with `cron()`
|
|
334
|
+
* - Bulk execution by passing an array input to `run()` and `runNoWait()`
|
|
335
|
+
*
|
|
336
|
+
* Tasks within workflows can be defined with `workflow.task()` or
|
|
337
|
+
* `workflow.durableTask()` and arranged into complex dependency patterns.
|
|
338
|
+
*/
|
|
297
339
|
class WorkflowDeclaration extends BaseWorkflowDeclaration {
|
|
298
340
|
/**
|
|
299
341
|
* Adds a task to the workflow.
|
|
@@ -378,10 +420,26 @@ class WorkflowDeclaration extends BaseWorkflowDeclaration {
|
|
|
378
420
|
}
|
|
379
421
|
exports.WorkflowDeclaration = WorkflowDeclaration;
|
|
380
422
|
/**
|
|
381
|
-
* A standalone task
|
|
423
|
+
* A standalone task declaration that can be run like a workflow.
|
|
424
|
+
*
|
|
425
|
+
* `TaskWorkflowDeclaration` is returned by `hatchet.task(...)` and wraps a single
|
|
426
|
+
* task definition while exposing the same execution helpers as workflows, such as
|
|
427
|
+
* `run()`, `runNoWait()`, `schedule()`, and `cron()` (inherited from
|
|
428
|
+
* `BaseWorkflowDeclaration`).
|
|
429
|
+
*
|
|
430
|
+
* Example:
|
|
431
|
+
* ```typescript
|
|
432
|
+
* const greet = hatchet.task<{ name: string }, { message: string }>({
|
|
433
|
+
* name: 'greet',
|
|
434
|
+
* fn: async (input) => ({ message: `Hello, ${input.name}!` }),
|
|
435
|
+
* });
|
|
436
|
+
*
|
|
437
|
+
* await greet.run({ name: 'World' });
|
|
438
|
+
* const ref = await greet.runNoWait({ name: 'World' });
|
|
439
|
+
* ```
|
|
382
440
|
*
|
|
383
|
-
* @template I
|
|
384
|
-
* @template O
|
|
441
|
+
* @template I The input type for the standalone task.
|
|
442
|
+
* @template O The output type returned by the standalone task.
|
|
385
443
|
* @template GlobalInput - Global input type from the client, merged into all run/schedule/cron input signatures.
|
|
386
444
|
* @template MiddlewareBefore - Extra fields added to the task fn input by pre-middleware hooks.
|
|
387
445
|
* @template MiddlewareAfter - Extra fields merged into the task output by post-middleware hooks.
|
|
@@ -468,7 +526,7 @@ class TaskWorkflowDeclaration extends BaseWorkflowDeclaration {
|
|
|
468
526
|
return _super.cron.call(this, name, expression, input, options);
|
|
469
527
|
});
|
|
470
528
|
}
|
|
471
|
-
|
|
529
|
+
// Returns the underlying task definition for this declaration.
|
|
472
530
|
get taskDef() {
|
|
473
531
|
return this.definition._tasks[0];
|
|
474
532
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { HatchetClient } from '
|
|
2
|
-
import type { BaseWorkflowDeclaration } from '
|
|
1
|
+
import { HatchetClient } from '../../../../v1';
|
|
2
|
+
import type { BaseWorkflowDeclaration } from '../../../../v1';
|
|
3
3
|
import { Worker } from '../../client/worker/worker';
|
|
4
4
|
export declare function requireEnv(name: string): string;
|
|
5
5
|
export declare function makeE2EClient(): HatchetClient;
|
|
@@ -18,9 +18,9 @@ exports.makeTestScope = makeTestScope;
|
|
|
18
18
|
exports.startWorker = startWorker;
|
|
19
19
|
exports.stopWorker = stopWorker;
|
|
20
20
|
exports.poll = poll;
|
|
21
|
-
const sleep_1 = __importDefault(require("
|
|
21
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
22
22
|
const crypto_1 = require("crypto");
|
|
23
|
-
const v1_1 = require("
|
|
23
|
+
const v1_1 = require("../../../../v1");
|
|
24
24
|
function requireEnv(name) {
|
|
25
25
|
const value = process.env[name];
|
|
26
26
|
if (!value) {
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const v1_1 = require("
|
|
12
|
+
const v1_1 = require("../../../../v1");
|
|
13
13
|
const hatchet_client_1 = require("../hatchet-client");
|
|
14
14
|
// > AffinityWorkflow
|
|
15
15
|
const workflow = hatchet_client_1.hatchet.workflow({
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.abortSignal = exports.cancellationWorkflow = void 0;
|
|
16
16
|
const axios_1 = __importDefault(require("axios"));
|
|
17
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
18
18
|
const hatchet_client_1 = require("../hatchet-client");
|
|
19
19
|
// > Self-cancelling workflow (mirrors Python example)
|
|
20
20
|
exports.cancellationWorkflow = hatchet_client_1.hatchet.workflow({
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
/* eslint-disable no-console */
|
|
16
16
|
// > Running a Task with Results
|
|
17
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
18
18
|
const cancellation_workflow_1 = require("./cancellation-workflow");
|
|
19
19
|
const hatchet_client_1 = require("../hatchet-client");
|
|
20
20
|
// ...
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
/* eslint-disable no-console */
|
|
16
16
|
// > Running a Task with Results
|
|
17
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
18
18
|
const workflow_1 = require("./workflow");
|
|
19
19
|
const hatchet_client_1 = require("../hatchet-client");
|
|
20
20
|
// ...
|
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.abortSignal = exports.cancellation = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
17
17
|
const axios_1 = __importDefault(require("axios"));
|
|
18
18
|
const hatchet_client_1 = require("../hatchet-client");
|
|
19
19
|
// > Declaring a Task
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.multipleConcurrencyKeys = exports.simpleConcurrency = void 0;
|
|
13
|
-
const workflow_1 = require("
|
|
13
|
+
const workflow_1 = require("../../../../workflow");
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
const sleep = (ms) => new Promise((resolve) => {
|
|
16
16
|
setTimeout(resolve, ms);
|
|
@@ -6,4 +6,4 @@ export type WorkflowOutput = {
|
|
|
6
6
|
step1: EmptyTaskOutput;
|
|
7
7
|
step2: EmptyTaskOutput;
|
|
8
8
|
};
|
|
9
|
-
export declare const concurrencyCancelInProgressWorkflow: import("
|
|
9
|
+
export declare const concurrencyCancelInProgressWorkflow: import("../../../../v1").WorkflowDeclaration<WorkflowInput, WorkflowOutput, {}>;
|
|
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.concurrencyCancelInProgressWorkflow = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
-
const v1_1 = require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
17
|
+
const v1_1 = require("../../../../v1");
|
|
18
18
|
const hatchet_client_1 = require("../hatchet-client");
|
|
19
19
|
exports.concurrencyCancelInProgressWorkflow = hatchet_client_1.hatchet.workflow({
|
|
20
20
|
name: 'concurrencycancelinprogress',
|
|
@@ -6,4 +6,4 @@ export type WorkflowOutput = {
|
|
|
6
6
|
step1: EmptyTaskOutput;
|
|
7
7
|
step2: EmptyTaskOutput;
|
|
8
8
|
};
|
|
9
|
-
export declare const concurrencyCancelNewestWorkflow: import("
|
|
9
|
+
export declare const concurrencyCancelNewestWorkflow: import("../../../../v1").WorkflowDeclaration<WorkflowInput, WorkflowOutput, {}>;
|
|
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.concurrencyCancelNewestWorkflow = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
-
const v1_1 = require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
17
|
+
const v1_1 = require("../../../../v1");
|
|
18
18
|
const hatchet_client_1 = require("../hatchet-client");
|
|
19
19
|
exports.concurrencyCancelNewestWorkflow = hatchet_client_1.hatchet.workflow({
|
|
20
20
|
name: 'concurrencycancelnewest',
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type SimpleInput = {
|
|
2
|
+
Message: string;
|
|
3
|
+
GroupKey: string;
|
|
4
|
+
};
|
|
5
|
+
type SimpleOutput = {
|
|
6
|
+
'to-lower': {
|
|
7
|
+
TransformedMessage: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const simpleConcurrency: import("../../../../v1").WorkflowDeclaration<SimpleInput, SimpleOutput, {}>;
|
|
11
|
+
export declare const multipleConcurrencyKeys: import("../../../../v1").WorkflowDeclaration<SimpleInput, SimpleOutput, {}>;
|
|
12
|
+
export {};
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.multipleConcurrencyKeys = exports.simpleConcurrency = void 0;
|
|
13
|
-
const v1_1 = require("
|
|
13
|
+
const v1_1 = require("../../../../v1");
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
const sleep = (ms) => new Promise((resolve) => {
|
|
16
16
|
setTimeout(resolve, ms);
|
|
@@ -9,4 +9,4 @@ export type WorkflowInput = {
|
|
|
9
9
|
export type WorkflowOutput = {
|
|
10
10
|
concurrency_task: EmptyTaskOutput;
|
|
11
11
|
};
|
|
12
|
-
export declare const concurrencyMultipleKeysWorkflow: import("
|
|
12
|
+
export declare const concurrencyMultipleKeysWorkflow: import("../../../../v1").WorkflowDeclaration<WorkflowInput, WorkflowOutput, {}>;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.concurrencyMultipleKeysWorkflow = exports.NAME_MAX_RUNS = exports.DIGIT_MAX_RUNS = exports.SLEEP_TIME_MS = void 0;
|
|
13
|
-
const v1_1 = require("
|
|
13
|
+
const v1_1 = require("../../../../v1");
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
const sleep = (ms) => new Promise((resolve) => {
|
|
16
16
|
setTimeout(resolve, ms);
|
|
@@ -10,4 +10,4 @@ export type WorkflowOutput = {
|
|
|
10
10
|
task_1: EmptyTaskOutput;
|
|
11
11
|
task_2: EmptyTaskOutput;
|
|
12
12
|
};
|
|
13
|
-
export declare const concurrencyWorkflowLevelWorkflow: import("
|
|
13
|
+
export declare const concurrencyWorkflowLevelWorkflow: import("../../../../v1").WorkflowDeclaration<WorkflowInput, WorkflowOutput, {}>;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.concurrencyWorkflowLevelWorkflow = exports.NAME_MAX_RUNS = exports.DIGIT_MAX_RUNS = exports.SLEEP_TIME_MS = void 0;
|
|
13
|
-
const v1_1 = require("
|
|
13
|
+
const v1_1 = require("../../../../v1");
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
const sleep = (ms) => new Promise((resolve) => {
|
|
16
16
|
setTimeout(resolve, ms);
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.taskConditionWorkflow = void 0;
|
|
13
13
|
// > Create a workflow
|
|
14
|
-
const conditions_1 = require("
|
|
15
|
-
const parent_condition_1 = require("
|
|
14
|
+
const conditions_1 = require("../../../../v1/conditions");
|
|
15
|
+
const parent_condition_1 = require("../../../../v1/conditions/parent-condition");
|
|
16
16
|
const hatchet_client_1 = require("../hatchet-client");
|
|
17
17
|
exports.taskConditionWorkflow = hatchet_client_1.hatchet.workflow({
|
|
18
18
|
name: 'TaskConditionWorkflow',
|
|
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.dagWithConditions = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
-
const conditions_1 = require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
17
|
+
const conditions_1 = require("../../../../v1/conditions");
|
|
18
18
|
const hatchet_client_1 = require("../hatchet-client");
|
|
19
19
|
exports.dagWithConditions = hatchet_client_1.hatchet.workflow({
|
|
20
20
|
name: 'simple',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { WorkflowInputType, WorkflowOutputType } from '
|
|
1
|
+
import { WorkflowInputType, WorkflowOutputType } from '../../../../v1';
|
|
2
2
|
interface DagInput extends WorkflowInputType {
|
|
3
3
|
Message: string;
|
|
4
4
|
}
|
|
@@ -8,5 +8,5 @@ interface DagOutput extends WorkflowOutputType {
|
|
|
8
8
|
Transformed: string;
|
|
9
9
|
};
|
|
10
10
|
}
|
|
11
|
-
export declare const dag: import("
|
|
11
|
+
export declare const dag: import("../../../../v1").WorkflowDeclaration<DagInput, DagOutput, {}>;
|
|
12
12
|
export {};
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.taskConditionWorkflow = void 0;
|
|
13
13
|
// > Create a workflow
|
|
14
|
-
const conditions_1 = require("
|
|
15
|
-
const parent_condition_1 = require("
|
|
14
|
+
const conditions_1 = require("../../../../v1/conditions");
|
|
15
|
+
const parent_condition_1 = require("../../../../v1/conditions/parent-condition");
|
|
16
16
|
const hatchet_client_1 = require("../hatchet-client");
|
|
17
17
|
exports.taskConditionWorkflow = hatchet_client_1.hatchet.workflow({
|
|
18
18
|
name: 'TaskConditionWorkflow',
|
|
@@ -13,8 +13,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.dagWithConditions = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
17
|
-
const conditions_1 = require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
17
|
+
const conditions_1 = require("../../../../v1/conditions");
|
|
18
18
|
const hatchet_client_1 = require("../hatchet-client");
|
|
19
19
|
exports.dagWithConditions = hatchet_client_1.hatchet.workflow({
|
|
20
20
|
name: 'simple',
|
|
@@ -13,7 +13,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.parent = exports.child5 = exports.child4 = exports.child3 = exports.child2 = exports.child1 = void 0;
|
|
16
|
-
const sleep_1 = __importDefault(require("
|
|
16
|
+
const sleep_1 = __importDefault(require("../../../../util/sleep"));
|
|
17
17
|
const hatchet_client_1 = require("../hatchet-client");
|
|
18
18
|
exports.child1 = hatchet_client_1.hatchet.workflow({
|
|
19
19
|
name: 'child1',
|
|
@@ -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.waitForSleepTwice = exports.durableWorkflow = exports.SLEEP_TIME = exports.SLEEP_TIME_SECONDS = exports.EVENT_KEY = void 0;
|
|
13
13
|
/* eslint-disable no-console */
|
|
14
|
-
const conditions_1 = require("
|
|
14
|
+
const conditions_1 = require("../../../../v1/conditions");
|
|
15
15
|
const hatchet_client_1 = require("../hatchet-client");
|
|
16
16
|
exports.EVENT_KEY = 'durable-example:event';
|
|
17
17
|
exports.SLEEP_TIME_SECONDS = 2;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.durableEventWithFilter = exports.durableEvent = void 0;
|
|
13
|
-
// import sleep from '
|
|
13
|
+
// import sleep from '../../../../util/sleep.js';
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
// > Durable Event
|
|
16
16
|
exports.durableEvent = hatchet_client_1.hatchet.durableTask({
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.durableSleep = void 0;
|
|
13
|
-
// import sleep from '
|
|
13
|
+
// import sleep from '../../../../util/sleep.js';
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
exports.durableSleep = hatchet_client_1.hatchet.workflow({
|
|
16
16
|
name: 'durable-sleep',
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.durableEventWithFilter = exports.durableEvent = void 0;
|
|
13
|
-
// import sleep from '
|
|
13
|
+
// import sleep from '../../../../util/sleep.js';
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
// > Durable Event
|
|
16
16
|
exports.durableEvent = hatchet_client_1.hatchet.durableTask({
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.durableSleep = void 0;
|
|
13
|
-
// import sleep from '
|
|
13
|
+
// import sleep from '../../../../util/sleep.js';
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
exports.durableSleep = hatchet_client_1.hatchet.workflow({
|
|
16
16
|
name: 'durable-sleep',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HatchetClient } from '
|
|
1
|
+
import { HatchetClient } from '../../../v1';
|
|
2
2
|
export declare const hatchet: HatchetClient<{}, {}, {}, {}>;
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
13
|
-
const conditions_1 = require("
|
|
13
|
+
const conditions_1 = require("../../../../v1/conditions");
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
function main() {
|
|
16
16
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.simple = void 0;
|
|
4
|
-
const workflows_1 = require("
|
|
4
|
+
const workflows_1 = require("../../../../protoc/v1/workflows");
|
|
5
5
|
const hatchet_client_1 = require("../hatchet-client");
|
|
6
6
|
// > Process what you can handle
|
|
7
7
|
exports.simple = hatchet_client_1.hatchet.task({
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
16
16
|
const pino_1 = __importDefault(require("pino"));
|
|
17
|
-
const sdk_1 = __importDefault(require("
|
|
17
|
+
const sdk_1 = __importDefault(require("../../../../sdk"));
|
|
18
18
|
// > Create Pino logger
|
|
19
19
|
const logger = (0, pino_1.default)();
|
|
20
20
|
class PinoLogger {
|
|
@@ -14,7 +14,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
// eslint-disable-next-line import/no-extraneous-dependencies
|
|
16
16
|
const pino_1 = __importDefault(require("pino"));
|
|
17
|
-
const sdk_1 = __importDefault(require("
|
|
17
|
+
const sdk_1 = __importDefault(require("../../../../sdk"));
|
|
18
18
|
// > Create Pino logger
|
|
19
19
|
const logger = (0, pino_1.default)();
|
|
20
20
|
class PinoLogger {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.hatchetWithMiddlewareChaining = exports.hatchetWithMiddleware = void 0;
|
|
4
4
|
// > Init a client with middleware
|
|
5
|
-
const v1_1 = require("
|
|
5
|
+
const v1_1 = require("../../../../v1");
|
|
6
6
|
const myMiddleware = {
|
|
7
7
|
before: (input, ctx) => {
|
|
8
8
|
console.log('before', input.first);
|
|
@@ -14,7 +14,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
14
14
|
};
|
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
16
|
// > End-to-end encryption
|
|
17
|
-
const v1_1 = require("
|
|
17
|
+
const v1_1 = require("../../../../v1");
|
|
18
18
|
const crypto_1 = require("crypto");
|
|
19
19
|
// !!
|
|
20
20
|
// > Offloading large payloads to S3
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import HatchetClient from '
|
|
1
|
+
import HatchetClient from '../../../../sdk';
|
|
2
2
|
export declare const hatchet: HatchetClient<{}, {}, {}, {}>;
|
|
@@ -4,5 +4,5 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.hatchet = void 0;
|
|
7
|
-
const sdk_1 = __importDefault(require("
|
|
7
|
+
const sdk_1 = __importDefault(require("../../../../sdk"));
|
|
8
8
|
exports.hatchet = sdk_1.default.init();
|
|
@@ -7,5 +7,5 @@ type SimpleOutput = {
|
|
|
7
7
|
TransformedMessage: string;
|
|
8
8
|
};
|
|
9
9
|
};
|
|
10
|
-
export declare const multiConcurrency: import("
|
|
10
|
+
export declare const multiConcurrency: import("../../../../v1").WorkflowDeclaration<SimpleInput, SimpleOutput, {}>;
|
|
11
11
|
export {};
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.multiConcurrency = void 0;
|
|
13
|
-
const v1_1 = require("
|
|
13
|
+
const v1_1 = require("../../../../v1");
|
|
14
14
|
const hatchet_client_1 = require("../hatchet-client");
|
|
15
15
|
const sleep = (ms) => new Promise((resolve) => {
|
|
16
16
|
setTimeout(resolve, ms);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.nonRetryableWorkflow = void 0;
|
|
4
|
-
const task_1 = require("
|
|
4
|
+
const task_1 = require("../../../../v1/task");
|
|
5
5
|
const hatchet_client_1 = require("../hatchet-client");
|
|
6
6
|
exports.nonRetryableWorkflow = hatchet_client_1.hatchet.workflow({
|
|
7
7
|
name: 'no-retry-workflow',
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
const v1_1 = require("
|
|
12
|
+
const v1_1 = require("../../../../v1");
|
|
13
13
|
const workflow_1 = require("./workflow");
|
|
14
14
|
/* eslint-disable no-console */
|
|
15
15
|
function main() {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Priority } from '../../../../v1';
|
|
2
|
+
export declare const priority: import("../../../../v1").TaskWorkflowDeclaration<import("../../../../v1").UnknownInputType, {
|
|
3
|
+
priority: Priority | undefined;
|
|
4
|
+
}, {}, {}, {}, {}>;
|
|
5
|
+
export declare const priorityWf: import("../../../../v1").WorkflowDeclaration<import("../../../../v1").UnknownInputType, {}, {}>;
|
|
6
|
+
export declare const priorityTasks: (import("../../../../v1").WorkflowDeclaration<import("../../../../v1").UnknownInputType, {}, {}> | import("../../../../v1").TaskWorkflowDeclaration<import("../../../../v1").UnknownInputType, {
|
|
7
|
+
priority: Priority | undefined;
|
|
8
|
+
}, {}, {}, {}, {}>)[];
|
|
@@ -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.priorityTasks = exports.priorityWf = exports.priority = void 0;
|
|
13
13
|
/* eslint-disable no-console */
|
|
14
|
-
const v1_1 = require("
|
|
14
|
+
const v1_1 = require("../../../../v1");
|
|
15
15
|
const hatchet_client_1 = require("../hatchet-client");
|
|
16
16
|
// > Simple Task Priority
|
|
17
17
|
exports.priority = hatchet_client_1.hatchet.task({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import Hatchet from '
|
|
1
|
+
import Hatchet from '../../../../sdk';
|
|
2
2
|
export declare const hatchet: Hatchet<{}, {}, {}, {}>;
|
|
@@ -4,6 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.hatchet = void 0;
|
|
7
|
-
const sdk_1 = __importDefault(require("
|
|
7
|
+
const sdk_1 = __importDefault(require("../../../../sdk"));
|
|
8
8
|
// HH-client 1 Client
|
|
9
9
|
exports.hatchet = sdk_1.default.init();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const workflows_1 = require("
|
|
3
|
+
const workflows_1 = require("../../../../protoc/v1/workflows");
|
|
4
4
|
const hatchet_client_1 = require("../hatchet-client");
|
|
5
5
|
// > Upsert Rate Limit
|
|
6
6
|
hatchet_client_1.hatchet.ratelimits.upsert({
|