@marcoappio/marco-config 2.0.507 → 2.0.509
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/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/types/Zero.d.ts +0 -17
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/zero/index.d.ts +2916 -7769
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +6 -16
- package/dist/zero/{queries/getThreadList.d.ts → mutators.d.ts} +572 -169
- package/dist/zero/{queries/getThreads.d.ts.map → mutators.d.ts.map} +1 -1
- package/dist/zero/mutators.js +659 -0
- package/dist/zero/mutators.test.d.ts +2 -0
- package/dist/zero/mutators.test.d.ts.map +1 -0
- package/dist/zero/mutators.test.js +603 -0
- package/dist/zero/{queries/getThreads.d.ts → queries.d.ts} +481 -196
- package/dist/zero/{queries/getThread.d.ts.map → queries.d.ts.map} +1 -1
- package/dist/zero/queries.js +168 -0
- package/dist/zero/schema.d.ts +138 -133
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -1
- package/package.json +3 -3
- 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.d.ts +0 -4
- package/dist/zero/mutators/accountMutators/accountMutators.d.ts.map +0 -1
- package/dist/zero/mutators/accountMutators/accountMutators.js +0 -103
- 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/accountMutators/index.d.ts +0 -2
- package/dist/zero/mutators/accountMutators/index.d.ts.map +0 -1
- package/dist/zero/mutators/accountMutators/index.js +0 -1
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts +0 -4
- package/dist/zero/mutators/draftMutators/draftMutators.d.ts.map +0 -1
- package/dist/zero/mutators/draftMutators/draftMutators.js +0 -142
- 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/draftMutators/index.d.ts +0 -2
- package/dist/zero/mutators/draftMutators/index.d.ts.map +0 -1
- package/dist/zero/mutators/draftMutators/index.js +0 -1
- package/dist/zero/mutators/index.d.ts +0 -3
- package/dist/zero/mutators/index.d.ts.map +0 -1
- package/dist/zero/mutators/index.js +0 -1
- package/dist/zero/mutators/mutators.d.ts +0 -18
- package/dist/zero/mutators/mutators.d.ts.map +0 -1
- package/dist/zero/mutators/mutators.js +0 -39
- package/dist/zero/mutators/threadMutators/index.d.ts +0 -2
- package/dist/zero/mutators/threadMutators/index.d.ts.map +0 -1
- package/dist/zero/mutators/threadMutators/index.js +0 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +0 -8
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +0 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +0 -257
- 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/index.d.ts +0 -2
- package/dist/zero/mutators/userMutators/index.d.ts.map +0 -1
- package/dist/zero/mutators/userMutators/index.js +0 -1
- package/dist/zero/mutators/userMutators/userMutators.d.ts +0 -4
- package/dist/zero/mutators/userMutators/userMutators.d.ts.map +0 -1
- package/dist/zero/mutators/userMutators/userMutators.js +0 -28
- 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
- package/dist/zero/queries/getAccounts.d.ts +0 -1060
- package/dist/zero/queries/getAccounts.d.ts.map +0 -1
- package/dist/zero/queries/getAccounts.js +0 -3
- package/dist/zero/queries/getContacts.d.ts +0 -1040
- package/dist/zero/queries/getContacts.d.ts.map +0 -1
- package/dist/zero/queries/getContacts.js +0 -37
- package/dist/zero/queries/getDrafts.d.ts +0 -1061
- package/dist/zero/queries/getDrafts.d.ts.map +0 -1
- package/dist/zero/queries/getDrafts.js +0 -24
- package/dist/zero/queries/getThread.d.ts +0 -1072
- package/dist/zero/queries/getThread.js +0 -14
- package/dist/zero/queries/getThreadList.d.ts.map +0 -1
- package/dist/zero/queries/getThreadList.js +0 -57
- package/dist/zero/queries/getThreads.js +0 -59
- package/dist/zero/queries/getUser.d.ts +0 -1074
- package/dist/zero/queries/getUser.d.ts.map +0 -1
- package/dist/zero/queries/getUser.js +0 -7
- package/dist/zero/queries/index.d.ts +0 -1031
- package/dist/zero/queries/index.d.ts.map +0 -1
- package/dist/zero/queries/index.js +0 -10
|
@@ -1,17 +1,351 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
labelIds: string[];
|
|
4
|
-
limit: number;
|
|
5
|
-
search?: string;
|
|
6
|
-
where?: {
|
|
7
|
-
flagged?: boolean;
|
|
8
|
-
id?: string;
|
|
9
|
-
messageIds?: string[];
|
|
10
|
-
participants?: string[];
|
|
11
|
-
seen?: boolean;
|
|
12
|
-
};
|
|
1
|
+
type Context = {
|
|
2
|
+
userId: string;
|
|
13
3
|
};
|
|
14
|
-
export declare const
|
|
4
|
+
export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
5
|
+
readonly getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
6
|
+
readonly color: string;
|
|
7
|
+
readonly displayName: string | null;
|
|
8
|
+
readonly id: string;
|
|
9
|
+
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";
|
|
10
|
+
readonly mailProcessedCount: number;
|
|
11
|
+
readonly mailTotalCount: number;
|
|
12
|
+
readonly primaryAliasId: string | null;
|
|
13
|
+
readonly userId: string;
|
|
14
|
+
} & {
|
|
15
|
+
readonly aliases: readonly {
|
|
16
|
+
readonly accountId: string;
|
|
17
|
+
readonly emailAddress: string;
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly isPrimary: boolean;
|
|
20
|
+
readonly name: string | null;
|
|
21
|
+
}[];
|
|
22
|
+
} & {
|
|
23
|
+
readonly primaryAlias: {
|
|
24
|
+
readonly accountId: string;
|
|
25
|
+
readonly emailAddress: string;
|
|
26
|
+
readonly id: string;
|
|
27
|
+
readonly isPrimary: boolean;
|
|
28
|
+
readonly name: string | null;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
readonly labels: readonly {
|
|
32
|
+
readonly accountId: string;
|
|
33
|
+
readonly id: string;
|
|
34
|
+
readonly name: string | null;
|
|
35
|
+
readonly path: string;
|
|
36
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
37
|
+
readonly uidValidity: number;
|
|
38
|
+
readonly unreadCount: number;
|
|
39
|
+
}[];
|
|
40
|
+
}, Context>;
|
|
41
|
+
readonly getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
|
|
42
|
+
limit?: number | undefined;
|
|
43
|
+
search?: string | undefined;
|
|
44
|
+
where?: {
|
|
45
|
+
emailAddress?: string | undefined;
|
|
46
|
+
ids?: string[] | undefined;
|
|
47
|
+
name?: string | undefined;
|
|
48
|
+
} | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
limit: number;
|
|
51
|
+
search?: string | undefined;
|
|
52
|
+
where?: {
|
|
53
|
+
emailAddress?: string | undefined;
|
|
54
|
+
ids?: string[] | undefined;
|
|
55
|
+
name?: string | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
readonly emailAddress: string;
|
|
59
|
+
readonly id: string;
|
|
60
|
+
readonly name: string | null;
|
|
61
|
+
readonly userId: string;
|
|
62
|
+
}, Context>;
|
|
63
|
+
readonly getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
|
|
64
|
+
accountId?: string | undefined;
|
|
65
|
+
limit?: number | undefined;
|
|
66
|
+
status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
|
|
67
|
+
}, {
|
|
68
|
+
accountId?: string | undefined;
|
|
69
|
+
limit: number;
|
|
70
|
+
status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
|
|
71
|
+
}, {
|
|
72
|
+
readonly accountId: string;
|
|
73
|
+
readonly body: {
|
|
74
|
+
content: string;
|
|
75
|
+
to: string[];
|
|
76
|
+
cc: string[];
|
|
77
|
+
bcc: string[];
|
|
78
|
+
};
|
|
79
|
+
readonly error: string | null;
|
|
80
|
+
readonly fromAliasId: string | null;
|
|
81
|
+
readonly fromEmail: string;
|
|
82
|
+
readonly fromName: string | null;
|
|
83
|
+
readonly id: string;
|
|
84
|
+
readonly referencedMessageId: string | null;
|
|
85
|
+
readonly scheduledFor: number | null;
|
|
86
|
+
readonly status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
87
|
+
readonly subject: string | null;
|
|
88
|
+
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
89
|
+
readonly updatedAt: number;
|
|
90
|
+
readonly userId: string;
|
|
91
|
+
} & {
|
|
92
|
+
readonly attachments: readonly {
|
|
93
|
+
readonly draftId: string;
|
|
94
|
+
readonly fileName: string;
|
|
95
|
+
readonly id: string;
|
|
96
|
+
readonly mimeType: string;
|
|
97
|
+
readonly status: "PENDING" | "COMPLETE" | "FAILED";
|
|
98
|
+
readonly totalSize: number;
|
|
99
|
+
}[];
|
|
100
|
+
}, Context>;
|
|
101
|
+
readonly getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
|
|
102
|
+
id: string;
|
|
103
|
+
}, {
|
|
104
|
+
id: string;
|
|
105
|
+
}, ({
|
|
106
|
+
readonly accountId: string;
|
|
107
|
+
readonly flagged: boolean;
|
|
108
|
+
readonly hasAttachments: boolean;
|
|
109
|
+
readonly id: string;
|
|
110
|
+
readonly labelIdList: string;
|
|
111
|
+
readonly latestMessageDate: number;
|
|
112
|
+
readonly latestMessageId: string;
|
|
113
|
+
readonly messageCount: number;
|
|
114
|
+
readonly previewText: string;
|
|
115
|
+
readonly seen: boolean;
|
|
116
|
+
readonly senderEmail: string;
|
|
117
|
+
readonly senderName: string | null;
|
|
118
|
+
readonly subject: string | null;
|
|
119
|
+
readonly userId: string;
|
|
120
|
+
readonly words: string;
|
|
121
|
+
} & {
|
|
122
|
+
readonly messages: readonly ({
|
|
123
|
+
readonly accountId: string;
|
|
124
|
+
readonly envelopeDate: number;
|
|
125
|
+
readonly envelopeSubject: string | null;
|
|
126
|
+
readonly id: string;
|
|
127
|
+
readonly previewText: string;
|
|
128
|
+
readonly senderEmail: string;
|
|
129
|
+
readonly senderName: string | null;
|
|
130
|
+
readonly threadId: string;
|
|
131
|
+
} & {
|
|
132
|
+
readonly recipients: readonly {
|
|
133
|
+
readonly emailAddress: string;
|
|
134
|
+
readonly id: string;
|
|
135
|
+
readonly name: string | null;
|
|
136
|
+
readonly threadMessageId: string;
|
|
137
|
+
readonly type: "bcc" | "cc" | "to" | "replyTo";
|
|
138
|
+
}[];
|
|
139
|
+
} & {
|
|
140
|
+
readonly attachments: readonly {
|
|
141
|
+
readonly fileName: string;
|
|
142
|
+
readonly id: string;
|
|
143
|
+
readonly mimeType: string;
|
|
144
|
+
readonly size: number;
|
|
145
|
+
readonly threadMessageId: string;
|
|
146
|
+
}[];
|
|
147
|
+
})[];
|
|
148
|
+
}) | undefined, Context>;
|
|
149
|
+
readonly getThreadByMessageId: import("@rocicorp/zero").QueryDefinition<"threadMessage", {
|
|
150
|
+
messageId: string;
|
|
151
|
+
}, {
|
|
152
|
+
messageId: string;
|
|
153
|
+
}, ({
|
|
154
|
+
readonly accountId: string;
|
|
155
|
+
readonly envelopeDate: number;
|
|
156
|
+
readonly envelopeSubject: string | null;
|
|
157
|
+
readonly id: string;
|
|
158
|
+
readonly previewText: string;
|
|
159
|
+
readonly senderEmail: string;
|
|
160
|
+
readonly senderName: string | null;
|
|
161
|
+
readonly threadId: string;
|
|
162
|
+
} & {
|
|
163
|
+
readonly thread: {
|
|
164
|
+
readonly accountId: string;
|
|
165
|
+
readonly flagged: boolean;
|
|
166
|
+
readonly hasAttachments: boolean;
|
|
167
|
+
readonly id: string;
|
|
168
|
+
readonly labelIdList: string;
|
|
169
|
+
readonly latestMessageDate: number;
|
|
170
|
+
readonly latestMessageId: string;
|
|
171
|
+
readonly messageCount: number;
|
|
172
|
+
readonly previewText: string;
|
|
173
|
+
readonly seen: boolean;
|
|
174
|
+
readonly senderEmail: string;
|
|
175
|
+
readonly senderName: string | null;
|
|
176
|
+
readonly subject: string | null;
|
|
177
|
+
readonly userId: string;
|
|
178
|
+
readonly words: string;
|
|
179
|
+
} | undefined;
|
|
180
|
+
}) | undefined, Context>;
|
|
181
|
+
readonly getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
|
|
182
|
+
labelIds: string[];
|
|
183
|
+
limit?: number | undefined;
|
|
184
|
+
search?: string | undefined;
|
|
185
|
+
where?: {
|
|
186
|
+
flagged?: boolean | undefined;
|
|
187
|
+
id?: string | undefined;
|
|
188
|
+
messageIds?: string[] | undefined;
|
|
189
|
+
participants?: string[] | undefined;
|
|
190
|
+
seen?: boolean | undefined;
|
|
191
|
+
} | undefined;
|
|
192
|
+
}, {
|
|
193
|
+
labelIds: string[];
|
|
194
|
+
limit: number;
|
|
195
|
+
search?: string | undefined;
|
|
196
|
+
where?: {
|
|
197
|
+
flagged?: boolean | undefined;
|
|
198
|
+
id?: string | undefined;
|
|
199
|
+
messageIds?: string[] | undefined;
|
|
200
|
+
participants?: string[] | undefined;
|
|
201
|
+
seen?: boolean | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
readonly labelId: string;
|
|
205
|
+
readonly latestMessageDate: number;
|
|
206
|
+
readonly threadId: string;
|
|
207
|
+
} & {
|
|
208
|
+
readonly thread: {
|
|
209
|
+
readonly accountId: string;
|
|
210
|
+
readonly flagged: boolean;
|
|
211
|
+
readonly hasAttachments: boolean;
|
|
212
|
+
readonly id: string;
|
|
213
|
+
readonly labelIdList: string;
|
|
214
|
+
readonly latestMessageDate: number;
|
|
215
|
+
readonly latestMessageId: string;
|
|
216
|
+
readonly messageCount: number;
|
|
217
|
+
readonly previewText: string;
|
|
218
|
+
readonly seen: boolean;
|
|
219
|
+
readonly senderEmail: string;
|
|
220
|
+
readonly senderName: string | null;
|
|
221
|
+
readonly subject: string | null;
|
|
222
|
+
readonly userId: string;
|
|
223
|
+
readonly words: string;
|
|
224
|
+
} | undefined;
|
|
225
|
+
}, Context>;
|
|
226
|
+
readonly getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
|
|
227
|
+
labelIds: string[];
|
|
228
|
+
limit?: number | undefined;
|
|
229
|
+
search?: string | undefined;
|
|
230
|
+
where?: {
|
|
231
|
+
flagged?: boolean | undefined;
|
|
232
|
+
id?: string | undefined;
|
|
233
|
+
messageIds?: string[] | undefined;
|
|
234
|
+
participants?: string[] | undefined;
|
|
235
|
+
seen?: boolean | undefined;
|
|
236
|
+
} | undefined;
|
|
237
|
+
}, {
|
|
238
|
+
labelIds: string[];
|
|
239
|
+
limit: number;
|
|
240
|
+
search?: string | undefined;
|
|
241
|
+
where?: {
|
|
242
|
+
flagged?: boolean | undefined;
|
|
243
|
+
id?: string | undefined;
|
|
244
|
+
messageIds?: string[] | undefined;
|
|
245
|
+
participants?: string[] | undefined;
|
|
246
|
+
seen?: boolean | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
}, {
|
|
249
|
+
readonly labelId: string;
|
|
250
|
+
readonly latestMessageDate: number;
|
|
251
|
+
readonly threadId: string;
|
|
252
|
+
} & {
|
|
253
|
+
readonly thread: ({
|
|
254
|
+
readonly accountId: string;
|
|
255
|
+
readonly flagged: boolean;
|
|
256
|
+
readonly hasAttachments: boolean;
|
|
257
|
+
readonly id: string;
|
|
258
|
+
readonly labelIdList: string;
|
|
259
|
+
readonly latestMessageDate: number;
|
|
260
|
+
readonly latestMessageId: string;
|
|
261
|
+
readonly messageCount: number;
|
|
262
|
+
readonly previewText: string;
|
|
263
|
+
readonly seen: boolean;
|
|
264
|
+
readonly senderEmail: string;
|
|
265
|
+
readonly senderName: string | null;
|
|
266
|
+
readonly subject: string | null;
|
|
267
|
+
readonly userId: string;
|
|
268
|
+
readonly words: string;
|
|
269
|
+
} & {
|
|
270
|
+
readonly messages: readonly ({
|
|
271
|
+
readonly accountId: string;
|
|
272
|
+
readonly envelopeDate: number;
|
|
273
|
+
readonly envelopeSubject: string | null;
|
|
274
|
+
readonly id: string;
|
|
275
|
+
readonly previewText: string;
|
|
276
|
+
readonly senderEmail: string;
|
|
277
|
+
readonly senderName: string | null;
|
|
278
|
+
readonly threadId: string;
|
|
279
|
+
} & {
|
|
280
|
+
readonly recipients: readonly {
|
|
281
|
+
readonly emailAddress: string;
|
|
282
|
+
readonly id: string;
|
|
283
|
+
readonly name: string | null;
|
|
284
|
+
readonly threadMessageId: string;
|
|
285
|
+
readonly type: "bcc" | "cc" | "to" | "replyTo";
|
|
286
|
+
}[];
|
|
287
|
+
} & {
|
|
288
|
+
readonly attachments: readonly {
|
|
289
|
+
readonly fileName: string;
|
|
290
|
+
readonly id: string;
|
|
291
|
+
readonly mimeType: string;
|
|
292
|
+
readonly size: number;
|
|
293
|
+
readonly threadMessageId: string;
|
|
294
|
+
}[];
|
|
295
|
+
})[];
|
|
296
|
+
}) | undefined;
|
|
297
|
+
}, Context>;
|
|
298
|
+
readonly getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
299
|
+
readonly id: string;
|
|
300
|
+
readonly name: string | null;
|
|
301
|
+
readonly profilePicture: string | null;
|
|
302
|
+
readonly undoSendEnabled: boolean;
|
|
303
|
+
} & {
|
|
304
|
+
readonly accounts: readonly ({
|
|
305
|
+
readonly color: string;
|
|
306
|
+
readonly displayName: string | null;
|
|
307
|
+
readonly id: string;
|
|
308
|
+
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";
|
|
309
|
+
readonly mailProcessedCount: number;
|
|
310
|
+
readonly mailTotalCount: number;
|
|
311
|
+
readonly primaryAliasId: string | null;
|
|
312
|
+
readonly userId: string;
|
|
313
|
+
} & {
|
|
314
|
+
readonly aliases: readonly {
|
|
315
|
+
readonly accountId: string;
|
|
316
|
+
readonly emailAddress: string;
|
|
317
|
+
readonly id: string;
|
|
318
|
+
readonly isPrimary: boolean;
|
|
319
|
+
readonly name: string | null;
|
|
320
|
+
}[];
|
|
321
|
+
} & {
|
|
322
|
+
readonly primaryAlias: {
|
|
323
|
+
readonly accountId: string;
|
|
324
|
+
readonly emailAddress: string;
|
|
325
|
+
readonly id: string;
|
|
326
|
+
readonly isPrimary: boolean;
|
|
327
|
+
readonly name: string | null;
|
|
328
|
+
} | undefined;
|
|
329
|
+
} & {
|
|
330
|
+
readonly labels: readonly {
|
|
331
|
+
readonly accountId: string;
|
|
332
|
+
readonly id: string;
|
|
333
|
+
readonly name: string | null;
|
|
334
|
+
readonly path: string;
|
|
335
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
336
|
+
readonly uidValidity: number;
|
|
337
|
+
readonly unreadCount: number;
|
|
338
|
+
}[];
|
|
339
|
+
})[];
|
|
340
|
+
} & {
|
|
341
|
+
readonly pushNotificationTokens: readonly {
|
|
342
|
+
readonly createdAt: number;
|
|
343
|
+
readonly id: string;
|
|
344
|
+
readonly token: string;
|
|
345
|
+
readonly userId: string;
|
|
346
|
+
}[];
|
|
347
|
+
}, Context>;
|
|
348
|
+
}, {
|
|
15
349
|
tables: {
|
|
16
350
|
readonly user: {
|
|
17
351
|
name: "user";
|
|
@@ -49,6 +383,54 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
49
383
|
} & {
|
|
50
384
|
primaryKey: ["id"];
|
|
51
385
|
};
|
|
386
|
+
readonly draftAttachment: {
|
|
387
|
+
name: "draftAttachment";
|
|
388
|
+
columns: {
|
|
389
|
+
readonly draftId: {
|
|
390
|
+
type: "string";
|
|
391
|
+
optional: false;
|
|
392
|
+
customType: string;
|
|
393
|
+
} & {
|
|
394
|
+
serverName: string;
|
|
395
|
+
};
|
|
396
|
+
readonly fileName: {
|
|
397
|
+
type: "string";
|
|
398
|
+
optional: false;
|
|
399
|
+
customType: string;
|
|
400
|
+
} & {
|
|
401
|
+
serverName: string;
|
|
402
|
+
};
|
|
403
|
+
readonly id: {
|
|
404
|
+
type: "string";
|
|
405
|
+
optional: false;
|
|
406
|
+
customType: string;
|
|
407
|
+
};
|
|
408
|
+
readonly mimeType: {
|
|
409
|
+
type: "string";
|
|
410
|
+
optional: false;
|
|
411
|
+
customType: string;
|
|
412
|
+
} & {
|
|
413
|
+
serverName: string;
|
|
414
|
+
};
|
|
415
|
+
readonly status: {
|
|
416
|
+
type: "string";
|
|
417
|
+
optional: false;
|
|
418
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
419
|
+
} & {
|
|
420
|
+
serverName: string;
|
|
421
|
+
};
|
|
422
|
+
readonly totalSize: {
|
|
423
|
+
type: "number";
|
|
424
|
+
optional: false;
|
|
425
|
+
customType: number;
|
|
426
|
+
} & {
|
|
427
|
+
serverName: string;
|
|
428
|
+
};
|
|
429
|
+
};
|
|
430
|
+
primaryKey: readonly [string, ...string[]];
|
|
431
|
+
} & {
|
|
432
|
+
primaryKey: ["id"];
|
|
433
|
+
};
|
|
52
434
|
readonly userPushNotificationToken: {
|
|
53
435
|
name: "userPushNotificationToken";
|
|
54
436
|
columns: {
|
|
@@ -386,54 +768,6 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
386
768
|
} & {
|
|
387
769
|
primaryKey: ["id"];
|
|
388
770
|
};
|
|
389
|
-
readonly draftAttachment: {
|
|
390
|
-
name: "draftAttachment";
|
|
391
|
-
columns: {
|
|
392
|
-
readonly draftId: {
|
|
393
|
-
type: "string";
|
|
394
|
-
optional: false;
|
|
395
|
-
customType: string;
|
|
396
|
-
} & {
|
|
397
|
-
serverName: string;
|
|
398
|
-
};
|
|
399
|
-
readonly fileName: {
|
|
400
|
-
type: "string";
|
|
401
|
-
optional: false;
|
|
402
|
-
customType: string;
|
|
403
|
-
} & {
|
|
404
|
-
serverName: string;
|
|
405
|
-
};
|
|
406
|
-
readonly id: {
|
|
407
|
-
type: "string";
|
|
408
|
-
optional: false;
|
|
409
|
-
customType: string;
|
|
410
|
-
};
|
|
411
|
-
readonly mimeType: {
|
|
412
|
-
type: "string";
|
|
413
|
-
optional: false;
|
|
414
|
-
customType: string;
|
|
415
|
-
} & {
|
|
416
|
-
serverName: string;
|
|
417
|
-
};
|
|
418
|
-
readonly status: {
|
|
419
|
-
type: "string";
|
|
420
|
-
optional: false;
|
|
421
|
-
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
422
|
-
} & {
|
|
423
|
-
serverName: string;
|
|
424
|
-
};
|
|
425
|
-
readonly totalSize: {
|
|
426
|
-
type: "number";
|
|
427
|
-
optional: false;
|
|
428
|
-
customType: number;
|
|
429
|
-
} & {
|
|
430
|
-
serverName: string;
|
|
431
|
-
};
|
|
432
|
-
};
|
|
433
|
-
primaryKey: readonly [string, ...string[]];
|
|
434
|
-
} & {
|
|
435
|
-
primaryKey: ["id"];
|
|
436
|
-
};
|
|
437
771
|
readonly thread: {
|
|
438
772
|
name: "thread";
|
|
439
773
|
columns: {
|
|
@@ -773,259 +1107,259 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
773
1107
|
relationships: {
|
|
774
1108
|
readonly user: {
|
|
775
1109
|
accounts: [{
|
|
776
|
-
readonly sourceField:
|
|
777
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1110
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1111
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
778
1112
|
readonly destSchema: "account";
|
|
779
1113
|
readonly cardinality: "many";
|
|
780
1114
|
}];
|
|
781
1115
|
contacts: [{
|
|
782
|
-
readonly sourceField:
|
|
783
|
-
readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
|
|
1116
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1117
|
+
readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
784
1118
|
readonly destSchema: "contact";
|
|
785
1119
|
readonly cardinality: "many";
|
|
786
1120
|
}];
|
|
787
1121
|
drafts: [{
|
|
788
|
-
readonly sourceField:
|
|
789
|
-
readonly destField: ("type" | "status" | "id" | "
|
|
1122
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1123
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
790
1124
|
readonly destSchema: "draft";
|
|
791
1125
|
readonly cardinality: "many";
|
|
792
1126
|
}];
|
|
793
1127
|
pushNotificationTokens: [{
|
|
794
|
-
readonly sourceField:
|
|
795
|
-
readonly destField: ("
|
|
1128
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1129
|
+
readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
796
1130
|
readonly destSchema: "userPushNotificationToken";
|
|
797
1131
|
readonly cardinality: "many";
|
|
798
1132
|
}];
|
|
799
1133
|
threads: [{
|
|
800
|
-
readonly sourceField:
|
|
801
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1134
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1135
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
802
1136
|
readonly destSchema: "thread";
|
|
803
1137
|
readonly cardinality: "many";
|
|
804
1138
|
}];
|
|
805
1139
|
};
|
|
1140
|
+
readonly draftAttachment: {
|
|
1141
|
+
draft: [{
|
|
1142
|
+
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1143
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1144
|
+
readonly destSchema: "draft";
|
|
1145
|
+
readonly cardinality: "one";
|
|
1146
|
+
}];
|
|
1147
|
+
};
|
|
806
1148
|
readonly userPushNotificationToken: {
|
|
807
1149
|
user: [{
|
|
808
|
-
readonly sourceField:
|
|
809
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1150
|
+
readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
1151
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
810
1152
|
readonly destSchema: "user";
|
|
811
1153
|
readonly cardinality: "one";
|
|
812
1154
|
}];
|
|
813
1155
|
};
|
|
814
1156
|
readonly contact: {
|
|
815
1157
|
user: [{
|
|
816
|
-
readonly sourceField:
|
|
817
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1158
|
+
readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
1159
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
818
1160
|
readonly destSchema: "user";
|
|
819
1161
|
readonly cardinality: "one";
|
|
820
1162
|
}];
|
|
821
1163
|
};
|
|
822
1164
|
readonly account: {
|
|
823
1165
|
aliases: [{
|
|
824
|
-
readonly sourceField:
|
|
825
|
-
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1166
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1167
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
826
1168
|
readonly destSchema: "accountAlias";
|
|
827
1169
|
readonly cardinality: "many";
|
|
828
1170
|
}];
|
|
829
1171
|
drafts: [{
|
|
830
|
-
readonly sourceField:
|
|
831
|
-
readonly destField: ("type" | "status" | "id" | "
|
|
1172
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1173
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
832
1174
|
readonly destSchema: "draft";
|
|
833
1175
|
readonly cardinality: "many";
|
|
834
1176
|
}];
|
|
835
1177
|
labels: [{
|
|
836
|
-
readonly sourceField:
|
|
837
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1178
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1179
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
838
1180
|
readonly destSchema: "accountLabel";
|
|
839
1181
|
readonly cardinality: "many";
|
|
840
1182
|
}];
|
|
841
1183
|
primaryAlias: [{
|
|
842
|
-
readonly sourceField:
|
|
843
|
-
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1184
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1185
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
844
1186
|
readonly destSchema: "accountAlias";
|
|
845
1187
|
readonly cardinality: "one";
|
|
846
1188
|
}];
|
|
847
1189
|
threads: [{
|
|
848
|
-
readonly sourceField:
|
|
849
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1190
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1191
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
850
1192
|
readonly destSchema: "thread";
|
|
851
1193
|
readonly cardinality: "many";
|
|
852
1194
|
}];
|
|
853
1195
|
user: [{
|
|
854
|
-
readonly sourceField:
|
|
855
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1196
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1197
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
856
1198
|
readonly destSchema: "user";
|
|
857
1199
|
readonly cardinality: "one";
|
|
858
1200
|
}];
|
|
859
1201
|
};
|
|
860
1202
|
readonly accountAlias: {
|
|
861
1203
|
account: [{
|
|
862
|
-
readonly sourceField:
|
|
863
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1204
|
+
readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1205
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
864
1206
|
readonly destSchema: "account";
|
|
865
1207
|
readonly cardinality: "one";
|
|
866
1208
|
}];
|
|
867
1209
|
};
|
|
868
1210
|
readonly accountLabel: {
|
|
869
1211
|
account: [{
|
|
870
|
-
readonly sourceField:
|
|
871
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1212
|
+
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1213
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
872
1214
|
readonly destSchema: "account";
|
|
873
1215
|
readonly cardinality: "one";
|
|
874
1216
|
}];
|
|
875
1217
|
threads: [{
|
|
876
|
-
readonly sourceField:
|
|
877
|
-
readonly destField: ("
|
|
1218
|
+
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1219
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
878
1220
|
readonly destSchema: "threadLabel";
|
|
879
1221
|
readonly cardinality: "many";
|
|
880
1222
|
}, {
|
|
881
|
-
readonly sourceField:
|
|
882
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1223
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1224
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
883
1225
|
readonly destSchema: "thread";
|
|
884
1226
|
readonly cardinality: "many";
|
|
885
1227
|
}];
|
|
886
1228
|
};
|
|
887
1229
|
readonly draft: {
|
|
888
1230
|
account: [{
|
|
889
|
-
readonly sourceField:
|
|
890
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1231
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1232
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
891
1233
|
readonly destSchema: "account";
|
|
892
1234
|
readonly cardinality: "one";
|
|
893
1235
|
}];
|
|
894
1236
|
attachments: [{
|
|
895
|
-
readonly sourceField:
|
|
896
|
-
readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1237
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1238
|
+
readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
897
1239
|
readonly destSchema: "draftAttachment";
|
|
898
1240
|
readonly cardinality: "many";
|
|
899
1241
|
}];
|
|
900
1242
|
user: [{
|
|
901
|
-
readonly sourceField:
|
|
902
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1243
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1244
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
903
1245
|
readonly destSchema: "user";
|
|
904
1246
|
readonly cardinality: "one";
|
|
905
1247
|
}];
|
|
906
1248
|
};
|
|
907
|
-
readonly draftAttachment: {
|
|
908
|
-
draft: [{
|
|
909
|
-
readonly sourceField: string[];
|
|
910
|
-
readonly destField: ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
911
|
-
readonly destSchema: "draft";
|
|
912
|
-
readonly cardinality: "one";
|
|
913
|
-
}];
|
|
914
|
-
};
|
|
915
1249
|
readonly thread: {
|
|
916
1250
|
account: [{
|
|
917
|
-
readonly sourceField:
|
|
918
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1251
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1252
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
919
1253
|
readonly destSchema: "account";
|
|
920
1254
|
readonly cardinality: "one";
|
|
921
1255
|
}];
|
|
922
1256
|
labels: [{
|
|
923
|
-
readonly sourceField:
|
|
924
|
-
readonly destField: ("
|
|
1257
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1258
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
925
1259
|
readonly destSchema: "threadLabel";
|
|
926
1260
|
readonly cardinality: "many";
|
|
927
1261
|
}, {
|
|
928
|
-
readonly sourceField:
|
|
929
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1262
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1263
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
930
1264
|
readonly destSchema: "accountLabel";
|
|
931
1265
|
readonly cardinality: "many";
|
|
932
1266
|
}];
|
|
933
1267
|
messages: [{
|
|
934
|
-
readonly sourceField:
|
|
935
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1268
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1269
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
936
1270
|
readonly destSchema: "threadMessage";
|
|
937
1271
|
readonly cardinality: "many";
|
|
938
1272
|
}];
|
|
939
1273
|
threadByLabel: [{
|
|
940
|
-
readonly sourceField:
|
|
941
|
-
readonly destField: ("
|
|
1274
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1275
|
+
readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
942
1276
|
readonly destSchema: "threadByLabel";
|
|
943
1277
|
readonly cardinality: "many";
|
|
944
1278
|
}];
|
|
945
1279
|
user: [{
|
|
946
|
-
readonly sourceField:
|
|
947
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1280
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1281
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
948
1282
|
readonly destSchema: "user";
|
|
949
1283
|
readonly cardinality: "one";
|
|
950
1284
|
}];
|
|
951
1285
|
};
|
|
952
1286
|
readonly threadLabel: {
|
|
953
1287
|
label: [{
|
|
954
|
-
readonly sourceField:
|
|
955
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1288
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1289
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
956
1290
|
readonly destSchema: "accountLabel";
|
|
957
1291
|
readonly cardinality: "one";
|
|
958
1292
|
}];
|
|
959
1293
|
message: [{
|
|
960
|
-
readonly sourceField:
|
|
961
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1294
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1295
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
962
1296
|
readonly destSchema: "threadMessage";
|
|
963
1297
|
readonly cardinality: "one";
|
|
964
1298
|
}];
|
|
965
1299
|
thread: [{
|
|
966
|
-
readonly sourceField:
|
|
967
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1300
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1301
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
968
1302
|
readonly destSchema: "thread";
|
|
969
1303
|
readonly cardinality: "one";
|
|
970
1304
|
}];
|
|
971
1305
|
};
|
|
972
1306
|
readonly threadByLabel: {
|
|
973
1307
|
label: [{
|
|
974
|
-
readonly sourceField:
|
|
975
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1308
|
+
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
1309
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
976
1310
|
readonly destSchema: "accountLabel";
|
|
977
1311
|
readonly cardinality: "one";
|
|
978
1312
|
}];
|
|
979
1313
|
thread: [{
|
|
980
|
-
readonly sourceField:
|
|
981
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1314
|
+
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
1315
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
982
1316
|
readonly destSchema: "thread";
|
|
983
1317
|
readonly cardinality: "one";
|
|
984
1318
|
}];
|
|
985
1319
|
};
|
|
986
1320
|
readonly threadMessage: {
|
|
987
1321
|
attachments: [{
|
|
988
|
-
readonly sourceField:
|
|
989
|
-
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1322
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1323
|
+
readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
990
1324
|
readonly destSchema: "threadMessageAttachment";
|
|
991
1325
|
readonly cardinality: "many";
|
|
992
1326
|
}];
|
|
993
1327
|
labels: [{
|
|
994
|
-
readonly sourceField:
|
|
995
|
-
readonly destField: ("
|
|
1328
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1329
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
996
1330
|
readonly destSchema: "threadLabel";
|
|
997
1331
|
readonly cardinality: "many";
|
|
998
1332
|
}, {
|
|
999
|
-
readonly sourceField:
|
|
1000
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1333
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1334
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1001
1335
|
readonly destSchema: "accountLabel";
|
|
1002
1336
|
readonly cardinality: "many";
|
|
1003
1337
|
}];
|
|
1004
1338
|
recipients: [{
|
|
1005
|
-
readonly sourceField:
|
|
1006
|
-
readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1339
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1340
|
+
readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1007
1341
|
readonly destSchema: "threadMessageRecipient";
|
|
1008
1342
|
readonly cardinality: "many";
|
|
1009
1343
|
}];
|
|
1010
1344
|
thread: [{
|
|
1011
|
-
readonly sourceField:
|
|
1012
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1345
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1346
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1013
1347
|
readonly destSchema: "thread";
|
|
1014
1348
|
readonly cardinality: "one";
|
|
1015
1349
|
}];
|
|
1016
1350
|
};
|
|
1017
1351
|
readonly threadMessageRecipient: {
|
|
1018
1352
|
message: [{
|
|
1019
|
-
readonly sourceField:
|
|
1020
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1353
|
+
readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1354
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1021
1355
|
readonly destSchema: "threadMessage";
|
|
1022
1356
|
readonly cardinality: "one";
|
|
1023
1357
|
}];
|
|
1024
1358
|
};
|
|
1025
1359
|
readonly threadMessageAttachment: {
|
|
1026
1360
|
message: [{
|
|
1027
|
-
readonly sourceField:
|
|
1028
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1361
|
+
readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1362
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1029
1363
|
readonly destSchema: "threadMessage";
|
|
1030
1364
|
readonly cardinality: "one";
|
|
1031
1365
|
}];
|
|
@@ -1033,55 +1367,6 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
1033
1367
|
};
|
|
1034
1368
|
enableLegacyQueries: boolean | undefined;
|
|
1035
1369
|
enableLegacyMutators: false;
|
|
1036
|
-
}
|
|
1037
|
-
readonly labelId: string;
|
|
1038
|
-
readonly latestMessageDate: number;
|
|
1039
|
-
readonly threadId: string;
|
|
1040
|
-
} & {
|
|
1041
|
-
readonly thread: ({
|
|
1042
|
-
readonly accountId: string;
|
|
1043
|
-
readonly flagged: boolean;
|
|
1044
|
-
readonly hasAttachments: boolean;
|
|
1045
|
-
readonly id: string;
|
|
1046
|
-
readonly labelIdList: string;
|
|
1047
|
-
readonly latestMessageDate: number;
|
|
1048
|
-
readonly latestMessageId: string;
|
|
1049
|
-
readonly messageCount: number;
|
|
1050
|
-
readonly previewText: string;
|
|
1051
|
-
readonly seen: boolean;
|
|
1052
|
-
readonly senderEmail: string;
|
|
1053
|
-
readonly senderName: string | null;
|
|
1054
|
-
readonly subject: string | null;
|
|
1055
|
-
readonly userId: string;
|
|
1056
|
-
readonly words: string;
|
|
1057
|
-
} & {
|
|
1058
|
-
readonly messages: readonly ({
|
|
1059
|
-
readonly accountId: string;
|
|
1060
|
-
readonly envelopeDate: number;
|
|
1061
|
-
readonly envelopeSubject: string | null;
|
|
1062
|
-
readonly id: string;
|
|
1063
|
-
readonly previewText: string;
|
|
1064
|
-
readonly senderEmail: string;
|
|
1065
|
-
readonly senderName: string | null;
|
|
1066
|
-
readonly threadId: string;
|
|
1067
|
-
} & {
|
|
1068
|
-
readonly recipients: readonly {
|
|
1069
|
-
readonly emailAddress: string;
|
|
1070
|
-
readonly id: string;
|
|
1071
|
-
readonly name: string | null;
|
|
1072
|
-
readonly threadMessageId: string;
|
|
1073
|
-
readonly type: "bcc" | "cc" | "to" | "replyTo";
|
|
1074
|
-
}[];
|
|
1075
|
-
} & {
|
|
1076
|
-
readonly attachments: readonly {
|
|
1077
|
-
readonly fileName: string;
|
|
1078
|
-
readonly id: string;
|
|
1079
|
-
readonly mimeType: string;
|
|
1080
|
-
readonly size: number;
|
|
1081
|
-
readonly threadMessageId: string;
|
|
1082
|
-
}[];
|
|
1083
|
-
})[];
|
|
1084
|
-
}) | undefined;
|
|
1085
|
-
}>>;
|
|
1370
|
+
}>;
|
|
1086
1371
|
export {};
|
|
1087
|
-
//# sourceMappingURL=
|
|
1372
|
+
//# sourceMappingURL=queries.d.ts.map
|