@mastra/clickhouse 1.0.0-beta.0 → 1.0.0-beta.1
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/CHANGELOG.md +10 -0
- package/dist/index.cjs +8 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -10
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +1 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +8 -6
package/dist/index.js
CHANGED
|
@@ -1980,7 +1980,8 @@ var WorkflowsStorageClickhouse = class extends WorkflowsStorage {
|
|
|
1980
1980
|
toDate,
|
|
1981
1981
|
page,
|
|
1982
1982
|
perPage,
|
|
1983
|
-
resourceId
|
|
1983
|
+
resourceId,
|
|
1984
|
+
status
|
|
1984
1985
|
} = {}) {
|
|
1985
1986
|
try {
|
|
1986
1987
|
const conditions = [];
|
|
@@ -1989,6 +1990,10 @@ var WorkflowsStorageClickhouse = class extends WorkflowsStorage {
|
|
|
1989
1990
|
conditions.push(`workflow_name = {var_workflow_name:String}`);
|
|
1990
1991
|
values.var_workflow_name = workflowName;
|
|
1991
1992
|
}
|
|
1993
|
+
if (status) {
|
|
1994
|
+
conditions.push(`JSONExtractString(snapshot, 'status') = {var_status:String}`);
|
|
1995
|
+
values.var_status = status;
|
|
1996
|
+
}
|
|
1992
1997
|
if (resourceId) {
|
|
1993
1998
|
const hasResourceId = await this.operations.hasColumn(TABLE_WORKFLOW_SNAPSHOT, "resourceId");
|
|
1994
1999
|
if (hasResourceId) {
|
|
@@ -2242,15 +2247,8 @@ var ClickhouseStore = class extends MastraStorage {
|
|
|
2242
2247
|
}) {
|
|
2243
2248
|
return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
|
|
2244
2249
|
}
|
|
2245
|
-
async listWorkflowRuns({
|
|
2246
|
-
|
|
2247
|
-
fromDate,
|
|
2248
|
-
toDate,
|
|
2249
|
-
perPage,
|
|
2250
|
-
page,
|
|
2251
|
-
resourceId
|
|
2252
|
-
} = {}) {
|
|
2253
|
-
return this.stores.workflows.listWorkflowRuns({ workflowName, fromDate, toDate, perPage, page, resourceId });
|
|
2250
|
+
async listWorkflowRuns(args = {}) {
|
|
2251
|
+
return this.stores.workflows.listWorkflowRuns(args);
|
|
2254
2252
|
}
|
|
2255
2253
|
async getWorkflowRunById({
|
|
2256
2254
|
runId,
|