@remit/drizzle-pg-schema 0.0.22 → 0.0.24
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 +41 -22
- package/dist/schema.js +3 -2
- package/package.json +1 -1
- package/schema.ts +4 -3
package/dist/schema.d.ts
CHANGED
|
@@ -1616,8 +1616,8 @@ export declare const mailboxes: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
1616
1616
|
columnType: "PgText";
|
|
1617
1617
|
data: "deleting" | "synced" | "pending" | "failed";
|
|
1618
1618
|
driverParam: string;
|
|
1619
|
-
notNull:
|
|
1620
|
-
hasDefault:
|
|
1619
|
+
notNull: true;
|
|
1620
|
+
hasDefault: true;
|
|
1621
1621
|
isPrimaryKey: false;
|
|
1622
1622
|
isAutoincrement: false;
|
|
1623
1623
|
hasRuntimeDefault: false;
|
|
@@ -1628,43 +1628,43 @@ export declare const mailboxes: import("drizzle-orm/pg-core").PgTableWithColumns
|
|
|
1628
1628
|
}, {}, {
|
|
1629
1629
|
$type: "deleting" | "synced" | "pending" | "failed";
|
|
1630
1630
|
}>;
|
|
1631
|
-
|
|
1632
|
-
name: "
|
|
1631
|
+
pendingPath: import("drizzle-orm/pg-core").PgColumn<{
|
|
1632
|
+
name: "pending_path";
|
|
1633
1633
|
tableName: "mailbox";
|
|
1634
|
-
dataType: "
|
|
1635
|
-
columnType: "
|
|
1636
|
-
data:
|
|
1634
|
+
dataType: "custom";
|
|
1635
|
+
columnType: "PgCustomColumn";
|
|
1636
|
+
data: string;
|
|
1637
1637
|
driverParam: string;
|
|
1638
|
-
notNull:
|
|
1639
|
-
hasDefault:
|
|
1638
|
+
notNull: false;
|
|
1639
|
+
hasDefault: false;
|
|
1640
1640
|
isPrimaryKey: false;
|
|
1641
1641
|
isAutoincrement: false;
|
|
1642
1642
|
hasRuntimeDefault: false;
|
|
1643
|
-
enumValues:
|
|
1643
|
+
enumValues: undefined;
|
|
1644
1644
|
baseColumn: never;
|
|
1645
1645
|
identity: undefined;
|
|
1646
1646
|
generated: undefined;
|
|
1647
1647
|
}, {}, {
|
|
1648
|
-
|
|
1648
|
+
pgColumnBuilderBrand: "PgCustomColumnBuilderBrand";
|
|
1649
1649
|
}>;
|
|
1650
|
-
|
|
1651
|
-
name: "
|
|
1650
|
+
cursorState: import("drizzle-orm/pg-core").PgColumn<{
|
|
1651
|
+
name: "cursor_state";
|
|
1652
1652
|
tableName: "mailbox";
|
|
1653
|
-
dataType: "
|
|
1654
|
-
columnType: "
|
|
1655
|
-
data:
|
|
1653
|
+
dataType: "string";
|
|
1654
|
+
columnType: "PgText";
|
|
1655
|
+
data: "normal" | "cursor_invalid" | "rebuilding";
|
|
1656
1656
|
driverParam: string;
|
|
1657
|
-
notNull:
|
|
1658
|
-
hasDefault:
|
|
1657
|
+
notNull: true;
|
|
1658
|
+
hasDefault: true;
|
|
1659
1659
|
isPrimaryKey: false;
|
|
1660
1660
|
isAutoincrement: false;
|
|
1661
1661
|
hasRuntimeDefault: false;
|
|
1662
|
-
enumValues:
|
|
1662
|
+
enumValues: [string, ...string[]];
|
|
1663
1663
|
baseColumn: never;
|
|
1664
1664
|
identity: undefined;
|
|
1665
1665
|
generated: undefined;
|
|
1666
1666
|
}, {}, {
|
|
1667
|
-
|
|
1667
|
+
$type: "normal" | "cursor_invalid" | "rebuilding";
|
|
1668
1668
|
}>;
|
|
1669
1669
|
specialUse: import("drizzle-orm/pg-core").PgColumn<{
|
|
1670
1670
|
name: "special_use";
|
|
@@ -4524,7 +4524,26 @@ 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
|
+
driverParam: string;
|
|
4529
|
+
notNull: true;
|
|
4530
|
+
hasDefault: true;
|
|
4531
|
+
isPrimaryKey: false;
|
|
4532
|
+
isAutoincrement: false;
|
|
4533
|
+
hasRuntimeDefault: false;
|
|
4534
|
+
enumValues: [string, ...string[]];
|
|
4535
|
+
baseColumn: never;
|
|
4536
|
+
identity: undefined;
|
|
4537
|
+
generated: undefined;
|
|
4538
|
+
}, {}, {
|
|
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";
|
|
4528
4547
|
driverParam: string;
|
|
4529
4548
|
notNull: true;
|
|
4530
4549
|
hasDefault: true;
|
|
@@ -4536,7 +4555,7 @@ export declare const messages: import("drizzle-orm/pg-core").PgTableWithColumns<
|
|
|
4536
4555
|
identity: undefined;
|
|
4537
4556
|
generated: undefined;
|
|
4538
4557
|
}, {}, {
|
|
4539
|
-
$type: "
|
|
4558
|
+
$type: "none" | "move" | "delete" | "copy";
|
|
4540
4559
|
}>;
|
|
4541
4560
|
originalMailboxId: import("drizzle-orm/pg-core").PgColumn<{
|
|
4542
4561
|
name: "original_mailbox_id";
|
package/dist/schema.js
CHANGED
|
@@ -106,9 +106,9 @@ export const mailboxes = pgTable("mailbox", {
|
|
|
106
106
|
lastMessageSyncAt: bigint("last_message_sync_at", { mode: "number" }).notNull(),
|
|
107
107
|
initialSyncCompletedAt: nullableBigint("initial_sync_completed_at"),
|
|
108
108
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
109
|
-
syncStatus: text("sync_status").$type(),
|
|
109
|
+
syncStatus: text("sync_status").$type().notNull().default("synced"),
|
|
110
|
+
pendingPath: nullableText("pending_path"),
|
|
110
111
|
cursorState: text("cursor_state").$type().notNull().default("normal"),
|
|
111
|
-
oldPath: nullableText("old_path"),
|
|
112
112
|
specialUse: jsonb("special_use"),
|
|
113
113
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
114
114
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
@@ -323,6 +323,7 @@ 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"),
|
package/package.json
CHANGED
package/schema.ts
CHANGED
|
@@ -129,9 +129,9 @@ export const mailboxes = pgTable(
|
|
|
129
129
|
lastMessageSyncAt: bigint("last_message_sync_at", { mode: "number" }).notNull(),
|
|
130
130
|
initialSyncCompletedAt: nullableBigint("initial_sync_completed_at"),
|
|
131
131
|
parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
|
|
132
|
-
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">(),
|
|
132
|
+
syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">().notNull().default("synced"),
|
|
133
|
+
pendingPath: nullableText("pending_path"),
|
|
133
134
|
cursorState: text("cursor_state").$type<"normal" | "cursor_invalid" | "rebuilding">().notNull().default("normal"),
|
|
134
|
-
oldPath: nullableText("old_path"),
|
|
135
135
|
specialUse: jsonb("special_use"),
|
|
136
136
|
createdAt: bigint("created_at", { mode: "number" }).notNull(),
|
|
137
137
|
updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
|
|
@@ -395,7 +395,8 @@ 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"),
|