@marcoappio/marco-config 2.0.459 → 2.0.461
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/zero/index.d.ts +76 -24
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +13 -0
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +54 -2
- package/dist/zero/queries/getAccounts.d.ts +12 -4
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +11 -4
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +11 -4
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +12 -4
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +12 -4
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +11 -4
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +18 -4
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -0
- package/package.json +1 -1
package/dist/zero/index.d.ts
CHANGED
|
@@ -585,6 +585,13 @@ export declare const marcoZero: {
|
|
|
585
585
|
} & {
|
|
586
586
|
serverName: string;
|
|
587
587
|
};
|
|
588
|
+
readonly unreadCount: {
|
|
589
|
+
type: "number";
|
|
590
|
+
optional: false;
|
|
591
|
+
customType: number;
|
|
592
|
+
} & {
|
|
593
|
+
serverName: string;
|
|
594
|
+
};
|
|
588
595
|
};
|
|
589
596
|
primaryKey: readonly [string, ...string[]];
|
|
590
597
|
} & {
|
|
@@ -1094,7 +1101,7 @@ export declare const marcoZero: {
|
|
|
1094
1101
|
}];
|
|
1095
1102
|
labels: [{
|
|
1096
1103
|
readonly sourceField: string[];
|
|
1097
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1104
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1098
1105
|
readonly destSchema: "accountLabel";
|
|
1099
1106
|
readonly cardinality: "many";
|
|
1100
1107
|
}];
|
|
@@ -1200,7 +1207,7 @@ export declare const marcoZero: {
|
|
|
1200
1207
|
readonly cardinality: "many";
|
|
1201
1208
|
}, {
|
|
1202
1209
|
readonly sourceField: string[];
|
|
1203
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1210
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1204
1211
|
readonly destSchema: "accountLabel";
|
|
1205
1212
|
readonly cardinality: "many";
|
|
1206
1213
|
}];
|
|
@@ -1220,7 +1227,7 @@ export declare const marcoZero: {
|
|
|
1220
1227
|
readonly threadLabel: {
|
|
1221
1228
|
label: [{
|
|
1222
1229
|
readonly sourceField: string[];
|
|
1223
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1230
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1224
1231
|
readonly destSchema: "accountLabel";
|
|
1225
1232
|
readonly cardinality: "one";
|
|
1226
1233
|
}];
|
|
@@ -1251,7 +1258,7 @@ export declare const marcoZero: {
|
|
|
1251
1258
|
readonly cardinality: "many";
|
|
1252
1259
|
}, {
|
|
1253
1260
|
readonly sourceField: string[];
|
|
1254
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
1261
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
1255
1262
|
readonly destSchema: "accountLabel";
|
|
1256
1263
|
readonly cardinality: "many";
|
|
1257
1264
|
}];
|
|
@@ -1319,6 +1326,7 @@ export declare const marcoZero: {
|
|
|
1319
1326
|
readonly path: string;
|
|
1320
1327
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1321
1328
|
readonly uidValidity: number;
|
|
1329
|
+
readonly unreadCount: number;
|
|
1322
1330
|
}[];
|
|
1323
1331
|
}>>;
|
|
1324
1332
|
readonly getContacts: import("@rocicorp/zero").SyncedQuery<"getContacts", import("..").MarcoSyncedQueryContext, true, [{
|
|
@@ -1574,6 +1582,13 @@ export declare const marcoZero: {
|
|
|
1574
1582
|
} & {
|
|
1575
1583
|
serverName: string;
|
|
1576
1584
|
};
|
|
1585
|
+
readonly unreadCount: {
|
|
1586
|
+
type: "number";
|
|
1587
|
+
optional: false;
|
|
1588
|
+
customType: number;
|
|
1589
|
+
} & {
|
|
1590
|
+
serverName: string;
|
|
1591
|
+
};
|
|
1577
1592
|
};
|
|
1578
1593
|
primaryKey: readonly [string, ...string[]];
|
|
1579
1594
|
} & {
|
|
@@ -2083,7 +2098,7 @@ export declare const marcoZero: {
|
|
|
2083
2098
|
}];
|
|
2084
2099
|
labels: [{
|
|
2085
2100
|
readonly sourceField: string[];
|
|
2086
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2101
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2087
2102
|
readonly destSchema: "accountLabel";
|
|
2088
2103
|
readonly cardinality: "many";
|
|
2089
2104
|
}];
|
|
@@ -2189,7 +2204,7 @@ export declare const marcoZero: {
|
|
|
2189
2204
|
readonly cardinality: "many";
|
|
2190
2205
|
}, {
|
|
2191
2206
|
readonly sourceField: string[];
|
|
2192
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2207
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2193
2208
|
readonly destSchema: "accountLabel";
|
|
2194
2209
|
readonly cardinality: "many";
|
|
2195
2210
|
}];
|
|
@@ -2209,7 +2224,7 @@ export declare const marcoZero: {
|
|
|
2209
2224
|
readonly threadLabel: {
|
|
2210
2225
|
label: [{
|
|
2211
2226
|
readonly sourceField: string[];
|
|
2212
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2227
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2213
2228
|
readonly destSchema: "accountLabel";
|
|
2214
2229
|
readonly cardinality: "one";
|
|
2215
2230
|
}];
|
|
@@ -2240,7 +2255,7 @@ export declare const marcoZero: {
|
|
|
2240
2255
|
readonly cardinality: "many";
|
|
2241
2256
|
}, {
|
|
2242
2257
|
readonly sourceField: string[];
|
|
2243
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
2258
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
2244
2259
|
readonly destSchema: "accountLabel";
|
|
2245
2260
|
readonly cardinality: "many";
|
|
2246
2261
|
}];
|
|
@@ -2531,6 +2546,13 @@ export declare const marcoZero: {
|
|
|
2531
2546
|
} & {
|
|
2532
2547
|
serverName: string;
|
|
2533
2548
|
};
|
|
2549
|
+
readonly unreadCount: {
|
|
2550
|
+
type: "number";
|
|
2551
|
+
optional: false;
|
|
2552
|
+
customType: number;
|
|
2553
|
+
} & {
|
|
2554
|
+
serverName: string;
|
|
2555
|
+
};
|
|
2534
2556
|
};
|
|
2535
2557
|
primaryKey: readonly [string, ...string[]];
|
|
2536
2558
|
} & {
|
|
@@ -3040,7 +3062,7 @@ export declare const marcoZero: {
|
|
|
3040
3062
|
}];
|
|
3041
3063
|
labels: [{
|
|
3042
3064
|
readonly sourceField: string[];
|
|
3043
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3065
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3044
3066
|
readonly destSchema: "accountLabel";
|
|
3045
3067
|
readonly cardinality: "many";
|
|
3046
3068
|
}];
|
|
@@ -3146,7 +3168,7 @@ export declare const marcoZero: {
|
|
|
3146
3168
|
readonly cardinality: "many";
|
|
3147
3169
|
}, {
|
|
3148
3170
|
readonly sourceField: string[];
|
|
3149
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3171
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3150
3172
|
readonly destSchema: "accountLabel";
|
|
3151
3173
|
readonly cardinality: "many";
|
|
3152
3174
|
}];
|
|
@@ -3166,7 +3188,7 @@ export declare const marcoZero: {
|
|
|
3166
3188
|
readonly threadLabel: {
|
|
3167
3189
|
label: [{
|
|
3168
3190
|
readonly sourceField: string[];
|
|
3169
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3191
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3170
3192
|
readonly destSchema: "accountLabel";
|
|
3171
3193
|
readonly cardinality: "one";
|
|
3172
3194
|
}];
|
|
@@ -3197,7 +3219,7 @@ export declare const marcoZero: {
|
|
|
3197
3219
|
readonly cardinality: "many";
|
|
3198
3220
|
}, {
|
|
3199
3221
|
readonly sourceField: string[];
|
|
3200
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
3222
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
3201
3223
|
readonly destSchema: "accountLabel";
|
|
3202
3224
|
readonly cardinality: "many";
|
|
3203
3225
|
}];
|
|
@@ -3526,6 +3548,13 @@ export declare const marcoZero: {
|
|
|
3526
3548
|
} & {
|
|
3527
3549
|
serverName: string;
|
|
3528
3550
|
};
|
|
3551
|
+
readonly unreadCount: {
|
|
3552
|
+
type: "number";
|
|
3553
|
+
optional: false;
|
|
3554
|
+
customType: number;
|
|
3555
|
+
} & {
|
|
3556
|
+
serverName: string;
|
|
3557
|
+
};
|
|
3529
3558
|
};
|
|
3530
3559
|
primaryKey: readonly [string, ...string[]];
|
|
3531
3560
|
} & {
|
|
@@ -4035,7 +4064,7 @@ export declare const marcoZero: {
|
|
|
4035
4064
|
}];
|
|
4036
4065
|
labels: [{
|
|
4037
4066
|
readonly sourceField: string[];
|
|
4038
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4067
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4039
4068
|
readonly destSchema: "accountLabel";
|
|
4040
4069
|
readonly cardinality: "many";
|
|
4041
4070
|
}];
|
|
@@ -4141,7 +4170,7 @@ export declare const marcoZero: {
|
|
|
4141
4170
|
readonly cardinality: "many";
|
|
4142
4171
|
}, {
|
|
4143
4172
|
readonly sourceField: string[];
|
|
4144
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4173
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4145
4174
|
readonly destSchema: "accountLabel";
|
|
4146
4175
|
readonly cardinality: "many";
|
|
4147
4176
|
}];
|
|
@@ -4161,7 +4190,7 @@ export declare const marcoZero: {
|
|
|
4161
4190
|
readonly threadLabel: {
|
|
4162
4191
|
label: [{
|
|
4163
4192
|
readonly sourceField: string[];
|
|
4164
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4193
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4165
4194
|
readonly destSchema: "accountLabel";
|
|
4166
4195
|
readonly cardinality: "one";
|
|
4167
4196
|
}];
|
|
@@ -4192,7 +4221,7 @@ export declare const marcoZero: {
|
|
|
4192
4221
|
readonly cardinality: "many";
|
|
4193
4222
|
}, {
|
|
4194
4223
|
readonly sourceField: string[];
|
|
4195
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
4224
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
4196
4225
|
readonly destSchema: "accountLabel";
|
|
4197
4226
|
readonly cardinality: "many";
|
|
4198
4227
|
}];
|
|
@@ -4270,6 +4299,7 @@ export declare const marcoZero: {
|
|
|
4270
4299
|
readonly path: string;
|
|
4271
4300
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
4272
4301
|
readonly uidValidity: number;
|
|
4302
|
+
readonly unreadCount: number;
|
|
4273
4303
|
}[];
|
|
4274
4304
|
}>>;
|
|
4275
4305
|
readonly getUser: import("@rocicorp/zero").SyncedQuery<"getUser", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
|
|
@@ -4517,6 +4547,13 @@ export declare const marcoZero: {
|
|
|
4517
4547
|
} & {
|
|
4518
4548
|
serverName: string;
|
|
4519
4549
|
};
|
|
4550
|
+
readonly unreadCount: {
|
|
4551
|
+
type: "number";
|
|
4552
|
+
optional: false;
|
|
4553
|
+
customType: number;
|
|
4554
|
+
} & {
|
|
4555
|
+
serverName: string;
|
|
4556
|
+
};
|
|
4520
4557
|
};
|
|
4521
4558
|
primaryKey: readonly [string, ...string[]];
|
|
4522
4559
|
} & {
|
|
@@ -5026,7 +5063,7 @@ export declare const marcoZero: {
|
|
|
5026
5063
|
}];
|
|
5027
5064
|
labels: [{
|
|
5028
5065
|
readonly sourceField: string[];
|
|
5029
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5066
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5030
5067
|
readonly destSchema: "accountLabel";
|
|
5031
5068
|
readonly cardinality: "many";
|
|
5032
5069
|
}];
|
|
@@ -5132,7 +5169,7 @@ export declare const marcoZero: {
|
|
|
5132
5169
|
readonly cardinality: "many";
|
|
5133
5170
|
}, {
|
|
5134
5171
|
readonly sourceField: string[];
|
|
5135
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5172
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5136
5173
|
readonly destSchema: "accountLabel";
|
|
5137
5174
|
readonly cardinality: "many";
|
|
5138
5175
|
}];
|
|
@@ -5152,7 +5189,7 @@ export declare const marcoZero: {
|
|
|
5152
5189
|
readonly threadLabel: {
|
|
5153
5190
|
label: [{
|
|
5154
5191
|
readonly sourceField: string[];
|
|
5155
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5192
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5156
5193
|
readonly destSchema: "accountLabel";
|
|
5157
5194
|
readonly cardinality: "one";
|
|
5158
5195
|
}];
|
|
@@ -5183,7 +5220,7 @@ export declare const marcoZero: {
|
|
|
5183
5220
|
readonly cardinality: "many";
|
|
5184
5221
|
}, {
|
|
5185
5222
|
readonly sourceField: string[];
|
|
5186
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
5223
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
5187
5224
|
readonly destSchema: "accountLabel";
|
|
5188
5225
|
readonly cardinality: "many";
|
|
5189
5226
|
}];
|
|
@@ -5257,6 +5294,7 @@ export declare const marcoZero: {
|
|
|
5257
5294
|
readonly path: string;
|
|
5258
5295
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
5259
5296
|
readonly uidValidity: number;
|
|
5297
|
+
readonly unreadCount: number;
|
|
5260
5298
|
}[];
|
|
5261
5299
|
})[];
|
|
5262
5300
|
} & {
|
|
@@ -5513,6 +5551,13 @@ export declare const marcoZero: {
|
|
|
5513
5551
|
} & {
|
|
5514
5552
|
serverName: string;
|
|
5515
5553
|
};
|
|
5554
|
+
readonly unreadCount: {
|
|
5555
|
+
type: "number";
|
|
5556
|
+
optional: false;
|
|
5557
|
+
customType: number;
|
|
5558
|
+
} & {
|
|
5559
|
+
serverName: string;
|
|
5560
|
+
};
|
|
5516
5561
|
};
|
|
5517
5562
|
primaryKey: readonly [string, ...string[]];
|
|
5518
5563
|
} & {
|
|
@@ -6022,7 +6067,7 @@ export declare const marcoZero: {
|
|
|
6022
6067
|
}];
|
|
6023
6068
|
labels: [{
|
|
6024
6069
|
readonly sourceField: string[];
|
|
6025
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6070
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6026
6071
|
readonly destSchema: "accountLabel";
|
|
6027
6072
|
readonly cardinality: "many";
|
|
6028
6073
|
}];
|
|
@@ -6128,7 +6173,7 @@ export declare const marcoZero: {
|
|
|
6128
6173
|
readonly cardinality: "many";
|
|
6129
6174
|
}, {
|
|
6130
6175
|
readonly sourceField: string[];
|
|
6131
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6176
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6132
6177
|
readonly destSchema: "accountLabel";
|
|
6133
6178
|
readonly cardinality: "many";
|
|
6134
6179
|
}];
|
|
@@ -6148,7 +6193,7 @@ export declare const marcoZero: {
|
|
|
6148
6193
|
readonly threadLabel: {
|
|
6149
6194
|
label: [{
|
|
6150
6195
|
readonly sourceField: string[];
|
|
6151
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6196
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6152
6197
|
readonly destSchema: "accountLabel";
|
|
6153
6198
|
readonly cardinality: "one";
|
|
6154
6199
|
}];
|
|
@@ -6179,7 +6224,7 @@ export declare const marcoZero: {
|
|
|
6179
6224
|
readonly cardinality: "many";
|
|
6180
6225
|
}, {
|
|
6181
6226
|
readonly sourceField: string[];
|
|
6182
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
6227
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
6183
6228
|
readonly destSchema: "accountLabel";
|
|
6184
6229
|
readonly cardinality: "many";
|
|
6185
6230
|
}];
|
|
@@ -6358,6 +6403,13 @@ export declare const marcoZero: {
|
|
|
6358
6403
|
} & {
|
|
6359
6404
|
serverName: string;
|
|
6360
6405
|
};
|
|
6406
|
+
readonly unreadCount: {
|
|
6407
|
+
type: "number";
|
|
6408
|
+
optional: false;
|
|
6409
|
+
customType: number;
|
|
6410
|
+
} & {
|
|
6411
|
+
serverName: string;
|
|
6412
|
+
};
|
|
6361
6413
|
};
|
|
6362
6414
|
primaryKey: readonly [string, ...string[]];
|
|
6363
6415
|
} & {
|
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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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,CAqLxC,CAAA"}
|
|
@@ -167,6 +167,19 @@ export const createThreadMutators = (_authData, callbacks) => ({
|
|
|
167
167
|
callbacks?.setInbox?.({ ...args, sourceLocations: allSourceLocations });
|
|
168
168
|
},
|
|
169
169
|
setSeen: async (tx, args) => {
|
|
170
|
+
const threadLabels = await tx.query.threadLabel.where('threadId', 'IN', args.threadIds).run();
|
|
171
|
+
const uniqueLabelIds = [...new Set(threadLabels.map(x => x.labelId))];
|
|
172
|
+
if (uniqueLabelIds.length > 0) {
|
|
173
|
+
const labels = await tx.query.accountLabel.where('id', 'IN', uniqueLabelIds).run();
|
|
174
|
+
const delta = args.seen ? -1 : 1;
|
|
175
|
+
for (const label of labels.filter(x => x.specialUse === 'INBOX')) {
|
|
176
|
+
const threadCount = new Set(threadLabels.filter(x => x.labelId === label.id).map(x => x.threadId)).size;
|
|
177
|
+
await tx.mutate.accountLabel.update({
|
|
178
|
+
id: label.id,
|
|
179
|
+
unreadCount: Math.max(0, (label.unreadCount ?? 0) + delta * threadCount),
|
|
180
|
+
});
|
|
181
|
+
}
|
|
182
|
+
}
|
|
170
183
|
for (const threadId of args.threadIds) {
|
|
171
184
|
await tx.mutate.thread.update({
|
|
172
185
|
id: threadId,
|
|
@@ -322,15 +322,35 @@ describe('threadMutators', () => {
|
|
|
322
322
|
});
|
|
323
323
|
});
|
|
324
324
|
describe('setSeen', () => {
|
|
325
|
-
it('sets thread seen status', async () => {
|
|
325
|
+
it('sets thread seen status and updates unread count', async () => {
|
|
326
326
|
const threadUpdate = mock(async () => { });
|
|
327
|
+
const labelUpdate = mock(async () => { });
|
|
328
|
+
const threadLabels = [
|
|
329
|
+
{ labelId: 'test-inbox-label-id', threadId: 'test-thread-id-1' },
|
|
330
|
+
{ labelId: 'test-inbox-label-id', threadId: 'test-thread-id-2' },
|
|
331
|
+
];
|
|
332
|
+
const labels = [{ id: 'test-inbox-label-id', specialUse: 'INBOX', unreadCount: 5 }];
|
|
333
|
+
const runThreadLabels = mock(async () => threadLabels);
|
|
334
|
+
const whereThreadLabel = mock(() => ({ run: runThreadLabels }));
|
|
335
|
+
const runLabels = mock(async () => labels);
|
|
336
|
+
const whereLabel = mock(() => ({ run: runLabels }));
|
|
327
337
|
const transaction = {
|
|
328
338
|
mutate: {
|
|
339
|
+
accountLabel: {
|
|
340
|
+
update: labelUpdate,
|
|
341
|
+
},
|
|
329
342
|
thread: {
|
|
330
343
|
update: threadUpdate,
|
|
331
344
|
},
|
|
332
345
|
},
|
|
333
|
-
query: {
|
|
346
|
+
query: {
|
|
347
|
+
accountLabel: {
|
|
348
|
+
where: whereLabel,
|
|
349
|
+
},
|
|
350
|
+
threadLabel: {
|
|
351
|
+
where: whereThreadLabel,
|
|
352
|
+
},
|
|
353
|
+
},
|
|
334
354
|
};
|
|
335
355
|
const mutators = createMutators();
|
|
336
356
|
await mutators.thread.setSeen(transaction, {
|
|
@@ -346,6 +366,38 @@ describe('threadMutators', () => {
|
|
|
346
366
|
id: 'test-thread-id-2',
|
|
347
367
|
seen: true,
|
|
348
368
|
});
|
|
369
|
+
expect(labelUpdate).toHaveBeenCalledWith({
|
|
370
|
+
id: 'test-inbox-label-id',
|
|
371
|
+
unreadCount: 3,
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
it('skips label update when threads have no labels', async () => {
|
|
375
|
+
const threadUpdate = mock(async () => { });
|
|
376
|
+
const labelUpdate = mock(async () => { });
|
|
377
|
+
const runThreadLabels = mock(async () => []);
|
|
378
|
+
const whereThreadLabel = mock(() => ({ run: runThreadLabels }));
|
|
379
|
+
const transaction = {
|
|
380
|
+
mutate: {
|
|
381
|
+
accountLabel: {
|
|
382
|
+
update: labelUpdate,
|
|
383
|
+
},
|
|
384
|
+
thread: {
|
|
385
|
+
update: threadUpdate,
|
|
386
|
+
},
|
|
387
|
+
},
|
|
388
|
+
query: {
|
|
389
|
+
threadLabel: {
|
|
390
|
+
where: whereThreadLabel,
|
|
391
|
+
},
|
|
392
|
+
},
|
|
393
|
+
};
|
|
394
|
+
const mutators = createMutators();
|
|
395
|
+
await mutators.thread.setSeen(transaction, {
|
|
396
|
+
seen: true,
|
|
397
|
+
threadIds: ['test-thread-id-1'],
|
|
398
|
+
});
|
|
399
|
+
expect(threadUpdate).toHaveBeenCalledTimes(1);
|
|
400
|
+
expect(labelUpdate).not.toHaveBeenCalled();
|
|
349
401
|
});
|
|
350
402
|
});
|
|
351
403
|
describe('setSpam', () => {
|
|
@@ -244,6 +244,13 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
244
244
|
} & {
|
|
245
245
|
serverName: string;
|
|
246
246
|
};
|
|
247
|
+
readonly unreadCount: {
|
|
248
|
+
type: "number";
|
|
249
|
+
optional: false;
|
|
250
|
+
customType: number;
|
|
251
|
+
} & {
|
|
252
|
+
serverName: string;
|
|
253
|
+
};
|
|
247
254
|
};
|
|
248
255
|
primaryKey: readonly [string, ...string[]];
|
|
249
256
|
} & {
|
|
@@ -753,7 +760,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
753
760
|
}];
|
|
754
761
|
labels: [{
|
|
755
762
|
readonly sourceField: string[];
|
|
756
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
763
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
757
764
|
readonly destSchema: "accountLabel";
|
|
758
765
|
readonly cardinality: "many";
|
|
759
766
|
}];
|
|
@@ -859,7 +866,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
859
866
|
readonly cardinality: "many";
|
|
860
867
|
}, {
|
|
861
868
|
readonly sourceField: string[];
|
|
862
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
869
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
863
870
|
readonly destSchema: "accountLabel";
|
|
864
871
|
readonly cardinality: "many";
|
|
865
872
|
}];
|
|
@@ -879,7 +886,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
879
886
|
readonly threadLabel: {
|
|
880
887
|
label: [{
|
|
881
888
|
readonly sourceField: string[];
|
|
882
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
889
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
883
890
|
readonly destSchema: "accountLabel";
|
|
884
891
|
readonly cardinality: "one";
|
|
885
892
|
}];
|
|
@@ -910,7 +917,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
910
917
|
readonly cardinality: "many";
|
|
911
918
|
}, {
|
|
912
919
|
readonly sourceField: string[];
|
|
913
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
920
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
914
921
|
readonly destSchema: "accountLabel";
|
|
915
922
|
readonly cardinality: "many";
|
|
916
923
|
}];
|
|
@@ -978,6 +985,7 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
978
985
|
readonly path: string;
|
|
979
986
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
980
987
|
readonly uidValidity: number;
|
|
988
|
+
readonly unreadCount: number;
|
|
981
989
|
}[];
|
|
982
990
|
}>>;
|
|
983
991
|
//# sourceMappingURL=getAccounts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"getAccounts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getAccounts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAGlE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,CAAA"}
|
|
@@ -253,6 +253,13 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
253
253
|
} & {
|
|
254
254
|
serverName: string;
|
|
255
255
|
};
|
|
256
|
+
readonly unreadCount: {
|
|
257
|
+
type: "number";
|
|
258
|
+
optional: false;
|
|
259
|
+
customType: number;
|
|
260
|
+
} & {
|
|
261
|
+
serverName: string;
|
|
262
|
+
};
|
|
256
263
|
};
|
|
257
264
|
primaryKey: readonly [string, ...string[]];
|
|
258
265
|
} & {
|
|
@@ -762,7 +769,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
762
769
|
}];
|
|
763
770
|
labels: [{
|
|
764
771
|
readonly sourceField: string[];
|
|
765
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
772
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
766
773
|
readonly destSchema: "accountLabel";
|
|
767
774
|
readonly cardinality: "many";
|
|
768
775
|
}];
|
|
@@ -868,7 +875,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
868
875
|
readonly cardinality: "many";
|
|
869
876
|
}, {
|
|
870
877
|
readonly sourceField: string[];
|
|
871
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
878
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
872
879
|
readonly destSchema: "accountLabel";
|
|
873
880
|
readonly cardinality: "many";
|
|
874
881
|
}];
|
|
@@ -888,7 +895,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
888
895
|
readonly threadLabel: {
|
|
889
896
|
label: [{
|
|
890
897
|
readonly sourceField: string[];
|
|
891
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
898
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
892
899
|
readonly destSchema: "accountLabel";
|
|
893
900
|
readonly cardinality: "one";
|
|
894
901
|
}];
|
|
@@ -919,7 +926,7 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
919
926
|
readonly cardinality: "many";
|
|
920
927
|
}, {
|
|
921
928
|
readonly sourceField: string[];
|
|
922
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
929
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
923
930
|
readonly destSchema: "accountLabel";
|
|
924
931
|
readonly cardinality: "many";
|
|
925
932
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getContacts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getContacts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,eAAe,GAAG;IACrB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,YAAY,CAAC,EAAE,MAAM,CAAA;QACrB,GAAG,CAAC,EAAE,MAAM,EAAE,CAAA;QACd,IAAI,CAAC,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BvB,CAAA"}
|
|
@@ -250,6 +250,13 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
250
250
|
} & {
|
|
251
251
|
serverName: string;
|
|
252
252
|
};
|
|
253
|
+
readonly unreadCount: {
|
|
254
|
+
type: "number";
|
|
255
|
+
optional: false;
|
|
256
|
+
customType: number;
|
|
257
|
+
} & {
|
|
258
|
+
serverName: string;
|
|
259
|
+
};
|
|
253
260
|
};
|
|
254
261
|
primaryKey: readonly [string, ...string[]];
|
|
255
262
|
} & {
|
|
@@ -759,7 +766,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
759
766
|
}];
|
|
760
767
|
labels: [{
|
|
761
768
|
readonly sourceField: string[];
|
|
762
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
769
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
763
770
|
readonly destSchema: "accountLabel";
|
|
764
771
|
readonly cardinality: "many";
|
|
765
772
|
}];
|
|
@@ -865,7 +872,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
865
872
|
readonly cardinality: "many";
|
|
866
873
|
}, {
|
|
867
874
|
readonly sourceField: string[];
|
|
868
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
875
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
869
876
|
readonly destSchema: "accountLabel";
|
|
870
877
|
readonly cardinality: "many";
|
|
871
878
|
}];
|
|
@@ -885,7 +892,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
885
892
|
readonly threadLabel: {
|
|
886
893
|
label: [{
|
|
887
894
|
readonly sourceField: string[];
|
|
888
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
895
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
889
896
|
readonly destSchema: "accountLabel";
|
|
890
897
|
readonly cardinality: "one";
|
|
891
898
|
}];
|
|
@@ -916,7 +923,7 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
916
923
|
readonly cardinality: "many";
|
|
917
924
|
}, {
|
|
918
925
|
readonly sourceField: string[];
|
|
919
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
926
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
920
927
|
readonly destSchema: "accountLabel";
|
|
921
928
|
readonly cardinality: "many";
|
|
922
929
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getDrafts.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAMpD,KAAK,aAAa,GAAG;IACnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,CAAC,OAAO,cAAc,CAAC,CAAC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrB,CAAA"}
|
|
@@ -256,6 +256,13 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
256
256
|
} & {
|
|
257
257
|
serverName: string;
|
|
258
258
|
};
|
|
259
|
+
readonly unreadCount: {
|
|
260
|
+
type: "number";
|
|
261
|
+
optional: false;
|
|
262
|
+
customType: number;
|
|
263
|
+
} & {
|
|
264
|
+
serverName: string;
|
|
265
|
+
};
|
|
259
266
|
};
|
|
260
267
|
primaryKey: readonly [string, ...string[]];
|
|
261
268
|
} & {
|
|
@@ -765,7 +772,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
765
772
|
}];
|
|
766
773
|
labels: [{
|
|
767
774
|
readonly sourceField: string[];
|
|
768
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
775
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
769
776
|
readonly destSchema: "accountLabel";
|
|
770
777
|
readonly cardinality: "many";
|
|
771
778
|
}];
|
|
@@ -871,7 +878,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
871
878
|
readonly cardinality: "many";
|
|
872
879
|
}, {
|
|
873
880
|
readonly sourceField: string[];
|
|
874
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
881
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
875
882
|
readonly destSchema: "accountLabel";
|
|
876
883
|
readonly cardinality: "many";
|
|
877
884
|
}];
|
|
@@ -891,7 +898,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
891
898
|
readonly threadLabel: {
|
|
892
899
|
label: [{
|
|
893
900
|
readonly sourceField: string[];
|
|
894
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
901
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
895
902
|
readonly destSchema: "accountLabel";
|
|
896
903
|
readonly cardinality: "one";
|
|
897
904
|
}];
|
|
@@ -922,7 +929,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
922
929
|
readonly cardinality: "many";
|
|
923
930
|
}, {
|
|
924
931
|
readonly sourceField: string[];
|
|
925
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
932
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
926
933
|
readonly destSchema: "accountLabel";
|
|
927
934
|
readonly cardinality: "many";
|
|
928
935
|
}];
|
|
@@ -1000,6 +1007,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
1000
1007
|
readonly path: string;
|
|
1001
1008
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1002
1009
|
readonly uidValidity: number;
|
|
1010
|
+
readonly unreadCount: number;
|
|
1003
1011
|
}[];
|
|
1004
1012
|
}>>;
|
|
1005
1013
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
|
|
@@ -244,6 +244,13 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
244
244
|
} & {
|
|
245
245
|
serverName: string;
|
|
246
246
|
};
|
|
247
|
+
readonly unreadCount: {
|
|
248
|
+
type: "number";
|
|
249
|
+
optional: false;
|
|
250
|
+
customType: number;
|
|
251
|
+
} & {
|
|
252
|
+
serverName: string;
|
|
253
|
+
};
|
|
247
254
|
};
|
|
248
255
|
primaryKey: readonly [string, ...string[]];
|
|
249
256
|
} & {
|
|
@@ -753,7 +760,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
753
760
|
}];
|
|
754
761
|
labels: [{
|
|
755
762
|
readonly sourceField: string[];
|
|
756
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
763
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
757
764
|
readonly destSchema: "accountLabel";
|
|
758
765
|
readonly cardinality: "many";
|
|
759
766
|
}];
|
|
@@ -859,7 +866,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
859
866
|
readonly cardinality: "many";
|
|
860
867
|
}, {
|
|
861
868
|
readonly sourceField: string[];
|
|
862
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
869
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
863
870
|
readonly destSchema: "accountLabel";
|
|
864
871
|
readonly cardinality: "many";
|
|
865
872
|
}];
|
|
@@ -879,7 +886,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
879
886
|
readonly threadLabel: {
|
|
880
887
|
label: [{
|
|
881
888
|
readonly sourceField: string[];
|
|
882
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
889
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
883
890
|
readonly destSchema: "accountLabel";
|
|
884
891
|
readonly cardinality: "one";
|
|
885
892
|
}];
|
|
@@ -910,7 +917,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
910
917
|
readonly cardinality: "many";
|
|
911
918
|
}, {
|
|
912
919
|
readonly sourceField: string[];
|
|
913
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
920
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
914
921
|
readonly destSchema: "accountLabel";
|
|
915
922
|
readonly cardinality: "many";
|
|
916
923
|
}];
|
|
@@ -984,6 +991,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
984
991
|
readonly path: string;
|
|
985
992
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
986
993
|
readonly uidValidity: number;
|
|
994
|
+
readonly unreadCount: number;
|
|
987
995
|
}[];
|
|
988
996
|
})[];
|
|
989
997
|
} & {
|
|
@@ -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
|
|
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"}
|
|
@@ -243,6 +243,13 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
243
243
|
} & {
|
|
244
244
|
serverName: string;
|
|
245
245
|
};
|
|
246
|
+
readonly unreadCount: {
|
|
247
|
+
type: "number";
|
|
248
|
+
optional: false;
|
|
249
|
+
customType: number;
|
|
250
|
+
} & {
|
|
251
|
+
serverName: string;
|
|
252
|
+
};
|
|
246
253
|
};
|
|
247
254
|
primaryKey: readonly [string, ...string[]];
|
|
248
255
|
} & {
|
|
@@ -752,7 +759,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
752
759
|
}];
|
|
753
760
|
labels: [{
|
|
754
761
|
readonly sourceField: string[];
|
|
755
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
762
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
756
763
|
readonly destSchema: "accountLabel";
|
|
757
764
|
readonly cardinality: "many";
|
|
758
765
|
}];
|
|
@@ -858,7 +865,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
858
865
|
readonly cardinality: "many";
|
|
859
866
|
}, {
|
|
860
867
|
readonly sourceField: string[];
|
|
861
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
868
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
862
869
|
readonly destSchema: "accountLabel";
|
|
863
870
|
readonly cardinality: "many";
|
|
864
871
|
}];
|
|
@@ -878,7 +885,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
878
885
|
readonly threadLabel: {
|
|
879
886
|
label: [{
|
|
880
887
|
readonly sourceField: string[];
|
|
881
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
888
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
882
889
|
readonly destSchema: "accountLabel";
|
|
883
890
|
readonly cardinality: "one";
|
|
884
891
|
}];
|
|
@@ -909,7 +916,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
909
916
|
readonly cardinality: "many";
|
|
910
917
|
}, {
|
|
911
918
|
readonly sourceField: string[];
|
|
912
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
919
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
913
920
|
readonly destSchema: "accountLabel";
|
|
914
921
|
readonly cardinality: "many";
|
|
915
922
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAwB,CAAA;AAEtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AACvC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -243,6 +243,13 @@ export declare const schema: {
|
|
|
243
243
|
} & {
|
|
244
244
|
serverName: string;
|
|
245
245
|
};
|
|
246
|
+
readonly unreadCount: {
|
|
247
|
+
type: "number";
|
|
248
|
+
optional: false;
|
|
249
|
+
customType: number;
|
|
250
|
+
} & {
|
|
251
|
+
serverName: string;
|
|
252
|
+
};
|
|
246
253
|
};
|
|
247
254
|
primaryKey: readonly [string, ...string[]];
|
|
248
255
|
} & {
|
|
@@ -752,7 +759,7 @@ export declare const schema: {
|
|
|
752
759
|
}];
|
|
753
760
|
labels: [{
|
|
754
761
|
readonly sourceField: string[];
|
|
755
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
762
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
756
763
|
readonly destSchema: "accountLabel";
|
|
757
764
|
readonly cardinality: "many";
|
|
758
765
|
}];
|
|
@@ -858,7 +865,7 @@ export declare const schema: {
|
|
|
858
865
|
readonly cardinality: "many";
|
|
859
866
|
}, {
|
|
860
867
|
readonly sourceField: string[];
|
|
861
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
868
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
862
869
|
readonly destSchema: "accountLabel";
|
|
863
870
|
readonly cardinality: "many";
|
|
864
871
|
}];
|
|
@@ -878,7 +885,7 @@ export declare const schema: {
|
|
|
878
885
|
readonly threadLabel: {
|
|
879
886
|
label: [{
|
|
880
887
|
readonly sourceField: string[];
|
|
881
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
888
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
882
889
|
readonly destSchema: "accountLabel";
|
|
883
890
|
readonly cardinality: "one";
|
|
884
891
|
}];
|
|
@@ -909,7 +916,7 @@ export declare const schema: {
|
|
|
909
916
|
readonly cardinality: "many";
|
|
910
917
|
}, {
|
|
911
918
|
readonly sourceField: string[];
|
|
912
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
919
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
913
920
|
readonly destSchema: "accountLabel";
|
|
914
921
|
readonly cardinality: "many";
|
|
915
922
|
}];
|
|
@@ -1089,6 +1096,13 @@ export declare const zeroTables: {
|
|
|
1089
1096
|
} & {
|
|
1090
1097
|
serverName: string;
|
|
1091
1098
|
};
|
|
1099
|
+
readonly unreadCount: {
|
|
1100
|
+
type: "number";
|
|
1101
|
+
optional: false;
|
|
1102
|
+
customType: number;
|
|
1103
|
+
} & {
|
|
1104
|
+
serverName: string;
|
|
1105
|
+
};
|
|
1092
1106
|
};
|
|
1093
1107
|
primaryKey: readonly [string, ...string[]];
|
|
1094
1108
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/zero/schema.ts"],"names":[],"mappings":"AA8aA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;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AM,CAAA;AAE3C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BA3XR,MAAM;wBACX,MAAM,EAAE;wBACR,MAAM,EAAE;yBACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuYT,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -54,6 +54,7 @@ const accountLabel = table('accountLabel')
|
|
|
54
54
|
path: string(),
|
|
55
55
|
specialUse: enumeration().optional().from('special_use'),
|
|
56
56
|
uidValidity: numeric().from('uid_validity'),
|
|
57
|
+
unreadCount: numeric().from('unread_count'),
|
|
57
58
|
})
|
|
58
59
|
.primaryKey('id');
|
|
59
60
|
const draft = table('draft')
|