@remit/drizzle-pg-schema 0.0.3 → 0.0.4

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
@@ -385,7 +385,7 @@ export declare const quarantines: import("drizzle-orm/pg-core").PgTableWithColum
385
385
  tableName: "quarantine";
386
386
  dataType: "string";
387
387
  columnType: "PgText";
388
- data: "UnterminatedMultipartBoundary" | "UnknownCharset" | "TruncatedBody";
388
+ data: "UnknownCharset" | "UnreadableBody";
389
389
  driverParam: string;
390
390
  notNull: true;
391
391
  hasDefault: false;
@@ -397,7 +397,7 @@ export declare const quarantines: import("drizzle-orm/pg-core").PgTableWithColum
397
397
  identity: undefined;
398
398
  generated: undefined;
399
399
  }, {}, {
400
- $type: "UnterminatedMultipartBoundary" | "UnknownCharset" | "TruncatedBody";
400
+ $type: "UnknownCharset" | "UnreadableBody";
401
401
  }>;
402
402
  failureMessage: import("drizzle-orm/pg-core").PgColumn<{
403
403
  name: "failure_message";
@@ -536,7 +536,7 @@ export declare const quarantines: import("drizzle-orm/pg-core").PgTableWithColum
536
536
  data: unknown;
537
537
  driverParam: unknown;
538
538
  notNull: true;
539
- hasDefault: false;
539
+ hasDefault: true;
540
540
  isPrimaryKey: false;
541
541
  isAutoincrement: false;
542
542
  hasRuntimeDefault: false;
@@ -1912,7 +1912,7 @@ export declare const filters: import("drizzle-orm/pg-core").PgTableWithColumns<{
1912
1912
  data: unknown;
1913
1913
  driverParam: unknown;
1914
1914
  notNull: true;
1915
- hasDefault: false;
1915
+ hasDefault: true;
1916
1916
  isPrimaryKey: false;
1917
1917
  isAutoincrement: false;
1918
1918
  hasRuntimeDefault: false;
@@ -2110,7 +2110,7 @@ export declare const organizeJobRequests: import("drizzle-orm/pg-core").PgTableW
2110
2110
  data: unknown;
2111
2111
  driverParam: unknown;
2112
2112
  notNull: true;
2113
- hasDefault: false;
2113
+ hasDefault: true;
2114
2114
  isPrimaryKey: false;
2115
2115
  isAutoincrement: false;
2116
2116
  hasRuntimeDefault: false;
@@ -2822,7 +2822,7 @@ export declare const outboxMessages: import("drizzle-orm/pg-core").PgTableWithCo
2822
2822
  data: unknown;
2823
2823
  driverParam: unknown;
2824
2824
  notNull: true;
2825
- hasDefault: false;
2825
+ hasDefault: true;
2826
2826
  isPrimaryKey: false;
2827
2827
  isAutoincrement: false;
2828
2828
  hasRuntimeDefault: false;
@@ -2839,7 +2839,7 @@ export declare const outboxMessages: import("drizzle-orm/pg-core").PgTableWithCo
2839
2839
  data: unknown;
2840
2840
  driverParam: unknown;
2841
2841
  notNull: true;
2842
- hasDefault: false;
2842
+ hasDefault: true;
2843
2843
  isPrimaryKey: false;
2844
2844
  isAutoincrement: false;
2845
2845
  hasRuntimeDefault: false;
@@ -2930,7 +2930,7 @@ export declare const outboxMessages: import("drizzle-orm/pg-core").PgTableWithCo
2930
2930
  data: unknown;
2931
2931
  driverParam: unknown;
2932
2932
  notNull: true;
2933
- hasDefault: false;
2933
+ hasDefault: true;
2934
2934
  isPrimaryKey: false;
2935
2935
  isAutoincrement: false;
2936
2936
  hasRuntimeDefault: false;
package/dist/schema.js CHANGED
@@ -34,7 +34,7 @@ export const quarantines = pgTable("quarantine", {
34
34
  transferEncoding: nullableText("transfer_encoding"),
35
35
  charset: nullableText("charset"),
36
36
  sizeBytes: nullableBigint("size_bytes"),
37
- structure: jsonb("structure").notNull(),
37
+ structure: jsonb("structure").notNull().default([]),
38
38
  messageIdHash: nullableText("message_id_hash"),
39
39
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
40
40
  updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
@@ -126,7 +126,7 @@ export const filters = pgTable("filter", {
126
126
  hasAnchor: boolean("has_anchor").notNull().default(false),
127
127
  ruleChangedAt: bigint("rule_changed_at", { mode: "number" }).notNull(),
128
128
  matchOperator: text("match_operator").$type().notNull().default("And"),
129
- literalClauses: jsonb("literal_clauses").notNull(),
129
+ literalClauses: jsonb("literal_clauses").notNull().default([]),
130
130
  actionLabelId: text("action_label_id").notNull().default("None"),
131
131
  actionMailboxId: text("action_mailbox_id").notNull().default("None"),
132
132
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
@@ -142,7 +142,7 @@ export const organizeJobRequests = pgTable("organize_job_request", {
142
142
  state: text("state").$type().notNull().default("Pending"),
143
143
  anchorMessageId: text("anchor_message_id").notNull().default("None"),
144
144
  matchOperator: text("match_operator").$type().notNull().default("And"),
145
- literalClauses: jsonb("literal_clauses").notNull(),
145
+ literalClauses: jsonb("literal_clauses").notNull().default([]),
146
146
  similarityThreshold: doublePrecision("similarity_threshold").notNull(),
147
147
  actionLabelId: text("action_label_id").notNull().default("None"),
148
148
  actionMailboxId: text("action_mailbox_id").notNull().default("None"),
@@ -198,13 +198,13 @@ export const outboxMessages = pgTable("outbox_message", {
198
198
  fromAddress: text("from_address").notNull(),
199
199
  fromName: nullableText("from_name"),
200
200
  toAddresses: jsonb("to_addresses").notNull(),
201
- ccAddresses: jsonb("cc_addresses").notNull(),
202
- bccAddresses: jsonb("bcc_addresses").notNull(),
201
+ ccAddresses: jsonb("cc_addresses").notNull().default([]),
202
+ bccAddresses: jsonb("bcc_addresses").notNull().default([]),
203
203
  replyToAddress: nullableText("reply_to_address"),
204
204
  subject: nullableText("subject"),
205
205
  messageIdValue: text("message_id_value").notNull(),
206
206
  inReplyTo: nullableText("in_reply_to"),
207
- references: jsonb("references").notNull(),
207
+ references: jsonb("references").notNull().default([]),
208
208
  textBody: nullableText("text_body"),
209
209
  htmlBody: nullableText("html_body"),
210
210
  status: text("status").$type().notNull(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/drizzle-pg-schema",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/schema.ts CHANGED
@@ -34,7 +34,7 @@ export const quarantines = pgTable(
34
34
  quarantinedAt: bigint("quarantined_at", { mode: "number" }).notNull(),
35
35
  attempts: integer("attempts").notNull(),
36
36
  failureStage: text("failure_stage").$type<"BodyParse">().notNull(),
37
- failureCode: text("failure_code").$type<"UnterminatedMultipartBoundary" | "UnknownCharset" | "TruncatedBody">().notNull(),
37
+ failureCode: text("failure_code").$type<"UnknownCharset" | "UnreadableBody">().notNull(),
38
38
  failureMessage: text("failure_message").notNull(),
39
39
  failurePartPath: nullableText("failure_part_path"),
40
40
  workerVersion: text("worker_version").notNull(),
@@ -42,7 +42,7 @@ export const quarantines = pgTable(
42
42
  transferEncoding: nullableText("transfer_encoding"),
43
43
  charset: nullableText("charset"),
44
44
  sizeBytes: nullableBigint("size_bytes"),
45
- structure: jsonb("structure").notNull(),
45
+ structure: jsonb("structure").notNull().default([]),
46
46
  messageIdHash: nullableText("message_id_hash"),
47
47
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
48
48
  updatedAt: bigint("updated_at", { mode: "number" }).notNull(),
@@ -154,7 +154,7 @@ export const filters = pgTable(
154
154
  hasAnchor: boolean("has_anchor").notNull().default(false),
155
155
  ruleChangedAt: bigint("rule_changed_at", { mode: "number" }).notNull(),
156
156
  matchOperator: text("match_operator").$type<"And" | "Or">().notNull().default("And"),
157
- literalClauses: jsonb("literal_clauses").notNull(),
157
+ literalClauses: jsonb("literal_clauses").notNull().default([]),
158
158
  actionLabelId: text("action_label_id").notNull().default("None"),
159
159
  actionMailboxId: text("action_mailbox_id").notNull().default("None"),
160
160
  createdAt: bigint("created_at", { mode: "number" }).notNull(),
@@ -175,7 +175,7 @@ export const organizeJobRequests = pgTable(
175
175
  state: text("state").$type<"Pending" | "Running" | "Complete" | "Failed">().notNull().default("Pending"),
176
176
  anchorMessageId: text("anchor_message_id").notNull().default("None"),
177
177
  matchOperator: text("match_operator").$type<"And" | "Or">().notNull().default("And"),
178
- literalClauses: jsonb("literal_clauses").notNull(),
178
+ literalClauses: jsonb("literal_clauses").notNull().default([]),
179
179
  similarityThreshold: doublePrecision("similarity_threshold").notNull(),
180
180
  actionLabelId: text("action_label_id").notNull().default("None"),
181
181
  actionMailboxId: text("action_mailbox_id").notNull().default("None"),
@@ -241,13 +241,13 @@ export const outboxMessages = pgTable(
241
241
  fromAddress: text("from_address").notNull(),
242
242
  fromName: nullableText("from_name"),
243
243
  toAddresses: jsonb("to_addresses").notNull(),
244
- ccAddresses: jsonb("cc_addresses").notNull(),
245
- bccAddresses: jsonb("bcc_addresses").notNull(),
244
+ ccAddresses: jsonb("cc_addresses").notNull().default([]),
245
+ bccAddresses: jsonb("bcc_addresses").notNull().default([]),
246
246
  replyToAddress: nullableText("reply_to_address"),
247
247
  subject: nullableText("subject"),
248
248
  messageIdValue: text("message_id_value").notNull(),
249
249
  inReplyTo: nullableText("in_reply_to"),
250
- references: jsonb("references").notNull(),
250
+ references: jsonb("references").notNull().default([]),
251
251
  textBody: nullableText("text_body"),
252
252
  htmlBody: nullableText("html_body"),
253
253
  status: text("status").$type<"draft" | "queued" | "sending" | "sent" | "failed" | "blocked">().notNull(),