@hatchet-dev/typescript-sdk 0.7.3 → 0.7.4

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.
@@ -3,7 +3,7 @@ import { CreateWorkflowVersionOpts, RateLimitDuration, WorkflowServiceClient } f
3
3
  import { ClientConfig } from '../hatchet-client/client-config';
4
4
  import { Logger } from '../../util/logger';
5
5
  import { Api } from '../rest';
6
- import { WorkflowRunStatus } from '../rest/generated/data-contracts';
6
+ import { WorkflowRunStatus, WorkflowRunStatusList } from '../rest/generated/data-contracts';
7
7
  type WorkflowMetricsQuery = {
8
8
  workflowId?: string;
9
9
  workflowName?: string;
@@ -88,6 +88,10 @@ export declare class AdminClient {
88
88
  limit?: number | undefined;
89
89
  eventId?: string | undefined;
90
90
  workflowId?: string | undefined;
91
+ parentWorkflowRunId?: string | undefined;
92
+ parentStepRunId?: string | undefined;
93
+ statuses?: WorkflowRunStatusList | undefined;
94
+ additionalMetadata?: string[] | undefined;
91
95
  }): Promise<import("../rest/generated/data-contracts").WorkflowRunList>;
92
96
  /**
93
97
  * Schedule a workflow to run at a specific time or times.
@@ -7,19 +7,7 @@ declare enum ListenStrategy {
7
7
  LISTEN_STRATEGY_V1 = 1,
8
8
  LISTEN_STRATEGY_V2 = 2
9
9
  }
10
- export interface Action {
11
- tenantId: string;
12
- jobId: string;
13
- jobName: string;
14
- jobRunId: string;
15
- stepId: string;
16
- stepRunId: string;
17
- actionId: string;
18
- actionType: number;
19
- actionPayload: string;
20
- workflowRunId: string;
21
- getGroupKeyRunId: string;
22
- stepName: string;
10
+ export interface Action extends AssignedAction {
23
11
  }
24
12
  export declare class ActionListener {
25
13
  config: ClientConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "0.7.3",
3
+ "version": "0.7.4",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
package/step.d.ts CHANGED
@@ -84,6 +84,7 @@ export declare class Context<T, K> {
84
84
  userData(): K;
85
85
  stepName(): string;
86
86
  workflowRunId(): string;
87
+ retryCount(): number;
87
88
  playground(name: string, defaultValue?: string): string;
88
89
  log(message: string, level?: LogLevel): void;
89
90
  /**
package/step.js CHANGED
@@ -168,6 +168,9 @@ class Context {
168
168
  workflowRunId() {
169
169
  return this.action.workflowRunId;
170
170
  }
171
+ retryCount() {
172
+ return this.action.retryCount;
173
+ }
171
174
  playground(name, defaultValue = '') {
172
175
  if (name in this.overridesData) {
173
176
  return this.overridesData[name];