@marcoappio/marco-config 2.0.501 → 2.0.503

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.
@@ -1 +1 @@
1
- {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getUser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAMnB,CAAA"}
1
+ {"version":3,"file":"getUser.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getUser.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMnB,CAAA"}
@@ -1,6 +1,6 @@
1
- import { syncedQueryWithContext } from '@rocicorp/zero';
2
- import { z } from '../../zero/queries';
3
- export const getUser = syncedQueryWithContext('getUser', undefined, ({ userId }) => z.user
1
+ import { defineQuery } from '@rocicorp/zero';
2
+ import { z } from '../../zero/queries/z';
3
+ export const getUser = defineQuery(({ ctx: { userId } }) => z.user
4
4
  .where('id', userId)
5
5
  .limit(1)
6
6
  .related('accounts', x => x.related('aliases').related('primaryAlias').related('labels'))
@@ -1,4 +1,330 @@
1
- export declare const z: import("@rocicorp/zero").SchemaQuery<{
1
+ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
2
+ getAccounts: import("@rocicorp/zero").QueryDefinition<"account", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
3
+ readonly color: string;
4
+ readonly displayName: string | null;
5
+ readonly id: string;
6
+ readonly imapConnectionStatus: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
7
+ readonly mailProcessedCount: number;
8
+ readonly mailTotalCount: number;
9
+ readonly primaryAliasId: string | null;
10
+ readonly userId: string;
11
+ } & {
12
+ readonly aliases: readonly {
13
+ readonly accountId: string;
14
+ readonly emailAddress: string;
15
+ readonly id: string;
16
+ readonly isPrimary: boolean;
17
+ readonly name: string | null;
18
+ }[];
19
+ } & {
20
+ readonly primaryAlias: {
21
+ readonly accountId: string;
22
+ readonly emailAddress: string;
23
+ readonly id: string;
24
+ readonly isPrimary: boolean;
25
+ readonly name: string | null;
26
+ } | undefined;
27
+ } & {
28
+ readonly labels: readonly {
29
+ readonly accountId: string;
30
+ readonly id: string;
31
+ readonly name: string | null;
32
+ readonly path: string;
33
+ readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
34
+ readonly uidValidity: number;
35
+ readonly unreadCount: number;
36
+ }[];
37
+ }, {
38
+ readonly userId: string;
39
+ }>;
40
+ getContacts: import("@rocicorp/zero").QueryDefinition<"contact", {
41
+ limit?: number | undefined;
42
+ search?: string | undefined;
43
+ where?: {
44
+ emailAddress?: string | undefined;
45
+ ids?: string[] | undefined;
46
+ name?: string | undefined;
47
+ } | undefined;
48
+ }, {
49
+ limit: number;
50
+ search?: string | undefined;
51
+ where?: {
52
+ emailAddress?: string | undefined;
53
+ ids?: string[] | undefined;
54
+ name?: string | undefined;
55
+ } | undefined;
56
+ }, {
57
+ readonly emailAddress: string;
58
+ readonly id: string;
59
+ readonly name: string | null;
60
+ readonly userId: string;
61
+ }, {
62
+ readonly userId: string;
63
+ }>;
64
+ getDrafts: import("@rocicorp/zero").QueryDefinition<"draft", {
65
+ accountId?: string | undefined;
66
+ limit?: number | undefined;
67
+ status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
68
+ }, {
69
+ accountId?: string | undefined;
70
+ limit: number;
71
+ status?: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED" | undefined;
72
+ }, {
73
+ readonly accountId: string;
74
+ readonly body: {
75
+ content: string;
76
+ to: string[];
77
+ cc: string[];
78
+ bcc: string[];
79
+ };
80
+ readonly error: string | null;
81
+ readonly fromAliasId: string | null;
82
+ readonly fromEmail: string;
83
+ readonly fromName: string | null;
84
+ readonly id: string;
85
+ readonly referencedMessageId: string | null;
86
+ readonly scheduledFor: number | null;
87
+ readonly status: "DRAFT" | "SEND_REQUESTED" | "SEND_CONFIRMED" | "SEND_FAILED";
88
+ readonly subject: string | null;
89
+ readonly type: "NEW" | "REPLY" | "FORWARD";
90
+ readonly updatedAt: number;
91
+ readonly userId: string;
92
+ } & {
93
+ readonly attachments: readonly {
94
+ readonly draftId: string;
95
+ readonly fileName: string;
96
+ readonly id: string;
97
+ readonly mimeType: string;
98
+ readonly status: "PENDING" | "COMPLETE" | "FAILED";
99
+ readonly totalSize: number;
100
+ }[];
101
+ }, {
102
+ readonly userId: string;
103
+ }>;
104
+ getThread: import("@rocicorp/zero").QueryDefinition<"thread", {
105
+ id: string;
106
+ }, {
107
+ id: string;
108
+ }, ({
109
+ readonly accountId: string;
110
+ readonly flagged: boolean;
111
+ readonly hasAttachments: boolean;
112
+ readonly id: string;
113
+ readonly labelIdList: string;
114
+ readonly latestMessageDate: number;
115
+ readonly latestMessageId: string;
116
+ readonly messageCount: number;
117
+ readonly previewText: string;
118
+ readonly seen: boolean;
119
+ readonly senderEmail: string;
120
+ readonly senderName: string | null;
121
+ readonly subject: string | null;
122
+ readonly userId: string;
123
+ readonly words: string;
124
+ } & {
125
+ readonly messages: readonly ({
126
+ readonly accountId: string;
127
+ readonly envelopeDate: number;
128
+ readonly envelopeSubject: string | null;
129
+ readonly id: string;
130
+ readonly previewText: string;
131
+ readonly senderEmail: string;
132
+ readonly senderName: string | null;
133
+ readonly threadId: string;
134
+ } & {
135
+ readonly recipients: readonly {
136
+ readonly emailAddress: string;
137
+ readonly id: string;
138
+ readonly name: string | null;
139
+ readonly threadMessageId: string;
140
+ readonly type: "bcc" | "cc" | "to" | "replyTo";
141
+ }[];
142
+ } & {
143
+ readonly attachments: readonly {
144
+ readonly fileName: string;
145
+ readonly id: string;
146
+ readonly mimeType: string;
147
+ readonly size: number;
148
+ readonly threadMessageId: string;
149
+ }[];
150
+ })[];
151
+ }) | undefined, {
152
+ readonly userId: string;
153
+ }>;
154
+ getThreadList: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
155
+ labelIds: string[];
156
+ limit?: number | undefined;
157
+ search?: string | undefined;
158
+ where?: {
159
+ flagged?: boolean | undefined;
160
+ id?: string | undefined;
161
+ messageIds?: string[] | undefined;
162
+ participants?: string[] | undefined;
163
+ seen?: boolean | undefined;
164
+ } | undefined;
165
+ }, {
166
+ labelIds: string[];
167
+ limit: number;
168
+ search?: string | undefined;
169
+ where?: {
170
+ flagged?: boolean | undefined;
171
+ id?: string | undefined;
172
+ messageIds?: string[] | undefined;
173
+ participants?: string[] | undefined;
174
+ seen?: boolean | undefined;
175
+ } | undefined;
176
+ }, {
177
+ readonly labelId: string;
178
+ readonly latestMessageDate: number;
179
+ readonly threadId: string;
180
+ } & {
181
+ readonly thread: {
182
+ readonly accountId: string;
183
+ readonly flagged: boolean;
184
+ readonly hasAttachments: boolean;
185
+ readonly id: string;
186
+ readonly labelIdList: string;
187
+ readonly latestMessageDate: number;
188
+ readonly latestMessageId: string;
189
+ readonly messageCount: number;
190
+ readonly previewText: string;
191
+ readonly seen: boolean;
192
+ readonly senderEmail: string;
193
+ readonly senderName: string | null;
194
+ readonly subject: string | null;
195
+ readonly userId: string;
196
+ readonly words: string;
197
+ } | undefined;
198
+ }, {
199
+ readonly userId: string;
200
+ }>;
201
+ getThreads: import("@rocicorp/zero").QueryDefinition<"threadByLabel", {
202
+ labelIds: string[];
203
+ limit?: number | undefined;
204
+ search?: string | undefined;
205
+ where?: {
206
+ flagged?: boolean | undefined;
207
+ id?: string | undefined;
208
+ messageIds?: string[] | undefined;
209
+ participants?: string[] | undefined;
210
+ seen?: boolean | undefined;
211
+ } | undefined;
212
+ }, {
213
+ labelIds: string[];
214
+ limit: number;
215
+ search?: string | undefined;
216
+ where?: {
217
+ flagged?: boolean | undefined;
218
+ id?: string | undefined;
219
+ messageIds?: string[] | undefined;
220
+ participants?: string[] | undefined;
221
+ seen?: boolean | undefined;
222
+ } | undefined;
223
+ }, {
224
+ readonly labelId: string;
225
+ readonly latestMessageDate: number;
226
+ readonly threadId: string;
227
+ } & {
228
+ readonly thread: ({
229
+ readonly accountId: string;
230
+ readonly flagged: boolean;
231
+ readonly hasAttachments: boolean;
232
+ readonly id: string;
233
+ readonly labelIdList: string;
234
+ readonly latestMessageDate: number;
235
+ readonly latestMessageId: string;
236
+ readonly messageCount: number;
237
+ readonly previewText: string;
238
+ readonly seen: boolean;
239
+ readonly senderEmail: string;
240
+ readonly senderName: string | null;
241
+ readonly subject: string | null;
242
+ readonly userId: string;
243
+ readonly words: string;
244
+ } & {
245
+ readonly messages: readonly ({
246
+ readonly accountId: string;
247
+ readonly envelopeDate: number;
248
+ readonly envelopeSubject: string | null;
249
+ readonly id: string;
250
+ readonly previewText: string;
251
+ readonly senderEmail: string;
252
+ readonly senderName: string | null;
253
+ readonly threadId: string;
254
+ } & {
255
+ readonly recipients: readonly {
256
+ readonly emailAddress: string;
257
+ readonly id: string;
258
+ readonly name: string | null;
259
+ readonly threadMessageId: string;
260
+ readonly type: "bcc" | "cc" | "to" | "replyTo";
261
+ }[];
262
+ } & {
263
+ readonly attachments: readonly {
264
+ readonly fileName: string;
265
+ readonly id: string;
266
+ readonly mimeType: string;
267
+ readonly size: number;
268
+ readonly threadMessageId: string;
269
+ }[];
270
+ })[];
271
+ }) | undefined;
272
+ }, {
273
+ readonly userId: string;
274
+ }>;
275
+ getUser: import("@rocicorp/zero").QueryDefinition<"user", import("@rocicorp/zero").ReadonlyJSONValue | undefined, import("@rocicorp/zero").ReadonlyJSONValue | undefined, {
276
+ readonly id: string;
277
+ readonly name: string | null;
278
+ readonly profilePicture: string | null;
279
+ readonly undoSendEnabled: boolean;
280
+ } & {
281
+ readonly accounts: readonly ({
282
+ readonly color: string;
283
+ readonly displayName: string | null;
284
+ readonly id: string;
285
+ readonly imapConnectionStatus: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
286
+ readonly mailProcessedCount: number;
287
+ readonly mailTotalCount: number;
288
+ readonly primaryAliasId: string | null;
289
+ readonly userId: string;
290
+ } & {
291
+ readonly aliases: readonly {
292
+ readonly accountId: string;
293
+ readonly emailAddress: string;
294
+ readonly id: string;
295
+ readonly isPrimary: boolean;
296
+ readonly name: string | null;
297
+ }[];
298
+ } & {
299
+ readonly primaryAlias: {
300
+ readonly accountId: string;
301
+ readonly emailAddress: string;
302
+ readonly id: string;
303
+ readonly isPrimary: boolean;
304
+ readonly name: string | null;
305
+ } | undefined;
306
+ } & {
307
+ readonly labels: readonly {
308
+ readonly accountId: string;
309
+ readonly id: string;
310
+ readonly name: string | null;
311
+ readonly path: string;
312
+ readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
313
+ readonly uidValidity: number;
314
+ readonly unreadCount: number;
315
+ }[];
316
+ })[];
317
+ } & {
318
+ readonly pushNotificationTokens: readonly {
319
+ readonly createdAt: number;
320
+ readonly id: string;
321
+ readonly token: string;
322
+ readonly userId: string;
323
+ }[];
324
+ }, {
325
+ readonly userId: string;
326
+ }>;
327
+ }, {
2
328
  tables: {
3
329
  readonly user: {
4
330
  name: "user";
@@ -1021,11 +1347,4 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
1021
1347
  enableLegacyQueries: boolean | undefined;
1022
1348
  enableLegacyMutators: boolean | undefined;
1023
1349
  }>;
1024
- export { getAccounts } from './getAccounts';
1025
- export { getContacts } from './getContacts';
1026
- export { getDrafts } from './getDrafts';
1027
- export { getThread } from './getThread';
1028
- export { getThreadList } from './getThreadList';
1029
- export { getThreads } from './getThreads';
1030
- export { getUser } from './getUser';
1031
1350
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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createBuilder } from '@rocicorp/zero';
2
- import { schema } from '../../zero/schema';
3
- export const z = createBuilder(schema);
4
- export { getAccounts } from './getAccounts';
5
- export { getContacts } from './getContacts';
6
- export { getDrafts } from './getDrafts';
7
- export { getThread } from './getThread';
8
- export { getThreadList } from './getThreadList';
9
- export { getThreads } from './getThreads';
10
- export { getUser } from './getUser';
1
+ import { defineQueriesWithType } from '@rocicorp/zero';
2
+ import { getAccounts } from './getAccounts';
3
+ import { getContacts } from './getContacts';
4
+ import { getDrafts } from './getDrafts';
5
+ import { getThread } from './getThread';
6
+ import { getThreadList } from './getThreadList';
7
+ import { getThreads } from './getThreads';
8
+ import { getUser } from './getUser';
9
+ const defineQueries = defineQueriesWithType();
10
+ export const queries = defineQueries({
11
+ getAccounts,
12
+ getContacts,
13
+ getDrafts,
14
+ getThread,
15
+ getThreadList,
16
+ getThreads,
17
+ getUser,
18
+ });