@marcoappio/marco-config 2.0.512 → 2.0.514
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/Zero.d.ts +12 -0
- package/dist/types/Zero.d.ts.map +1 -1
- package/dist/zero/index.d.ts +369 -369
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +1 -2
- package/dist/zero/mutators.d.ts +385 -123
- package/dist/zero/mutators.d.ts.map +1 -1
- package/dist/zero/mutators.js +176 -2
- package/dist/zero/queries.d.ts +123 -123
- package/dist/zero/schema.d.ts +123 -124
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +0 -1
- package/package.json +1 -1
- package/dist/zero/mutatorSchemas.d.ts +0 -263
- package/dist/zero/mutatorSchemas.d.ts.map +0 -1
- package/dist/zero/mutatorSchemas.js +0 -176
package/dist/zero/mutators.d.ts
CHANGED
|
@@ -1,6 +1,268 @@
|
|
|
1
|
+
import * as v from 'valibot';
|
|
1
2
|
type Context = {
|
|
2
3
|
userId: string;
|
|
3
4
|
};
|
|
5
|
+
export declare const mutatorSchemas: {
|
|
6
|
+
account: {
|
|
7
|
+
createAccount: v.ObjectSchema<{
|
|
8
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
9
|
+
readonly color: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
10
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
11
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
12
|
+
}, undefined>;
|
|
13
|
+
createAlias: v.ObjectSchema<{
|
|
14
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
15
|
+
readonly alias: v.ObjectSchema<{
|
|
16
|
+
readonly emailAddress: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
17
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
18
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
19
|
+
}, undefined>;
|
|
20
|
+
}, undefined>;
|
|
21
|
+
deleteAccount: v.ObjectSchema<{
|
|
22
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
23
|
+
}, undefined>;
|
|
24
|
+
deleteAlias: v.ObjectSchema<{
|
|
25
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
26
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
27
|
+
}, undefined>;
|
|
28
|
+
setAliasName: v.ObjectSchema<{
|
|
29
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
30
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
31
|
+
readonly displayName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
32
|
+
}, undefined>;
|
|
33
|
+
setAliasPrimary: v.ObjectSchema<{
|
|
34
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
35
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
36
|
+
}, undefined>;
|
|
37
|
+
setConnectionConfigImapRaw: v.ObjectSchema<{
|
|
38
|
+
readonly connectionConfig: v.ObjectSchema<{
|
|
39
|
+
readonly imapHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
40
|
+
readonly imapPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
41
|
+
readonly imapPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
42
|
+
readonly imapSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
43
|
+
readonly imapUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
44
|
+
readonly smtpHost: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
45
|
+
readonly smtpPassword: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
46
|
+
readonly smtpPort: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.MinValueAction<number, number, undefined>, v.MaxValueAction<number, number, undefined>]>, undefined>;
|
|
47
|
+
readonly smtpSocketType: v.UnionSchema<[v.LiteralSchema<"STARTTLS", undefined>, v.LiteralSchema<"SSL", undefined>], undefined>;
|
|
48
|
+
readonly smtpUser: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
49
|
+
}, undefined>;
|
|
50
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
51
|
+
}, undefined>;
|
|
52
|
+
setConnectionConfigOauth: v.ObjectSchema<{
|
|
53
|
+
readonly connectionConfig: v.ObjectSchema<{
|
|
54
|
+
readonly code: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
55
|
+
readonly provider: v.PicklistSchema<readonly ["GOOGLE", "OUTLOOK"], undefined>;
|
|
56
|
+
readonly user: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
57
|
+
}, undefined>;
|
|
58
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
59
|
+
}, undefined>;
|
|
60
|
+
setSettings: v.ObjectSchema<{
|
|
61
|
+
readonly color: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
62
|
+
readonly displayName: v.OptionalSchema<v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
63
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
64
|
+
}, undefined>;
|
|
65
|
+
};
|
|
66
|
+
draft: {
|
|
67
|
+
cancelSend: v.ObjectSchema<{
|
|
68
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
69
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
70
|
+
}, undefined>;
|
|
71
|
+
createAttachment: v.ObjectSchema<{
|
|
72
|
+
readonly attachment: v.ObjectSchema<{
|
|
73
|
+
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
74
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
75
|
+
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
76
|
+
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
77
|
+
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
78
|
+
}, undefined>;
|
|
79
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
80
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
81
|
+
}, undefined>;
|
|
82
|
+
createDraft: v.ObjectSchema<{
|
|
83
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
84
|
+
readonly attachments: v.ArraySchema<v.ObjectSchema<{
|
|
85
|
+
readonly fileName: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
86
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
87
|
+
readonly mimeType: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
88
|
+
readonly status: v.PicklistSchema<readonly ["PENDING", "COMPLETE", "FAILED"], undefined>;
|
|
89
|
+
readonly totalSize: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
90
|
+
}, undefined>, undefined>;
|
|
91
|
+
readonly body: v.ObjectSchema<{
|
|
92
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
93
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
94
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
95
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
96
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
97
|
+
}, undefined>;
|
|
98
|
+
readonly error: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
99
|
+
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
100
|
+
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
101
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
102
|
+
readonly referencedMessageId: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
103
|
+
readonly scheduledFor: v.NullableSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>, undefined>;
|
|
104
|
+
readonly status: v.PicklistSchema<readonly ["DRAFT", "SEND_REQUESTED", "SEND_CONFIRMED", "SEND_FAILED"], undefined>;
|
|
105
|
+
readonly type: v.PicklistSchema<readonly ["NEW", "REPLY", "FORWARD"], undefined>;
|
|
106
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
107
|
+
}, undefined>;
|
|
108
|
+
deleteAttachment: v.ObjectSchema<{
|
|
109
|
+
readonly attachmentId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
110
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
111
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
112
|
+
}, undefined>;
|
|
113
|
+
deleteDraft: v.ObjectSchema<{
|
|
114
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
115
|
+
}, undefined>;
|
|
116
|
+
scheduleSend: v.UnionSchema<[v.ObjectSchema<{
|
|
117
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
118
|
+
readonly kind: v.LiteralSchema<"IMMEDIATE", undefined>;
|
|
119
|
+
readonly undoMs: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
120
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
121
|
+
}, undefined>, v.ObjectSchema<{
|
|
122
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
123
|
+
readonly kind: v.LiteralSchema<"SCHEDULED", undefined>;
|
|
124
|
+
readonly scheduledFor: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
125
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
126
|
+
}, undefined>], undefined>;
|
|
127
|
+
setContent: v.ObjectSchema<{
|
|
128
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
129
|
+
readonly patch: v.ArraySchema<v.ObjectSchema<{
|
|
130
|
+
readonly index: v.NumberSchema<undefined>;
|
|
131
|
+
readonly type: v.UnionSchema<[v.LiteralSchema<"INSERTION", undefined>, v.LiteralSchema<"DELETION", undefined>], undefined>;
|
|
132
|
+
readonly value: v.StringSchema<undefined>;
|
|
133
|
+
}, undefined>, undefined>;
|
|
134
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
135
|
+
}, undefined>;
|
|
136
|
+
setEnvelope: v.ObjectSchema<{
|
|
137
|
+
readonly envelope: Omit<v.ObjectSchema<{
|
|
138
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
139
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
140
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
141
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
142
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
143
|
+
}, undefined>, "~standard" | "~run" | "~types" | "entries"> & {
|
|
144
|
+
readonly entries: Omit<{
|
|
145
|
+
readonly bcc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
146
|
+
readonly cc: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
147
|
+
readonly content: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 384000, undefined>]>;
|
|
148
|
+
readonly subject: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
149
|
+
readonly to: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>, undefined>;
|
|
150
|
+
}, "content">;
|
|
151
|
+
readonly '~standard': v.StandardProps<{
|
|
152
|
+
bcc: string[];
|
|
153
|
+
cc: string[];
|
|
154
|
+
to: string[];
|
|
155
|
+
subject: string | null;
|
|
156
|
+
}, {
|
|
157
|
+
bcc: string[];
|
|
158
|
+
cc: string[];
|
|
159
|
+
to: string[];
|
|
160
|
+
subject: string | null;
|
|
161
|
+
}>;
|
|
162
|
+
readonly '~run': (dataset: v.UnknownDataset, config: v.Config<v.BaseIssue<unknown>>) => v.OutputDataset<{
|
|
163
|
+
bcc: string[];
|
|
164
|
+
cc: string[];
|
|
165
|
+
to: string[];
|
|
166
|
+
subject: string | null;
|
|
167
|
+
}, v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue>;
|
|
168
|
+
readonly '~types'?: {
|
|
169
|
+
readonly input: {
|
|
170
|
+
bcc: string[];
|
|
171
|
+
cc: string[];
|
|
172
|
+
to: string[];
|
|
173
|
+
subject: string | null;
|
|
174
|
+
};
|
|
175
|
+
readonly output: {
|
|
176
|
+
bcc: string[];
|
|
177
|
+
cc: string[];
|
|
178
|
+
to: string[];
|
|
179
|
+
subject: string | null;
|
|
180
|
+
};
|
|
181
|
+
readonly issue: v.StringIssue | v.RfcEmailIssue<string> | v.NonEmptyIssue<string> | v.MaxLengthIssue<string, number> | v.ObjectIssue | v.ArrayIssue | v.NonOptionalIssue;
|
|
182
|
+
} | undefined;
|
|
183
|
+
};
|
|
184
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
185
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
186
|
+
}, undefined>;
|
|
187
|
+
setFrom: v.ObjectSchema<{
|
|
188
|
+
readonly accountId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
189
|
+
readonly aliasId: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
190
|
+
readonly from: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RfcEmailAction<string, undefined>]>, undefined>;
|
|
191
|
+
readonly fromName: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
192
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
193
|
+
readonly updatedAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
194
|
+
}, undefined>;
|
|
195
|
+
};
|
|
196
|
+
thread: {
|
|
197
|
+
addLabel: v.ObjectSchema<{
|
|
198
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
199
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
200
|
+
}, undefined>, undefined>;
|
|
201
|
+
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
202
|
+
}, undefined>;
|
|
203
|
+
delete: v.ObjectSchema<{
|
|
204
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
205
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
206
|
+
}, undefined>, undefined>;
|
|
207
|
+
}, undefined>;
|
|
208
|
+
removeLabel: v.ObjectSchema<{
|
|
209
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
210
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
211
|
+
}, undefined>, undefined>;
|
|
212
|
+
readonly labelPath: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
213
|
+
}, undefined>;
|
|
214
|
+
setArchive: v.ObjectSchema<{
|
|
215
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
216
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
217
|
+
}, undefined>, undefined>;
|
|
218
|
+
}, undefined>;
|
|
219
|
+
setFlagged: v.ObjectSchema<{
|
|
220
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
221
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
222
|
+
}, undefined>, undefined>;
|
|
223
|
+
readonly flagged: v.BooleanSchema<undefined>;
|
|
224
|
+
}, undefined>;
|
|
225
|
+
setInbox: v.ObjectSchema<{
|
|
226
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
227
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
228
|
+
}, undefined>, undefined>;
|
|
229
|
+
}, undefined>;
|
|
230
|
+
setSeen: v.ObjectSchema<{
|
|
231
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
232
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
233
|
+
}, undefined>, undefined>;
|
|
234
|
+
readonly seen: v.BooleanSchema<undefined>;
|
|
235
|
+
}, undefined>;
|
|
236
|
+
setSpam: v.ObjectSchema<{
|
|
237
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
238
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
239
|
+
}, undefined>, undefined>;
|
|
240
|
+
}, undefined>;
|
|
241
|
+
setTrash: v.ObjectSchema<{
|
|
242
|
+
readonly accounts: v.RecordSchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, v.ObjectSchema<{
|
|
243
|
+
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
244
|
+
}, undefined>, undefined>;
|
|
245
|
+
}, undefined>;
|
|
246
|
+
};
|
|
247
|
+
user: {
|
|
248
|
+
deleteSettingsPushNotificationToken: v.ObjectSchema<{
|
|
249
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
250
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
251
|
+
}, undefined>;
|
|
252
|
+
setSettingsName: v.ObjectSchema<{
|
|
253
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
254
|
+
readonly name: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
255
|
+
}, undefined>;
|
|
256
|
+
setSettingsPushNotificationToken: v.ObjectSchema<{
|
|
257
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
258
|
+
readonly pushNotificationToken: v.ObjectSchema<{
|
|
259
|
+
readonly createdAt: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>]>, undefined>;
|
|
260
|
+
readonly id: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
261
|
+
readonly token: v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>;
|
|
262
|
+
}, undefined>;
|
|
263
|
+
}, undefined>;
|
|
264
|
+
};
|
|
265
|
+
};
|
|
4
266
|
export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
5
267
|
readonly account: {
|
|
6
268
|
readonly createAccount: import("@rocicorp/zero").MutatorDefinition<{
|
|
@@ -474,54 +736,6 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
474
736
|
} & {
|
|
475
737
|
primaryKey: ["id"];
|
|
476
738
|
};
|
|
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
|
-
};
|
|
525
739
|
readonly userPushNotificationToken: {
|
|
526
740
|
name: "userPushNotificationToken";
|
|
527
741
|
columns: {
|
|
@@ -859,6 +1073,54 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
859
1073
|
} & {
|
|
860
1074
|
primaryKey: ["id"];
|
|
861
1075
|
};
|
|
1076
|
+
readonly draftAttachment: {
|
|
1077
|
+
name: "draftAttachment";
|
|
1078
|
+
columns: {
|
|
1079
|
+
readonly draftId: {
|
|
1080
|
+
type: "string";
|
|
1081
|
+
optional: false;
|
|
1082
|
+
customType: string;
|
|
1083
|
+
} & {
|
|
1084
|
+
serverName: string;
|
|
1085
|
+
};
|
|
1086
|
+
readonly fileName: {
|
|
1087
|
+
type: "string";
|
|
1088
|
+
optional: false;
|
|
1089
|
+
customType: string;
|
|
1090
|
+
} & {
|
|
1091
|
+
serverName: string;
|
|
1092
|
+
};
|
|
1093
|
+
readonly id: {
|
|
1094
|
+
type: "string";
|
|
1095
|
+
optional: false;
|
|
1096
|
+
customType: string;
|
|
1097
|
+
};
|
|
1098
|
+
readonly mimeType: {
|
|
1099
|
+
type: "string";
|
|
1100
|
+
optional: false;
|
|
1101
|
+
customType: string;
|
|
1102
|
+
} & {
|
|
1103
|
+
serverName: string;
|
|
1104
|
+
};
|
|
1105
|
+
readonly status: {
|
|
1106
|
+
type: "string";
|
|
1107
|
+
optional: false;
|
|
1108
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
1109
|
+
} & {
|
|
1110
|
+
serverName: string;
|
|
1111
|
+
};
|
|
1112
|
+
readonly totalSize: {
|
|
1113
|
+
type: "number";
|
|
1114
|
+
optional: false;
|
|
1115
|
+
customType: number;
|
|
1116
|
+
} & {
|
|
1117
|
+
serverName: string;
|
|
1118
|
+
};
|
|
1119
|
+
};
|
|
1120
|
+
primaryKey: readonly [string, ...string[]];
|
|
1121
|
+
} & {
|
|
1122
|
+
primaryKey: ["id"];
|
|
1123
|
+
};
|
|
862
1124
|
readonly thread: {
|
|
863
1125
|
name: "thread";
|
|
864
1126
|
columns: {
|
|
@@ -1198,102 +1460,94 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
1198
1460
|
relationships: {
|
|
1199
1461
|
readonly user: {
|
|
1200
1462
|
accounts: [{
|
|
1201
|
-
readonly sourceField: readonly ("id" | "
|
|
1202
|
-
readonly destField: readonly ("id" | "
|
|
1463
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1464
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1203
1465
|
readonly destSchema: "account";
|
|
1204
1466
|
readonly cardinality: "many";
|
|
1205
1467
|
}];
|
|
1206
1468
|
contacts: [{
|
|
1207
|
-
readonly sourceField: readonly ("id" | "
|
|
1208
|
-
readonly destField: readonly ("id" | "
|
|
1469
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1470
|
+
readonly destField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
1209
1471
|
readonly destSchema: "contact";
|
|
1210
1472
|
readonly cardinality: "many";
|
|
1211
1473
|
}];
|
|
1212
1474
|
drafts: [{
|
|
1213
|
-
readonly sourceField: readonly ("id" | "
|
|
1214
|
-
readonly destField: readonly ("type" | "status" | "id" | "
|
|
1475
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1476
|
+
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1215
1477
|
readonly destSchema: "draft";
|
|
1216
1478
|
readonly cardinality: "many";
|
|
1217
1479
|
}];
|
|
1218
1480
|
pushNotificationTokens: [{
|
|
1219
|
-
readonly sourceField: readonly ("id" | "
|
|
1220
|
-
readonly destField: readonly ("
|
|
1481
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1482
|
+
readonly destField: readonly ("id" | "createdAt" | "token" | "userId")[];
|
|
1221
1483
|
readonly destSchema: "userPushNotificationToken";
|
|
1222
1484
|
readonly cardinality: "many";
|
|
1223
1485
|
}];
|
|
1224
1486
|
threads: [{
|
|
1225
|
-
readonly sourceField: readonly ("id" | "
|
|
1226
|
-
readonly destField: readonly ("id" | "
|
|
1487
|
+
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1488
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1227
1489
|
readonly destSchema: "thread";
|
|
1228
1490
|
readonly cardinality: "many";
|
|
1229
1491
|
}];
|
|
1230
1492
|
};
|
|
1231
|
-
readonly draftAttachment: {
|
|
1232
|
-
draft: [{
|
|
1233
|
-
readonly sourceField: readonly ("status" | "id" | "fileName" | "mimeType" | "totalSize" | "draftId")[];
|
|
1234
|
-
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "subject" | "accountId" | "scheduledFor" | "error" | "fromName" | "referencedMessageId" | "userId" | "fromAliasId" | "fromEmail")[];
|
|
1235
|
-
readonly destSchema: "draft";
|
|
1236
|
-
readonly cardinality: "one";
|
|
1237
|
-
}];
|
|
1238
|
-
};
|
|
1239
1493
|
readonly userPushNotificationToken: {
|
|
1240
1494
|
user: [{
|
|
1241
|
-
readonly sourceField: readonly ("
|
|
1242
|
-
readonly destField: readonly ("id" | "
|
|
1495
|
+
readonly sourceField: readonly ("id" | "createdAt" | "token" | "userId")[];
|
|
1496
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1243
1497
|
readonly destSchema: "user";
|
|
1244
1498
|
readonly cardinality: "one";
|
|
1245
1499
|
}];
|
|
1246
1500
|
};
|
|
1247
1501
|
readonly contact: {
|
|
1248
1502
|
user: [{
|
|
1249
|
-
readonly sourceField: readonly ("id" | "
|
|
1250
|
-
readonly destField: readonly ("id" | "
|
|
1503
|
+
readonly sourceField: readonly ("id" | "name" | "userId" | "emailAddress")[];
|
|
1504
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1251
1505
|
readonly destSchema: "user";
|
|
1252
1506
|
readonly cardinality: "one";
|
|
1253
1507
|
}];
|
|
1254
1508
|
};
|
|
1255
1509
|
readonly account: {
|
|
1256
1510
|
aliases: [{
|
|
1257
|
-
readonly sourceField: readonly ("id" | "
|
|
1258
|
-
readonly destField: readonly ("id" | "
|
|
1511
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1512
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1259
1513
|
readonly destSchema: "accountAlias";
|
|
1260
1514
|
readonly cardinality: "many";
|
|
1261
1515
|
}];
|
|
1262
1516
|
drafts: [{
|
|
1263
|
-
readonly sourceField: readonly ("id" | "
|
|
1264
|
-
readonly destField: readonly ("type" | "status" | "id" | "
|
|
1517
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1518
|
+
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1265
1519
|
readonly destSchema: "draft";
|
|
1266
1520
|
readonly cardinality: "many";
|
|
1267
1521
|
}];
|
|
1268
1522
|
labels: [{
|
|
1269
|
-
readonly sourceField: readonly ("id" | "
|
|
1523
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1270
1524
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1271
1525
|
readonly destSchema: "accountLabel";
|
|
1272
1526
|
readonly cardinality: "many";
|
|
1273
1527
|
}];
|
|
1274
1528
|
primaryAlias: [{
|
|
1275
|
-
readonly sourceField: readonly ("id" | "
|
|
1276
|
-
readonly destField: readonly ("id" | "
|
|
1529
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1530
|
+
readonly destField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1277
1531
|
readonly destSchema: "accountAlias";
|
|
1278
1532
|
readonly cardinality: "one";
|
|
1279
1533
|
}];
|
|
1280
1534
|
threads: [{
|
|
1281
|
-
readonly sourceField: readonly ("id" | "
|
|
1282
|
-
readonly destField: readonly ("id" | "
|
|
1535
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1536
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1283
1537
|
readonly destSchema: "thread";
|
|
1284
1538
|
readonly cardinality: "many";
|
|
1285
1539
|
}];
|
|
1286
1540
|
user: [{
|
|
1287
|
-
readonly sourceField: readonly ("id" | "
|
|
1288
|
-
readonly destField: readonly ("id" | "
|
|
1541
|
+
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1542
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1289
1543
|
readonly destSchema: "user";
|
|
1290
1544
|
readonly cardinality: "one";
|
|
1291
1545
|
}];
|
|
1292
1546
|
};
|
|
1293
1547
|
readonly accountAlias: {
|
|
1294
1548
|
account: [{
|
|
1295
|
-
readonly sourceField: readonly ("id" | "
|
|
1296
|
-
readonly destField: readonly ("id" | "
|
|
1549
|
+
readonly sourceField: readonly ("id" | "name" | "emailAddress" | "accountId" | "isPrimary")[];
|
|
1550
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1297
1551
|
readonly destSchema: "account";
|
|
1298
1552
|
readonly cardinality: "one";
|
|
1299
1553
|
}];
|
|
@@ -1301,148 +1555,156 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
1301
1555
|
readonly accountLabel: {
|
|
1302
1556
|
account: [{
|
|
1303
1557
|
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1304
|
-
readonly destField: readonly ("id" | "
|
|
1558
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1305
1559
|
readonly destSchema: "account";
|
|
1306
1560
|
readonly cardinality: "one";
|
|
1307
1561
|
}];
|
|
1308
1562
|
threads: [{
|
|
1309
1563
|
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1310
|
-
readonly destField: readonly ("
|
|
1564
|
+
readonly destField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1311
1565
|
readonly destSchema: "threadLabel";
|
|
1312
1566
|
readonly cardinality: "many";
|
|
1313
1567
|
}, {
|
|
1314
|
-
readonly sourceField: readonly ("
|
|
1315
|
-
readonly destField: readonly ("id" | "
|
|
1568
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1569
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1316
1570
|
readonly destSchema: "thread";
|
|
1317
1571
|
readonly cardinality: "many";
|
|
1318
1572
|
}];
|
|
1319
1573
|
};
|
|
1320
1574
|
readonly draft: {
|
|
1321
1575
|
account: [{
|
|
1322
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "
|
|
1323
|
-
readonly destField: readonly ("id" | "
|
|
1576
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1577
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1324
1578
|
readonly destSchema: "account";
|
|
1325
1579
|
readonly cardinality: "one";
|
|
1326
1580
|
}];
|
|
1327
1581
|
attachments: [{
|
|
1328
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "
|
|
1329
|
-
readonly destField: readonly ("status" | "id" | "
|
|
1582
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1583
|
+
readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1330
1584
|
readonly destSchema: "draftAttachment";
|
|
1331
1585
|
readonly cardinality: "many";
|
|
1332
1586
|
}];
|
|
1333
1587
|
user: [{
|
|
1334
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "
|
|
1335
|
-
readonly destField: readonly ("id" | "
|
|
1588
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1589
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1336
1590
|
readonly destSchema: "user";
|
|
1337
1591
|
readonly cardinality: "one";
|
|
1338
1592
|
}];
|
|
1339
1593
|
};
|
|
1594
|
+
readonly draftAttachment: {
|
|
1595
|
+
draft: [{
|
|
1596
|
+
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1597
|
+
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1598
|
+
readonly destSchema: "draft";
|
|
1599
|
+
readonly cardinality: "one";
|
|
1600
|
+
}];
|
|
1601
|
+
};
|
|
1340
1602
|
readonly thread: {
|
|
1341
1603
|
account: [{
|
|
1342
|
-
readonly sourceField: readonly ("id" | "
|
|
1343
|
-
readonly destField: readonly ("id" | "
|
|
1604
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1605
|
+
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1344
1606
|
readonly destSchema: "account";
|
|
1345
1607
|
readonly cardinality: "one";
|
|
1346
1608
|
}];
|
|
1347
1609
|
labels: [{
|
|
1348
|
-
readonly sourceField: readonly ("id" | "
|
|
1349
|
-
readonly destField: readonly ("
|
|
1610
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1611
|
+
readonly destField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1350
1612
|
readonly destSchema: "threadLabel";
|
|
1351
1613
|
readonly cardinality: "many";
|
|
1352
1614
|
}, {
|
|
1353
|
-
readonly sourceField: readonly ("
|
|
1615
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1354
1616
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1355
1617
|
readonly destSchema: "accountLabel";
|
|
1356
1618
|
readonly cardinality: "many";
|
|
1357
1619
|
}];
|
|
1358
1620
|
messages: [{
|
|
1359
|
-
readonly sourceField: readonly ("id" | "
|
|
1360
|
-
readonly destField: readonly ("
|
|
1621
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1622
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1361
1623
|
readonly destSchema: "threadMessage";
|
|
1362
1624
|
readonly cardinality: "many";
|
|
1363
1625
|
}];
|
|
1364
1626
|
threadByLabel: [{
|
|
1365
|
-
readonly sourceField: readonly ("id" | "
|
|
1366
|
-
readonly destField: readonly ("
|
|
1627
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1628
|
+
readonly destField: readonly ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1367
1629
|
readonly destSchema: "threadByLabel";
|
|
1368
1630
|
readonly cardinality: "many";
|
|
1369
1631
|
}];
|
|
1370
1632
|
user: [{
|
|
1371
|
-
readonly sourceField: readonly ("id" | "
|
|
1372
|
-
readonly destField: readonly ("id" | "
|
|
1633
|
+
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1634
|
+
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1373
1635
|
readonly destSchema: "user";
|
|
1374
1636
|
readonly cardinality: "one";
|
|
1375
1637
|
}];
|
|
1376
1638
|
};
|
|
1377
1639
|
readonly threadLabel: {
|
|
1378
1640
|
label: [{
|
|
1379
|
-
readonly sourceField: readonly ("
|
|
1641
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1380
1642
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1381
1643
|
readonly destSchema: "accountLabel";
|
|
1382
1644
|
readonly cardinality: "one";
|
|
1383
1645
|
}];
|
|
1384
1646
|
message: [{
|
|
1385
|
-
readonly sourceField: readonly ("
|
|
1386
|
-
readonly destField: readonly ("
|
|
1647
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1648
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1387
1649
|
readonly destSchema: "threadMessage";
|
|
1388
1650
|
readonly cardinality: "one";
|
|
1389
1651
|
}];
|
|
1390
1652
|
thread: [{
|
|
1391
|
-
readonly sourceField: readonly ("
|
|
1392
|
-
readonly destField: readonly ("id" | "
|
|
1653
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1654
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1393
1655
|
readonly destSchema: "thread";
|
|
1394
1656
|
readonly cardinality: "one";
|
|
1395
1657
|
}];
|
|
1396
1658
|
};
|
|
1397
1659
|
readonly threadByLabel: {
|
|
1398
1660
|
label: [{
|
|
1399
|
-
readonly sourceField: readonly ("
|
|
1661
|
+
readonly sourceField: readonly ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1400
1662
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1401
1663
|
readonly destSchema: "accountLabel";
|
|
1402
1664
|
readonly cardinality: "one";
|
|
1403
1665
|
}];
|
|
1404
1666
|
thread: [{
|
|
1405
|
-
readonly sourceField: readonly ("
|
|
1406
|
-
readonly destField: readonly ("id" | "
|
|
1667
|
+
readonly sourceField: readonly ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1668
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1407
1669
|
readonly destSchema: "thread";
|
|
1408
1670
|
readonly cardinality: "one";
|
|
1409
1671
|
}];
|
|
1410
1672
|
};
|
|
1411
1673
|
readonly threadMessage: {
|
|
1412
1674
|
attachments: [{
|
|
1413
|
-
readonly sourceField: readonly ("
|
|
1675
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1414
1676
|
readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1415
1677
|
readonly destSchema: "threadMessageAttachment";
|
|
1416
1678
|
readonly cardinality: "many";
|
|
1417
1679
|
}];
|
|
1418
1680
|
labels: [{
|
|
1419
|
-
readonly sourceField: readonly ("
|
|
1420
|
-
readonly destField: readonly ("
|
|
1681
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1682
|
+
readonly destField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1421
1683
|
readonly destSchema: "threadLabel";
|
|
1422
1684
|
readonly cardinality: "many";
|
|
1423
1685
|
}, {
|
|
1424
|
-
readonly sourceField: readonly ("
|
|
1686
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1425
1687
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1426
1688
|
readonly destSchema: "accountLabel";
|
|
1427
1689
|
readonly cardinality: "many";
|
|
1428
1690
|
}];
|
|
1429
1691
|
recipients: [{
|
|
1430
|
-
readonly sourceField: readonly ("
|
|
1431
|
-
readonly destField: readonly ("type" | "id" | "
|
|
1692
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1693
|
+
readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1432
1694
|
readonly destSchema: "threadMessageRecipient";
|
|
1433
1695
|
readonly cardinality: "many";
|
|
1434
1696
|
}];
|
|
1435
1697
|
thread: [{
|
|
1436
|
-
readonly sourceField: readonly ("
|
|
1437
|
-
readonly destField: readonly ("id" | "
|
|
1698
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1699
|
+
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1438
1700
|
readonly destSchema: "thread";
|
|
1439
1701
|
readonly cardinality: "one";
|
|
1440
1702
|
}];
|
|
1441
1703
|
};
|
|
1442
1704
|
readonly threadMessageRecipient: {
|
|
1443
1705
|
message: [{
|
|
1444
|
-
readonly sourceField: readonly ("type" | "id" | "
|
|
1445
|
-
readonly destField: readonly ("
|
|
1706
|
+
readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1707
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1446
1708
|
readonly destSchema: "threadMessage";
|
|
1447
1709
|
readonly cardinality: "one";
|
|
1448
1710
|
}];
|
|
@@ -1450,7 +1712,7 @@ export declare const mutators: import("@rocicorp/zero").MutatorRegistry<{
|
|
|
1450
1712
|
readonly threadMessageAttachment: {
|
|
1451
1713
|
message: [{
|
|
1452
1714
|
readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1453
|
-
readonly destField: readonly ("
|
|
1715
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1454
1716
|
readonly destSchema: "threadMessage";
|
|
1455
1717
|
readonly cardinality: "one";
|
|
1456
1718
|
}];
|