@mastra/pg 0.17.9-alpha.0 → 0.17.10-alpha.0
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 +23 -0
- package/dist/index.cjs +9 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +9 -10
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts +2 -9
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts +2 -9
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/index.js
CHANGED
|
@@ -4337,7 +4337,8 @@ var WorkflowsPG = class extends WorkflowsStorage {
|
|
|
4337
4337
|
toDate,
|
|
4338
4338
|
limit,
|
|
4339
4339
|
offset,
|
|
4340
|
-
resourceId
|
|
4340
|
+
resourceId,
|
|
4341
|
+
status
|
|
4341
4342
|
} = {}) {
|
|
4342
4343
|
try {
|
|
4343
4344
|
const conditions = [];
|
|
@@ -4348,6 +4349,11 @@ var WorkflowsPG = class extends WorkflowsStorage {
|
|
|
4348
4349
|
values.push(workflowName);
|
|
4349
4350
|
paramIndex++;
|
|
4350
4351
|
}
|
|
4352
|
+
if (status) {
|
|
4353
|
+
conditions.push(`snapshot::jsonb ->> 'status' = $${paramIndex}`);
|
|
4354
|
+
values.push(status);
|
|
4355
|
+
paramIndex++;
|
|
4356
|
+
}
|
|
4351
4357
|
if (resourceId) {
|
|
4352
4358
|
const hasResourceId = await this.operations.hasColumn(TABLE_WORKFLOW_SNAPSHOT, "resourceId");
|
|
4353
4359
|
if (hasResourceId) {
|
|
@@ -4669,15 +4675,8 @@ var PostgresStore = class extends MastraStorage {
|
|
|
4669
4675
|
}) {
|
|
4670
4676
|
return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
|
|
4671
4677
|
}
|
|
4672
|
-
async getWorkflowRuns({
|
|
4673
|
-
|
|
4674
|
-
fromDate,
|
|
4675
|
-
toDate,
|
|
4676
|
-
limit,
|
|
4677
|
-
offset,
|
|
4678
|
-
resourceId
|
|
4679
|
-
} = {}) {
|
|
4680
|
-
return this.stores.workflows.getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId });
|
|
4678
|
+
async getWorkflowRuns(args = {}) {
|
|
4679
|
+
return this.stores.workflows.getWorkflowRuns(args);
|
|
4681
4680
|
}
|
|
4682
4681
|
async getWorkflowRunById({
|
|
4683
4682
|
runId,
|