@marcoappio/marco-config 2.0.451 → 2.0.452
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 +157 -84
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts +3 -1
- package/dist/zero/mutators/threadMutators/threadMutators.d.ts.map +1 -1
- package/dist/zero/mutators/threadMutators/threadMutators.js +31 -24
- package/dist/zero/mutators/threadMutators/threadMutators.test.js +12 -12
- package/dist/zero/queries/getAccounts.d.ts +24 -13
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +23 -13
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +23 -13
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getThreads.d.ts +24 -13
- package/dist/zero/queries/getThreads.d.ts.map +1 -1
- package/dist/zero/queries/getUser.d.ts +24 -13
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +23 -13
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +39 -19
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +4 -2
- package/package.json +1 -1
|
@@ -249,6 +249,13 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
249
249
|
} & {
|
|
250
250
|
serverName: string;
|
|
251
251
|
};
|
|
252
|
+
readonly uidValidity: {
|
|
253
|
+
type: "number";
|
|
254
|
+
optional: false;
|
|
255
|
+
customType: number;
|
|
256
|
+
} & {
|
|
257
|
+
serverName: string;
|
|
258
|
+
};
|
|
252
259
|
};
|
|
253
260
|
primaryKey: readonly [string, ...string[]];
|
|
254
261
|
} & {
|
|
@@ -523,6 +530,13 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
523
530
|
} & {
|
|
524
531
|
serverName: string;
|
|
525
532
|
};
|
|
533
|
+
readonly lastSyncedAt: {
|
|
534
|
+
type: "number";
|
|
535
|
+
optional: false;
|
|
536
|
+
customType: number;
|
|
537
|
+
} & {
|
|
538
|
+
serverName: string;
|
|
539
|
+
};
|
|
526
540
|
readonly threadId: {
|
|
527
541
|
type: "string";
|
|
528
542
|
optional: false;
|
|
@@ -537,19 +551,15 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
537
551
|
} & {
|
|
538
552
|
serverName: string;
|
|
539
553
|
};
|
|
540
|
-
readonly uid:
|
|
554
|
+
readonly uid: {
|
|
541
555
|
type: "number";
|
|
542
556
|
optional: false;
|
|
543
557
|
customType: number;
|
|
544
|
-
}, "optional"> & {
|
|
545
|
-
optional: true;
|
|
546
558
|
};
|
|
547
|
-
readonly uidValidity:
|
|
559
|
+
readonly uidValidity: {
|
|
548
560
|
type: "number";
|
|
549
561
|
optional: false;
|
|
550
562
|
customType: number;
|
|
551
|
-
}, "optional"> & {
|
|
552
|
-
optional: true;
|
|
553
563
|
} & {
|
|
554
564
|
serverName: string;
|
|
555
565
|
};
|
|
@@ -772,7 +782,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
772
782
|
}];
|
|
773
783
|
labels: [{
|
|
774
784
|
readonly sourceField: string[];
|
|
775
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
785
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
776
786
|
readonly destSchema: "accountLabel";
|
|
777
787
|
readonly cardinality: "many";
|
|
778
788
|
}];
|
|
@@ -812,7 +822,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
812
822
|
}];
|
|
813
823
|
threads: [{
|
|
814
824
|
readonly sourceField: string[];
|
|
815
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
825
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
816
826
|
readonly destSchema: "threadLabel";
|
|
817
827
|
readonly cardinality: "many";
|
|
818
828
|
}, {
|
|
@@ -873,12 +883,12 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
873
883
|
}];
|
|
874
884
|
labels: [{
|
|
875
885
|
readonly sourceField: string[];
|
|
876
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
886
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
877
887
|
readonly destSchema: "threadLabel";
|
|
878
888
|
readonly cardinality: "many";
|
|
879
889
|
}, {
|
|
880
890
|
readonly sourceField: string[];
|
|
881
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
891
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
882
892
|
readonly destSchema: "accountLabel";
|
|
883
893
|
readonly cardinality: "many";
|
|
884
894
|
}];
|
|
@@ -898,7 +908,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
898
908
|
readonly threadLabel: {
|
|
899
909
|
label: [{
|
|
900
910
|
readonly sourceField: string[];
|
|
901
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
911
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
902
912
|
readonly destSchema: "accountLabel";
|
|
903
913
|
readonly cardinality: "one";
|
|
904
914
|
}];
|
|
@@ -924,12 +934,12 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
924
934
|
}];
|
|
925
935
|
labels: [{
|
|
926
936
|
readonly sourceField: string[];
|
|
927
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
937
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
928
938
|
readonly destSchema: "threadLabel";
|
|
929
939
|
readonly cardinality: "many";
|
|
930
940
|
}, {
|
|
931
941
|
readonly sourceField: string[];
|
|
932
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
942
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
933
943
|
readonly destSchema: "accountLabel";
|
|
934
944
|
readonly cardinality: "many";
|
|
935
945
|
}];
|
|
@@ -1007,6 +1017,7 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
1007
1017
|
readonly id: string;
|
|
1008
1018
|
readonly path: string;
|
|
1009
1019
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1020
|
+
readonly uidValidity: number;
|
|
1010
1021
|
}[];
|
|
1011
1022
|
}>>;
|
|
1012
1023
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAA;AAMlE,KAAK,cAAc,GAAG;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE;QACN,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAA;QACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAA;QACrB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAA;QACvB,IAAI,CAAC,EAAE,OAAO,CAAA;KACf,CAAA;CACF,CAAA;AAoBD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,qBA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqDtB,CAAA"}
|
|
@@ -237,6 +237,13 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
237
237
|
} & {
|
|
238
238
|
serverName: string;
|
|
239
239
|
};
|
|
240
|
+
readonly uidValidity: {
|
|
241
|
+
type: "number";
|
|
242
|
+
optional: false;
|
|
243
|
+
customType: number;
|
|
244
|
+
} & {
|
|
245
|
+
serverName: string;
|
|
246
|
+
};
|
|
240
247
|
};
|
|
241
248
|
primaryKey: readonly [string, ...string[]];
|
|
242
249
|
} & {
|
|
@@ -511,6 +518,13 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
511
518
|
} & {
|
|
512
519
|
serverName: string;
|
|
513
520
|
};
|
|
521
|
+
readonly lastSyncedAt: {
|
|
522
|
+
type: "number";
|
|
523
|
+
optional: false;
|
|
524
|
+
customType: number;
|
|
525
|
+
} & {
|
|
526
|
+
serverName: string;
|
|
527
|
+
};
|
|
514
528
|
readonly threadId: {
|
|
515
529
|
type: "string";
|
|
516
530
|
optional: false;
|
|
@@ -525,19 +539,15 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
525
539
|
} & {
|
|
526
540
|
serverName: string;
|
|
527
541
|
};
|
|
528
|
-
readonly uid:
|
|
542
|
+
readonly uid: {
|
|
529
543
|
type: "number";
|
|
530
544
|
optional: false;
|
|
531
545
|
customType: number;
|
|
532
|
-
}, "optional"> & {
|
|
533
|
-
optional: true;
|
|
534
546
|
};
|
|
535
|
-
readonly uidValidity:
|
|
547
|
+
readonly uidValidity: {
|
|
536
548
|
type: "number";
|
|
537
549
|
optional: false;
|
|
538
550
|
customType: number;
|
|
539
|
-
}, "optional"> & {
|
|
540
|
-
optional: true;
|
|
541
551
|
} & {
|
|
542
552
|
serverName: string;
|
|
543
553
|
};
|
|
@@ -760,7 +770,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
760
770
|
}];
|
|
761
771
|
labels: [{
|
|
762
772
|
readonly sourceField: string[];
|
|
763
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
773
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
764
774
|
readonly destSchema: "accountLabel";
|
|
765
775
|
readonly cardinality: "many";
|
|
766
776
|
}];
|
|
@@ -800,7 +810,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
800
810
|
}];
|
|
801
811
|
threads: [{
|
|
802
812
|
readonly sourceField: string[];
|
|
803
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
813
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
804
814
|
readonly destSchema: "threadLabel";
|
|
805
815
|
readonly cardinality: "many";
|
|
806
816
|
}, {
|
|
@@ -861,12 +871,12 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
861
871
|
}];
|
|
862
872
|
labels: [{
|
|
863
873
|
readonly sourceField: string[];
|
|
864
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
874
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
865
875
|
readonly destSchema: "threadLabel";
|
|
866
876
|
readonly cardinality: "many";
|
|
867
877
|
}, {
|
|
868
878
|
readonly sourceField: string[];
|
|
869
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
879
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
870
880
|
readonly destSchema: "accountLabel";
|
|
871
881
|
readonly cardinality: "many";
|
|
872
882
|
}];
|
|
@@ -886,7 +896,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
886
896
|
readonly threadLabel: {
|
|
887
897
|
label: [{
|
|
888
898
|
readonly sourceField: string[];
|
|
889
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
899
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
890
900
|
readonly destSchema: "accountLabel";
|
|
891
901
|
readonly cardinality: "one";
|
|
892
902
|
}];
|
|
@@ -912,12 +922,12 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
912
922
|
}];
|
|
913
923
|
labels: [{
|
|
914
924
|
readonly sourceField: string[];
|
|
915
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
925
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
916
926
|
readonly destSchema: "threadLabel";
|
|
917
927
|
readonly cardinality: "many";
|
|
918
928
|
}, {
|
|
919
929
|
readonly sourceField: string[];
|
|
920
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
930
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
921
931
|
readonly destSchema: "accountLabel";
|
|
922
932
|
readonly cardinality: "many";
|
|
923
933
|
}];
|
|
@@ -990,6 +1000,7 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
990
1000
|
readonly id: string;
|
|
991
1001
|
readonly path: string;
|
|
992
1002
|
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1003
|
+
readonly uidValidity: number;
|
|
993
1004
|
}[];
|
|
994
1005
|
})[];
|
|
995
1006
|
} & {
|
|
@@ -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"}
|
|
@@ -236,6 +236,13 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
236
236
|
} & {
|
|
237
237
|
serverName: string;
|
|
238
238
|
};
|
|
239
|
+
readonly uidValidity: {
|
|
240
|
+
type: "number";
|
|
241
|
+
optional: false;
|
|
242
|
+
customType: number;
|
|
243
|
+
} & {
|
|
244
|
+
serverName: string;
|
|
245
|
+
};
|
|
239
246
|
};
|
|
240
247
|
primaryKey: readonly [string, ...string[]];
|
|
241
248
|
} & {
|
|
@@ -510,6 +517,13 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
510
517
|
} & {
|
|
511
518
|
serverName: string;
|
|
512
519
|
};
|
|
520
|
+
readonly lastSyncedAt: {
|
|
521
|
+
type: "number";
|
|
522
|
+
optional: false;
|
|
523
|
+
customType: number;
|
|
524
|
+
} & {
|
|
525
|
+
serverName: string;
|
|
526
|
+
};
|
|
513
527
|
readonly threadId: {
|
|
514
528
|
type: "string";
|
|
515
529
|
optional: false;
|
|
@@ -524,19 +538,15 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
524
538
|
} & {
|
|
525
539
|
serverName: string;
|
|
526
540
|
};
|
|
527
|
-
readonly uid:
|
|
541
|
+
readonly uid: {
|
|
528
542
|
type: "number";
|
|
529
543
|
optional: false;
|
|
530
544
|
customType: number;
|
|
531
|
-
}, "optional"> & {
|
|
532
|
-
optional: true;
|
|
533
545
|
};
|
|
534
|
-
readonly uidValidity:
|
|
546
|
+
readonly uidValidity: {
|
|
535
547
|
type: "number";
|
|
536
548
|
optional: false;
|
|
537
549
|
customType: number;
|
|
538
|
-
}, "optional"> & {
|
|
539
|
-
optional: true;
|
|
540
550
|
} & {
|
|
541
551
|
serverName: string;
|
|
542
552
|
};
|
|
@@ -759,7 +769,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
759
769
|
}];
|
|
760
770
|
labels: [{
|
|
761
771
|
readonly sourceField: string[];
|
|
762
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
772
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
763
773
|
readonly destSchema: "accountLabel";
|
|
764
774
|
readonly cardinality: "many";
|
|
765
775
|
}];
|
|
@@ -799,7 +809,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
799
809
|
}];
|
|
800
810
|
threads: [{
|
|
801
811
|
readonly sourceField: string[];
|
|
802
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
812
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
803
813
|
readonly destSchema: "threadLabel";
|
|
804
814
|
readonly cardinality: "many";
|
|
805
815
|
}, {
|
|
@@ -860,12 +870,12 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
860
870
|
}];
|
|
861
871
|
labels: [{
|
|
862
872
|
readonly sourceField: string[];
|
|
863
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
873
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
864
874
|
readonly destSchema: "threadLabel";
|
|
865
875
|
readonly cardinality: "many";
|
|
866
876
|
}, {
|
|
867
877
|
readonly sourceField: string[];
|
|
868
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
878
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
869
879
|
readonly destSchema: "accountLabel";
|
|
870
880
|
readonly cardinality: "many";
|
|
871
881
|
}];
|
|
@@ -885,7 +895,7 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
885
895
|
readonly threadLabel: {
|
|
886
896
|
label: [{
|
|
887
897
|
readonly sourceField: string[];
|
|
888
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
898
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
889
899
|
readonly destSchema: "accountLabel";
|
|
890
900
|
readonly cardinality: "one";
|
|
891
901
|
}];
|
|
@@ -911,12 +921,12 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
911
921
|
}];
|
|
912
922
|
labels: [{
|
|
913
923
|
readonly sourceField: string[];
|
|
914
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
924
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
915
925
|
readonly destSchema: "threadLabel";
|
|
916
926
|
readonly cardinality: "many";
|
|
917
927
|
}, {
|
|
918
928
|
readonly sourceField: string[];
|
|
919
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
929
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
920
930
|
readonly destSchema: "accountLabel";
|
|
921
931
|
readonly cardinality: "many";
|
|
922
932
|
}];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,CAAC
|
|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;;;;;;;;;;;;;;;;;;;;;;;;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
|
@@ -236,6 +236,13 @@ export declare const schema: {
|
|
|
236
236
|
} & {
|
|
237
237
|
serverName: string;
|
|
238
238
|
};
|
|
239
|
+
readonly uidValidity: {
|
|
240
|
+
type: "number";
|
|
241
|
+
optional: false;
|
|
242
|
+
customType: number;
|
|
243
|
+
} & {
|
|
244
|
+
serverName: string;
|
|
245
|
+
};
|
|
239
246
|
};
|
|
240
247
|
primaryKey: readonly [string, ...string[]];
|
|
241
248
|
} & {
|
|
@@ -510,6 +517,13 @@ export declare const schema: {
|
|
|
510
517
|
} & {
|
|
511
518
|
serverName: string;
|
|
512
519
|
};
|
|
520
|
+
readonly lastSyncedAt: {
|
|
521
|
+
type: "number";
|
|
522
|
+
optional: false;
|
|
523
|
+
customType: number;
|
|
524
|
+
} & {
|
|
525
|
+
serverName: string;
|
|
526
|
+
};
|
|
513
527
|
readonly threadId: {
|
|
514
528
|
type: "string";
|
|
515
529
|
optional: false;
|
|
@@ -524,19 +538,15 @@ export declare const schema: {
|
|
|
524
538
|
} & {
|
|
525
539
|
serverName: string;
|
|
526
540
|
};
|
|
527
|
-
readonly uid:
|
|
541
|
+
readonly uid: {
|
|
528
542
|
type: "number";
|
|
529
543
|
optional: false;
|
|
530
544
|
customType: number;
|
|
531
|
-
}, "optional"> & {
|
|
532
|
-
optional: true;
|
|
533
545
|
};
|
|
534
|
-
readonly uidValidity:
|
|
546
|
+
readonly uidValidity: {
|
|
535
547
|
type: "number";
|
|
536
548
|
optional: false;
|
|
537
549
|
customType: number;
|
|
538
|
-
}, "optional"> & {
|
|
539
|
-
optional: true;
|
|
540
550
|
} & {
|
|
541
551
|
serverName: string;
|
|
542
552
|
};
|
|
@@ -759,7 +769,7 @@ export declare const schema: {
|
|
|
759
769
|
}];
|
|
760
770
|
labels: [{
|
|
761
771
|
readonly sourceField: string[];
|
|
762
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
772
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
763
773
|
readonly destSchema: "accountLabel";
|
|
764
774
|
readonly cardinality: "many";
|
|
765
775
|
}];
|
|
@@ -799,7 +809,7 @@ export declare const schema: {
|
|
|
799
809
|
}];
|
|
800
810
|
threads: [{
|
|
801
811
|
readonly sourceField: string[];
|
|
802
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
812
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
803
813
|
readonly destSchema: "threadLabel";
|
|
804
814
|
readonly cardinality: "many";
|
|
805
815
|
}, {
|
|
@@ -860,12 +870,12 @@ export declare const schema: {
|
|
|
860
870
|
}];
|
|
861
871
|
labels: [{
|
|
862
872
|
readonly sourceField: string[];
|
|
863
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
873
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
864
874
|
readonly destSchema: "threadLabel";
|
|
865
875
|
readonly cardinality: "many";
|
|
866
876
|
}, {
|
|
867
877
|
readonly sourceField: string[];
|
|
868
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
878
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
869
879
|
readonly destSchema: "accountLabel";
|
|
870
880
|
readonly cardinality: "many";
|
|
871
881
|
}];
|
|
@@ -885,7 +895,7 @@ export declare const schema: {
|
|
|
885
895
|
readonly threadLabel: {
|
|
886
896
|
label: [{
|
|
887
897
|
readonly sourceField: string[];
|
|
888
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
898
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
889
899
|
readonly destSchema: "accountLabel";
|
|
890
900
|
readonly cardinality: "one";
|
|
891
901
|
}];
|
|
@@ -911,12 +921,12 @@ export declare const schema: {
|
|
|
911
921
|
}];
|
|
912
922
|
labels: [{
|
|
913
923
|
readonly sourceField: string[];
|
|
914
|
-
readonly destField: ("accountId" | "labelId" | "
|
|
924
|
+
readonly destField: ("accountId" | "uidValidity" | "labelId" | "lastSyncedAt" | "threadId" | "threadMessageId" | "uid")[];
|
|
915
925
|
readonly destSchema: "threadLabel";
|
|
916
926
|
readonly cardinality: "many";
|
|
917
927
|
}, {
|
|
918
928
|
readonly sourceField: string[];
|
|
919
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
929
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse" | "uidValidity")[];
|
|
920
930
|
readonly destSchema: "accountLabel";
|
|
921
931
|
readonly cardinality: "many";
|
|
922
932
|
}];
|
|
@@ -1089,6 +1099,13 @@ export declare const zeroTables: {
|
|
|
1089
1099
|
} & {
|
|
1090
1100
|
serverName: string;
|
|
1091
1101
|
};
|
|
1102
|
+
readonly uidValidity: {
|
|
1103
|
+
type: "number";
|
|
1104
|
+
optional: false;
|
|
1105
|
+
customType: number;
|
|
1106
|
+
} & {
|
|
1107
|
+
serverName: string;
|
|
1108
|
+
};
|
|
1092
1109
|
};
|
|
1093
1110
|
primaryKey: readonly [string, ...string[]];
|
|
1094
1111
|
} & {
|
|
@@ -1397,6 +1414,13 @@ export declare const zeroTables: {
|
|
|
1397
1414
|
} & {
|
|
1398
1415
|
serverName: string;
|
|
1399
1416
|
};
|
|
1417
|
+
readonly lastSyncedAt: {
|
|
1418
|
+
type: "number";
|
|
1419
|
+
optional: false;
|
|
1420
|
+
customType: number;
|
|
1421
|
+
} & {
|
|
1422
|
+
serverName: string;
|
|
1423
|
+
};
|
|
1400
1424
|
readonly threadId: {
|
|
1401
1425
|
type: "string";
|
|
1402
1426
|
optional: false;
|
|
@@ -1411,19 +1435,15 @@ export declare const zeroTables: {
|
|
|
1411
1435
|
} & {
|
|
1412
1436
|
serverName: string;
|
|
1413
1437
|
};
|
|
1414
|
-
readonly uid:
|
|
1438
|
+
readonly uid: {
|
|
1415
1439
|
type: "number";
|
|
1416
1440
|
optional: false;
|
|
1417
1441
|
customType: number;
|
|
1418
|
-
}, "optional"> & {
|
|
1419
|
-
optional: true;
|
|
1420
1442
|
};
|
|
1421
|
-
readonly uidValidity:
|
|
1443
|
+
readonly uidValidity: {
|
|
1422
1444
|
type: "number";
|
|
1423
1445
|
optional: false;
|
|
1424
1446
|
customType: number;
|
|
1425
|
-
}, "optional"> & {
|
|
1426
|
-
optional: true;
|
|
1427
1447
|
} & {
|
|
1428
1448
|
serverName: string;
|
|
1429
1449
|
};
|
|
@@ -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":"AAgbA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAxVJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0YT,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -53,6 +53,7 @@ const accountLabel = table('accountLabel')
|
|
|
53
53
|
id: string(),
|
|
54
54
|
path: string(),
|
|
55
55
|
specialUse: enumeration().optional().from('special_use'),
|
|
56
|
+
uidValidity: numeric().from('uid_validity'),
|
|
56
57
|
})
|
|
57
58
|
.primaryKey('id');
|
|
58
59
|
const draft = table('draft')
|
|
@@ -111,10 +112,11 @@ const threadLabel = table('threadLabel')
|
|
|
111
112
|
.columns({
|
|
112
113
|
accountId: string().from('account_id'),
|
|
113
114
|
labelId: string().from('label_id'),
|
|
115
|
+
lastSyncedAt: numeric().from('last_synced_at'),
|
|
114
116
|
threadId: string().from('thread_id'),
|
|
115
117
|
threadMessageId: string().from('thread_message_id'),
|
|
116
|
-
uid: numeric()
|
|
117
|
-
uidValidity: numeric().
|
|
118
|
+
uid: numeric(),
|
|
119
|
+
uidValidity: numeric().from('uid_validity'),
|
|
118
120
|
})
|
|
119
121
|
.primaryKey('accountId', 'labelId', 'threadMessageId');
|
|
120
122
|
const threadMessage = table('threadMessage')
|