@remit/drizzle-sqlite-schema 0.0.31 → 0.0.33

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
@@ -2356,6 +2356,25 @@ export declare const organizeJobRequests: import("drizzle-orm/sqlite-core").SQLi
2356
2356
  length: number;
2357
2357
  $type: "Pending" | "Failed" | "Running" | "Complete";
2358
2358
  }>;
2359
+ filterId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2360
+ name: "filter_id";
2361
+ tableName: "organize_job_request";
2362
+ dataType: "string";
2363
+ columnType: "SQLiteText";
2364
+ data: string;
2365
+ driverParam: string;
2366
+ notNull: true;
2367
+ hasDefault: true;
2368
+ isPrimaryKey: false;
2369
+ isAutoincrement: false;
2370
+ hasRuntimeDefault: false;
2371
+ enumValues: [string, ...string[]];
2372
+ baseColumn: never;
2373
+ identity: undefined;
2374
+ generated: undefined;
2375
+ }, {}, {
2376
+ length: number;
2377
+ }>;
2359
2378
  anchorMessageId: import("drizzle-orm/sqlite-core").SQLiteColumn<{
2360
2379
  name: "anchor_message_id";
2361
2380
  tableName: "organize_job_request";
package/dist/schema.js CHANGED
@@ -158,6 +158,7 @@ export const organizeJobRequests = sqliteTable("organize_job_request", {
158
158
  accountConfigId: text("account_config_id").notNull(),
159
159
  userId: text("user_id").notNull(),
160
160
  state: text("state").$type().notNull().default("Pending"),
161
+ filterId: text("filter_id").notNull().default("None"),
161
162
  anchorMessageId: text("anchor_message_id").notNull().default("None"),
162
163
  matchOperator: text("match_operator").$type().notNull().default("And"),
163
164
  literalClauses: text("literal_clauses", { mode: "json" }).notNull().default([]),
@@ -415,6 +416,7 @@ export const calendarSuggestions = sqliteTable("calendar_suggestion", {
415
416
  primaryKey({ name: "calendar_suggestion_pk", columns: [table.accountConfigId, table.suggestionId] }),
416
417
  index("calendar_suggestion_by_state").on(table.accountConfigId, table.state, table.createdAt, table.suggestionId),
417
418
  index("calendar_suggestion_by_message").on(table.accountConfigId, table.messageId, table.suggestionId),
419
+ index("calendar_suggestion_by_accepted_calendar_object").on(table.accountConfigId, table.acceptedCalendarObjectId),
418
420
  ]);
419
421
  export const envelopeAddresses = sqliteTable("envelope_address", {
420
422
  envelopeAddressId: text("envelope_address_id").primaryKey().$defaultFn(() => generateBase36Id()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-sqlite-schema",
3
- "version": "0.0.31",
3
+ "version": "0.0.33",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -196,6 +196,7 @@ export const organizeJobRequests = sqliteTable(
196
196
  accountConfigId: text("account_config_id").notNull(),
197
197
  userId: text("user_id").notNull(),
198
198
  state: text("state").$type<"Pending" | "Running" | "Complete" | "Failed">().notNull().default("Pending"),
199
+ filterId: text("filter_id").notNull().default("None"),
199
200
  anchorMessageId: text("anchor_message_id").notNull().default("None"),
200
201
  matchOperator: text("match_operator").$type<"And" | "Or">().notNull().default("And"),
201
202
  literalClauses: text("literal_clauses", { mode: "json" }).notNull().default([]),
@@ -504,6 +505,7 @@ export const calendarSuggestions = sqliteTable(
504
505
  primaryKey({ name: "calendar_suggestion_pk", columns: [table.accountConfigId, table.suggestionId] }),
505
506
  index("calendar_suggestion_by_state").on(table.accountConfigId, table.state, table.createdAt, table.suggestionId),
506
507
  index("calendar_suggestion_by_message").on(table.accountConfigId, table.messageId, table.suggestionId),
508
+ index("calendar_suggestion_by_accepted_calendar_object").on(table.accountConfigId, table.acceptedCalendarObjectId),
507
509
  ],
508
510
  );
509
511