@mastra/mysql 0.8.4 → 0.8.5-alpha.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/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/storage/domains/agents/index.d.ts.map +1 -1
- package/dist/storage/domains/background-tasks/index.d.ts.map +1 -1
- package/dist/storage/domains/blobs/index.d.ts.map +1 -1
- package/dist/storage/domains/channels/index.d.ts.map +1 -1
- package/dist/storage/domains/datasets/index.d.ts.map +1 -1
- package/dist/storage/domains/experiments/index.d.ts.map +1 -1
- package/dist/storage/domains/favorites/index.d.ts.map +1 -1
- package/dist/storage/domains/knowledge/index.d.ts.map +1 -1
- package/dist/storage/domains/mcp-clients/index.d.ts.map +1 -1
- package/dist/storage/domains/mcp-servers/index.d.ts.map +1 -1
- package/dist/storage/domains/memory/index.d.ts.map +1 -1
- package/dist/storage/domains/observability/index.d.ts.map +1 -1
- package/dist/storage/domains/operations/index.d.ts.map +1 -1
- package/dist/storage/domains/prompt-blocks/index.d.ts.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/dist/storage/domains/scorer-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/scores/index.d.ts.map +1 -1
- package/dist/storage/domains/skills/index.d.ts.map +1 -1
- package/dist/storage/domains/tool-provider-connections/index.d.ts.map +1 -1
- package/dist/storage/domains/workflow-definitions/index.d.ts.map +1 -1
- package/dist/storage/domains/workflows/index.d.ts.map +1 -1
- package/dist/storage/domains/workspaces/index.d.ts.map +1 -1
- package/dist/storage/index.d.ts.map +1 -1
- package/package.json +5 -6
- package/CHANGELOG.md +0 -1268
package/dist/index.js
CHANGED
|
@@ -10378,6 +10378,7 @@ function rowToDefinition(row) {
|
|
|
10378
10378
|
if (transformed.metadata != null) def.metadata = transformed.metadata;
|
|
10379
10379
|
if (transformed.stateSchema != null) def.stateSchema = transformed.stateSchema;
|
|
10380
10380
|
if (transformed.requestContextSchema != null) def.requestContextSchema = transformed.requestContextSchema;
|
|
10381
|
+
if (transformed.schedule != null) def.schedule = transformed.schedule;
|
|
10381
10382
|
if (transformed.authorId != null) def.authorId = String(transformed.authorId);
|
|
10382
10383
|
return def;
|
|
10383
10384
|
}
|
|
@@ -10403,6 +10404,11 @@ var WorkflowDefinitionsMySQL = class extends WorkflowDefinitionsStorage {
|
|
|
10403
10404
|
tableName: TABLE_WORKFLOW_DEFINITIONS,
|
|
10404
10405
|
schema: WORKFLOW_DEFINITIONS_SCHEMA
|
|
10405
10406
|
});
|
|
10407
|
+
await this.operations.alterTable({
|
|
10408
|
+
tableName: TABLE_WORKFLOW_DEFINITIONS,
|
|
10409
|
+
schema: WORKFLOW_DEFINITIONS_SCHEMA,
|
|
10410
|
+
ifNotExists: ["schedule"]
|
|
10411
|
+
});
|
|
10406
10412
|
}
|
|
10407
10413
|
async dangerouslyClearAll() {
|
|
10408
10414
|
await this.operations.clearTable({ tableName: TABLE_WORKFLOW_DEFINITIONS });
|
|
@@ -10422,6 +10428,7 @@ var WorkflowDefinitionsMySQL = class extends WorkflowDefinitionsStorage {
|
|
|
10422
10428
|
stateSchema: input.stateSchema ?? null,
|
|
10423
10429
|
requestContextSchema: input.requestContextSchema ?? null,
|
|
10424
10430
|
graph: input.graph,
|
|
10431
|
+
schedule: "schedule" in input ? input.schedule ?? null : null,
|
|
10425
10432
|
status: "active",
|
|
10426
10433
|
source: "storage",
|
|
10427
10434
|
authorId: "authorId" in input ? input.authorId ?? null : null,
|
|
@@ -10452,6 +10459,7 @@ var WorkflowDefinitionsMySQL = class extends WorkflowDefinitionsStorage {
|
|
|
10452
10459
|
if ("stateSchema" in input && input.stateSchema !== void 0) data.stateSchema = input.stateSchema;
|
|
10453
10460
|
if ("requestContextSchema" in input && input.requestContextSchema !== void 0) data.requestContextSchema = input.requestContextSchema;
|
|
10454
10461
|
if ("graph" in input && input.graph !== void 0) data.graph = input.graph;
|
|
10462
|
+
if ("schedule" in input && input.schedule !== void 0) data.schedule = input.schedule;
|
|
10455
10463
|
if ("status" in input && input.status !== void 0) data.status = input.status;
|
|
10456
10464
|
if ("authorId" in input && input.authorId !== void 0) data.authorId = input.authorId;
|
|
10457
10465
|
await this.operations.update({
|