@hatchet-dev/typescript-sdk 1.15.2 → 1.16.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.
Files changed (136) hide show
  1. package/clients/admin/admin-client.js +8 -9
  2. package/clients/dispatcher/action-listener.js +42 -6
  3. package/clients/dispatcher/dispatcher-client.js +5 -8
  4. package/clients/dispatcher/heartbeat/heartbeat-worker.js +7 -4
  5. package/clients/event/event-client.d.ts +2 -2
  6. package/clients/event/event-client.js +5 -11
  7. package/clients/hatchet-client/hatchet-logger.js +8 -17
  8. package/clients/listeners/durable-listener/pooled-durable-listener-client.js +10 -8
  9. package/clients/listeners/run-listener/child-listener-client.d.ts +1 -1
  10. package/clients/listeners/run-listener/child-listener-client.js +34 -30
  11. package/clients/listeners/run-listener/pooled-child-listener-client.js +8 -5
  12. package/clients/rest/generated/Api.d.ts +21 -1
  13. package/clients/rest/generated/Api.js +20 -0
  14. package/clients/rest/generated/data-contracts.d.ts +46 -1
  15. package/clients/rest/generated/data-contracts.js +4 -0
  16. package/legacy/examples/affinity-workers.js +0 -1
  17. package/legacy/examples/byo-logger.js +0 -2
  18. package/legacy/examples/concurrency/cancel-in-progress/concurrency-worker.js +4 -2
  19. package/legacy/examples/concurrency/group-round-robin/concurrency-event.js +0 -1
  20. package/legacy/examples/concurrency/group-round-robin/concurrency-worker-expression.js +4 -2
  21. package/legacy/examples/concurrency/group-round-robin/concurrency-worker-key-fn.js +4 -2
  22. package/legacy/examples/example-event.js +0 -3
  23. package/legacy/examples/logger.js +0 -1
  24. package/legacy/examples/sticky-worker-with-check.js +0 -1
  25. package/legacy/examples/sticky-worker.js +0 -1
  26. package/legacy/legacy-client.js +1 -1
  27. package/legacy/legacy-transformer.js +2 -4
  28. package/legacy/step.d.ts +14 -14
  29. package/legacy/step.js +5 -15
  30. package/legacy/workflow.d.ts +56 -56
  31. package/package.json +20 -29
  32. package/util/abort-error.d.ts +5 -1
  33. package/util/abort-error.js +15 -5
  34. package/util/config-loader/config-loader.js +4 -3
  35. package/util/config-loader/token.js +9 -2
  36. package/util/errors/hatchet-error.d.ts +9 -1
  37. package/util/errors/hatchet-error.js +23 -2
  38. package/util/grpc-error.d.ts +9 -0
  39. package/util/grpc-error.js +25 -0
  40. package/util/hatchet-promise/hatchet-promise.d.ts +5 -1
  41. package/util/hatchet-promise/hatchet-promise.js +6 -1
  42. package/util/logger/logger.js +0 -1
  43. package/util/parse.d.ts +1 -1
  44. package/util/parse.js +4 -2
  45. package/util/retrier.js +2 -3
  46. package/util/workflow-run-ref.js +5 -3
  47. package/v1/client/admin.js +2 -6
  48. package/v1/client/client.d.ts +7 -11
  49. package/v1/client/client.interface.d.ts +5 -8
  50. package/v1/client/client.js +33 -39
  51. package/v1/client/features/cel.js +1 -1
  52. package/v1/client/features/crons.js +2 -2
  53. package/v1/client/features/index.d.ts +5 -0
  54. package/v1/client/features/index.js +5 -0
  55. package/v1/client/features/logs.d.ts +37 -0
  56. package/v1/client/features/logs.js +46 -0
  57. package/v1/client/features/runs.js +0 -1
  58. package/v1/client/features/schedules.js +4 -4
  59. package/v1/client/features/webhooks.js +4 -2
  60. package/v1/client/features/workflows.js +1 -1
  61. package/v1/client/worker/context.js +10 -23
  62. package/v1/client/worker/deprecated/deprecation.js +8 -4
  63. package/v1/client/worker/deprecated/legacy-worker.js +2 -2
  64. package/v1/client/worker/health-server.js +3 -3
  65. package/v1/client/worker/slot-utils.js +0 -3
  66. package/v1/client/worker/worker-internal.js +39 -10
  67. package/v1/client/worker/worker.js +2 -1
  68. package/v1/conditions/base.js +0 -1
  69. package/v1/conditions/index.js +2 -4
  70. package/v1/declaration.d.ts +1 -1
  71. package/v1/declaration.js +12 -7
  72. package/v1/examples/__e2e__/harness.js +4 -3
  73. package/v1/examples/affinity/affinity-workers.js +0 -1
  74. package/v1/examples/bulk_operations/workflow.js +0 -1
  75. package/v1/examples/cancellation/run.js +0 -1
  76. package/v1/examples/cancellations/run.js +0 -1
  77. package/v1/examples/child_workflows/run.js +0 -2
  78. package/v1/examples/child_workflows/workflow.js +0 -1
  79. package/v1/examples/concurrency-rr/load.js +0 -1
  80. package/v1/examples/concurrency-rr/run.js +0 -3
  81. package/v1/examples/concurrency_limit_rr/load.js +0 -1
  82. package/v1/examples/concurrency_limit_rr/run.js +0 -3
  83. package/v1/examples/conditions/event.js +0 -1
  84. package/v1/examples/conditions/run.js +0 -1
  85. package/v1/examples/dag/run.js +0 -1
  86. package/v1/examples/dag_match_condition/event.js +0 -1
  87. package/v1/examples/dag_match_condition/run.js +0 -1
  88. package/v1/examples/deep/run.js +0 -2
  89. package/v1/examples/durable/workflow.js +2 -3
  90. package/v1/examples/durable-event/event.js +0 -1
  91. package/v1/examples/durable-event/run.js +0 -2
  92. package/v1/examples/durable-sleep/event.js +0 -1
  93. package/v1/examples/durable-sleep/run.js +0 -2
  94. package/v1/examples/durable_event/event.js +0 -1
  95. package/v1/examples/durable_event/run.js +0 -2
  96. package/v1/examples/durable_sleep/event.js +0 -1
  97. package/v1/examples/durable_sleep/run.js +0 -2
  98. package/v1/examples/events/event.js +0 -1
  99. package/v1/examples/high-memory/run.js +0 -1
  100. package/v1/examples/inferred-typing/run.js +0 -1
  101. package/v1/examples/landing_page/durable-excution.js +0 -1
  102. package/v1/examples/landing_page/queues.js +0 -1
  103. package/v1/examples/legacy/run.js +0 -1
  104. package/v1/examples/logger/byo-logger.js +0 -2
  105. package/v1/examples/logger/logger.js +0 -1
  106. package/v1/examples/logging/byo-logger.js +0 -2
  107. package/v1/examples/logging/logger.js +0 -1
  108. package/v1/examples/middleware/recipes.js +3 -1
  109. package/v1/examples/migration-guides/mergent.js +2 -1
  110. package/v1/examples/multiple_wf_concurrency/run.js +0 -3
  111. package/v1/examples/non_retryable/run.js +0 -1
  112. package/v1/examples/on_event/event.js +0 -1
  113. package/v1/examples/on_failure/run.js +0 -1
  114. package/v1/examples/on_failure/workflow.js +0 -1
  115. package/v1/examples/on_success/run.js +0 -1
  116. package/v1/examples/on_success/workflow.js +0 -1
  117. package/v1/examples/priority/run.js +0 -1
  118. package/v1/examples/priority/workflow.js +0 -1
  119. package/v1/examples/retries/run.js +0 -1
  120. package/v1/examples/retries/workflow.js +0 -1
  121. package/v1/examples/simple/bulk.js +0 -1
  122. package/v1/examples/simple/cron.js +0 -2
  123. package/v1/examples/simple/delay.js +0 -1
  124. package/v1/examples/simple/enqueue.js +0 -2
  125. package/v1/examples/simple/run.js +0 -1
  126. package/v1/examples/simple/schedule.js +0 -1
  127. package/v1/examples/simple/workflow-with-child.js +10 -4
  128. package/v1/examples/sticky/run.js +0 -1
  129. package/v1/examples/sticky/workflow.js +0 -1
  130. package/v1/examples/streaming/nextjs-proxy.js +0 -1
  131. package/v1/examples/streaming/run.js +0 -1
  132. package/v1/examples/timeout/run.js +0 -1
  133. package/v1/examples/timeouts/run.js +0 -1
  134. package/v1/slot-types.js +0 -1
  135. package/version.d.ts +1 -1
  136. package/version.js +1 -1
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const workflow_1 = require("./workflow");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable @typescript-eslint/no-unused-vars */
13
12
  const conditions_1 = require("../../conditions");
