@opengeni/db 0.27.7 → 0.27.8
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/{chunk-EX7CDSGH.js → chunk-M6EOXYHK.js} +6 -1
- package/dist/chunk-M6EOXYHK.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +118 -35
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts +17 -0
- package/dist/schema.js +1 -1
- package/dist/session-control.d.ts +1 -0
- package/drizzle/0170_session_control_wake_revision.sql +133 -0
- package/package.json +1 -1
- package/src/index.ts +160 -37
- package/src/schema.ts +5 -0
- package/src/session-control.ts +11 -4
- package/src/session-queue-commands.ts +3 -0
- package/dist/chunk-EX7CDSGH.js.map +0 -1
|
@@ -4085,6 +4085,7 @@ var sessionWorkflowWakeOutbox = pgTable5(
|
|
|
4085
4085
|
temporalWorkflowId: text5("temporal_workflow_id").notNull(),
|
|
4086
4086
|
wakeRevision: bigint4("wake_revision", { mode: "number" }).notNull().default(1),
|
|
4087
4087
|
deliveredRevision: bigint4("delivered_revision", { mode: "number" }).notNull().default(0),
|
|
4088
|
+
controlRevision: bigint4("control_revision", { mode: "number" }).notNull().default(0),
|
|
4088
4089
|
reason: text5("reason").notNull(),
|
|
4089
4090
|
attempts: integer5("attempts").notNull().default(0),
|
|
4090
4091
|
nextAttemptAt: timestamp5("next_attempt_at", { withTimezone: true }).notNull().defaultNow(),
|
|
@@ -4101,6 +4102,10 @@ var sessionWorkflowWakeOutbox = pgTable5(
|
|
|
4101
4102
|
"session_workflow_wake_outbox_revision_safe_check",
|
|
4102
4103
|
sql5`${table.wakeRevision} <= 9007199254740991 and ${table.deliveredRevision} <= 9007199254740991`
|
|
4103
4104
|
),
|
|
4105
|
+
controlRevisionValid: check4(
|
|
4106
|
+
"session_workflow_wake_outbox_control_revision_check",
|
|
4107
|
+
sql5`${table.controlRevision} >= 0 and ${table.controlRevision} <= ${table.wakeRevision} and ${table.controlRevision} <= 9007199254740991`
|
|
4108
|
+
),
|
|
4104
4109
|
workspaceAccount: foreignKey({
|
|
4105
4110
|
name: "session_workflow_wake_outbox_workspace_account_fk",
|
|
4106
4111
|
columns: [table.workspaceId, table.accountId],
|
|
@@ -6536,4 +6541,4 @@ export {
|
|
|
6536
6541
|
rigChanges,
|
|
6537
6542
|
schema_exports
|
|
6538
6543
|
};
|
|
6539
|
-
//# sourceMappingURL=chunk-
|
|
6544
|
+
//# sourceMappingURL=chunk-M6EOXYHK.js.map
|