@remit/drizzle-pg-schema 0.0.21 → 0.0.23
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/schema.d.ts +40 -2
- package/dist/schema.js +2 -0
- package/package.json +1 -1
- package/schema.ts +3 -1
package/dist/schema.d.ts
CHANGED
|
@@ -4524,7 +4524,7 @@ export declare const messages: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
4524
4524
|
tableName: "message";
|
|
4525
4525
|
dataType: "string";
|
|
4526
4526
|
columnType: "PgText";
|
|
4527
|
-
data: "synced" | "pending" | "failed";
|
|
4527
|
+
data: "synced" | "pending" | "failed" | "abandoned";
|
|
4528
4528
|
driverParam: string;
|
|
4529
4529
|
notNull: true;
|
|
4530
4530
|
hasDefault: true;
|
|
@@ -4536,7 +4536,26 @@ export declare const messages: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
4536
4536
|
identity: undefined;
|
|
4537
4537
|
generated: undefined;
|
|
4538
4538
|
}, {}, {
|
|
4539
|
-
$type: "synced" | "pending" | "failed";
|
|
4539
|
+
$type: "synced" | "pending" | "failed" | "abandoned";
|
|
4540
|
+
}>;
|
|
4541
|
+
abandonedMutation: import("drizzle-orm/pg-core").PgColumn<{
|
|
4542
|
+
name: "abandoned_mutation";
|
|
4543
|
+
tableName: "message";
|
|
4544
|
+
dataType: "string";
|
|
4545
|
+
columnType: "PgText";
|
|
4546
|
+
data: "none" | "move" | "delete" | "copy";
|
|
4547
|
+
driverParam: string;
|
|
4548
|
+
notNull: true;
|
|
4549
|
+
hasDefault: true;
|
|
4550
|
+
isPrimaryKey: false;
|
|
4551
|
+
isAutoincrement: false;
|
|
4552
|
+
hasRuntimeDefault: false;
|
|
4553
|
+
enumValues: [string, ...string[]];
|
|
4554
|
+
baseColumn: never;
|
|
4555
|
+
identity: undefined;
|
|
4556
|
+
generated: undefined;
|
|
4557
|
+
}, {}, {
|
|
4558
|
+
$type: "none" | "move" | "delete" | "copy";
|
|
4540
4559
|
}>;
|
|
4541
4560
|
originalMailboxId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4542
4561
|
name: "original_mailbox_id";
|
|
@@ -4595,6 +4614,25 @@ export declare const messages: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
4595
4614
|
}, {}, {
|
|
4596
4615
|
$type: "personal" | "uncategorized" | "newsletter" | "marketing" | "automated" | "transactional" | "social";
|
|
4597
4616
|
}>;
|
|
4617
|
+
classificationState: import("drizzle-orm/pg-core").PgColumn<{
|
|
4618
|
+
name: "classification_state";
|
|
4619
|
+
tableName: "message";
|
|
4620
|
+
dataType: "string";
|
|
4621
|
+
columnType: "PgText";
|
|
4622
|
+
data: "NotExamined" | "Examined";
|
|
4623
|
+
driverParam: string;
|
|
4624
|
+
notNull: true;
|
|
4625
|
+
hasDefault: true;
|
|
4626
|
+
isPrimaryKey: false;
|
|
4627
|
+
isAutoincrement: false;
|
|
4628
|
+
hasRuntimeDefault: false;
|
|
4629
|
+
enumValues: [string, ...string[]];
|
|
4630
|
+
baseColumn: never;
|
|
4631
|
+
identity: undefined;
|
|
4632
|
+
generated: undefined;
|
|
4633
|
+
}, {}, {
|
|
4634
|
+
$type: "NotExamined" | "Examined";
|
|
4635
|
+
}>;
|
|
4598
4636
|
authenticity: import("drizzle-orm/pg-core").PgColumn<{
|
|
4599
4637
|
name: "authenticity";
|
|
4600
4638
|
tableName: "message";
|
package/dist/schema.js
CHANGED
|
@@ -323,9 +323,11 @@ export const messages = pgTable("message", {
|
|
|
323
323
|
bodyStorageKey: nullableText("body_storage_key"),
|
|
324
324
|
status: text("status").$type().notNull().default("active"),
|
|
325
325
|
syncStatus: text("sync_status").$type().notNull().default("synced"),
|
|
326
|
+
abandonedMutation: text("abandoned_mutation").$type().notNull().default("none"),
|
|
326
327
|
originalMailboxId: nullableText("original_mailbox_id"),
|
|
327
328
|
originalUid: nullableBigint("original_uid"),
|
|
328
329
|
category: text("category").$type().notNull().default("uncategorized"),
|
|
330
|
+
classificationState: text("classification_state").$type().notNull().default("NotExamined"),
|
|
329
331
|
authenticity: jsonb("authenticity"),
|
|
330
332
|
authenticityVerdict: text("authenticity_verdict").$type().notNull().default("NotEvaluated"),
|
|
331
333
|
authResult: jsonb("auth_result"),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -395,10 +395,12 @@ export const messages = pgTable(
|
|
|
395
395
|
rootBodyPartId: text("root_body_part_id").notNull(),
|
|
396
396
|
bodyStorageKey: nullableText("body_storage_key"),
|
|
397
397
|
status: text("status").$type<"active" | "deleting" | "deleted" | "moving">().notNull().default("active"),
|
|
398
|
-
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed">().notNull().default("synced"),
|
|
398
|
+
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "abandoned">().notNull().default("synced"),
|
|
399
|
+
abandonedMutation: text("abandoned_mutation").$type<"none" | "move" | "delete" | "copy">().notNull().default("none"),
|
|
399
400
|
originalMailboxId: nullableText("original_mailbox_id"),
|
|
400
401
|
originalUid: nullableBigint("original_uid"),
|
|
401
402
|
category: text("category").$type<"uncategorized" | "personal" | "newsletter" | "marketing" | "automated" | "transactional" | "social">().notNull().default("uncategorized"),
|
|
403
|
+
classificationState: text("classification_state").$type<"NotExamined" | "Examined">().notNull().default("NotExamined"),
|
|
402
404
|
authenticity: jsonb("authenticity"),
|
|
403
405
|
authenticityVerdict: text("authenticity_verdict").$type<"NotEvaluated" | "NotChecked" | "Aligned" | "Authenticated" | "Routine" | "Caution" | "Impersonation">().notNull().default("NotEvaluated"),
|
|
404
406
|
authResult: jsonb("auth_result"),
|