@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.
- package/clients/admin/admin-client.d.ts +5 -1
- package/clients/dispatcher/action-listener.d.ts +1 -13
- package/package.json +1 -1
- package/step.d.ts +1 -0
- package/step.js +3 -0
|
@@ -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
package/step.d.ts
CHANGED
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];
|