@hatchet-dev/typescript-sdk 1.9.1 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/v1/client/features/runs.d.ts +2 -0
- package/v1/client/features/runs.js +4 -0
- package/version.d.ts +1 -1
- package/version.js +1 -1
package/package.json
CHANGED
|
@@ -53,6 +53,8 @@ export interface ListRunsOpts extends RunFilter {
|
|
|
53
53
|
* @maxLength 36
|
|
54
54
|
*/
|
|
55
55
|
triggeringEventExternalId?: string;
|
|
56
|
+
/** A flag for whether or not to include the input and output payloads in the response. Defaults to `true` if unset. */
|
|
57
|
+
includePayloads?: boolean;
|
|
56
58
|
}
|
|
57
59
|
/**
|
|
58
60
|
* RunsClient is used to list and manage runs
|
|
@@ -102,6 +102,8 @@ class RunsClient {
|
|
|
102
102
|
var _a, _b;
|
|
103
103
|
const am = Object.entries(opts.additionalMetadata || {}).map(([key, value]) => `${key}:${value}`);
|
|
104
104
|
return {
|
|
105
|
+
offset: opts.offset,
|
|
106
|
+
limit: opts.limit,
|
|
105
107
|
// default to 1 hour ago
|
|
106
108
|
since: opts.since
|
|
107
109
|
? opts.since.toISOString()
|
|
@@ -112,7 +114,9 @@ class RunsClient {
|
|
|
112
114
|
workflow_ids: yield Promise.all(((_b = opts.workflowNames) === null || _b === void 0 ? void 0 : _b.map((name) => __awaiter(this, void 0, void 0, function* () { return (yield this.workflows.get(name)).metadata.id; }))) || []),
|
|
113
115
|
additional_metadata: am,
|
|
114
116
|
only_tasks: opts.onlyTasks || false,
|
|
117
|
+
parent_task_external_id: opts.parentTaskExternalId,
|
|
115
118
|
triggering_event_external_id: opts.triggeringEventExternalId,
|
|
119
|
+
include_payloads: opts.includePayloads,
|
|
116
120
|
};
|
|
117
121
|
});
|
|
118
122
|
}
|
package/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const HATCHET_VERSION = "1.9.
|
|
1
|
+
export declare const HATCHET_VERSION = "1.9.2";
|
package/version.js
CHANGED