@marcoappio/marco-config 2.0.448 → 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.
- package/dist/zero/index.d.ts +220 -49
- 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 +4 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +10 -0
- package/dist/zero/queries/getAccounts.d.ts +32 -8
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +32 -8
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +32 -8
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +35 -8
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +32 -8
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +32 -8
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +57 -9
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +5 -1
- package/package.json +1 -1
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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C,CAAA;AAE3E,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,OAAc,GAAG,YAAY,MAAM,oBAAoB,eAAe,KAAG,OAAO,CAAC,IAAI,
|
|
1
|
+
{"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,SAAS,CAAA;AAEjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAC1D,OAAO,EAAE,KAAK,QAAQ,EAAE,KAAK,UAAU,EAAiB,MAAM,qBAAqB,CAAA;AACnF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAE3E,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,OAAc,GAAG,YAAY,MAAM,oBAAoB,eAAe,KAAG,OAAO,CAAC,IAAI,CA8C/G,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAqJxC,CAAA"}
|
|
@@ -21,6 +21,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
|
21
21
|
}
|
|
22
22
|
else {
|
|
23
23
|
await tx.mutate.threadLabel.delete({
|
|
24
|
+
accountId,
|
|
24
25
|
labelId: label.labelId,
|
|
25
26
|
threadMessageId: label.threadMessageId,
|
|
26
27
|
});
|
|
@@ -30,6 +31,7 @@ export const setSystemLabel = async (tx, threadId, targetSpecialUse) => {
|
|
|
30
31
|
const messages = await tx.query.threadMessage.where('threadId', threadId).run();
|
|
31
32
|
for (const message of messages) {
|
|
32
33
|
await tx.mutate.threadLabel.insert({
|
|
34
|
+
accountId,
|
|
33
35
|
labelId: targetLabel.id,
|
|
34
36
|
threadId,
|
|
35
37
|
threadMessageId: message.id,
|
|
@@ -61,6 +63,7 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
61
63
|
.run();
|
|
62
64
|
if (!existing) {
|
|
63
65
|
await tx.mutate.threadLabel.insert({
|
|
66
|
+
accountId: thread.accountId,
|
|
64
67
|
labelId: label.id,
|
|
65
68
|
threadId,
|
|
66
69
|
threadMessageId: message.id,
|
|
@@ -98,6 +101,7 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
98
101
|
}
|
|
99
102
|
for (const existing of existingLabels) {
|
|
100
103
|
await tx.mutate.threadLabel.delete({
|
|
104
|
+
accountId: thread.accountId,
|
|
101
105
|
labelId: label.id,
|
|
102
106
|
threadMessageId: existing.threadMessageId,
|
|
103
107
|
});
|
|
@@ -56,11 +56,13 @@ describe('threadMutators', () => {
|
|
|
56
56
|
});
|
|
57
57
|
expect(threadLabelInsert).toHaveBeenCalledTimes(2);
|
|
58
58
|
expect(threadLabelInsert).toHaveBeenCalledWith({
|
|
59
|
+
accountId: 'test-account-id-1',
|
|
59
60
|
labelId: 'test-label-id-1',
|
|
60
61
|
threadId: 'test-thread-id-1',
|
|
61
62
|
threadMessageId: 'test-message-id-1',
|
|
62
63
|
});
|
|
63
64
|
expect(threadLabelInsert).toHaveBeenCalledWith({
|
|
65
|
+
accountId: 'test-account-id-1',
|
|
64
66
|
labelId: 'test-label-id-1',
|
|
65
67
|
threadId: 'test-thread-id-1',
|
|
66
68
|
threadMessageId: 'test-message-id-2',
|
|
@@ -150,10 +152,12 @@ describe('threadMutators', () => {
|
|
|
150
152
|
});
|
|
151
153
|
expect(threadLabelDelete).toHaveBeenCalledTimes(2);
|
|
152
154
|
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
155
|
+
accountId: 'test-account-id-1',
|
|
153
156
|
labelId: 'test-label-id-1',
|
|
154
157
|
threadMessageId: 'test-message-id-1',
|
|
155
158
|
});
|
|
156
159
|
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
160
|
+
accountId: 'test-account-id-1',
|
|
157
161
|
labelId: 'test-label-id-1',
|
|
158
162
|
threadMessageId: 'test-message-id-2',
|
|
159
163
|
});
|
|
@@ -246,10 +250,12 @@ describe('threadMutators', () => {
|
|
|
246
250
|
threadIds: ['test-thread-id-1'],
|
|
247
251
|
});
|
|
248
252
|
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
253
|
+
accountId: 'test-account-id-1',
|
|
249
254
|
labelId: 'test-inbox-label-id',
|
|
250
255
|
threadMessageId: 'test-message-id-1',
|
|
251
256
|
});
|
|
252
257
|
expect(threadLabelInsert).toHaveBeenCalledWith({
|
|
258
|
+
accountId: 'test-account-id-1',
|
|
253
259
|
labelId: 'test-archive-label-id',
|
|
254
260
|
threadId: 'test-thread-id-1',
|
|
255
261
|
threadMessageId: 'test-message-id-1',
|
|
@@ -332,10 +338,12 @@ describe('threadMutators', () => {
|
|
|
332
338
|
threadIds: ['test-thread-id-1'],
|
|
333
339
|
});
|
|
334
340
|
expect(threadLabelDelete).toHaveBeenCalledWith({
|
|
341
|
+
accountId: 'test-account-id-1',
|
|
335
342
|
labelId: 'test-archive-label-id',
|
|
336
343
|
threadMessageId: 'test-message-id-1',
|
|
337
344
|
});
|
|
338
345
|
expect(threadLabelInsert).toHaveBeenCalledWith({
|
|
346
|
+
accountId: 'test-account-id-1',
|
|
339
347
|
labelId: 'test-inbox-label-id',
|
|
340
348
|
threadId: 'test-thread-id-1',
|
|
341
349
|
threadMessageId: 'test-message-id-1',
|
|
@@ -419,6 +427,7 @@ describe('threadMutators', () => {
|
|
|
419
427
|
threadIds: ['test-thread-id-1'],
|
|
420
428
|
});
|
|
421
429
|
expect(threadLabelInsert).toHaveBeenCalledWith({
|
|
430
|
+
accountId: 'test-account-id-1',
|
|
422
431
|
labelId: 'test-spam-label-id',
|
|
423
432
|
threadId: 'test-thread-id-1',
|
|
424
433
|
threadMessageId: 'test-message-id-1',
|
|
@@ -475,6 +484,7 @@ describe('threadMutators', () => {
|
|
|
475
484
|
threadIds: ['test-thread-id-1'],
|
|
476
485
|
});
|
|
477
486
|
expect(threadLabelInsert).toHaveBeenCalledWith({
|
|
487
|
+
accountId: 'test-account-id-1',
|
|
478
488
|
labelId: 'test-trash-label-id',
|
|
479
489
|
threadId: 'test-thread-id-1',
|
|
480
490
|
threadMessageId: 'test-message-id-1',
|
|
@@ -497,6 +497,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
497
497
|
readonly threadLabel: {
|
|
498
498
|
name: "threadLabel";
|
|
499
499
|
columns: {
|
|
500
|
+
readonly accountId: {
|
|
501
|
+
type: "string";
|
|
502
|
+
optional: false;
|
|
503
|
+
customType: string;
|
|
504
|
+
} & {
|
|
505
|
+
serverName: string;
|
|
506
|
+
};
|
|
500
507
|
readonly labelId: {
|
|
501
508
|
type: "string";
|
|
502
509
|
optional: false;
|
|
@@ -521,11 +528,18 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
521
528
|
};
|
|
522
529
|
primaryKey: readonly [string, ...string[]];
|
|
523
530
|
} & {
|
|
524
|
-
primaryKey: ["
|
|
531
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
525
532
|
};
|
|
526
533
|
readonly threadMessage: {
|
|
527
534
|
name: "threadMessage";
|
|
528
535
|
columns: {
|
|
536
|
+
readonly accountId: {
|
|
537
|
+
type: "string";
|
|
538
|
+
optional: false;
|
|
539
|
+
customType: string;
|
|
540
|
+
} & {
|
|
541
|
+
serverName: string;
|
|
542
|
+
};
|
|
529
543
|
readonly envelopeDate: {
|
|
530
544
|
type: "number";
|
|
531
545
|
optional: false;
|
|
@@ -542,6 +556,11 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
542
556
|
} & {
|
|
543
557
|
serverName: string;
|
|
544
558
|
};
|
|
559
|
+
readonly flagged: {
|
|
560
|
+
type: "boolean";
|
|
561
|
+
optional: false;
|
|
562
|
+
customType: boolean;
|
|
563
|
+
};
|
|
545
564
|
readonly id: {
|
|
546
565
|
type: "string";
|
|
547
566
|
optional: false;
|
|
@@ -554,6 +573,11 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
554
573
|
} & {
|
|
555
574
|
serverName: string;
|
|
556
575
|
};
|
|
576
|
+
readonly seen: {
|
|
577
|
+
type: "boolean";
|
|
578
|
+
optional: false;
|
|
579
|
+
customType: boolean;
|
|
580
|
+
};
|
|
557
581
|
readonly senderEmail: {
|
|
558
582
|
type: "string";
|
|
559
583
|
optional: false;
|
|
@@ -770,7 +794,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
770
794
|
}];
|
|
771
795
|
threads: [{
|
|
772
796
|
readonly sourceField: string[];
|
|
773
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
797
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
774
798
|
readonly destSchema: "threadLabel";
|
|
775
799
|
readonly cardinality: "many";
|
|
776
800
|
}, {
|
|
@@ -831,7 +855,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
831
855
|
}];
|
|
832
856
|
labels: [{
|
|
833
857
|
readonly sourceField: string[];
|
|
834
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
858
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
835
859
|
readonly destSchema: "threadLabel";
|
|
836
860
|
readonly cardinality: "many";
|
|
837
861
|
}, {
|
|
@@ -842,7 +866,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
842
866
|
}];
|
|
843
867
|
messages: [{
|
|
844
868
|
readonly sourceField: string[];
|
|
845
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
869
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
846
870
|
readonly destSchema: "threadMessage";
|
|
847
871
|
readonly cardinality: "many";
|
|
848
872
|
}];
|
|
@@ -862,7 +886,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
862
886
|
}];
|
|
863
887
|
message: [{
|
|
864
888
|
readonly sourceField: string[];
|
|
865
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
889
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
866
890
|
readonly destSchema: "threadMessage";
|
|
867
891
|
readonly cardinality: "one";
|
|
868
892
|
}];
|
|
@@ -882,7 +906,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
882
906
|
}];
|
|
883
907
|
labels: [{
|
|
884
908
|
readonly sourceField: string[];
|
|
885
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
909
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
886
910
|
readonly destSchema: "threadLabel";
|
|
887
911
|
readonly cardinality: "many";
|
|
888
912
|
}, {
|
|
@@ -907,7 +931,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
907
931
|
readonly threadMessageRecipient: {
|
|
908
932
|
message: [{
|
|
909
933
|
readonly sourceField: string[];
|
|
910
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
934
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
911
935
|
readonly destSchema: "threadMessage";
|
|
912
936
|
readonly cardinality: "one";
|
|
913
937
|
}];
|
|
@@ -915,7 +939,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
915
939
|
readonly threadMessageAttachment: {
|
|
916
940
|
message: [{
|
|
917
941
|
readonly sourceField: string[];
|
|
918
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
942
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
919
943
|
readonly destSchema: "threadMessage";
|
|
920
944
|
readonly cardinality: "one";
|
|
921
945
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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ly threadLabel: {
|
|
507
507
|
name: "threadLabel";
|
|
508
508
|
columns: {
|
|
509
|
+
readonly accountId: {
|
|
510
|
+
type: "string";
|
|
511
|
+
optional: false;
|
|
512
|
+
customType: string;
|
|
513
|
+
} & {
|
|
514
|
+
serverName: string;
|
|
515
|
+
};
|
|
509
516
|
readonly labelId: {
|
|
510
517
|
type: "string";
|
|
511
518
|
optional: false;
|
|
@@ -530,11 +537,18 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
530
537
|
};
|
|
531
538
|
primaryKey: readonly [string, ...string[]];
|
|
532
539
|
} & {
|
|
533
|
-
primaryKey: ["
|
|
540
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
534
541
|
};
|
|
535
542
|
readonly threadMessage: {
|
|
536
543
|
name: "threadMessage";
|
|
537
544
|
columns: {
|
|
545
|
+
readonly accountId: {
|
|
546
|
+
type: "string";
|
|
547
|
+
optional: false;
|
|
548
|
+
customType: string;
|
|
549
|
+
} & {
|
|
550
|
+
serverName: string;
|
|
551
|
+
};
|
|
538
552
|
readonly envelopeDate: {
|
|
539
553
|
type: "number";
|
|
540
554
|
optional: false;
|
|
@@ -551,6 +565,11 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
551
565
|
} & {
|
|
552
566
|
serverName: string;
|
|
553
567
|
};
|
|
568
|
+
readonly flagged: {
|
|
569
|
+
type: "boolean";
|
|
570
|
+
optional: false;
|
|
571
|
+
customType: boolean;
|
|
572
|
+
};
|
|
554
573
|
readonly id: {
|
|
555
574
|
type: "string";
|
|
556
575
|
optional: false;
|
|
@@ -563,6 +582,11 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
563
582
|
} & {
|
|
564
583
|
serverName: string;
|
|
565
584
|
};
|
|
585
|
+
readonly seen: {
|
|
586
|
+
type: "boolean";
|
|
587
|
+
optional: false;
|
|
588
|
+
customType: boolean;
|
|
589
|
+
};
|
|
566
590
|
readonly senderEmail: {
|
|
567
591
|
type: "string";
|
|
568
592
|
optional: false;
|
|
@@ -779,7 +803,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
779
803
|
}];
|
|
780
804
|
threads: [{
|
|
781
805
|
readonly sourceField: string[];
|
|
782
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
806
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
783
807
|
readonly destSchema: "threadLabel";
|
|
784
808
|
readonly cardinality: "many";
|
|
785
809
|
}, {
|
|
@@ -840,7 +864,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
840
864
|
}];
|
|
841
865
|
labels: [{
|
|
842
866
|
readonly sourceField: string[];
|
|
843
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
867
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
844
868
|
readonly destSchema: "threadLabel";
|
|
845
869
|
readonly cardinality: "many";
|
|
846
870
|
}, {
|
|
@@ -851,7 +875,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
851
875
|
}];
|
|
852
876
|
messages: [{
|
|
853
877
|
readonly sourceField: string[];
|
|
854
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
878
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
855
879
|
readonly destSchema: "threadMessage";
|
|
856
880
|
readonly cardinality: "many";
|
|
857
881
|
}];
|
|
@@ -871,7 +895,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
871
895
|
}];
|
|
872
896
|
message: [{
|
|
873
897
|
readonly sourceField: string[];
|
|
874
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
898
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
875
899
|
readonly destSchema: "threadMessage";
|
|
876
900
|
readonly cardinality: "one";
|
|
877
901
|
}];
|
|
@@ -891,7 +915,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
891
915
|
}];
|
|
892
916
|
labels: [{
|
|
893
917
|
readonly sourceField: string[];
|
|
894
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
918
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
895
919
|
readonly destSchema: "threadLabel";
|
|
896
920
|
readonly cardinality: "many";
|
|
897
921
|
}, {
|
|
@@ -916,7 +940,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
916
940
|
readonly threadMessageRecipient: {
|
|
917
941
|
message: [{
|
|
918
942
|
readonly sourceField: string[];
|
|
919
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
943
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
920
944
|
readonly destSchema: "threadMessage";
|
|
921
945
|
readonly cardinality: "one";
|
|
922
946
|
}];
|
|
@@ -924,7 +948,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
924
948
|
readonly threadMessageAttachment: {
|
|
925
949
|
message: [{
|
|
926
950
|
readonly sourceField: string[];
|
|
927
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
951
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
928
952
|
readonly destSchema: "threadMessage";
|
|
929
953
|
readonly cardinality: "one";
|
|
930
954
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getContacts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;QACd,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAiBD,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getContacts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;QACd,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAiBD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
|
|
@@ -503,6 +503,13 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
503
503
|
readonly threadLabel: {
|
|
504
504
|
name: "threadLabel";
|
|
505
505
|
columns: {
|
|
506
|
+
readonly accountId: {
|
|
507
|
+
type: "string";
|
|
508
|
+
optional: false;
|
|
509
|
+
customType: string;
|
|
510
|
+
} & {
|
|
511
|
+
serverName: string;
|
|
512
|
+
};
|
|
506
513
|
readonly labelId: {
|
|
507
514
|
type: "string";
|
|
508
515
|
optional: false;
|
|
@@ -527,11 +534,18 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
527
534
|
};
|
|
528
535
|
primaryKey: readonly [string, ...string[]];
|
|
529
536
|
} & {
|
|
530
|
-
primaryKey: ["
|
|
537
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
531
538
|
};
|
|
532
539
|
readonly threadMessage: {
|
|
533
540
|
name: "threadMessage";
|
|
534
541
|
columns: {
|
|
542
|
+
readonly accountId: {
|
|
543
|
+
type: "string";
|
|
544
|
+
optional: false;
|
|
545
|
+
customType: string;
|
|
546
|
+
} & {
|
|
547
|
+
serverName: string;
|
|
548
|
+
};
|
|
535
549
|
readonly envelopeDate: {
|
|
536
550
|
type: "number";
|
|
537
551
|
optional: false;
|
|
@@ -548,6 +562,11 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
548
562
|
} & {
|
|
549
563
|
serverName: string;
|
|
550
564
|
};
|
|
565
|
+
readonly flagged: {
|
|
566
|
+
type: "boolean";
|
|
567
|
+
optional: false;
|
|
568
|
+
customType: boolean;
|
|
569
|
+
};
|
|
551
570
|
readonly id: {
|
|
552
571
|
type: "string";
|
|
553
572
|
optional: false;
|
|
@@ -560,6 +579,11 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
560
579
|
} & {
|
|
561
580
|
serverName: string;
|
|
562
581
|
};
|
|
582
|
+
readonly seen: {
|
|
583
|
+
type: "boolean";
|
|
584
|
+
optional: false;
|
|
585
|
+
customType: boolean;
|
|
586
|
+
};
|
|
563
587
|
readonly senderEmail: {
|
|
564
588
|
type: "string";
|
|
565
589
|
optional: false;
|
|
@@ -776,7 +800,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
776
800
|
}];
|
|
777
801
|
threads: [{
|
|
778
802
|
readonly sourceField: string[];
|
|
779
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
803
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
780
804
|
readonly destSchema: "threadLabel";
|
|
781
805
|
readonly cardinality: "many";
|
|
782
806
|
}, {
|
|
@@ -837,7 +861,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
837
861
|
}];
|
|
838
862
|
labels: [{
|
|
839
863
|
readonly sourceField: string[];
|
|
840
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
864
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
841
865
|
readonly destSchema: "threadLabel";
|
|
842
866
|
readonly cardinality: "many";
|
|
843
867
|
}, {
|
|
@@ -848,7 +872,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
848
872
|
}];
|
|
849
873
|
messages: [{
|
|
850
874
|
readonly sourceField: string[];
|
|
851
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
875
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
852
876
|
readonly destSchema: "threadMessage";
|
|
853
877
|
readonly cardinality: "many";
|
|
854
878
|
}];
|
|
@@ -868,7 +892,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
868
892
|
}];
|
|
869
893
|
message: [{
|
|
870
894
|
readonly sourceField: string[];
|
|
871
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
895
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
872
896
|
readonly destSchema: "threadMessage";
|
|
873
897
|
readonly cardinality: "one";
|
|
874
898
|
}];
|
|
@@ -888,7 +912,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
888
912
|
}];
|
|
889
913
|
labels: [{
|
|
890
914
|
readonly sourceField: string[];
|
|
891
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
915
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
892
916
|
readonly destSchema: "threadLabel";
|
|
893
917
|
readonly cardinality: "many";
|
|
894
918
|
}, {
|
|
@@ -913,7 +937,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
913
937
|
readonly threadMessageRecipient: {
|
|
914
938
|
message: [{
|
|
915
939
|
readonly sourceField: string[];
|
|
916
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
940
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
917
941
|
readonly destSchema: "threadMessage";
|
|
918
942
|
readonly cardinality: "one";
|
|
919
943
|
}];
|
|
@@ -921,7 +945,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
921
945
|
readonly threadMessageAttachment: {
|
|
922
946
|
message: [{
|
|
923
947
|
readonly sourceField: string[];
|
|
924
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
948
|
+
readonly destField: ("id" | "accountId" | "flagged" | "seen" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
925
949
|
readonly destSchema: "threadMessage";
|
|
926
950
|
readonly cardinality: "one";
|
|
927
951
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getDrafts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB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