@remit/drizzle-sqlite-schema 0.0.22 → 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";
package/dist/schema.js CHANGED
@@ -323,6 +323,7 @@ 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"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-sqlite-schema",
3
- "version": "0.0.22",
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,7 +395,8 @@ 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"),