@marcoappio/marco-config 2.0.447 → 2.0.449

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.
@@ -496,6 +496,13 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
496
496
  readonly threadLabel: {
497
497
  name: "threadLabel";
498
498
  columns: {
499
+ readonly accountId: {
500
+ type: "string";
501
+ optional: false;
502
+ customType: string;
503
+ } & {
504
+ serverName: string;
505
+ };
499
506
  readonly labelId: {
500
507
  type: "string";
501
508
  optional: false;
@@ -510,14 +517,28 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
510
517
  } & {
511
518
  serverName: string;
512
519
  };
520
+ readonly threadMessageId: {
521
+ type: "string";
522
+ optional: false;
523
+ customType: string;
524
+ } & {
525
+ serverName: string;
526
+ };
513
527
  };
514
528
  primaryKey: readonly [string, ...string[]];
515
529
  } & {
516
- primaryKey: ["threadId", "labelId"];
530
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
517
531
  };
518
532
  readonly threadMessage: {
519
533
  name: "threadMessage";
520
534
  columns: {
535
+ readonly accountId: {
536
+ type: "string";
537
+ optional: false;
538
+ customType: string;
539
+ } & {
540
+ serverName: string;
541
+ };
521
542
  readonly envelopeDate: {
522
543
  type: "number";
523
544
  optional: false;
@@ -534,6 +555,11 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
534
555
  } & {
535
556
  serverName: string;
536
557
  };
558
+ readonly flagged: {
559
+ type: "boolean";
560
+ optional: false;
561
+ customType: boolean;
562
+ };
537
563
  readonly id: {
538
564
  type: "string";
539
565
  optional: false;
@@ -546,6 +572,11 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
546
572
  } & {
547
573
  serverName: string;
548
574
  };
575
+ readonly seen: {
576
+ type: "boolean";
577
+ optional: false;
578
+ customType: boolean;
579
+ };
549
580
  readonly senderEmail: {
550
581
  type: "string";
551
582
  optional: false;
@@ -762,7 +793,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
762
793
  }];
763
794
  threads: [{
764
795
  readonly sourceField: string[];
765
- readonly destField: ("labelId" | "threadId")[];
796
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
766
797
  readonly destSchema: "threadLabel";
767
798
  readonly cardinality: "many";
768
799
  }, {
@@ -823,7 +854,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
823
854
  }];
824
855
  labels: [{
825
856
  readonly sourceField: string[];
826
- readonly destField: ("labelId" | "threadId")[];
857
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
827
858
  readonly destSchema: "threadLabel";
828
859
  readonly cardinality: "many";
829
860
  }, {
@@ -834,7 +865,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
834
865
  }];
835
866
  messages: [{
836
867
  readonly sourceField: string[];
837
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
868
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
838
869
  readonly destSchema: "threadMessage";
839
870
  readonly cardinality: "many";
840
871
  }];
@@ -852,6 +883,12 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
852
883
  readonly destSchema: "accountLabel";
853
884
  readonly cardinality: "one";
854
885
  }];
886
+ message: [{
887
+ readonly sourceField: string[];
888
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
889
+ readonly destSchema: "threadMessage";
890
+ readonly cardinality: "one";
891
+ }];
855
892
  thread: [{
856
893
  readonly sourceField: string[];
857
894
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -866,6 +903,17 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
866
903
  readonly destSchema: "threadMessageAttachment";
867
904
  readonly cardinality: "many";
868
905
  }];
