@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
package/src/repos/message.ts
CHANGED
|
@@ -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
|
: {}),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Complete SQLite drizzle schema for committed-migration GENERATION only
|
|
2
|
-
// (RFC 036 D5) — consumed by
|
|
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
|
package/src/schema-full.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Complete Postgres drizzle schema for committed-migration GENERATION only —
|
|
2
|
-
// consumed by
|
|
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
|
-
"
|
|
36
|
-
"
|
|
37
|
-
"
|
|
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 };
|