@marcoappio/marco-config 2.0.425 → 2.0.426
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 +41 -28
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/queries/getAccounts.d.ts +6 -1
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +6 -1
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +6 -20
- package/dist/zero/queries/getDrafts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.js +0 -1
- package/dist/zero/queries/getThreads.d.ts +11 -4
- 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 +6 -1
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +6 -1
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +6 -1
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +5 -1
- package/package.json +1 -1
package/dist/zero/index.d.ts
CHANGED
|
@@ -902,11 +902,16 @@ export declare const marcoZero: {
|
|
|
902
902
|
readonly destSchema: "threadMessageAttachment";
|
|
903
903
|
readonly cardinality: "many";
|
|
904
904
|
}];
|
|
905
|
-
|
|
905
|
+
labels: [{
|
|
906
906
|
readonly sourceField: string[];
|
|
907
907
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
908
908
|
readonly destSchema: "threadMessageLabel";
|
|
909
909
|
readonly cardinality: "many";
|
|
910
|
+
}, {
|
|
911
|
+
readonly sourceField: string[];
|
|
912
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
913
|
+
readonly destSchema: "accountLabel";
|
|
914
|
+
readonly cardinality: "many";
|
|
910
915
|
}];
|
|
911
916
|
recipients: [{
|
|
912
917
|
readonly sourceField: string[];
|
|
@@ -1895,11 +1900,16 @@ export declare const marcoZero: {
|
|
|
1895
1900
|
readonly destSchema: "threadMessageAttachment";
|
|
1896
1901
|
readonly cardinality: "many";
|
|
1897
1902
|
}];
|
|
1898
|
-
|
|
1903
|
+
labels: [{
|
|
1899
1904
|
readonly sourceField: string[];
|
|
1900
1905
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
1901
1906
|
readonly destSchema: "threadMessageLabel";
|
|
1902
1907
|
readonly cardinality: "many";
|
|
1908
|
+
}, {
|
|
1909
|
+
readonly sourceField: string[];
|
|
1910
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
1911
|
+
readonly destSchema: "accountLabel";
|
|
1912
|
+
readonly cardinality: "many";
|
|
1903
1913
|
}];
|
|
1904
1914
|
recipients: [{
|
|
1905
1915
|
readonly sourceField: string[];
|
|
@@ -2858,11 +2868,16 @@ export declare const marcoZero: {
|
|
|
2858
2868
|
readonly destSchema: "threadMessageAttachment";
|
|
2859
2869
|
readonly cardinality: "many";
|
|
2860
2870
|
}];
|
|
2861
|
-
|
|
2871
|
+
labels: [{
|
|
2862
2872
|
readonly sourceField: string[];
|
|
2863
2873
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
2864
2874
|
readonly destSchema: "threadMessageLabel";
|
|
2865
2875
|
readonly cardinality: "many";
|
|
2876
|
+
}, {
|
|
2877
|
+
readonly sourceField: string[];
|
|
2878
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
2879
|
+
readonly destSchema: "accountLabel";
|
|
2880
|
+
readonly cardinality: "many";
|
|
2866
2881
|
}];
|
|
2867
2882
|
recipients: [{
|
|
2868
2883
|
readonly sourceField: string[];
|
|
@@ -2930,25 +2945,6 @@ export declare const marcoZero: {
|
|
|
2930
2945
|
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
2931
2946
|
readonly updatedAt: number;
|
|
2932
2947
|
readonly userId: string;
|
|
2933
|
-
} & {
|
|
2934
|
-
readonly account: ({
|
|
2935
|
-
readonly color: string;
|
|
2936
|
-
readonly displayName: string | null;
|
|
2937
|
-
readonly id: string;
|
|
2938
|
-
readonly imapConnectionStatus: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
|
|
2939
|
-
readonly mailProcessedCount: number;
|
|
2940
|
-
readonly mailTotalCount: number;
|
|
2941
|
-
readonly primaryAliasId: string | null;
|
|
2942
|
-
readonly userId: string;
|
|
2943
|
-
} & {
|
|
2944
|
-
readonly aliases: readonly {
|
|
2945
|
-
readonly accountId: string;
|
|
2946
|
-
readonly emailAddress: string;
|
|
2947
|
-
readonly id: string;
|
|
2948
|
-
readonly isPrimary: boolean;
|
|
2949
|
-
readonly name: string | null;
|
|
2950
|
-
}[];
|
|
2951
|
-
}) | undefined;
|
|
2952
2948
|
} & {
|
|
2953
2949
|
readonly recipients: readonly {
|
|
2954
2950
|
readonly draftId: string;
|
|
@@ -3879,11 +3875,16 @@ export declare const marcoZero: {
|
|
|
3879
3875
|
readonly destSchema: "threadMessageAttachment";
|
|
3880
3876
|
readonly cardinality: "many";
|
|
3881
3877
|
}];
|
|
3882
|
-
|
|
3878
|
+
labels: [{
|
|
3883
3879
|
readonly sourceField: string[];
|
|
3884
3880
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
3885
3881
|
readonly destSchema: "threadMessageLabel";
|
|
3886
3882
|
readonly cardinality: "many";
|
|
3883
|
+
}, {
|
|
3884
|
+
readonly sourceField: string[];
|
|
3885
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
3886
|
+
readonly destSchema: "accountLabel";
|
|
3887
|
+
readonly cardinality: "many";
|
|
3887
3888
|
}];
|
|
3888
3889
|
recipients: [{
|
|
3889
3890
|
readonly sourceField: string[];
|
|
@@ -3966,9 +3967,11 @@ export declare const marcoZero: {
|
|
|
3966
3967
|
readonly threadMessageId: string;
|
|
3967
3968
|
}[];
|
|
3968
3969
|
} & {
|
|
3969
|
-
readonly
|
|
3970
|
-
readonly
|
|
3971
|
-
readonly
|
|
3970
|
+
readonly labels: readonly {
|
|
3971
|
+
readonly accountId: string;
|
|
3972
|
+
readonly id: string;
|
|
3973
|
+
readonly path: string;
|
|
3974
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
3972
3975
|
}[];
|
|
3973
3976
|
})[];
|
|
3974
3977
|
} & {
|
|
@@ -4891,11 +4894,16 @@ export declare const marcoZero: {
|
|
|
4891
4894
|
readonly destSchema: "threadMessageAttachment";
|
|
4892
4895
|
readonly cardinality: "many";
|
|
4893
4896
|
}];
|
|
4894
|
-
|
|
4897
|
+
labels: [{
|
|
4895
4898
|
readonly sourceField: string[];
|
|
4896
4899
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
4897
4900
|
readonly destSchema: "threadMessageLabel";
|
|
4898
4901
|
readonly cardinality: "many";
|
|
4902
|
+
}, {
|
|
4903
|
+
readonly sourceField: string[];
|
|
4904
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
4905
|
+
readonly destSchema: "accountLabel";
|
|
4906
|
+
readonly cardinality: "many";
|
|
4899
4907
|
}];
|
|
4900
4908
|
recipients: [{
|
|
4901
4909
|
readonly sourceField: string[];
|
|
@@ -5885,11 +5893,16 @@ export declare const marcoZero: {
|
|
|
5885
5893
|
readonly destSchema: "threadMessageAttachment";
|
|
5886
5894
|
readonly cardinality: "many";
|
|
5887
5895
|
}];
|
|
5888
|
-
|
|
5896
|
+
labels: [{
|
|
5889
5897
|
readonly sourceField: string[];
|
|
5890
5898
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
5891
5899
|
readonly destSchema: "threadMessageLabel";
|
|
5892
5900
|
readonly cardinality: "many";
|
|
5901
|
+
}, {
|
|
5902
|
+
readonly sourceField: string[];
|
|
5903
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
5904
|
+
readonly destSchema: "accountLabel";
|
|
5905
|
+
readonly cardinality: "many";
|
|
5893
5906
|
}];
|
|
5894
5907
|
recipients: [{
|
|
5895
5908
|
readonly sourceField: string[];
|
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":"AAIA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EACrB,mBAAmB,GACpB,MAAM,YAAY,CAAA;AACnB,OAAO,EACL,cAAc,EACd,0BAA0B,EAC1B,kBAAkB,GACnB,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAA;AAC9D,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAA;AAC1D,OAAO,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAA;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AACnC,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAA;AAC/C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA"}
|
|
@@ -900,11 +900,16 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
900
900
|
readonly destSchema: "threadMessageAttachment";
|
|
901
901
|
readonly cardinality: "many";
|
|
902
902
|
}];
|
|
903
|
-
|
|
903
|
+
labels: [{
|
|
904
904
|
readonly sourceField: string[];
|
|
905
905
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
906
906
|
readonly destSchema: "threadMessageLabel";
|
|
907
907
|
readonly cardinality: "many";
|
|
908
|
+
}, {
|
|
909
|
+
readonly sourceField: string[];
|
|
910
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
911
|
+
readonly destSchema: "accountLabel";
|
|
912
|
+
readonly cardinality: "many";
|
|
908
913
|
}];
|
|
909
914
|
recipients: [{
|
|
910
915
|
readonly sourceField: string[];
|
|
@@ -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":"get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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAEvB,CAAA"}
|
|
@@ -908,11 +908,16 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
908
908
|
readonly destSchema: "threadMessageAttachment";
|
|
909
909
|
readonly cardinality: "many";
|
|
910
910
|
}];
|
|
911
|
-
|
|
911
|
+
labels: [{
|
|
912
912
|
readonly sourceField: string[];
|
|
913
913
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
914
914
|
readonly destSchema: "threadMessageLabel";
|
|
915
915
|
readonly cardinality: "many";
|
|
916
|
+
}, {
|
|
917
|
+
readonly sourceField: string[];
|
|
918
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
919
|
+
readonly destSchema: "accountLabel";
|
|
920
|
+
readonly cardinality: "many";
|
|
916
921
|
}];
|
|
917
922
|
recipients: [{
|
|
918
923
|
readonly sourceField: string[];
|
|
@@ -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,IAAI,CAAC,EAAE,MAAM,CAAA;KACd,CAAA;CACF,CAAA;AAgBD,eAAO,MAAM,WAAW
|
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BvB,CAAA"}
|
|
@@ -906,11 +906,16 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
906
906
|
readonly destSchema: "threadMessageAttachment";
|
|
907
907
|
readonly cardinality: "many";
|
|
908
908
|
}];
|
|
909
|
-
|
|
909
|
+
labels: [{
|
|
910
910
|
readonly sourceField: string[];
|
|
911
911
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
912
912
|
readonly destSchema: "threadMessageLabel";
|
|
913
913
|
readonly cardinality: "many";
|
|
914
|
+
}, {
|
|
915
|
+
readonly sourceField: string[];
|
|
916
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
917
|
+
readonly destSchema: "accountLabel";
|
|
918
|
+
readonly cardinality: "many";
|
|
914
919
|
}];
|
|
915
920
|
recipients: [{
|
|
916
921
|
readonly sourceField: string[];
|
|
@@ -978,25 +983,6 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
978
983
|
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
979
984
|
readonly updatedAt: number;
|
|
980
985
|
readonly userId: string;
|
|
981
|
-
} & {
|
|
982
|
-
readonly account: ({
|
|
983
|
-
readonly color: string;
|
|
984
|
-
readonly displayName: string | null;
|
|
985
|
-
readonly id: string;
|
|
986
|
-
readonly imapConnectionStatus: "AWAITING_CONNECTION" | "CONNECTED" | "CONNECTION_FAILED_AUTHENTICATION_ERROR" | "CONNECTION_FAILED_CONNECTION_ERROR" | "CONNECTION_FAILED_OAUTH_EXCHANGE_ERROR" | "CONNECTION_FAILED_QUOTA_ERROR" | "CONNECTION_FAILED_UNKNOWN_ERROR";
|
|
987
|
-
readonly mailProcessedCount: number;
|
|
988
|
-
readonly mailTotalCount: number;
|
|
989
|
-
readonly primaryAliasId: string | null;
|
|
990
|
-
readonly userId: string;
|
|
991
|
-
} & {
|
|
992
|
-
readonly aliases: readonly {
|
|
993
|
-
readonly accountId: string;
|
|
994
|
-
readonly emailAddress: string;
|
|
995
|
-
readonly id: string;
|
|
996
|
-
readonly isPrimary: boolean;
|
|
997
|
-
readonly name: string | null;
|
|
998
|
-
}[];
|
|
999
|
-
}) | undefined;
|
|
1000
986
|
} & {
|
|
1001
987
|
readonly recipients: readonly {
|
|
1002
988
|
readonly draftId: string;
|
|
@@ -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,MAAM,CAAC,CAAA;CACzC,CAAA;AAWD,eAAO,MAAM,SAAS
|
|
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,MAAM,CAAC,CAAA;CACzC,CAAA;AAWD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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|
16
16
|
let query = z.draft
|
|
17
17
|
.where('userId', userId)
|
|
18
|
-
.related('account', x => x.related('aliases'))
|
|
19
18
|
.related('recipients')
|
|
20
19
|
.related('attachments')
|
|
21
20
|
.orderBy('updatedAt', 'desc');
|
|
@@ -911,11 +911,16 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
911
911
|
readonly destSchema: "threadMessageAttachment";
|
|
912
912
|
readonly cardinality: "many";
|
|
913
913
|
}];
|
|
914
|
-
|
|
914
|
+
labels: [{
|
|
915
915
|
readonly sourceField: string[];
|
|
916
916
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
917
917
|
readonly destSchema: "threadMessageLabel";
|
|
918
918
|
readonly cardinality: "many";
|
|
919
|
+
}, {
|
|
920
|
+
readonly sourceField: string[];
|
|
921
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
922
|
+
readonly destSchema: "accountLabel";
|
|
923
|
+
readonly cardinality: "many";
|
|
919
924
|
}];
|
|
920
925
|
recipients: [{
|
|
921
926
|
readonly sourceField: string[];
|
|
@@ -998,9 +1003,11 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
998
1003
|
readonly threadMessageId: string;
|
|
999
1004
|
}[];
|
|
1000
1005
|
} & {
|
|
1001
|
-
readonly
|
|
1002
|
-
readonly
|
|
1003
|
-
readonly
|
|
1006
|
+
readonly labels: readonly {
|
|
1007
|
+
readonly accountId: string;
|
|
1008
|
+
readonly id: string;
|
|
1009
|
+
readonly path: string;
|
|
1010
|
+
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1004
1011
|
}[];
|
|
1005
1012
|
})[];
|
|
1006
1013
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDtB,CAAA"}
|
|
@@ -20,7 +20,7 @@ const parseArgs = (args) => {
|
|
|
20
20
|
export const getThreads = syncedQueryWithContext('getThreads', parseArgs, ({ userId }, { search, limit, where }) => {
|
|
21
21
|
let query = z.thread
|
|
22
22
|
.where('userId', userId)
|
|
23
|
-
.related('messages', x => x.related('recipients').related('attachments').related('
|
|
23
|
+
.related('messages', x => x.related('recipients').related('attachments').related('labels'))
|
|
24
24
|
.related('labels')
|
|
25
25
|
.related('account')
|
|
26
26
|
.orderBy('latestMessageDate', 'desc');
|
|
@@ -900,11 +900,16 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
900
900
|
readonly destSchema: "threadMessageAttachment";
|
|
901
901
|
readonly cardinality: "many";
|
|
902
902
|
}];
|
|
903
|
-
|
|
903
|
+
labels: [{
|
|
904
904
|
readonly sourceField: string[];
|
|
905
905
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
906
906
|
readonly destSchema: "threadMessageLabel";
|
|
907
907
|
readonly cardinality: "many";
|
|
908
|
+
}, {
|
|
909
|
+
readonly sourceField: string[];
|
|
910
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
911
|
+
readonly destSchema: "accountLabel";
|
|
912
|
+
readonly cardinality: "many";
|
|
908
913
|
}];
|
|
909
914
|
recipients: [{
|
|
910
915
|
readonly sourceField: string[];
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKnB,CAAA"}
|
|
@@ -899,11 +899,16 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
899
899
|
readonly destSchema: "threadMessageAttachment";
|
|
900
900
|
readonly cardinality: "many";
|
|
901
901
|
}];
|
|
902
|
-
|
|
902
|
+
labels: [{
|
|
903
903
|
readonly sourceField: string[];
|
|
904
904
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
905
905
|
readonly destSchema: "threadMessageLabel";
|
|
906
906
|
readonly cardinality: "many";
|
|
907
|
+
}, {
|
|
908
|
+
readonly sourceField: string[];
|
|
909
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
910
|
+
readonly destSchema: "accountLabel";
|
|
911
|
+
readonly cardinality: "many";
|
|
907
912
|
}];
|
|
908
913
|
recipients: [{
|
|
909
914
|
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,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -899,11 +899,16 @@ export declare const schema: {
|
|
|
899
899
|
readonly destSchema: "threadMessageAttachment";
|
|
900
900
|
readonly cardinality: "many";
|
|
901
901
|
}];
|
|
902
|
-
|
|
902
|
+
labels: [{
|
|
903
903
|
readonly sourceField: string[];
|
|
904
904
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
905
905
|
readonly destSchema: "threadMessageLabel";
|
|
906
906
|
readonly cardinality: "many";
|
|
907
|
+
}, {
|
|
908
|
+
readonly sourceField: string[];
|
|
909
|
+
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
910
|
+
readonly destSchema: "accountLabel";
|
|
911
|
+
readonly cardinality: "many";
|
|
907
912
|
}];
|
|
908
913
|
recipients: [{
|
|
909
914
|
readonly sourceField: string[];
|
|
@@ -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":[],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;;;;;;;;;;;;;;CA+YjB,CAAA;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,MAAM,CAAA;AAE3C,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;6BAtZR,MAAM;wBACX,MAAM,EAAE;wBACR,MAAM,EAAE;yBACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmaT,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -338,10 +338,14 @@ const threadMessageRelationships = relationships(threadMessage, ({ one, many })
|
|
|
338
338
|
destSchema: threadMessageAttachment,
|
|
339
339
|
sourceField: ['id'],
|
|
340
340
|
}),
|
|
341
|
-
|
|
341
|
+
labels: many({
|
|
342
342
|
destField: ['threadMessageId'],
|
|
343
343
|
destSchema: threadMessageLabel,
|
|
344
344
|
sourceField: ['id'],
|
|
345
|
+
}, {
|
|
346
|
+
destField: ['id'],
|
|
347
|
+
destSchema: accountLabel,
|
|
348
|
+
sourceField: ['labelId'],
|
|
345
349
|
}),
|
|
346
350
|
recipients: many({
|
|
347
351
|
destField: ['threadMessageId'],
|