14
13
  const hatchet_client_1 = require("../hatchet-client");
15
14
  function main() {
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable @typescript-eslint/no-unused-vars */
13
12
  const hatchet_client_1 = require("../hatchet-client");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -16,7 +16,6 @@ function main() {
16
16
  const res = yield hatchet_client_1.hatchet.run(workflow_1.simple, {
17
17
  Message: 'hello',
18
18
  });
19
- // eslint-disable-next-line no-console
20
19
  console.log(res.step2);
21
20
  });
22
21
  }
@@ -12,7 +12,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- // eslint-disable-next-line import/no-extraneous-dependencies
16
15
  const pino_1 = __importDefault(require("pino"));
17
16
  const sdk_1 = __importDefault(require("../../../sdk"));
18
17
  // > Create Pino logger
@@ -54,7 +53,6 @@ const hatchet = sdk_1.default.init({
54
53
  const workflow = hatchet.task({
55
54
  name: 'byo-logger-example',
56
55
  fn: (ctx) => __awaiter(void 0, void 0, void 0, function* () {
57
- // eslint-disable-next-line no-plusplus
58
56
  for (let i = 0; i < 5; i++) {
59
57
  logger.info(`log message ${i}`);
60
58
  }
@@ -25,7 +25,6 @@ workflow.task({
25
25
  name: 'logger-step1',
26
26
  fn: (_, ctx) => __awaiter(void 0, void 0, void 0, function* () {
27
27
  // log in a for loop
28
- // eslint-disable-next-line no-plusplus
29
28
  for (let i = 0; i < 10; i++) {
30
29
  ctx.logger.info(`log message ${i}`);
31
30
  yield sleep(200);
@@ -12,7 +12,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
- // eslint-disable-next-line import/no-extraneous-dependencies
16
15
  const pino_1 = __importDefault(require("pino"));
17
16
  const sdk_1 = __importDefault(require("../../../sdk"));
18
17
  // > Create Pino logger
@@ -54,7 +53,6 @@ const hatchet = sdk_1.default.init({
54
53
  const workflow = hatchet.task({
55
54
  name: 'byo-logger-example',
56
55
  fn: (ctx) => __awaiter(void 0, void 0, void 0, function* () {
57
- // eslint-disable-next-line no-plusplus
58
56
  for (let i = 0; i < 5; i++) {
59
57
  logger.info(`log message ${i}`);
60
58
  }
@@ -25,7 +25,6 @@ workflow.task({
25
25
  name: 'logger-step1',
26
26
  fn: (_, ctx) => __awaiter(void 0, void 0, void 0, function* () {
27
27
  // log in a for loop
28
- // eslint-disable-next-line no-plusplus
29
28
  for (let i = 0; i < 10; i++) {
30
29
  ctx.logger.info(`log message ${i}`);
31
30
  yield sleep(200);
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Demo file with external deps not in SDK
2
3
  // @ts-nocheck
3
4
  // These snippets demonstrate common middleware patterns.
4
5
  // They reference external packages (@aws-sdk/*) that are NOT
@@ -39,8 +40,9 @@ function decrypt(ciphertext, iv, tag) {
39
40
  }
40
41
  const e2eEncryption = {
41
42
  before: (input) => {
42
- if (!input.encrypted)
43
+ if (!input.encrypted) {
43
44
  return input;
45
+ }
44
46
  const { ciphertext, iv, tag } = input.encrypted;
45
47
  const decrypted = JSON.parse(decrypt(ciphertext, iv, tag));
46
48
  return Object.assign(Object.assign(Object.assign({}, input), decrypted), { encrypted: undefined });
@@ -37,8 +37,9 @@ exports.imageProcessor = hatchet_client_1.hatchet.task({
37
37
  fn: (_a) => __awaiter(void 0, [_a], void 0, function* ({ imageUrl, filters }) {
38
38
  // Do some image processing
39
39
  const result = yield processImage(imageUrl, filters);
40
- if (!result.url)
40
+ if (!result.url) {
41
41
  throw new Error('Processing failed to generate URL');
42
+ }
42
43
  return {
43
44
  processedUrl: result.url,
44
45
  metadata: {
@@ -26,11 +26,8 @@ function main() {
26
26
  GroupKey: 'B',
27
27
  },
28
28
  ]);
29
- // eslint-disable-next-line no-console
30
29
  console.log(res[0]['to-lower'].TransformedMessage);
31
- // eslint-disable-next-line no-console
32
30
  console.log(res[1]['to-lower'].TransformedMessage);
33
- // eslint-disable-next-line no-console
34
31
  console.log(res[2]['to-lower'].TransformedMessage);
35
32
  });
36
33
  }
@@ -13,7 +13,6 @@ const workflow_1 = require("./workflow");
13
13
  function main() {
14
14
  return __awaiter(this, void 0, void 0, function* () {
15
15
  const res = yield workflow_1.nonRetryableWorkflow.runNoWait({});
16
- // eslint-disable-next-line no-console
17
16
  console.log(res);
18
17
  });
19
18
  }
@@ -44,7 +44,6 @@ function main() {
44
44
  ];
45
45
  yield hatchet_client_1.hatchet.events.bulkPush('user:create', events);
46
46
  // !!
47
- // eslint-disable-next-line no-console
48
47
  console.log(res.eventId);
49
48
  });
50
49
  }
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const workflow_1 = require("./workflow");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.failureWorkflow = exports.ERROR_TEXT = void 0;
13
- /* eslint-disable no-console */
14
13
  const hatchet_client_1 = require("../hatchet-client");
15
14
  exports.ERROR_TEXT = 'step1 failed';
16
15
  // > On Failure Task
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const workflow_1 = require("./workflow");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.onSuccessDag = void 0;
13
- /* eslint-disable no-console */
14
13
  const hatchet_client_1 = require("../hatchet-client");
15
14
  // > On Success DAG
16
15
  exports.onSuccessDag = hatchet_client_1.hatchet.workflow({
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  const v1_1 = require("../..");
13
13
  const workflow_1 = require("./workflow");
14
- /* eslint-disable no-console */
15
14
  function main() {
16
15
  return __awaiter(this, void 0, void 0, function* () {
17
16
  try {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.priorityTasks = exports.priorityWf = exports.priority = void 0;
13
- /* eslint-disable no-console */
14
13
  const v1_1 = require("../..");
15
14
  const hatchet_client_1 = require("../hatchet-client");
16
15
  // > Simple Task Priority
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const workflow_1 = require("./workflow");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.withBackoff = exports.retriesWithCount = exports.retries = void 0;
13
- /* eslint-disable no-console */
14
13
  const hatchet_client_1 = require("../hatchet-client");
15
14
  // > Simple Step Retries
16
15
  exports.retries = hatchet_client_1.hatchet.task({
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const hatchet_client_1 = require("../hatchet-client");
14
13
  const workflow_1 = require("./workflow");
15
14
  function main() {
@@ -20,7 +20,6 @@ function main() {
20
20
  // it may be useful to save the cron id for later
21
21
  const cronId = cron.metadata.id;
22
22
  // !!
23
- // eslint-disable-next-line no-console
24
23
  console.log(cron.metadata.id);
25
24
  // > Delete
26
25
  yield hatchet_client_1.hatchet.crons.delete(cronId);
@@ -30,7 +29,6 @@ function main() {
30
29
  workflow: workflow_1.simple,
31
30
  });
32
31
  // !!
33
- // eslint-disable-next-line no-console
34
32
  console.log(crons);
35
33
  });
36
34
  }
@@ -17,7 +17,6 @@ function main() {
17
17
  const scheduled = yield workflow_1.simple.delay(tomorrow, {
18
18
  Message: 'hello',
19
19
  });
20
- // eslint-disable-next-line no-console
21
20
  console.log(scheduled.metadata.id);
22
21
  yield hatchet_client_1.hatchet.schedules.delete(scheduled);
23
22
  });
@@ -9,8 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable import/no-duplicates */
13
- /* eslint-disable no-console */
14
12
  const hatchet_client_1 = require("../hatchet-client");
15
13
  // > Enqueuing a Workflow (Fire and Forget)
16
14
  const workflow_1 = require("./workflow");
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.extra = extra;
13
- /* eslint-disable no-console */
14
13
  const hatchet_client_1 = require("../hatchet-client");
15
14
  const workflow_1 = require("./workflow");
16
15
  const workflow_with_child_1 = require("./workflow-with-child");
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const hatchet_client_1 = require("../hatchet-client");
14
13
  const workflow_1 = require("./workflow");
15
14
  function main() {
@@ -8,21 +8,26 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  step((generator = generator.apply(thisArg, _arguments || [])).next());
9
9
  });
10
10
  };
11
+ var __importDefault = (this && this.__importDefault) || function (mod) {
12
+ return (mod && mod.__esModule) ? mod : { "default": mod };
13
+ };
11
14
  Object.defineProperty(exports, "__esModule", { value: true });
12
15
  exports.parent = exports.child3 = exports.child2 = exports.child1 = exports.child = void 0;
13
16
  // > Declaring a Task
17
+ const sleep_1 = __importDefault(require("../../../util/sleep"));
14
18
  const hatchet_client_1 = require("../hatchet-client");
15
19
  exports.child = hatchet_client_1.hatchet.workflow({
16
20
  name: 'child',
17
21
  });
18
22
  exports.child1 = exports.child.task({
19
23
  name: 'child1',
20
- fn: (input, ctx) => {
24
+ fn: (input, ctx) => __awaiter(void 0, void 0, void 0, function* () {
25
+ yield (0, sleep_1.default)(30 * 1000);
21
26
  ctx.logger.info('hello from the child1', { hello: 'moon' });
22
27
  return {
23
28
  TransformedMessage: input.Message.toLowerCase(),
24
29
  };
25
- },
30
+ }),
26
31
  });
27
32
  exports.child2 = exports.child.task({
28
33
  name: 'child2',
@@ -36,15 +41,16 @@ exports.child2 = exports.child.task({
36
41
  exports.child3 = exports.child.task({
37
42
  name: 'child3',
38
43
  parents: [exports.child1, exports.child2],
39
- fn: (input, ctx) => {
44
+ fn: (input, ctx) => __awaiter(void 0, void 0, void 0, function* () {
40
45
  ctx.logger.info('hello from the child3');
41
46
  return {
42
47
  TransformedMessage: input.Message.toLowerCase(),
43
48
  };
44
- },
49
+ }),
45
50
  });
46
51
  exports.parent = hatchet_client_1.hatchet.task({
47
52
  name: 'parent',
53
+ executionTimeout: '5m',
48
54
  fn: (input, ctx) => __awaiter(void 0, void 0, void 0, function* () {
49
55
  const c = yield ctx.runChild(exports.child, {
50
56
  Message: input.Message,
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const workflow_1 = require("../retries/workflow");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -10,7 +10,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.sticky = void 0;
13
- /* eslint-disable no-console */
14
13
  const v1_1 = require("../..");
15
14
  const hatchet_client_1 = require("../hatchet-client");
16
15
  const workflow_1 = require("../child_workflows/workflow");
@@ -20,7 +20,6 @@ function GET() {
20
20
  const ref = yield workflow_1.streamingTask.runNoWait({});
21
21
  const workflowRunId = yield ref.getWorkflowRunId();
22
22
  const stream = stream_1.Readable.from(hatchet_client_1.hatchet.runs.subscribeToStream(workflowRunId));
23
- // @ts-ignore
24
23
  return new Response(stream_1.Readable.toWeb(stream), {
25
24
  headers: {
26
25
  'Content-Type': 'text/plain',
@@ -16,7 +16,6 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
16
16
  function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
17
17
  };
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
- /* eslint-disable no-console */
20
19
  const workflow_1 = require("./workflow");
21
20
  const hatchet_client_1 = require("../hatchet-client");
22
21
  function main() {
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  const workflow_1 = require("./workflow");
14
13
  function main() {
15
14
  return __awaiter(this, void 0, void 0, function* () {
@@ -9,7 +9,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- /* eslint-disable no-console */
13
12
  // > Running a Task with Results
14
13
  const workflow_1 = require("./workflow");
15
14
  // ...
package/v1/slot-types.js CHANGED
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SlotType = void 0;
4
- // eslint-disable-next-line no-shadow
5
4
  var SlotType;
6
5
  (function (SlotType) {
7
6
  SlotType["Default"] = "default";
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const HATCHET_VERSION = "1.15.2";
1
+ export declare const HATCHET_VERSION = "1.16.0";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HATCHET_VERSION = void 0;
4
- exports.HATCHET_VERSION = '1.15.2';
4
+ exports.HATCHET_VERSION = '1.16.0';