@marcoappio/marco-config 2.0.485 → 2.0.487

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.
@@ -95,6 +95,7 @@ const thread = table('thread')
95
95
  id: string(),
96
96
  labelIdList: string().from('label_id_list'),
97
97
  latestMessageDate: numeric().from('latest_message_date'),
98
+ latestMessageId: string().from('latest_message_id'),
98
99
  messageCount: numeric().from('message_count'),
99
100
  previewText: string().from('preview_text'),
100
101
  seen: boolean(),
@@ -105,8 +106,8 @@ const thread = table('thread')
105
106
  words: string(),
106
107
  })
107
108
  .primaryKey('id');
108
- const threadLabel = table('threadLabel')
109
- .from('thread_label')
109
+ const threadMessageLabelUid = table('threadMessageLabelUid')
110
+ .from('thread_message_label_uid')
110
111
  .columns({
111
112
  accountId: string().from('account_id'),
112
113
  labelId: string().from('label_id'),
@@ -246,7 +247,7 @@ const accountLabelRelationships = relationships(accountLabel, ({ one, many }) =>
246
247
  }),
247
248
  threads: many({
248
249
  destField: ['labelId'],
249
- destSchema: threadLabel,
250
+ destSchema: threadMessageLabelUid,
250
251
  sourceField: ['id'],
251
252
  }, {
252
253
  destField: ['id'],
@@ -286,7 +287,7 @@ const threadRelationships = relationships(thread, ({ one, many }) => ({
286
287
  }),
287
288
  labels: many({
288
289
  destField: ['threadId'],
289
- destSchema: threadLabel,
290
+ destSchema: threadMessageLabelUid,
290
291
  sourceField: ['id'],
291
292
  }, {
292
293
  destField: ['id'],
@@ -309,7 +310,7 @@ const threadRelationships = relationships(thread, ({ one, many }) => ({
309
310
  sourceField: ['userId'],
310
311
  }),
311
312
  }));
312
- const threadLabelRelationships = relationships(threadLabel, ({ one }) => ({
313
+ const threadLabelRelationships = relationships(threadMessageLabelUid, ({ one }) => ({
313
314
  label: one({
314
315
  destField: ['id'],
315
316
  destSchema: accountLabel,
@@ -346,7 +347,7 @@ const threadMessageRelationships = relationships(threadMessage, ({ one, many })
346
347
  }),
347
348
  labels: many({
348
349
  destField: ['threadMessageId'],
349
- destSchema: threadLabel,
350
+ destSchema: threadMessageLabelUid,
350
351
  sourceField: ['id'],
351
352
  }, {
352
353
  destField: ['id'],
@@ -406,7 +407,7 @@ export const schema = createSchema({
406
407
  draft,
407
408
  draftAttachment,
408
409
  thread,
409
- threadLabel,
410
+ threadMessageLabelUid,
410
411
  threadByLabel,
411
412
  threadMessage,
412
413
  threadMessageRecipient,
@@ -422,9 +423,9 @@ export const zeroTables = {
422
423
  draftAttachment,
423
424
  thread,
424
425
  threadByLabel,
425
- threadLabel,
426
426
  threadMessage,
427
427
  threadMessageAttachment,
428
+ threadMessageLabelUid,
428
429
  threadMessageRecipient,
429
430
  user,
430
431
  userPushNotificationToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.485",
3
+ "version": "2.0.487",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",