@monorise/core 0.0.1-dev.2 → 0.0.1-dev.3
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/index.d.ts +4 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/mock/monorise/admin.d.ts +6 -46
- package/dist/mock/monorise/admin.d.ts.map +1 -1
- package/dist/mock/monorise/course.d.ts +9 -43
- package/dist/mock/monorise/course.d.ts.map +1 -1
- package/dist/mock/monorise/index.d.ts +28 -120
- package/dist/mock/monorise/index.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Entity as EntityType, createEntityConfig } from '@monorise/base';
|
|
2
2
|
import { setupCommonRoutes } from './controllers/setupRoutes';
|
|
3
|
-
import { Entity } from './data/Entity';
|
|
4
|
-
import { Mutual } from './data/Mutual';
|
|
3
|
+
import { Entity, EntityRepository } from './data/Entity';
|
|
4
|
+
import { Mutual, MutualRepository } from './data/Mutual';
|
|
5
5
|
import { PROJECTION_EXPRESSION } from './data/ProjectionExpression';
|
|
6
6
|
import { StandardError } from './errors/standard-error';
|
|
7
7
|
import { handler as createEntityProcessor } from './processors/create-entity-processor';
|
|
@@ -10,6 +10,7 @@ import { handler as prejoinProcessor } from './processors/prejoin-processor';
|
|
|
10
10
|
import { handler as replicationProcessor } from './processors/replication-processor';
|
|
11
11
|
import { handler as tagProcessor } from './processors/tag-processor';
|
|
12
12
|
import { DependencyContainer } from './services/DependencyContainer';
|
|
13
|
+
import { EntityService } from './services/entity.service';
|
|
13
14
|
declare class CoreFactory {
|
|
14
15
|
private config;
|
|
15
16
|
setupCommonRoutes: ReturnType<typeof setupCommonRoutes>;
|
|
@@ -25,6 +26,6 @@ declare class CoreFactory {
|
|
|
25
26
|
EmailAuthEnabledEntities: EntityType[];
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
|
-
export { setupCommonRoutes, Entity, Mutual, PROJECTION_EXPRESSION, createEntityProcessor, mutualProcessor, prejoinProcessor, replicationProcessor, tagProcessor, DependencyContainer, StandardError, };
|
|
29
|
+
export { setupCommonRoutes, Entity, EntityRepository, EntityService, Mutual, MutualRepository, PROJECTION_EXPRESSION, createEntityProcessor, mutualProcessor, prejoinProcessor, replicationProcessor, tagProcessor, DependencyContainer, StandardError, };
|
|
29
30
|
export default CoreFactory;
|
|
30
31
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,IAAI,UAAU,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAC/E,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACxF,OAAO,EAAE,OAAO,IAAI,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AACrF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,4BAA4B,CAAC;AACrE,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE1D,cAAM,WAAW;IAUb,OAAO,CAAC,MAAM;IATT,iBAAiB,EAAE,UAAU,CAAC,OAAO,iBAAiB,CAAC,CAAC;IACxD,eAAe,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,CAAC;IACpD,oBAAoB,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;IAC9D,qBAAqB,EAAE,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAC;IAChE,gBAAgB,EAAE,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC;IACtD,YAAY,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC;IAC9C,mBAAmB,EAAE,mBAAmB,CAAC;gBAGtC,MAAM,EAAE;QACd,YAAY,EAAE,MAAM,CAAC,UAAU,EAAE,UAAU,CAAC,OAAO,kBAAkB,CAAC,CAAC,CAAC;QACxE,kBAAkB,EAAE,UAAU,EAAE,CAAC;QACjC,wBAAwB,EAAE,UAAU,EAAE,CAAC;KACxC;CAYJ;AAED,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,MAAM,EACN,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,aAAa,GACd,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { setupCommonRoutes } from './controllers/setupRoutes';
|
|
2
|
-
import { Entity } from './data/Entity';
|
|
3
|
-
import { Mutual } from './data/Mutual';
|
|
2
|
+
import { Entity, EntityRepository } from './data/Entity';
|
|
3
|
+
import { Mutual, MutualRepository } from './data/Mutual';
|
|
4
4
|
import { PROJECTION_EXPRESSION } from './data/ProjectionExpression';
|
|
5
5
|
import { StandardError } from './errors/standard-error';
|
|
6
6
|
import { handler as createEntityProcessor } from './processors/create-entity-processor';
|
|
@@ -9,6 +9,7 @@ import { handler as prejoinProcessor } from './processors/prejoin-processor';
|
|
|
9
9
|
import { handler as replicationProcessor } from './processors/replication-processor';
|
|
10
10
|
import { handler as tagProcessor } from './processors/tag-processor';
|
|
11
11
|
import { DependencyContainer } from './services/DependencyContainer';
|
|
12
|
+
import { EntityService } from './services/entity.service';
|
|
12
13
|
class CoreFactory {
|
|
13
14
|
config;
|
|
14
15
|
setupCommonRoutes;
|
|
@@ -30,6 +31,6 @@ class CoreFactory {
|
|
|
30
31
|
this.tagProcessor = tagProcessor(dependencyContainer);
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
|
-
export { setupCommonRoutes, Entity, Mutual, PROJECTION_EXPRESSION, createEntityProcessor, mutualProcessor, prejoinProcessor, replicationProcessor, tagProcessor, DependencyContainer, StandardError, };
|
|
34
|
+
export { setupCommonRoutes, Entity, EntityRepository, EntityService, Mutual, MutualRepository, PROJECTION_EXPRESSION, createEntityProcessor, mutualProcessor, prejoinProcessor, replicationProcessor, tagProcessor, DependencyContainer, StandardError, };
|
|
34
35
|
export default CoreFactory;
|
|
35
36
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AACA,OA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,CAAC,CAAC;QACtE,IAAI,CAAC,qBAAqB,GAAG,qBAAqB,CAAC,mBAAmB,CAAC,CAAC;QACxE,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;QAC9D,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC,mBAAmB,CAAC,CAAC;IACxD,CAAC;CACF;AAED,OAAO,EACL,iBAAiB,EACjB,MAAM,EACN,gBAAgB,EAChB,aAAa,EACb,MAAM,EACN,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,gBAAgB,EAChB,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,aAAa,GACd,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -12,24 +12,14 @@ declare const config: {
|
|
|
12
12
|
}, {
|
|
13
13
|
email: string;
|
|
14
14
|
displayName: string;
|
|
15
|
-
}> | z.ZodEffects<z.ZodObject<z.
|
|
16
|
-
|
|
17
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}> | z.ZodEffects<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
16
|
+
[x: string]: any;
|
|
18
17
|
}, {
|
|
19
|
-
|
|
20
|
-
displayName: z.ZodString;
|
|
21
|
-
}>, "strip", z.ZodTypeAny, {
|
|
22
|
-
email: string;
|
|
23
|
-
displayName: string;
|
|
24
|
-
}, {
|
|
25
|
-
email: string;
|
|
26
|
-
displayName: string;
|
|
18
|
+
[x: string]: any;
|
|
27
19
|
}>, {
|
|
28
|
-
|
|
29
|
-
displayName: string;
|
|
20
|
+
[x: string]: any;
|
|
30
21
|
}, {
|
|
31
|
-
|
|
32
|
-
displayName: string;
|
|
22
|
+
[x: string]: any;
|
|
33
23
|
}>;
|
|
34
24
|
name: string;
|
|
35
25
|
displayName: string;
|
|
@@ -84,37 +74,7 @@ declare const config: {
|
|
|
84
74
|
}[];
|
|
85
75
|
}[];
|
|
86
76
|
} | undefined;
|
|
87
|
-
effect?: (
|
|
88
|
-
email: z.ZodOptional<z.ZodString>;
|
|
89
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, {
|
|
91
|
-
email: z.ZodString;
|
|
92
|
-
displayName: z.ZodString;
|
|
93
|
-
}>, "strip", z.ZodTypeAny, {
|
|
94
|
-
email: string;
|
|
95
|
-
displayName: string;
|
|
96
|
-
}, {
|
|
97
|
-
email: string;
|
|
98
|
-
displayName: string;
|
|
99
|
-
}>) => z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
|
|
100
|
-
email: z.ZodOptional<z.ZodString>;
|
|
101
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
102
|
-
}, {
|
|
103
|
-
email: z.ZodString;
|
|
104
|
-
displayName: z.ZodString;
|
|
105
|
-
}>, "strip", z.ZodTypeAny, {
|
|
106
|
-
email: string;
|
|
107
|
-
displayName: string;
|
|
108
|
-
}, {
|
|
109
|
-
email: string;
|
|
110
|
-
displayName: string;
|
|
111
|
-
}>, {
|
|
112
|
-
email: string;
|
|
113
|
-
displayName: string;
|
|
114
|
-
}, {
|
|
115
|
-
email: string;
|
|
116
|
-
displayName: string;
|
|
117
|
-
}>) | undefined;
|
|
77
|
+
effect?: (schema: z.ZodObject<z.ZodRawShape>) => z.ZodEffects<z.ZodObject<z.ZodRawShape>>;
|
|
118
78
|
tags?: {
|
|
119
79
|
name: string;
|
|
120
80
|
processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../mock/monorise/admin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../../mock/monorise/admin.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAcxB,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAcslF,CAAC;mCAA+T,CAAC,yDAAwF,CAAC;;;;;;;yBAA40B,CAAC;;yBAAwD,CAAC;;;;sBAA6f,EAAG,SAAS,CAAC,EAAE,WAAW,MAAS,EAAG,UAAU,CAAC,EAAE,SAAS,CAAC,EAAE,WAAW;;;;iBAAq3C,CAAC;qBAAyB,CAAC;;;CAHv1L,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
declare const config: {
|
|
3
|
-
finalSchema: z.ZodObject<{
|
|
4
|
-
|
|
5
|
-
} & {} & {
|
|
6
|
-
title: z.ZodString;
|
|
7
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
8
|
-
title: string;
|
|
9
|
-
admins?: string[] | undefined;
|
|
3
|
+
finalSchema: z.ZodEffects<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
4
|
+
[x: string]: any;
|
|
10
5
|
}, {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
[x: string]: any;
|
|
7
|
+
}>, {
|
|
8
|
+
[x: string]: any;
|
|
9
|
+
}, {
|
|
10
|
+
[x: string]: any;
|
|
11
|
+
}> | z.ZodObject<{
|
|
14
12
|
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
15
13
|
} & {} & {
|
|
16
14
|
title: z.ZodString;
|
|
@@ -20,12 +18,6 @@ declare const config: {
|
|
|
20
18
|
}, {
|
|
21
19
|
title: string;
|
|
22
20
|
admins?: string[] | undefined;
|
|
23
|
-
}>, {
|
|
24
|
-
title: string;
|
|
25
|
-
admins?: string[] | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
title: string;
|
|
28
|
-
admins?: string[] | undefined;
|
|
29
21
|
}>;
|
|
30
22
|
name: string;
|
|
31
23
|
displayName: string;
|
|
@@ -79,33 +71,7 @@ declare const config: {
|
|
|
79
71
|
}[];
|
|
80
72
|
}[];
|
|
81
73
|
} | undefined;
|
|
82
|
-
effect?: (
|
|
83
|
-
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
84
|
-
} & {} & {
|
|
85
|
-
title: z.ZodString;
|
|
86
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
87
|
-
title: string;
|
|
88
|
-
admins?: string[] | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
title: string;
|
|
91
|
-
admins?: string[] | undefined;
|
|
92
|
-
}>) => z.ZodEffects<z.ZodObject<{
|
|
93
|
-
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
94
|
-
} & {} & {
|
|
95
|
-
title: z.ZodString;
|
|
96
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
97
|
-
title: string;
|
|
98
|
-
admins?: string[] | undefined;
|
|
99
|
-
}, {
|
|
100
|
-
title: string;
|
|
101
|
-
admins?: string[] | undefined;
|
|
102
|
-
}>, {
|
|
103
|
-
title: string;
|
|
104
|
-
admins?: string[] | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
title: string;
|
|
107
|
-
admins?: string[] | undefined;
|
|
108
|
-
}>) | undefined;
|
|
74
|
+
effect?: (schema: z.ZodObject<z.ZodRawShape>) => z.ZodEffects<z.ZodObject<z.ZodRawShape>>;
|
|
109
75
|
tags?: {
|
|
110
76
|
name: string;
|
|
111
77
|
processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../../mock/monorise/course.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,QAAA,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"course.d.ts","sourceRoot":"","sources":["../../../mock/monorise/course.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAqBxB,QAAA,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BAoC8nE,CAAC;mCAA+T,CAAC,yDAAwF,CAAC;;;;;;;yBAA40B,CAAC;;yBAAwD,CAAC;;;;sBAA6f,EAAG,SAAS,CAAC,EAAE,WAAW,MAAS,EAAG,UAAU,CAAC,EAAE,SAAS,CAAC,EAAE,WAAW;;;;iBAAq3C,CAAC;qBAAyB,CAAC;;;CAH/3K,CAAC;AAEH,eAAe,MAAM,CAAC"}
|
|
@@ -25,24 +25,14 @@ declare const EntityConfig: {
|
|
|
25
25
|
}, {
|
|
26
26
|
email: string;
|
|
27
27
|
displayName: string;
|
|
28
|
-
}> | z.ZodEffects<z.ZodObject<z.
|
|
29
|
-
|
|
30
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
31
|
-
}, {
|
|
32
|
-
email: z.ZodString;
|
|
33
|
-
displayName: z.ZodString;
|
|
34
|
-
}>, "strip", z.ZodTypeAny, {
|
|
35
|
-
email: string;
|
|
36
|
-
displayName: string;
|
|
28
|
+
}> | z.ZodEffects<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
29
|
+
[x: string]: any;
|
|
37
30
|
}, {
|
|
38
|
-
|
|
39
|
-
displayName: string;
|
|
31
|
+
[x: string]: any;
|
|
40
32
|
}>, {
|
|
41
|
-
|
|
42
|
-
displayName: string;
|
|
33
|
+
[x: string]: any;
|
|
43
34
|
}, {
|
|
44
|
-
|
|
45
|
-
displayName: string;
|
|
35
|
+
[x: string]: any;
|
|
46
36
|
}>;
|
|
47
37
|
name: string;
|
|
48
38
|
displayName: string;
|
|
@@ -97,37 +87,7 @@ declare const EntityConfig: {
|
|
|
97
87
|
}[];
|
|
98
88
|
}[];
|
|
99
89
|
} | undefined;
|
|
100
|
-
effect?: (
|
|
101
|
-
email: z.ZodOptional<z.ZodString>;
|
|
102
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
103
|
-
}, {
|
|
104
|
-
email: z.ZodString;
|
|
105
|
-
displayName: z.ZodString;
|
|
106
|
-
}>, "strip", z.ZodTypeAny, {
|
|
107
|
-
email: string;
|
|
108
|
-
displayName: string;
|
|
109
|
-
}, {
|
|
110
|
-
email: string;
|
|
111
|
-
displayName: string;
|
|
112
|
-
}>) => z.ZodEffects<z.ZodObject<z.objectUtil.extendShape<{
|
|
113
|
-
email: z.ZodOptional<z.ZodString>;
|
|
114
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
115
|
-
}, {
|
|
116
|
-
email: z.ZodString;
|
|
117
|
-
displayName: z.ZodString;
|
|
118
|
-
}>, "strip", z.ZodTypeAny, {
|
|
119
|
-
email: string;
|
|
120
|
-
displayName: string;
|
|
121
|
-
}, {
|
|
122
|
-
email: string;
|
|
123
|
-
displayName: string;
|
|
124
|
-
}>, {
|
|
125
|
-
email: string;
|
|
126
|
-
displayName: string;
|
|
127
|
-
}, {
|
|
128
|
-
email: string;
|
|
129
|
-
displayName: string;
|
|
130
|
-
}>) | undefined;
|
|
90
|
+
effect?: (schema: z.ZodObject<z.ZodRawShape>) => z.ZodEffects<z.ZodObject<z.ZodRawShape>>;
|
|
131
91
|
tags?: {
|
|
132
92
|
name: string;
|
|
133
93
|
processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
|
|
@@ -137,17 +97,15 @@ declare const EntityConfig: {
|
|
|
137
97
|
}[] | undefined;
|
|
138
98
|
};
|
|
139
99
|
course: {
|
|
140
|
-
finalSchema: z.ZodObject<{
|
|
141
|
-
|
|
142
|
-
} & {} & {
|
|
143
|
-
title: z.ZodString;
|
|
144
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
145
|
-
title: string;
|
|
146
|
-
admins?: string[] | undefined;
|
|
100
|
+
finalSchema: z.ZodEffects<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
101
|
+
[x: string]: any;
|
|
147
102
|
}, {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
103
|
+
[x: string]: any;
|
|
104
|
+
}>, {
|
|
105
|
+
[x: string]: any;
|
|
106
|
+
}, {
|
|
107
|
+
[x: string]: any;
|
|
108
|
+
}> | z.ZodObject<{
|
|
151
109
|
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
152
110
|
} & {} & {
|
|
153
111
|
title: z.ZodString;
|
|
@@ -157,12 +115,6 @@ declare const EntityConfig: {
|
|
|
157
115
|
}, {
|
|
158
116
|
title: string;
|
|
159
117
|
admins?: string[] | undefined;
|
|
160
|
-
}>, {
|
|
161
|
-
title: string;
|
|
162
|
-
admins?: string[] | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
title: string;
|
|
165
|
-
admins?: string[] | undefined;
|
|
166
118
|
}>;
|
|
167
119
|
name: string;
|
|
168
120
|
displayName: string;
|
|
@@ -216,33 +168,7 @@ declare const EntityConfig: {
|
|
|
216
168
|
}[];
|
|
217
169
|
}[];
|
|
218
170
|
} | undefined;
|
|
219
|
-
effect?: (
|
|
220
|
-
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
221
|
-
} & {} & {
|
|
222
|
-
title: z.ZodString;
|
|
223
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
224
|
-
title: string;
|
|
225
|
-
admins?: string[] | undefined;
|
|
226
|
-
}, {
|
|
227
|
-
title: string;
|
|
228
|
-
admins?: string[] | undefined;
|
|
229
|
-
}>) => z.ZodEffects<z.ZodObject<{
|
|
230
|
-
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
231
|
-
} & {} & {
|
|
232
|
-
title: z.ZodString;
|
|
233
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
234
|
-
title: string;
|
|
235
|
-
admins?: string[] | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
title: string;
|
|
238
|
-
admins?: string[] | undefined;
|
|
239
|
-
}>, {
|
|
240
|
-
title: string;
|
|
241
|
-
admins?: string[] | undefined;
|
|
242
|
-
}, {
|
|
243
|
-
title: string;
|
|
244
|
-
admins?: string[] | undefined;
|
|
245
|
-
}>) | undefined;
|
|
171
|
+
effect?: (schema: z.ZodObject<z.ZodRawShape>) => z.ZodEffects<z.ZodObject<z.ZodRawShape>>;
|
|
246
172
|
tags?: {
|
|
247
173
|
name: string;
|
|
248
174
|
processor: (entity: import("@monorise/base").CreatedEntity<import("@monorise/base").Entity>) => {
|
|
@@ -265,36 +191,24 @@ declare const FormSchema: {
|
|
|
265
191
|
}, {
|
|
266
192
|
email: string;
|
|
267
193
|
displayName: string;
|
|
268
|
-
}> | z.ZodEffects<z.ZodObject<z.
|
|
269
|
-
|
|
270
|
-
displayName: z.ZodOptional<z.ZodString>;
|
|
271
|
-
}, {
|
|
272
|
-
email: z.ZodString;
|
|
273
|
-
displayName: z.ZodString;
|
|
274
|
-
}>, "strip", z.ZodTypeAny, {
|
|
275
|
-
email: string;
|
|
276
|
-
displayName: string;
|
|
194
|
+
}> | z.ZodEffects<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
195
|
+
[x: string]: any;
|
|
277
196
|
}, {
|
|
278
|
-
|
|
279
|
-
displayName: string;
|
|
197
|
+
[x: string]: any;
|
|
280
198
|
}>, {
|
|
281
|
-
|
|
282
|
-
displayName: string;
|
|
199
|
+
[x: string]: any;
|
|
283
200
|
}, {
|
|
284
|
-
|
|
285
|
-
displayName: string;
|
|
201
|
+
[x: string]: any;
|
|
286
202
|
}>;
|
|
287
|
-
course: z.ZodObject<{
|
|
288
|
-
|
|
289
|
-
} & {} & {
|
|
290
|
-
title: z.ZodString;
|
|
291
|
-
}, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
292
|
-
title: string;
|
|
293
|
-
admins?: string[] | undefined;
|
|
203
|
+
course: z.ZodEffects<z.ZodObject<z.ZodRawShape, z.UnknownKeysParam, z.ZodTypeAny, {
|
|
204
|
+
[x: string]: any;
|
|
294
205
|
}, {
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
206
|
+
[x: string]: any;
|
|
207
|
+
}>, {
|
|
208
|
+
[x: string]: any;
|
|
209
|
+
}, {
|
|
210
|
+
[x: string]: any;
|
|
211
|
+
}> | z.ZodObject<{
|
|
298
212
|
admins: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
299
213
|
} & {} & {
|
|
300
214
|
title: z.ZodString;
|
|
@@ -304,12 +218,6 @@ declare const FormSchema: {
|
|
|
304
218
|
}, {
|
|
305
219
|
title: string;
|
|
306
220
|
admins?: string[] | undefined;
|
|
307
|
-
}>, {
|
|
308
|
-
title: string;
|
|
309
|
-
admins?: string[] | undefined;
|
|
310
|
-
}, {
|
|
311
|
-
title: string;
|
|
312
|
-
admins?: string[] | undefined;
|
|
313
221
|
}>;
|
|
314
222
|
};
|
|
315
223
|
declare const AllowedEntityTypes: Entity[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../mock/monorise/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,MAAM,SAAS,CAAC;AAC5B,OAAO,MAAM,MAAM,UAAU,CAAC;AAE9B,oBAAY,MAAM;IAChB,KAAK,UAAU;IACf,MAAM,WAAW;CAClB;AAED,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;AAEjE,MAAM,WAAW,eAAe;IAC9B,KAA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,CAAC;yBAAyB,CAAC;;;;CAhCn6K,CAAC;AAEF,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGf,CAAC;AAEF,QAAA,MAAM,kBAAkB,UAAgC,CAAC;AAEzD,QAAA,MAAM,wBAAwB,UAAiB,CAAC;AAEhD,OAAO,EACL,YAAY,EACZ,UAAU,EACV,kBAAkB,EAClB,wBAAwB,GACzB,CAAC;AAEF,OAAO,QAAQ,gBAAgB,CAAC;IAC9B,KAAY,MAAM;QAChB,KAAK,UAAU;QACf,MAAM,WAAW;KAClB;IAED,KAAY,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,KAAK,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;IAC/D,KAAY,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,OAAO,MAAM,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC;IAEjE,UAAiB,eAAe;QAC9B,KAAK,EAAE,SAAS,CAAC;QACjB,MAAM,EAAE,UAAU,CAAC;KACpB;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@monorise/core",
|
|
3
|
-
"version": "0.0.1-dev.
|
|
3
|
+
"version": "0.0.1-dev.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"@types/express": "^5.0.0"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"@monorise/base": "^0.0.2-dev.
|
|
31
|
+
"@monorise/base": "^0.0.2-dev.2",
|
|
32
32
|
"express": "^4.21.2"
|
|
33
33
|
}
|
|
34
34
|
}
|