@marcoappio/marco-config 2.0.448 → 2.0.450
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 +148 -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 +22 -8
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +22 -8
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +22 -8
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +23 -8
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +22 -8
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +22 -8
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +37 -9
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +3 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
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,
|
|
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;
|
|
@@ -770,7 +784,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
770
784
|
}];
|
|
771
785
|
threads: [{
|
|
772
786
|
readonly sourceField: string[];
|
|
773
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
787
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
774
788
|
readonly destSchema: "threadLabel";
|
|
775
789
|
readonly cardinality: "many";
|
|
776
790
|
}, {
|
|
@@ -831,7 +845,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
831
845
|
}];
|
|
832
846
|
labels: [{
|
|
833
847
|
readonly sourceField: string[];
|
|
834
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
848
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
835
849
|
readonly destSchema: "threadLabel";
|
|
836
850
|
readonly cardinality: "many";
|
|
837
851
|
}, {
|
|
@@ -842,7 +856,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
842
856
|
}];
|
|
843
857
|
messages: [{
|
|
844
858
|
readonly sourceField: string[];
|
|
845
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
859
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
846
860
|
readonly destSchema: "threadMessage";
|
|
847
861
|
readonly cardinality: "many";
|
|
848
862
|
}];
|
|
@@ -862,7 +876,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
862
876
|
}];
|
|
863
877
|
message: [{
|
|
864
878
|
readonly sourceField: string[];
|
|
865
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
879
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
866
880
|
readonly destSchema: "threadMessage";
|
|
867
881
|
readonly cardinality: "one";
|
|
868
882
|
}];
|
|
@@ -882,7 +896,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
882
896
|
}];
|
|
883
897
|
labels: [{
|
|
884
898
|
readonly sourceField: string[];
|
|
885
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
899
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
886
900
|
readonly destSchema: "threadLabel";
|
|
887
901
|
readonly cardinality: "many";
|
|
888
902
|
}, {
|
|
@@ -907,7 +921,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
907
921
|
readonly threadMessageRecipient: {
|
|
908
922
|
message: [{
|
|
909
923
|
readonly sourceField: string[];
|
|
910
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
924
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
911
925
|
readonly destSchema: "threadMessage";
|
|
912
926
|
readonly cardinality: "one";
|
|
913
927
|
}];
|
|
@@ -915,7 +929,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
915
929
|
readonly threadMessageAttachment: {
|
|
916
930
|
message: [{
|
|
917
931
|
readonly sourceField: string[];
|
|
918
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
932
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
919
933
|
readonly destSchema: "threadMessage";
|
|
920
934
|
readonly cardinality: "one";
|
|
921
935
|
}];
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,CAAA"}
|
|
@@ -506,6 +506,13 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
506
506
|
readonly 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;
|
|
@@ -779,7 +793,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
779
793
|
}];
|
|
780
794
|
threads: [{
|
|
781
795
|
readonly sourceField: string[];
|
|
782
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
796
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
783
797
|
readonly destSchema: "threadLabel";
|
|
784
798
|
readonly cardinality: "many";
|
|
785
799
|
}, {
|
|
@@ -840,7 +854,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
840
854
|
}];
|
|
841
855
|
labels: [{
|
|
842
856
|
readonly sourceField: string[];
|
|
843
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
857
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
844
858
|
readonly destSchema: "threadLabel";
|
|
845
859
|
readonly cardinality: "many";
|
|
846
860
|
}, {
|
|
@@ -851,7 +865,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
851
865
|
}];
|
|
852
866
|
messages: [{
|
|
853
867
|
readonly sourceField: string[];
|
|
854
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
868
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
855
869
|
readonly destSchema: "threadMessage";
|
|
856
870
|
readonly cardinality: "many";
|
|
857
871
|
}];
|
|
@@ -871,7 +885,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
871
885
|
}];
|
|
872
886
|
message: [{
|
|
873
887
|
readonly sourceField: string[];
|
|
874
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
888
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
875
889
|
readonly destSchema: "threadMessage";
|
|
876
890
|
readonly cardinality: "one";
|
|
877
891
|
}];
|
|
@@ -891,7 +905,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
891
905
|
}];
|
|
892
906
|
labels: [{
|
|
893
907
|
readonly sourceField: string[];
|
|
894
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
908
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
895
909
|
readonly destSchema: "threadLabel";
|
|
896
910
|
readonly cardinality: "many";
|
|
897
911
|
}, {
|
|
@@ -916,7 +930,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
916
930
|
readonly threadMessageRecipient: {
|
|
917
931
|
message: [{
|
|
918
932
|
readonly sourceField: string[];
|
|
919
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
933
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
920
934
|
readonly destSchema: "threadMessage";
|
|
921
935
|
readonly cardinality: "one";
|
|
922
936
|
}];
|
|
@@ -924,7 +938,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
924
938
|
readonly threadMessageAttachment: {
|
|
925
939
|
message: [{
|
|
926
940
|
readonly sourceField: string[];
|
|
927
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
941
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
928
942
|
readonly destSchema: "threadMessage";
|
|
929
943
|
readonly cardinality: "one";
|
|
930
944
|
}];
|
|
@@ -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;
|
|
@@ -776,7 +790,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
776
790
|
}];
|
|
777
791
|
threads: [{
|
|
778
792
|
readonly sourceField: string[];
|
|
779
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
793
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
780
794
|
readonly destSchema: "threadLabel";
|
|
781
795
|
readonly cardinality: "many";
|
|
782
796
|
}, {
|
|
@@ -837,7 +851,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
837
851
|
}];
|
|
838
852
|
labels: [{
|
|
839
853
|
readonly sourceField: string[];
|
|
840
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
854
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
841
855
|
readonly destSchema: "threadLabel";
|
|
842
856
|
readonly cardinality: "many";
|
|
843
857
|
}, {
|
|
@@ -848,7 +862,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
848
862
|
}];
|
|
849
863
|
messages: [{
|
|
850
864
|
readonly sourceField: string[];
|
|
851
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
865
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
852
866
|
readonly destSchema: "threadMessage";
|
|
853
867
|
readonly cardinality: "many";
|
|
854
868
|
}];
|
|
@@ -868,7 +882,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
868
882
|
}];
|
|
869
883
|
message: [{
|
|
870
884
|
readonly sourceField: string[];
|
|
871
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
885
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
872
886
|
readonly destSchema: "threadMessage";
|
|
873
887
|
readonly cardinality: "one";
|
|
874
888
|
}];
|
|
@@ -888,7 +902,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
888
902
|
}];
|
|
889
903
|
labels: [{
|
|
890
904
|
readonly sourceField: string[];
|
|
891
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
905
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
892
906
|
readonly destSchema: "threadLabel";
|
|
893
907
|
readonly cardinality: "many";
|
|
894
908
|
}, {
|
|
@@ -913,7 +927,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
913
927
|
readonly threadMessageRecipient: {
|
|
914
928
|
message: [{
|
|
915
929
|
readonly sourceField: string[];
|
|
916
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
930
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
917
931
|
readonly destSchema: "threadMessage";
|
|
918
932
|
readonly cardinality: "one";
|
|
919
933
|
}];
|
|
@@ -921,7 +935,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
921
935
|
readonly threadMessageAttachment: {
|
|
922
936
|
message: [{
|
|
923
937
|
readonly sourceField: string[];
|
|
924
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
938
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
925
939
|
readonly destSchema: "threadMessage";
|
|
926
940
|
readonly cardinality: "one";
|
|
927
941
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getDrafts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;CACzC,CAAA;AAWD,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getDrafts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,MAAM,CAAC,CAAA;CACzC,CAAA;AAWD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrB,CAAA"}
|
|
@@ -509,6 +509,13 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
509
509
|
readonly threadLabel: {
|
|
510
510
|
name: "threadLabel";
|
|
511
511
|
columns: {
|
|
512
|
+
readonly accountId: {
|
|
513
|
+
type: "string";
|
|
514
|
+
optional: false;
|
|
515
|
+
customType: string;
|
|
516
|
+
} & {
|
|
517
|
+
serverName: string;
|
|
518
|
+
};
|
|
512
519
|
readonly labelId: {
|
|
513
520
|
type: "string";
|
|
514
521
|
optional: false;
|
|
@@ -533,11 +540,18 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
533
540
|
};
|
|
534
541
|
primaryKey: readonly [string, ...string[]];
|
|
535
542
|
} & {
|
|
536
|
-
primaryKey: ["
|
|
543
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
537
544
|
};
|
|
538
545
|
readonly threadMessage: {
|
|
539
546
|
name: "threadMessage";
|
|
540
547
|
columns: {
|
|
548
|
+
readonly accountId: {
|
|
549
|
+
type: "string";
|
|
550
|
+
optional: false;
|
|
551
|
+
customType: string;
|
|
552
|
+
} & {
|
|
553
|
+
serverName: string;
|
|
554
|
+
};
|
|
541
555
|
readonly envelopeDate: {
|
|
542
556
|
type: "number";
|
|
543
557
|
optional: false;
|
|
@@ -782,7 +796,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
782
796
|
}];
|
|
783
797
|
threads: [{
|
|
784
798
|
readonly sourceField: string[];
|
|
785
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
799
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
786
800
|
readonly destSchema: "threadLabel";
|
|
787
801
|
readonly cardinality: "many";
|
|
788
802
|
}, {
|
|
@@ -843,7 +857,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
843
857
|
}];
|
|
844
858
|
labels: [{
|
|
845
859
|
readonly sourceField: string[];
|
|
846
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
860
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
847
861
|
readonly destSchema: "threadLabel";
|
|
848
862
|
readonly cardinality: "many";
|
|
849
863
|
}, {
|
|
@@ -854,7 +868,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
854
868
|
}];
|
|
855
869
|
messages: [{
|
|
856
870
|
readonly sourceField: string[];
|
|
857
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
871
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
858
872
|
readonly destSchema: "threadMessage";
|
|
859
873
|
readonly cardinality: "many";
|
|
860
874
|
}];
|
|
@@ -874,7 +888,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
874
888
|
}];
|
|
875
889
|
message: [{
|
|
876
890
|
readonly sourceField: string[];
|
|
877
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
891
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
878
892
|
readonly destSchema: "threadMessage";
|
|
879
893
|
readonly cardinality: "one";
|
|
880
894
|
}];
|
|
@@ -894,7 +908,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
894
908
|
}];
|
|
895
909
|
labels: [{
|
|
896
910
|
readonly sourceField: string[];
|
|
897
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
911
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
898
912
|
readonly destSchema: "threadLabel";
|
|
899
913
|
readonly cardinality: "many";
|
|
900
914
|
}, {
|
|
@@ -919,7 +933,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
919
933
|
readonly threadMessageRecipient: {
|
|
920
934
|
message: [{
|
|
921
935
|
readonly sourceField: string[];
|
|
922
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
936
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
923
937
|
readonly destSchema: "threadMessage";
|
|
924
938
|
readonly cardinality: "one";
|
|
925
939
|
}];
|
|
@@ -927,7 +941,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
927
941
|
readonly threadMessageAttachment: {
|
|
928
942
|
message: [{
|
|
929
943
|
readonly sourceField: string[];
|
|
930
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
944
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
931
945
|
readonly destSchema: "threadMessage";
|
|
932
946
|
readonly cardinality: "one";
|
|
933
947
|
}];
|
|
@@ -945,6 +959,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
945
959
|
readonly words: string;
|
|
946
960
|
} & {
|
|
947
961
|
readonly messages: readonly ({
|
|
962
|
+
readonly accountId: string;
|
|
948
963
|
readonly envelopeDate: number;
|
|
949
964
|
readonly envelopeSubject: string | null;
|
|
950
965
|
readonly id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,OAAO,CAAA;KACf,CAAA;CACF,CAAA;AAoBD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,OAAO,CAAA;KACf,CAAA;CACF,CAAA;AAoBD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
|
|
@@ -497,6 +497,13 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
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 getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
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;
|
|
@@ -770,7 +784,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
770
784
|
}];
|
|
771
785
|
threads: [{
|
|
772
786
|
readonly sourceField: string[];
|
|
773
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
787
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
774
788
|
readonly destSchema: "threadLabel";
|
|
775
789
|
readonly cardinality: "many";
|
|
776
790
|
}, {
|
|
@@ -831,7 +845,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
831
845
|
}];
|
|
832
846
|
labels: [{
|
|
833
847
|
readonly sourceField: string[];
|
|
834
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
848
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
835
849
|
readonly destSchema: "threadLabel";
|
|
836
850
|
readonly cardinality: "many";
|
|
837
851
|
}, {
|
|
@@ -842,7 +856,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
842
856
|
}];
|
|
843
857
|
messages: [{
|
|
844
858
|
readonly sourceField: string[];
|
|
845
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
859
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
846
860
|
readonly destSchema: "threadMessage";
|
|
847
861
|
readonly cardinality: "many";
|
|
848
862
|
}];
|
|
@@ -862,7 +876,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
862
876
|
}];
|
|
863
877
|
message: [{
|
|
864
878
|
readonly sourceField: string[];
|
|
865
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
879
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
866
880
|
readonly destSchema: "threadMessage";
|
|
867
881
|
readonly cardinality: "one";
|
|
868
882
|
}];
|
|
@@ -882,7 +896,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
882
896
|
}];
|
|
883
897
|
labels: [{
|
|
884
898
|
readonly sourceField: string[];
|
|
885
|
-
readonly destField: ("labelId" | "threadId" | "threadMessageId")[];
|
|
899
|
+
readonly destField: ("accountId" | "labelId" | "threadId" | "threadMessageId")[];
|
|
886
900
|
readonly destSchema: "threadLabel";
|
|
887
901
|
readonly cardinality: "many";
|
|
888
902
|
}, {
|
|
@@ -907,7 +921,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
907
921
|
readonly threadMessageRecipient: {
|
|
908
922
|
message: [{
|
|
909
923
|
readonly sourceField: string[];
|
|
910
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
924
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
911
925
|
readonly destSchema: "threadMessage";
|
|
912
926
|
readonly cardinality: "one";
|
|
913
927
|
}];
|
|
@@ -915,7 +929,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
915
929
|
readonly threadMessageAttachment: {
|
|
916
930
|
message: [{
|
|
917
931
|
readonly sourceField: string[];
|
|
918
|
-
readonly destField: ("id" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
932
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
919
933
|
readonly destSchema: "threadMessage";
|
|
920
934
|
readonly cardinality: "one";
|
|
921
935
|
}];
|