@marcoappio/marco-config 2.0.449 → 2.0.451

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.
Files changed (37) hide show
  1. package/dist/types/{ImapConnectionStatus.d.ts → IMAPConnectionStatus.d.ts} +2 -2
  2. package/dist/types/IMAPConnectionStatus.d.ts.map +1 -0
  3. package/dist/types/IMAPSourceLocation.d.ts +7 -0
  4. package/dist/types/IMAPSourceLocation.d.ts.map +1 -0
  5. package/dist/types/IMAPSourceLocation.js +1 -0
  6. package/dist/types/index.d.ts +2 -1
  7. package/dist/types/index.d.ts.map +1 -1
  8. package/dist/types/index.js +2 -1
  9. package/dist/zero/index.d.ts +190 -114
  10. package/dist/zero/index.d.ts.map +1 -1
  11. package/dist/zero/mutatorSchemas/index.d.ts +36 -0
  12. package/dist/zero/mutatorSchemas/index.d.ts.map +1 -1
  13. package/dist/zero/mutatorSchemas/thread.d.ts +36 -0
  14. package/dist/zero/mutatorSchemas/thread.d.ts.map +1 -1
  15. package/dist/zero/mutatorSchemas/thread.js +18 -7
  16. package/dist/zero/mutators/threadMutators/threadMutators.d.ts +2 -2
  17. package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
  18. package/dist/zero/mutators/threadMutators/threadMutators.js +43 -10
  19. package/dist/zero/mutators/threadMutators/threadMutators.test.js +6 -0
  20. package/dist/zero/queries/getAccounts.d.ts +23 -17
  21. package/dist/zero/queries/getAccounts.d.ts.map +1 -1
  22. package/dist/zero/queries/getContacts.d.ts +23 -17
  23. package/dist/zero/queries/getContacts.d.ts.map +1 -1
  24. package/dist/zero/queries/getDrafts.d.ts +23 -17
  25. package/dist/zero/queries/getDrafts.d.ts.map +1 -1
  26. package/dist/zero/queries/getThreads.d.ts +23 -19
  27. package/dist/zero/queries/getThreads.d.ts.map +1 -1
  28. package/dist/zero/queries/getUser.d.ts +23 -17
  29. package/dist/zero/queries/getUser.d.ts.map +1 -1
  30. package/dist/zero/queries/index.d.ts +23 -17
  31. package/dist/zero/queries/index.d.ts.map +1 -1
  32. package/dist/zero/schema.d.ts +39 -27
  33. package/dist/zero/schema.d.ts.map +1 -1
  34. package/dist/zero/schema.js +2 -2
  35. package/package.json +1 -1
  36. package/dist/types/ImapConnectionStatus.d.ts.map +0 -1
  37. /package/dist/types/{ImapConnectionStatus.js → IMAPConnectionStatus.js} +0 -0
@@ -524,6 +524,22 @@ export declare const schema: {
524
524
  } & {
525
525
  serverName: string;
526
526
  };
527
+ readonly uid: Omit<{
528
+ type: "number";
529
+ optional: false;
530
+ customType: number;
531
+ }, "optional"> & {
532
+ optional: true;
533
+ };
534
+ readonly uidValidity: Omit<{
535
+ type: "number";
536
+ optional: false;
537
+ customType: number;
538
+ }, "optional"> & {
539
+ optional: true;
540
+ } & {
541
+ serverName: string;
542
+ };
527
543
  };
528
544
  primaryKey: readonly [string, ...string[]];
