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