@marcoappio/marco-config 2.0.472 → 2.0.473
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 +2186 -112
- 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 +2 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +33 -0
- package/dist/zero/queries/getAccounts.d.ts +8 -1
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +8 -1
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +8 -1
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.d.ts +1013 -1
- package/dist/zero/queries/getThreadList.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.js +42 -5
- package/dist/zero/queries/getThreads.d.ts +1021 -1
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.js +42 -5
- package/dist/zero/queries/getUser.d.ts +8 -1
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +8 -1
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +15 -1
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -0
- package/package.json +1 -1
package/dist/zero/index.d.ts
CHANGED
|
@@ -884,6 +884,2009 @@ export declare const marcoZero: {
|
|
|
884
884
|
} & {
|
|
885
885
|
serverName: string;
|
|
886
886
|
};
|
|
887
|
+
readonly latestMessageDate: {
|
|
888
|
+
type: "number";
|
|
889
|
+
optional: false;
|
|
890
|
+
customType: number;
|
|
891
|
+
} & {
|
|
892
|
+
serverName: string;
|
|
893
|
+
};
|
|
894
|
+
readonly threadId: {
|
|
895
|
+
type: "string";
|
|
896
|
+
optional: false;
|
|
897
|
+
customType: string;
|
|
898
|
+
} & {
|
|
899
|
+
serverName: string;
|
|
900
|
+
};
|
|
901
|
+
};
|
|
902
|
+
primaryKey: readonly [string, ...string[]];
|
|
903
|
+
} & {
|
|
904
|
+
primaryKey: ["labelId", "threadId"];
|
|
905
|
+
};
|
|
906
|
+
readonly threadMessage: {
|
|
907
|
+
name: "threadMessage";
|
|
908
|
+
columns: {
|
|
909
|
+
readonly accountId: {
|
|
910
|
+
type: "string";
|
|
911
|
+
optional: false;
|
|
912
|
+
customType: string;
|
|
913
|
+
} & {
|
|
914
|
+
serverName: string;
|
|
915
|
+
};
|
|
916
|
+
readonly envelopeDate: {
|
|
917
|
+
type: "number";
|
|
918
|
+
optional: false;
|
|
919
|
+
customType: number;
|
|
920
|
+
} & {
|
|
921
|
+
serverName: string;
|
|
922
|
+
};
|
|
923
|
+
readonly envelopeSubject: Omit<{
|
|
924
|
+
type: "string";
|
|
925
|
+
optional: false;
|
|
926
|
+
customType: string;
|
|
927
|
+
}, "optional"> & {
|
|
928
|
+
optional: true;
|
|
929
|
+
} & {
|
|
930
|
+
serverName: string;
|
|
931
|
+
};
|
|
932
|
+
readonly id: {
|
|
933
|
+
type: "string";
|
|
934
|
+
optional: false;
|
|
935
|
+
customType: string;
|
|
936
|
+
};
|
|
937
|
+
readonly previewText: {
|
|
938
|
+
type: "string";
|
|
939
|
+
optional: false;
|
|
940
|
+
customType: string;
|
|
941
|
+
} & {
|
|
942
|
+
serverName: string;
|
|
943
|
+
};
|
|
944
|
+
readonly senderEmail: {
|
|
945
|
+
type: "string";
|
|
946
|
+
optional: false;
|
|
947
|
+
customType: string;
|
|
948
|
+
} & {
|
|
949
|
+
serverName: string;
|
|
950
|
+
};
|
|
951
|
+
readonly senderName: Omit<{
|
|
952
|
+
type: "string";
|
|
953
|
+
optional: false;
|
|
954
|
+
customType: string;
|
|
955
|
+
}, "optional"> & {
|
|
956
|
+
optional: true;
|
|
957
|
+
} & {
|
|
958
|
+
serverName: string;
|
|
959
|
+
};
|
|
960
|
+
readonly threadId: {
|
|
961
|
+
type: "string";
|
|
962
|
+
optional: false;
|
|
963
|
+
customType: string;
|
|
964
|
+
} & {
|
|
965
|
+
serverName: string;
|
|
966
|
+
};
|
|
967
|
+
};
|
|
968
|
+
primaryKey: readonly [string, ...string[]];
|
|
969
|
+
} & {
|
|
970
|
+
primaryKey: ["id"];
|
|
971
|
+
};
|
|
972
|
+
readonly threadMessageRecipient: {
|
|
973
|
+
name: "threadMessageRecipient";
|
|
974
|
+
columns: {
|
|
975
|
+
readonly emailAddress: {
|
|
976
|
+
type: "string";
|
|
977
|
+
optional: false;
|
|
978
|
+
customType: string;
|
|
979
|
+
} & {
|
|
980
|
+
serverName: string;
|
|
981
|
+
};
|
|
982
|
+
readonly id: {
|
|
983
|
+
type: "string";
|
|
984
|
+
optional: false;
|
|
985
|
+
customType: string;
|
|
986
|
+
};
|
|
987
|
+
readonly name: Omit<{
|
|
988
|
+
type: "string";
|
|
989
|
+
optional: false;
|
|
990
|
+
customType: string;
|
|
991
|
+
}, "optional"> & {
|
|
992
|
+
optional: true;
|
|
993
|
+
};
|
|
994
|
+
readonly threadMessageId: {
|
|
995
|
+
type: "string";
|
|
996
|
+
optional: false;
|
|
997
|
+
customType: string;
|
|
998
|
+
} & {
|
|
999
|
+
serverName: string;
|
|
1000
|
+
};
|
|
1001
|
+
readonly type: {
|
|
1002
|
+
type: "string";
|
|
1003
|
+
optional: false;
|
|
1004
|
+
customType: "bcc" | "cc" | "to" | "replyTo";
|
|
1005
|
+
};
|
|
1006
|
+
};
|
|
1007
|
+
primaryKey: readonly [string, ...string[]];
|
|
1008
|
+
} & {
|
|
1009
|
+
primaryKey: ["id"];
|
|
1010
|
+
};
|
|
1011
|
+
readonly threadMessageAttachment: {
|
|
1012
|
+
name: "threadMessageAttachment";
|
|
1013
|
+
columns: {
|
|
1014
|
+
readonly fileName: {
|
|
1015
|
+
type: "string";
|
|
1016
|
+
optional: false;
|
|
1017
|
+
customType: string;
|
|
1018
|
+
} & {
|
|
1019
|
+
serverName: string;
|
|
1020
|
+
};
|
|
1021
|
+
readonly id: {
|
|
1022
|
+
type: "string";
|
|
1023
|
+
optional: false;
|
|
1024
|
+
customType: string;
|
|
1025
|
+
};
|
|
1026
|
+
readonly mimeType: {
|
|
1027
|
+
type: "string";
|
|
1028
|
+
optional: false;
|
|
1029
|
+
customType: string;
|
|
1030
|
+
} & {
|
|
1031
|
+
serverName: string;
|
|
1032
|
+
};
|
|
1033
|
+
readonly size: {
|
|
1034
|
+
type: "number";
|
|
1035
|
+
optional: false;
|
|
1036
|
+
customType: number;
|
|
1037
|
+
};
|
|
1038
|
+
readonly threadMessageId: {
|
|
1039
|
+
type: "string";
|
|
1040
|
+
optional: false;
|
|
1041
|
+
customType: string;
|
|
1042
|
+
} & {
|
|
1043
|
+
serverName: string;
|
|
1044
|
+
};
|
|
1045
|
+
};
|
|
1046
|
+
primaryKey: readonly [string, ...string[]];
|
|
1047
|
+
} & {
|
|
1048
|
+
primaryKey: ["id"];
|
|
1049
|
+
};
|
|
1050
|
+
};
|
|
1051
|
+
relationships: {
|
|
1052
|
+
readonly user: {
|
|
1053
|
+
accounts: [{
|
|
1054
|
+
readonly sourceField: string[];
|
|
1055
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1056
|
+
readonly destSchema: "account";
|
|
1057
|
+
readonly cardinality: "many";
|
|
1058
|
+
}];
|
|
1059
|
+
contacts: [{
|
|
1060
|
+
readonly sourceField: string[];
|
|
1061
|
+
readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
|
|
1062
|
+
readonly destSchema: "contact";
|
|
1063
|
+
readonly cardinality: "many";
|
|
1064
|
+
}];
|
|
1065
|
+
drafts: [{
|
|
1066
|
+
readonly sourceField: string[];
|
|
1067
|
+
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1068
|
+
readonly destSchema: "draft";
|
|
1069
|
+
readonly cardinality: "many";
|
|
1070
|
+
}];
|
|
1071
|
+
pushNotificationTokens: [{
|
|
1072
|
+
readonly sourceField: string[];
|
|
1073
|
+
readonly destField: ("id" | "createdAt" | "token" | "userId")[];
|
|
1074
|
+
readonly destSchema: "userPushNotificationToken";
|
|
1075
|
+
readonly cardinality: "many";
|
|
1076
|
+
}];
|
|
1077
|
+
threads: [{
|
|
1078
|
+
readonly sourceField: string[];
|
|
1079
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1080
|
+
readonly destSchema: "thread";
|
|
1081
|
+
readonly cardinality: "many";
|
|
1082
|
+
}];
|
|
1083
|
+
};
|
|
1084
|
+
readonly userPushNotificationToken: {
|
|
1085
|
+
user: [{
|
|
1086
|
+
readonly sourceField: string[];
|
|
1087
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1088
|
+
readonly destSchema: "user";
|
|
1089
|
+
readonly cardinality: "one";
|
|
1090
|
+
}];
|
|
1091
|
+
};
|
|
1092
|
+
readonly contact: {
|
|
1093
|
+
user: [{
|
|
1094
|
+
readonly sourceField: string[];
|
|
1095
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1096
|
+
readonly destSchema: "user";
|
|
1097
|
+
readonly cardinality: "one";
|
|
1098
|
+
}];
|
|
1099
|
+
};
|
|
1100
|
+
readonly account: {
|
|
1101
|
+
aliases: [{
|
|
1102
|
+
readonly sourceField: string[];
|
|
1103
|
+
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1104
|
+
readonly destSchema: "accountAlias";
|
|
1105
|
+
readonly cardinality: "many";
|
|
1106
|
+
}];
|
|
1107
|
+
drafts: [{
|
|
1108
|
+
readonly sourceField: string[];
|
|
1109
|
+
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1110
|
+
readonly destSchema: "draft";
|
|
1111
|
+
readonly cardinality: "many";
|
|
1112
|
+
}];
|
|
1113
|
+
labels: [{
|
|
1114
|
+
readonly sourceField: string[];
|
|
1115
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1116
|
+
readonly destSchema: "accountLabel";
|
|
1117
|
+
readonly cardinality: "many";
|
|
1118
|
+
}];
|
|
1119
|
+
primaryAlias: [{
|
|
1120
|
+
readonly sourceField: string[];
|
|
1121
|
+
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1122
|
+
readonly destSchema: "accountAlias";
|
|
1123
|
+
readonly cardinality: "one";
|
|
1124
|
+
}];
|
|
1125
|
+
threads: [{
|
|
1126
|
+
readonly sourceField: string[];
|
|
1127
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1128
|
+
readonly destSchema: "thread";
|
|
1129
|
+
readonly cardinality: "many";
|
|
1130
|
+
}];
|
|
1131
|
+
user: [{
|
|
1132
|
+
readonly sourceField: string[];
|
|
1133
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1134
|
+
readonly destSchema: "user";
|
|
1135
|
+
readonly cardinality: "one";
|
|
1136
|
+
}];
|
|
1137
|
+
};
|
|
1138
|
+
readonly accountAlias: {
|
|
1139
|
+
account: [{
|
|
1140
|
+
readonly sourceField: string[];
|
|
1141
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1142
|
+
readonly destSchema: "account";
|
|
1143
|
+
readonly cardinality: "one";
|
|
1144
|
+
}];
|
|
1145
|
+
};
|
|
1146
|
+
readonly accountLabel: {
|
|
1147
|
+
account: [{
|
|
1148
|
+
readonly sourceField: string[];
|
|
1149
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1150
|
+
readonly destSchema: "account";
|
|
1151
|
+
readonly cardinality: "one";
|
|
1152
|
+
}];
|
|
1153
|
+
threads: [{
|
|
1154
|
+
readonly sourceField: string[];
|
|
1155
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1156
|
+
readonly destSchema: "threadLabel";
|
|
1157
|
+
readonly cardinality: "many";
|
|
1158
|
+
}, {
|
|
1159
|
+
readonly sourceField: string[];
|
|
1160
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1161
|
+
readonly destSchema: "thread";
|
|
1162
|
+
readonly cardinality: "many";
|
|
1163
|
+
}];
|
|
1164
|
+
};
|
|
1165
|
+
readonly draft: {
|
|
1166
|
+
account: [{
|
|
1167
|
+
readonly sourceField: string[];
|
|
1168
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1169
|
+
readonly destSchema: "account";
|
|
1170
|
+
readonly cardinality: "one";
|
|
1171
|
+
}];
|
|
1172
|
+
attachments: [{
|
|
1173
|
+
readonly sourceField: string[];
|
|
1174
|
+
readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1175
|
+
readonly destSchema: "draftAttachment";
|
|
1176
|
+
readonly cardinality: "many";
|
|
1177
|
+
}];
|
|
1178
|
+
user: [{
|
|
1179
|
+
readonly sourceField: string[];
|
|
1180
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1181
|
+
readonly destSchema: "user";
|
|
1182
|
+
readonly cardinality: "one";
|
|
1183
|
+
}];
|
|
1184
|
+
};
|
|
1185
|
+
readonly draftAttachment: {
|
|
1186
|
+
draft: [{
|
|
1187
|
+
readonly sourceField: string[];
|
|
1188
|
+
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1189
|
+
readonly destSchema: "draft";
|
|
1190
|
+
readonly cardinality: "one";
|
|
1191
|
+
}];
|
|
1192
|
+
};
|
|
1193
|
+
readonly thread: {
|
|
1194
|
+
account: [{
|
|
1195
|
+
readonly sourceField: string[];
|
|
1196
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1197
|
+
readonly destSchema: "account";
|
|
1198
|
+
readonly cardinality: "one";
|
|
1199
|
+
}];
|
|
1200
|
+
labels: [{
|
|
1201
|
+
readonly sourceField: string[];
|
|
1202
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1203
|
+
readonly destSchema: "threadLabel";
|
|
1204
|
+
readonly cardinality: "many";
|
|
1205
|
+
}, {
|
|
1206
|
+
readonly sourceField: string[];
|
|
1207
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1208
|
+
readonly destSchema: "accountLabel";
|
|
1209
|
+
readonly cardinality: "many";
|
|
1210
|
+
}];
|
|
1211
|
+
messages: [{
|
|
1212
|
+
readonly sourceField: string[];
|
|
1213
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
1214
|
+
readonly destSchema: "threadMessage";
|
|
1215
|
+
readonly cardinality: "many";
|
|
1216
|
+
}];
|
|
1217
|
+
threadByLabel: [{
|
|
1218
|
+
readonly sourceField: string[];
|
|
1219
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1220
|
+
readonly destSchema: "threadByLabel";
|
|
1221
|
+
readonly cardinality: "many";
|
|
1222
|
+
}];
|
|
1223
|
+
user: [{
|
|
1224
|
+
readonly sourceField: string[];
|
|
1225
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1226
|
+
readonly destSchema: "user";
|
|
1227
|
+
readonly cardinality: "one";
|
|
1228
|
+
}];
|
|
1229
|
+
};
|
|
1230
|
+
readonly threadLabel: {
|
|
1231
|
+
label: [{
|
|
1232
|
+
readonly sourceField: string[];
|
|
1233
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1234
|
+
readonly destSchema: "accountLabel";
|
|
1235
|
+
readonly cardinality: "one";
|
|
1236
|
+
}];
|
|
1237
|
+
message: [{
|
|
1238
|
+
readonly sourceField: string[];
|
|
1239
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
1240
|
+
readonly destSchema: "threadMessage";
|
|
1241
|
+
readonly cardinality: "one";
|
|
1242
|
+
}];
|
|
1243
|
+
thread: [{
|
|
1244
|
+
readonly sourceField: string[];
|
|
1245
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1246
|
+
readonly destSchema: "thread";
|
|
1247
|
+
readonly cardinality: "one";
|
|
1248
|
+
}];
|
|
1249
|
+
};
|
|
1250
|
+
readonly threadByLabel: {
|
|
1251
|
+
label: [{
|
|
1252
|
+
readonly sourceField: string[];
|
|
1253
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1254
|
+
readonly destSchema: "accountLabel";
|
|
1255
|
+
readonly cardinality: "one";
|
|
1256
|
+
}];
|
|
1257
|
+
thread: [{
|
|
1258
|
+
readonly sourceField: string[];
|
|
1259
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1260
|
+
readonly destSchema: "thread";
|
|
1261
|
+
readonly cardinality: "one";
|
|
1262
|
+
}];
|
|
1263
|
+
};
|
|
1264
|
+
readonly threadMessage: {
|
|
1265
|
+
attachments: [{
|
|
1266
|
+
readonly sourceField: string[];
|
|
1267
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1268
|
+
readonly destSchema: "threadMessageAttachment";
|
|
1269
|
+
readonly cardinality: "many";
|
|
1270
|
+
}];
|
|
1271
|
+
labels: [{
|
|
1272
|
+
readonly sourceField: string[];
|
|
1273
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1274
|
+
readonly destSchema: "threadLabel";
|
|
1275
|
+
readonly cardinality: "many";
|
|
1276
|
+
}, {
|
|
1277
|
+
readonly sourceField: string[];
|
|
1278
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1279
|
+
readonly destSchema: "accountLabel";
|
|
1280
|
+
readonly cardinality: "many";
|
|
1281
|
+
}];
|
|
1282
|
+
recipients: [{
|
|
1283
|
+
readonly sourceField: string[];
|
|
1284
|
+
readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1285
|
+
readonly destSchema: "threadMessageRecipient";
|
|
1286
|
+
readonly cardinality: "many";
|
|
1287
|
+
}];
|
|
1288
|
+
thread: [{
|
|
1289
|
+
readonly sourceField: string[];
|
|
1290
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
1291
|
+
readonly destSchema: "thread";
|
|
1292
|
+
readonly cardinality: "one";
|
|
1293
|
+
}];
|
|
1294
|
+
};
|
|
1295
|
+
readonly threadMessageRecipient: {
|
|
1296
|
+
message: [{
|
|
1297
|
+
readonly sourceField: string[];
|
|
1298
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
1299
|
+
readonly destSchema: "threadMessage";
|
|
1300
|
+
readonly cardinality: "one";
|
|
1301
|
+
}];
|
|
1302
|
+
};
|
|
1303
|
+
readonly threadMessageAttachment: {
|
|
1304
|
+
message: [{
|
|
1305
|
+
readonly sourceField: string[];
|
|
1306
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
1307
|
+
readonly destSchema: "threadMessage";
|
|
1308
|
+
readonly cardinality: "one";
|
|
1309
|
+
}];
|
|
1310
|
+
};
|
|
1311
|
+
};
|
|
1312
|
+
enableLegacyQueries: boolean | undefined;
|
|
1313
|
+
enableLegacyMutators: false;
|
|
1314
|
+
}, "account", {
|
|
1315
|
+
readonly color: string;
|
|
1316
|
+
readonly displayName: string | null;
|
|
1317
|
+
readonly id: string;
|
|
1318
|
+
readonly imapConnectionStatus: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
|
|
1319
|
+
readonly mailProcessedCount: number;
|
|
1320
|
+
readonly mailTotalCount: number;
|
|
1321
|
+
readonly primaryAliasId: string | null;
|
|
1322
|
+
readonly userId: string;
|
|
1323
|
+
} & {
|
|
1324
|
+
readonly aliases: readonly {
|
|
1325
|
+
readonly accountId: string;
|
|
1326
|
+
readonly emailAddress: string;
|
|
1327
|
+
readonly id: string;
|
|
1328
|
+
readonly isPrimary: boolean;
|
|
1329
|
+
readonly name: string | null;
|
|
1330
|
+
}[];
|
|
1331
|
+
} & {
|
|
1332
|
+
readonly primaryAlias: {
|
|
1333
|
+
readonly accountId: string;
|
|
1334
|
+
readonly emailAddress: string;
|
|
1335
|
+
readonly id: string;
|
|
1336
|
+
readonly isPrimary: boolean;
|
|
1337
|
+
readonly name: string | null;
|
|
1338
|
+
} | undefined;
|
|
1339
|
+
} & {
|
|
1340
|
+
readonly labels: readonly {
|
|
1341
|
+
readonly accountId: string;
|
|
1342
|
+
readonly id: string;
|
|
1343
|
+
readonly name: string | null;
|
|
1344
|
+
readonly path: string;
|
|
1345
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1346
|
+
readonly uidValidity: number;
|
|
1347
|
+
readonly unreadCount: number;
|
|
1348
|
+
}[];
|
|
1349
|
+
}>>;
|
|
1350
|
+
readonly getContacts: import("@rocicorp/zero").SyncedQuery<"getContacts", import("..").MarcoSyncedQueryContext, true, [{
|
|
1351
|
+
limit: number;
|
|
1352
|
+
search?: string;
|
|
1353
|
+
where?: {
|
|
1354
|
+
emailAddress?: string;
|
|
1355
|
+
ids?: string[];
|
|
1356
|
+
name?: string;
|
|
1357
|
+
};
|
|
1358
|
+
}], import("@rocicorp/zero").Query<{
|
|
1359
|
+
tables: {
|
|
1360
|
+
readonly user: {
|
|
1361
|
+
name: "user";
|
|
1362
|
+
columns: {
|
|
1363
|
+
readonly id: {
|
|
1364
|
+
type: "string";
|
|
1365
|
+
optional: false;
|
|
1366
|
+
customType: string;
|
|
1367
|
+
};
|
|
1368
|
+
readonly name: Omit<{
|
|
1369
|
+
type: "string";
|
|
1370
|
+
optional: false;
|
|
1371
|
+
customType: string;
|
|
1372
|
+
}, "optional"> & {
|
|
1373
|
+
optional: true;
|
|
1374
|
+
};
|
|
1375
|
+
readonly profilePicture: Omit<{
|
|
1376
|
+
type: "string";
|
|
1377
|
+
optional: false;
|
|
1378
|
+
customType: string;
|
|
1379
|
+
}, "optional"> & {
|
|
1380
|
+
optional: true;
|
|
1381
|
+
} & {
|
|
1382
|
+
serverName: string;
|
|
1383
|
+
};
|
|
1384
|
+
readonly undoSendEnabled: {
|
|
1385
|
+
type: "boolean";
|
|
1386
|
+
optional: false;
|
|
1387
|
+
customType: boolean;
|
|
1388
|
+
} & {
|
|
1389
|
+
serverName: string;
|
|
1390
|
+
};
|
|
1391
|
+
};
|
|
1392
|
+
primaryKey: readonly [string, ...string[]];
|
|
1393
|
+
} & {
|
|
1394
|
+
primaryKey: ["id"];
|
|
1395
|
+
};
|
|
1396
|
+
readonly userPushNotificationToken: {
|
|
1397
|
+
name: "userPushNotificationToken";
|
|
1398
|
+
columns: {
|
|
1399
|
+
readonly createdAt: {
|
|
1400
|
+
type: "number";
|
|
1401
|
+
optional: false;
|
|
1402
|
+
customType: number;
|
|
1403
|
+
} & {
|
|
1404
|
+
serverName: string;
|
|
1405
|
+
};
|
|
1406
|
+
readonly id: {
|
|
1407
|
+
type: "string";
|
|
1408
|
+
optional: false;
|
|
1409
|
+
customType: string;
|
|
1410
|
+
};
|
|
1411
|
+
readonly token: {
|
|
1412
|
+
type: "string";
|
|
1413
|
+
optional: false;
|
|
1414
|
+
customType: string;
|
|
1415
|
+
};
|
|
1416
|
+
readonly userId: {
|
|
1417
|
+
type: "string";
|
|
1418
|
+
optional: false;
|
|
1419
|
+
customType: string;
|
|
1420
|
+
} & {
|
|
1421
|
+
serverName: string;
|
|
1422
|
+
};
|
|
1423
|
+
};
|
|
1424
|
+
primaryKey: readonly [string, ...string[]];
|
|
1425
|
+
} & {
|
|
1426
|
+
primaryKey: ["id"];
|
|
1427
|
+
};
|
|
1428
|
+
readonly contact: {
|
|
1429
|
+
name: "contact";
|
|
1430
|
+
columns: {
|
|
1431
|
+
readonly emailAddress: {
|
|
1432
|
+
type: "string";
|
|
1433
|
+
optional: false;
|
|
1434
|
+
customType: string;
|
|
1435
|
+
} & {
|
|
1436
|
+
serverName: string;
|
|
1437
|
+
};
|
|
1438
|
+
readonly id: {
|
|
1439
|
+
type: "string";
|
|
1440
|
+
optional: false;
|
|
1441
|
+
customType: string;
|
|
1442
|
+
};
|
|
1443
|
+
readonly name: Omit<{
|
|
1444
|
+
type: "string";
|
|
1445
|
+
optional: false;
|
|
1446
|
+
customType: string;
|
|
1447
|
+
}, "optional"> & {
|
|
1448
|
+
optional: true;
|
|
1449
|
+
};
|
|
1450
|
+
readonly userId: {
|
|
1451
|
+
type: "string";
|
|
1452
|
+
optional: false;
|
|
1453
|
+
customType: string;
|
|
1454
|
+
} & {
|
|
1455
|
+
serverName: string;
|
|
1456
|
+
};
|
|
1457
|
+
};
|
|
1458
|
+
primaryKey: readonly [string, ...string[]];
|
|
1459
|
+
} & {
|
|
1460
|
+
primaryKey: ["id"];
|
|
1461
|
+
};
|
|
1462
|
+
readonly account: {
|
|
1463
|
+
name: "account";
|
|
1464
|
+
columns: {
|
|
1465
|
+
readonly color: {
|
|
1466
|
+
type: "string";
|
|
1467
|
+
optional: false;
|
|
1468
|
+
customType: string;
|
|
1469
|
+
};
|
|
1470
|
+
readonly displayName: Omit<{
|
|
1471
|
+
type: "string";
|
|
1472
|
+
optional: false;
|
|
1473
|
+
customType: string;
|
|
1474
|
+
}, "optional"> & {
|
|
1475
|
+
optional: true;
|
|
1476
|
+
} & {
|
|
1477
|
+
serverName: string;
|
|
1478
|
+
};
|
|
1479
|
+
readonly id: {
|
|
1480
|
+
type: "string";
|
|
1481
|
+
optional: false;
|
|
1482
|
+
customType: string;
|
|
1483
|
+
};
|
|
1484
|
+
readonly imapConnectionStatus: {
|
|
1485
|
+
type: "string";
|
|
1486
|
+
optional: false;
|
|
1487
|
+
customType: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
|
|
1488
|
+
} & {
|
|
1489
|
+
serverName: string;
|
|
1490
|
+
};
|
|
1491
|
+
readonly mailProcessedCount: {
|
|
1492
|
+
type: "number";
|
|
1493
|
+
optional: false;
|
|
1494
|
+
customType: number;
|
|
1495
|
+
} & {
|
|
1496
|
+
serverName: string;
|
|
1497
|
+
};
|
|
1498
|
+
readonly mailTotalCount: {
|
|
1499
|
+
type: "number";
|
|
1500
|
+
optional: false;
|
|
1501
|
+
customType: number;
|
|
1502
|
+
} & {
|
|
1503
|
+
serverName: string;
|
|
1504
|
+
};
|
|
1505
|
+
readonly primaryAliasId: Omit<{
|
|
1506
|
+
type: "string";
|
|
1507
|
+
optional: false;
|
|
1508
|
+
customType: string;
|
|
1509
|
+
}, "optional"> & {
|
|
1510
|
+
optional: true;
|
|
1511
|
+
} & {
|
|
1512
|
+
serverName: string;
|
|
1513
|
+
};
|
|
1514
|
+
readonly userId: {
|
|
1515
|
+
type: "string";
|
|
1516
|
+
optional: false;
|
|
1517
|
+
customType: string;
|
|
1518
|
+
} & {
|
|
1519
|
+
serverName: string;
|
|
1520
|
+
};
|
|
1521
|
+
};
|
|
1522
|
+
primaryKey: readonly [string, ...string[]];
|
|
1523
|
+
} & {
|
|
1524
|
+
primaryKey: ["id"];
|
|
1525
|
+
};
|
|
1526
|
+
readonly accountAlias: {
|
|
1527
|
+
name: "accountAlias";
|
|
1528
|
+
columns: {
|
|
1529
|
+
readonly accountId: {
|
|
1530
|
+
type: "string";
|
|
1531
|
+
optional: false;
|
|
1532
|
+
customType: string;
|
|
1533
|
+
} & {
|
|
1534
|
+
serverName: string;
|
|
1535
|
+
};
|
|
1536
|
+
readonly emailAddress: {
|
|
1537
|
+
type: "string";
|
|
1538
|
+
optional: false;
|
|
1539
|
+
customType: string;
|
|
1540
|
+
} & {
|
|
1541
|
+
serverName: string;
|
|
1542
|
+
};
|
|
1543
|
+
readonly id: {
|
|
1544
|
+
type: "string";
|
|
1545
|
+
optional: false;
|
|
1546
|
+
customType: string;
|
|
1547
|
+
};
|
|
1548
|
+
readonly isPrimary: {
|
|
1549
|
+
type: "boolean";
|
|
1550
|
+
optional: false;
|
|
1551
|
+
customType: boolean;
|
|
1552
|
+
} & {
|
|
1553
|
+
serverName: string;
|
|
1554
|
+
};
|
|
1555
|
+
readonly name: Omit<{
|
|
1556
|
+
type: "string";
|
|
1557
|
+
optional: false;
|
|
1558
|
+
customType: string;
|
|
1559
|
+
}, "optional"> & {
|
|
1560
|
+
optional: true;
|
|
1561
|
+
};
|
|
1562
|
+
};
|
|
1563
|
+
primaryKey: readonly [string, ...string[]];
|
|
1564
|
+
} & {
|
|
1565
|
+
primaryKey: ["id"];
|
|
1566
|
+
};
|
|
1567
|
+
readonly accountLabel: {
|
|
1568
|
+
name: "accountLabel";
|
|
1569
|
+
columns: {
|
|
1570
|
+
readonly accountId: {
|
|
1571
|
+
type: "string";
|
|
1572
|
+
optional: false;
|
|
1573
|
+
customType: string;
|
|
1574
|
+
} & {
|
|
1575
|
+
serverName: string;
|
|
1576
|
+
};
|
|
1577
|
+
readonly id: {
|
|
1578
|
+
type: "string";
|
|
1579
|
+
optional: false;
|
|
1580
|
+
customType: string;
|
|
1581
|
+
};
|
|
1582
|
+
readonly name: Omit<{
|
|
1583
|
+
type: "string";
|
|
1584
|
+
optional: false;
|
|
1585
|
+
customType: string;
|
|
1586
|
+
}, "optional"> & {
|
|
1587
|
+
optional: true;
|
|
1588
|
+
};
|
|
1589
|
+
readonly path: {
|
|
1590
|
+
type: "string";
|
|
1591
|
+
optional: false;
|
|
1592
|
+
customType: string;
|
|
1593
|
+
};
|
|
1594
|
+
readonly specialUse: Omit<{
|
|
1595
|
+
type: "string";
|
|
1596
|
+
optional: false;
|
|
1597
|
+
customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
|
|
1598
|
+
}, "optional"> & {
|
|
1599
|
+
optional: true;
|
|
1600
|
+
} & {
|
|
1601
|
+
serverName: string;
|
|
1602
|
+
};
|
|
1603
|
+
readonly uidValidity: {
|
|
1604
|
+
type: "number";
|
|
1605
|
+
optional: false;
|
|
1606
|
+
customType: number;
|
|
1607
|
+
} & {
|
|
1608
|
+
serverName: string;
|
|
1609
|
+
};
|
|
1610
|
+
readonly unreadCount: {
|
|
1611
|
+
type: "number";
|
|
1612
|
+
optional: false;
|
|
1613
|
+
customType: number;
|
|
1614
|
+
} & {
|
|
1615
|
+
serverName: string;
|
|
1616
|
+
};
|
|
1617
|
+
};
|
|
1618
|
+
primaryKey: readonly [string, ...string[]];
|
|
1619
|
+
} & {
|
|
1620
|
+
primaryKey: ["id"];
|
|
1621
|
+
};
|
|
1622
|
+
readonly draft: {
|
|
1623
|
+
name: "draft";
|
|
1624
|
+
columns: {
|
|
1625
|
+
readonly accountId: {
|
|
1626
|
+
type: "string";
|
|
1627
|
+
optional: false;
|
|
1628
|
+
customType: string;
|
|
1629
|
+
} & {
|
|
1630
|
+
serverName: string;
|
|
1631
|
+
};
|
|
1632
|
+
readonly body: {
|
|
1633
|
+
type: "json";
|
|
1634
|
+
optional: false;
|
|
1635
|
+
customType: {
|
|
1636
|
+
content: string;
|
|
1637
|
+
to: string[];
|
|
1638
|
+
cc: string[];
|
|
1639
|
+
bcc: string[];
|
|
1640
|
+
};
|
|
1641
|
+
};
|
|
1642
|
+
readonly error: Omit<{
|
|
1643
|
+
type: "string";
|
|
1644
|
+
optional: false;
|
|
1645
|
+
customType: string;
|
|
1646
|
+
}, "optional"> & {
|
|
1647
|
+
optional: true;
|
|
1648
|
+
};
|
|
1649
|
+
readonly fromAliasId: Omit<{
|
|
1650
|
+
type: "string";
|
|
1651
|
+
optional: false;
|
|
1652
|
+
customType: string;
|
|
1653
|
+
}, "optional"> & {
|
|
1654
|
+
optional: true;
|
|
1655
|
+
} & {
|
|
1656
|
+
serverName: string;
|
|
1657
|
+
};
|
|
1658
|
+
readonly fromEmail: {
|
|
1659
|
+
type: "string";
|
|
1660
|
+
optional: false;
|
|
1661
|
+
customType: string;
|
|
1662
|
+
} & {
|
|
1663
|
+
serverName: string;
|
|
1664
|
+
};
|
|
1665
|
+
readonly fromName: Omit<{
|
|
1666
|
+
type: "string";
|
|
1667
|
+
optional: false;
|
|
1668
|
+
customType: string;
|
|
1669
|
+
}, "optional"> & {
|
|
1670
|
+
optional: true;
|
|
1671
|
+
} & {
|
|
1672
|
+
serverName: string;
|
|
1673
|
+
};
|
|
1674
|
+
readonly id: {
|
|
1675
|
+
type: "string";
|
|
1676
|
+
optional: false;
|
|
1677
|
+
customType: string;
|
|
1678
|
+
};
|
|
1679
|
+
readonly referencedMessageId: Omit<{
|
|
1680
|
+
type: "string";
|
|
1681
|
+
optional: false;
|
|
1682
|
+
customType: string;
|
|
1683
|
+
}, "optional"> & {
|
|
1684
|
+
optional: true;
|
|
1685
|
+
} & {
|
|
1686
|
+
serverName: string;
|
|
1687
|
+
};
|
|
1688
|
+
readonly scheduledFor: Omit<{
|
|
1689
|
+
type: "number";
|
|
1690
|
+
optional: false;
|
|
1691
|
+
customType: number;
|
|
1692
|
+
}, "optional"> & {
|
|
1693
|
+
optional: true;
|
|
1694
|
+
} & {
|
|
1695
|
+
serverName: string;
|
|
1696
|
+
};
|
|
1697
|
+
readonly status: {
|
|
1698
|
+
type: "string";
|
|
1699
|
+
optional: false;
|
|
1700
|
+
customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
1701
|
+
};
|
|
1702
|
+
readonly subject: Omit<{
|
|
1703
|
+
type: "string";
|
|
1704
|
+
optional: false;
|
|
1705
|
+
customType: string;
|
|
1706
|
+
}, "optional"> & {
|
|
1707
|
+
optional: true;
|
|
1708
|
+
};
|
|
1709
|
+
readonly type: {
|
|
1710
|
+
type: "string";
|
|
1711
|
+
optional: false;
|
|
1712
|
+
customType: "NEW" | "REPLY" | "FORWARD";
|
|
1713
|
+
};
|
|
1714
|
+
readonly updatedAt: {
|
|
1715
|
+
type: "number";
|
|
1716
|
+
optional: false;
|
|
1717
|
+
customType: number;
|
|
1718
|
+
} & {
|
|
1719
|
+
serverName: string;
|
|
1720
|
+
};
|
|
1721
|
+
readonly userId: {
|
|
1722
|
+
type: "string";
|
|
1723
|
+
optional: false;
|
|
1724
|
+
customType: string;
|
|
1725
|
+
} & {
|
|
1726
|
+
serverName: string;
|
|
1727
|
+
};
|
|
1728
|
+
};
|
|
1729
|
+
primaryKey: readonly [string, ...string[]];
|
|
1730
|
+
} & {
|
|
1731
|
+
primaryKey: ["id"];
|
|
1732
|
+
};
|
|
1733
|
+
readonly draftAttachment: {
|
|
1734
|
+
name: "draftAttachment";
|
|
1735
|
+
columns: {
|
|
1736
|
+
readonly draftId: {
|
|
1737
|
+
type: "string";
|
|
1738
|
+
optional: false;
|
|
1739
|
+
customType: string;
|
|
1740
|
+
} & {
|
|
1741
|
+
serverName: string;
|
|
1742
|
+
};
|
|
1743
|
+
readonly fileName: {
|
|
1744
|
+
type: "string";
|
|
1745
|
+
optional: false;
|
|
1746
|
+
customType: string;
|
|
1747
|
+
} & {
|
|
1748
|
+
serverName: string;
|
|
1749
|
+
};
|
|
1750
|
+
readonly id: {
|
|
1751
|
+
type: "string";
|
|
1752
|
+
optional: false;
|
|
1753
|
+
customType: string;
|
|
1754
|
+
};
|
|
1755
|
+
readonly mimeType: {
|
|
1756
|
+
type: "string";
|
|
1757
|
+
optional: false;
|
|
1758
|
+
customType: string;
|
|
1759
|
+
} & {
|
|
1760
|
+
serverName: string;
|
|
1761
|
+
};
|
|
1762
|
+
readonly status: {
|
|
1763
|
+
type: "string";
|
|
1764
|
+
optional: false;
|
|
1765
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
1766
|
+
} & {
|
|
1767
|
+
serverName: string;
|
|
1768
|
+
};
|
|
1769
|
+
readonly totalSize: {
|
|
1770
|
+
type: "number";
|
|
1771
|
+
optional: false;
|
|
1772
|
+
customType: number;
|
|
1773
|
+
} & {
|
|
1774
|
+
serverName: string;
|
|
1775
|
+
};
|
|
1776
|
+
};
|
|
1777
|
+
primaryKey: readonly [string, ...string[]];
|
|
1778
|
+
} & {
|
|
1779
|
+
primaryKey: ["id"];
|
|
1780
|
+
};
|
|
1781
|
+
readonly thread: {
|
|
1782
|
+
name: "thread";
|
|
1783
|
+
columns: {
|
|
1784
|
+
readonly accountId: {
|
|
1785
|
+
type: "string";
|
|
1786
|
+
optional: false;
|
|
1787
|
+
customType: string;
|
|
1788
|
+
} & {
|
|
1789
|
+
serverName: string;
|
|
1790
|
+
};
|
|
1791
|
+
readonly flagged: {
|
|
1792
|
+
type: "boolean";
|
|
1793
|
+
optional: false;
|
|
1794
|
+
customType: boolean;
|
|
1795
|
+
};
|
|
1796
|
+
readonly id: {
|
|
1797
|
+
type: "string";
|
|
1798
|
+
optional: false;
|
|
1799
|
+
customType: string;
|
|
1800
|
+
};
|
|
1801
|
+
readonly labelIdList: {
|
|
1802
|
+
type: "string";
|
|
1803
|
+
optional: false;
|
|
1804
|
+
customType: string;
|
|
1805
|
+
} & {
|
|
1806
|
+
serverName: string;
|
|
1807
|
+
};
|
|
1808
|
+
readonly latestMessageDate: {
|
|
1809
|
+
type: "number";
|
|
1810
|
+
optional: false;
|
|
1811
|
+
customType: number;
|
|
1812
|
+
} & {
|
|
1813
|
+
serverName: string;
|
|
1814
|
+
};
|
|
1815
|
+
readonly seen: {
|
|
1816
|
+
type: "boolean";
|
|
1817
|
+
optional: false;
|
|
1818
|
+
customType: boolean;
|
|
1819
|
+
};
|
|
1820
|
+
readonly userId: {
|
|
1821
|
+
type: "string";
|
|
1822
|
+
optional: false;
|
|
1823
|
+
customType: string;
|
|
1824
|
+
} & {
|
|
1825
|
+
serverName: string;
|
|
1826
|
+
};
|
|
1827
|
+
readonly words: {
|
|
1828
|
+
type: "string";
|
|
1829
|
+
optional: false;
|
|
1830
|
+
customType: string;
|
|
1831
|
+
};
|
|
1832
|
+
};
|
|
1833
|
+
primaryKey: readonly [string, ...string[]];
|
|
1834
|
+
} & {
|
|
1835
|
+
primaryKey: ["id"];
|
|
1836
|
+
};
|
|
1837
|
+
readonly threadLabel: {
|
|
1838
|
+
name: "threadLabel";
|
|
1839
|
+
columns: {
|
|
1840
|
+
readonly accountId: {
|
|
1841
|
+
type: "string";
|
|
1842
|
+
optional: false;
|
|
1843
|
+
customType: string;
|
|
1844
|
+
} & {
|
|
1845
|
+
serverName: string;
|
|
1846
|
+
};
|
|
1847
|
+
readonly labelId: {
|
|
1848
|
+
type: "string";
|
|
1849
|
+
optional: false;
|
|
1850
|
+
customType: string;
|
|
1851
|
+
} & {
|
|
1852
|
+
serverName: string;
|
|
1853
|
+
};
|
|
1854
|
+
readonly lastSyncedAt: {
|
|
1855
|
+
type: "number";
|
|
1856
|
+
optional: false;
|
|
1857
|
+
customType: number;
|
|
1858
|
+
} & {
|
|
1859
|
+
serverName: string;
|
|
1860
|
+
};
|
|
1861
|
+
readonly threadId: {
|
|
1862
|
+
type: "string";
|
|
1863
|
+
optional: false;
|
|
1864
|
+
customType: string;
|
|
1865
|
+
} & {
|
|
1866
|
+
serverName: string;
|
|
1867
|
+
};
|
|
1868
|
+
readonly threadMessageId: {
|
|
1869
|
+
type: "string";
|
|
1870
|
+
optional: false;
|
|
1871
|
+
customType: string;
|
|
1872
|
+
} & {
|
|
1873
|
+
serverName: string;
|
|
1874
|
+
};
|
|
1875
|
+
readonly uid: {
|
|
1876
|
+
type: "number";
|
|
1877
|
+
optional: false;
|
|
1878
|
+
customType: number;
|
|
1879
|
+
};
|
|
1880
|
+
readonly uidValidity: {
|
|
1881
|
+
type: "number";
|
|
1882
|
+
optional: false;
|
|
1883
|
+
customType: number;
|
|
1884
|
+
} & {
|
|
1885
|
+
serverName: string;
|
|
1886
|
+
};
|
|
1887
|
+
};
|
|
1888
|
+
primaryKey: readonly [string, ...string[]];
|
|
1889
|
+
} & {
|
|
1890
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
1891
|
+
};
|
|
1892
|
+
readonly threadByLabel: {
|
|
1893
|
+
name: "threadByLabel";
|
|
1894
|
+
columns: {
|
|
1895
|
+
readonly labelId: {
|
|
1896
|
+
type: "string";
|
|
1897
|
+
optional: false;
|
|
1898
|
+
customType: string;
|
|
1899
|
+
} & {
|
|
1900
|
+
serverName: string;
|
|
1901
|
+
};
|
|
1902
|
+
readonly latestMessageDate: {
|
|
1903
|
+
type: "number";
|
|
1904
|
+
optional: false;
|
|
1905
|
+
customType: number;
|
|
1906
|
+
} & {
|
|
1907
|
+
serverName: string;
|
|
1908
|
+
};
|
|
1909
|
+
readonly threadId: {
|
|
1910
|
+
type: "string";
|
|
1911
|
+
optional: false;
|
|
1912
|
+
customType: string;
|
|
1913
|
+
} & {
|
|
1914
|
+
serverName: string;
|
|
1915
|
+
};
|
|
1916
|
+
};
|
|
1917
|
+
primaryKey: readonly [string, ...string[]];
|
|
1918
|
+
} & {
|
|
1919
|
+
primaryKey: ["labelId", "threadId"];
|
|
1920
|
+
};
|
|
1921
|
+
readonly threadMessage: {
|
|
1922
|
+
name: "threadMessage";
|
|
1923
|
+
columns: {
|
|
1924
|
+
readonly accountId: {
|
|
1925
|
+
type: "string";
|
|
1926
|
+
optional: false;
|
|
1927
|
+
customType: string;
|
|
1928
|
+
} & {
|
|
1929
|
+
serverName: string;
|
|
1930
|
+
};
|
|
1931
|
+
readonly envelopeDate: {
|
|
1932
|
+
type: "number";
|
|
1933
|
+
optional: false;
|
|
1934
|
+
customType: number;
|
|
1935
|
+
} & {
|
|
1936
|
+
serverName: string;
|
|
1937
|
+
};
|
|
1938
|
+
readonly envelopeSubject: Omit<{
|
|
1939
|
+
type: "string";
|
|
1940
|
+
optional: false;
|
|
1941
|
+
customType: string;
|
|
1942
|
+
}, "optional"> & {
|
|
1943
|
+
optional: true;
|
|
1944
|
+
} & {
|
|
1945
|
+
serverName: string;
|
|
1946
|
+
};
|
|
1947
|
+
readonly id: {
|
|
1948
|
+
type: "string";
|
|
1949
|
+
optional: false;
|
|
1950
|
+
customType: string;
|
|
1951
|
+
};
|
|
1952
|
+
readonly previewText: {
|
|
1953
|
+
type: "string";
|
|
1954
|
+
optional: false;
|
|
1955
|
+
customType: string;
|
|
1956
|
+
} & {
|
|
1957
|
+
serverName: string;
|
|
1958
|
+
};
|
|
1959
|
+
readonly senderEmail: {
|
|
1960
|
+
type: "string";
|
|
1961
|
+
optional: false;
|
|
1962
|
+
customType: string;
|
|
1963
|
+
} & {
|
|
1964
|
+
serverName: string;
|
|
1965
|
+
};
|
|
1966
|
+
readonly senderName: Omit<{
|
|
1967
|
+
type: "string";
|
|
1968
|
+
optional: false;
|
|
1969
|
+
customType: string;
|
|
1970
|
+
}, "optional"> & {
|
|
1971
|
+
optional: true;
|
|
1972
|
+
} & {
|
|
1973
|
+
serverName: string;
|
|
1974
|
+
};
|
|
1975
|
+
readonly threadId: {
|
|
1976
|
+
type: "string";
|
|
1977
|
+
optional: false;
|
|
1978
|
+
customType: string;
|
|
1979
|
+
} & {
|
|
1980
|
+
serverName: string;
|
|
1981
|
+
};
|
|
1982
|
+
};
|
|
1983
|
+
primaryKey: readonly [string, ...string[]];
|
|
1984
|
+
} & {
|
|
1985
|
+
primaryKey: ["id"];
|
|
1986
|
+
};
|
|
1987
|
+
readonly threadMessageRecipient: {
|
|
1988
|
+
name: "threadMessageRecipient";
|
|
1989
|
+
columns: {
|
|
1990
|
+
readonly emailAddress: {
|
|
1991
|
+
type: "string";
|
|
1992
|
+
optional: false;
|
|
1993
|
+
customType: string;
|
|
1994
|
+
} & {
|
|
1995
|
+
serverName: string;
|
|
1996
|
+
};
|
|
1997
|
+
readonly id: {
|
|
1998
|
+
type: "string";
|
|
1999
|
+
optional: false;
|
|
2000
|
+
customType: string;
|
|
2001
|
+
};
|
|
2002
|
+
readonly name: Omit<{
|
|
2003
|
+
type: "string";
|
|
2004
|
+
optional: false;
|
|
2005
|
+
customType: string;
|
|
2006
|
+
}, "optional"> & {
|
|
2007
|
+
optional: true;
|
|
2008
|
+
};
|
|
2009
|
+
readonly threadMessageId: {
|
|
2010
|
+
type: "string";
|
|
2011
|
+
optional: false;
|
|
2012
|
+
customType: string;
|
|
2013
|
+
} & {
|
|
2014
|
+
serverName: string;
|
|
2015
|
+
};
|
|
2016
|
+
readonly type: {
|
|
2017
|
+
type: "string";
|
|
2018
|
+
optional: false;
|
|
2019
|
+
customType: "bcc" | "cc" | "to" | "replyTo";
|
|
2020
|
+
};
|
|
2021
|
+
};
|
|
2022
|
+
primaryKey: readonly [string, ...string[]];
|
|
2023
|
+
} & {
|
|
2024
|
+
primaryKey: ["id"];
|
|
2025
|
+
};
|
|
2026
|
+
readonly threadMessageAttachment: {
|
|
2027
|
+
name: "threadMessageAttachment";
|
|
2028
|
+
columns: {
|
|
2029
|
+
readonly fileName: {
|
|
2030
|
+
type: "string";
|
|
2031
|
+
optional: false;
|
|
2032
|
+
customType: string;
|
|
2033
|
+
} & {
|
|
2034
|
+
serverName: string;
|
|
2035
|
+
};
|
|
2036
|
+
readonly id: {
|
|
2037
|
+
type: "string";
|
|
2038
|
+
optional: false;
|
|
2039
|
+
customType: string;
|
|
2040
|
+
};
|
|
2041
|
+
readonly mimeType: {
|
|
2042
|
+
type: "string";
|
|
2043
|
+
optional: false;
|
|
2044
|
+
customType: string;
|
|
2045
|
+
} & {
|
|
2046
|
+
serverName: string;
|
|
2047
|
+
};
|
|
2048
|
+
readonly size: {
|
|
2049
|
+
type: "number";
|
|
2050
|
+
optional: false;
|
|
2051
|
+
customType: number;
|
|
2052
|
+
};
|
|
2053
|
+
readonly threadMessageId: {
|
|
2054
|
+
type: "string";
|
|
2055
|
+
optional: false;
|
|
2056
|
+
customType: string;
|
|
2057
|
+
} & {
|
|
2058
|
+
serverName: string;
|
|
2059
|
+
};
|
|
2060
|
+
};
|
|
2061
|
+
primaryKey: readonly [string, ...string[]];
|
|
2062
|
+
} & {
|
|
2063
|
+
primaryKey: ["id"];
|
|
2064
|
+
};
|
|
2065
|
+
};
|
|
2066
|
+
relationships: {
|
|
2067
|
+
readonly user: {
|
|
2068
|
+
accounts: [{
|
|
2069
|
+
readonly sourceField: string[];
|
|
2070
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
2071
|
+
readonly destSchema: "account";
|
|
2072
|
+
readonly cardinality: "many";
|
|
2073
|
+
}];
|
|
2074
|
+
contacts: [{
|
|
2075
|
+
readonly sourceField: string[];
|
|
2076
|
+
readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
|
|
2077
|
+
readonly destSchema: "contact";
|
|
2078
|
+
readonly cardinality: "many";
|
|
2079
|
+
}];
|
|
2080
|
+
drafts: [{
|
|
2081
|
+
readonly sourceField: string[];
|
|
2082
|
+
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
2083
|
+
readonly destSchema: "draft";
|
|
2084
|
+
readonly cardinality: "many";
|
|
2085
|
+
}];
|
|
2086
|
+
pushNotificationTokens: [{
|
|
2087
|
+
readonly sourceField: string[];
|
|
2088
|
+
readonly destField: ("id" | "createdAt" | "token" | "userId")[];
|
|
2089
|
+
readonly destSchema: "userPushNotificationToken";
|
|
2090
|
+
readonly cardinality: "many";
|
|
2091
|
+
}];
|
|
2092
|
+
threads: [{
|
|
2093
|
+
readonly sourceField: string[];
|
|
2094
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2095
|
+
readonly destSchema: "thread";
|
|
2096
|
+
readonly cardinality: "many";
|
|
2097
|
+
}];
|
|
2098
|
+
};
|
|
2099
|
+
readonly userPushNotificationToken: {
|
|
2100
|
+
user: [{
|
|
2101
|
+
readonly sourceField: string[];
|
|
2102
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
2103
|
+
readonly destSchema: "user";
|
|
2104
|
+
readonly cardinality: "one";
|
|
2105
|
+
}];
|
|
2106
|
+
};
|
|
2107
|
+
readonly contact: {
|
|
2108
|
+
user: [{
|
|
2109
|
+
readonly sourceField: string[];
|
|
2110
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
2111
|
+
readonly destSchema: "user";
|
|
2112
|
+
readonly cardinality: "one";
|
|
2113
|
+
}];
|
|
2114
|
+
};
|
|
2115
|
+
readonly account: {
|
|
2116
|
+
aliases: [{
|
|
2117
|
+
readonly sourceField: string[];
|
|
2118
|
+
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
2119
|
+
readonly destSchema: "accountAlias";
|
|
2120
|
+
readonly cardinality: "many";
|
|
2121
|
+
}];
|
|
2122
|
+
drafts: [{
|
|
2123
|
+
readonly sourceField: string[];
|
|
2124
|
+
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
2125
|
+
readonly destSchema: "draft";
|
|
2126
|
+
readonly cardinality: "many";
|
|
2127
|
+
}];
|
|
2128
|
+
labels: [{
|
|
2129
|
+
readonly sourceField: string[];
|
|
2130
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2131
|
+
readonly destSchema: "accountLabel";
|
|
2132
|
+
readonly cardinality: "many";
|
|
2133
|
+
}];
|
|
2134
|
+
primaryAlias: [{
|
|
2135
|
+
readonly sourceField: string[];
|
|
2136
|
+
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
2137
|
+
readonly destSchema: "accountAlias";
|
|
2138
|
+
readonly cardinality: "one";
|
|
2139
|
+
}];
|
|
2140
|
+
threads: [{
|
|
2141
|
+
readonly sourceField: string[];
|
|
2142
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2143
|
+
readonly destSchema: "thread";
|
|
2144
|
+
readonly cardinality: "many";
|
|
2145
|
+
}];
|
|
2146
|
+
user: [{
|
|
2147
|
+
readonly sourceField: string[];
|
|
2148
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
2149
|
+
readonly destSchema: "user";
|
|
2150
|
+
readonly cardinality: "one";
|
|
2151
|
+
}];
|
|
2152
|
+
};
|
|
2153
|
+
readonly accountAlias: {
|
|
2154
|
+
account: [{
|
|
2155
|
+
readonly sourceField: string[];
|
|
2156
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
2157
|
+
readonly destSchema: "account";
|
|
2158
|
+
readonly cardinality: "one";
|
|
2159
|
+
}];
|
|
2160
|
+
};
|
|
2161
|
+
readonly accountLabel: {
|
|
2162
|
+
account: [{
|
|
2163
|
+
readonly sourceField: string[];
|
|
2164
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
2165
|
+
readonly destSchema: "account";
|
|
2166
|
+
readonly cardinality: "one";
|
|
2167
|
+
}];
|
|
2168
|
+
threads: [{
|
|
2169
|
+
readonly sourceField: string[];
|
|
2170
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
2171
|
+
readonly destSchema: "threadLabel";
|
|
2172
|
+
readonly cardinality: "many";
|
|
2173
|
+
}, {
|
|
2174
|
+
readonly sourceField: string[];
|
|
2175
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2176
|
+
readonly destSchema: "thread";
|
|
2177
|
+
readonly cardinality: "many";
|
|
2178
|
+
}];
|
|
2179
|
+
};
|
|
2180
|
+
readonly draft: {
|
|
2181
|
+
account: [{
|
|
2182
|
+
readonly sourceField: string[];
|
|
2183
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
2184
|
+
readonly destSchema: "account";
|
|
2185
|
+
readonly cardinality: "one";
|
|
2186
|
+
}];
|
|
2187
|
+
attachments: [{
|
|
2188
|
+
readonly sourceField: string[];
|
|
2189
|
+
readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
2190
|
+
readonly destSchema: "draftAttachment";
|
|
2191
|
+
readonly cardinality: "many";
|
|
2192
|
+
}];
|
|
2193
|
+
user: [{
|
|
2194
|
+
readonly sourceField: string[];
|
|
2195
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
2196
|
+
readonly destSchema: "user";
|
|
2197
|
+
readonly cardinality: "one";
|
|
2198
|
+
}];
|
|
2199
|
+
};
|
|
2200
|
+
readonly draftAttachment: {
|
|
2201
|
+
draft: [{
|
|
2202
|
+
readonly sourceField: string[];
|
|
2203
|
+
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
2204
|
+
readonly destSchema: "draft";
|
|
2205
|
+
readonly cardinality: "one";
|
|
2206
|
+
}];
|
|
2207
|
+
};
|
|
2208
|
+
readonly thread: {
|
|
2209
|
+
account: [{
|
|
2210
|
+
readonly sourceField: string[];
|
|
2211
|
+
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
2212
|
+
readonly destSchema: "account";
|
|
2213
|
+
readonly cardinality: "one";
|
|
2214
|
+
}];
|
|
2215
|
+
labels: [{
|
|
2216
|
+
readonly sourceField: string[];
|
|
2217
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
2218
|
+
readonly destSchema: "threadLabel";
|
|
2219
|
+
readonly cardinality: "many";
|
|
2220
|
+
}, {
|
|
2221
|
+
readonly sourceField: string[];
|
|
2222
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2223
|
+
readonly destSchema: "accountLabel";
|
|
2224
|
+
readonly cardinality: "many";
|
|
2225
|
+
}];
|
|
2226
|
+
messages: [{
|
|
2227
|
+
readonly sourceField: string[];
|
|
2228
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
2229
|
+
readonly destSchema: "threadMessage";
|
|
2230
|
+
readonly cardinality: "many";
|
|
2231
|
+
}];
|
|
2232
|
+
threadByLabel: [{
|
|
2233
|
+
readonly sourceField: string[];
|
|
2234
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
2235
|
+
readonly destSchema: "threadByLabel";
|
|
2236
|
+
readonly cardinality: "many";
|
|
2237
|
+
}];
|
|
2238
|
+
user: [{
|
|
2239
|
+
readonly sourceField: string[];
|
|
2240
|
+
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
2241
|
+
readonly destSchema: "user";
|
|
2242
|
+
readonly cardinality: "one";
|
|
2243
|
+
}];
|
|
2244
|
+
};
|
|
2245
|
+
readonly threadLabel: {
|
|
2246
|
+
label: [{
|
|
2247
|
+
readonly sourceField: string[];
|
|
2248
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2249
|
+
readonly destSchema: "accountLabel";
|
|
2250
|
+
readonly cardinality: "one";
|
|
2251
|
+
}];
|
|
2252
|
+
message: [{
|
|
2253
|
+
readonly sourceField: string[];
|
|
2254
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
2255
|
+
readonly destSchema: "threadMessage";
|
|
2256
|
+
readonly cardinality: "one";
|
|
2257
|
+
}];
|
|
2258
|
+
thread: [{
|
|
2259
|
+
readonly sourceField: string[];
|
|
2260
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2261
|
+
readonly destSchema: "thread";
|
|
2262
|
+
readonly cardinality: "one";
|
|
2263
|
+
}];
|
|
2264
|
+
};
|
|
2265
|
+
readonly threadByLabel: {
|
|
2266
|
+
label: [{
|
|
2267
|
+
readonly sourceField: string[];
|
|
2268
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2269
|
+
readonly destSchema: "accountLabel";
|
|
2270
|
+
readonly cardinality: "one";
|
|
2271
|
+
}];
|
|
2272
|
+
thread: [{
|
|
2273
|
+
readonly sourceField: string[];
|
|
2274
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2275
|
+
readonly destSchema: "thread";
|
|
2276
|
+
readonly cardinality: "one";
|
|
2277
|
+
}];
|
|
2278
|
+
};
|
|
2279
|
+
readonly threadMessage: {
|
|
2280
|
+
attachments: [{
|
|
2281
|
+
readonly sourceField: string[];
|
|
2282
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
2283
|
+
readonly destSchema: "threadMessageAttachment";
|
|
2284
|
+
readonly cardinality: "many";
|
|
2285
|
+
}];
|
|
2286
|
+
labels: [{
|
|
2287
|
+
readonly sourceField: string[];
|
|
2288
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
2289
|
+
readonly destSchema: "threadLabel";
|
|
2290
|
+
readonly cardinality: "many";
|
|
2291
|
+
}, {
|
|
2292
|
+
readonly sourceField: string[];
|
|
2293
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2294
|
+
readonly destSchema: "accountLabel";
|
|
2295
|
+
readonly cardinality: "many";
|
|
2296
|
+
}];
|
|
2297
|
+
recipients: [{
|
|
2298
|
+
readonly sourceField: string[];
|
|
2299
|
+
readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
2300
|
+
readonly destSchema: "threadMessageRecipient";
|
|
2301
|
+
readonly cardinality: "many";
|
|
2302
|
+
}];
|
|
2303
|
+
thread: [{
|
|
2304
|
+
readonly sourceField: string[];
|
|
2305
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
2306
|
+
readonly destSchema: "thread";
|
|
2307
|
+
readonly cardinality: "one";
|
|
2308
|
+
}];
|
|
2309
|
+
};
|
|
2310
|
+
readonly threadMessageRecipient: {
|
|
2311
|
+
message: [{
|
|
2312
|
+
readonly sourceField: string[];
|
|
2313
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
2314
|
+
readonly destSchema: "threadMessage";
|
|
2315
|
+
readonly cardinality: "one";
|
|
2316
|
+
}];
|
|
2317
|
+
};
|
|
2318
|
+
readonly threadMessageAttachment: {
|
|
2319
|
+
message: [{
|
|
2320
|
+
readonly sourceField: string[];
|
|
2321
|
+
readonly destField: ("id" | "accountId" | "threadId" | "envelopeDate" | "envelopeSubject" | "previewText" | "senderEmail" | "senderName")[];
|
|
2322
|
+
readonly destSchema: "threadMessage";
|
|
2323
|
+
readonly cardinality: "one";
|
|
2324
|
+
}];
|
|
2325
|
+
};
|
|
2326
|
+
};
|
|
2327
|
+
enableLegacyQueries: boolean | undefined;
|
|
2328
|
+
enableLegacyMutators: false;
|
|
2329
|
+
}, "contact", {
|
|
2330
|
+
readonly emailAddress: string;
|
|
2331
|
+
readonly id: string;
|
|
2332
|
+
readonly name: string | null;
|
|
2333
|
+
readonly userId: string;
|
|
2334
|
+
}>>;
|
|
2335
|
+
readonly getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts", import("..").MarcoSyncedQueryContext, true, [{
|
|
2336
|
+
accountId?: string;
|
|
2337
|
+
limit: number;
|
|
2338
|
+
status?: typeof import("..").DRAFT_STATUSES[number];
|
|
2339
|
+
}], import("@rocicorp/zero").Query<{
|
|
2340
|
+
tables: {
|
|
2341
|
+
readonly user: {
|
|
2342
|
+
name: "user";
|
|
2343
|
+
columns: {
|
|
2344
|
+
readonly id: {
|
|
2345
|
+
type: "string";
|
|
2346
|
+
optional: false;
|
|
2347
|
+
customType: string;
|
|
2348
|
+
};
|
|
2349
|
+
readonly name: Omit<{
|
|
2350
|
+
type: "string";
|
|
2351
|
+
optional: false;
|
|
2352
|
+
customType: string;
|
|
2353
|
+
}, "optional"> & {
|
|
2354
|
+
optional: true;
|
|
2355
|
+
};
|
|
2356
|
+
readonly profilePicture: Omit<{
|
|
2357
|
+
type: "string";
|
|
2358
|
+
optional: false;
|
|
2359
|
+
customType: string;
|
|
2360
|
+
}, "optional"> & {
|
|
2361
|
+
optional: true;
|
|
2362
|
+
} & {
|
|
2363
|
+
serverName: string;
|
|
2364
|
+
};
|
|
2365
|
+
readonly undoSendEnabled: {
|
|
2366
|
+
type: "boolean";
|
|
2367
|
+
optional: false;
|
|
2368
|
+
customType: boolean;
|
|
2369
|
+
} & {
|
|
2370
|
+
serverName: string;
|
|
2371
|
+
};
|
|
2372
|
+
};
|
|
2373
|
+
primaryKey: readonly [string, ...string[]];
|
|
2374
|
+
} & {
|
|
2375
|
+
primaryKey: ["id"];
|
|
2376
|
+
};
|
|
2377
|
+
readonly userPushNotificationToken: {
|
|
2378
|
+
name: "userPushNotificationToken";
|
|
2379
|
+
columns: {
|
|
2380
|
+
readonly createdAt: {
|
|
2381
|
+
type: "number";
|
|
2382
|
+
optional: false;
|
|
2383
|
+
customType: number;
|
|
2384
|
+
} & {
|
|
2385
|
+
serverName: string;
|
|
2386
|
+
};
|
|
2387
|
+
readonly id: {
|
|
2388
|
+
type: "string";
|
|
2389
|
+
optional: false;
|
|
2390
|
+
customType: string;
|
|
2391
|
+
};
|
|
2392
|
+
readonly token: {
|
|
2393
|
+
type: "string";
|
|
2394
|
+
optional: false;
|
|
2395
|
+
customType: string;
|
|
2396
|
+
};
|
|
2397
|
+
readonly userId: {
|
|
2398
|
+
type: "string";
|
|
2399
|
+
optional: false;
|
|
2400
|
+
customType: string;
|
|
2401
|
+
} & {
|
|
2402
|
+
serverName: string;
|
|
2403
|
+
};
|
|
2404
|
+
};
|
|
2405
|
+
primaryKey: readonly [string, ...string[]];
|
|
2406
|
+
} & {
|
|
2407
|
+
primaryKey: ["id"];
|
|
2408
|
+
};
|
|
2409
|
+
readonly contact: {
|
|
2410
|
+
name: "contact";
|
|
2411
|
+
columns: {
|
|
2412
|
+
readonly emailAddress: {
|
|
2413
|
+
type: "string";
|
|
2414
|
+
optional: false;
|
|
2415
|
+
customType: string;
|
|
2416
|
+
} & {
|
|
2417
|
+
serverName: string;
|
|
2418
|
+
};
|
|
2419
|
+
readonly id: {
|
|
2420
|
+
type: "string";
|
|
2421
|
+
optional: false;
|
|
2422
|
+
customType: string;
|
|
2423
|
+
};
|
|
2424
|
+
readonly name: Omit<{
|
|
2425
|
+
type: "string";
|
|
2426
|
+
optional: false;
|
|
2427
|
+
customType: string;
|
|
2428
|
+
}, "optional"> & {
|
|
2429
|
+
optional: true;
|
|
2430
|
+
};
|
|
2431
|
+
readonly userId: {
|
|
2432
|
+
type: "string";
|
|
2433
|
+
optional: false;
|
|
2434
|
+
customType: string;
|
|
2435
|
+
} & {
|
|
2436
|
+
serverName: string;
|
|
2437
|
+
};
|
|
2438
|
+
};
|
|
2439
|
+
primaryKey: readonly [string, ...string[]];
|
|
2440
|
+
} & {
|
|
2441
|
+
primaryKey: ["id"];
|
|
2442
|
+
};
|
|
2443
|
+
readonly account: {
|
|
2444
|
+
name: "account";
|
|
2445
|
+
columns: {
|
|
2446
|
+
readonly color: {
|
|
2447
|
+
type: "string";
|
|
2448
|
+
optional: false;
|
|
2449
|
+
customType: string;
|
|
2450
|
+
};
|
|
2451
|
+
readonly displayName: Omit<{
|
|
2452
|
+
type: "string";
|
|
2453
|
+
optional: false;
|
|
2454
|
+
customType: string;
|
|
2455
|
+
}, "optional"> & {
|
|
2456
|
+
optional: true;
|
|
2457
|
+
} & {
|
|
2458
|
+
serverName: string;
|
|
2459
|
+
};
|
|
2460
|
+
readonly id: {
|
|
2461
|
+
type: "string";
|
|
2462
|
+
optional: false;
|
|
2463
|
+
customType: string;
|
|
2464
|
+
};
|
|
2465
|
+
readonly imapConnectionStatus: {
|
|
2466
|
+
type: "string";
|
|
2467
|
+
optional: false;
|
|
2468
|
+
customType: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
|
|
2469
|
+
} & {
|
|
2470
|
+
serverName: string;
|
|
2471
|
+
};
|
|
2472
|
+
readonly mailProcessedCount: {
|
|
2473
|
+
type: "number";
|
|
2474
|
+
optional: false;
|
|
2475
|
+
customType: number;
|
|
2476
|
+
} & {
|
|
2477
|
+
serverName: string;
|
|
2478
|
+
};
|
|
2479
|
+
readonly mailTotalCount: {
|
|
2480
|
+
type: "number";
|
|
2481
|
+
optional: false;
|
|
2482
|
+
customType: number;
|
|
2483
|
+
} & {
|
|
2484
|
+
serverName: string;
|
|
2485
|
+
};
|
|
2486
|
+
readonly primaryAliasId: Omit<{
|
|
2487
|
+
type: "string";
|
|
2488
|
+
optional: false;
|
|
2489
|
+
customType: string;
|
|
2490
|
+
}, "optional"> & {
|
|
2491
|
+
optional: true;
|
|
2492
|
+
} & {
|
|
2493
|
+
serverName: string;
|
|
2494
|
+
};
|
|
2495
|
+
readonly userId: {
|
|
2496
|
+
type: "string";
|
|
2497
|
+
optional: false;
|
|
2498
|
+
customType: string;
|
|
2499
|
+
} & {
|
|
2500
|
+
serverName: string;
|
|
2501
|
+
};
|
|
2502
|
+
};
|
|
2503
|
+
primaryKey: readonly [string, ...string[]];
|
|
2504
|
+
} & {
|
|
2505
|
+
primaryKey: ["id"];
|
|
2506
|
+
};
|
|
2507
|
+
readonly accountAlias: {
|
|
2508
|
+
name: "accountAlias";
|
|
2509
|
+
columns: {
|
|
2510
|
+
readonly accountId: {
|
|
2511
|
+
type: "string";
|
|
2512
|
+
optional: false;
|
|
2513
|
+
customType: string;
|
|
2514
|
+
} & {
|
|
2515
|
+
serverName: string;
|
|
2516
|
+
};
|
|
2517
|
+
readonly emailAddress: {
|
|
2518
|
+
type: "string";
|
|
2519
|
+
optional: false;
|
|
2520
|
+
customType: string;
|
|
2521
|
+
} & {
|
|
2522
|
+
serverName: string;
|
|
2523
|
+
};
|
|
2524
|
+
readonly id: {
|
|
2525
|
+
type: "string";
|
|
2526
|
+
optional: false;
|
|
2527
|
+
customType: string;
|
|
2528
|
+
};
|
|
2529
|
+
readonly isPrimary: {
|
|
2530
|
+
type: "boolean";
|
|
2531
|
+
optional: false;
|
|
2532
|
+
customType: boolean;
|
|
2533
|
+
} & {
|
|
2534
|
+
serverName: string;
|
|
2535
|
+
};
|
|
2536
|
+
readonly name: Omit<{
|
|
2537
|
+
type: "string";
|
|
2538
|
+
optional: false;
|
|
2539
|
+
customType: string;
|
|
2540
|
+
}, "optional"> & {
|
|
2541
|
+
optional: true;
|
|
2542
|
+
};
|
|
2543
|
+
};
|
|
2544
|
+
primaryKey: readonly [string, ...string[]];
|
|
2545
|
+
} & {
|
|
2546
|
+
primaryKey: ["id"];
|
|
2547
|
+
};
|
|
2548
|
+
readonly accountLabel: {
|
|
2549
|
+
name: "accountLabel";
|
|
2550
|
+
columns: {
|
|
2551
|
+
readonly accountId: {
|
|
2552
|
+
type: "string";
|
|
2553
|
+
optional: false;
|
|
2554
|
+
customType: string;
|
|
2555
|
+
} & {
|
|
2556
|
+
serverName: string;
|
|
2557
|
+
};
|
|
2558
|
+
readonly id: {
|
|
2559
|
+
type: "string";
|
|
2560
|
+
optional: false;
|
|
2561
|
+
customType: string;
|
|
2562
|
+
};
|
|
2563
|
+
readonly name: Omit<{
|
|
2564
|
+
type: "string";
|
|
2565
|
+
optional: false;
|
|
2566
|
+
customType: string;
|
|
2567
|
+
}, "optional"> & {
|
|
2568
|
+
optional: true;
|
|
2569
|
+
};
|
|
2570
|
+
readonly path: {
|
|
2571
|
+
type: "string";
|
|
2572
|
+
optional: false;
|
|
2573
|
+
customType: string;
|
|
2574
|
+
};
|
|
2575
|
+
readonly specialUse: Omit<{
|
|
2576
|
+
type: "string";
|
|
2577
|
+
optional: false;
|
|
2578
|
+
customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
|
|
2579
|
+
}, "optional"> & {
|
|
2580
|
+
optional: true;
|
|
2581
|
+
} & {
|
|
2582
|
+
serverName: string;
|
|
2583
|
+
};
|
|
2584
|
+
readonly uidValidity: {
|
|
2585
|
+
type: "number";
|
|
2586
|
+
optional: false;
|
|
2587
|
+
customType: number;
|
|
2588
|
+
} & {
|
|
2589
|
+
serverName: string;
|
|
2590
|
+
};
|
|
2591
|
+
readonly unreadCount: {
|
|
2592
|
+
type: "number";
|
|
2593
|
+
optional: false;
|
|
2594
|
+
customType: number;
|
|
2595
|
+
} & {
|
|
2596
|
+
serverName: string;
|
|
2597
|
+
};
|
|
2598
|
+
};
|
|
2599
|
+
primaryKey: readonly [string, ...string[]];
|
|
2600
|
+
} & {
|
|
2601
|
+
primaryKey: ["id"];
|
|
2602
|
+
};
|
|
2603
|
+
readonly draft: {
|
|
2604
|
+
name: "draft";
|
|
2605
|
+
columns: {
|
|
2606
|
+
readonly accountId: {
|
|
2607
|
+
type: "string";
|
|
2608
|
+
optional: false;
|
|
2609
|
+
customType: string;
|
|
2610
|
+
} & {
|
|
2611
|
+
serverName: string;
|
|
2612
|
+
};
|
|
2613
|
+
readonly body: {
|
|
2614
|
+
type: "json";
|
|
2615
|
+
optional: false;
|
|
2616
|
+
customType: {
|
|
2617
|
+
content: string;
|
|
2618
|
+
to: string[];
|
|
2619
|
+
cc: string[];
|
|
2620
|
+
bcc: string[];
|
|
2621
|
+
};
|
|
2622
|
+
};
|
|
2623
|
+
readonly error: Omit<{
|
|
2624
|
+
type: "string";
|
|
2625
|
+
optional: false;
|
|
2626
|
+
customType: string;
|
|
2627
|
+
}, "optional"> & {
|
|
2628
|
+
optional: true;
|
|
2629
|
+
};
|
|
2630
|
+
readonly fromAliasId: Omit<{
|
|
2631
|
+
type: "string";
|
|
2632
|
+
optional: false;
|
|
2633
|
+
customType: string;
|
|
2634
|
+
}, "optional"> & {
|
|
2635
|
+
optional: true;
|
|
2636
|
+
} & {
|
|
2637
|
+
serverName: string;
|
|
2638
|
+
};
|
|
2639
|
+
readonly fromEmail: {
|
|
2640
|
+
type: "string";
|
|
2641
|
+
optional: false;
|
|
2642
|
+
customType: string;
|
|
2643
|
+
} & {
|
|
2644
|
+
serverName: string;
|
|
2645
|
+
};
|
|
2646
|
+
readonly fromName: Omit<{
|
|
2647
|
+
type: "string";
|
|
2648
|
+
optional: false;
|
|
2649
|
+
customType: string;
|
|
2650
|
+
}, "optional"> & {
|
|
2651
|
+
optional: true;
|
|
2652
|
+
} & {
|
|
2653
|
+
serverName: string;
|
|
2654
|
+
};
|
|
2655
|
+
readonly id: {
|
|
2656
|
+
type: "string";
|
|
2657
|
+
optional: false;
|
|
2658
|
+
customType: string;
|
|
2659
|
+
};
|
|
2660
|
+
readonly referencedMessageId: Omit<{
|
|
2661
|
+
type: "string";
|
|
2662
|
+
optional: false;
|
|
2663
|
+
customType: string;
|
|
2664
|
+
}, "optional"> & {
|
|
2665
|
+
optional: true;
|
|
2666
|
+
} & {
|
|
2667
|
+
serverName: string;
|
|
2668
|
+
};
|
|
2669
|
+
readonly scheduledFor: Omit<{
|
|
2670
|
+
type: "number";
|
|
2671
|
+
optional: false;
|
|
2672
|
+
customType: number;
|
|
2673
|
+
}, "optional"> & {
|
|
2674
|
+
optional: true;
|
|
2675
|
+
} & {
|
|
2676
|
+
serverName: string;
|
|
2677
|
+
};
|
|
2678
|
+
readonly status: {
|
|
2679
|
+
type: "string";
|
|
2680
|
+
optional: false;
|
|
2681
|
+
customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
2682
|
+
};
|
|
2683
|
+
readonly subject: Omit<{
|
|
2684
|
+
type: "string";
|
|
2685
|
+
optional: false;
|
|
2686
|
+
customType: string;
|
|
2687
|
+
}, "optional"> & {
|
|
2688
|
+
optional: true;
|
|
2689
|
+
};
|
|
2690
|
+
readonly type: {
|
|
2691
|
+
type: "string";
|
|
2692
|
+
optional: false;
|
|
2693
|
+
customType: "NEW" | "REPLY" | "FORWARD";
|
|
2694
|
+
};
|
|
2695
|
+
readonly updatedAt: {
|
|
2696
|
+
type: "number";
|
|
2697
|
+
optional: false;
|
|
2698
|
+
customType: number;
|
|
2699
|
+
} & {
|
|
2700
|
+
serverName: string;
|
|
2701
|
+
};
|
|
2702
|
+
readonly userId: {
|
|
2703
|
+
type: "string";
|
|
2704
|
+
optional: false;
|
|
2705
|
+
customType: string;
|
|
2706
|
+
} & {
|
|
2707
|
+
serverName: string;
|
|
2708
|
+
};
|
|
2709
|
+
};
|
|
2710
|
+
primaryKey: readonly [string, ...string[]];
|
|
2711
|
+
} & {
|
|
2712
|
+
primaryKey: ["id"];
|
|
2713
|
+
};
|
|
2714
|
+
readonly draftAttachment: {
|
|
2715
|
+
name: "draftAttachment";
|
|
2716
|
+
columns: {
|
|
2717
|
+
readonly draftId: {
|
|
2718
|
+
type: "string";
|
|
2719
|
+
optional: false;
|
|
2720
|
+
customType: string;
|
|
2721
|
+
} & {
|
|
2722
|
+
serverName: string;
|
|
2723
|
+
};
|
|
2724
|
+
readonly fileName: {
|
|
2725
|
+
type: "string";
|
|
2726
|
+
optional: false;
|
|
2727
|
+
customType: string;
|
|
2728
|
+
} & {
|
|
2729
|
+
serverName: string;
|
|
2730
|
+
};
|
|
2731
|
+
readonly id: {
|
|
2732
|
+
type: "string";
|
|
2733
|
+
optional: false;
|
|
2734
|
+
customType: string;
|
|
2735
|
+
};
|
|
2736
|
+
readonly mimeType: {
|
|
2737
|
+
type: "string";
|
|
2738
|
+
optional: false;
|
|
2739
|
+
customType: string;
|
|
2740
|
+
} & {
|
|
2741
|
+
serverName: string;
|
|
2742
|
+
};
|
|
2743
|
+
readonly status: {
|
|
2744
|
+
type: "string";
|
|
2745
|
+
optional: false;
|
|
2746
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
2747
|
+
} & {
|
|
2748
|
+
serverName: string;
|
|
2749
|
+
};
|
|
2750
|
+
readonly totalSize: {
|
|
2751
|
+
type: "number";
|
|
2752
|
+
optional: false;
|
|
2753
|
+
customType: number;
|
|
2754
|
+
} & {
|
|
2755
|
+
serverName: string;
|
|
2756
|
+
};
|
|
2757
|
+
};
|
|
2758
|
+
primaryKey: readonly [string, ...string[]];
|
|
2759
|
+
} & {
|
|
2760
|
+
primaryKey: ["id"];
|
|
2761
|
+
};
|
|
2762
|
+
readonly thread: {
|
|
2763
|
+
name: "thread";
|
|
2764
|
+
columns: {
|
|
2765
|
+
readonly accountId: {
|
|
2766
|
+
type: "string";
|
|
2767
|
+
optional: false;
|
|
2768
|
+
customType: string;
|
|
2769
|
+
} & {
|
|
2770
|
+
serverName: string;
|
|
2771
|
+
};
|
|
2772
|
+
readonly flagged: {
|
|
2773
|
+
type: "boolean";
|
|
2774
|
+
optional: false;
|
|
2775
|
+
customType: boolean;
|
|
2776
|
+
};
|
|
2777
|
+
readonly id: {
|
|
2778
|
+
type: "string";
|
|
2779
|
+
optional: false;
|
|
2780
|
+
customType: string;
|
|
2781
|
+
};
|
|
2782
|
+
readonly labelIdList: {
|
|
2783
|
+
type: "string";
|
|
2784
|
+
optional: false;
|
|
2785
|
+
customType: string;
|
|
2786
|
+
} & {
|
|
2787
|
+
serverName: string;
|
|
2788
|
+
};
|
|
2789
|
+
readonly latestMessageDate: {
|
|
2790
|
+
type: "number";
|
|
2791
|
+
optional: false;
|
|
2792
|
+
customType: number;
|
|
2793
|
+
} & {
|
|
2794
|
+
serverName: string;
|
|
2795
|
+
};
|
|
2796
|
+
readonly seen: {
|
|
2797
|
+
type: "boolean";
|
|
2798
|
+
optional: false;
|
|
2799
|
+
customType: boolean;
|
|
2800
|
+
};
|
|
2801
|
+
readonly userId: {
|
|
2802
|
+
type: "string";
|
|
2803
|
+
optional: false;
|
|
2804
|
+
customType: string;
|
|
2805
|
+
} & {
|
|
2806
|
+
serverName: string;
|
|
2807
|
+
};
|
|
2808
|
+
readonly words: {
|
|
2809
|
+
type: "string";
|
|
2810
|
+
optional: false;
|
|
2811
|
+
customType: string;
|
|
2812
|
+
};
|
|
2813
|
+
};
|
|
2814
|
+
primaryKey: readonly [string, ...string[]];
|
|
2815
|
+
} & {
|
|
2816
|
+
primaryKey: ["id"];
|
|
2817
|
+
};
|
|
2818
|
+
readonly threadLabel: {
|
|
2819
|
+
name: "threadLabel";
|
|
2820
|
+
columns: {
|
|
2821
|
+
readonly accountId: {
|
|
2822
|
+
type: "string";
|
|
2823
|
+
optional: false;
|
|
2824
|
+
customType: string;
|
|
2825
|
+
} & {
|
|
2826
|
+
serverName: string;
|
|
2827
|
+
};
|
|
2828
|
+
readonly labelId: {
|
|
2829
|
+
type: "string";
|
|
2830
|
+
optional: false;
|
|
2831
|
+
customType: string;
|
|
2832
|
+
} & {
|
|
2833
|
+
serverName: string;
|
|
2834
|
+
};
|
|
2835
|
+
readonly lastSyncedAt: {
|
|
2836
|
+
type: "number";
|
|
2837
|
+
optional: false;
|
|
2838
|
+
customType: number;
|
|
2839
|
+
} & {
|
|
2840
|
+
serverName: string;
|
|
2841
|
+
};
|
|
2842
|
+
readonly threadId: {
|
|
2843
|
+
type: "string";
|
|
2844
|
+
optional: false;
|
|
2845
|
+
customType: string;
|
|
2846
|
+
} & {
|
|
2847
|
+
serverName: string;
|
|
2848
|
+
};
|
|
2849
|
+
readonly threadMessageId: {
|
|
2850
|
+
type: "string";
|
|
2851
|
+
optional: false;
|
|
2852
|
+
customType: string;
|
|
2853
|
+
} & {
|
|
2854
|
+
serverName: string;
|
|
2855
|
+
};
|
|
2856
|
+
readonly uid: {
|
|
2857
|
+
type: "number";
|
|
2858
|
+
optional: false;
|
|
2859
|
+
customType: number;
|
|
2860
|
+
};
|
|
2861
|
+
readonly uidValidity: {
|
|
2862
|
+
type: "number";
|
|
2863
|
+
optional: false;
|
|
2864
|
+
customType: number;
|
|
2865
|
+
} & {
|
|
2866
|
+
serverName: string;
|
|
2867
|
+
};
|
|
2868
|
+
};
|
|
2869
|
+
primaryKey: readonly [string, ...string[]];
|
|
2870
|
+
} & {
|
|
2871
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
2872
|
+
};
|
|
2873
|
+
readonly threadByLabel: {
|
|
2874
|
+
name: "threadByLabel";
|
|
2875
|
+
columns: {
|
|
2876
|
+
readonly labelId: {
|
|
2877
|
+
type: "string";
|
|
2878
|
+
optional: false;
|
|
2879
|
+
customType: string;
|
|
2880
|
+
} & {
|
|
2881
|
+
serverName: string;
|
|
2882
|
+
};
|
|
2883
|
+
readonly latestMessageDate: {
|
|
2884
|
+
type: "number";
|
|
2885
|
+
optional: false;
|
|
2886
|
+
customType: number;
|
|
2887
|
+
} & {
|
|
2888
|
+
serverName: string;
|
|
2889
|
+
};
|
|
887
2890
|
readonly threadId: {
|
|
888
2891
|
type: "string";
|
|
889
2892
|
optional: false;
|
|
@@ -1209,7 +3212,7 @@ export declare const marcoZero: {
|
|
|
1209
3212
|
}];
|
|
1210
3213
|
threadByLabel: [{
|
|
1211
3214
|
readonly sourceField: string[];
|
|
1212
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
3215
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1213
3216
|
readonly destSchema: "threadByLabel";
|
|
1214
3217
|
readonly cardinality: "many";
|
|
1215
3218
|
}];
|
|
@@ -1304,49 +3307,46 @@ export declare const marcoZero: {
|
|
|
1304
3307
|
};
|
|
1305
3308
|
enableLegacyQueries: boolean | undefined;
|
|
1306
3309
|
enableLegacyMutators: false;
|
|
1307
|
-
}, "
|
|
1308
|
-
readonly
|
|
1309
|
-
readonly
|
|
3310
|
+
}, "draft", {
|
|
3311
|
+
readonly accountId: string;
|
|
3312
|
+
readonly body: {
|
|
3313
|
+
content: string;
|
|
3314
|
+
to: string[];
|
|
3315
|
+
cc: string[];
|
|
3316
|
+
bcc: string[];
|
|
3317
|
+
};
|
|
3318
|
+
readonly error: string | null;
|
|
3319
|
+
readonly fromAliasId: string | null;
|
|
3320
|
+
readonly fromEmail: string;
|
|
3321
|
+
readonly fromName: string | null;
|
|
1310
3322
|
readonly id: string;
|
|
1311
|
-
readonly
|
|
1312
|
-
readonly
|
|
1313
|
-
readonly
|
|
1314
|
-
readonly
|
|
3323
|
+
readonly referencedMessageId: string | null;
|
|
3324
|
+
readonly scheduledFor: number | null;
|
|
3325
|
+
readonly status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
3326
|
+
readonly subject: string | null;
|
|
3327
|
+
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
3328
|
+
readonly updatedAt: number;
|
|
1315
3329
|
readonly userId: string;
|
|
1316
3330
|
} & {
|
|
1317
|
-
readonly
|
|
1318
|
-
readonly
|
|
1319
|
-
readonly
|
|
1320
|
-
readonly id: string;
|
|
1321
|
-
readonly isPrimary: boolean;
|
|
1322
|
-
readonly name: string | null;
|
|
1323
|
-
}[];
|
|
1324
|
-
} & {
|
|
1325
|
-
readonly primaryAlias: {
|
|
1326
|
-
readonly accountId: string;
|
|
1327
|
-
readonly emailAddress: string;
|
|
1328
|
-
readonly id: string;
|
|
1329
|
-
readonly isPrimary: boolean;
|
|
1330
|
-
readonly name: string | null;
|
|
1331
|
-
} | undefined;
|
|
1332
|
-
} & {
|
|
1333
|
-
readonly labels: readonly {
|
|
1334
|
-
readonly accountId: string;
|
|
3331
|
+
readonly attachments: readonly {
|
|
3332
|
+
readonly draftId: string;
|
|
3333
|
+
readonly fileName: string;
|
|
1335
3334
|
readonly id: string;
|
|
1336
|
-
readonly
|
|
1337
|
-
readonly
|
|
1338
|
-
readonly
|
|
1339
|
-
readonly uidValidity: number;
|
|
1340
|
-
readonly unreadCount: number;
|
|
3335
|
+
readonly mimeType: string;
|
|
3336
|
+
readonly status: "PENDING" | "COMPLETE" | "FAILED";
|
|
3337
|
+
readonly totalSize: number;
|
|
1341
3338
|
}[];
|
|
1342
3339
|
}>>;
|
|
1343
|
-
readonly
|
|
3340
|
+
readonly getThreadList: import("@rocicorp/zero").SyncedQuery<"getThreadList", import("..").MarcoSyncedQueryContext, true, [{
|
|
1344
3341
|
limit: number;
|
|
1345
3342
|
search?: string;
|
|
1346
3343
|
where?: {
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
3344
|
+
flagged?: boolean;
|
|
3345
|
+
id?: string;
|
|
3346
|
+
labelIds?: string[];
|
|
3347
|
+
messageIds?: string[];
|
|
3348
|
+
participants?: string[];
|
|
3349
|
+
seen?: boolean;
|
|
1350
3350
|
};
|
|
1351
3351
|
}], import("@rocicorp/zero").Query<{
|
|
1352
3352
|
tables: {
|
|
@@ -1892,6 +3892,13 @@ export declare const marcoZero: {
|
|
|
1892
3892
|
} & {
|
|
1893
3893
|
serverName: string;
|
|
1894
3894
|
};
|
|
3895
|
+
readonly latestMessageDate: {
|
|
3896
|
+
type: "number";
|
|
3897
|
+
optional: false;
|
|
3898
|
+
customType: number;
|
|
3899
|
+
} & {
|
|
3900
|
+
serverName: string;
|
|
3901
|
+
};
|
|
1895
3902
|
readonly threadId: {
|
|
1896
3903
|
type: "string";
|
|
1897
3904
|
optional: false;
|
|
@@ -2217,7 +4224,7 @@ export declare const marcoZero: {
|
|
|
2217
4224
|
}];
|
|
2218
4225
|
threadByLabel: [{
|
|
2219
4226
|
readonly sourceField: string[];
|
|
2220
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
4227
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
2221
4228
|
readonly destSchema: "threadByLabel";
|
|
2222
4229
|
readonly cardinality: "many";
|
|
2223
4230
|
}];
|
|
@@ -2312,17 +4319,41 @@ export declare const marcoZero: {
|
|
|
2312
4319
|
};
|
|
2313
4320
|
enableLegacyQueries: boolean | undefined;
|
|
2314
4321
|
enableLegacyMutators: false;
|
|
2315
|
-
}, "
|
|
2316
|
-
readonly
|
|
2317
|
-
readonly
|
|
2318
|
-
readonly
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
4322
|
+
}, "threadByLabel", {
|
|
4323
|
+
readonly labelId: string;
|
|
4324
|
+
readonly latestMessageDate: number;
|
|
4325
|
+
readonly threadId: string;
|
|
4326
|
+
} & {
|
|
4327
|
+
readonly thread: ({
|
|
4328
|
+
readonly accountId: string;
|
|
4329
|
+
readonly flagged: boolean;
|
|
4330
|
+
readonly id: string;
|
|
4331
|
+
readonly labelIdList: string;
|
|
4332
|
+
readonly latestMessageDate: number;
|
|
4333
|
+
readonly seen: boolean;
|
|
4334
|
+
readonly userId: string;
|
|
4335
|
+
readonly words: string;
|
|
4336
|
+
} & {
|
|
4337
|
+
readonly messages: readonly ({
|
|
4338
|
+
readonly accountId: string;
|
|
4339
|
+
readonly envelopeDate: number;
|
|
4340
|
+
readonly envelopeSubject: string | null;
|
|
4341
|
+
readonly id: string;
|
|
4342
|
+
readonly previewText: string;
|
|
4343
|
+
readonly senderEmail: string;
|
|
4344
|
+
readonly senderName: string | null;
|
|
4345
|
+
readonly threadId: string;
|
|
4346
|
+
} & {
|
|
4347
|
+
readonly attachments: readonly {
|
|
4348
|
+
readonly fileName: string;
|
|
4349
|
+
readonly id: string;
|
|
4350
|
+
readonly mimeType: string;
|
|
4351
|
+
readonly size: number;
|
|
4352
|
+
readonly threadMessageId: string;
|
|
4353
|
+
}[];
|
|
4354
|
+
})[];
|
|
4355
|
+
}) | undefined;
|
|
4356
|
+
}> | import("@rocicorp/zero").Query<{
|
|
2326
4357
|
tables: {
|
|
2327
4358
|
readonly user: {
|
|
2328
4359
|
name: "user";
|
|
@@ -2866,6 +4897,13 @@ export declare const marcoZero: {
|
|
|
2866
4897
|
} & {
|
|
2867
4898
|
serverName: string;
|
|
2868
4899
|
};
|
|
4900
|
+
readonly latestMessageDate: {
|
|
4901
|
+
type: "number";
|
|
4902
|
+
optional: false;
|
|
4903
|
+
customType: number;
|
|
4904
|
+
} & {
|
|
4905
|
+
serverName: string;
|
|
4906
|
+
};
|
|
2869
4907
|
readonly threadId: {
|
|
2870
4908
|
type: "string";
|
|
2871
4909
|
optional: false;
|
|
@@ -3191,7 +5229,7 @@ export declare const marcoZero: {
|
|
|
3191
5229
|
}];
|
|
3192
5230
|
threadByLabel: [{
|
|
3193
5231
|
readonly sourceField: string[];
|
|
3194
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
5232
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
3195
5233
|
readonly destSchema: "threadByLabel";
|
|
3196
5234
|
readonly cardinality: "many";
|
|
3197
5235
|
}];
|
|
@@ -3286,37 +5324,36 @@ export declare const marcoZero: {
|
|
|
3286
5324
|
};
|
|
3287
5325
|
enableLegacyQueries: boolean | undefined;
|
|
3288
5326
|
enableLegacyMutators: false;
|
|
3289
|
-
}, "
|
|
5327
|
+
}, "thread", {
|
|
3290
5328
|
readonly accountId: string;
|
|
3291
|
-
readonly
|
|
3292
|
-
content: string;
|
|
3293
|
-
to: string[];
|
|
3294
|
-
cc: string[];
|
|
3295
|
-
bcc: string[];
|
|
3296
|
-
};
|
|
3297
|
-
readonly error: string | null;
|
|
3298
|
-
readonly fromAliasId: string | null;
|
|
3299
|
-
readonly fromEmail: string;
|
|
3300
|
-
readonly fromName: string | null;
|
|
5329
|
+
readonly flagged: boolean;
|
|
3301
5330
|
readonly id: string;
|
|
3302
|
-
readonly
|
|
3303
|
-
readonly
|
|
3304
|
-
readonly
|
|
3305
|
-
readonly subject: string | null;
|
|
3306
|
-
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
3307
|
-
readonly updatedAt: number;
|
|
5331
|
+
readonly labelIdList: string;
|
|
5332
|
+
readonly latestMessageDate: number;
|
|
5333
|
+
readonly seen: boolean;
|
|
3308
5334
|
readonly userId: string;
|
|
5335
|
+
readonly words: string;
|
|
3309
5336
|
} & {
|
|
3310
|
-
readonly
|
|
3311
|
-
readonly
|
|
3312
|
-
readonly
|
|
5337
|
+
readonly messages: readonly ({
|
|
5338
|
+
readonly accountId: string;
|
|
5339
|
+
readonly envelopeDate: number;
|
|
5340
|
+
readonly envelopeSubject: string | null;
|
|
3313
5341
|
readonly id: string;
|
|
3314
|
-
readonly
|
|
3315
|
-
readonly
|
|
3316
|
-
readonly
|
|
3317
|
-
|
|
5342
|
+
readonly previewText: string;
|
|
5343
|
+
readonly senderEmail: string;
|
|
5344
|
+
readonly senderName: string | null;
|
|
5345
|
+
readonly threadId: string;
|
|
5346
|
+
} & {
|
|
5347
|
+
readonly attachments: readonly {
|
|
5348
|
+
readonly fileName: string;
|
|
5349
|
+
readonly id: string;
|
|
5350
|
+
readonly mimeType: string;
|
|
5351
|
+
readonly size: number;
|
|
5352
|
+
readonly threadMessageId: string;
|
|
5353
|
+
}[];
|
|
5354
|
+
})[];
|
|
3318
5355
|
}>>;
|
|
3319
|
-
readonly
|
|
5356
|
+
readonly getThreads: import("@rocicorp/zero").SyncedQuery<"getThreads", import("..").MarcoSyncedQueryContext, true, [{
|
|
3320
5357
|
limit: number;
|
|
3321
5358
|
search?: string;
|
|
3322
5359
|
where?: {
|
|
@@ -3871,6 +5908,13 @@ export declare const marcoZero: {
|
|
|
3871
5908
|
} & {
|
|
3872
5909
|
serverName: string;
|
|
3873
5910
|
};
|
|
5911
|
+
readonly latestMessageDate: {
|
|
5912
|
+
type: "number";
|
|
5913
|
+
optional: false;
|
|
5914
|
+
customType: number;
|
|
5915
|
+
} & {
|
|
5916
|
+
serverName: string;
|
|
5917
|
+
};
|
|
3874
5918
|
readonly threadId: {
|
|
3875
5919
|
type: "string";
|
|
3876
5920
|
optional: false;
|
|
@@ -4196,7 +6240,7 @@ export declare const marcoZero: {
|
|
|
4196
6240
|
}];
|
|
4197
6241
|
threadByLabel: [{
|
|
4198
6242
|
readonly sourceField: string[];
|
|
4199
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
6243
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
4200
6244
|
readonly destSchema: "threadByLabel";
|
|
4201
6245
|
readonly cardinality: "many";
|
|
4202
6246
|
}];
|
|
@@ -4291,47 +6335,49 @@ export declare const marcoZero: {
|
|
|
4291
6335
|
};
|
|
4292
6336
|
enableLegacyQueries: boolean | undefined;
|
|
4293
6337
|
enableLegacyMutators: false;
|
|
4294
|
-
}, "
|
|
4295
|
-
readonly
|
|
4296
|
-
readonly flagged: boolean;
|
|
4297
|
-
readonly id: string;
|
|
4298
|
-
readonly labelIdList: string;
|
|
6338
|
+
}, "threadByLabel", {
|
|
6339
|
+
readonly labelId: string;
|
|
4299
6340
|
readonly latestMessageDate: number;
|
|
4300
|
-
readonly
|
|
4301
|
-
readonly userId: string;
|
|
4302
|
-
readonly words: string;
|
|
6341
|
+
readonly threadId: string;
|
|
4303
6342
|
} & {
|
|
4304
|
-
readonly
|
|
6343
|
+
readonly thread: ({
|
|
4305
6344
|
readonly accountId: string;
|
|
4306
|
-
readonly
|
|
4307
|
-
readonly envelopeSubject: string | null;
|
|
6345
|
+
readonly flagged: boolean;
|
|
4308
6346
|
readonly id: string;
|
|
4309
|
-
readonly
|
|
4310
|
-
readonly
|
|
4311
|
-
readonly
|
|
4312
|
-
readonly
|
|
6347
|
+
readonly labelIdList: string;
|
|
6348
|
+
readonly latestMessageDate: number;
|
|
6349
|
+
readonly seen: boolean;
|
|
6350
|
+
readonly userId: string;
|
|
6351
|
+
readonly words: string;
|
|
4313
6352
|
} & {
|
|
4314
|
-
readonly
|
|
4315
|
-
readonly
|
|
6353
|
+
readonly messages: readonly ({
|
|
6354
|
+
readonly accountId: string;
|
|
6355
|
+
readonly envelopeDate: number;
|
|
6356
|
+
readonly envelopeSubject: string | null;
|
|
4316
6357
|
readonly id: string;
|
|
4317
|
-
readonly
|
|
4318
|
-
readonly
|
|
4319
|
-
readonly
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
6358
|
+
readonly previewText: string;
|
|
6359
|
+
readonly senderEmail: string;
|
|
6360
|
+
readonly senderName: string | null;
|
|
6361
|
+
readonly threadId: string;
|
|
6362
|
+
} & {
|
|
6363
|
+
readonly recipients: readonly {
|
|
6364
|
+
readonly emailAddress: string;
|
|
6365
|
+
readonly id: string;
|
|
6366
|
+
readonly name: string | null;
|
|
6367
|
+
readonly threadMessageId: string;
|
|
6368
|
+
readonly type: "bcc" | "cc" | "to" | "replyTo";
|
|
6369
|
+
}[];
|
|
6370
|
+
} & {
|
|
6371
|
+
readonly attachments: readonly {
|
|
6372
|
+
readonly fileName: string;
|
|
6373
|
+
readonly id: string;
|
|
6374
|
+
readonly mimeType: string;
|
|
6375
|
+
readonly size: number;
|
|
6376
|
+
readonly threadMessageId: string;
|
|
6377
|
+
}[];
|
|
6378
|
+
})[];
|
|
6379
|
+
}) | undefined;
|
|
6380
|
+
}> | import("@rocicorp/zero").Query<{
|
|
4335
6381
|
tables: {
|
|
4336
6382
|
readonly user: {
|
|
4337
6383
|
name: "user";
|
|
@@ -4875,6 +6921,13 @@ export declare const marcoZero: {
|
|
|
4875
6921
|
} & {
|
|
4876
6922
|
serverName: string;
|
|
4877
6923
|
};
|
|
6924
|
+
readonly latestMessageDate: {
|
|
6925
|
+
type: "number";
|
|
6926
|
+
optional: false;
|
|
6927
|
+
customType: number;
|
|
6928
|
+
} & {
|
|
6929
|
+
serverName: string;
|
|
6930
|
+
};
|
|
4878
6931
|
readonly threadId: {
|
|
4879
6932
|
type: "string";
|
|
4880
6933
|
optional: false;
|
|
@@ -5200,7 +7253,7 @@ export declare const marcoZero: {
|
|
|
5200
7253
|
}];
|
|
5201
7254
|
threadByLabel: [{
|
|
5202
7255
|
readonly sourceField: string[];
|
|
5203
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
7256
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
5204
7257
|
readonly destSchema: "threadByLabel";
|
|
5205
7258
|
readonly cardinality: "many";
|
|
5206
7259
|
}];
|
|
@@ -5876,6 +7929,13 @@ export declare const marcoZero: {
|
|
|
5876
7929
|
} & {
|
|
5877
7930
|
serverName: string;
|
|
5878
7931
|
};
|
|
7932
|
+
readonly latestMessageDate: {
|
|
7933
|
+
type: "number";
|
|
7934
|
+
optional: false;
|
|
7935
|
+
customType: number;
|
|
7936
|
+
} & {
|
|
7937
|
+
serverName: string;
|
|
7938
|
+
};
|
|
5879
7939
|
readonly threadId: {
|
|
5880
7940
|
type: "string";
|
|
5881
7941
|
optional: false;
|
|
@@ -6201,7 +8261,7 @@ export declare const marcoZero: {
|
|
|
6201
8261
|
}];
|
|
6202
8262
|
threadByLabel: [{
|
|
6203
8263
|
readonly sourceField: string[];
|
|
6204
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
8264
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
6205
8265
|
readonly destSchema: "threadByLabel";
|
|
6206
8266
|
readonly cardinality: "many";
|
|
6207
8267
|
}];
|
|
@@ -6891,6 +8951,13 @@ export declare const marcoZero: {
|
|
|
6891
8951
|
} & {
|
|
6892
8952
|
serverName: string;
|
|
6893
8953
|
};
|
|
8954
|
+
readonly latestMessageDate: {
|
|
8955
|
+
type: "number";
|
|
8956
|
+
optional: false;
|
|
8957
|
+
customType: number;
|
|
8958
|
+
} & {
|
|
8959
|
+
serverName: string;
|
|
8960
|
+
};
|
|
6894
8961
|
readonly threadId: {
|
|
6895
8962
|
type: "string";
|
|
6896
8963
|
optional: false;
|
|
@@ -7216,7 +9283,7 @@ export declare const marcoZero: {
|
|
|
7216
9283
|
}];
|
|
7217
9284
|
threadByLabel: [{
|
|
7218
9285
|
readonly sourceField: string[];
|
|
7219
|
-
readonly destField: ("labelId" | "threadId")[];
|
|
9286
|
+
readonly destField: ("latestMessageDate" | "labelId" | "threadId")[];
|
|
7220
9287
|
readonly destSchema: "threadByLabel";
|
|
7221
9288
|
readonly cardinality: "many";
|
|
7222
9289
|
}];
|
|
@@ -7732,6 +9799,13 @@ export declare const marcoZero: {
|
|
|
7732
9799
|
} & {
|
|
7733
9800
|
serverName: string;
|
|
7734
9801
|
};
|
|
9802
|
+
readonly latestMessageDate: {
|
|
9803
|
+
type: "number";
|
|
9804
|
+
optional: false;
|
|
9805
|
+
customType: number;
|
|
9806
|
+
} & {
|
|
9807
|
+
serverName: string;
|
|
9808
|
+
};
|
|
7735
9809
|
readonly threadId: {
|
|
7736
9810
|
type: "string";
|
|
7737
9811
|
optional: false;
|