@forklaunch/implementation-iam-base 0.9.0 → 1.0.1
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/lib/domain/types/index.d.mts +109 -48
- package/lib/domain/types/index.d.ts +109 -48
- package/lib/eject/services/organization.service.ts +6 -5
- package/lib/eject/services/permission.service.ts +2 -1
- package/lib/eject/services/role.service.ts +3 -6
- package/lib/eject/services/user.service.ts +3 -6
- package/lib/services/index.d.mts +1 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +9 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrganizationDto, CreateOrganizationDto, UpdateOrganizationDto, PermissionDto, CreatePermissionDto, UpdatePermissionDto, UpdateRoleDto, RoleDto, CreateRoleDto, UserDto, CreateUserDto, UpdateUserDto } from '@forklaunch/interfaces-iam/types';
|
|
2
|
+
import * as _forklaunch_core_persistence from '@forklaunch/core/persistence';
|
|
2
3
|
import * as _mikro_orm_core from '@mikro-orm/core';
|
|
3
4
|
import { InferEntity, EntityManager } from '@mikro-orm/core';
|
|
4
5
|
|
|
@@ -25,111 +26,171 @@ type UserDtos = {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
declare const Organization: _mikro_orm_core.EntitySchemaWithMeta<"Organization", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
28
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
29
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
29
30
|
primary: true;
|
|
30
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
31
|
-
|
|
31
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
32
|
+
primary: true;
|
|
33
|
+
}>;
|
|
34
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
35
|
+
kind: "enum";
|
|
36
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
37
|
+
kind: "enum";
|
|
38
|
+
}>;
|
|
32
39
|
}, undefined, never, never, false>, never, {
|
|
33
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
40
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
34
41
|
primary: true;
|
|
35
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
36
|
-
|
|
42
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
43
|
+
primary: true;
|
|
44
|
+
}>;
|
|
45
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
46
|
+
kind: "enum";
|
|
47
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
48
|
+
kind: "enum";
|
|
49
|
+
}>;
|
|
37
50
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
38
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
51
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
52
|
+
primary: true;
|
|
53
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
39
54
|
primary: true;
|
|
40
|
-
}
|
|
41
|
-
readonly status: _mikro_orm_core.
|
|
55
|
+
}>;
|
|
56
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
57
|
+
kind: "enum";
|
|
58
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
59
|
+
kind: "enum";
|
|
60
|
+
}>;
|
|
42
61
|
}, undefined, never, never, false>>>;
|
|
43
62
|
declare const Role: _mikro_orm_core.EntitySchemaWithMeta<"Role", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
44
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
63
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
45
64
|
primary: true;
|
|
46
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
65
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
66
|
+
primary: true;
|
|
67
|
+
}>;
|
|
47
68
|
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
48
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
69
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
49
70
|
primary: true;
|
|
50
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
51
|
-
|
|
71
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
72
|
+
primary: true;
|
|
73
|
+
}>;
|
|
74
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
52
75
|
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
53
76
|
kind: "m:n";
|
|
54
77
|
}>;
|
|
55
78
|
}, undefined, never, never, false>, never, {
|
|
56
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
79
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
80
|
+
primary: true;
|
|
81
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
57
82
|
primary: true;
|
|
58
|
-
}
|
|
83
|
+
}>;
|
|
59
84
|
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
60
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
85
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
86
|
+
primary: true;
|
|
87
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
61
88
|
primary: true;
|
|
62
|
-
}
|
|
63
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
89
|
+
}>;
|
|
90
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
64
91
|
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
65
92
|
kind: "m:n";
|
|
66
93
|
}>;
|
|
67
94
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
68
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
95
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
69
96
|
primary: true;
|
|
70
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
97
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
98
|
+
primary: true;
|
|
99
|
+
}>;
|
|
71
100
|
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
72
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
101
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
73
102
|
primary: true;
|
|
74
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
75
|
-
|
|
103
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
104
|
+
primary: true;
|
|
105
|
+
}>;
|
|
106
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
76
107
|
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
77
108
|
kind: "m:n";
|
|
78
109
|
}>;
|
|
79
110
|
}, undefined, never, never, false>>>;
|
|
80
111
|
declare const Permission: _mikro_orm_core.EntitySchemaWithMeta<"Permission", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
81
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
112
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
113
|
+
primary: true;
|
|
114
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
82
115
|
primary: true;
|
|
83
|
-
}
|
|
84
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
116
|
+
}>;
|
|
117
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
85
118
|
}, undefined, never, never, false>, never, {
|
|
86
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
119
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
120
|
+
primary: true;
|
|
121
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
87
122
|
primary: true;
|
|
88
|
-
}
|
|
89
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
123
|
+
}>;
|
|
124
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
90
125
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
91
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
126
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
127
|
+
primary: true;
|
|
128
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
92
129
|
primary: true;
|
|
93
|
-
}
|
|
94
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
130
|
+
}>;
|
|
131
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
95
132
|
}, undefined, never, never, false>>>;
|
|
96
133
|
declare const User: _mikro_orm_core.EntitySchemaWithMeta<"User", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
97
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
134
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
135
|
+
primary: true;
|
|
136
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
98
137
|
primary: true;
|
|
99
|
-
}
|
|
138
|
+
}>;
|
|
100
139
|
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
101
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
140
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
141
|
+
primary: true;
|
|
142
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
102
143
|
primary: true;
|
|
103
|
-
}
|
|
104
|
-
readonly status: _mikro_orm_core.
|
|
144
|
+
}>;
|
|
145
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
146
|
+
kind: "enum";
|
|
147
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
148
|
+
kind: "enum";
|
|
149
|
+
}>;
|
|
105
150
|
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
106
151
|
kind: "m:1";
|
|
107
152
|
}, "nullable"> & {
|
|
108
153
|
nullable: true;
|
|
109
154
|
}>;
|
|
110
155
|
}, undefined, never, never, false>, never, {
|
|
111
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
156
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
112
157
|
primary: true;
|
|
113
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
158
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
159
|
+
primary: true;
|
|
160
|
+
}>;
|
|
114
161
|
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
115
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
162
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
116
163
|
primary: true;
|
|
117
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
118
|
-
|
|
164
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
165
|
+
primary: true;
|
|
166
|
+
}>;
|
|
167
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
168
|
+
kind: "enum";
|
|
169
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
170
|
+
kind: "enum";
|
|
171
|
+
}>;
|
|
119
172
|
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
120
173
|
kind: "m:1";
|
|
121
174
|
}, "nullable"> & {
|
|
122
175
|
nullable: true;
|
|
123
176
|
}>;
|
|
124
177
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
125
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
178
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
179
|
+
primary: true;
|
|
180
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
126
181
|
primary: true;
|
|
127
|
-
}
|
|
182
|
+
}>;
|
|
128
183
|
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
129
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
184
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
185
|
+
primary: true;
|
|
186
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
130
187
|
primary: true;
|
|
131
|
-
}
|
|
132
|
-
readonly status: _mikro_orm_core.
|
|
188
|
+
}>;
|
|
189
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
190
|
+
kind: "enum";
|
|
191
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
192
|
+
kind: "enum";
|
|
193
|
+
}>;
|
|
133
194
|
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
134
195
|
kind: "m:1";
|
|
135
196
|
}, "nullable"> & {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { OrganizationDto, CreateOrganizationDto, UpdateOrganizationDto, PermissionDto, CreatePermissionDto, UpdatePermissionDto, UpdateRoleDto, RoleDto, CreateRoleDto, UserDto, CreateUserDto, UpdateUserDto } from '@forklaunch/interfaces-iam/types';
|
|
2
|
+
import * as _forklaunch_core_persistence from '@forklaunch/core/persistence';
|
|
2
3
|
import * as _mikro_orm_core from '@mikro-orm/core';
|
|
3
4
|
import { InferEntity, EntityManager } from '@mikro-orm/core';
|
|
4
5
|
|
|
@@ -25,111 +26,171 @@ type UserDtos = {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
declare const Organization: _mikro_orm_core.EntitySchemaWithMeta<"Organization", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
28
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
29
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
29
30
|
primary: true;
|
|
30
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
31
|
-
|
|
31
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
32
|
+
primary: true;
|
|
33
|
+
}>;
|
|
34
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
35
|
+
kind: "enum";
|
|
36
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
37
|
+
kind: "enum";
|
|
38
|
+
}>;
|
|
32
39
|
}, undefined, never, never, false>, never, {
|
|
33
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
40
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
34
41
|
primary: true;
|
|
35
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
36
|
-
|
|
42
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
43
|
+
primary: true;
|
|
44
|
+
}>;
|
|
45
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
46
|
+
kind: "enum";
|
|
47
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
48
|
+
kind: "enum";
|
|
49
|
+
}>;
|
|
37
50
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
38
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
51
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
52
|
+
primary: true;
|
|
53
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
39
54
|
primary: true;
|
|
40
|
-
}
|
|
41
|
-
readonly status: _mikro_orm_core.
|
|
55
|
+
}>;
|
|
56
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
57
|
+
kind: "enum";
|
|
58
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
59
|
+
kind: "enum";
|
|
60
|
+
}>;
|
|
42
61
|
}, undefined, never, never, false>>>;
|
|
43
62
|
declare const Role: _mikro_orm_core.EntitySchemaWithMeta<"Role", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
44
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
63
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
45
64
|
primary: true;
|
|
46
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
65
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
66
|
+
primary: true;
|
|
67
|
+
}>;
|
|
47
68
|
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
48
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
69
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
49
70
|
primary: true;
|
|
50
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
51
|
-
|
|
71
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
72
|
+
primary: true;
|
|
73
|
+
}>;
|
|
74
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
52
75
|
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
53
76
|
kind: "m:n";
|
|
54
77
|
}>;
|
|
55
78
|
}, undefined, never, never, false>, never, {
|
|
56
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
79
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
80
|
+
primary: true;
|
|
81
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
57
82
|
primary: true;
|
|
58
|
-
}
|
|
83
|
+
}>;
|
|
59
84
|
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
60
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
85
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
86
|
+
primary: true;
|
|
87
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
61
88
|
primary: true;
|
|
62
|
-
}
|
|
63
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
89
|
+
}>;
|
|
90
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
64
91
|
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
65
92
|
kind: "m:n";
|
|
66
93
|
}>;
|
|
67
94
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
68
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
95
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
69
96
|
primary: true;
|
|
70
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
97
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
98
|
+
primary: true;
|
|
99
|
+
}>;
|
|
71
100
|
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
72
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
101
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
73
102
|
primary: true;
|
|
74
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
75
|
-
|
|
103
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
104
|
+
primary: true;
|
|
105
|
+
}>;
|
|
106
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
76
107
|
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
77
108
|
kind: "m:n";
|
|
78
109
|
}>;
|
|
79
110
|
}, undefined, never, never, false>>>;
|
|
80
111
|
declare const Permission: _mikro_orm_core.EntitySchemaWithMeta<"Permission", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
81
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
112
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
113
|
+
primary: true;
|
|
114
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
82
115
|
primary: true;
|
|
83
|
-
}
|
|
84
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
116
|
+
}>;
|
|
117
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
85
118
|
}, undefined, never, never, false>, never, {
|
|
86
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
119
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
120
|
+
primary: true;
|
|
121
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
87
122
|
primary: true;
|
|
88
|
-
}
|
|
89
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
123
|
+
}>;
|
|
124
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
90
125
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
91
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
126
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
127
|
+
primary: true;
|
|
128
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
92
129
|
primary: true;
|
|
93
|
-
}
|
|
94
|
-
readonly slug: _mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
130
|
+
}>;
|
|
131
|
+
readonly slug: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, _mikro_orm_core.EmptyOptions>;
|
|
95
132
|
}, undefined, never, never, false>>>;
|
|
96
133
|
declare const User: _mikro_orm_core.EntitySchemaWithMeta<"User", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
97
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
134
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
135
|
+
primary: true;
|
|
136
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
98
137
|
primary: true;
|
|
99
|
-
}
|
|
138
|
+
}>;
|
|
100
139
|
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
101
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
140
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
141
|
+
primary: true;
|
|
142
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
102
143
|
primary: true;
|
|
103
|
-
}
|
|
104
|
-
readonly status: _mikro_orm_core.
|
|
144
|
+
}>;
|
|
145
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
146
|
+
kind: "enum";
|
|
147
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
148
|
+
kind: "enum";
|
|
149
|
+
}>;
|
|
105
150
|
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
106
151
|
kind: "m:1";
|
|
107
152
|
}, "nullable"> & {
|
|
108
153
|
nullable: true;
|
|
109
154
|
}>;
|
|
110
155
|
}, undefined, never, never, false>, never, {
|
|
111
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
156
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
112
157
|
primary: true;
|
|
113
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
158
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
159
|
+
primary: true;
|
|
160
|
+
}>;
|
|
114
161
|
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
115
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
162
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
116
163
|
primary: true;
|
|
117
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")
|
|
118
|
-
|
|
164
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
165
|
+
primary: true;
|
|
166
|
+
}>;
|
|
167
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
168
|
+
kind: "enum";
|
|
169
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
170
|
+
kind: "enum";
|
|
171
|
+
}>;
|
|
119
172
|
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
120
173
|
kind: "m:1";
|
|
121
174
|
}, "nullable"> & {
|
|
122
175
|
nullable: true;
|
|
123
176
|
}>;
|
|
124
177
|
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
125
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
178
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
179
|
+
primary: true;
|
|
180
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
126
181
|
primary: true;
|
|
127
|
-
}
|
|
182
|
+
}>;
|
|
128
183
|
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
129
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
184
|
+
readonly id: _forklaunch_core_persistence.ClassifiedProperty<Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
185
|
+
primary: true;
|
|
186
|
+
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
130
187
|
primary: true;
|
|
131
|
-
}
|
|
132
|
-
readonly status: _mikro_orm_core.
|
|
188
|
+
}>;
|
|
189
|
+
readonly status: _forklaunch_core_persistence.ClassifiedProperty<_mikro_orm_core.PropertyChain<any, _mikro_orm_core.EmptyOptions & {
|
|
190
|
+
kind: "enum";
|
|
191
|
+
}>, any, _mikro_orm_core.EmptyOptions & {
|
|
192
|
+
kind: "enum";
|
|
193
|
+
}>;
|
|
133
194
|
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
134
195
|
kind: "m:1";
|
|
135
196
|
}, "nullable"> & {
|
|
@@ -20,11 +20,12 @@ import { Organization } from '../persistence/entities';
|
|
|
20
20
|
export class BaseOrganizationService<
|
|
21
21
|
SchemaValidator extends AnySchemaValidator,
|
|
22
22
|
OrganizationStatus = unknown,
|
|
23
|
-
MapperEntities extends
|
|
24
|
-
OrganizationEntities<OrganizationStatus>,
|
|
25
|
-
MapperDomains extends
|
|
26
|
-
OrganizationDtos<OrganizationStatus>
|
|
27
|
-
> implements OrganizationService<OrganizationStatus>
|
|
23
|
+
MapperEntities extends
|
|
24
|
+
OrganizationEntities<OrganizationStatus> = OrganizationEntities<OrganizationStatus>,
|
|
25
|
+
MapperDomains extends
|
|
26
|
+
OrganizationDtos<OrganizationStatus> = OrganizationDtos<OrganizationStatus>
|
|
27
|
+
> implements OrganizationService<OrganizationStatus>
|
|
28
|
+
{
|
|
28
29
|
// protected _mappers: InternalMapper<InstanceTypeRecord<typeof this.mappers>>;
|
|
29
30
|
private evaluatedTelemetryOptions: {
|
|
30
31
|
logging?: boolean;
|
|
@@ -25,7 +25,8 @@ export class BasePermissionService<
|
|
|
25
25
|
SchemaValidator extends AnySchemaValidator,
|
|
26
26
|
MapperEntities extends PermissionEntities = PermissionEntities,
|
|
27
27
|
MapperDomains extends PermissionDtos = PermissionDtos
|
|
28
|
-
> implements PermissionService
|
|
28
|
+
> implements PermissionService
|
|
29
|
+
{
|
|
29
30
|
private evaluatedTelemetryOptions: {
|
|
30
31
|
logging?: boolean;
|
|
31
32
|
metrics?: boolean;
|
|
@@ -5,11 +5,7 @@ import {
|
|
|
5
5
|
TelemetryOptions
|
|
6
6
|
} from '@forklaunch/core/http';
|
|
7
7
|
import { RoleService } from '@forklaunch/interfaces-iam/interfaces';
|
|
8
|
-
import {
|
|
9
|
-
EntityManager,
|
|
10
|
-
FilterQuery,
|
|
11
|
-
InferEntity
|
|
12
|
-
} from '@mikro-orm/core';
|
|
8
|
+
import { EntityManager, FilterQuery, InferEntity } from '@mikro-orm/core';
|
|
13
9
|
import { Role } from '../persistence/entities';
|
|
14
10
|
|
|
15
11
|
import { IdDto, IdsDto } from '@forklaunch/common';
|
|
@@ -27,7 +23,8 @@ export class BaseRoleService<
|
|
|
27
23
|
SchemaValidator extends AnySchemaValidator,
|
|
28
24
|
MapperEntities extends RoleEntities = RoleEntities,
|
|
29
25
|
MapperDomains extends RoleDtos = RoleDtos
|
|
30
|
-
> implements RoleService
|
|
26
|
+
> implements RoleService
|
|
27
|
+
{
|
|
31
28
|
private evaluatedTelemetryOptions: {
|
|
32
29
|
logging?: boolean;
|
|
33
30
|
metrics?: boolean;
|
|
@@ -13,11 +13,7 @@ import {
|
|
|
13
13
|
} from '@forklaunch/core/http';
|
|
14
14
|
import { CreateUserDto, UpdateUserDto } from '@forklaunch/interfaces-iam/types';
|
|
15
15
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
16
|
-
import {
|
|
17
|
-
EntityManager,
|
|
18
|
-
FilterQuery,
|
|
19
|
-
InferEntity
|
|
20
|
-
} from '@mikro-orm/core';
|
|
16
|
+
import { EntityManager, FilterQuery, InferEntity } from '@mikro-orm/core';
|
|
21
17
|
import { User } from '../persistence/entities';
|
|
22
18
|
import { UserDtos } from '../domain/types/iamDto.types';
|
|
23
19
|
import { UserEntities } from '../domain/types/iamEntities.types';
|
|
@@ -28,7 +24,8 @@ export class BaseUserService<
|
|
|
28
24
|
OrganizationStatus = unknown,
|
|
29
25
|
MapperEntities extends UserEntities = UserEntities,
|
|
30
26
|
MapperDomains extends UserDtos = UserDtos
|
|
31
|
-
> implements UserService
|
|
27
|
+
> implements UserService
|
|
28
|
+
{
|
|
32
29
|
private evaluatedTelemetryOptions: {
|
|
33
30
|
logging?: boolean;
|
|
34
31
|
metrics?: boolean;
|
package/lib/services/index.d.mts
CHANGED
|
@@ -7,6 +7,7 @@ export * from '@forklaunch/interfaces-iam/types';
|
|
|
7
7
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
8
8
|
import { EntityManager, FilterQuery, InferEntity } from '@mikro-orm/core';
|
|
9
9
|
import { OrganizationEntities, OrganizationDtos, OrganizationMappers, PermissionEntities, PermissionDtos, PermissionMappers, RoleEntities, RoleDtos, RoleMappers, UserEntities, UserDtos, UserMappers } from '../domain/types/index.mjs';
|
|
10
|
+
import '@forklaunch/core/persistence';
|
|
10
11
|
|
|
11
12
|
declare class BaseOrganizationService<SchemaValidator extends AnySchemaValidator, OrganizationStatus = unknown, MapperEntities extends OrganizationEntities<OrganizationStatus> = OrganizationEntities<OrganizationStatus>, MapperDomains extends OrganizationDtos<OrganizationStatus> = OrganizationDtos<OrganizationStatus>> implements OrganizationService<OrganizationStatus> {
|
|
12
13
|
private evaluatedTelemetryOptions;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export * from '@forklaunch/interfaces-iam/types';
|
|
|
7
7
|
import { AnySchemaValidator } from '@forklaunch/validator';
|
|
8
8
|
import { EntityManager, FilterQuery, InferEntity } from '@mikro-orm/core';
|
|
9
9
|
import { OrganizationEntities, OrganizationDtos, OrganizationMappers, PermissionEntities, PermissionDtos, PermissionMappers, RoleEntities, RoleDtos, RoleMappers, UserEntities, UserDtos, UserMappers } from '../domain/types/index.js';
|
|
10
|
+
import '@forklaunch/core/persistence';
|
|
10
11
|
|
|
11
12
|
declare class BaseOrganizationService<SchemaValidator extends AnySchemaValidator, OrganizationStatus = unknown, MapperEntities extends OrganizationEntities<OrganizationStatus> = OrganizationEntities<OrganizationStatus>, MapperDomains extends OrganizationDtos<OrganizationStatus> = OrganizationDtos<OrganizationStatus>> implements OrganizationService<OrganizationStatus> {
|
|
12
13
|
private evaluatedTelemetryOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/implementation-iam-base",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "IAM basic implementation for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -36,22 +36,22 @@
|
|
|
36
36
|
"lib/**"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@forklaunch/common": "^
|
|
40
|
-
"@forklaunch/core": "^
|
|
41
|
-
"@forklaunch/internal": "^
|
|
42
|
-
"@forklaunch/validator": "^
|
|
43
|
-
"@mikro-orm/core": "7.0.
|
|
39
|
+
"@forklaunch/common": "^1.1.0",
|
|
40
|
+
"@forklaunch/core": "^1.1.0",
|
|
41
|
+
"@forklaunch/internal": "^1.1.0",
|
|
42
|
+
"@forklaunch/validator": "^1.1.0",
|
|
43
|
+
"@mikro-orm/core": "7.0.5",
|
|
44
44
|
"@sinclair/typebox": "^0.34.48",
|
|
45
45
|
"ajv": "^8.18.0",
|
|
46
46
|
"uuid": "^13.0.0",
|
|
47
47
|
"zod": "^4.3.6",
|
|
48
|
-
"@forklaunch/interfaces-iam": "0.
|
|
48
|
+
"@forklaunch/interfaces-iam": "1.0.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
51
|
+
"@typescript/native-preview": "7.0.0-dev.20260324.1",
|
|
52
52
|
"depcheck": "^1.4.7",
|
|
53
53
|
"prettier": "^3.8.1",
|
|
54
|
-
"typedoc": "^0.28.
|
|
54
|
+
"typedoc": "^0.28.18"
|
|
55
55
|
},
|
|
56
56
|
"scripts": {
|
|
57
57
|
"build": "tsgo --noEmit && tsup domain/schemas/index.ts services/index.ts domain/types/index.ts --format cjs,esm --no-splitting --dts --tsconfig tsconfig.json --out-dir lib --clean && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
|