@marcoappio/marco-config 2.0.492 → 2.0.493
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/types/Zero.d.ts +0 -14
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/zero/index.d.ts +1553 -1439
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +2 -4
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts +109 -3
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +1 -1
- package/dist/zero/mutators/accountMutators/accountMutators.js +59 -25
- package/dist/zero/mutators/defineMutator.d.ts +16 -0
- package/dist/zero/mutators/defineMutator.d.ts.map +1 -0
- package/dist/zero/mutators/defineMutator.js +7 -0
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts +167 -3
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +1 -1
- package/dist/zero/mutators/draftMutators/draftMutators.js +97 -25
- package/dist/zero/mutators/index.d.ts +2 -1
- package/dist/zero/mutators/index.d.ts.map +1 -1
- package/dist/zero/mutators/index.js +2 -1
- package/dist/zero/mutators/mutators.d.ts +438 -17
- package/dist/zero/mutators/mutators.d.ts.map +1 -1
- package/dist/zero/mutators/mutators.js +11 -38
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +127 -3
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +39 -20
- package/dist/zero/mutators/userMutators/userMutators.d.ts +31 -3
- package/dist/zero/mutators/userMutators/userMutators.d.ts.map +1 -1
- package/dist/zero/mutators/userMutators/userMutators.js +25 -8
- package/dist/zero/queries/getAccounts.d.ts +134 -134
- package/dist/zero/queries/getContacts.d.ts +134 -134
- package/dist/zero/queries/getDrafts.d.ts +134 -134
- package/dist/zero/queries/getThread.d.ts +134 -134
- package/dist/zero/queries/getThreadList.d.ts +134 -134
- package/dist/zero/queries/getThreads.d.ts +134 -134
- package/dist/zero/queries/getUser.d.ts +134 -134
- package/dist/zero/queries/index.d.ts +132 -132
- package/dist/zero/schema.d.ts +132 -132
- package/dist/zero/schema.d.ts.map +1 -1
- package/package.json +2 -2
- package/dist/types/AuthData.d.ts +0 -4
- package/dist/types/AuthData.d.ts.map +0 -1
- package/dist/types/AuthData.js +0 -1
- package/dist/zero/mutatorSchemas/account.d.ts +0 -80
- package/dist/zero/mutatorSchemas/account.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/account.js +0 -66
- package/dist/zero/mutatorSchemas/draft.d.ts +0 -150
- package/dist/zero/mutatorSchemas/draft.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/draft.js +0 -104
- package/dist/zero/mutatorSchemas/index.d.ts +0 -323
- package/dist/zero/mutatorSchemas/index.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/index.js +0 -10
- package/dist/zero/mutatorSchemas/thread.d.ts +0 -71
- package/dist/zero/mutatorSchemas/thread.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/thread.js +0 -47
- package/dist/zero/mutatorSchemas/user.d.ts +0 -26
- package/dist/zero/mutatorSchemas/user.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas/user.js +0 -27
- package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts +0 -2
- package/dist/zero/mutators/accountMutators/accountMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/accountMutators/accountMutators.test.js +0 -372
- package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts +0 -2
- package/dist/zero/mutators/draftMutators/draftMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/draftMutators/draftMutators.test.js +0 -416
- package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts +0 -2
- package/dist/zero/mutators/threadMutators/threadMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +0 -755
- package/dist/zero/mutators/userMutators/userMutators.test.d.ts +0 -2
- package/dist/zero/mutators/userMutators/userMutators.test.d.ts.map +0 -1
- package/dist/zero/mutators/userMutators/userMutators.test.js +0 -84
|
@@ -2,7 +2,7 @@ import type { MarcoSyncedQueryContext } from '../../types';
|
|
|
2
2
|
type GetThreadArgs = {
|
|
3
3
|
id: string;
|
|
4
4
|
};
|
|
5
|
-
export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread", MarcoSyncedQueryContext, true, [GetThreadArgs], import("@rocicorp/zero").Query<{
|
|
5
|
+
export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread", MarcoSyncedQueryContext, true, [GetThreadArgs], import("@rocicorp/zero").Query<"thread", {
|
|
6
6
|
tables: {
|
|
7
7
|
readonly user: {
|
|
8
8
|
name: "user";
|
|
@@ -40,6 +40,54 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
40
40
|
} & {
|
|
41
41
|
primaryKey: ["id"];
|
|
42
42
|
};
|
|
43
|
+
readonly draftAttachment: {
|
|
44
|
+
name: "draftAttachment";
|
|
45
|
+
columns: {
|
|
46
|
+
readonly draftId: {
|
|
47
|
+
type: "string";
|
|
48
|
+
optional: false;
|
|
49
|
+
customType: string;
|
|
50
|
+
} & {
|
|
51
|
+
serverName: string;
|
|
52
|
+
};
|
|
53
|
+
readonly fileName: {
|
|
54
|
+
type: "string";
|
|
55
|
+
optional: false;
|
|
56
|
+
customType: string;
|
|
57
|
+
} & {
|
|
58
|
+
serverName: string;
|
|
59
|
+
};
|
|
60
|
+
readonly id: {
|
|
61
|
+
type: "string";
|
|
62
|
+
optional: false;
|
|
63
|
+
customType: string;
|
|
64
|
+
};
|
|
65
|
+
readonly mimeType: {
|
|
66
|
+
type: "string";
|
|
67
|
+
optional: false;
|
|
68
|
+
customType: string;
|
|
69
|
+
} & {
|
|
70
|
+
serverName: string;
|
|
71
|
+
};
|
|
72
|
+
readonly status: {
|
|
73
|
+
type: "string";
|
|
74
|
+
optional: false;
|
|
75
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
76
|
+
} & {
|
|
77
|
+
serverName: string;
|
|
78
|
+
};
|
|
79
|
+
readonly totalSize: {
|
|
80
|
+
type: "number";
|
|
81
|
+
optional: false;
|
|
82
|
+
customType: number;
|
|
83
|
+
} & {
|
|
84
|
+
serverName: string;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
primaryKey: readonly [string, ...string[]];
|
|
88
|
+
} & {
|
|
89
|
+
primaryKey: ["id"];
|
|
90
|
+
};
|
|
43
91
|
readonly userPushNotificationToken: {
|
|
44
92
|
name: "userPushNotificationToken";
|
|
45
93
|
columns: {
|
|
@@ -377,54 +425,6 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
377
425
|
} & {
|
|
378
426
|
primaryKey: ["id"];
|
|
379
427
|
};
|
|
380
|
-
readonly draftAttachment: {
|
|
381
|
-
name: "draftAttachment";
|
|
382
|
-
columns: {
|
|
383
|
-
readonly draftId: {
|
|
384
|
-
type: "string";
|
|
385
|
-
optional: false;
|
|
386
|
-
customType: string;
|
|
387
|
-
} & {
|
|
388
|
-
serverName: string;
|
|
389
|
-
};
|
|
390
|
-
readonly fileName: {
|
|
391
|
-
type: "string";
|
|
392
|
-
optional: false;
|
|
393
|
-
customType: string;
|
|
394
|
-
} & {
|
|
395
|
-
serverName: string;
|
|
396
|
-
};
|
|
397
|
-
readonly id: {
|
|
398
|
-
type: "string";
|
|
399
|
-
optional: false;
|
|
400
|
-
customType: string;
|
|
401
|
-
};
|
|
402
|
-
readonly mimeType: {
|
|
403
|
-
type: "string";
|
|
404
|
-
optional: false;
|
|
405
|
-
customType: string;
|
|
406
|
-
} & {
|
|
407
|
-
serverName: string;
|
|
408
|
-
};
|
|
409
|
-
readonly status: {
|
|
410
|
-
type: "string";
|
|
411
|
-
optional: false;
|
|
412
|
-
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
413
|
-
} & {
|
|
414
|
-
serverName: string;
|
|
415
|
-
};
|
|
416
|
-
readonly totalSize: {
|
|
417
|
-
type: "number";
|
|
418
|
-
optional: false;
|
|
419
|
-
customType: number;
|
|
420
|
-
} & {
|
|
421
|
-
serverName: string;
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
primaryKey: readonly [string, ...string[]];
|
|
425
|
-
} & {
|
|
426
|
-
primaryKey: ["id"];
|
|
427
|
-
};
|
|
428
428
|
readonly thread: {
|
|
429
429
|
name: "thread";
|
|
430
430
|
columns: {
|
|
@@ -764,259 +764,259 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
764
764
|
relationships: {
|
|
765
765
|
readonly user: {
|
|
766
766
|
accounts: [{
|
|
767
|
-
readonly sourceField:
|
|
768
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
767
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
768
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
769
769
|
readonly destSchema: "account";
|
|
770
770
|
readonly cardinality: "many";
|
|
771
771
|
}];
|
|
772
772
|
contacts: [{
|
|
773
|
-
readonly sourceField:
|
|
774
|
-
readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
|
|
773
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
774
|
+
readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
775
775
|
readonly destSchema: "contact";
|
|
776
776
|
readonly cardinality: "many";
|
|
777
777
|
}];
|
|
778
778
|
drafts: [{
|
|
779
|
-
readonly sourceField:
|
|
780
|
-
readonly destField: ("type" | "status" | "id" | "
|
|
779
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
780
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
781
781
|
readonly destSchema: "draft";
|
|
782
782
|
readonly cardinality: "many";
|
|
783
783
|
}];
|
|
784
784
|
pushNotificationTokens: [{
|
|
785
|
-
readonly sourceField:
|
|
786
|
-
readonly destField: ("
|
|
785
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
786
|
+
readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
787
787
|
readonly destSchema: "userPushNotificationToken";
|
|
788
788
|
readonly cardinality: "many";
|
|
789
789
|
}];
|
|
790
790
|
threads: [{
|
|
791
|
-
readonly sourceField:
|
|
792
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
791
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
792
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
793
793
|
readonly destSchema: "thread";
|
|
794
794
|
readonly cardinality: "many";
|
|
795
795
|
}];
|
|
796
796
|
};
|
|
797
|
+
readonly draftAttachment: {
|
|
798
|
+
draft: [{
|
|
799
|
+
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
800
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
801
|
+
readonly destSchema: "draft";
|
|
802
|
+
readonly cardinality: "one";
|
|
803
|
+
}];
|
|
804
|
+
};
|
|
797
805
|
readonly userPushNotificationToken: {
|
|
798
806
|
user: [{
|
|
799
|
-
readonly sourceField:
|
|
800
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
807
|
+
readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
808
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
801
809
|
readonly destSchema: "user";
|
|
802
810
|
readonly cardinality: "one";
|
|
803
811
|
}];
|
|
804
812
|
};
|
|
805
813
|
readonly contact: {
|
|
806
814
|
user: [{
|
|
807
|
-
readonly sourceField:
|
|
808
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
815
|
+
readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
816
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
809
817
|
readonly destSchema: "user";
|
|
810
818
|
readonly cardinality: "one";
|
|
811
819
|
}];
|
|
812
820
|
};
|
|
813
821
|
readonly account: {
|
|
814
822
|
aliases: [{
|
|
815
|
-
readonly sourceField:
|
|
816
|
-
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
823
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
824
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
817
825
|
readonly destSchema: "accountAlias";
|
|
818
826
|
readonly cardinality: "many";
|
|
819
827
|
}];
|
|
820
828
|
drafts: [{
|
|
821
|
-
readonly sourceField:
|
|
822
|
-
readonly destField: ("type" | "status" | "id" | "
|
|
829
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
830
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
823
831
|
readonly destSchema: "draft";
|
|
824
832
|
readonly cardinality: "many";
|
|
825
833
|
}];
|
|
826
834
|
labels: [{
|
|
827
|
-
readonly sourceField:
|
|
828
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
835
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
836
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
829
837
|
readonly destSchema: "accountLabel";
|
|
830
838
|
readonly cardinality: "many";
|
|
831
839
|
}];
|
|
832
840
|
primaryAlias: [{
|
|
833
|
-
readonly sourceField:
|
|
834
|
-
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
841
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
842
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
835
843
|
readonly destSchema: "accountAlias";
|
|
836
844
|
readonly cardinality: "one";
|
|
837
845
|
}];
|
|
838
846
|
threads: [{
|
|
839
|
-
readonly sourceField:
|
|
840
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
847
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
848
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
841
849
|
readonly destSchema: "thread";
|
|
842
850
|
readonly cardinality: "many";
|
|
843
851
|
}];
|
|
844
852
|
user: [{
|
|
845
|
-
readonly sourceField:
|
|
846
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
853
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
854
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
847
855
|
readonly destSchema: "user";
|
|
848
856
|
readonly cardinality: "one";
|
|
849
857
|
}];
|
|
850
858
|
};
|
|
851
859
|
readonly accountAlias: {
|
|
852
860
|
account: [{
|
|
853
|
-
readonly sourceField:
|
|
854
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
861
|
+
readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
862
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
855
863
|
readonly destSchema: "account";
|
|
856
864
|
readonly cardinality: "one";
|
|
857
865
|
}];
|
|
858
866
|
};
|
|
859
867
|
readonly accountLabel: {
|
|
860
868
|
account: [{
|
|
861
|
-
readonly sourceField:
|
|
862
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
869
|
+
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
870
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
863
871
|
readonly destSchema: "account";
|
|
864
872
|
readonly cardinality: "one";
|
|
865
873
|
}];
|
|
866
874
|
threads: [{
|
|
867
|
-
readonly sourceField:
|
|
868
|
-
readonly destField: ("
|
|
875
|
+
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
876
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
869
877
|
readonly destSchema: "threadLabel";
|
|
870
878
|
readonly cardinality: "many";
|
|
871
879
|
}, {
|
|
872
|
-
readonly sourceField:
|
|
873
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
880
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
881
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
874
882
|
readonly destSchema: "thread";
|
|
875
883
|
readonly cardinality: "many";
|
|
876
884
|
}];
|
|
877
885
|
};
|
|
878
886
|
readonly draft: {
|
|
879
887
|
account: [{
|
|
880
|
-
readonly sourceField:
|
|
881
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
888
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
889
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
882
890
|
readonly destSchema: "account";
|
|
883
891
|
readonly cardinality: "one";
|
|
884
892
|
}];
|
|
885
893
|
attachments: [{
|
|
886
|
-
readonly sourceField:
|
|
887
|
-
readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
894
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
895
|
+
readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
888
896
|
readonly destSchema: "draftAttachment";
|
|
889
897
|
readonly cardinality: "many";
|
|
890
898
|
}];
|
|
891
899
|
user: [{
|
|
892
|
-
readonly sourceField:
|
|
893
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
900
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
901
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
894
902
|
readonly destSchema: "user";
|
|
895
903
|
readonly cardinality: "one";
|
|
896
904
|
}];
|
|
897
905
|
};
|
|
898
|
-
readonly draftAttachment: {
|
|
899
|
-
draft: [{
|
|
900
|
-
readonly sourceField: string[];
|
|
901
|
-
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
902
|
-
readonly destSchema: "draft";
|
|
903
|
-
readonly cardinality: "one";
|
|
904
|
-
}];
|
|
905
|
-
};
|
|
906
906
|
readonly thread: {
|
|
907
907
|
account: [{
|
|
908
|
-
readonly sourceField:
|
|
909
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
908
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
909
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
910
910
|
readonly destSchema: "account";
|
|
911
911
|
readonly cardinality: "one";
|
|
912
912
|
}];
|
|
913
913
|
labels: [{
|
|
914
|
-
readonly sourceField:
|
|
915
|
-
readonly destField: ("
|
|
914
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
915
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
916
916
|
readonly destSchema: "threadLabel";
|
|
917
917
|
readonly cardinality: "many";
|
|
918
918
|
}, {
|
|
919
|
-
readonly sourceField:
|
|
920
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
919
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
920
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
921
921
|
readonly destSchema: "accountLabel";
|
|
922
922
|
readonly cardinality: "many";
|
|
923
923
|
}];
|
|
924
924
|
messages: [{
|
|
925
|
-
readonly sourceField:
|
|
926
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
925
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
926
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
927
927
|
readonly destSchema: "threadMessage";
|
|
928
928
|
readonly cardinality: "many";
|
|
929
929
|
}];
|
|
930
930
|
threadByLabel: [{
|
|
931
|
-
readonly sourceField:
|
|
932
|
-
readonly destField: ("
|
|
931
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
932
|
+
readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
933
933
|
readonly destSchema: "threadByLabel";
|
|
934
934
|
readonly cardinality: "many";
|
|
935
935
|
}];
|
|
936
936
|
user: [{
|
|
937
|
-
readonly sourceField:
|
|
938
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
937
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
938
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
939
939
|
readonly destSchema: "user";
|
|
940
940
|
readonly cardinality: "one";
|
|
941
941
|
}];
|
|
942
942
|
};
|
|
943
943
|
readonly threadLabel: {
|
|
944
944
|
label: [{
|
|
945
|
-
readonly sourceField:
|
|
946
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
945
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
946
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
947
947
|
readonly destSchema: "accountLabel";
|
|
948
948
|
readonly cardinality: "one";
|
|
949
949
|
}];
|
|
950
950
|
message: [{
|
|
951
|
-
readonly sourceField:
|
|
952
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
951
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
952
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
953
953
|
readonly destSchema: "threadMessage";
|
|
954
954
|
readonly cardinality: "one";
|
|
955
955
|
}];
|
|
956
956
|
thread: [{
|
|
957
|
-
readonly sourceField:
|
|
958
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
957
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
958
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
959
959
|
readonly destSchema: "thread";
|
|
960
960
|
readonly cardinality: "one";
|
|
961
961
|
}];
|
|
962
962
|
};
|
|
963
963
|
readonly threadByLabel: {
|
|
964
964
|
label: [{
|
|
965
|
-
readonly sourceField:
|
|
966
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
965
|
+
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
966
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
967
967
|
readonly destSchema: "accountLabel";
|
|
968
968
|
readonly cardinality: "one";
|
|
969
969
|
}];
|
|
970
970
|
thread: [{
|
|
971
|
-
readonly sourceField:
|
|
972
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
971
|
+
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
972
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
973
973
|
readonly destSchema: "thread";
|
|
974
974
|
readonly cardinality: "one";
|
|
975
975
|
}];
|
|
976
976
|
};
|
|
977
977
|
readonly threadMessage: {
|
|
978
978
|
attachments: [{
|
|
979
|
-
readonly sourceField:
|
|
980
|
-
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
979
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
980
|
+
readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
981
981
|
readonly destSchema: "threadMessageAttachment";
|
|
982
982
|
readonly cardinality: "many";
|
|
983
983
|
}];
|
|
984
984
|
labels: [{
|
|
985
|
-
readonly sourceField:
|
|
986
|
-
readonly destField: ("
|
|
985
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
986
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
987
987
|
readonly destSchema: "threadLabel";
|
|
988
988
|
readonly cardinality: "many";
|
|
989
989
|
}, {
|
|
990
|
-
readonly sourceField:
|
|
991
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
990
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
991
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
992
992
|
readonly destSchema: "accountLabel";
|
|
993
993
|
readonly cardinality: "many";
|
|
994
994
|
}];
|
|
995
995
|
recipients: [{
|
|
996
|
-
readonly sourceField:
|
|
997
|
-
readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
996
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
997
|
+
readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
998
998
|
readonly destSchema: "threadMessageRecipient";
|
|
999
999
|
readonly cardinality: "many";
|
|
1000
1000
|
}];
|
|
1001
1001
|
thread: [{
|
|
1002
|
-
readonly sourceField:
|
|
1003
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1002
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1003
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1004
1004
|
readonly destSchema: "thread";
|
|
1005
1005
|
readonly cardinality: "one";
|
|
1006
1006
|
}];
|
|
1007
1007
|
};
|
|
1008
1008
|
readonly threadMessageRecipient: {
|
|
1009
1009
|
message: [{
|
|
1010
|
-
readonly sourceField:
|
|
1011
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1010
|
+
readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1011
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1012
1012
|
readonly destSchema: "threadMessage";
|
|
1013
1013
|
readonly cardinality: "one";
|
|
1014
1014
|
}];
|
|
1015
1015
|
};
|
|
1016
1016
|
readonly threadMessageAttachment: {
|
|
1017
1017
|
message: [{
|
|
1018
|
-
readonly sourceField:
|
|
1019
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1018
|
+
readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1019
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1020
1020
|
readonly destSchema: "threadMessage";
|
|
1021
1021
|
readonly cardinality: "one";
|
|
1022
1022
|
}];
|
|
@@ -1024,7 +1024,7 @@ export declare const getThread: import("@rocicorp/zero").SyncedQuery<"getThread"
|
|
|
1024
1024
|
};
|
|
1025
1025
|
enableLegacyQueries: boolean | undefined;
|
|
1026
1026
|
enableLegacyMutators: false;
|
|
1027
|
-
},
|
|
1027
|
+
}, ({
|
|
1028
1028
|
readonly accountId: string;
|
|
1029
1029
|
readonly flagged: boolean;
|
|
1030
1030
|
readonly hasAttachments: boolean;
|