@marcoappio/marco-config 2.0.487 → 2.0.489
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 +103 -103
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +20 -24
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +63 -63
- package/dist/zero/queries/getAccounts.d.ts +6 -6
- package/dist/zero/queries/getContacts.d.ts +6 -6
- package/dist/zero/queries/getDrafts.d.ts +6 -6
- package/dist/zero/queries/getThread.d.ts +6 -6
- package/dist/zero/queries/getThreadList.d.ts +6 -6
- package/dist/zero/queries/getThreads.d.ts +6 -6
- package/dist/zero/queries/getUser.d.ts +6 -6
- package/dist/zero/queries/index.d.ts +6 -6
- package/dist/zero/schema.d.ts +61 -61
- package/dist/zero/schema.js +8 -8
- package/package.json +1 -1
|
@@ -529,8 +529,8 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
529
529
|
} & {
|
|
530
530
|
primaryKey: ["id"];
|
|
531
531
|
};
|
|
532
|
-
readonly
|
|
533
|
-
name: "
|
|
532
|
+
readonly threadLabel: {
|
|
533
|
+
name: "threadLabel";
|
|
534
534
|
columns: {
|
|
535
535
|
readonly accountId: {
|
|
536
536
|
type: "string";
|
|
@@ -863,7 +863,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
863
863
|
threads: [{
|
|
864
864
|
readonly sourceField: string[];
|
|
865
865
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
866
|
-
readonly destSchema: "
|
|
866
|
+
readonly destSchema: "threadLabel";
|
|
867
867
|
readonly cardinality: "many";
|
|
868
868
|
}, {
|
|
869
869
|
readonly sourceField: string[];
|
|
@@ -910,7 +910,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
910
910
|
labels: [{
|
|
911
911
|
readonly sourceField: string[];
|
|
912
912
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
913
|
-
readonly destSchema: "
|
|
913
|
+
readonly destSchema: "threadLabel";
|
|
914
914
|
readonly cardinality: "many";
|
|
915
915
|
}, {
|
|
916
916
|
readonly sourceField: string[];
|
|
@@ -937,7 +937,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
937
937
|
readonly cardinality: "one";
|
|
938
938
|
}];
|
|
939
939
|
};
|
|
940
|
-
readonly
|
|
940
|
+
readonly threadLabel: {
|
|
941
941
|
label: [{
|
|
942
942
|
readonly sourceField: string[];
|
|
943
943
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -981,7 +981,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
981
981
|
labels: [{
|
|
982
982
|
readonly sourceField: string[];
|
|
983
983
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
984
|
-
readonly destSchema: "
|
|
984
|
+
readonly destSchema: "threadLabel";
|
|
985
985
|
readonly cardinality: "many";
|
|
986
986
|
}, {
|
|
987
987
|
readonly sourceField: string[];
|
|
@@ -528,8 +528,8 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
528
528
|
} & {
|
|
529
529
|
primaryKey: ["id"];
|
|
530
530
|
};
|
|
531
|
-
readonly
|
|
532
|
-
name: "
|
|
531
|
+
readonly threadLabel: {
|
|
532
|
+
name: "threadLabel";
|
|
533
533
|
columns: {
|
|
534
534
|
readonly accountId: {
|
|
535
535
|
type: "string";
|
|
@@ -862,7 +862,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
862
862
|
threads: [{
|
|
863
863
|
readonly sourceField: string[];
|
|
864
864
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
865
|
-
readonly destSchema: "
|
|
865
|
+
readonly destSchema: "threadLabel";
|
|
866
866
|
readonly cardinality: "many";
|
|
867
867
|
}, {
|
|
868
868
|
readonly sourceField: string[];
|
|
@@ -909,7 +909,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
909
909
|
labels: [{
|
|
910
910
|
readonly sourceField: string[];
|
|
911
911
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
912
|
-
readonly destSchema: "
|
|
912
|
+
readonly destSchema: "threadLabel";
|
|
913
913
|
readonly cardinality: "many";
|
|
914
914
|
}, {
|
|
915
915
|
readonly sourceField: string[];
|
|
@@ -936,7 +936,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
936
936
|
readonly cardinality: "one";
|
|
937
937
|
}];
|
|
938
938
|
};
|
|
939
|
-
readonly
|
|
939
|
+
readonly threadLabel: {
|
|
940
940
|
label: [{
|
|
941
941
|
readonly sourceField: string[];
|
|
942
942
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -980,7 +980,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
980
980
|
labels: [{
|
|
981
981
|
readonly sourceField: string[];
|
|
982
982
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
983
|
-
readonly destSchema: "
|
|
983
|
+
readonly destSchema: "threadLabel";
|
|
984
984
|
readonly cardinality: "many";
|
|
985
985
|
}, {
|
|
986
986
|
readonly sourceField: string[];
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -528,8 +528,8 @@ export declare const schema: {
|
|
|
528
528
|
} & {
|
|
529
529
|
primaryKey: ["id"];
|
|
530
530
|
};
|
|
531
|
-
readonly
|
|
532
|
-
name: "
|
|
531
|
+
readonly threadLabel: {
|
|
532
|
+
name: "threadLabel";
|
|
533
533
|
columns: {
|
|
534
534
|
readonly accountId: {
|
|
535
535
|
type: "string";
|
|
@@ -862,7 +862,7 @@ export declare const schema: {
|
|
|
862
862
|
threads: [{
|
|
863
863
|
readonly sourceField: string[];
|
|
864
864
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
865
|
-
readonly destSchema: "
|
|
865
|
+
readonly destSchema: "threadLabel";
|
|
866
866
|
readonly cardinality: "many";
|
|
867
867
|
}, {
|
|
868
868
|
readonly sourceField: string[];
|
|
@@ -909,7 +909,7 @@ export declare const schema: {
|
|
|
909
909
|
labels: [{
|
|
910
910
|
readonly sourceField: string[];
|
|
911
911
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
912
|
-
readonly destSchema: "
|
|
912
|
+
readonly destSchema: "threadLabel";
|
|
913
913
|
readonly cardinality: "many";
|
|
914
914
|
}, {
|
|
915
915
|
readonly sourceField: string[];
|
|
@@ -936,7 +936,7 @@ export declare const schema: {
|
|
|
936
936
|
readonly cardinality: "one";
|
|
937
937
|
}];
|
|
938
938
|
};
|
|
939
|
-
readonly
|
|
939
|
+
readonly threadLabel: {
|
|
940
940
|
label: [{
|
|
941
941
|
readonly sourceField: string[];
|
|
942
942
|
readonly destField: ("id" | "name" | "accountId" | "path" | "specialUse" | "uidValidity" | "unreadCount")[];
|
|
@@ -980,7 +980,7 @@ export declare const schema: {
|
|
|
980
980
|
labels: [{
|
|
981
981
|
readonly sourceField: string[];
|
|
982
982
|
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
983
|
-
readonly destSchema: "
|
|
983
|
+
readonly destSchema: "threadLabel";
|
|
984
984
|
readonly cardinality: "many";
|
|
985
985
|
}, {
|
|
986
986
|
readonly sourceField: string[];
|
|
@@ -1512,6 +1512,61 @@ export declare const zeroTables: {
|
|
|
1512
1512
|
} & {
|
|
1513
1513
|
primaryKey: ["labelId", "threadId"];
|
|
1514
1514
|
}>;
|
|
1515
|
+
readonly threadLabel: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
1516
|
+
name: "threadLabel";
|
|
1517
|
+
columns: {
|
|
1518
|
+
readonly accountId: {
|
|
1519
|
+
type: "string";
|
|
1520
|
+
optional: false;
|
|
1521
|
+
customType: string;
|
|
1522
|
+
} & {
|
|
1523
|
+
serverName: string;
|
|
1524
|
+
};
|
|
1525
|
+
readonly labelId: {
|
|
1526
|
+
type: "string";
|
|
1527
|
+
optional: false;
|
|
1528
|
+
customType: string;
|
|
1529
|
+
} & {
|
|
1530
|
+
serverName: string;
|
|
1531
|
+
};
|
|
1532
|
+
readonly lastSyncedAt: {
|
|
1533
|
+
type: "number";
|
|
1534
|
+
optional: false;
|
|
1535
|
+
customType: number;
|
|
1536
|
+
} & {
|
|
1537
|
+
serverName: string;
|
|
1538
|
+
};
|
|
1539
|
+
readonly threadId: {
|
|
1540
|
+
type: "string";
|
|
1541
|
+
optional: false;
|
|
1542
|
+
customType: string;
|
|
1543
|
+
} & {
|
|
1544
|
+
serverName: string;
|
|
1545
|
+
};
|
|
1546
|
+
readonly threadMessageId: {
|
|
1547
|
+
type: "string";
|
|
1548
|
+
optional: false;
|
|
1549
|
+
customType: string;
|
|
1550
|
+
} & {
|
|
1551
|
+
serverName: string;
|
|
1552
|
+
};
|
|
1553
|
+
readonly uid: {
|
|
1554
|
+
type: "number";
|
|
1555
|
+
optional: false;
|
|
1556
|
+
customType: number;
|
|
1557
|
+
};
|
|
1558
|
+
readonly uidValidity: {
|
|
1559
|
+
type: "number";
|
|
1560
|
+
optional: false;
|
|
1561
|
+
customType: number;
|
|
1562
|
+
} & {
|
|
1563
|
+
serverName: string;
|
|
1564
|
+
};
|
|
1565
|
+
};
|
|
1566
|
+
primaryKey: readonly [string, ...string[]];
|
|
1567
|
+
} & {
|
|
1568
|
+
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
1569
|
+
}>;
|
|
1515
1570
|
readonly threadMessage: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
1516
1571
|
name: "threadMessage";
|
|
1517
1572
|
columns: {
|
|
@@ -1617,61 +1672,6 @@ export declare const zeroTables: {
|
|
|
1617
1672
|
} & {
|
|
1618
1673
|
primaryKey: ["id"];
|
|
1619
1674
|
}>;
|
|
1620
|
-
readonly threadMessageLabelUid: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
1621
|
-
name: "threadMessageLabelUid";
|
|
1622
|
-
columns: {
|
|
1623
|
-
readonly accountId: {
|
|
1624
|
-
type: "string";
|
|
1625
|
-
optional: false;
|
|
1626
|
-
customType: string;
|
|
1627
|
-
} & {
|
|
1628
|
-
serverName: string;
|
|
1629
|
-
};
|
|
1630
|
-
readonly labelId: {
|
|
1631
|
-
type: "string";
|
|
1632
|
-
optional: false;
|
|
1633
|
-
customType: string;
|
|
1634
|
-
} & {
|
|
1635
|
-
serverName: string;
|
|
1636
|
-
};
|
|
1637
|
-
readonly lastSyncedAt: {
|
|
1638
|
-
type: "number";
|
|
1639
|
-
optional: false;
|
|
1640
|
-
customType: number;
|
|
1641
|
-
} & {
|
|
1642
|
-
serverName: string;
|
|
1643
|
-
};
|
|
1644
|
-
readonly threadId: {
|
|
1645
|
-
type: "string";
|
|
1646
|
-
optional: false;
|
|
1647
|
-
customType: string;
|
|
1648
|
-
} & {
|
|
1649
|
-
serverName: string;
|
|
1650
|
-
};
|
|
1651
|
-
readonly threadMessageId: {
|
|
1652
|
-
type: "string";
|
|
1653
|
-
optional: false;
|
|
1654
|
-
customType: string;
|
|
1655
|
-
} & {
|
|
1656
|
-
serverName: string;
|
|
1657
|
-
};
|
|
1658
|
-
readonly uid: {
|
|
1659
|
-
type: "number";
|
|
1660
|
-
optional: false;
|
|
1661
|
-
customType: number;
|
|
1662
|
-
};
|
|
1663
|
-
readonly uidValidity: {
|
|
1664
|
-
type: "number";
|
|
1665
|
-
optional: false;
|
|
1666
|
-
customType: number;
|
|
1667
|
-
} & {
|
|
1668
|
-
serverName: string;
|
|
1669
|
-
};
|
|
1670
|
-
};
|
|
1671
|
-
primaryKey: readonly [string, ...string[]];
|
|
1672
|
-
} & {
|
|
1673
|
-
primaryKey: ["accountId", "labelId", "threadMessageId"];
|
|
1674
|
-
}>;
|
|
1675
1675
|
readonly threadMessageRecipient: import("@rocicorp/zero").TableBuilderWithColumns<{
|
|
1676
1676
|
name: "threadMessageRecipient";
|
|
1677
1677
|
columns: {
|
package/dist/zero/schema.js
CHANGED
|
@@ -106,8 +106,8 @@ const thread = table('thread')
|
|
|
106
106
|
words: string(),
|
|
107
107
|
})
|
|
108
108
|
.primaryKey('id');
|
|
109
|
-
const
|
|
110
|
-
.from('
|
|
109
|
+
const threadLabel = table('threadLabel')
|
|
110
|
+
.from('thread_label')
|
|
111
111
|
.columns({
|
|
112
112
|
accountId: string().from('account_id'),
|
|
113
113
|
labelId: string().from('label_id'),
|
|
@@ -247,7 +247,7 @@ const accountLabelRelationships = relationships(accountLabel, ({ one, many }) =>
|
|
|
247
247
|
}),
|
|
248
248
|
threads: many({
|
|
249
249
|
destField: ['labelId'],
|
|
250
|
-
destSchema:
|
|
250
|
+
destSchema: threadLabel,
|
|
251
251
|
sourceField: ['id'],
|
|
252
252
|
}, {
|
|
253
253
|
destField: ['id'],
|
|
@@ -287,7 +287,7 @@ const threadRelationships = relationships(thread, ({ one, many }) => ({
|
|
|
287
287
|
}),
|
|
288
288
|
labels: many({
|
|
289
289
|
destField: ['threadId'],
|
|
290
|
-
destSchema:
|
|
290
|
+
destSchema: threadLabel,
|
|
291
291
|
sourceField: ['id'],
|
|
292
292
|
}, {
|
|
293
293
|
destField: ['id'],
|
|
@@ -310,7 +310,7 @@ const threadRelationships = relationships(thread, ({ one, many }) => ({
|
|
|
310
310
|
sourceField: ['userId'],
|
|
311
311
|
}),
|
|
312
312
|
}));
|
|
313
|
-
const threadLabelRelationships = relationships(
|
|
313
|
+
const threadLabelRelationships = relationships(threadLabel, ({ one }) => ({
|
|
314
314
|
label: one({
|
|
315
315
|
destField: ['id'],
|
|
316
316
|
destSchema: accountLabel,
|
|
@@ -347,7 +347,7 @@ const threadMessageRelationships = relationships(threadMessage, ({ one, many })
|
|
|
347
347
|
}),
|
|
348
348
|
labels: many({
|
|
349
349
|
destField: ['threadMessageId'],
|
|
350
|
-
destSchema:
|
|
350
|
+
destSchema: threadLabel,
|
|
351
351
|
sourceField: ['id'],
|
|
352
352
|
}, {
|
|
353
353
|
destField: ['id'],
|
|
@@ -407,7 +407,7 @@ export const schema = createSchema({
|
|
|
407
407
|
draft,
|
|
408
408
|
draftAttachment,
|
|
409
409
|
thread,
|
|
410
|
-
|
|
410
|
+
threadLabel,
|
|
411
411
|
threadByLabel,
|
|
412
412
|
threadMessage,
|
|
413
413
|
threadMessageRecipient,
|
|
@@ -423,9 +423,9 @@ export const zeroTables = {
|
|
|
423
423
|
draftAttachment,
|
|
424
424
|
thread,
|
|
425
425
|
threadByLabel,
|
|
426
|
+
threadLabel,
|
|
426
427
|
threadMessage,
|
|
427
428
|
threadMessageAttachment,
|
|
428
|
-
threadMessageLabelUid,
|
|
429
429
|
threadMessageRecipient,
|
|
430
430
|
user,
|
|
431
431
|
userPushNotificationToken,
|