@marcoappio/marco-config 2.0.511 → 2.0.513
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 +510 -249
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +2 -0
- package/dist/zero/mutatorSchemas.d.ts +263 -0
- package/dist/zero/mutatorSchemas.d.ts.map +1 -0
- package/dist/zero/mutatorSchemas.js +176 -0
- package/dist/zero/mutators.d.ts +83 -83
- package/dist/zero/mutators.d.ts.map +1 -1
- package/dist/zero/mutators.js +33 -167
- package/dist/zero/queries.d.ts +83 -83
- package/dist/zero/queries.d.ts.map +1 -1
- package/dist/zero/queries.js +1 -1
- package/dist/zero/schema.d.ts +83 -93
- package/dist/zero/schema.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/zero/queries.d.ts
CHANGED
|
@@ -383,54 +383,6 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
383
383
|
} & {
|
|
384
384
|
primaryKey: ["id"];
|
|
385
385
|
};
|
|
386
|
-
readonly draftAttachment: {
|
|
387
|
-
name: "draftAttachment";
|
|
388
|
-
columns: {
|
|
389
|
-
readonly draftId: {
|
|
390
|
-
type: "string";
|
|
391
|
-
optional: false;
|
|
392
|
-
customType: string;
|
|
393
|
-
} & {
|
|
394
|
-
serverName: string;
|
|
395
|
-
};
|
|
396
|
-
readonly fileName: {
|
|
397
|
-
type: "string";
|
|
398
|
-
optional: false;
|
|
399
|
-
customType: string;
|
|
400
|
-
} & {
|
|
401
|
-
serverName: string;
|
|
402
|
-
};
|
|
403
|
-
readonly id: {
|
|
404
|
-
type: "string";
|
|
405
|
-
optional: false;
|
|
406
|
-
customType: string;
|
|
407
|
-
};
|
|
408
|
-
readonly mimeType: {
|
|
409
|
-
type: "string";
|
|
410
|
-
optional: false;
|
|
411
|
-
customType: string;
|
|
412
|
-
} & {
|
|
413
|
-
serverName: string;
|
|
414
|
-
};
|
|
415
|
-
readonly status: {
|
|
416
|
-
type: "string";
|
|
417
|
-
optional: false;
|
|
418
|
-
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
419
|
-
} & {
|
|
420
|
-
serverName: string;
|
|
421
|
-
};
|
|
422
|
-
readonly totalSize: {
|
|
423
|
-
type: "number";
|
|
424
|
-
optional: false;
|
|
425
|
-
customType: number;
|
|
426
|
-
} & {
|
|
427
|
-
serverName: string;
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
primaryKey: readonly [string, ...string[]];
|
|
431
|
-
} & {
|
|
432
|
-
primaryKey: ["id"];
|
|
433
|
-
};
|
|
434
386
|
readonly userPushNotificationToken: {
|
|
435
387
|
name: "userPushNotificationToken";
|
|
436
388
|
columns: {
|
|
@@ -768,6 +720,54 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
768
720
|
} & {
|
|
769
721
|
primaryKey: ["id"];
|
|
770
722
|
};
|
|
723
|
+
readonly draftAttachment: {
|
|
724
|
+
name: "draftAttachment";
|
|
725
|
+
columns: {
|
|
726
|
+
readonly draftId: {
|
|
727
|
+
type: "string";
|
|
728
|
+
optional: false;
|
|
729
|
+
customType: string;
|
|
730
|
+
} & {
|
|
731
|
+
serverName: string;
|
|
732
|
+
};
|
|
733
|
+
readonly fileName: {
|
|
734
|
+
type: "string";
|
|
735
|
+
optional: false;
|
|
736
|
+
customType: string;
|
|
737
|
+
} & {
|
|
738
|
+
serverName: string;
|
|
739
|
+
};
|
|
740
|
+
readonly id: {
|
|
741
|
+
type: "string";
|
|
742
|
+
optional: false;
|
|
743
|
+
customType: string;
|
|
744
|
+
};
|
|
745
|
+
readonly mimeType: {
|
|
746
|
+
type: "string";
|
|
747
|
+
optional: false;
|
|
748
|
+
customType: string;
|
|
749
|
+
} & {
|
|
750
|
+
serverName: string;
|
|
751
|
+
};
|
|
752
|
+
readonly status: {
|
|
753
|
+
type: "string";
|
|
754
|
+
optional: false;
|
|
755
|
+
customType: "PENDING" | "COMPLETE" | "FAILED";
|
|
756
|
+
} & {
|
|
757
|
+
serverName: string;
|
|
758
|
+
};
|
|
759
|
+
readonly totalSize: {
|
|
760
|
+
type: "number";
|
|
761
|
+
optional: false;
|
|
762
|
+
customType: number;
|
|
763
|
+
} & {
|
|
764
|
+
serverName: string;
|
|
765
|
+
};
|
|
766
|
+
};
|
|
767
|
+
primaryKey: readonly [string, ...string[]];
|
|
768
|
+
} & {
|
|
769
|
+
primaryKey: ["id"];
|
|
770
|
+
};
|
|
771
771
|
readonly thread: {
|
|
772
772
|
name: "thread";
|
|
773
773
|
columns: {
|
|
@@ -1120,13 +1120,13 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1120
1120
|
}];
|
|
1121
1121
|
drafts: [{
|
|
1122
1122
|
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1123
|
-
readonly destField: readonly ("type" | "status" | "id" | "
|
|
1123
|
+
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1124
1124
|
readonly destSchema: "draft";
|
|
1125
1125
|
readonly cardinality: "many";
|
|
1126
1126
|
}];
|
|
1127
1127
|
pushNotificationTokens: [{
|
|
1128
1128
|
readonly sourceField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1129
|
-
readonly destField: readonly ("
|
|
1129
|
+
readonly destField: readonly ("id" | "createdAt" | "token" | "userId")[];
|
|
1130
1130
|
readonly destSchema: "userPushNotificationToken";
|
|
1131
1131
|
readonly cardinality: "many";
|
|
1132
1132
|
}];
|
|
@@ -1137,17 +1137,9 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1137
1137
|
readonly cardinality: "many";
|
|
1138
1138
|
}];
|
|
1139
1139
|
};
|
|
1140
|
-
readonly draftAttachment: {
|
|
1141
|
-
draft: [{
|
|
1142
|
-
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1143
|
-
readonly destField: readonly ("type" | "status" | "id" | "updatedAt" | "body" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "error" | "subject")[];
|
|
1144
|
-
readonly destSchema: "draft";
|
|
1145
|
-
readonly cardinality: "one";
|
|
1146
|
-
}];
|
|
1147
|
-
};
|
|
1148
1140
|
readonly userPushNotificationToken: {
|
|
1149
1141
|
user: [{
|
|
1150
|
-
readonly sourceField: readonly ("
|
|
1142
|
+
readonly sourceField: readonly ("id" | "createdAt" | "token" | "userId")[];
|
|
1151
1143
|
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1152
1144
|
readonly destSchema: "user";
|
|
1153
1145
|
readonly cardinality: "one";
|
|
@@ -1170,7 +1162,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1170
1162
|
}];
|
|
1171
1163
|
drafts: [{
|
|
1172
1164
|
readonly sourceField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1173
|
-
readonly destField: readonly ("type" | "status" | "id" | "
|
|
1165
|
+
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1174
1166
|
readonly destSchema: "draft";
|
|
1175
1167
|
readonly cardinality: "many";
|
|
1176
1168
|
}];
|
|
@@ -1216,11 +1208,11 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1216
1208
|
}];
|
|
1217
1209
|
threads: [{
|
|
1218
1210
|
readonly sourceField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1219
|
-
readonly destField: readonly ("
|
|
1211
|
+
readonly destField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1220
1212
|
readonly destSchema: "threadLabel";
|
|
1221
1213
|
readonly cardinality: "many";
|
|
1222
1214
|
}, {
|
|
1223
|
-
readonly sourceField: readonly ("
|
|
1215
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1224
1216
|
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1225
1217
|
readonly destSchema: "thread";
|
|
1226
1218
|
readonly cardinality: "many";
|
|
@@ -1228,24 +1220,32 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1228
1220
|
};
|
|
1229
1221
|
readonly draft: {
|
|
1230
1222
|
account: [{
|
|
1231
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "
|
|
1223
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1232
1224
|
readonly destField: readonly ("id" | "userId" | "color" | "displayName" | "imapConnectionStatus" | "mailProcessedCount" | "mailTotalCount" | "primaryAliasId")[];
|
|
1233
1225
|
readonly destSchema: "account";
|
|
1234
1226
|
readonly cardinality: "one";
|
|
1235
1227
|
}];
|
|
1236
1228
|
attachments: [{
|
|
1237
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "
|
|
1229
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1238
1230
|
readonly destField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1239
1231
|
readonly destSchema: "draftAttachment";
|
|
1240
1232
|
readonly cardinality: "many";
|
|
1241
1233
|
}];
|
|
1242
1234
|
user: [{
|
|
1243
|
-
readonly sourceField: readonly ("type" | "status" | "id" | "
|
|
1235
|
+
readonly sourceField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1244
1236
|
readonly destField: readonly ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
1245
1237
|
readonly destSchema: "user";
|
|
1246
1238
|
readonly cardinality: "one";
|
|
1247
1239
|
}];
|
|
1248
1240
|
};
|
|
1241
|
+
readonly draftAttachment: {
|
|
1242
|
+
draft: [{
|
|
1243
|
+
readonly sourceField: readonly ("status" | "id" | "draftId" | "fileName" | "mimeType" | "totalSize")[];
|
|
1244
|
+
readonly destField: readonly ("type" | "status" | "id" | "userId" | "accountId" | "fromAliasId" | "fromEmail" | "fromName" | "referencedMessageId" | "scheduledFor" | "updatedAt" | "body" | "error" | "subject")[];
|
|
1245
|
+
readonly destSchema: "draft";
|
|
1246
|
+
readonly cardinality: "one";
|
|
1247
|
+
}];
|
|
1248
|
+
};
|
|
1249
1249
|
readonly thread: {
|
|
1250
1250
|
account: [{
|
|
1251
1251
|
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
@@ -1255,24 +1255,24 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1255
1255
|
}];
|
|
1256
1256
|
labels: [{
|
|
1257
1257
|
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1258
|
-
readonly destField: readonly ("
|
|
1258
|
+
readonly destField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1259
1259
|
readonly destSchema: "threadLabel";
|
|
1260
1260
|
readonly cardinality: "many";
|
|
1261
1261
|
}, {
|
|
1262
|
-
readonly sourceField: readonly ("
|
|
1262
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1263
1263
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1264
1264
|
readonly destSchema: "accountLabel";
|
|
1265
1265
|
readonly cardinality: "many";
|
|
1266
1266
|
}];
|
|
1267
1267
|
messages: [{
|
|
1268
1268
|
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1269
|
-
readonly destField: readonly ("
|
|
1269
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1270
1270
|
readonly destSchema: "threadMessage";
|
|
1271
1271
|
readonly cardinality: "many";
|
|
1272
1272
|
}];
|
|
1273
1273
|
threadByLabel: [{
|
|
1274
1274
|
readonly sourceField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1275
|
-
readonly destField: readonly ("
|
|
1275
|
+
readonly destField: readonly ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1276
1276
|
readonly destSchema: "threadByLabel";
|
|
1277
1277
|
readonly cardinality: "many";
|
|
1278
1278
|
}];
|
|
@@ -1285,19 +1285,19 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1285
1285
|
};
|
|
1286
1286
|
readonly threadLabel: {
|
|
1287
1287
|
label: [{
|
|
1288
|
-
readonly sourceField: readonly ("
|
|
1288
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1289
1289
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1290
1290
|
readonly destSchema: "accountLabel";
|
|
1291
1291
|
readonly cardinality: "one";
|
|
1292
1292
|
}];
|
|
1293
1293
|
message: [{
|
|
1294
|
-
readonly sourceField: readonly ("
|
|
1295
|
-
readonly destField: readonly ("
|
|
1294
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1295
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1296
1296
|
readonly destSchema: "threadMessage";
|
|
1297
1297
|
readonly cardinality: "one";
|
|
1298
1298
|
}];
|
|
1299
1299
|
thread: [{
|
|
1300
|
-
readonly sourceField: readonly ("
|
|
1300
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1301
1301
|
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1302
1302
|
readonly destSchema: "thread";
|
|
1303
1303
|
readonly cardinality: "one";
|
|
@@ -1305,13 +1305,13 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1305
1305
|
};
|
|
1306
1306
|
readonly threadByLabel: {
|
|
1307
1307
|
label: [{
|
|
1308
|
-
readonly sourceField: readonly ("
|
|
1308
|
+
readonly sourceField: readonly ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1309
1309
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1310
1310
|
readonly destSchema: "accountLabel";
|
|
1311
1311
|
readonly cardinality: "one";
|
|
1312
1312
|
}];
|
|
1313
1313
|
thread: [{
|
|
1314
|
-
readonly sourceField: readonly ("
|
|
1314
|
+
readonly sourceField: readonly ("latestMessageDate" | "labelId" | "threadId")[];
|
|
1315
1315
|
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1316
1316
|
readonly destSchema: "thread";
|
|
1317
1317
|
readonly cardinality: "one";
|
|
@@ -1319,30 +1319,30 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1319
1319
|
};
|
|
1320
1320
|
readonly threadMessage: {
|
|
1321
1321
|
attachments: [{
|
|
1322
|
-
readonly sourceField: readonly ("
|
|
1322
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1323
1323
|
readonly destField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1324
1324
|
readonly destSchema: "threadMessageAttachment";
|
|
1325
1325
|
readonly cardinality: "many";
|
|
1326
1326
|
}];
|
|
1327
1327
|
labels: [{
|
|
1328
|
-
readonly sourceField: readonly ("
|
|
1329
|
-
readonly destField: readonly ("
|
|
1328
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1329
|
+
readonly destField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1330
1330
|
readonly destSchema: "threadLabel";
|
|
1331
1331
|
readonly cardinality: "many";
|
|
1332
1332
|
}, {
|
|
1333
|
-
readonly sourceField: readonly ("
|
|
1333
|
+
readonly sourceField: readonly ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
1334
1334
|
readonly destField: readonly ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1335
1335
|
readonly destSchema: "accountLabel";
|
|
1336
1336
|
readonly cardinality: "many";
|
|
1337
1337
|
}];
|
|
1338
1338
|
recipients: [{
|
|
1339
|
-
readonly sourceField: readonly ("
|
|
1339
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1340
1340
|
readonly destField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1341
1341
|
readonly destSchema: "threadMessageRecipient";
|
|
1342
1342
|
readonly cardinality: "many";
|
|
1343
1343
|
}];
|
|
1344
1344
|
thread: [{
|
|
1345
|
-
readonly sourceField: readonly ("
|
|
1345
|
+
readonly sourceField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1346
1346
|
readonly destField: readonly ("id" | "userId" | "accountId" | "subject" | "flagged" | "hasAttachments" | "labelIdList" | "latestMessageDate" | "latestMessageId" | "messageCount" | "previewText" | "seen" | "senderEmail" | "senderName" | "words")[];
|
|
1347
1347
|
readonly destSchema: "thread";
|
|
1348
1348
|
readonly cardinality: "one";
|
|
@@ -1351,7 +1351,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1351
1351
|
readonly threadMessageRecipient: {
|
|
1352
1352
|
message: [{
|
|
1353
1353
|
readonly sourceField: readonly ("type" | "id" | "name" | "emailAddress" | "threadMessageId")[];
|
|
1354
|
-
readonly destField: readonly ("
|
|
1354
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1355
1355
|
readonly destSchema: "threadMessage";
|
|
1356
1356
|
readonly cardinality: "one";
|
|
1357
1357
|
}];
|
|
@@ -1359,7 +1359,7 @@ export declare const queries: import("@rocicorp/zero").QueryRegistry<{
|
|
|
1359
1359
|
readonly threadMessageAttachment: {
|
|
1360
1360
|
message: [{
|
|
1361
1361
|
readonly sourceField: readonly ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1362
|
-
readonly destField: readonly ("
|
|
1362
|
+
readonly destField: readonly ("id" | "accountId" | "previewText" | "senderEmail" | "senderName" | "threadId" | "envelopeDate" | "envelopeSubject")[];
|
|
1363
1363
|
readonly destSchema: "threadMessage";
|
|
1364
1364
|
readonly cardinality: "one";
|
|
1365
1365
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/zero/queries.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queries.d.ts","sourceRoot":"","sources":["../../src/zero/queries.ts"],"names":[],"mappings":"AAOA,KAAK,OAAO,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CAAA;AAQjC,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwOlB,CAAA"}
|
package/dist/zero/queries.js
CHANGED
|
@@ -2,7 +2,7 @@ import { createBuilder, defineQueries, defineQueryWithType } from '@rocicorp/zer
|
|
|
2
2
|
import * as v from 'valibot';
|
|
3
3
|
import { DRAFT_STATUSES } from '../types';
|
|
4
4
|
import { threadsUtils } from '../utils/threads';
|
|
5
|
-
import { schema } from '
|
|
5
|
+
import { schema } from '../zero/schema';
|
|
6
6
|
const zql = createBuilder(schema);
|
|
7
7
|
const defineQuery = defineQueryWithType();
|
|
8
8
|
const MAX_LIMIT = 1000;
|