@marcoappio/marco-config 2.0.460 → 2.0.462

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.
@@ -75,15 +75,6 @@ const draft = table('draft')
75
75
  userId: string().from('user_id'),
76
76
  })
77
77
  .primaryKey('id');
78
- const draftRecipient = table('draftRecipient')
79
- .from('draft_recipient')
80
- .columns({
81
- draftId: string().from('draft_id'),
82
- emailAddress: string().from('email_address'),
83
- id: string(),
84
- type: enumeration(),
85
- })
86
- .primaryKey('id');
87
78
  const draftAttachment = table('draftAttachment')
88
79
  .from('draft_attachment')
89
80
  .columns({
@@ -258,11 +249,6 @@ const draftRelationships = relationships(draft, ({ one, many }) => ({
258
249
  destSchema: draftAttachment,
259
250
  sourceField: ['id'],
260
251
  }),
261
- recipients: many({
262
- destField: ['draftId'],
263
- destSchema: draftRecipient,
264
- sourceField: ['id'],
265
- }),
266
252
  user: one({
267
253
  destField: ['id'],
268
254
  destSchema: user,
@@ -276,13 +262,6 @@ const draftAttachmentRelationships = relationships(draftAttachment, ({ one }) =>
276
262
  sourceField: ['draftId'],
277
263
  }),
278
264
  }));
279
- const draftRecipientRelationships = relationships(draftRecipient, ({ one }) => ({
280
- draft: one({
281
- destField: ['id'],
282
- destSchema: draft,
283
- sourceField: ['draftId'],
284
- }),
285
- }));
286
265
  const threadRelationships = relationships(thread, ({ one, many }) => ({
287
266
  account: one({
288
267
  destField: ['id'],
@@ -377,7 +356,6 @@ export const schema = createSchema({
377
356
  accountLabelRelationships,
378
357
  draftRelationships,
379
358
  draftAttachmentRelationships,
380
- draftRecipientRelationships,
381
359
  threadRelationships,
382
360
  threadLabelRelationships,
383
361
  threadMessageRelationships,
@@ -392,7 +370,6 @@ export const schema = createSchema({
392
370
  accountAlias,
393
371
  accountLabel,
394
372
  draft,
395
- draftRecipient,
396
373
  draftAttachment,
397
374
  thread,
398
375
  threadLabel,
@@ -408,7 +385,6 @@ export const zeroTables = {
408
385
  contact,
409
386
  draft,
410
387
  draftAttachment,
411
- draftRecipient,
412
388
  thread,
413
389
  threadLabel,
414
390
  threadMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.460",
3
+ "version": "2.0.462",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1,3 +0,0 @@
1
- export declare const DRAFT_RECIPIENT_TYPES: readonly ["bcc", "cc", "to"];
2
- export type DraftRecipientType = (typeof DRAFT_RECIPIENT_TYPES)[number];
3
- //# sourceMappingURL=DraftRecipientType.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DraftRecipientType.d.ts","sourceRoot":"","sources":["../../src/types/DraftRecipientType.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,8BAA+B,CAAA;AAEjE,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- export const DRAFT_RECIPIENT_TYPES = ['bcc', 'cc', 'to'];