@marcoappio/marco-config 2.0.458 → 2.0.460
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/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/zero/index.d.ts +82 -72
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas/index.d.ts +0 -6
- package/dist/zero/mutatorSchemas/index.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas/thread.d.ts +0 -6
- package/dist/zero/mutatorSchemas/thread.d.ts.map +1 -1
- package/dist/zero/mutatorSchemas/thread.js +0 -6
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +0 -13
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +0 -33
- package/dist/zero/queries/getAccounts.d.ts +13 -10
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +12 -10
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +12 -10
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +13 -11
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +13 -10
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +12 -10
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +19 -15
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -1
- package/package.json +1 -1
- package/dist/types/MessageAttachmentStatus.d.ts +0 -3
- package/dist/types/MessageAttachmentStatus.d.ts.map +0 -1
- package/dist/types/MessageAttachmentStatus.js +0 -6
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './IMAPConnectionStatus';
|
|
|
9
9
|
export * from './IMAPSourceLocation';
|
|
10
10
|
export * from './LabelSpecialUse';
|
|
11
11
|
export * from './MarcoPlatform';
|
|
12
|
-
export * from './MessageAttachmentStatus';
|
|
13
12
|
export * from './MessageRecipientType';
|
|
14
13
|
export * from './OAuthProvider';
|
|
15
14
|
export * from './SDKError';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA;AAC1B,cAAc,+BAA+B,CAAA;AAC7C,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,wBAAwB,CAAA;AACtC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA"}
|
package/dist/types/index.js
CHANGED
|
@@ -9,7 +9,6 @@ export * from './IMAPConnectionStatus';
|
|
|
9
9
|
export * from './IMAPSourceLocation';
|
|
10
10
|
export * from './LabelSpecialUse';
|
|
11
11
|
export * from './MarcoPlatform';
|
|
12
|
-
export * from './MessageAttachmentStatus';
|
|
13
12
|
export * from './MessageRecipientType';
|
|
14
13
|
export * from './OAuthProvider';
|
|
15
14
|
export * from './SDKError';
|
package/dist/zero/index.d.ts
CHANGED
|
@@ -257,12 +257,6 @@ export declare const marcoZero: {
|
|
|
257
257
|
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
258
258
|
}, undefined>;
|
|
259
259
|
};
|
|
260
|
-
readonly requestAttachmentDownload: {
|
|
261
|
-
readonly delta: import("valibot").ObjectSchema<{
|
|
262
|
-
readonly attachmentIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
263
|
-
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
264
|
-
}, undefined>;
|
|
265
|
-
};
|
|
266
260
|
readonly setArchive: {
|
|
267
261
|
readonly delta: import("valibot").ObjectSchema<{
|
|
268
262
|
readonly sourceLocations: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
@@ -591,6 +585,13 @@ export declare const marcoZero: {
|
|
|
591
585
|
} & {
|
|
592
586
|
serverName: string;
|
|
593
587
|
};
|
|
588
|
+
readonly unreadCount: {
|
|
589
|
+
type: "number";
|
|
590
|
+
optional: false;
|
|
591
|
+
customType: number;
|
|
592
|
+
} & {
|
|
593
|
+
serverName: string;
|
|
594
|
+
};
|
|
594
595
|
};
|
|
595
596
|
primaryKey: readonly [string, ...string[]];
|
|
596
597
|
} & {
|
|
@@ -1023,11 +1024,6 @@ export declare const marcoZero: {
|
|
|
1023
1024
|
optional: false;
|
|
1024
1025
|
customType: number;
|
|
1025
1026
|
};
|
|
1026
|
-
readonly status: {
|
|
1027
|
-
type: "string";
|
|
1028
|
-
optional: false;
|
|
1029
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
1030
|
-
};
|
|
1031
1027
|
readonly threadMessageId: {
|
|
1032
1028
|
type: "string";
|
|
1033
1029
|
optional: false;
|
|
@@ -1105,7 +1101,7 @@ export declare const marcoZero: {
|
|
|
1105
1101
|
}];
|
|
1106
1102
|
labels: [{
|
|
1107
1103
|
readonly sourceField: string[];
|
|
1108
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1104
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1109
1105
|
readonly destSchema: "accountLabel";
|
|
1110
1106
|
readonly cardinality: "many";
|
|
1111
1107
|
}];
|
|
@@ -1211,7 +1207,7 @@ export declare const marcoZero: {
|
|
|
1211
1207
|
readonly cardinality: "many";
|
|
1212
1208
|
}, {
|
|
1213
1209
|
readonly sourceField: string[];
|
|
1214
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1210
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1215
1211
|
readonly destSchema: "accountLabel";
|
|
1216
1212
|
readonly cardinality: "many";
|
|
1217
1213
|
}];
|
|
@@ -1231,7 +1227,7 @@ export declare const marcoZero: {
|
|
|
1231
1227
|
readonly threadLabel: {
|
|
1232
1228
|
label: [{
|
|
1233
1229
|
readonly sourceField: string[];
|
|
1234
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1230
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1235
1231
|
readonly destSchema: "accountLabel";
|
|
1236
1232
|
readonly cardinality: "one";
|
|
1237
1233
|
}];
|
|
@@ -1251,7 +1247,7 @@ export declare const marcoZero: {
|
|
|
1251
1247
|
readonly threadMessage: {
|
|
1252
1248
|
attachments: [{
|
|
1253
1249
|
readonly sourceField: string[];
|
|
1254
|
-
readonly destField: ("
|
|
1250
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
1255
1251
|
readonly destSchema: "threadMessageAttachment";
|
|
1256
1252
|
readonly cardinality: "many";
|
|
1257
1253
|
}];
|
|
@@ -1262,7 +1258,7 @@ export declare const marcoZero: {
|
|
|
1262
1258
|
readonly cardinality: "many";
|
|
1263
1259
|
}, {
|
|
1264
1260
|
readonly sourceField: string[];
|
|
1265
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1261
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1266
1262
|
readonly destSchema: "accountLabel";
|
|
1267
1263
|
readonly cardinality: "many";
|
|
1268
1264
|
}];
|
|
@@ -1330,6 +1326,7 @@ export declare const marcoZero: {
|
|
|
1330
1326
|
readonly path: string;
|
|
1331
1327
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1332
1328
|
readonly uidValidity: number;
|
|
1329
|
+
readonly unreadCount: number;
|
|
1333
1330
|
}[];
|
|
1334
1331
|
}>>;
|
|
1335
1332
|
readonly getContacts: import("@rocicorp/zero").SyncedQuery<"getContacts", import("..").MarcoSyncedQueryContext, true, [{
|
|
@@ -1585,6 +1582,13 @@ export declare const marcoZero: {
|
|
|
1585
1582
|
} & {
|
|
1586
1583
|
serverName: string;
|
|
1587
1584
|
};
|
|
1585
|
+
readonly unreadCount: {
|
|
1586
|
+
type: "number";
|
|
1587
|
+
optional: false;
|
|
1588
|
+
customType: number;
|
|
1589
|
+
} & {
|
|
1590
|
+
serverName: string;
|
|
1591
|
+
};
|
|
1588
1592
|
};
|
|
1589
1593
|
primaryKey: readonly [string, ...string[]];
|
|
1590
1594
|
} & {
|
|
@@ -2017,11 +2021,6 @@ export declare const marcoZero: {
|
|
|
2017
2021
|
optional: false;
|
|
2018
2022
|
customType: number;
|
|
2019
2023
|
};
|
|
2020
|
-
readonly status: {
|
|
2021
|
-
type: "string";
|
|
2022
|
-
optional: false;
|
|
2023
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
2024
|
-
};
|
|
2025
2024
|
readonly threadMessageId: {
|
|
2026
2025
|
type: "string";
|
|
2027
2026
|
optional: false;
|
|
@@ -2099,7 +2098,7 @@ export declare const marcoZero: {
|
|
|
2099
2098
|
}];
|
|
2100
2099
|
labels: [{
|
|
2101
2100
|
readonly sourceField: string[];
|
|
2102
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2101
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2103
2102
|
readonly destSchema: "accountLabel";
|
|
2104
2103
|
readonly cardinality: "many";
|
|
2105
2104
|
}];
|
|
@@ -2205,7 +2204,7 @@ export declare const marcoZero: {
|
|
|
2205
2204
|
readonly cardinality: "many";
|
|
2206
2205
|
}, {
|
|
2207
2206
|
readonly sourceField: string[];
|
|
2208
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2207
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2209
2208
|
readonly destSchema: "accountLabel";
|
|
2210
2209
|
readonly cardinality: "many";
|
|
2211
2210
|
}];
|
|
@@ -2225,7 +2224,7 @@ export declare const marcoZero: {
|
|
|
2225
2224
|
readonly threadLabel: {
|
|
2226
2225
|
label: [{
|
|
2227
2226
|
readonly sourceField: string[];
|
|
2228
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2227
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2229
2228
|
readonly destSchema: "accountLabel";
|
|
2230
2229
|
readonly cardinality: "one";
|
|
2231
2230
|
}];
|
|
@@ -2245,7 +2244,7 @@ export declare const marcoZero: {
|
|
|
2245
2244
|
readonly threadMessage: {
|
|
2246
2245
|
attachments: [{
|
|
2247
2246
|
readonly sourceField: string[];
|
|
2248
|
-
readonly destField: ("
|
|
2247
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
2249
2248
|
readonly destSchema: "threadMessageAttachment";
|
|
2250
2249
|
readonly cardinality: "many";
|
|
2251
2250
|
}];
|
|
@@ -2256,7 +2255,7 @@ export declare const marcoZero: {
|
|
|
2256
2255
|
readonly cardinality: "many";
|
|
2257
2256
|
}, {
|
|
2258
2257
|
readonly sourceField: string[];
|
|
2259
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2258
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2260
2259
|
readonly destSchema: "accountLabel";
|
|
2261
2260
|
readonly cardinality: "many";
|
|
2262
2261
|
}];
|
|
@@ -2547,6 +2546,13 @@ export declare const marcoZero: {
|
|
|
2547
2546
|
} & {
|
|
2548
2547
|
serverName: string;
|
|
2549
2548
|
};
|
|
2549
|
+
readonly unreadCount: {
|
|
2550
|
+
type: "number";
|
|
2551
|
+
optional: false;
|
|
2552
|
+
customType: number;
|
|
2553
|
+
} & {
|
|
2554
|
+
serverName: string;
|
|
2555
|
+
};
|
|
2550
2556
|
};
|
|
2551
2557
|
primaryKey: readonly [string, ...string[]];
|
|
2552
2558
|
} & {
|
|
@@ -2979,11 +2985,6 @@ export declare const marcoZero: {
|
|
|
2979
2985
|
optional: false;
|
|
2980
2986
|
customType: number;
|
|
2981
2987
|
};
|
|
2982
|
-
readonly status: {
|
|
2983
|
-
type: "string";
|
|
2984
|
-
optional: false;
|
|
2985
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
2986
|
-
};
|
|
2987
2988
|
readonly threadMessageId: {
|
|
2988
2989
|
type: "string";
|
|
2989
2990
|
optional: false;
|
|
@@ -3061,7 +3062,7 @@ export declare const marcoZero: {
|
|
|
3061
3062
|
}];
|
|
3062
3063
|
labels: [{
|
|
3063
3064
|
readonly sourceField: string[];
|
|
3064
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3065
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3065
3066
|
readonly destSchema: "accountLabel";
|
|
3066
3067
|
readonly cardinality: "many";
|
|
3067
3068
|
}];
|
|
@@ -3167,7 +3168,7 @@ export declare const marcoZero: {
|
|
|
3167
3168
|
readonly cardinality: "many";
|
|
3168
3169
|
}, {
|
|
3169
3170
|
readonly sourceField: string[];
|
|
3170
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3171
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3171
3172
|
readonly destSchema: "accountLabel";
|
|
3172
3173
|
readonly cardinality: "many";
|
|
3173
3174
|
}];
|
|
@@ -3187,7 +3188,7 @@ export declare const marcoZero: {
|
|
|
3187
3188
|
readonly threadLabel: {
|
|
3188
3189
|
label: [{
|
|
3189
3190
|
readonly sourceField: string[];
|
|
3190
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3191
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3191
3192
|
readonly destSchema: "accountLabel";
|
|
3192
3193
|
readonly cardinality: "one";
|
|
3193
3194
|
}];
|
|
@@ -3207,7 +3208,7 @@ export declare const marcoZero: {
|
|
|
3207
3208
|
readonly threadMessage: {
|
|
3208
3209
|
attachments: [{
|
|
3209
3210
|
readonly sourceField: string[];
|
|
3210
|
-
readonly destField: ("
|
|
3211
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
3211
3212
|
readonly destSchema: "threadMessageAttachment";
|
|
3212
3213
|
readonly cardinality: "many";
|
|
3213
3214
|
}];
|
|
@@ -3218,7 +3219,7 @@ export declare const marcoZero: {
|
|
|
3218
3219
|
readonly cardinality: "many";
|
|
3219
3220
|
}, {
|
|
3220
3221
|
readonly sourceField: string[];
|
|
3221
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3222
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3222
3223
|
readonly destSchema: "accountLabel";
|
|
3223
3224
|
readonly cardinality: "many";
|
|
3224
3225
|
}];
|
|
@@ -3547,6 +3548,13 @@ export declare const marcoZero: {
|
|
|
3547
3548
|
} & {
|
|
3548
3549
|
serverName: string;
|
|
3549
3550
|
};
|
|
3551
|
+
readonly unreadCount: {
|
|
3552
|
+
type: "number";
|
|
3553
|
+
optional: false;
|
|
3554
|
+
customType: number;
|
|
3555
|
+
} & {
|
|
3556
|
+
serverName: string;
|
|
3557
|
+
};
|
|
3550
3558
|
};
|
|
3551
3559
|
primaryKey: readonly [string, ...string[]];
|
|
3552
3560
|
} & {
|
|
@@ -3979,11 +3987,6 @@ export declare const marcoZero: {
|
|
|
3979
3987
|
optional: false;
|
|
3980
3988
|
customType: number;
|
|
3981
3989
|
};
|
|
3982
|
-
readonly status: {
|
|
3983
|
-
type: "string";
|
|
3984
|
-
optional: false;
|
|
3985
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
3986
|
-
};
|
|
3987
3990
|
readonly threadMessageId: {
|
|
3988
3991
|
type: "string";
|
|
3989
3992
|
optional: false;
|
|
@@ -4061,7 +4064,7 @@ export declare const marcoZero: {
|
|
|
4061
4064
|
}];
|
|
4062
4065
|
labels: [{
|
|
4063
4066
|
readonly sourceField: string[];
|
|
4064
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4067
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4065
4068
|
readonly destSchema: "accountLabel";
|
|
4066
4069
|
readonly cardinality: "many";
|
|
4067
4070
|
}];
|
|
@@ -4167,7 +4170,7 @@ export declare const marcoZero: {
|
|
|
4167
4170
|
readonly cardinality: "many";
|
|
4168
4171
|
}, {
|
|
4169
4172
|
readonly sourceField: string[];
|
|
4170
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4173
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4171
4174
|
readonly destSchema: "accountLabel";
|
|
4172
4175
|
readonly cardinality: "many";
|
|
4173
4176
|
}];
|
|
@@ -4187,7 +4190,7 @@ export declare const marcoZero: {
|
|
|
4187
4190
|
readonly threadLabel: {
|
|
4188
4191
|
label: [{
|
|
4189
4192
|
readonly sourceField: string[];
|
|
4190
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4193
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4191
4194
|
readonly destSchema: "accountLabel";
|
|
4192
4195
|
readonly cardinality: "one";
|
|
4193
4196
|
}];
|
|
@@ -4207,7 +4210,7 @@ export declare const marcoZero: {
|
|
|
4207
4210
|
readonly threadMessage: {
|
|
4208
4211
|
attachments: [{
|
|
4209
4212
|
readonly sourceField: string[];
|
|
4210
|
-
readonly destField: ("
|
|
4213
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
4211
4214
|
readonly destSchema: "threadMessageAttachment";
|
|
4212
4215
|
readonly cardinality: "many";
|
|
4213
4216
|
}];
|
|
@@ -4218,7 +4221,7 @@ export declare const marcoZero: {
|
|
|
4218
4221
|
readonly cardinality: "many";
|
|
4219
4222
|
}, {
|
|
4220
4223
|
readonly sourceField: string[];
|
|
4221
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4224
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4222
4225
|
readonly destSchema: "accountLabel";
|
|
4223
4226
|
readonly cardinality: "many";
|
|
4224
4227
|
}];
|
|
@@ -4286,7 +4289,6 @@ export declare const marcoZero: {
|
|
|
4286
4289
|
readonly id: string;
|
|
4287
4290
|
readonly mimeType: string;
|
|
4288
4291
|
readonly size: number;
|
|
4289
|
-
readonly status: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
4290
4292
|
readonly threadMessageId: string;
|
|
4291
4293
|
}[];
|
|
4292
4294
|
})[];
|
|
@@ -4297,6 +4299,7 @@ export declare const marcoZero: {
|
|
|
4297
4299
|
readonly path: string;
|
|
4298
4300
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
4299
4301
|
readonly uidValidity: number;
|
|
4302
|
+
readonly unreadCount: number;
|
|
4300
4303
|
}[];
|
|
4301
4304
|
}>>;
|
|
4302
4305
|
readonly getUser: import("@rocicorp/zero").SyncedQuery<"getUser", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
|
|
@@ -4544,6 +4547,13 @@ export declare const marcoZero: {
|
|
|
4544
4547
|
} & {
|
|
4545
4548
|
serverName: string;
|
|
4546
4549
|
};
|
|
4550
|
+
readonly unreadCount: {
|
|
4551
|
+
type: "number";
|
|
4552
|
+
optional: false;
|
|
4553
|
+
customType: number;
|
|
4554
|
+
} & {
|
|
4555
|
+
serverName: string;
|
|
4556
|
+
};
|
|
4547
4557
|
};
|
|
4548
4558
|
primaryKey: readonly [string, ...string[]];
|
|
4549
4559
|
} & {
|
|
@@ -4976,11 +4986,6 @@ export declare const marcoZero: {
|
|
|
4976
4986
|
optional: false;
|
|
4977
4987
|
customType: number;
|
|
4978
4988
|
};
|
|
4979
|
-
readonly status: {
|
|
4980
|
-
type: "string";
|
|
4981
|
-
optional: false;
|
|
4982
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
4983
|
-
};
|
|
4984
4989
|
readonly threadMessageId: {
|
|
4985
4990
|
type: "string";
|
|
4986
4991
|
optional: false;
|
|
@@ -5058,7 +5063,7 @@ export declare const marcoZero: {
|
|
|
5058
5063
|
}];
|
|
5059
5064
|
labels: [{
|
|
5060
5065
|
readonly sourceField: string[];
|
|
5061
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5066
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5062
5067
|
readonly destSchema: "accountLabel";
|
|
5063
5068
|
readonly cardinality: "many";
|
|
5064
5069
|
}];
|
|
@@ -5164,7 +5169,7 @@ export declare const marcoZero: {
|
|
|
5164
5169
|
readonly cardinality: "many";
|
|
5165
5170
|
}, {
|
|
5166
5171
|
readonly sourceField: string[];
|
|
5167
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5172
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5168
5173
|
readonly destSchema: "accountLabel";
|
|
5169
5174
|
readonly cardinality: "many";
|
|
5170
5175
|
}];
|
|
@@ -5184,7 +5189,7 @@ export declare const marcoZero: {
|
|
|
5184
5189
|
readonly threadLabel: {
|
|
5185
5190
|
label: [{
|
|
5186
5191
|
readonly sourceField: string[];
|
|
5187
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5192
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5188
5193
|
readonly destSchema: "accountLabel";
|
|
5189
5194
|
readonly cardinality: "one";
|
|
5190
5195
|
}];
|
|
@@ -5204,7 +5209,7 @@ export declare const marcoZero: {
|
|
|
5204
5209
|
readonly threadMessage: {
|
|
5205
5210
|
attachments: [{
|
|
5206
5211
|
readonly sourceField: string[];
|
|
5207
|
-
readonly destField: ("
|
|
5212
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
5208
5213
|
readonly destSchema: "threadMessageAttachment";
|
|
5209
5214
|
readonly cardinality: "many";
|
|
5210
5215
|
}];
|
|
@@ -5215,7 +5220,7 @@ export declare const marcoZero: {
|
|
|
5215
5220
|
readonly cardinality: "many";
|
|
5216
5221
|
}, {
|
|
5217
5222
|
readonly sourceField: string[];
|
|
5218
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5223
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5219
5224
|
readonly destSchema: "accountLabel";
|
|
5220
5225
|
readonly cardinality: "many";
|
|
5221
5226
|
}];
|
|
@@ -5289,6 +5294,7 @@ export declare const marcoZero: {
|
|
|
5289
5294
|
readonly path: string;
|
|
5290
5295
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
5291
5296
|
readonly uidValidity: number;
|
|
5297
|
+
readonly unreadCount: number;
|
|
5292
5298
|
}[];
|
|
5293
5299
|
})[];
|
|
5294
5300
|
} & {
|
|
@@ -5545,6 +5551,13 @@ export declare const marcoZero: {
|
|
|
5545
5551
|
} & {
|
|
5546
5552
|
serverName: string;
|
|
5547
5553
|
};
|
|
5554
|
+
readonly unreadCount: {
|
|
5555
|
+
type: "number";
|
|
5556
|
+
optional: false;
|
|
5557
|
+
customType: number;
|
|
5558
|
+
} & {
|
|
5559
|
+
serverName: string;
|
|
5560
|
+
};
|
|
5548
5561
|
};
|
|
5549
5562
|
primaryKey: readonly [string, ...string[]];
|
|
5550
5563
|
} & {
|
|
@@ -5977,11 +5990,6 @@ export declare const marcoZero: {
|
|
|
5977
5990
|
optional: false;
|
|
5978
5991
|
customType: number;
|
|
5979
5992
|
};
|
|
5980
|
-
readonly status: {
|
|
5981
|
-
type: "string";
|
|
5982
|
-
optional: false;
|
|
5983
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
5984
|
-
};
|
|
5985
5993
|
readonly threadMessageId: {
|
|
5986
5994
|
type: "string";
|
|
5987
5995
|
optional: false;
|
|
@@ -6059,7 +6067,7 @@ export declare const marcoZero: {
|
|
|
6059
6067
|
}];
|
|
6060
6068
|
labels: [{
|
|
6061
6069
|
readonly sourceField: string[];
|
|
6062
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6070
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6063
6071
|
readonly destSchema: "accountLabel";
|
|
6064
6072
|
readonly cardinality: "many";
|
|
6065
6073
|
}];
|
|
@@ -6165,7 +6173,7 @@ export declare const marcoZero: {
|
|
|
6165
6173
|
readonly cardinality: "many";
|
|
6166
6174
|
}, {
|
|
6167
6175
|
readonly sourceField: string[];
|
|
6168
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6176
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6169
6177
|
readonly destSchema: "accountLabel";
|
|
6170
6178
|
readonly cardinality: "many";
|
|
6171
6179
|
}];
|
|
@@ -6185,7 +6193,7 @@ export declare const marcoZero: {
|
|
|
6185
6193
|
readonly threadLabel: {
|
|
6186
6194
|
label: [{
|
|
6187
6195
|
readonly sourceField: string[];
|
|
6188
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6196
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6189
6197
|
readonly destSchema: "accountLabel";
|
|
6190
6198
|
readonly cardinality: "one";
|
|
6191
6199
|
}];
|
|
@@ -6205,7 +6213,7 @@ export declare const marcoZero: {
|
|
|
6205
6213
|
readonly threadMessage: {
|
|
6206
6214
|
attachments: [{
|
|
6207
6215
|
readonly sourceField: string[];
|
|
6208
|
-
readonly destField: ("
|
|
6216
|
+
readonly destField: ("id" | "fileName" | "mimeType" | "threadMessageId" | "size")[];
|
|
6209
6217
|
readonly destSchema: "threadMessageAttachment";
|
|
6210
6218
|
readonly cardinality: "many";
|
|
6211
6219
|
}];
|
|
@@ -6216,7 +6224,7 @@ export declare const marcoZero: {
|
|
|
6216
6224
|
readonly cardinality: "many";
|
|
6217
6225
|
}, {
|
|
6218
6226
|
readonly sourceField: string[];
|
|
6219
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6227
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6220
6228
|
readonly destSchema: "accountLabel";
|
|
6221
6229
|
readonly cardinality: "many";
|
|
6222
6230
|
}];
|
|
@@ -6395,6 +6403,13 @@ export declare const marcoZero: {
|
|
|
6395
6403
|
} & {
|
|
6396
6404
|
serverName: string;
|
|
6397
6405
|
};
|
|
6406
|
+
readonly unreadCount: {
|
|
6407
|
+
type: "number";
|
|
6408
|
+
optional: false;
|
|
6409
|
+
customType: number;
|
|
6410
|
+
} & {
|
|
6411
|
+
serverName: string;
|
|
6412
|
+
};
|
|
6398
6413
|
};
|
|
6399
6414
|
primaryKey: readonly [string, ...string[]];
|
|
6400
6415
|
} & {
|
|
@@ -6822,11 +6837,6 @@ export declare const marcoZero: {
|
|
|
6822
6837
|
optional: false;
|
|
6823
6838
|
customType: number;
|
|
6824
6839
|
};
|
|
6825
|
-
readonly status: {
|
|
6826
|
-
type: "string";
|
|
6827
|
-
optional: false;
|
|
6828
|
-
customType: "NOT_DOWNLOADED" | "DOWNLOAD_REQUESTED" | "DOWNLOADED" | "DOWNLOAD_FAILED";
|
|
6829
|
-
};
|
|
6830
6840
|
readonly threadMessageId: {
|
|
6831
6841
|
type: "string";
|
|
6832
6842
|
optional: false;
|
package/dist/zero/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAM,CAAA;AAEV,YAAY,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -255,12 +255,6 @@ export declare const zeroMutatorSchemas: {
|
|
|
255
255
|
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
256
256
|
}, undefined>;
|
|
257
257
|
};
|
|
258
|
-
readonly requestAttachmentDownload: {
|
|
259
|
-
readonly delta: import("valibot").ObjectSchema<{
|
|
260
|
-
readonly attachmentIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
261
|
-
readonly threadIds: import("valibot").ArraySchema<import("valibot").NonOptionalSchema<import("valibot").SchemaWithPipe<readonly [import("valibot").StringSchema<undefined>, import("valibot").NonEmptyAction<string, undefined>, import("valibot").MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
262
|
-
}, undefined>;
|
|
263
|
-
};
|
|
264
258
|
readonly setArchive: {
|
|
265
259
|
readonly delta: import("valibot").ObjectSchema<{
|
|
266
260
|
readonly sourceLocations: import("valibot").ArraySchema<import("valibot").ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKrB,CAAA;AAEV,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAA"}
|
|
@@ -29,12 +29,6 @@ export declare const threadMutatorSchemas: {
|
|
|
29
29
|
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
30
30
|
}, undefined>;
|
|
31
31
|
};
|
|
32
|
-
readonly requestAttachmentDownload: {
|
|
33
|
-
readonly delta: v.ObjectSchema<{
|
|
34
|
-
readonly attachmentIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
35
|
-
readonly threadIds: v.ArraySchema<v.NonOptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.NonEmptyAction<string, undefined>, v.MaxLengthAction<string, number, undefined>]>, undefined>, undefined>;
|
|
36
|
-
}, undefined>;
|
|
37
|
-
};
|
|
38
32
|
readonly setArchive: {
|
|
39
33
|
readonly delta: v.ObjectSchema<{
|
|
40
34
|
readonly sourceLocations: v.ArraySchema<v.ObjectSchema<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0B5B,eAAO,MAAM,oBAAoB
|
|
1
|
+
{"version":3,"file":"thread.d.ts","sourceRoot":"","sources":["../../../src/zero/mutatorSchemas/thread.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAA;AA0B5B,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCvB,CAAA"}
|
|
@@ -28,12 +28,6 @@ export const threadMutatorSchemas = {
|
|
|
28
28
|
removeLabel: {
|
|
29
29
|
delta: threadChangeLabelSchema,
|
|
30
30
|
},
|
|
31
|
-
requestAttachmentDownload: {
|
|
32
|
-
delta: v.object({
|
|
33
|
-
attachmentIds: v.array(marcoSchemas.string.required()),
|
|
34
|
-
threadIds: v.array(marcoSchemas.string.required()),
|
|
35
|
-
}),
|
|
36
|
-
},
|
|
37
31
|
setArchive: {
|
|
38
32
|
delta: specialUseLabelChangeDeltaSchema,
|
|
39
33
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"threadMutators.d.ts","sourceRoot":"","sources":["../../../../src/zero/mutators/threadMutators/threadMutators.ts"],"names":[],"mappings":"AA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,KAAK,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,MAAM,MAAM,sBAAsB,GAAG;KAClC,CAAC,IAAI,MAAM,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAC1C,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,KAC1D,OAAO,CAAC,IAAI,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,cAAc,OACrB,WAAW,CAAC,eAAe,CAAC,YACtB,MAAM,oBACE,eAAe,KAChC,OAAO,CAAC,kBAAkB,EAAE,CAoE9B,CAAA;AAED,eAAO,MAAM,oBAAoB,cACpB,QAAQ,GAAG,SAAS,cACnB,sBAAsB,KACjC,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAoKxC,CAAA"}
|
|
@@ -141,19 +141,6 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
141
141
|
}
|
|
142
142
|
callbacks?.removeLabel?.({ ...args, sourceLocations: allSourceLocations });
|
|
143
143
|
},
|
|
144
|
-
requestAttachmentDownload: async (tx, args) => {
|
|
145
|
-
for (const attachmentId of args.attachmentIds) {
|
|
146
|
-
const attachment = await tx.query.threadMessageAttachment.where('id', attachmentId).one().run();
|
|
147
|
-
if (!attachment) {
|
|
148
|
-
throw new Error(MutationError.ENTITY_NOT_FOUND);
|
|
149
|
-
}
|
|
150
|
-
await tx.mutate.threadMessageAttachment.update({
|
|
151
|
-
id: attachmentId,
|
|
152
|
-
status: 'DOWNLOAD_REQUESTED',
|
|
153
|
-
});
|
|
154
|
-
callbacks?.requestAttachmentDownload?.(args);
|
|
155
|
-
}
|
|
156
|
-
},
|
|
157
144
|
setArchive: async (tx, args) => {
|
|
158
145
|
const allSourceLocations = [];
|
|
159
146
|
for (const threadId of args.threadIds) {
|