@remit/drizzle-service 0.0.33 → 0.0.35

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-service",
3
- "version": "0.0.33",
3
+ "version": "0.0.35",
4
4
  "description": "Drizzle ORM service parameterized by dialect (Postgres / SQLite)",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -91,6 +91,9 @@ function toMessageItem(row: typeof messageTable.$inferSelect): MessageItem {
91
91
  ...(row.filterMove !== null
92
92
  ? { filterMove: row.filterMove as MessageItem["filterMove"] }
93
93
  : {}),
94
+ ...(row.placementDecidedAt !== null
95
+ ? { placementDecidedAt: row.placementDecidedAt }
96
+ : {}),
94
97
  };
95
98
  }
96
99
 
@@ -192,6 +195,7 @@ export class DrizzleMessageRepository implements IMessageRepository {
192
195
  providerSpam: input.providerSpam ?? null,
193
196
  placementVerdict: input.placementVerdict ?? null,
194
197
  filterMove: input.filterMove ?? null,
198
+ placementDecidedAt: input.placementDecidedAt ?? null,
195
199
  createdAt: now,
196
200
  updatedAt: now,
197
201
  };
@@ -381,6 +385,9 @@ export class DrizzleMessageRepository implements IMessageRepository {
381
385
  ...(input.filterMove !== undefined
382
386
  ? { filterMove: input.filterMove }
383
387
  : {}),
388
+ ...(input.placementDecidedAt !== undefined
389
+ ? { placementDecidedAt: input.placementDecidedAt }
390
+ : {}),
384
391
  ...(input.messageIdHeader !== undefined
385
392
  ? { messageIdHeader: input.messageIdHeader }
386
393
  : {}),
@@ -195,6 +195,7 @@ CREATE TABLE IF NOT EXISTS message (
195
195
  moved_by_remit BOOLEAN NOT NULL DEFAULT false,
196
196
  placement_verdict JSONB,
197
197
  filter_move JSONB,
198
+ placement_decided_at BIGINT,
198
199
  created_at BIGINT NOT NULL,
199
200
  updated_at BIGINT NOT NULL
200
201
  );
@@ -1,5 +1,5 @@
1
1
  // Complete SQLite drizzle schema for committed-migration GENERATION only
2
- // (RFC 036 D5) — consumed by deploy/vps/migrate/drizzle.entities.sqlite.config.ts
2
+ // (RFC 036 D5) — consumed by packages/migrate/drizzle.entities.sqlite.config.ts
3
3
  // and the drift guard (npm-scripts/check-vps-migrations.mjs), never at runtime.
4
4
  //
5
5
  // The SQLite twin of schema-full.ts: the sqlite-dialect entity package
@@ -1,5 +1,5 @@
1
1
  // Complete Postgres drizzle schema for committed-migration GENERATION only —
2
- // consumed by deploy/vps/migrate/drizzle.entities.config.ts and the drift guard
2
+ // consumed by packages/migrate/drizzle.entities.config.ts and the drift guard
3
3
  // (npm-scripts/check-vps-migrations.mjs), never by `pushSchema`.
4
4
  //
5
5
  // It pulls the generated entity package in wholesale, so a new TypeSpec entity
@@ -32,9 +32,9 @@ import {
32
32
  const REPO_ROOT = new URL("../../../", import.meta.url);
33
33
 
34
34
  const CONFIGS = [
35
- "deploy/vps/migrate/drizzle.entities.sqlite.config.ts",
36
- "deploy/vps/migrate/drizzle.auth.sqlite.config.ts",
37
- "deploy/vps/migrate/drizzle.meta.sqlite.config.ts",
35
+ "packages/migrate/drizzle.entities.sqlite.config.ts",
36
+ "packages/migrate/drizzle.auth.sqlite.config.ts",
37
+ "packages/migrate/drizzle.meta.sqlite.config.ts",
38
38
  ];
39
39
 
40
40
  type DrizzleConfig = { schema: string; out: string };