@remit/drizzle-sqlite-schema 0.0.26 → 0.0.28

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
@@ -890,6 +890,23 @@ export declare const accounts: import("drizzle-orm/sqlite-core").SQLiteTableWith
890
890
  identity: undefined;
891
891
  generated: undefined;
892
892
  }, {}, {}>;
893
+ grantedScopes: import("drizzle-orm/sqlite-core").SQLiteColumn<{
894
+ name: "granted_scopes";
895
+ tableName: "account";
896
+ dataType: "json";
897
+ columnType: "SQLiteTextJson";
898
+ data: unknown;
899
+ driverParam: string;
900
+ notNull: true;
901
+ hasDefault: true;
902
+ isPrimaryKey: false;
903
+ isAutoincrement: false;
904
+ hasRuntimeDefault: false;
905
+ enumValues: undefined;
906
+ baseColumn: never;
907
+ identity: undefined;
908
+ generated: undefined;
909
+ }, {}, {}>;
893
910
  passwordHash: import("drizzle-orm/sqlite-core").SQLiteColumn<{
894
911
  name: "password_hash";
895
912
  tableName: "account";
@@ -1708,6 +1725,25 @@ export declare const mailboxes: import("drizzle-orm/sqlite-core").SQLiteTableWit
1708
1725
  }, {}, {
1709
1726
  sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
1710
1727
  }>;
1728
+ syncFailureReason: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1729
+ name: "sync_failure_reason";
1730
+ tableName: "mailbox";
1731
+ dataType: "string";
1732
+ columnType: "SQLiteText";
1733
+ data: string;
1734
+ driverParam: string;
1735
+ notNull: true;
1736
+ hasDefault: true;
1737
+ isPrimaryKey: false;
1738
+ isAutoincrement: false;
1739
+ hasRuntimeDefault: false;
1740
+ enumValues: [string, ...string[]];
1741
+ baseColumn: never;
1742
+ identity: undefined;
1743
+ generated: undefined;
1744
+ }, {}, {
1745
+ length: number;
1746
+ }>;
1711
1747
  cursorState: import("drizzle-orm/sqlite-core").SQLiteColumn<{
1712
1748
  name: "cursor_state";
1713
1749
  tableName: "mailbox";
package/dist/schema.js CHANGED
@@ -60,6 +60,7 @@ export const accounts = sqliteTable("account", {
60
60
  email: text("email").notNull(),
61
61
  authType: text("auth_type").$type().notNull().default("password"),
62
62
  syncedServices: text("synced_services", { mode: "json" }).notNull(),
63
+ grantedScopes: text("granted_scopes", { mode: "json" }).notNull().default([]),
63
64
  passwordHash: nullableText("password_hash"),
64
65
  oauthRefreshTokenHash: nullableText("oauth_refresh_token_hash"),
65
66
  oauthTokenUpdatedAt: integer("oauth_token_updated_at", { mode: "number" }),
@@ -109,6 +110,7 @@ export const mailboxes = sqliteTable("mailbox", {
109
110
  parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
110
111
  syncStatus: text("sync_status").$type().notNull().default("synced"),
111
112
  pendingPath: nullableText("pending_path"),
113
+ syncFailureReason: text("sync_failure_reason").notNull().default(""),
112
114
  cursorState: text("cursor_state").$type().notNull().default("normal"),
113
115
  specialUse: text("special_use", { mode: "json" }),
114
116
  createdAt: integer("created_at", { mode: "number" }).notNull(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-sqlite-schema",
3
- "version": "0.0.26",
3
+ "version": "0.0.28",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -78,6 +78,7 @@ export const accounts = sqliteTable(
78
78
  email: text("email").notNull(),
79
79
  authType: text("auth_type").$type<"password" | "oauthMicrosoft">().notNull().default("password"),
80
80
  syncedServices: text("synced_services", { mode: "json" }).notNull(),
81
+ grantedScopes: text("granted_scopes", { mode: "json" }).notNull().default([]),
81
82
  passwordHash: nullableText("password_hash"),
82
83
  oauthRefreshTokenHash: nullableText("oauth_refresh_token_hash"),
83
84
  oauthTokenUpdatedAt: integer("oauth_token_updated_at", { mode: "number" }),
@@ -132,6 +133,7 @@ export const mailboxes = sqliteTable(
132
133
  parentMailboxId: text("parent_mailbox_id").notNull().default("None"),
133
134
  syncStatus: text("sync_status").$type<"synced" | "pending" | "failed" | "deleting">().notNull().default("synced"),
134
135
  pendingPath: nullableText("pending_path"),
136
+ syncFailureReason: text("sync_failure_reason").notNull().default(""),
135
137
  cursorState: text("cursor_state").$type<"normal" | "cursor_invalid" | "rebuilding">().notNull().default("normal"),
136
138
  specialUse: text("special_use", { mode: "json" }),
137
139
  createdAt: integer("created_at", { mode: "number" }).notNull(),