@mastra/spanner 1.6.4-alpha.0 → 1.6.4-alpha.2

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
@@ -11750,6 +11750,7 @@ function rowToDefinition(row) {
11750
11750
  if (parsed.metadata != null) def.metadata = parsed.metadata;
11751
11751
  if (parsed.stateSchema != null) def.stateSchema = parsed.stateSchema;
11752
11752
  if (parsed.requestContextSchema != null) def.requestContextSchema = parsed.requestContextSchema;
11753
+ if (parsed.schedule != null) def.schedule = parsed.schedule;
11753
11754
  if (parsed.authorId != null) def.authorId = parsed.authorId;
11754
11755
  return def;
11755
11756
  }
@@ -11776,6 +11777,11 @@ var WorkflowDefinitionsSpanner = class WorkflowDefinitionsSpanner extends Workfl
11776
11777
  tableName: TABLE_WORKFLOW_DEFINITIONS,
11777
11778
  schema: WORKFLOW_DEFINITIONS_SCHEMA
11778
11779
  });
11780
+ await this.db.alterTable({
11781
+ tableName: TABLE_WORKFLOW_DEFINITIONS,
11782
+ schema: WORKFLOW_DEFINITIONS_SCHEMA,
11783
+ ifNotExists: ["schedule"]
11784
+ });
11779
11785
  await this.createDefaultIndexes();
11780
11786
  await this.createCustomIndexes();
11781
11787
  }
@@ -11812,6 +11818,7 @@ var WorkflowDefinitionsSpanner = class WorkflowDefinitionsSpanner extends Workfl
11812
11818
  stateSchema: input.stateSchema ?? null,
11813
11819
  requestContextSchema: input.requestContextSchema ?? null,
11814
11820
  graph: input.graph,
11821
+ schedule: "schedule" in input ? input.schedule ?? null : null,
11815
11822
  status: "active",
11816
11823
  source: "storage",
11817
11824
  authorId: "authorId" in input ? input.authorId ?? null : null,
@@ -11842,6 +11849,7 @@ var WorkflowDefinitionsSpanner = class WorkflowDefinitionsSpanner extends Workfl
11842
11849
  if ("stateSchema" in input && input.stateSchema !== void 0) data.stateSchema = input.stateSchema;
11843
11850
  if ("requestContextSchema" in input && input.requestContextSchema !== void 0) data.requestContextSchema = input.requestContextSchema;
11844
11851
  if ("graph" in input && input.graph !== void 0) data.graph = input.graph;
11852
+ if ("schedule" in input && input.schedule !== void 0) data.schedule = input.schedule;
11845
11853
  if ("status" in input && input.status !== void 0) data.status = input.status;
11846
11854
  if ("authorId" in input && input.authorId !== void 0) data.authorId = input.authorId;
11847
11855
  await this.db.update({