@marcoappio/marco-config 2.0.421 → 2.0.422

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.
@@ -1,5 +1,27 @@
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>;
3
25
  readonly queries: {
4
26
  readonly getAccounts: import("@rocicorp/zero").SyncedQuery<"getAccounts", import("..").MarcoSyncedQueryContext, true, [], import("@rocicorp/zero").Query<{
5
27
  tables: {
@@ -6658,6 +6680,7 @@ export { accountMutatorDefinitions } from './mutators/account';
6658
6680
  export { draftMutatorDefinitions } from './mutators/draft';
6659
6681
  export { threadMutatorDefinitions } from './mutators/thread';
6660
6682
  export { userMutatorDefinitions } from './mutators/user';
6683
+ export { permissions } from './permissions';
6661
6684
  export { getUser } from './queries';
6662
6685
  export type { MarcoZeroSchema } from './schema';
6663
6686
  export { schema, zeroTables } from './schema';
@@ -1 +1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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAFC,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,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,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"}
@@ -1,8 +1,10 @@
1
1
  import { createMutators } from './mutators';
2
+ import { permissions } from './permissions';
2
3
  import { getAccounts, getContacts, getDrafts, getThreads, getUser } from './queries';
3
4
  import { schema, zeroTables } from './schema';
4
5
  export const marcoZero = {
5
6
  createMutators,
7
+ permissions,
6
8
  queries: {
7
9
  getAccounts,
8
10
  getContacts,
@@ -18,5 +20,6 @@ export { accountMutatorDefinitions } from './mutators/account';
18
20
  export { draftMutatorDefinitions } from './mutators/draft';
19
21
  export { threadMutatorDefinitions } from './mutators/thread';
20
22
  export { userMutatorDefinitions } from './mutators/user';
23
+ export { permissions } from './permissions';
21
24
  export { getUser } from './queries';
22
25
  export { schema, zeroTables } from './schema';
@@ -0,0 +1,23 @@
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
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,81 @@
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
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marcoappio/marco-config",
3
- "version": "2.0.421",
3
+ "version": "2.0.422",
4
4
  "author": "team@marcoapp.io",
5
5
  "main": "dist/index.js",
6
6
  "repository": "git@github.com:marcoappio/marco-config.git",