@marcoappio/marco-config 2.0.501 → 2.0.502
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 +183 -7287
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +2 -10
- package/dist/zero/queries/getAccounts.d.ts +4 -1025
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getAccounts.js +3 -3
- package/dist/zero/queries/getContacts.d.ts +17 -1032
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.js +11 -15
- package/dist/zero/queries/getDrafts.d.ts +10 -1030
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.js +7 -11
- package/dist/zero/queries/getThread.d.ts +6 -1027
- package/dist/zero/queries/getThread.d.ts.map +1 -1
- package/dist/zero/queries/getThread.js +5 -9
- package/dist/zero/queries/getThreadList.d.ts +22 -1034
- package/dist/zero/queries/getThreadList.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.js +14 -18
- package/dist/zero/queries/getThreads.d.ts +22 -1034
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.js +14 -18
- package/dist/zero/queries/getUser.d.ts +4 -1025
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/getUser.js +3 -3
- package/dist/zero/queries/index.d.ts +319 -1022
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/queries/index.js +17 -10
- package/dist/zero/queries/z.d.ts +1024 -0
- package/dist/zero/queries/z.d.ts.map +1 -0
- package/dist/zero/queries/z.js +3 -0
- package/package.json +1 -1
|
@@ -1,1031 +1,328 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
|
|
3
|
-
readonly
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
} & {
|
|
80
|
-
serverName: string;
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
primaryKey: readonly [string, ...string[]];
|
|
84
|
-
} & {
|
|
85
|
-
primaryKey: ["id"];
|
|
86
|
-
};
|
|
87
|
-
readonly userPushNotificationToken: {
|
|
88
|
-
name: "userPushNotificationToken";
|
|
89
|
-
columns: {
|
|
90
|
-
readonly createdAt: {
|
|
91
|
-
type: "number";
|
|
92
|
-
optional: false;
|
|
93
|
-
customType: number;
|
|
94
|
-
} & {
|
|
95
|
-
serverName: string;
|
|
96
|
-
};
|
|
97
|
-
readonly id: {
|
|
98
|
-
type: "string";
|
|
99
|
-
optional: false;
|
|
100
|
-
customType: string;
|
|
101
|
-
};
|
|
102
|
-
readonly token: {
|
|
103
|
-
type: "string";
|
|
104
|
-
optional: false;
|
|
105
|
-
customType: string;
|
|
106
|
-
};
|
|
107
|
-
readonly userId: {
|
|
108
|
-
type: "string";
|
|
109
|
-
optional: false;
|
|
110
|
-
customType: string;
|
|
111
|
-
} & {
|
|
112
|
-
serverName: string;
|
|
113
|
-
};
|
|
114
|
-
};
|
|
115
|
-
primaryKey: readonly [string, ...string[]];
|
|
116
|
-
} & {
|
|
117
|
-
primaryKey: ["id"];
|
|
118
|
-
};
|
|
119
|
-
readonly contact: {
|
|
120
|
-
name: "contact";
|
|
121
|
-
columns: {
|
|
122
|
-
readonly emailAddress: {
|
|
123
|
-
type: "string";
|
|
124
|
-
optional: false;
|
|
125
|
-
customType: string;
|
|
126
|
-
} & {
|
|
127
|
-
serverName: string;
|
|
128
|
-
};
|
|
129
|
-
readonly id: {
|
|
130
|
-
type: "string";
|
|
131
|
-
optional: false;
|
|
132
|
-
customType: string;
|
|
133
|
-
};
|
|
134
|
-
readonly name: Omit<{
|
|
135
|
-
type: "string";
|
|
136
|
-
optional: false;
|
|
137
|
-
customType: string;
|
|
138
|
-
}, "optional"> & {
|
|
139
|
-
optional: true;
|
|
140
|
-
};
|
|
141
|
-
readonly userId: {
|
|
142
|
-
type: "string";
|
|
143
|
-
optional: false;
|
|
144
|
-
customType: string;
|
|
145
|
-
} & {
|
|
146
|
-
serverName: string;
|
|
147
|
-
};
|
|
148
|
-
};
|
|
149
|
-
primaryKey: readonly [string, ...string[]];
|
|
150
|
-
} & {
|
|
151
|
-
primaryKey: ["id"];
|
|
152
|
-
};
|
|
153
|
-
readonly account: {
|
|
154
|
-
name: "account";
|
|
155
|
-
columns: {
|
|
156
|
-
readonly color: {
|
|
157
|
-
type: "string";
|
|
158
|
-
optional: false;
|
|
159
|
-
customType: string;
|
|
160
|
-
};
|
|
161
|
-
readonly displayName: Omit<{
|
|
162
|
-
type: "string";
|
|
163
|
-
optional: false;
|
|
164
|
-
customType: string;
|
|
165
|
-
}, "optional"> & {
|
|
166
|
-
optional: true;
|
|
167
|
-
} & {
|
|
168
|
-
serverName: string;
|
|
169
|
-
};
|
|
170
|
-
readonly id: {
|
|
171
|
-
type: "string";
|
|
172
|
-
optional: false;
|
|
173
|
-
customType: string;
|
|
174
|
-
};
|
|
175
|
-
readonly imapConnectionStatus: {
|
|
176
|
-
type: "string";
|
|
177
|
-
optional: false;
|
|
178
|
-
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";
|
|
179
|
-
} & {
|
|
180
|
-
serverName: string;
|
|
181
|
-
};
|
|
182
|
-
readonly mailProcessedCount: {
|
|
183
|
-
type: "number";
|
|
184
|
-
optional: false;
|
|
185
|
-
customType: number;
|
|
186
|
-
} & {
|
|
187
|
-
serverName: string;
|
|
188
|
-
};
|
|
189
|
-
readonly mailTotalCount: {
|
|
190
|
-
type: "number";
|
|
191
|
-
optional: false;
|
|
192
|
-
customType: number;
|
|
193
|
-
} & {
|
|
194
|
-
serverName: string;
|
|
195
|
-
};
|
|
196
|
-
readonly primaryAliasId: Omit<{
|
|
197
|
-
type: "string";
|
|
198
|
-
optional: false;
|
|
199
|
-
customType: string;
|
|
200
|
-
}, "optional"> & {
|
|
201
|
-
optional: true;
|
|
202
|
-
} & {
|
|
203
|
-
serverName: string;
|
|
204
|
-
};
|
|
205
|
-
readonly userId: {
|
|
206
|
-
type: "string";
|
|
207
|
-
optional: false;
|
|
208
|
-
customType: string;
|
|
209
|
-
} & {
|
|
210
|
-
serverName: string;
|
|
211
|
-
};
|
|
212
|
-
};
|
|
213
|
-
primaryKey: readonly [string, ...string[]];
|
|
214
|
-
} & {
|
|
215
|
-
primaryKey: ["id"];
|
|
1
|
+
export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
2
|
+
readonly getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
3
|
+
readonly color: string;
|
|
4
|
+
readonly displayName: string | null;
|
|
5
|
+
readonly id: string;
|
|
6
|
+
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";
|
|
7
|
+
readonly mailProcessedCount: number;
|
|
8
|
+
readonly mailTotalCount: number;
|
|
9
|
+
readonly primaryAliasId: string | null;
|
|
10
|
+
readonly userId: string;
|
|
11
|
+
} & {
|
|
12
|
+
readonly aliases: readonly {
|
|
13
|
+
readonly accountId: string;
|
|
14
|
+
readonly emailAddress: string;
|
|
15
|
+
readonly id: string;
|
|
16
|
+
readonly isPrimary: boolean;
|
|
17
|
+
readonly name: string | null;
|
|
18
|
+
}[];
|
|
19
|
+
} & {
|
|
20
|
+
readonly primaryAlias: {
|
|
21
|
+
readonly accountId: string;
|
|
22
|
+
readonly emailAddress: string;
|
|
23
|
+
readonly id: string;
|
|
24
|
+
readonly isPrimary: boolean;
|
|
25
|
+
readonly name: string | null;
|
|
26
|
+
} | undefined;
|
|
27
|
+
} & {
|
|
28
|
+
readonly labels: readonly {
|
|
29
|
+
readonly accountId: string;
|
|
30
|
+
readonly id: string;
|
|
31
|
+
readonly name: string | null;
|
|
32
|
+
readonly path: string;
|
|
33
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
34
|
+
readonly uidValidity: number;
|
|
35
|
+
readonly unreadCount: number;
|
|
36
|
+
}[];
|
|
37
|
+
}, {
|
|
38
|
+
readonly userId: string;
|
|
39
|
+
}>;
|
|
40
|
+
readonly getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
|
|
41
|
+
limit?: number | undefined;
|
|
42
|
+
search?: string | undefined;
|
|
43
|
+
where?: {
|
|
44
|
+
emailAddress?: string | undefined;
|
|
45
|
+
ids?: string[] | undefined;
|
|
46
|
+
name?: string | undefined;
|
|
47
|
+
} | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
limit: number;
|
|
50
|
+
search?: string | undefined;
|
|
51
|
+
where?: {
|
|
52
|
+
emailAddress?: string | undefined;
|
|
53
|
+
ids?: string[] | undefined;
|
|
54
|
+
name?: string | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
}, {
|
|
57
|
+
readonly emailAddress: string;
|
|
58
|
+
readonly id: string;
|
|
59
|
+
readonly name: string | null;
|
|
60
|
+
readonly userId: string;
|
|
61
|
+
}, {
|
|
62
|
+
readonly userId: string;
|
|
63
|
+
}>;
|
|
64
|
+
readonly getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
|
|
65
|
+
accountId?: string | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
|
|
68
|
+
}, {
|
|
69
|
+
accountId?: string | undefined;
|
|
70
|
+
limit: number;
|
|
71
|
+
status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
|
|
72
|
+
}, {
|
|
73
|
+
readonly accountId: string;
|
|
74
|
+
readonly body: {
|
|
75
|
+
content: string;
|
|
76
|
+
to: string[];
|
|
77
|
+
cc: string[];
|
|
78
|
+
bcc: string[];
|
|
216
79
|
};
|
|
217
|
-
readonly
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
80
|
+
readonly error: string | null;
|
|
81
|
+
readonly fromAliasId: string | null;
|
|
82
|
+
readonly fromEmail: string;
|
|
83
|
+
readonly fromName: string | null;
|
|
84
|
+
readonly id: string;
|
|
85
|
+
readonly referencedMessageId: string | null;
|
|
86
|
+
readonly scheduledFor: number | null;
|
|
87
|
+
readonly status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
88
|
+
readonly subject: string | null;
|
|
89
|
+
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
90
|
+
readonly updatedAt: number;
|
|
91
|
+
readonly userId: string;
|
|
92
|
+
} & {
|
|
93
|
+
readonly attachments: readonly {
|
|
94
|
+
readonly draftId: string;
|
|
95
|
+
readonly fileName: string;
|
|
96
|
+
readonly id: string;
|
|
97
|
+
readonly mimeType: string;
|
|
98
|
+
readonly status: "PENDING" | "COMPLETE" | "FAILED";
|
|
99
|
+
readonly totalSize: number;
|
|
100
|
+
}[];
|
|
101
|
+
}, {
|
|
102
|
+
readonly userId: string;
|
|
103
|
+
}>;
|
|
104
|
+
readonly getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
|
|
105
|
+
id: string;
|
|
106
|
+
}, {
|
|
107
|
+
id: string;
|
|
108
|
+
}, ({
|
|
109
|
+
readonly accountId: string;
|
|
110
|
+
readonly flagged: boolean;
|
|
111
|
+
readonly hasAttachments: boolean;
|
|
112
|
+
readonly id: string;
|
|
113
|
+
readonly labelIdList: string;
|
|
114
|
+
readonly latestMessageDate: number;
|
|
115
|
+
readonly latestMessageId: string;
|
|
116
|
+
readonly messageCount: number;
|
|
117
|
+
readonly previewText: string;
|
|
118
|
+
readonly seen: boolean;
|
|
119
|
+
readonly senderEmail: string;
|
|
120
|
+
readonly senderName: string | null;
|
|
121
|
+
readonly subject: string | null;
|
|
122
|
+
readonly userId: string;
|
|
123
|
+
readonly words: string;
|
|
124
|
+
} & {
|
|
125
|
+
readonly messages: readonly ({
|
|
126
|
+
readonly accountId: string;
|
|
127
|
+
readonly envelopeDate: number;
|
|
128
|
+
readonly envelopeSubject: string | null;
|
|
129
|
+
readonly id: string;
|
|
130
|
+
readonly previewText: string;
|
|
131
|
+
readonly senderEmail: string;
|
|
132
|
+
readonly senderName: string | null;
|
|
133
|
+
readonly threadId: string;
|
|
255
134
|
} & {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
readonly
|
|
262
|
-
|
|
263
|
-
optional: false;
|
|
264
|
-
customType: string;
|
|
265
|
-
} & {
|
|
266
|
-
serverName: string;
|
|
267
|
-
};
|
|
268
|
-
readonly id: {
|
|
269
|
-
type: "string";
|
|
270
|
-
optional: false;
|
|
271
|
-
customType: string;
|
|
272
|
-
};
|
|
273
|
-
readonly name: Omit<{
|
|
274
|
-
type: "string";
|
|
275
|
-
optional: false;
|
|
276
|
-
customType: string;
|
|
277
|
-
}, "optional"> & {
|
|
278
|
-
optional: true;
|
|
279
|
-
};
|
|
280
|
-
readonly path: {
|
|
281
|
-
type: "string";
|
|
282
|
-
optional: false;
|
|
283
|
-
customType: string;
|
|
284
|
-
};
|
|
285
|
-
readonly specialUse: Omit<{
|
|
286
|
-
type: "string";
|
|
287
|
-
optional: false;
|
|
288
|
-
customType: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH";
|
|
289
|
-
}, "optional"> & {
|
|
290
|
-
optional: true;
|
|
291
|
-
} & {
|
|
292
|
-
serverName: string;
|
|
293
|
-
};
|
|
294
|
-
readonly uidValidity: {
|
|
295
|
-
type: "number";
|
|
296
|
-
optional: false;
|
|
297
|
-
customType: number;
|
|
298
|
-
} & {
|
|
299
|
-
serverName: string;
|
|
300
|
-
};
|
|
301
|
-
readonly unreadCount: {
|
|
302
|
-
type: "number";
|
|
303
|
-
optional: false;
|
|
304
|
-
customType: number;
|
|
305
|
-
} & {
|
|
306
|
-
serverName: string;
|
|
307
|
-
};
|
|
308
|
-
};
|
|
309
|
-
primaryKey: readonly [string, ...string[]];
|
|
310
|
-
} & {
|
|
311
|
-
primaryKey: ["id"];
|
|
312
|
-
};
|
|
313
|
-
readonly draft: {
|
|
314
|
-
name: "draft";
|
|
315
|
-
columns: {
|
|
316
|
-
readonly accountId: {
|
|
317
|
-
type: "string";
|
|
318
|
-
optional: false;
|
|
319
|
-
customType: string;
|
|
320
|
-
} & {
|
|
321
|
-
serverName: string;
|
|
322
|
-
};
|
|
323
|
-
readonly body: {
|
|
324
|
-
type: "json";
|
|
325
|
-
optional: false;
|
|
326
|
-
customType: {
|
|
327
|
-
content: string;
|
|
328
|
-
to: string[];
|
|
329
|
-
cc: string[];
|
|
330
|
-
bcc: string[];
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
readonly error: Omit<{
|
|
334
|
-
type: "string";
|
|
335
|
-
optional: false;
|
|
336
|
-
customType: string;
|
|
337
|
-
}, "optional"> & {
|
|
338
|
-
optional: true;
|
|
339
|
-
};
|
|
340
|
-
readonly fromAliasId: Omit<{
|
|
341
|
-
type: "string";
|
|
342
|
-
optional: false;
|
|
343
|
-
customType: string;
|
|
344
|
-
}, "optional"> & {
|
|
345
|
-
optional: true;
|
|
346
|
-
} & {
|
|
347
|
-
serverName: string;
|
|
348
|
-
};
|
|
349
|
-
readonly fromEmail: {
|
|
350
|
-
type: "string";
|
|
351
|
-
optional: false;
|
|
352
|
-
customType: string;
|
|
353
|
-
} & {
|
|
354
|
-
serverName: string;
|
|
355
|
-
};
|
|
356
|
-
readonly fromName: Omit<{
|
|
357
|
-
type: "string";
|
|
358
|
-
optional: false;
|
|
359
|
-
customType: string;
|
|
360
|
-
}, "optional"> & {
|
|
361
|
-
optional: true;
|
|
362
|
-
} & {
|
|
363
|
-
serverName: string;
|
|
364
|
-
};
|
|
365
|
-
readonly id: {
|
|
366
|
-
type: "string";
|
|
367
|
-
optional: false;
|
|
368
|
-
customType: string;
|
|
369
|
-
};
|
|
370
|
-
readonly referencedMessageId: Omit<{
|
|
371
|
-
type: "string";
|
|
372
|
-
optional: false;
|
|
373
|
-
customType: string;
|
|
374
|
-
}, "optional"> & {
|
|
375
|
-
optional: true;
|
|
376
|
-
} & {
|
|
377
|
-
serverName: string;
|
|
378
|
-
};
|
|
379
|
-
readonly scheduledFor: Omit<{
|
|
380
|
-
type: "number";
|
|
381
|
-
optional: false;
|
|
382
|
-
customType: number;
|
|
383
|
-
}, "optional"> & {
|
|
384
|
-
optional: true;
|
|
385
|
-
} & {
|
|
386
|
-
serverName: string;
|
|
387
|
-
};
|
|
388
|
-
readonly status: {
|
|
389
|
-
type: "string";
|
|
390
|
-
optional: false;
|
|
391
|
-
customType: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
392
|
-
};
|
|
393
|
-
readonly subject: Omit<{
|
|
394
|
-
type: "string";
|
|
395
|
-
optional: false;
|
|
396
|
-
customType: string;
|
|
397
|
-
}, "optional"> & {
|
|
398
|
-
optional: true;
|
|
399
|
-
};
|
|
400
|
-
readonly type: {
|
|
401
|
-
type: "string";
|
|
402
|
-
optional: false;
|
|
403
|
-
customType: "NEW" | "REPLY" | "FORWARD";
|
|
404
|
-
};
|
|
405
|
-
readonly updatedAt: {
|
|
406
|
-
type: "number";
|
|
407
|
-
optional: false;
|
|
408
|
-
customType: number;
|
|
409
|
-
} & {
|
|
410
|
-
serverName: string;
|
|
411
|
-
};
|
|
412
|
-
readonly userId: {
|
|
413
|
-
type: "string";
|
|
414
|
-
optional: false;
|
|
415
|
-
customType: string;
|
|
416
|
-
} & {
|
|
417
|
-
serverName: string;
|
|
418
|
-
};
|
|
419
|
-
};
|
|
420
|
-
primaryKey: readonly [string, ...string[]];
|
|
135
|
+
readonly recipients: readonly {
|
|
136
|
+
readonly emailAddress: string;
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly name: string | null;
|
|
139
|
+
readonly threadMessageId: string;
|
|
140
|
+
readonly type: "bcc" | "cc" | "to" | "replyTo";
|
|
141
|
+
}[];
|
|
421
142
|
} & {
|
|
422
|
-
|
|
423
|
-
|
|
143
|
+
readonly attachments: readonly {
|
|
144
|
+
readonly fileName: string;
|
|
145
|
+
readonly id: string;
|
|
146
|
+
readonly mimeType: string;
|
|
147
|
+
readonly size: number;
|
|
148
|
+
readonly threadMessageId: string;
|
|
149
|
+
}[];
|
|
150
|
+
})[];
|
|
151
|
+
}) | undefined, {
|
|
152
|
+
readonly userId: string;
|
|
153
|
+
}>;
|
|
154
|
+
readonly getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
|
|
155
|
+
labelIds: string[];
|
|
156
|
+
limit?: number | undefined;
|
|
157
|
+
search?: string | undefined;
|
|
158
|
+
where?: {
|
|
159
|
+
flagged?: boolean | undefined;
|
|
160
|
+
id?: string | undefined;
|
|
161
|
+
messageIds?: string[] | undefined;
|
|
162
|
+
participants?: string[] | undefined;
|
|
163
|
+
seen?: boolean | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
}, {
|
|
166
|
+
labelIds: string[];
|
|
167
|
+
limit: number;
|
|
168
|
+
search?: string | undefined;
|
|
169
|
+
where?: {
|
|
170
|
+
flagged?: boolean | undefined;
|
|
171
|
+
id?: string | undefined;
|
|
172
|
+
messageIds?: string[] | undefined;
|
|
173
|
+
participants?: string[] | undefined;
|
|
174
|
+
seen?: boolean | undefined;
|
|
175
|
+
} | undefined;
|
|
176
|
+
}, {
|
|
177
|
+
readonly labelId: string;
|
|
178
|
+
readonly latestMessageDate: number;
|
|
179
|
+
readonly threadId: string;
|
|
180
|
+
} & {
|
|
424
181
|
readonly thread: {
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
type: "boolean";
|
|
488
|
-
optional: false;
|
|
489
|
-
customType: boolean;
|
|
490
|
-
};
|
|
491
|
-
readonly senderEmail: {
|
|
492
|
-
type: "string";
|
|
493
|
-
optional: false;
|
|
494
|
-
customType: string;
|
|
495
|
-
} & {
|
|
496
|
-
serverName: string;
|
|
497
|
-
};
|
|
498
|
-
readonly senderName: Omit<{
|
|
499
|
-
type: "string";
|
|
500
|
-
optional: false;
|
|
501
|
-
customType: string;
|
|
502
|
-
}, "optional"> & {
|
|
503
|
-
optional: true;
|
|
504
|
-
} & {
|
|
505
|
-
serverName: string;
|
|
506
|
-
};
|
|
507
|
-
readonly subject: Omit<{
|
|
508
|
-
type: "string";
|
|
509
|
-
optional: false;
|
|
510
|
-
customType: string;
|
|
511
|
-
}, "optional"> & {
|
|
512
|
-
optional: true;
|
|
513
|
-
};
|
|
514
|
-
readonly userId: {
|
|
515
|
-
type: "string";
|
|
516
|
-
optional: false;
|
|
517
|
-
customType: string;
|
|
518
|
-
} & {
|
|
519
|
-
serverName: string;
|
|
520
|
-
};
|
|
521
|
-
readonly words: {
|
|
522
|
-
type: "string";
|
|
523
|
-
optional: false;
|
|
524
|
-
customType: string;
|
|
525
|
-
};
|
|
526
|
-
};
|
|
527
|
-
primaryKey: readonly [string, ...string[]];
|
|
182
|
+
readonly accountId: string;
|
|
183
|
+
readonly flagged: boolean;
|
|
184
|
+
readonly hasAttachments: boolean;
|
|
185
|
+
readonly id: string;
|
|
186
|
+
readonly labelIdList: string;
|
|
187
|
+
readonly latestMessageDate: number;
|
|
188
|
+
readonly latestMessageId: string;
|
|
189
|
+
readonly messageCount: number;
|
|
190
|
+
readonly previewText: string;
|
|
191
|
+
readonly seen: boolean;
|
|
192
|
+
readonly senderEmail: string;
|
|
193
|
+
readonly senderName: string | null;
|
|
194
|
+
readonly subject: string | null;
|
|
195
|
+
readonly userId: string;
|
|
196
|
+
readonly words: string;
|
|
197
|
+
} | undefined;
|
|
198
|
+
}, {
|
|
199
|
+
readonly userId: string;
|
|
200
|
+
}>;
|
|
201
|
+
readonly getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
|
|
202
|
+
labelIds: string[];
|
|
203
|
+
limit?: number | undefined;
|
|
204
|
+
search?: string | undefined;
|
|
205
|
+
where?: {
|
|
206
|
+
flagged?: boolean | undefined;
|
|
207
|
+
id?: string | undefined;
|
|
208
|
+
messageIds?: string[] | undefined;
|
|
209
|
+
participants?: string[] | undefined;
|
|
210
|
+
seen?: boolean | undefined;
|
|
211
|
+
} | undefined;
|
|
212
|
+
}, {
|
|
213
|
+
labelIds: string[];
|
|
214
|
+
limit: number;
|
|
215
|
+
search?: string | undefined;
|
|
216
|
+
where?: {
|
|
217
|
+
flagged?: boolean | undefined;
|
|
218
|
+
id?: string | undefined;
|
|
219
|
+
messageIds?: string[] | undefined;
|
|
220
|
+
participants?: string[] | undefined;
|
|
221
|
+
seen?: boolean | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
}, {
|
|
224
|
+
readonly labelId: string;
|
|
225
|
+
readonly latestMessageDate: number;
|
|
226
|
+
readonly threadId: string;
|
|
227
|
+
} & {
|
|
228
|
+
readonly thread: ({
|
|
229
|
+
readonly accountId: string;
|
|
230
|
+
readonly flagged: boolean;
|
|
231
|
+
readonly hasAttachments: boolean;
|
|
232
|
+
readonly id: string;
|
|
233
|
+
readonly labelIdList: string;
|
|
234
|
+
readonly latestMessageDate: number;
|
|
235
|
+
readonly latestMessageId: string;
|
|
236
|
+
readonly messageCount: number;
|
|
237
|
+
readonly previewText: string;
|
|
238
|
+
readonly seen: boolean;
|
|
239
|
+
readonly senderEmail: string;
|
|
240
|
+
readonly senderName: string | null;
|
|
241
|
+
readonly subject: string | null;
|
|
242
|
+
readonly userId: string;
|
|
243
|
+
readonly words: string;
|
|
528
244
|
} & {
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
readonly
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
}
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
readonly uidValidity: {
|
|
575
|
-
type: "number";
|
|
576
|
-
optional: false;
|
|
577
|
-
customType: number;
|
|
578
|
-
} & {
|
|
579
|
-
serverName: string;
|
|
580
|
-
};
|
|
581
|
-
};
|
|
582
|
-
primaryKey: readonly [string, ...string[]];
|
|
583
|
-
} & {
|
|
584
|
-
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
585
|
-
};
|
|
586
|
-
readonly threadByLabel: {
|
|
587
|
-
name: "threadByLabel";
|
|
588
|
-
columns: {
|
|
589
|
-
readonly labelId: {
|
|
590
|
-
type: "string";
|
|
591
|
-
optional: false;
|
|
592
|
-
customType: string;
|
|
593
|
-
} & {
|
|
594
|
-
serverName: string;
|
|
595
|
-
};
|
|
596
|
-
readonly latestMessageDate: {
|
|
597
|
-
type: "number";
|
|
598
|
-
optional: false;
|
|
599
|
-
customType: number;
|
|
600
|
-
} & {
|
|
601
|
-
serverName: string;
|
|
602
|
-
};
|
|
603
|
-
readonly threadId: {
|
|
604
|
-
type: "string";
|
|
605
|
-
optional: false;
|
|
606
|
-
customType: string;
|
|
607
|
-
} & {
|
|
608
|
-
serverName: string;
|
|
609
|
-
};
|
|
610
|
-
};
|
|
611
|
-
primaryKey: readonly [string, ...string[]];
|
|
612
|
-
} & {
|
|
613
|
-
primaryKey: ["labelId", "threadId"];
|
|
614
|
-
};
|
|
615
|
-
readonly threadMessage: {
|
|
616
|
-
name: "threadMessage";
|
|
617
|
-
columns: {
|
|
618
|
-
readonly accountId: {
|
|
619
|
-
type: "string";
|
|
620
|
-
optional: false;
|
|
621
|
-
customType: string;
|
|
622
|
-
} & {
|
|
623
|
-
serverName: string;
|
|
624
|
-
};
|
|
625
|
-
readonly envelopeDate: {
|
|
626
|
-
type: "number";
|
|
627
|
-
optional: false;
|
|
628
|
-
customType: number;
|
|
629
|
-
} & {
|
|
630
|
-
serverName: string;
|
|
631
|
-
};
|
|
632
|
-
readonly envelopeSubject: Omit<{
|
|
633
|
-
type: "string";
|
|
634
|
-
optional: false;
|
|
635
|
-
customType: string;
|
|
636
|
-
}, "optional"> & {
|
|
637
|
-
optional: true;
|
|
638
|
-
} & {
|
|
639
|
-
serverName: string;
|
|
640
|
-
};
|
|
641
|
-
readonly id: {
|
|
642
|
-
type: "string";
|
|
643
|
-
optional: false;
|
|
644
|
-
customType: string;
|
|
645
|
-
};
|
|
646
|
-
readonly previewText: {
|
|
647
|
-
type: "string";
|
|
648
|
-
optional: false;
|
|
649
|
-
customType: string;
|
|
650
|
-
} & {
|
|
651
|
-
serverName: string;
|
|
652
|
-
};
|
|
653
|
-
readonly senderEmail: {
|
|
654
|
-
type: "string";
|
|
655
|
-
optional: false;
|
|
656
|
-
customType: string;
|
|
657
|
-
} & {
|
|
658
|
-
serverName: string;
|
|
659
|
-
};
|
|
660
|
-
readonly senderName: Omit<{
|
|
661
|
-
type: "string";
|
|
662
|
-
optional: false;
|
|
663
|
-
customType: string;
|
|
664
|
-
}, "optional"> & {
|
|
665
|
-
optional: true;
|
|
666
|
-
} & {
|
|
667
|
-
serverName: string;
|
|
668
|
-
};
|
|
669
|
-
readonly threadId: {
|
|
670
|
-
type: "string";
|
|
671
|
-
optional: false;
|
|
672
|
-
customType: string;
|
|
673
|
-
} & {
|
|
674
|
-
serverName: string;
|
|
675
|
-
};
|
|
676
|
-
};
|
|
677
|
-
primaryKey: readonly [string, ...string[]];
|
|
245
|
+
readonly messages: readonly ({
|
|
246
|
+
readonly accountId: string;
|
|
247
|
+
readonly envelopeDate: number;
|
|
248
|
+
readonly envelopeSubject: string | null;
|
|
249
|
+
readonly id: string;
|
|
250
|
+
readonly previewText: string;
|
|
251
|
+
readonly senderEmail: string;
|
|
252
|
+
readonly senderName: string | null;
|
|
253
|
+
readonly threadId: string;
|
|
254
|
+
} & {
|
|
255
|
+
readonly recipients: readonly {
|
|
256
|
+
readonly emailAddress: string;
|
|
257
|
+
readonly id: string;
|
|
258
|
+
readonly name: string | null;
|
|
259
|
+
readonly threadMessageId: string;
|
|
260
|
+
readonly type: "bcc" | "cc" | "to" | "replyTo";
|
|
261
|
+
}[];
|
|
262
|
+
} & {
|
|
263
|
+
readonly attachments: readonly {
|
|
264
|
+
readonly fileName: string;
|
|
265
|
+
readonly id: string;
|
|
266
|
+
readonly mimeType: string;
|
|
267
|
+
readonly size: number;
|
|
268
|
+
readonly threadMessageId: string;
|
|
269
|
+
}[];
|
|
270
|
+
})[];
|
|
271
|
+
}) | undefined;
|
|
272
|
+
}, {
|
|
273
|
+
readonly userId: string;
|
|
274
|
+
}>;
|
|
275
|
+
readonly getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
|
|
276
|
+
readonly id: string;
|
|
277
|
+
readonly name: string | null;
|
|
278
|
+
readonly profilePicture: string | null;
|
|
279
|
+
readonly undoSendEnabled: boolean;
|
|
280
|
+
} & {
|
|
281
|
+
readonly accounts: readonly ({
|
|
282
|
+
readonly color: string;
|
|
283
|
+
readonly displayName: string | null;
|
|
284
|
+
readonly id: string;
|
|
285
|
+
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";
|
|
286
|
+
readonly mailProcessedCount: number;
|
|
287
|
+
readonly mailTotalCount: number;
|
|
288
|
+
readonly primaryAliasId: string | null;
|
|
289
|
+
readonly userId: string;
|
|
678
290
|
} & {
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
readonly
|
|
685
|
-
|
|
686
|
-
optional: false;
|
|
687
|
-
customType: string;
|
|
688
|
-
} & {
|
|
689
|
-
serverName: string;
|
|
690
|
-
};
|
|
691
|
-
readonly id: {
|
|
692
|
-
type: "string";
|
|
693
|
-
optional: false;
|
|
694
|
-
customType: string;
|
|
695
|
-
};
|
|
696
|
-
readonly name: Omit<{
|
|
697
|
-
type: "string";
|
|
698
|
-
optional: false;
|
|
699
|
-
customType: string;
|
|
700
|
-
}, "optional"> & {
|
|
701
|
-
optional: true;
|
|
702
|
-
};
|
|
703
|
-
readonly threadMessageId: {
|
|
704
|
-
type: "string";
|
|
705
|
-
optional: false;
|
|
706
|
-
customType: string;
|
|
707
|
-
} & {
|
|
708
|
-
serverName: string;
|
|
709
|
-
};
|
|
710
|
-
readonly type: {
|
|
711
|
-
type: "string";
|
|
712
|
-
optional: false;
|
|
713
|
-
customType: "bcc" | "cc" | "to" | "replyTo";
|
|
714
|
-
};
|
|
715
|
-
};
|
|
716
|
-
primaryKey: readonly [string, ...string[]];
|
|
291
|
+
readonly aliases: readonly {
|
|
292
|
+
readonly accountId: string;
|
|
293
|
+
readonly emailAddress: string;
|
|
294
|
+
readonly id: string;
|
|
295
|
+
readonly isPrimary: boolean;
|
|
296
|
+
readonly name: string | null;
|
|
297
|
+
}[];
|
|
717
298
|
} & {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
readonly
|
|
724
|
-
|
|
725
|
-
optional: false;
|
|
726
|
-
customType: string;
|
|
727
|
-
} & {
|
|
728
|
-
serverName: string;
|
|
729
|
-
};
|
|
730
|
-
readonly id: {
|
|
731
|
-
type: "string";
|
|
732
|
-
optional: false;
|
|
733
|
-
customType: string;
|
|
734
|
-
};
|
|
735
|
-
readonly mimeType: {
|
|
736
|
-
type: "string";
|
|
737
|
-
optional: false;
|
|
738
|
-
customType: string;
|
|
739
|
-
} & {
|
|
740
|
-
serverName: string;
|
|
741
|
-
};
|
|
742
|
-
readonly size: {
|
|
743
|
-
type: "number";
|
|
744
|
-
optional: false;
|
|
745
|
-
customType: number;
|
|
746
|
-
};
|
|
747
|
-
readonly threadMessageId: {
|
|
748
|
-
type: "string";
|
|
749
|
-
optional: false;
|
|
750
|
-
customType: string;
|
|
751
|
-
} & {
|
|
752
|
-
serverName: string;
|
|
753
|
-
};
|
|
754
|
-
};
|
|
755
|
-
primaryKey: readonly [string, ...string[]];
|
|
299
|
+
readonly primaryAlias: {
|
|
300
|
+
readonly accountId: string;
|
|
301
|
+
readonly emailAddress: string;
|
|
302
|
+
readonly id: string;
|
|
303
|
+
readonly isPrimary: boolean;
|
|
304
|
+
readonly name: string | null;
|
|
305
|
+
} | undefined;
|
|
756
306
|
} & {
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
readonly
|
|
764
|
-
readonly
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
readonly cardinality: "many";
|
|
779
|
-
}];
|
|
780
|
-
pushNotificationTokens: [{
|
|
781
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
782
|
-
readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
783
|
-
readonly destSchema: "userPushNotificationToken";
|
|
784
|
-
readonly cardinality: "many";
|
|
785
|
-
}];
|
|
786
|
-
threads: [{
|
|
787
|
-
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
788
|
-
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
789
|
-
readonly destSchema: "thread";
|
|
790
|
-
readonly cardinality: "many";
|
|
791
|
-
}];
|
|
792
|
-
};
|
|
793
|
-
readonly draftAttachment: {
|
|
794
|
-
draft: [{
|
|
795
|
-
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
796
|
-
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
797
|
-
readonly destSchema: "draft";
|
|
798
|
-
readonly cardinality: "one";
|
|
799
|
-
}];
|
|
800
|
-
};
|
|
801
|
-
readonly userPushNotificationToken: {
|
|
802
|
-
user: [{
|
|
803
|
-
readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
804
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
805
|
-
readonly destSchema: "user";
|
|
806
|
-
readonly cardinality: "one";
|
|
807
|
-
}];
|
|
808
|
-
};
|
|
809
|
-
readonly contact: {
|
|
810
|
-
user: [{
|
|
811
|
-
readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
812
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
813
|
-
readonly destSchema: "user";
|
|
814
|
-
readonly cardinality: "one";
|
|
815
|
-
}];
|
|
816
|
-
};
|
|
817
|
-
readonly account: {
|
|
818
|
-
aliases: [{
|
|
819
|
-
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
820
|
-
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
821
|
-
readonly destSchema: "accountAlias";
|
|
822
|
-
readonly cardinality: "many";
|
|
823
|
-
}];
|
|
824
|
-
drafts: [{
|
|
825
|
-
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
826
|
-
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
827
|
-
readonly destSchema: "draft";
|
|
828
|
-
readonly cardinality: "many";
|
|
829
|
-
}];
|
|
830
|
-
labels: [{
|
|
831
|
-
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
832
|
-
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
833
|
-
readonly destSchema: "accountLabel";
|
|
834
|
-
readonly cardinality: "many";
|
|
835
|
-
}];
|
|
836
|
-
primaryAlias: [{
|
|
837
|
-
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
838
|
-
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
839
|
-
readonly destSchema: "accountAlias";
|
|
840
|
-
readonly cardinality: "one";
|
|
841
|
-
}];
|
|
842
|
-
threads: [{
|
|
843
|
-
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
844
|
-
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
845
|
-
readonly destSchema: "thread";
|
|
846
|
-
readonly cardinality: "many";
|
|
847
|
-
}];
|
|
848
|
-
user: [{
|
|
849
|
-
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
850
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
851
|
-
readonly destSchema: "user";
|
|
852
|
-
readonly cardinality: "one";
|
|
853
|
-
}];
|
|
854
|
-
};
|
|
855
|
-
readonly accountAlias: {
|
|
856
|
-
account: [{
|
|
857
|
-
readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
858
|
-
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
859
|
-
readonly destSchema: "account";
|
|
860
|
-
readonly cardinality: "one";
|
|
861
|
-
}];
|
|
862
|
-
};
|
|
863
|
-
readonly accountLabel: {
|
|
864
|
-
account: [{
|
|
865
|
-
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
866
|
-
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
867
|
-
readonly destSchema: "account";
|
|
868
|
-
readonly cardinality: "one";
|
|
869
|
-
}];
|
|
870
|
-
threads: [{
|
|
871
|
-
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
872
|
-
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
873
|
-
readonly destSchema: "threadLabel";
|
|
874
|
-
readonly cardinality: "many";
|
|
875
|
-
}, {
|
|
876
|
-
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
877
|
-
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
878
|
-
readonly destSchema: "thread";
|
|
879
|
-
readonly cardinality: "many";
|
|
880
|
-
}];
|
|
881
|
-
};
|
|
882
|
-
readonly draft: {
|
|
883
|
-
account: [{
|
|
884
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
885
|
-
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
886
|
-
readonly destSchema: "account";
|
|
887
|
-
readonly cardinality: "one";
|
|
888
|
-
}];
|
|
889
|
-
attachments: [{
|
|
890
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
891
|
-
readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
892
|
-
readonly destSchema: "draftAttachment";
|
|
893
|
-
readonly cardinality: "many";
|
|
894
|
-
}];
|
|
895
|
-
user: [{
|
|
896
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
897
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
898
|
-
readonly destSchema: "user";
|
|
899
|
-
readonly cardinality: "one";
|
|
900
|
-
}];
|
|
901
|
-
};
|
|
902
|
-
readonly thread: {
|
|
903
|
-
account: [{
|
|
904
|
-
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
905
|
-
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
906
|
-
readonly destSchema: "account";
|
|
907
|
-
readonly cardinality: "one";
|
|
908
|
-
}];
|
|
909
|
-
labels: [{
|
|
910
|
-
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
911
|
-
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
912
|
-
readonly destSchema: "threadLabel";
|
|
913
|
-
readonly cardinality: "many";
|
|
914
|
-
}, {
|
|
915
|
-
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
916
|
-
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
917
|
-
readonly destSchema: "accountLabel";
|
|
918
|
-
readonly cardinality: "many";
|
|
919
|
-
}];
|
|
920
|
-
messages: [{
|
|
921
|
-
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
922
|
-
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
923
|
-
readonly destSchema: "threadMessage";
|
|
924
|
-
readonly cardinality: "many";
|
|
925
|
-
}];
|
|
926
|
-
threadByLabel: [{
|
|
927
|
-
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
928
|
-
readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
929
|
-
readonly destSchema: "threadByLabel";
|
|
930
|
-
readonly cardinality: "many";
|
|
931
|
-
}];
|
|
932
|
-
user: [{
|
|
933
|
-
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
934
|
-
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
935
|
-
readonly destSchema: "user";
|
|
936
|
-
readonly cardinality: "one";
|
|
937
|
-
}];
|
|
938
|
-
};
|
|
939
|
-
readonly threadLabel: {
|
|
940
|
-
label: [{
|
|
941
|
-
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
942
|
-
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
943
|
-
readonly destSchema: "accountLabel";
|
|
944
|
-
readonly cardinality: "one";
|
|
945
|
-
}];
|
|
946
|
-
message: [{
|
|
947
|
-
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
948
|
-
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
949
|
-
readonly destSchema: "threadMessage";
|
|
950
|
-
readonly cardinality: "one";
|
|
951
|
-
}];
|
|
952
|
-
thread: [{
|
|
953
|
-
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
954
|
-
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
955
|
-
readonly destSchema: "thread";
|
|
956
|
-
readonly cardinality: "one";
|
|
957
|
-
}];
|
|
958
|
-
};
|
|
959
|
-
readonly threadByLabel: {
|
|
960
|
-
label: [{
|
|
961
|
-
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
962
|
-
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
963
|
-
readonly destSchema: "accountLabel";
|
|
964
|
-
readonly cardinality: "one";
|
|
965
|
-
}];
|
|
966
|
-
thread: [{
|
|
967
|
-
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
968
|
-
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
969
|
-
readonly destSchema: "thread";
|
|
970
|
-
readonly cardinality: "one";
|
|
971
|
-
}];
|
|
972
|
-
};
|
|
973
|
-
readonly threadMessage: {
|
|
974
|
-
attachments: [{
|
|
975
|
-
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
976
|
-
readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
977
|
-
readonly destSchema: "threadMessageAttachment";
|
|
978
|
-
readonly cardinality: "many";
|
|
979
|
-
}];
|
|
980
|
-
labels: [{
|
|
981
|
-
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
982
|
-
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
983
|
-
readonly destSchema: "threadLabel";
|
|
984
|
-
readonly cardinality: "many";
|
|
985
|
-
}, {
|
|
986
|
-
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
987
|
-
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
988
|
-
readonly destSchema: "accountLabel";
|
|
989
|
-
readonly cardinality: "many";
|
|
990
|
-
}];
|
|
991
|
-
recipients: [{
|
|
992
|
-
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
993
|
-
readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
994
|
-
readonly destSchema: "threadMessageRecipient";
|
|
995
|
-
readonly cardinality: "many";
|
|
996
|
-
}];
|
|
997
|
-
thread: [{
|
|
998
|
-
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
999
|
-
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1000
|
-
readonly destSchema: "thread";
|
|
1001
|
-
readonly cardinality: "one";
|
|
1002
|
-
}];
|
|
1003
|
-
};
|
|
1004
|
-
readonly threadMessageRecipient: {
|
|
1005
|
-
message: [{
|
|
1006
|
-
readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1007
|
-
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1008
|
-
readonly destSchema: "threadMessage";
|
|
1009
|
-
readonly cardinality: "one";
|
|
1010
|
-
}];
|
|
1011
|
-
};
|
|
1012
|
-
readonly threadMessageAttachment: {
|
|
1013
|
-
message: [{
|
|
1014
|
-
readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1015
|
-
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1016
|
-
readonly destSchema: "threadMessage";
|
|
1017
|
-
readonly cardinality: "one";
|
|
1018
|
-
}];
|
|
1019
|
-
};
|
|
1020
|
-
};
|
|
1021
|
-
enableLegacyQueries: boolean | undefined;
|
|
1022
|
-
enableLegacyMutators: boolean | undefined;
|
|
1023
|
-
}>;
|
|
1024
|
-
export { getAccounts } from './getAccounts';
|
|
1025
|
-
export { getContacts } from './getContacts';
|
|
1026
|
-
export { getDrafts } from './getDrafts';
|
|
1027
|
-
export { getThread } from './getThread';
|
|
1028
|
-
export { getThreadList } from './getThreadList';
|
|
1029
|
-
export { getThreads } from './getThreads';
|
|
1030
|
-
export { getUser } from './getUser';
|
|
307
|
+
readonly labels: readonly {
|
|
308
|
+
readonly accountId: string;
|
|
309
|
+
readonly id: string;
|
|
310
|
+
readonly name: string | null;
|
|
311
|
+
readonly path: string;
|
|
312
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
313
|
+
readonly uidValidity: number;
|
|
314
|
+
readonly unreadCount: number;
|
|
315
|
+
}[];
|
|
316
|
+
})[];
|
|
317
|
+
} & {
|
|
318
|
+
readonly pushNotificationTokens: readonly {
|
|
319
|
+
readonly createdAt: number;
|
|
320
|
+
readonly id: string;
|
|
321
|
+
readonly token: string;
|
|
322
|
+
readonly userId: string;
|
|
323
|
+
}[];
|
|
324
|
+
}, {
|
|
325
|
+
readonly userId: string;
|
|
326
|
+
}>;
|
|
327
|
+
}, import("@rocicorp/zero").Schema>;
|
|
1031
328
|
//# sourceMappingURL=index.d.ts.map
|