@remit/drizzle-sqlite-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 CHANGED
@@ -4696,7 +4696,7 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
4696
4696
  tableName: "message";
4697
4697
  dataType: "string";
4698
4698
  columnType: "SQLiteText";
4699
- data: "synced" | "pending" | "failed";
4699
+ data: "synced" | "pending" | "failed" | "abandoned";
4700
4700
  driverParam: string;
4701
4701
  notNull: true;
4702
4702
  hasDefault: true;
@@ -4709,7 +4709,27 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
4709
4709
  generated: undefined;
4710
4710
  }, {}, {
4711
4711
  length: number;
4712
- $type: "synced" | "pending" | "failed";
4712
+ $type: "synced" | "pending" | "failed" | "abandoned";
4713
+ }>;
4714
+ abandonedMutation: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4715
+ name: "abandoned_mutation";
4716
+ tableName: "message";
4717
+ dataType: "string";
4718
+ columnType: "SQLiteText";
4719
+ data: "none" | "move" | "delete" | "copy";
4720
+ driverParam: string;
4721
+ notNull: true;
4722
+ hasDefault: true;
4723
+ isPrimaryKey: false;
4724
+ isAutoincrement: false;
4725
+ hasRuntimeDefault: false;
4726
+ enumValues: [string, ...string[]];
4727
+ baseColumn: never;
4728
+ identity: undefined;
4729
+ generated: undefined;
4730
+ }, {}, {
4731
+ length: number;
4732
+ $type: "none" | "move" | "delete" | "copy";
4713
4733
  }>;
4714
4734
  originalMailboxId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4715
4735
  name: "original_mailbox_id";
@@ -4767,6 +4787,26 @@ export declare const messages: import("drizzle-orm/sqlite-core").SQLiteTableWith
4767
4787
  length: number;
4768
4788
  $type: "personal" | "uncategorized" | "newsletter" | "marketing" | "automated" | "transactional" | "social";
4769
4789
  }>;
4790
+ classificationState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4791
+ name: "classification_state";
4792
+ tableName: "message";
4793
+ dataType: "string";
4794
+ columnType: "SQLiteText";
4795
+ data: "NotExamined" | "Examined";
4796
+ driverParam: string;
4797
+ notNull: true;
4798
+ hasDefault: true;
4799
+ isPrimaryKey: false;
4800
+ isAutoincrement: false;
4801
+ hasRuntimeDefault: false;
4802
+ enumValues: [string, ...string[]];
4803
+ baseColumn: never;
4804
+ identity: undefined;
4805
+ generated: undefined;
4806
+ }, {}, {
4807
+ length: number;
4808
+ $type: "NotExamined" | "Examined";
4809
+ }>;
4770
4810
  authenticity: import("drizzle-orm/sqlite-core").SQLiteColumn<{
4771
4811
  name: "authenticity";
4772
4812
  tableName: "message";
package/dist/schema.js CHANGED
@@ -323,9 +323,11 @@ export const messages = sqliteTable("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: integer("original_uid", { mode: "number" }),
328
329
  category: text("category").$type().notNull().default("uncategorized"),
330
+ classificationState: text("classification_state").$type().notNull().default("NotExamined"),
329
331
  authenticity: text("authenticity", { mode: "json" }),
330
332
  authenticityVerdict: text("authenticity_verdict").$type().notNull().default("NotEvaluated"),
331
333
  authResult: text("auth_result", { mode: "json" }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-sqlite-schema",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -395,10 +395,12 @@ export const messages = sqliteTable(
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: integer("original_uid", { mode: "number" }),
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: text("authenticity", { mode: "json" }),
403
405
  authenticityVerdict: text("authenticity_verdict").$type<"NotEvaluated" | "NotChecked" | "Aligned" | "Authenticated" | "Routine" | "Caution" | "Impersonation">().notNull().default("NotEvaluated"),
404
406
  authResult: text("auth_result", { mode: "json" }),