@marcoappio/marco-config 2.0.471 → 2.0.472
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 +316 -0
- 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 +58 -2
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +72 -2
- package/dist/zero/queries/getAccounts.d.ts +42 -0
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +42 -0
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +42 -0
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.d.ts +42 -0
- package/dist/zero/queries/getThreadList.d.ts.map +1 -1
- package/dist/zero/queries/getThreadList.js +1 -1
- package/dist/zero/queries/getThreads.d.ts +42 -0
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.js +1 -1
- package/dist/zero/queries/getUser.d.ts +42 -0
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +42 -0
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +64 -0
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +27 -0
- package/package.json +1 -1
|
@@ -532,6 +532,28 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
532
532
|
} & {
|
|
533
533
|
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
534
534
|
};
|
|
535
|
+
readonly threadByLabel: {
|
|
536
|
+
name: "threadByLabel";
|
|
537
|
+
columns: {
|
|
538
|
+
readonly labelId: {
|
|
539
|
+
type: "string";
|
|
540
|
+
optional: false;
|
|
541
|
+
customType: string;
|
|
542
|
+
} & {
|
|
543
|
+
serverName: string;
|
|
544
|
+
};
|
|
545
|
+
readonly threadId: {
|
|
546
|
+
type: "string";
|
|
547
|
+
optional: false;
|
|
548
|
+
customType: string;
|
|
549
|
+
} & {
|
|
550
|
+
serverName: string;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
primaryKey: readonly [string, ...string[]];
|
|
554
|
+
} & {
|
|
555
|
+
primaryKey: ["labelId", "threadId"];
|
|
556
|
+
};
|
|
535
557
|
readonly threadMessage: {
|
|
536
558
|
name: "threadMessage";
|
|
537
559
|
columns: {
|
|
@@ -843,6 +865,12 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
843
865
|
readonly destSchema: "threadMessage";
|
|
844
866
|
readonly cardinality: "many";
|
|
845
867
|
}];
|
|
868
|
+
threadByLabel: [{
|
|
869
|
+
readonly sourceField: string[];
|
|
870
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
871
|
+
readonly destSchema: "threadByLabel";
|
|
872
|
+
readonly cardinality: "many";
|
|
873
|
+
}];
|
|
846
874
|
user: [{
|
|
847
875
|
readonly sourceField: string[];
|
|
848
876
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -870,6 +898,20 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
870
898
|
readonly cardinality: "one";
|
|
871
899
|
}];
|
|
872
900
|
};
|
|
901
|
+
readonly threadByLabel: {
|
|
902
|
+
label: [{
|
|
903
|
+
readonly sourceField: string[];
|
|
904
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
905
|
+
readonly destSchema: "accountLabel";
|
|
906
|
+
readonly cardinality: "one";
|
|
907
|
+
}];
|
|
908
|
+
thread: [{
|
|
909
|
+
readonly sourceField: string[];
|
|
910
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
911
|
+
readonly destSchema: "thread";
|
|
912
|
+
readonly cardinality: "one";
|
|
913
|
+
}];
|
|
914
|
+
};
|
|
873
915
|
readonly threadMessage: {
|
|
874
916
|
attachments: [{
|
|
875
917
|
readonly sourceField: string[];
|
|
@@ -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,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -532,6 +532,28 @@ export declare const schema: {
|
|
|
532
532
|
} & {
|
|
533
533
|
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
534
534
|
};
|
|
535
|
+
readonly threadByLabel: {
|
|
536
|
+
name: "threadByLabel";
|
|
537
|
+
columns: {
|
|
538
|
+
readonly labelId: {
|
|
539
|
+
type: "string";
|
|
540
|
+
optional: false;
|
|
541
|
+
customType: string;
|
|
542
|
+
} & {
|
|
543
|
+
serverName: string;
|
|
544
|
+
};
|
|
545
|
+
readonly threadId: {
|
|
546
|
+
type: "string";
|
|
547
|
+
optional: false;
|
|
548
|
+
customType: string;
|
|
549
|
+
} & {
|
|
550
|
+
serverName: string;
|
|
551
|
+
};
|
|
552
|
+
};
|
|
553
|
+
primaryKey: readonly [string, ...string[]];
|
|
554
|
+
} & {
|
|
555
|
+
primaryKey: ["labelId", "threadId"];
|
|
556
|
+
};
|
|
535
557
|
readonly threadMessage: {
|
|
536
558
|
name: "threadMessage";
|
|
537
559
|
columns: {
|
|
@@ -843,6 +865,12 @@ export declare const schema: {
|
|
|
843
865
|
readonly destSchema: "threadMessage";
|
|
844
866
|
readonly cardinality: "many";
|
|
845
867
|
}];
|
|
868
|
+
threadByLabel: [{
|
|
869
|
+
readonly sourceField: string[];
|
|
870
|
+
readonly destField: ("labelId" | "threadId")[];
|
|
871
|
+
readonly destSchema: "threadByLabel";
|
|
872
|
+
readonly cardinality: "many";
|
|
873
|
+
}];
|
|
846
874
|
user: [{
|
|
847
875
|
readonly sourceField: string[];
|
|
848
876
|
readonly destField: ("id" | "profilePicture" | "undoSendEnabled" | "name")[];
|
|
@@ -870,6 +898,20 @@ export declare const schema: {
|
|
|
870
898
|
readonly cardinality: "one";
|
|
871
899
|
}];
|
|
872
900
|
};
|
|
901
|
+
readonly threadByLabel: {
|
|
902
|
+
label: [{
|
|
903
|
+
readonly sourceField: string[];
|
|
904
|
+
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
905
|
+
readonly destSchema: "accountLabel";
|
|
906
|
+
readonly cardinality: "one";
|
|
907
|
+
}];
|
|
908
|
+
thread: [{
|
|
909
|
+
readonly sourceField: string[];
|
|
910
|
+
readonly destField: ("id" | "userId" | "accountId" | "flagged" | "labelIdList" | "latestMessageDate" | "seen" | "words")[];
|
|
911
|
+
readonly destSchema: "thread";
|
|
912
|
+
readonly cardinality: "one";
|
|
913
|
+
}];
|
|
914
|
+
};
|
|
873
915
|
readonly threadMessage: {
|
|
874
916
|
attachments: [{
|
|
875
917
|
readonly sourceField: string[];
|
|
@@ -1332,6 +1374,28 @@ export declare const zeroTables: {
|
|
|
1332
1374
|
} & {
|
|
1333
1375
|
primaryKey: ["id"];
|
|
1334
1376
|
}>;
|
|
1377
|
+
readonly threadByLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
1378
|
+
name: "threadByLabel";
|
|
1379
|
+
columns: {
|
|
1380
|
+
readonly labelId: {
|
|
1381
|
+
type: "string";
|
|
1382
|
+
optional: false;
|
|
1383
|
+
customType: string;
|
|
1384
|
+
} & {
|
|
1385
|
+
serverName: string;
|
|
1386
|
+
};
|
|
1387
|
+
readonly threadId: {
|
|
1388
|
+
type: "string";
|
|
1389
|
+
optional: false;
|
|
1390
|
+
customType: string;
|
|
1391
|
+
} & {
|
|
1392
|
+
serverName: string;
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1395
|
+
primaryKey: readonly [string, ...string[]];
|
|
1396
|
+
} & {
|
|
1397
|
+
primaryKey: ["labelId", "threadId"];
|
|
1398
|
+
}>;
|
|
1335
1399
|
readonly threadLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
1336
1400
|
name: "threadLabel";
|
|
1337
1401
|
columns: {
|
|
@@ -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":"AAkbA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAzVJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2YT,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -111,6 +111,13 @@ const threadLabel = table('threadLabel')
|
|
|
111
111
|
uidValidity: numeric().from('uid_validity'),
|
|
112
112
|
})
|
|
113
113
|
.primaryKey('accountId', 'labelId', 'threadMessageId');
|
|
114
|
+
const threadByLabel = table('threadByLabel')
|
|
115
|
+
.from('thread_by_label')
|
|
116
|
+
.columns({
|
|
117
|
+
labelId: string().from('label_id'),
|
|
118
|
+
threadId: string().from('thread_id'),
|
|
119
|
+
})
|
|
120
|
+
.primaryKey('labelId', 'threadId');
|
|
114
121
|
const threadMessage = table('threadMessage')
|
|
115
122
|
.from('thread_message')
|
|
116
123
|
.columns({
|
|
@@ -284,6 +291,11 @@ const threadRelationships = relationships(thread, ({ one, many }) => ({
|
|
|
284
291
|
destSchema: threadMessage,
|
|
285
292
|
sourceField: ['id'],
|
|
286
293
|
}),
|
|
294
|
+
threadByLabel: many({
|
|
295
|
+
destField: ['threadId'],
|
|
296
|
+
destSchema: threadByLabel,
|
|
297
|
+
sourceField: ['id'],
|
|
298
|
+
}),
|
|
287
299
|
user: one({
|
|
288
300
|
destField: ['id'],
|
|
289
301
|
destSchema: user,
|
|
@@ -307,6 +319,18 @@ const threadLabelRelationships = relationships(threadLabel, ({ one }) => ({
|
|
|
307
319
|
sourceField: ['threadId'],
|
|
308
320
|
}),
|
|
309
321
|
}));
|
|
322
|
+
const threadByLabelRelationships = relationships(threadByLabel, ({ one }) => ({
|
|
323
|
+
label: one({
|
|
324
|
+
destField: ['id'],
|
|
325
|
+
destSchema: accountLabel,
|
|
326
|
+
sourceField: ['labelId'],
|
|
327
|
+
}),
|
|
328
|
+
thread: one({
|
|
329
|
+
destField: ['id'],
|
|
330
|
+
destSchema: thread,
|
|
331
|
+
sourceField: ['threadId'],
|
|
332
|
+
}),
|
|
333
|
+
}));
|
|
310
334
|
const threadMessageRelationships = relationships(threadMessage, ({ one, many }) => ({
|
|
311
335
|
attachments: many({
|
|
312
336
|
destField: ['threadMessageId'],
|
|
@@ -360,6 +384,7 @@ export const schema = createSchema({
|
|
|
360
384
|
draftAttachmentRelationships,
|
|
361
385
|
threadRelationships,
|
|
362
386
|
threadLabelRelationships,
|
|
387
|
+
threadByLabelRelationships,
|
|
363
388
|
threadMessageRelationships,
|
|
364
389
|
threadMessageAttachmentRelationships,
|
|
365
390
|
threadMessageRecipientRelationships,
|
|
@@ -375,6 +400,7 @@ export const schema = createSchema({
|
|
|
375
400
|
draftAttachment,
|
|
376
401
|
thread,
|
|
377
402
|
threadLabel,
|
|
403
|
+
threadByLabel,
|
|
378
404
|
threadMessage,
|
|
379
405
|
threadMessageRecipient,
|
|
380
406
|
threadMessageAttachment,
|
|
@@ -388,6 +414,7 @@ export const zeroTables = {
|
|
|
388
414
|
draft,
|
|
389
415
|
draftAttachment,
|
|
390
416
|
thread,
|
|
417
|
+
threadByLabel,
|
|
391
418
|
threadLabel,
|
|
392
419
|
threadMessage,
|
|
393
420
|
threadMessageAttachment,
|