@marcoappio/marco-config 2.0.508 → 2.0.510
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/constants/index.d.ts +1 -0
- package/dist/constants/index.d.ts.map +1 -1
- package/dist/constants/zero.d.ts +1 -0
- package/dist/constants/zero.d.ts.map +1 -1
- package/dist/constants/zero.js +1 -0
- 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 +2903 -8808
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +6 -17
- 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/getThreadByMessageId.d.ts +0 -1056
- package/dist/zero/queries/getThreadByMessageId.d.ts.map +0 -1
- package/dist/zero/queries/getThreadByMessageId.js +0 -13
- 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 -1032
- package/dist/zero/queries/index.d.ts.map +0 -1
- package/dist/zero/queries/index.js +0 -11
|
@@ -1,17 +1,442 @@
|
|
|
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 mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
5
|
+
readonly account: {
|
|
6
|
+
readonly createAccount: import("@rocicorp/zero").MutatorDefinition<{
|
|
7
|
+
aliasId: string;
|
|
8
|
+
color: string;
|
|
9
|
+
emailAddress: string;
|
|
10
|
+
id: string;
|
|
11
|
+
}, {
|
|
12
|
+
aliasId: string;
|
|
13
|
+
color: string;
|
|
14
|
+
emailAddress: string;
|
|
15
|
+
id: string;
|
|
16
|
+
}, Context, unknown>;
|
|
17
|
+
readonly createAlias: import("@rocicorp/zero").MutatorDefinition<{
|
|
18
|
+
accountId: string;
|
|
19
|
+
alias: {
|
|
20
|
+
emailAddress: string;
|
|
21
|
+
id: string;
|
|
22
|
+
name: string | null;
|
|
23
|
+
};
|
|
24
|
+
}, {
|
|
25
|
+
accountId: string;
|
|
26
|
+
alias: {
|
|
27
|
+
emailAddress: string;
|
|
28
|
+
id: string;
|
|
29
|
+
name: string | null;
|
|
30
|
+
};
|
|
31
|
+
}, Context, unknown>;
|
|
32
|
+
readonly deleteAccount: import("@rocicorp/zero").MutatorDefinition<{
|
|
33
|
+
id: string;
|
|
34
|
+
}, {
|
|
35
|
+
id: string;
|
|
36
|
+
}, Context, unknown>;
|
|
37
|
+
readonly deleteAlias: import("@rocicorp/zero").MutatorDefinition<{
|
|
38
|
+
accountId: string;
|
|
39
|
+
aliasId: string;
|
|
40
|
+
}, {
|
|
41
|
+
accountId: string;
|
|
42
|
+
aliasId: string;
|
|
43
|
+
}, Context, unknown>;
|
|
44
|
+
readonly setAliasName: import("@rocicorp/zero").MutatorDefinition<{
|
|
45
|
+
accountId: string;
|
|
46
|
+
aliasId: string;
|
|
47
|
+
displayName: string | null;
|
|
48
|
+
}, {
|
|
49
|
+
accountId: string;
|
|
50
|
+
aliasId: string;
|
|
51
|
+
displayName: string | null;
|
|
52
|
+
}, Context, unknown>;
|
|
53
|
+
readonly setAliasPrimary: import("@rocicorp/zero").MutatorDefinition<{
|
|
54
|
+
accountId: string;
|
|
55
|
+
aliasId: string;
|
|
56
|
+
}, {
|
|
57
|
+
accountId: string;
|
|
58
|
+
aliasId: string;
|
|
59
|
+
}, Context, unknown>;
|
|
60
|
+
readonly setConnectionConfigImapRaw: import("@rocicorp/zero").MutatorDefinition<{
|
|
61
|
+
connectionConfig: {
|
|
62
|
+
imapHost: string;
|
|
63
|
+
imapPassword: string;
|
|
64
|
+
imapPort: number;
|
|
65
|
+
imapSocketType: "STARTTLS" | "SSL";
|
|
66
|
+
imapUser: string;
|
|
67
|
+
smtpHost: string;
|
|
68
|
+
smtpPassword: string;
|
|
69
|
+
smtpPort: number;
|
|
70
|
+
smtpSocketType: "STARTTLS" | "SSL";
|
|
71
|
+
smtpUser: string;
|
|
72
|
+
};
|
|
73
|
+
id: string;
|
|
74
|
+
}, {
|
|
75
|
+
connectionConfig: {
|
|
76
|
+
imapHost: string;
|
|
77
|
+
imapPassword: string;
|
|
78
|
+
imapPort: number;
|
|
79
|
+
imapSocketType: "STARTTLS" | "SSL";
|
|
80
|
+
imapUser: string;
|
|
81
|
+
smtpHost: string;
|
|
82
|
+
smtpPassword: string;
|
|
83
|
+
smtpPort: number;
|
|
84
|
+
smtpSocketType: "STARTTLS" | "SSL";
|
|
85
|
+
smtpUser: string;
|
|
86
|
+
};
|
|
87
|
+
id: string;
|
|
88
|
+
}, Context, unknown>;
|
|
89
|
+
readonly setConnectionConfigOauth: import("@rocicorp/zero").MutatorDefinition<{
|
|
90
|
+
connectionConfig: {
|
|
91
|
+
code: string;
|
|
92
|
+
provider: "GOOGLE" | "OUTLOOK";
|
|
93
|
+
user: string;
|
|
94
|
+
};
|
|
95
|
+
id: string;
|
|
96
|
+
}, {
|
|
97
|
+
connectionConfig: {
|
|
98
|
+
code: string;
|
|
99
|
+
provider: "GOOGLE" | "OUTLOOK";
|
|
100
|
+
user: string;
|
|
101
|
+
};
|
|
102
|
+
id: string;
|
|
103
|
+
}, Context, unknown>;
|
|
104
|
+
readonly setSettings: import("@rocicorp/zero").MutatorDefinition<{
|
|
105
|
+
color?: string | null | undefined;
|
|
106
|
+
displayName?: string | null | undefined;
|
|
107
|
+
id: string;
|
|
108
|
+
}, {
|
|
109
|
+
color?: string | null | undefined;
|
|
110
|
+
displayName?: string | null | undefined;
|
|
111
|
+
id: string;
|
|
112
|
+
}, Context, unknown>;
|
|
113
|
+
};
|
|
114
|
+
readonly draft: {
|
|
115
|
+
readonly cancelSend: import("@rocicorp/zero").MutatorDefinition<{
|
|
116
|
+
id: string;
|
|
117
|
+
updatedAt: number;
|
|
118
|
+
}, {
|
|
119
|
+
id: string;
|
|
120
|
+
updatedAt: number;
|
|
121
|
+
}, Context, unknown>;
|
|
122
|
+
readonly createAttachment: import("@rocicorp/zero").MutatorDefinition<{
|
|
123
|
+
attachment: {
|
|
124
|
+
fileName: string;
|
|
125
|
+
id: string;
|
|
126
|
+
mimeType: string;
|
|
127
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
128
|
+
totalSize: number;
|
|
129
|
+
};
|
|
130
|
+
id: string;
|
|
131
|
+
updatedAt: number;
|
|
132
|
+
}, {
|
|
133
|
+
attachment: {
|
|
134
|
+
fileName: string;
|
|
135
|
+
id: string;
|
|
136
|
+
mimeType: string;
|
|
137
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
138
|
+
totalSize: number;
|
|
139
|
+
};
|
|
140
|
+
id: string;
|
|
141
|
+
updatedAt: number;
|
|
142
|
+
}, Context, unknown>;
|
|
143
|
+
readonly createDraft: import("@rocicorp/zero").MutatorDefinition<{
|
|
144
|
+
accountId: string;
|
|
145
|
+
attachments: {
|
|
146
|
+
fileName: string;
|
|
147
|
+
id: string;
|
|
148
|
+
mimeType: string;
|
|
149
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
150
|
+
totalSize: number;
|
|
151
|
+
}[];
|
|
152
|
+
body: {
|
|
153
|
+
bcc: string[];
|
|
154
|
+
cc: string[];
|
|
155
|
+
content: string;
|
|
156
|
+
subject: string | null;
|
|
157
|
+
to: string[];
|
|
158
|
+
};
|
|
159
|
+
error: string | null;
|
|
160
|
+
from: string;
|
|
161
|
+
fromName: string | null;
|
|
162
|
+
id: string;
|
|
163
|
+
referencedMessageId: string | null;
|
|
164
|
+
scheduledFor: number | null;
|
|
165
|
+
status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
166
|
+
type: "NEW" | "REPLY" | "FORWARD";
|
|
167
|
+
updatedAt: number;
|
|
168
|
+
}, {
|
|
169
|
+
accountId: string;
|
|
170
|
+
attachments: {
|
|
171
|
+
fileName: string;
|
|
172
|
+
id: string;
|
|
173
|
+
mimeType: string;
|
|
174
|
+
status: "PENDING" | "COMPLETE" | "FAILED";
|
|
175
|
+
totalSize: number;
|
|
176
|
+
}[];
|
|
177
|
+
body: {
|
|
178
|
+
bcc: string[];
|
|
179
|
+
cc: string[];
|
|
180
|
+
content: string;
|
|
181
|
+
subject: string | null;
|
|
182
|
+
to: string[];
|
|
183
|
+
};
|
|
184
|
+
error: string | null;
|
|
185
|
+
from: string;
|
|
186
|
+
fromName: string | null;
|
|
187
|
+
id: string;
|
|
188
|
+
referencedMessageId: string | null;
|
|
189
|
+
scheduledFor: number | null;
|
|
190
|
+
status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
|
|
191
|
+
type: "NEW" | "REPLY" | "FORWARD";
|
|
192
|
+
updatedAt: number;
|
|
193
|
+
}, Context, unknown>;
|
|
194
|
+
readonly deleteAttachment: import("@rocicorp/zero").MutatorDefinition<{
|
|
195
|
+
attachmentId: string;
|
|
196
|
+
id: string;
|
|
197
|
+
updatedAt: number;
|
|
198
|
+
}, {
|
|
199
|
+
attachmentId: string;
|
|
200
|
+
id: string;
|
|
201
|
+
updatedAt: number;
|
|
202
|
+
}, Context, unknown>;
|
|
203
|
+
readonly deleteDraft: import("@rocicorp/zero").MutatorDefinition<{
|
|
204
|
+
id: string;
|
|
205
|
+
}, {
|
|
206
|
+
id: string;
|
|
207
|
+
}, Context, unknown>;
|
|
208
|
+
readonly scheduleSend: import("@rocicorp/zero").MutatorDefinition<{
|
|
209
|
+
id: string;
|
|
210
|
+
kind: "IMMEDIATE";
|
|
211
|
+
undoMs: number;
|
|
212
|
+
updatedAt: number;
|
|
213
|
+
} | {
|
|
214
|
+
id: string;
|
|
215
|
+
kind: "SCHEDULED";
|
|
216
|
+
scheduledFor: number;
|
|
217
|
+
updatedAt: number;
|
|
218
|
+
}, {
|
|
219
|
+
id: string;
|
|
220
|
+
kind: "IMMEDIATE";
|
|
221
|
+
undoMs: number;
|
|
222
|
+
updatedAt: number;
|
|
223
|
+
} | {
|
|
224
|
+
id: string;
|
|
225
|
+
kind: "SCHEDULED";
|
|
226
|
+
scheduledFor: number;
|
|
227
|
+
updatedAt: number;
|
|
228
|
+
}, Context, unknown>;
|
|
229
|
+
readonly setContent: import("@rocicorp/zero").MutatorDefinition<{
|
|
230
|
+
id: string;
|
|
231
|
+
patch: {
|
|
232
|
+
index: number;
|
|
233
|
+
type: "INSERTION" | "DELETION";
|
|
234
|
+
value: string;
|
|
235
|
+
}[];
|
|
236
|
+
updatedAt: number;
|
|
237
|
+
}, {
|
|
238
|
+
id: string;
|
|
239
|
+
patch: {
|
|
240
|
+
index: number;
|
|
241
|
+
type: "INSERTION" | "DELETION";
|
|
242
|
+
value: string;
|
|
243
|
+
}[];
|
|
244
|
+
updatedAt: number;
|
|
245
|
+
}, Context, unknown>;
|
|
246
|
+
readonly setEnvelope: import("@rocicorp/zero").MutatorDefinition<{
|
|
247
|
+
envelope: {
|
|
248
|
+
bcc: string[];
|
|
249
|
+
cc: string[];
|
|
250
|
+
to: string[];
|
|
251
|
+
subject: string | null;
|
|
252
|
+
};
|
|
253
|
+
id: string;
|
|
254
|
+
updatedAt: number;
|
|
255
|
+
}, {
|
|
256
|
+
envelope: {
|
|
257
|
+
bcc: string[];
|
|
258
|
+
cc: string[];
|
|
259
|
+
to: string[];
|
|
260
|
+
subject: string | null;
|
|
261
|
+
};
|
|
262
|
+
id: string;
|
|
263
|
+
updatedAt: number;
|
|
264
|
+
}, Context, unknown>;
|
|
265
|
+
readonly setFrom: import("@rocicorp/zero").MutatorDefinition<{
|
|
266
|
+
accountId: string;
|
|
267
|
+
aliasId: string;
|
|
268
|
+
from: string;
|
|
269
|
+
fromName: string | null;
|
|
270
|
+
id: string;
|
|
271
|
+
updatedAt: number;
|
|
272
|
+
}, {
|
|
273
|
+
accountId: string;
|
|
274
|
+
aliasId: string;
|
|
275
|
+
from: string;
|
|
276
|
+
fromName: string | null;
|
|
277
|
+
id: string;
|
|
278
|
+
updatedAt: number;
|
|
279
|
+
}, Context, unknown>;
|
|
280
|
+
};
|
|
281
|
+
readonly thread: {
|
|
282
|
+
readonly addLabel: import("@rocicorp/zero").MutatorDefinition<{
|
|
283
|
+
accounts: {
|
|
284
|
+
[x: string]: {
|
|
285
|
+
threadIds: string[];
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
labelPath: string;
|
|
289
|
+
}, {
|
|
290
|
+
accounts: {
|
|
291
|
+
[x: string]: {
|
|
292
|
+
threadIds: string[];
|
|
293
|
+
};
|
|
294
|
+
};
|
|
295
|
+
labelPath: string;
|
|
296
|
+
}, Context, unknown>;
|
|
297
|
+
readonly delete: import("@rocicorp/zero").MutatorDefinition<{
|
|
298
|
+
accounts: {
|
|
299
|
+
[x: string]: {
|
|
300
|
+
threadIds: string[];
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
}, {
|
|
304
|
+
accounts: {
|
|
305
|
+
[x: string]: {
|
|
306
|
+
threadIds: string[];
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
}, Context, unknown>;
|
|
310
|
+
readonly removeLabel: import("@rocicorp/zero").MutatorDefinition<{
|
|
311
|
+
accounts: {
|
|
312
|
+
[x: string]: {
|
|
313
|
+
threadIds: string[];
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
labelPath: string;
|
|
317
|
+
}, {
|
|
318
|
+
accounts: {
|
|
319
|
+
[x: string]: {
|
|
320
|
+
threadIds: string[];
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
labelPath: string;
|
|
324
|
+
}, Context, unknown>;
|
|
325
|
+
readonly setArchive: import("@rocicorp/zero").MutatorDefinition<{
|
|
326
|
+
accounts: {
|
|
327
|
+
[x: string]: {
|
|
328
|
+
threadIds: string[];
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
}, {
|
|
332
|
+
accounts: {
|
|
333
|
+
[x: string]: {
|
|
334
|
+
threadIds: string[];
|
|
335
|
+
};
|
|
336
|
+
};
|
|
337
|
+
}, Context, unknown>;
|
|
338
|
+
readonly setFlagged: import("@rocicorp/zero").MutatorDefinition<{
|
|
339
|
+
accounts: {
|
|
340
|
+
[x: string]: {
|
|
341
|
+
threadIds: string[];
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
flagged: boolean;
|
|
345
|
+
}, {
|
|
346
|
+
accounts: {
|
|
347
|
+
[x: string]: {
|
|
348
|
+
threadIds: string[];
|
|
349
|
+
};
|
|
350
|
+
};
|
|
351
|
+
flagged: boolean;
|
|
352
|
+
}, Context, unknown>;
|
|
353
|
+
readonly setInbox: import("@rocicorp/zero").MutatorDefinition<{
|
|
354
|
+
accounts: {
|
|
355
|
+
[x: string]: {
|
|
356
|
+
threadIds: string[];
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
}, {
|
|
360
|
+
accounts: {
|
|
361
|
+
[x: string]: {
|
|
362
|
+
threadIds: string[];
|
|
363
|
+
};
|
|
364
|
+
};
|
|
365
|
+
}, Context, unknown>;
|
|
366
|
+
readonly setSeen: import("@rocicorp/zero").MutatorDefinition<{
|
|
367
|
+
accounts: {
|
|
368
|
+
[x: string]: {
|
|
369
|
+
threadIds: string[];
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
seen: boolean;
|
|
373
|
+
}, {
|
|
374
|
+
accounts: {
|
|
375
|
+
[x: string]: {
|
|
376
|
+
threadIds: string[];
|
|
377
|
+
};
|
|
378
|
+
};
|
|
379
|
+
seen: boolean;
|
|
380
|
+
}, Context, unknown>;
|
|
381
|
+
readonly setSpam: import("@rocicorp/zero").MutatorDefinition<{
|
|
382
|
+
accounts: {
|
|
383
|
+
[x: string]: {
|
|
384
|
+
threadIds: string[];
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
}, {
|
|
388
|
+
accounts: {
|
|
389
|
+
[x: string]: {
|
|
390
|
+
threadIds: string[];
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
}, Context, unknown>;
|
|
394
|
+
readonly setTrash: import("@rocicorp/zero").MutatorDefinition<{
|
|
395
|
+
accounts: {
|
|
396
|
+
[x: string]: {
|
|
397
|
+
threadIds: string[];
|
|
398
|
+
};
|
|
399
|
+
};
|
|
400
|
+
}, {
|
|
401
|
+
accounts: {
|
|
402
|
+
[x: string]: {
|
|
403
|
+
threadIds: string[];
|
|
404
|
+
};
|
|
405
|
+
};
|
|
406
|
+
}, Context, unknown>;
|
|
407
|
+
};
|
|
408
|
+
readonly user: {
|
|
409
|
+
readonly deleteSettingsPushNotificationToken: import("@rocicorp/zero").MutatorDefinition<{
|
|
410
|
+
id: string;
|
|
411
|
+
token: string;
|
|
412
|
+
}, {
|
|
413
|
+
id: string;
|
|
414
|
+
token: string;
|
|
415
|
+
}, Context, unknown>;
|
|
416
|
+
readonly setSettingsName: import("@rocicorp/zero").MutatorDefinition<{
|
|
417
|
+
id: string;
|
|
418
|
+
name: string | null;
|
|
419
|
+
}, {
|
|
420
|
+
id: string;
|
|
421
|
+
name: string | null;
|
|
422
|
+
}, Context, unknown>;
|
|
423
|
+
readonly setSettingsPushNotificationToken: import("@rocicorp/zero").MutatorDefinition<{
|
|
424
|
+
id: string;
|
|
425
|
+
pushNotificationToken: {
|
|
426
|
+
createdAt: number;
|
|
427
|
+
id: string;
|
|
428
|
+
token: string;
|
|
429
|
+
};
|
|
430
|
+
}, {
|
|
431
|
+
id: string;
|
|
432
|
+
pushNotificationToken: {
|
|
433
|
+
createdAt: number;
|
|
434
|
+
id: string;
|
|
435
|
+
token: string;
|
|
436
|
+
};
|
|
437
|
+
}, Context, unknown>;
|
|
438
|
+
};
|
|
439
|
+
}, {
|
|
15
440
|
tables: {
|
|
16
441
|
readonly user: {
|
|
17
442
|
name: "user";
|
|
@@ -49,6 +474,54 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
49
474
|
} & {
|
|
50
475
|
primaryKey: ["id"];
|
|
51
476
|
};
|
|
477
|
+
readonly draftAttachment: {
|
|
478
|
+
name: "draftAttachment";
|
|
479
|
+
columns: {
|
|
480
|
+
readonly draftId: {
|
|
481
|
+
type: "string";
|
|
482
|
+
optional: false;
|
|
483
|
+
customType: string;
|
|
484
|
+
} & {
|
|
485
|
+
serverName: string;
|
|
486
|
+
};
|
|
487
|
+
readonly fileName: {
|
|
488
|
+
type: "string";
|
|
489
|
+
optional: false;
|
|
490
|
+
customType: string;
|
|
491
|
+
} & {
|
|
492
|
+
serverName: string;
|
|
493
|
+
};
|
|
494
|
+
readonly id: {
|
|
495
|
+
type: "string";
|
|
496
|
+
optional: false;
|
|
497
|
+
customType: string;
|
|
498
|
+
};
|
|
499
|
+
readonly mimeType: {
|
|
500
|
+
type: "string";
|
|
501
|
+
optional: false;
|
|
502
|
+
customType: string;
|
|
503
|
+
} & {
|
|
504
|
+
serverName: string;
|
|
505
|
+
};
|
|
506
|
+
readonly status: {
|
|
507
|
+
type: "string";
|
|
508
|
+
optional: false;
|
|
509
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
510
|
+
} & {
|
|
511
|
+
serverName: string;
|
|
512
|
+
};
|
|
513
|
+
readonly totalSize: {
|
|
514
|
+
type: "number";
|
|
515
|
+
optional: false;
|
|
516
|
+
customType: number;
|
|
517
|
+
} & {
|
|
518
|
+
serverName: string;
|
|
519
|
+
};
|
|
520
|
+
};
|
|
521
|
+
primaryKey: readonly [string, ...string[]];
|
|
522
|
+
} & {
|
|
523
|
+
primaryKey: ["id"];
|
|
524
|
+
};
|
|
52
525
|
readonly userPushNotificationToken: {
|
|
53
526
|
name: "userPushNotificationToken";
|
|
54
527
|
columns: {
|
|
@@ -386,54 +859,6 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
386
859
|
} & {
|
|
387
860
|
primaryKey: ["id"];
|
|
388
861
|
};
|
|
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
862
|
readonly thread: {
|
|
438
863
|
name: "thread";
|
|
439
864
|
columns: {
|
|
@@ -773,259 +1198,259 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
773
1198
|
relationships: {
|
|
774
1199
|
readonly user: {
|
|
775
1200
|
accounts: [{
|
|
776
|
-
readonly sourceField:
|
|
777
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1201
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1202
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
778
1203
|
readonly destSchema: "account";
|
|
779
1204
|
readonly cardinality: "many";
|
|
780
1205
|
}];
|
|
781
1206
|
contacts: [{
|
|
782
|
-
readonly sourceField:
|
|
783
|
-
readonly destField: ("id" | "name" | "userId" | "emailAddress")[];
|
|
1207
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1208
|
+
readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
784
1209
|
readonly destSchema: "contact";
|
|
785
1210
|
readonly cardinality: "many";
|
|
786
1211
|
}];
|
|
787
1212
|
drafts: [{
|
|
788
|
-
readonly sourceField:
|
|
789
|
-
readonly destField: ("type" | "status" | "id" | "
|
|
1213
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1214
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
790
1215
|
readonly destSchema: "draft";
|
|
791
1216
|
readonly cardinality: "many";
|
|
792
1217
|
}];
|
|
793
1218
|
pushNotificationTokens: [{
|
|
794
|
-
readonly sourceField:
|
|
795
|
-
readonly destField: ("
|
|
1219
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1220
|
+
readonly destField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
796
1221
|
readonly destSchema: "userPushNotificationToken";
|
|
797
1222
|
readonly cardinality: "many";
|
|
798
1223
|
}];
|
|
799
1224
|
threads: [{
|
|
800
|
-
readonly sourceField:
|
|
801
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1225
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1226
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
802
1227
|
readonly destSchema: "thread";
|
|
803
1228
|
readonly cardinality: "many";
|
|
804
1229
|
}];
|
|
805
1230
|
};
|
|
1231
|
+
readonly draftAttachment: {
|
|
1232
|
+
draft: [{
|
|
1233
|
+
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1234
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1235
|
+
readonly destSchema: "draft";
|
|
1236
|
+
readonly cardinality: "one";
|
|
1237
|
+
}];
|
|
1238
|
+
};
|
|
806
1239
|
readonly userPushNotificationToken: {
|
|
807
1240
|
user: [{
|
|
808
|
-
readonly sourceField:
|
|
809
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1241
|
+
readonly sourceField: readonly ("createdAt" | "id" | "token" | "userId")[];
|
|
1242
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
810
1243
|
readonly destSchema: "user";
|
|
811
1244
|
readonly cardinality: "one";
|
|
812
1245
|
}];
|
|
813
1246
|
};
|
|
814
1247
|
readonly contact: {
|
|
815
1248
|
user: [{
|
|
816
|
-
readonly sourceField:
|
|
817
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1249
|
+
readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
1250
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
818
1251
|
readonly destSchema: "user";
|
|
819
1252
|
readonly cardinality: "one";
|
|
820
1253
|
}];
|
|
821
1254
|
};
|
|
822
1255
|
readonly account: {
|
|
823
1256
|
aliases: [{
|
|
824
|
-
readonly sourceField:
|
|
825
|
-
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1257
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1258
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
826
1259
|
readonly destSchema: "accountAlias";
|
|
827
1260
|
readonly cardinality: "many";
|
|
828
1261
|
}];
|
|
829
1262
|
drafts: [{
|
|
830
|
-
readonly sourceField:
|
|
831
|
-
readonly destField: ("type" | "status" | "id" | "
|
|
1263
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1264
|
+
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
832
1265
|
readonly destSchema: "draft";
|
|
833
1266
|
readonly cardinality: "many";
|
|
834
1267
|
}];
|
|
835
1268
|
labels: [{
|
|
836
|
-
readonly sourceField:
|
|
837
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1269
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1270
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
838
1271
|
readonly destSchema: "accountLabel";
|
|
839
1272
|
readonly cardinality: "many";
|
|
840
1273
|
}];
|
|
841
1274
|
primaryAlias: [{
|
|
842
|
-
readonly sourceField:
|
|
843
|
-
readonly destField: ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1275
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1276
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
844
1277
|
readonly destSchema: "accountAlias";
|
|
845
1278
|
readonly cardinality: "one";
|
|
846
1279
|
}];
|
|
847
1280
|
threads: [{
|
|
848
|
-
readonly sourceField:
|
|
849
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1281
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1282
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
850
1283
|
readonly destSchema: "thread";
|
|
851
1284
|
readonly cardinality: "many";
|
|
852
1285
|
}];
|
|
853
1286
|
user: [{
|
|
854
|
-
readonly sourceField:
|
|
855
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1287
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1288
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
856
1289
|
readonly destSchema: "user";
|
|
857
1290
|
readonly cardinality: "one";
|
|
858
1291
|
}];
|
|
859
1292
|
};
|
|
860
1293
|
readonly accountAlias: {
|
|
861
1294
|
account: [{
|
|
862
|
-
readonly sourceField:
|
|
863
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1295
|
+
readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1296
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
864
1297
|
readonly destSchema: "account";
|
|
865
1298
|
readonly cardinality: "one";
|
|
866
1299
|
}];
|
|
867
1300
|
};
|
|
868
1301
|
readonly accountLabel: {
|
|
869
1302
|
account: [{
|
|
870
|
-
readonly sourceField:
|
|
871
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1303
|
+
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1304
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
872
1305
|
readonly destSchema: "account";
|
|
873
1306
|
readonly cardinality: "one";
|
|
874
1307
|
}];
|
|
875
1308
|
threads: [{
|
|
876
|
-
readonly sourceField:
|
|
877
|
-
readonly destField: ("
|
|
1309
|
+
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1310
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
878
1311
|
readonly destSchema: "threadLabel";
|
|
879
1312
|
readonly cardinality: "many";
|
|
880
1313
|
}, {
|
|
881
|
-
readonly sourceField:
|
|
882
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1314
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1315
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
883
1316
|
readonly destSchema: "thread";
|
|
884
1317
|
readonly cardinality: "many";
|
|
885
1318
|
}];
|
|
886
1319
|
};
|
|
887
1320
|
readonly draft: {
|
|
888
1321
|
account: [{
|
|
889
|
-
readonly sourceField:
|
|
890
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1322
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1323
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
891
1324
|
readonly destSchema: "account";
|
|
892
1325
|
readonly cardinality: "one";
|
|
893
1326
|
}];
|
|
894
1327
|
attachments: [{
|
|
895
|
-
readonly sourceField:
|
|
896
|
-
readonly destField: ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1328
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1329
|
+
readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
897
1330
|
readonly destSchema: "draftAttachment";
|
|
898
1331
|
readonly cardinality: "many";
|
|
899
1332
|
}];
|
|
900
1333
|
user: [{
|
|
901
|
-
readonly sourceField:
|
|
902
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1334
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1335
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
903
1336
|
readonly destSchema: "user";
|
|
904
1337
|
readonly cardinality: "one";
|
|
905
1338
|
}];
|
|
906
1339
|
};
|
|
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
1340
|
readonly thread: {
|
|
916
1341
|
account: [{
|
|
917
|
-
readonly sourceField:
|
|
918
|
-
readonly destField: ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1342
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1343
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
919
1344
|
readonly destSchema: "account";
|
|
920
1345
|
readonly cardinality: "one";
|
|
921
1346
|
}];
|
|
922
1347
|
labels: [{
|
|
923
|
-
readonly sourceField:
|
|
924
|
-
readonly destField: ("
|
|
1348
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1349
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
925
1350
|
readonly destSchema: "threadLabel";
|
|
926
1351
|
readonly cardinality: "many";
|
|
927
1352
|
}, {
|
|
928
|
-
readonly sourceField:
|
|
929
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1353
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1354
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
930
1355
|
readonly destSchema: "accountLabel";
|
|
931
1356
|
readonly cardinality: "many";
|
|
932
1357
|
}];
|
|
933
1358
|
messages: [{
|
|
934
|
-
readonly sourceField:
|
|
935
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1359
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1360
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
936
1361
|
readonly destSchema: "threadMessage";
|
|
937
1362
|
readonly cardinality: "many";
|
|
938
1363
|
}];
|
|
939
1364
|
threadByLabel: [{
|
|
940
|
-
readonly sourceField:
|
|
941
|
-
readonly destField: ("
|
|
1365
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1366
|
+
readonly destField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
942
1367
|
readonly destSchema: "threadByLabel";
|
|
943
1368
|
readonly cardinality: "many";
|
|
944
1369
|
}];
|
|
945
1370
|
user: [{
|
|
946
|
-
readonly sourceField:
|
|
947
|
-
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1371
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1372
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
948
1373
|
readonly destSchema: "user";
|
|
949
1374
|
readonly cardinality: "one";
|
|
950
1375
|
}];
|
|
951
1376
|
};
|
|
952
1377
|
readonly threadLabel: {
|
|
953
1378
|
label: [{
|
|
954
|
-
readonly sourceField:
|
|
955
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1379
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1380
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
956
1381
|
readonly destSchema: "accountLabel";
|
|
957
1382
|
readonly cardinality: "one";
|
|
958
1383
|
}];
|
|
959
1384
|
message: [{
|
|
960
|
-
readonly sourceField:
|
|
961
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1385
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1386
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
962
1387
|
readonly destSchema: "threadMessage";
|
|
963
1388
|
readonly cardinality: "one";
|
|
964
1389
|
}];
|
|
965
1390
|
thread: [{
|
|
966
|
-
readonly sourceField:
|
|
967
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1391
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1392
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
968
1393
|
readonly destSchema: "thread";
|
|
969
1394
|
readonly cardinality: "one";
|
|
970
1395
|
}];
|
|
971
1396
|
};
|
|
972
1397
|
readonly threadByLabel: {
|
|
973
1398
|
label: [{
|
|
974
|
-
readonly sourceField:
|
|
975
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1399
|
+
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
1400
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
976
1401
|
readonly destSchema: "accountLabel";
|
|
977
1402
|
readonly cardinality: "one";
|
|
978
1403
|
}];
|
|
979
1404
|
thread: [{
|
|
980
|
-
readonly sourceField:
|
|
981
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1405
|
+
readonly sourceField: readonly ("threadId" | "latestMessageDate" | "labelId")[];
|
|
1406
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
982
1407
|
readonly destSchema: "thread";
|
|
983
1408
|
readonly cardinality: "one";
|
|
984
1409
|
}];
|
|
985
1410
|
};
|
|
986
1411
|
readonly threadMessage: {
|
|
987
1412
|
attachments: [{
|
|
988
|
-
readonly sourceField:
|
|
989
|
-
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1413
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1414
|
+
readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
990
1415
|
readonly destSchema: "threadMessageAttachment";
|
|
991
1416
|
readonly cardinality: "many";
|
|
992
1417
|
}];
|
|
993
1418
|
labels: [{
|
|
994
|
-
readonly sourceField:
|
|
995
|
-
readonly destField: ("
|
|
1419
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1420
|
+
readonly destField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
996
1421
|
readonly destSchema: "threadLabel";
|
|
997
1422
|
readonly cardinality: "many";
|
|
998
1423
|
}, {
|
|
999
|
-
readonly sourceField:
|
|
1000
|
-
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1424
|
+
readonly sourceField: readonly ("threadId" | "accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadMessageId" | "uid")[];
|
|
1425
|
+
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1001
1426
|
readonly destSchema: "accountLabel";
|
|
1002
1427
|
readonly cardinality: "many";
|
|
1003
1428
|
}];
|
|
1004
1429
|
recipients: [{
|
|
1005
|
-
readonly sourceField:
|
|
1006
|
-
readonly destField: ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1430
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1431
|
+
readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1007
1432
|
readonly destSchema: "threadMessageRecipient";
|
|
1008
1433
|
readonly cardinality: "many";
|
|
1009
1434
|
}];
|
|
1010
1435
|
thread: [{
|
|
1011
|
-
readonly sourceField:
|
|
1012
|
-
readonly destField: ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1436
|
+
readonly sourceField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1437
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1013
1438
|
readonly destSchema: "thread";
|
|
1014
1439
|
readonly cardinality: "one";
|
|
1015
1440
|
}];
|
|
1016
1441
|
};
|
|
1017
1442
|
readonly threadMessageRecipient: {
|
|
1018
1443
|
message: [{
|
|
1019
|
-
readonly sourceField:
|
|
1020
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1444
|
+
readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1445
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1021
1446
|
readonly destSchema: "threadMessage";
|
|
1022
1447
|
readonly cardinality: "one";
|
|
1023
1448
|
}];
|
|
1024
1449
|
};
|
|
1025
1450
|
readonly threadMessageAttachment: {
|
|
1026
1451
|
message: [{
|
|
1027
|
-
readonly sourceField:
|
|
1028
|
-
readonly destField: ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "
|
|
1452
|
+
readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1453
|
+
readonly destField: readonly ("threadId" | "id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "envelopeDate" | "envelopeSubject")[];
|
|
1029
1454
|
readonly destSchema: "threadMessage";
|
|
1030
1455
|
readonly cardinality: "one";
|
|
1031
1456
|
}];
|
|
@@ -1033,28 +1458,6 @@ export declare const getThreadList: import("@rocicorp/zero").SyncedQuery<"getThr
|
|
|
1033
1458
|
};
|
|
1034
1459
|
enableLegacyQueries: boolean | undefined;
|
|
1035
1460
|
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
|
-
} | undefined;
|
|
1058
|
-
}>>;
|
|
1461
|
+
}>;
|
|
1059
1462
|
export {};
|
|
1060
|
-
//# sourceMappingURL=
|
|
1463
|
+
//# sourceMappingURL=mutators.d.ts.map
|