@mastra/mssql 0.5.3 → 0.5.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/CHANGELOG.md +20 -0
- package/dist/index.cjs +10 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +10 -11
- 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
|
@@ -2973,13 +2973,14 @@ var WorkflowsMSSQL = class extends WorkflowsStorage {
|
|
|
2973
2973
|
snapshot = {
|
|
2974
2974
|
context: {},
|
|
2975
2975
|
activePaths: [],
|
|
2976
|
+
activeStepsPath: {},
|
|
2976
2977
|
timestamp: Date.now(),
|
|
2977
2978
|
suspendedPaths: {},
|
|
2978
2979
|
resumeLabels: {},
|
|
2979
2980
|
serializedStepGraph: [],
|
|
2981
|
+
status: "pending",
|
|
2980
2982
|
value: {},
|
|
2981
2983
|
waitingPaths: {},
|
|
2982
|
-
status: "pending",
|
|
2983
2984
|
runId,
|
|
2984
2985
|
runtimeContext: {}
|
|
2985
2986
|
};
|
|
@@ -3209,7 +3210,8 @@ var WorkflowsMSSQL = class extends WorkflowsStorage {
|
|
|
3209
3210
|
toDate,
|
|
3210
3211
|
limit,
|
|
3211
3212
|
offset,
|
|
3212
|
-
resourceId
|
|
3213
|
+
resourceId,
|
|
3214
|
+
status
|
|
3213
3215
|
} = {}) {
|
|
3214
3216
|
try {
|
|
3215
3217
|
const conditions = [];
|
|
@@ -3218,6 +3220,10 @@ var WorkflowsMSSQL = class extends WorkflowsStorage {
|
|
|
3218
3220
|
conditions.push(`[workflow_name] = @workflowName`);
|
|
3219
3221
|
paramMap["workflowName"] = workflowName;
|
|
3220
3222
|
}
|
|
3223
|
+
if (status) {
|
|
3224
|
+
conditions.push(`JSON_VALUE([snapshot], '$.status') = @status`);
|
|
3225
|
+
paramMap["status"] = status;
|
|
3226
|
+
}
|
|
3221
3227
|
if (resourceId) {
|
|
3222
3228
|
const hasResourceId = await this.operations.hasColumn(TABLE_WORKFLOW_SNAPSHOT, "resourceId");
|
|
3223
3229
|
if (hasResourceId) {
|
|
@@ -3521,15 +3527,8 @@ var MSSQLStore = class extends MastraStorage {
|
|
|
3521
3527
|
}) {
|
|
3522
3528
|
return this.stores.workflows.loadWorkflowSnapshot({ workflowName, runId });
|
|
3523
3529
|
}
|
|
3524
|
-
async getWorkflowRuns({
|
|
3525
|
-
|
|
3526
|
-
fromDate,
|
|
3527
|
-
toDate,
|
|
3528
|
-
limit,
|
|
3529
|
-
offset,
|
|
3530
|
-
resourceId
|
|
3531
|
-
} = {}) {
|
|
3532
|
-
return this.stores.workflows.getWorkflowRuns({ workflowName, fromDate, toDate, limit, offset, resourceId });
|
|
3530
|
+
async getWorkflowRuns(args = {}) {
|
|
3531
|
+
return this.stores.workflows.getWorkflowRuns(args);
|
|
3533
3532
|
}
|
|
3534
3533
|
async getWorkflowRunById({
|
|
3535
3534
|
runId,
|