529
545
  } & {
@@ -555,11 +571,6 @@ export declare const schema: {
555
571
  } & {
556
572
  serverName: string;
557
573
  };
558
- readonly flagged: {
559
- type: "boolean";
560
- optional: false;
561
- customType: boolean;
562
- };
563
574
  readonly id: {
564
575
  type: "string";
565
576
  optional: false;
@@ -572,11 +583,6 @@ export declare const schema: {
572
583
  } & {
573
584
  serverName: string;
574
585
  };
575
- readonly seen: {
576
- type: "boolean";
577
- optional: false;
578
- customType: boolean;
579
- };
580
586
  readonly senderEmail: {
581
587
  type: "string";
582
588
  optional: false;
@@ -793,7 +799,7 @@ export declare const schema: {
793
799
  }];
794
800
  threads: [{
795
801
  readonly sourceField: string[];
796
- readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
802
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId" | "uidValidity" | "uid")[];
797
803
  readonly destSchema: "threadLabel";
798
804
  readonly cardinality: "many";
799
805
  }, {
@@ -854,7 +860,7 @@ export declare const schema: {
854
860
  }];
855
861
  labels: [{
856
862
  readonly sourceField: string[];
857
- readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
863
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId" | "uidValidity" | "uid")[];
858
864
  readonly destSchema: "threadLabel";
859
865
  readonly cardinality: "many";
860
866
  }, {
@@ -865,7 +871,7 @@ export declare const schema: {
865
871
  }];
866
872
  messages: [{
867
873
  readonly sourceField: string[];
868
- readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
874
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
869
875
  readonly destSchema: "threadMessage";
870
876
  readonly cardinality: "many";
871
877
  }];
@@ -885,7 +891,7 @@ export declare const schema: {
885
891
  }];
886
892
  message: [{
887
893
  readonly sourceField: string[];
888
- readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
894
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
889
895
  readonly destSchema: "threadMessage";
890
896
  readonly cardinality: "one";
891
897
  }];
@@ -905,7 +911,7 @@ export declare const schema: {
905
911
  }];
906
912
  labels: [{
907
913
  readonly sourceField: string[];
908
- readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
914
+ readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId" | "uidValidity" | "uid")[];
909
915
  readonly destSchema: "threadLabel";
910
916
  readonly cardinality: "many";
911
917
  }, {
@@ -930,7 +936,7 @@ export declare const schema: {
930
936
  readonly threadMessageRecipient: {
931
937
  message: [{
932
938
  readonly sourceField: string[];
933
- readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
939
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
934
940
  readonly destSchema: "threadMessage";
935
941
  readonly cardinality: "one";
936
942
  }];
@@ -938,7 +944,7 @@ export declare const schema: {
938
944
  readonly threadMessageAttachment: {
939
945
  message: [{
940
946
  readonly sourceField: string[];
941
- readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
947
+ readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
942
948
  readonly destSchema: "threadMessage";
943
949
  readonly cardinality: "one";
944
950
  }];
@@ -1405,6 +1411,22 @@ export declare const zeroTables: {
1405
1411
  } & {
1406
1412
  serverName: string;
1407
1413
  };
1414
+ readonly uid: Omit<{
1415
+ type: "number";
1416
+ optional: false;
1417
+ customType: number;
1418
+ }, "optional"> & {
1419
+ optional: true;
1420
+ };
1421
+ readonly uidValidity: Omit<{
1422
+ type: "number";
1423
+ optional: false;
1424
+ customType: number;
1425
+ }, "optional"> & {
1426
+ optional: true;
1427
+ } & {
1428
+ serverName: string;
1429
+ };
1408
1430
  };
1409
1431
  primaryKey: readonly [string, ...string[]];
1410
1432
  } & {
@@ -1436,11 +1458,6 @@ export declare const zeroTables: {
1436
1458
  } & {
1437
1459
  serverName: string;
1438
1460
  };
1439
- readonly flagged: {
1440
- type: "boolean";
1441
- optional: false;
1442
- customType: boolean;
1443
- };
1444
1461
  readonly id: {
1445
1462
  type: "string";
1446
1463
  optional: false;
@@ -1453,11 +1470,6 @@ export declare const zeroTables: {
1453
1470
  } & {
1454
1471
  serverName: string;
1455
1472
  };
1456
- readonly seen: {
1457
- type: "boolean";
1458
- optional: false;
1459
- customType: boolean;
1460
- };
1461
1473
  readonly senderEmail: {
1462
1474
  type: "string";
1463
1475
  optional: false;
@@ -1 +1 @@
1
- {"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AA8aA,eAAO,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA7XR,MAAM;wBACX,MAAM,EAAE;wBACR,MAAM,EAAE;yBACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyYT,CAAA"}
@@ -113,6 +113,8 @@ const threadLabel = table('threadLabel')
113
113
  labelId: string().from('label_id'),
114
114
  threadId: string().from('thread_id'),
115
115
  threadMessageId: string().from('thread_message_id'),
116
+ uid: numeric().optional(),
117
+ uidValidity: numeric().optional().from('uid_validity'),
116
118
  })
117
119
  .primaryKey('accountId', 'labelId', 'threadMessageId');
118
120
  const threadMessage = table('threadMessage')
@@ -121,10 +123,8 @@ const threadMessage = table('threadMessage')
121
123
  accountId: string().from('account_id'),
122
124
  envelopeDate: numeric().from('envelope_date'),
123
125
  envelopeSubject: string().optional().from('envelope_subject'),
124
- flagged: boolean(),
125
126
  id: string(),
126
127
  previewText: string().from('preview_text'),
127
- seen: boolean(),
128
128
  senderEmail: string().from('sender_email'),
129
129
  senderName: string().optional().from('sender_name'),
130
130
  threadId: string().from('thread_id'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.449",
3
+ "version": "2.0.451",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImapConnectionStatus.d.ts","sourceRoot":"","sources":["../../src/types/ImapConnectionStatus.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,6OAQ3B,CAAA;AAEV,MAAM,MAAM,oBAAoB,GAAG,CAAC,OAAO,wBAAwB,CAAC,CAAC,MAAM,CAAC,CAAA"}