@mastra/clickhouse 0.15.9 → 0.15.10

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/dist/index.js CHANGED
@@ -2500,7 +2500,8 @@ var WorkflowsStorageClickhouse = class extends WorkflowsStorage {
2500
2500
  toDate,
2501
2501
  limit,
2502
2502
  offset,
2503
- resourceId
2503
+ resourceId,
2504
+ status
2504
2505
  } = {}) {
2505
2506
  try {
2506
2507
  const conditions = [];
@@ -2509,6 +2510,10 @@ var WorkflowsStorageClickhouse = class extends WorkflowsStorage {
2509
2510
  conditions.push(`workflow_name = {var_workflow_name:String}`);
2510
2511
  values.var_workflow_name = workflowName;
2511
2512
  }
2513
+ if (status) {
2514
+ conditions.push(`JSONExtractString(snapshot, 'status') = {var_status:String}`);
2515
+ values.var_status = status;
2516
+ }
2512
2517
  if (resourceId) {
2513
2518
  const hasResourceId = await this.operations.hasColumn(TABLE_WORKFLOW_SNAPSHOT, "resourceId");
2514
2519
  if (hasResourceId) {
@@ -2769,15 +2774,8 @@ var ClickhouseStore = class extends MastraStorage {
2769
2774
  }) {
2770
2775
  return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
2771
2776
  }
2772
- async getWorkflowRuns({
2773
- workflowName,
2774
- fromDate,
2775
- toDate,
2776
- limit,
2777
- offset,
2778
- resourceId
2779
- } = {}) {
2780
- return this.stores.workflows.getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId });
2777
+ async getWorkflowRuns(args = {}) {
2778
+ return this.stores.workflows.getWorkflowRuns(args);
2781
2779
  }
2782
2780
  async getWorkflowRunById({
2783
2781
  runId,