@mastra/convex 1.8.1-alpha.0 → 1.9.0-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/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +16 -16
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/schema.cjs +2 -0
- package/dist/schema.cjs.map +1 -1
- package/dist/schema.d.ts +5 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +2 -0
- package/dist/schema.js.map +1 -1
- package/dist/storage/domains/schedules/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2052,6 +2052,8 @@ function scheduleToRecord(schedule) {
|
|
|
2052
2052
|
metadata: schedule.metadata == null ? null : serializeJson(schedule.metadata),
|
|
2053
2053
|
owner_type: schedule.ownerType ?? null,
|
|
2054
2054
|
owner_id: schedule.ownerId ?? null,
|
|
2055
|
+
run_at: schedule.runAt ?? null,
|
|
2056
|
+
end_at: schedule.endAt ?? null,
|
|
2055
2057
|
workflow_id: schedule.target.type === "workflow" ? schedule.target.workflowId : null
|
|
2056
2058
|
};
|
|
2057
2059
|
}
|
|
@@ -2074,6 +2076,8 @@ function recordToSchedule(record) {
|
|
|
2074
2076
|
if (metadata != null) schedule.metadata = metadata;
|
|
2075
2077
|
if (record.owner_type != null) schedule.ownerType = String(record.owner_type);
|
|
2076
2078
|
if (record.owner_id != null) schedule.ownerId = String(record.owner_id);
|
|
2079
|
+
if (record.run_at != null) schedule.runAt = Number(record.run_at);
|
|
2080
|
+
if (record.end_at != null) schedule.endAt = Number(record.end_at);
|
|
2077
2081
|
return schedule;
|
|
2078
2082
|
}
|
|
2079
2083
|
function triggerToRecord(trigger) {
|
|
@@ -2199,6 +2203,8 @@ var SchedulesConvex = class extends SchedulesStorage {
|
|
|
2199
2203
|
if ("metadata" in patch) updates.metadata = patch.metadata == null ? null : serializeJson(patch.metadata);
|
|
2200
2204
|
if ("ownerType" in patch) updates.owner_type = patch.ownerType ?? null;
|
|
2201
2205
|
if ("ownerId" in patch) updates.owner_id = patch.ownerId ?? null;
|
|
2206
|
+
if ("runAt" in patch) updates.run_at = patch.runAt ?? null;
|
|
2207
|
+
if ("endAt" in patch) updates.end_at = patch.endAt ?? null;
|
|
2202
2208
|
if (Object.keys(updates).length === 0) {
|
|
2203
2209
|
const existing = await this.getSchedule(id);
|
|
2204
2210
|
if (!existing) throw new Error(`Schedule ${id} not found`);
|