@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.
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/zero/index.d.ts +0 -315
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +13 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +54 -2
- package/dist/zero/queries/getAccounts.d.ts +0 -46
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +0 -46
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +0 -53
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.js +1 -5
- package/dist/zero/queries/getThreads.d.ts +0 -46
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +0 -46
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +0 -46
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +0 -78
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +0 -24
- package/package.json +1 -1
- package/dist/types/DraftRecipientType.d.ts +0 -3
- package/dist/types/DraftRecipientType.d.ts.map +0 -1
- package/dist/types/DraftRecipientType.js +0 -1
package/dist/zero/schema.js
CHANGED
|
@@ -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 +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'];
|