@marcoappio/marco-config 2.0.422 → 2.0.424
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 +9 -83
- package/dist/zero/index.d.ts.map +1 -1
- package/dist/zero/index.js +0 -3
- package/dist/zero/queries/getAccounts.d.ts +1 -6
- package/dist/zero/queries/getAccounts.d.ts.map +1 -1
- package/dist/zero/queries/getContacts.d.ts +1 -6
- package/dist/zero/queries/getContacts.d.ts.map +1 -1
- package/dist/zero/queries/getDrafts.d.ts +1 -25
- 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 +4 -11
- 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 +1 -6
- package/dist/zero/queries/getUser.d.ts.map +1 -1
- package/dist/zero/queries/index.d.ts +1 -6
- package/dist/zero/queries/index.d.ts.map +1 -1
- package/dist/zero/schema.d.ts +1 -6
- package/dist/zero/schema.d.ts.map +1 -1
- package/dist/zero/schema.js +1 -5
- package/package.json +1 -1
- package/dist/zero/permissions.d.ts +0 -23
- package/dist/zero/permissions.d.ts.map +0 -1
- package/dist/zero/permissions.js +0 -81
package/dist/zero/index.d.ts
CHANGED
|
@@ -1,27 +1,5 @@
|
|
|
1
1
|
export declare const marcoZero: {
|
|
2
2
|
readonly createMutators: (handlers: import("./mutators").MarcoZeroMutatorHandlers) => import("./mutators").MarcoZeroMutators;
|
|
3
|
-
readonly permissions: Promise<{
|
|
4
|
-
tables: Record<string, {
|
|
5
|
-
row?: {
|
|
6
|
-
select?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
7
|
-
insert?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
8
|
-
update?: {
|
|
9
|
-
preMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
10
|
-
postMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
11
|
-
} | undefined;
|
|
12
|
-
delete?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
13
|
-
} | undefined;
|
|
14
|
-
cell?: Record<string, {
|
|
15
|
-
select?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
16
|
-
insert?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
17
|
-
update?: {
|
|
18
|
-
preMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
19
|
-
postMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
20
|
-
} | undefined;
|
|
21
|
-
delete?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
22
|
-
}> | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
} | undefined>;
|
|
25
3
|
readonly queries: {
|
|
26
4
|
readonly getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccounts", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
|
|
27
5
|
tables: {
|
|
@@ -924,16 +902,11 @@ export declare const marcoZero: {
|
|
|
924
902
|
readonly destSchema: "threadMessageAttachment";
|
|
925
903
|
readonly cardinality: "many";
|
|
926
904
|
}];
|
|
927
|
-
|
|
905
|
+
labelMappings: [{
|
|
928
906
|
readonly sourceField: string[];
|
|
929
907
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
930
908
|
readonly destSchema: "threadMessageLabel";
|
|
931
909
|
readonly cardinality: "many";
|
|
932
|
-
}, {
|
|
933
|
-
readonly sourceField: string[];
|
|
934
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
935
|
-
readonly destSchema: "accountLabel";
|
|
936
|
-
readonly cardinality: "many";
|
|
937
910
|
}];
|
|
938
911
|
recipients: [{
|
|
939
912
|
readonly sourceField: string[];
|
|
@@ -1922,16 +1895,11 @@ export declare const marcoZero: {
|
|
|
1922
1895
|
readonly destSchema: "threadMessageAttachment";
|
|
1923
1896
|
readonly cardinality: "many";
|
|
1924
1897
|
}];
|
|
1925
|
-
|
|
1898
|
+
labelMappings: [{
|
|
1926
1899
|
readonly sourceField: string[];
|
|
1927
1900
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
1928
1901
|
readonly destSchema: "threadMessageLabel";
|
|
1929
1902
|
readonly cardinality: "many";
|
|
1930
|
-
}, {
|
|
1931
|
-
readonly sourceField: string[];
|
|
1932
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
1933
|
-
readonly destSchema: "accountLabel";
|
|
1934
|
-
readonly cardinality: "many";
|
|
1935
1903
|
}];
|
|
1936
1904
|
recipients: [{
|
|
1937
1905
|
readonly sourceField: string[];
|
|
@@ -2890,16 +2858,11 @@ export declare const marcoZero: {
|
|
|
2890
2858
|
readonly destSchema: "threadMessageAttachment";
|
|
2891
2859
|
readonly cardinality: "many";
|
|
2892
2860
|
}];
|
|
2893
|
-
|
|
2861
|
+
labelMappings: [{
|
|
2894
2862
|
readonly sourceField: string[];
|
|
2895
2863
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
2896
2864
|
readonly destSchema: "threadMessageLabel";
|
|
2897
2865
|
readonly cardinality: "many";
|
|
2898
|
-
}, {
|
|
2899
|
-
readonly sourceField: string[];
|
|
2900
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
2901
|
-
readonly destSchema: "accountLabel";
|
|
2902
|
-
readonly cardinality: "many";
|
|
2903
2866
|
}];
|
|
2904
2867
|
recipients: [{
|
|
2905
2868
|
readonly sourceField: string[];
|
|
@@ -2967,25 +2930,6 @@ export declare const marcoZero: {
|
|
|
2967
2930
|
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
2968
2931
|
readonly updatedAt: number;
|
|
2969
2932
|
readonly userId: string;
|
|
2970
|
-
} & {
|
|
2971
|
-
readonly account: ({
|
|
2972
|
-
readonly color: string;
|
|
2973
|
-
readonly displayName: string | null;
|
|
2974
|
-
readonly id: string;
|
|
2975
|
-
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";
|
|
2976
|
-
readonly mailProcessedCount: number;
|
|
2977
|
-
readonly mailTotalCount: number;
|
|
2978
|
-
readonly primaryAliasId: string | null;
|
|
2979
|
-
readonly userId: string;
|
|
2980
|
-
} & {
|
|
2981
|
-
readonly aliases: readonly {
|
|
2982
|
-
readonly accountId: string;
|
|
2983
|
-
readonly emailAddress: string;
|
|
2984
|
-
readonly id: string;
|
|
2985
|
-
readonly isPrimary: boolean;
|
|
2986
|
-
readonly name: string | null;
|
|
2987
|
-
}[];
|
|
2988
|
-
}) | undefined;
|
|
2989
2933
|
} & {
|
|
2990
2934
|
readonly recipients: readonly {
|
|
2991
2935
|
readonly draftId: string;
|
|
@@ -3916,16 +3860,11 @@ export declare const marcoZero: {
|
|
|
3916
3860
|
readonly destSchema: "threadMessageAttachment";
|
|
3917
3861
|
readonly cardinality: "many";
|
|
3918
3862
|
}];
|
|
3919
|
-
|
|
3863
|
+
labelMappings: [{
|
|
3920
3864
|
readonly sourceField: string[];
|
|
3921
3865
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
3922
3866
|
readonly destSchema: "threadMessageLabel";
|
|
3923
3867
|
readonly cardinality: "many";
|
|
3924
|
-
}, {
|
|
3925
|
-
readonly sourceField: string[];
|
|
3926
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
3927
|
-
readonly destSchema: "accountLabel";
|
|
3928
|
-
readonly cardinality: "many";
|
|
3929
3868
|
}];
|
|
3930
3869
|
recipients: [{
|
|
3931
3870
|
readonly sourceField: string[];
|
|
@@ -4008,11 +3947,9 @@ export declare const marcoZero: {
|
|
|
4008
3947
|
readonly threadMessageId: string;
|
|
4009
3948
|
}[];
|
|
4010
3949
|
} & {
|
|
4011
|
-
readonly
|
|
4012
|
-
readonly
|
|
4013
|
-
readonly
|
|
4014
|
-
readonly path: string;
|
|
4015
|
-
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
3950
|
+
readonly labelMappings: readonly {
|
|
3951
|
+
readonly labelId: string;
|
|
3952
|
+
readonly threadMessageId: string;
|
|
4016
3953
|
}[];
|
|
4017
3954
|
})[];
|
|
4018
3955
|
} & {
|
|
@@ -4935,16 +4872,11 @@ export declare const marcoZero: {
|
|
|
4935
4872
|
readonly destSchema: "threadMessageAttachment";
|
|
4936
4873
|
readonly cardinality: "many";
|
|
4937
4874
|
}];
|
|
4938
|
-
|
|
4875
|
+
labelMappings: [{
|
|
4939
4876
|
readonly sourceField: string[];
|
|
4940
4877
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
4941
4878
|
readonly destSchema: "threadMessageLabel";
|
|
4942
4879
|
readonly cardinality: "many";
|
|
4943
|
-
}, {
|
|
4944
|
-
readonly sourceField: string[];
|
|
4945
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
4946
|
-
readonly destSchema: "accountLabel";
|
|
4947
|
-
readonly cardinality: "many";
|
|
4948
4880
|
}];
|
|
4949
4881
|
recipients: [{
|
|
4950
4882
|
readonly sourceField: string[];
|
|
@@ -5934,16 +5866,11 @@ export declare const marcoZero: {
|
|
|
5934
5866
|
readonly destSchema: "threadMessageAttachment";
|
|
5935
5867
|
readonly cardinality: "many";
|
|
5936
5868
|
}];
|
|
5937
|
-
|
|
5869
|
+
labelMappings: [{
|
|
5938
5870
|
readonly sourceField: string[];
|
|
5939
5871
|
readonly destField: ("labelId" | "threadMessageId")[];
|
|
5940
5872
|
readonly destSchema: "threadMessageLabel";
|
|
5941
5873
|
readonly cardinality: "many";
|
|
5942
|
-
}, {
|
|
5943
|
-
readonly sourceField: string[];
|
|
5944
|
-
readonly destField: ("id" | "accountId" | "path" | "specialUse")[];
|
|
5945
|
-
readonly destSchema: "accountLabel";
|
|
5946
|
-
readonly cardinality: "many";
|
|
5947
5874
|
}];
|
|
5948
5875
|
recipients: [{
|
|
5949
5876
|
readonly sourceField: string[];
|
|
@@ -6680,7 +6607,6 @@ export { accountMutatorDefinitions } from './mutators/account';
|
|
|
6680
6607
|
export { draftMutatorDefinitions } from './mutators/draft';
|
|
6681
6608
|
export { threadMutatorDefinitions } from './mutators/thread';
|
|
6682
6609
|
export { userMutatorDefinitions } from './mutators/user';
|
|
6683
|
-
export { permissions } from './permissions';
|
|
6684
6610
|
export { getUser } from './queries';
|
|
6685
6611
|
export type { MarcoZeroSchema } from './schema';
|
|
6686
6612
|
export { schema, zeroTables } from './schema';
|
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":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/zero/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CALM,CAAA;AAEV,YAAY,EACV,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,iBAAiB,EACjB,qBAAqB,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"}
|
package/dist/zero/index.js
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { createMutators } from './mutators';
|
|
2
|
-
import { permissions } from './permissions';
|
|
3
2
|
import { getAccounts, getContacts, getDrafts, getThreads, getUser } from './queries';
|
|
4
3
|
import { schema, zeroTables } from './schema';
|
|
5
4
|
export const marcoZero = {
|
|
6
5
|
createMutators,
|
|
7
|
-
permissions,
|
|
8
6
|
queries: {
|
|
9
7
|
getAccounts,
|
|
10
8
|
getContacts,
|
|
@@ -20,6 +18,5 @@ export { accountMutatorDefinitions } from './mutators/account';
|
|
|
20
18
|
export { draftMutatorDefinitions } from './mutators/draft';
|
|
21
19
|
export { threadMutatorDefinitions } from './mutators/thread';
|
|
22
20
|
export { userMutatorDefinitions } from './mutators/user';
|
|
23
|
-
export { permissions } from './permissions';
|
|
24
21
|
export { getUser } from './queries';
|
|
25
22
|
export { schema, zeroTables } from './schema';
|
|
@@ -900,16 +900,11 @@ export declare const getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccou
|
|
|
900
900
|
readonly destSchema: "threadMessageAttachment";
|
|
901
901
|
readonly cardinality: "many";
|
|
902
902
|
}];
|
|
903
|
-
|
|
903
|
+
labelMappings: [{
|
|
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";
|
|
913
908
|
}];
|
|
914
909
|
recipients: [{
|
|
915
910
|
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":"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"}
|
|
@@ -908,16 +908,11 @@ export declare const getContacts: import("@rocicorp/zero").SyncedQuery<"getConta
|
|
|
908
908
|
readonly destSchema: "threadMessageAttachment";
|
|
909
909
|
readonly cardinality: "many";
|
|
910
910
|
}];
|
|
911
|
-
|
|
911
|
+
labelMappings: [{
|
|
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";
|
|
921
916
|
}];
|
|
922
917
|
recipients: [{
|
|
923
918
|
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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BvB,CAAA"}
|
|
@@ -906,16 +906,11 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
906
906
|
readonly destSchema: "threadMessageAttachment";
|
|
907
907
|
readonly cardinality: "many";
|
|
908
908
|
}];
|
|
909
|
-
|
|
909
|
+
labelMappings: [{
|
|
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";
|
|
919
914
|
}];
|
|
920
915
|
recipients: [{
|
|
921
916
|
readonly sourceField: string[];
|
|
@@ -983,25 +978,6 @@ export declare const getDrafts: import("@rocicorp/zero").SyncedQuery<"getDrafts"
|
|
|
983
978
|
readonly type: "NEW" | "REPLY" | "FORWARD";
|
|
984
979
|
readonly updatedAt: number;
|
|
985
980
|
readonly userId: string;
|
|
986
|
-
} & {
|
|
987
|
-
readonly account: ({
|
|
988
|
-
readonly color: string;
|
|
989
|
-
readonly displayName: string | null;
|
|
990
|
-
readonly id: string;
|
|
991
|
-
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";
|
|
992
|
-
readonly mailProcessedCount: number;
|
|
993
|
-
readonly mailTotalCount: number;
|
|
994
|
-
readonly primaryAliasId: string | null;
|
|
995
|
-
readonly userId: string;
|
|
996
|
-
} & {
|
|
997
|
-
readonly aliases: readonly {
|
|
998
|
-
readonly accountId: string;
|
|
999
|
-
readonly emailAddress: string;
|
|
1000
|
-
readonly id: string;
|
|
1001
|
-
readonly isPrimary: boolean;
|
|
1002
|
-
readonly name: string | null;
|
|
1003
|
-
}[];
|
|
1004
|
-
}) | undefined;
|
|
1005
981
|
} & {
|
|
1006
982
|
readonly recipients: readonly {
|
|
1007
983
|
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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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoBrB,CAAA"}
|
|
@@ -15,7 +15,6 @@ const parseArgs = (args) => {
|
|
|
15
15
|
export const getDrafts = syncedQueryWithContext('getDrafts', parseArgs, ({ userId }, { status, accountId, limit }) => {
|
|
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,16 +911,11 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
911
911
|
readonly destSchema: "threadMessageAttachment";
|
|
912
912
|
readonly cardinality: "many";
|
|
913
913
|
}];
|
|
914
|
-
|
|
914
|
+
labelMappings: [{
|
|
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";
|
|
924
919
|
}];
|
|
925
920
|
recipients: [{
|
|
926
921
|
readonly sourceField: string[];
|
|
@@ -1003,11 +998,9 @@ export declare const getThreads: import("@rocicorp/zero").SyncedQuery<"getThread
|
|
|
1003
998
|
readonly threadMessageId: string;
|
|
1004
999
|
}[];
|
|
1005
1000
|
} & {
|
|
1006
|
-
readonly
|
|
1007
|
-
readonly
|
|
1008
|
-
readonly
|
|
1009
|
-
readonly path: string;
|
|
1010
|
-
readonly specialUse: "ARCHIVE" | "INBOX" | "SENT" | "SPAM" | "TRASH" | null;
|
|
1001
|
+
readonly labelMappings: readonly {
|
|
1002
|
+
readonly labelId: string;
|
|
1003
|
+
readonly threadMessageId: string;
|
|
1011
1004
|
}[];
|
|
1012
1005
|
})[];
|
|
1013
1006
|
} & {
|
|
@@ -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,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;AAmBD,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"getThreads.d.ts","sourceRoot":"","sources":["../../../src/zero/queries/getThreads.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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('labelMappings'))
|
|
24
24
|
.related('labels')
|
|
25
25
|
.related('account')
|
|
26
26
|
.orderBy('latestMessageDate', 'desc');
|
|
@@ -900,16 +900,11 @@ export declare const getUser: import("@rocicorp/zero").SyncedQuery<"getUser", Ma
|
|
|
900
900
|
readonly destSchema: "threadMessageAttachment";
|
|
901
901
|
readonly cardinality: "many";
|
|
902
902
|
}];
|
|
903
|
-
|
|
903
|
+
labelMappings: [{
|
|
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";
|
|
913
908
|
}];
|
|
914
909
|
recipients: [{
|
|
915
910
|
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,16 +899,11 @@ export declare const z: import("@rocicorp/zero").SchemaQuery<{
|
|
|
899
899
|
readonly destSchema: "threadMessageAttachment";
|
|
900
900
|
readonly cardinality: "many";
|
|
901
901
|
}];
|
|
902
|
-
|
|
902
|
+
labelMappings: [{
|
|
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";
|
|
912
907
|
}];
|
|
913
908
|
recipients: [{
|
|
914
909
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA"}
|
package/dist/zero/schema.d.ts
CHANGED
|
@@ -899,16 +899,11 @@ export declare const schema: {
|
|
|
899
899
|
readonly destSchema: "threadMessageAttachment";
|
|
900
900
|
readonly cardinality: "many";
|
|
901
901
|
}];
|
|
902
|
-
|
|
902
|
+
labelMappings: [{
|
|
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";
|
|
912
907
|
}];
|
|
913
908
|
recipients: [{
|
|
914
909
|
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":[],"mappings":"AA8bA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAvWJ,MAAM;4BACX,MAAM,EAAE;4BACR,MAAM,EAAE;6BACP,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ZT,CAAA"}
|
package/dist/zero/schema.js
CHANGED
|
@@ -338,14 +338,10 @@ const threadMessageRelationships = relationships(threadMessage, ({ one, many })
|
|
|
338
338
|
destSchema: threadMessageAttachment,
|
|
339
339
|
sourceField: ['id'],
|
|
340
340
|
}),
|
|
341
|
-
|
|
341
|
+
labelMappings: many({
|
|
342
342
|
destField: ['threadMessageId'],
|
|
343
343
|
destSchema: threadMessageLabel,
|
|
344
344
|
sourceField: ['id'],
|
|
345
|
-
}, {
|
|
346
|
-
destField: ['id'],
|
|
347
|
-
destSchema: accountLabel,
|
|
348
|
-
sourceField: ['labelId'],
|
|
349
345
|
}),
|
|
350
346
|
recipients: many({
|
|
351
347
|
destField: ['threadMessageId'],
|
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare const permissions: Promise<{
|
|
2
|
-
tables: Record<string, {
|
|
3
|
-
row?: {
|
|
4
|
-
select?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
5
|
-
insert?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
6
|
-
update?: {
|
|
7
|
-
preMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
8
|
-
postMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
9
|
-
} | undefined;
|
|
10
|
-
delete?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
11
|
-
} | undefined;
|
|
12
|
-
cell?: Record<string, {
|
|
13
|
-
select?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
14
|
-
insert?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
15
|
-
update?: {
|
|
16
|
-
preMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
17
|
-
postMutation?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
18
|
-
} | undefined;
|
|
19
|
-
delete?: ["allow", import("@rocicorp/zero").Condition][] | undefined;
|
|
20
|
-
}> | undefined;
|
|
21
|
-
}>;
|
|
22
|
-
} | undefined>;
|
|
23
|
-
//# sourceMappingURL=permissions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/zero/permissions.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,WAAW;;;kBAgEhB,CAAC,mBAEL,gBAEQ;kBAIH,CAAC,mBAAmB,gBAEd;kBAKG,CAAC;2BAA+B,CAAC,mBAAmB,gBAAgC;4BAAwD,CAAC,mBAAmB,gBAAgC;;kBAAyE,CAAC,mBAAmB,gBAAgC;;;kBAAqG,CAAC,mBAAmB,gBAAgC;kBAA8C,CAAC,mBAAmB,gBAAgC;kBAA8C,CAAC;2BAA+B,CAAC,mBAAmB,gBAAgC;4BAAwD,CAAC,mBAAmB,gBAAgC;;kBAAyE,CAAC,mBAAmB,gBAAgC;;;cADn7B,CAAA"}
|
package/dist/zero/permissions.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import { definePermissions } from '@rocicorp/zero';
|
|
2
|
-
import { schema } from './schema';
|
|
3
|
-
export const permissions = definePermissions(schema, () => {
|
|
4
|
-
return {
|
|
5
|
-
account: {
|
|
6
|
-
row: {
|
|
7
|
-
select: [],
|
|
8
|
-
},
|
|
9
|
-
},
|
|
10
|
-
accountAlias: {
|
|
11
|
-
row: {
|
|
12
|
-
select: [],
|
|
13
|
-
},
|
|
14
|
-
},
|
|
15
|
-
accountLabel: {
|
|
16
|
-
row: {
|
|
17
|
-
select: [],
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
contact: {
|
|
21
|
-
row: {
|
|
22
|
-
select: [],
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
draft: {
|
|
26
|
-
row: {
|
|
27
|
-
select: [],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
draftAttachment: {
|
|
31
|
-
row: {
|
|
32
|
-
select: [],
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
draftRecipient: {
|
|
36
|
-
row: {
|
|
37
|
-
select: [],
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
thread: {
|
|
41
|
-
row: {
|
|
42
|
-
select: [],
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
threadLabel: {
|
|
46
|
-
row: {
|
|
47
|
-
select: [],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
threadMessage: {
|
|
51
|
-
row: {
|
|
52
|
-
select: [],
|
|
53
|
-
},
|
|
54
|
-
},
|
|
55
|
-
threadMessageAttachment: {
|
|
56
|
-
row: {
|
|
57
|
-
select: [],
|
|
58
|
-
},
|
|
59
|
-
},
|
|
60
|
-
threadMessageLabel: {
|
|
61
|
-
row: {
|
|
62
|
-
select: [],
|
|
63
|
-
},
|
|
64
|
-
},
|
|
65
|
-
threadMessageRecipient: {
|
|
66
|
-
row: {
|
|
67
|
-
select: [],
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
user: {
|
|
71
|
-
row: {
|
|
72
|
-
select: [],
|
|
73
|
-
},
|
|
74
|
-
},
|
|
75
|
-
userPushNotificationToken: {
|
|
76
|
-
row: {
|
|
77
|
-
select: [],
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
});
|