906
+ labels: [{
907
+ readonly sourceField: string[];
908
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
909
+ readonly destSchema: "threadLabel";
910
+ readonly cardinality: "many";
911
+ }, {
912
+ readonly sourceField: string[];
913
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
914
+ readonly destSchema: "accountLabel";
915
+ readonly cardinality: "many";
916
+ }];
869
917
  recipients: [{
870
918
  readonly sourceField: string[];
871
919
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -882,7 +930,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
882
930
  readonly threadMessageRecipient: {
883
931
  message: [{
884
932
  readonly sourceField: string[];
885
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
933
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
886
934
  readonly destSchema: "threadMessage";
887
935
  readonly cardinality: "one";
888
936
  }];
@@ -890,7 +938,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
890
938
  readonly threadMessageAttachment: {
891
939
  message: [{
892
940
  readonly sourceField: string[];
893
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
941
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
894
942
  readonly destSchema: "threadMessage";
895
943
  readonly cardinality: "one";
896
944
  }];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;EAAwB,CAAA;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
@@ -496,6 +496,13 @@ export declare const schema: {
496
496
  readonly threadLabel: {
497
497
  name: "threadLabel";
498
498
  columns: {
499
+ readonly accountId: {
500
+ type: "string";
501
+ optional: false;
502
+ customType: string;
503
+ } & {
504
+ serverName: string;
505
+ };
499
506
  readonly labelId: {
500
507
  type: "string";
501
508
  optional: false;
@@ -510,14 +517,28 @@ export declare const schema: {
510
517
  } & {
511
518
  serverName: string;
512
519
  };
520
+ readonly threadMessageId: {
521
+ type: "string";
522
+ optional: false;
523
+ customType: string;
524
+ } & {
525
+ serverName: string;
526
+ };
513
527
  };
514
528
  primaryKey: readonly [string, ...string[]];
515
529
  } & {
516
- primaryKey: ["threadId", "labelId"];
530
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
517
531
  };
518
532
  readonly threadMessage: {
519
533
  name: "threadMessage";
520
534
  columns: {
535
+ readonly accountId: {
536
+ type: "string";
537
+ optional: false;
538
+ customType: string;
539
+ } & {
540
+ serverName: string;
541
+ };
521
542
  readonly envelopeDate: {
522
543
  type: "number";
523
544
  optional: false;
@@ -534,6 +555,11 @@ export declare const schema: {
534
555
  } & {
535
556
  serverName: string;
536
557
  };
558
+ readonly flagged: {
559
+ type: "boolean";
560
+ optional: false;
561
+ customType: boolean;
562
+ };
537
563
  readonly id: {
538
564
  type: "string";
539
565
  optional: false;
@@ -546,6 +572,11 @@ export declare const schema: {
546
572
  } & {
547
573
  serverName: string;
548
574
  };
575
+ readonly seen: {
576
+ type: "boolean";
577
+ optional: false;
578
+ customType: boolean;
579
+ };
549
580
  readonly senderEmail: {
550
581
  type: "string";
551
582
  optional: false;
@@ -762,7 +793,7 @@ export declare const schema: {
762
793
  }];
763
794
  threads: [{
764
795
  readonly sourceField: string[];
765
- readonly destField: ("labelId" | "threadId")[];
796
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
766
797
  readonly destSchema: "threadLabel";
767
798
  readonly cardinality: "many";
768
799
  }, {
@@ -823,7 +854,7 @@ export declare const schema: {
823
854
  }];
824
855
  labels: [{
825
856
  readonly sourceField: string[];
826
- readonly destField: ("labelId" | "threadId")[];
857
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
827
858
  readonly destSchema: "threadLabel";
828
859
  readonly cardinality: "many";
829
860
  }, {
@@ -834,7 +865,7 @@ export declare const schema: {
834
865
  }];
835
866
  messages: [{
836
867
  readonly sourceField: string[];
837
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
868
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
838
869
  readonly destSchema: "threadMessage";
839
870
  readonly cardinality: "many";
840
871
  }];
@@ -852,6 +883,12 @@ export declare const schema: {
852
883
  readonly destSchema: "accountLabel";
853
884
  readonly cardinality: "one";
854
885
  }];
886
+ message: [{
887
+ readonly sourceField: string[];
888
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
889
+ readonly destSchema: "threadMessage";
890
+ readonly cardinality: "one";
891
+ }];
855
892
  thread: [{
856
893
  readonly sourceField: string[];
857
894
  readonly destField: ("id" | "userId" | "accountId" | "flagged" | "latestMessageDate" | "seen" | "words")[];
@@ -866,6 +903,17 @@ export declare const schema: {
866
903
  readonly destSchema: "threadMessageAttachment";
867
904
  readonly cardinality: "many";
868
905
  }];
906
+ labels: [{
907
+ readonly sourceField: string[];
908
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
909
+ readonly destSchema: "threadLabel";
910
+ readonly cardinality: "many";
911
+ }, {
912
+ readonly sourceField: string[];
913
+ readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
914
+ readonly destSchema: "accountLabel";
915
+ readonly cardinality: "many";
916
+ }];
869
917
  recipients: [{
870
918
  readonly sourceField: string[];
871
919
  readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
@@ -882,7 +930,7 @@ export declare const schema: {
882
930
  readonly threadMessageRecipient: {
883
931
  message: [{
884
932
  readonly sourceField: string[];
885
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
933
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
886
934
  readonly destSchema: "threadMessage";
887
935
  readonly cardinality: "one";
888
936
  }];
@@ -890,7 +938,7 @@ export declare const schema: {
890
938
  readonly threadMessageAttachment: {
891
939
  message: [{
892
940
  readonly sourceField: string[];
893
- readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
941
+ readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
894
942
  readonly destSchema: "threadMessage";
895
943
  readonly cardinality: "one";
896
944
  }];
@@ -1329,6 +1377,13 @@ export declare const zeroTables: {
1329
1377
  readonly threadLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
1330
1378
  name: "threadLabel";
1331
1379
  columns: {
1380
+ readonly accountId: {
1381
+ type: "string";
1382
+ optional: false;
1383
+ customType: string;
1384
+ } & {
1385
+ serverName: string;
1386
+ };
1332
1387
  readonly labelId: {
1333
1388
  type: "string";
1334
1389
  optional: false;
@@ -1343,14 +1398,28 @@ export declare const zeroTables: {
1343
1398
  } & {
1344
1399
  serverName: string;
1345
1400
  };
1401
+ readonly threadMessageId: {
1402
+ type: "string";
1403
+ optional: false;
1404
+ customType: string;
1405
+ } & {
1406
+ serverName: string;
1407
+ };
1346
1408
  };
1347
1409
  primaryKey: readonly [string, ...string[]];
1348
1410
  } & {
1349
- primaryKey: ["threadId", "labelId"];
1411
+ primaryKey: ["accountId", "labelId", "threadMessageId"];
1350
1412
  }>;
1351
1413
  readonly threadMessage: import("@rocicorp/zero").TableBuilderWithColumns<{
1352
1414
  name: "threadMessage";
1353
1415
  columns: {
1416
+ readonly accountId: {
1417
+ type: "string";
1418
+ optional: false;
1419
+ customType: string;
1420
+ } & {
1421
+ serverName: string;
1422
+ };
1354
1423
  readonly envelopeDate: {
1355
1424
  type: "number";
1356
1425
  optional: false;
@@ -1367,6 +1436,11 @@ export declare const zeroTables: {
1367
1436
  } & {
1368
1437
  serverName: string;
1369
1438
  };
1439
+ readonly flagged: {
1440
+ type: "boolean";
1441
+ optional: false;
1442
+ customType: boolean;
1443
+ };
1370
1444
  readonly id: {
1371
1445
  type: "string";
1372
1446
  optional: false;
@@ -1379,6 +1453,11 @@ export declare const zeroTables: {
1379
1453
  } & {
1380
1454
  serverName: string;
1381
1455
  };
1456
+ readonly seen: {
1457
+ type: "boolean";
1458
+ optional: false;
1459
+ customType: boolean;
1460
+ };
1382
1461
  readonly senderEmail: {
1383
1462
  type: "string";
1384
1463
  optional: false;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AAwZA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyYT,CAAA"}
@@ -109,17 +109,22 @@ const thread = table('thread')
109
109
  const threadLabel = table('threadLabel')
110
110
  .from('thread_label')
111
111
  .columns({
112
+ accountId: string().from('account_id'),
112
113
  labelId: string().from('label_id'),
113
114
  threadId: string().from('thread_id'),
115
+ threadMessageId: string().from('thread_message_id'),
114
116
  })
115
- .primaryKey('threadId', 'labelId');
117
+ .primaryKey('accountId', 'labelId', 'threadMessageId');
116
118
  const threadMessage = table('threadMessage')
117
119
  .from('thread_message')
118
120
  .columns({
121
+ accountId: string().from('account_id'),
119
122
  envelopeDate: numeric().from('envelope_date'),
120
123
  envelopeSubject: string().optional().from('envelope_subject'),
124
+ flagged: boolean(),
121
125
  id: string(),
122
126
  previewText: string().from('preview_text'),
127
+ seen: boolean(),
123
128
  senderEmail: string().from('sender_email'),
124
129
  senderName: string().optional().from('sender_name'),
125
130
  threadId: string().from('thread_id'),
@@ -310,6 +315,11 @@ const threadLabelRelationships = relationships(threadLabel, ({ one }) => ({
310
315
  destSchema: accountLabel,
311
316
  sourceField: ['labelId'],
312
317
  }),
318
+ message: one({
319
+ destField: ['id'],
320
+ destSchema: threadMessage,
321
+ sourceField: ['threadMessageId'],
322
+ }),
313
323
  thread: one({
314
324
  destField: ['id'],
315
325
  destSchema: thread,
@@ -322,6 +332,15 @@ const threadMessageRelationships = relationships(threadMessage, ({ one, many })
322
332
  destSchema: threadMessageAttachment,
323
333
  sourceField: ['id'],
324
334
  }),
335
+ labels: many({
336
+ destField: ['threadMessageId'],
337
+ destSchema: threadLabel,
338
+ sourceField: ['id'],
339
+ }, {
340
+ destField: ['id'],
341
+ destSchema: accountLabel,
342
+ sourceField: ['labelId'],
343
+ }),
325
344
  recipients: many({
326
345
  destField: ['threadMessageId'],
327
346
  destSchema: threadMessageRecipient,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.447",
3
+ "version": "2.0.449",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",