@forklaunch/implementation-iam-base 1.0.26 → 1.0.28
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/schemas/index.d.ts +5 -480
- package/lib/domain/schemas/index.d.ts.map +1 -0
- package/lib/domain/schemas/organization.schema.d.ts +204 -0
- package/lib/domain/schemas/organization.schema.d.ts.map +1 -0
- package/lib/domain/schemas/permission.schema.d.ts +50 -0
- package/lib/domain/schemas/permission.schema.d.ts.map +1 -0
- package/lib/domain/schemas/role.schema.d.ts +74 -0
- package/lib/domain/schemas/role.schema.d.ts.map +1 -0
- package/lib/domain/schemas/typebox/organization.schema.d.ts +114 -0
- package/lib/domain/schemas/typebox/organization.schema.d.ts.map +1 -0
- package/lib/domain/schemas/typebox/permission.schema.d.ts +47 -0
- package/lib/domain/schemas/typebox/permission.schema.d.ts.map +1 -0
- package/lib/domain/schemas/typebox/role.schema.d.ts +59 -0
- package/lib/domain/schemas/typebox/role.schema.d.ts.map +1 -0
- package/lib/domain/schemas/typebox/user.schema.d.ts +105 -0
- package/lib/domain/schemas/typebox/user.schema.d.ts.map +1 -0
- package/lib/domain/schemas/user.schema.d.ts +146 -0
- package/lib/domain/schemas/user.schema.d.ts.map +1 -0
- package/lib/domain/schemas/zod/organization.schema.d.ts +290 -0
- package/lib/domain/schemas/zod/organization.schema.d.ts.map +1 -0
- package/lib/domain/schemas/zod/permission.schema.d.ts +47 -0
- package/lib/domain/schemas/zod/permission.schema.d.ts.map +1 -0
- package/lib/domain/schemas/zod/role.schema.d.ts +83 -0
- package/lib/domain/schemas/zod/role.schema.d.ts.map +1 -0
- package/lib/domain/schemas/zod/user.schema.d.ts +181 -0
- package/lib/domain/schemas/zod/user.schema.d.ts.map +1 -0
- package/lib/domain/types/iamDto.types.d.ts +23 -0
- package/lib/domain/types/iamDto.types.d.ts.map +1 -0
- package/lib/domain/types/iamEntities.types.d.ts +55 -0
- package/lib/domain/types/iamEntities.types.d.ts.map +1 -0
- package/lib/domain/types/index.d.ts +7 -318
- package/lib/domain/types/index.d.ts.map +1 -0
- package/lib/domain/types/organization.mapper.types.d.ts +18 -0
- package/lib/domain/types/organization.mapper.types.d.ts.map +1 -0
- package/lib/domain/types/permission.mapper.types.d.ts +22 -0
- package/lib/domain/types/permission.mapper.types.d.ts.map +1 -0
- package/lib/domain/types/role.mapper.types.d.ts +18 -0
- package/lib/domain/types/role.mapper.types.d.ts.map +1 -0
- package/lib/domain/types/user.mapper.types.d.ts +18 -0
- package/lib/domain/types/user.mapper.types.d.ts.map +1 -0
- package/lib/persistence/entities/index.d.ts +173 -0
- package/lib/persistence/entities/index.d.ts.map +1 -0
- package/lib/services/index.d.ts +5 -101
- package/lib/services/index.d.ts.map +1 -0
- package/lib/services/organization.service.d.ts +24 -0
- package/lib/services/organization.service.d.ts.map +1 -0
- package/lib/services/permission.service.d.ts +35 -0
- package/lib/services/permission.service.d.ts.map +1 -0
- package/lib/services/role.service.d.ts +28 -0
- package/lib/services/role.service.d.ts.map +1 -0
- package/lib/services/user.service.d.ts +41 -0
- package/lib/services/user.service.d.ts.map +1 -0
- package/package.json +34 -13
- package/lib/domain/schemas/index.d.mts +0 -480
- package/lib/domain/types/index.d.mts +0 -318
- package/lib/services/index.d.mts +0 -103
|
@@ -1,318 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
UpdateOrganizationMapper: UpdateOrganizationDto;
|
|
9
|
-
};
|
|
10
|
-
type PermissionDtos = {
|
|
11
|
-
PermissionMapper: PermissionDto;
|
|
12
|
-
CreatePermissionMapper: CreatePermissionDto;
|
|
13
|
-
UpdatePermissionMapper: UpdatePermissionDto;
|
|
14
|
-
RoleEntityMapper: UpdateRoleDto;
|
|
15
|
-
};
|
|
16
|
-
type RoleDtos = {
|
|
17
|
-
RoleMapper: RoleDto;
|
|
18
|
-
CreateRoleMapper: CreateRoleDto;
|
|
19
|
-
UpdateRoleMapper: UpdateRoleDto;
|
|
20
|
-
};
|
|
21
|
-
type UserDtos = {
|
|
22
|
-
UserMapper: UserDto;
|
|
23
|
-
CreateUserMapper: CreateUserDto;
|
|
24
|
-
UpdateUserMapper: UpdateUserDto;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
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
|
-
primary: true;
|
|
30
|
-
} & {
|
|
31
|
-
readonly '~c': true;
|
|
32
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
33
|
-
readonly status: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions & {
|
|
34
|
-
readonly '~c': true;
|
|
35
|
-
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
36
|
-
}, undefined, never, never, false>, never, {
|
|
37
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
38
|
-
primary: true;
|
|
39
|
-
} & {
|
|
40
|
-
readonly '~c': true;
|
|
41
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
42
|
-
readonly status: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions & {
|
|
43
|
-
readonly '~c': true;
|
|
44
|
-
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
45
|
-
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
46
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
47
|
-
primary: true;
|
|
48
|
-
} & {
|
|
49
|
-
readonly '~c': true;
|
|
50
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
51
|
-
readonly status: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions & {
|
|
52
|
-
readonly '~c': true;
|
|
53
|
-
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
54
|
-
}, undefined, never, never, false>>, undefined>;
|
|
55
|
-
declare const Role: _mikro_orm_core.EntitySchemaWithMeta<"Role", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
56
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
57
|
-
primary: true;
|
|
58
|
-
} & {
|
|
59
|
-
readonly '~c': true;
|
|
60
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
61
|
-
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
62
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
63
|
-
primary: true;
|
|
64
|
-
} & {
|
|
65
|
-
readonly '~c': true;
|
|
66
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
67
|
-
readonly slug: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions & {
|
|
68
|
-
readonly '~c': true;
|
|
69
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
70
|
-
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
71
|
-
kind: "m:n";
|
|
72
|
-
}>;
|
|
73
|
-
}, undefined, never, never, false>, never, {
|
|
74
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
75
|
-
primary: true;
|
|
76
|
-
} & {
|
|
77
|
-
readonly '~c': true;
|
|
78
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
79
|
-
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
80
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
81
|
-
primary: true;
|
|
82
|
-
} & {
|
|
83
|
-
readonly '~c': true;
|
|
84
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
85
|
-
readonly slug: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions & {
|
|
86
|
-
readonly '~c': true;
|
|
87
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
88
|
-
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
89
|
-
kind: "m:n";
|
|
90
|
-
}>;
|
|
91
|
-
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
92
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
93
|
-
primary: true;
|
|
94
|
-
} & {
|
|
95
|
-
readonly '~c': true;
|
|
96
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
97
|
-
readonly permissions: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
98
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
99
|
-
primary: true;
|
|
100
|
-
} & {
|
|
101
|
-
readonly '~c': true;
|
|
102
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
103
|
-
readonly slug: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions & {
|
|
104
|
-
readonly '~c': true;
|
|
105
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
106
|
-
}, undefined, never, never, false>, _mikro_orm_core.EmptyOptions & {
|
|
107
|
-
kind: "m:n";
|
|
108
|
-
}>;
|
|
109
|
-
}, undefined, never, never, false>>, undefined>;
|
|
110
|
-
declare const Permission: _mikro_orm_core.EntitySchemaWithMeta<"Permission", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
111
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
112
|
-
primary: true;
|
|
113
|
-
} & {
|
|
114
|
-
readonly '~c': true;
|
|
115
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
116
|
-
readonly slug: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions & {
|
|
117
|
-
readonly '~c': true;
|
|
118
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
119
|
-
}, undefined, never, never, false>, never, {
|
|
120
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
121
|
-
primary: true;
|
|
122
|
-
} & {
|
|
123
|
-
readonly '~c': true;
|
|
124
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
125
|
-
readonly slug: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions & {
|
|
126
|
-
readonly '~c': true;
|
|
127
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
128
|
-
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
129
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
130
|
-
primary: true;
|
|
131
|
-
} & {
|
|
132
|
-
readonly '~c': true;
|
|
133
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
134
|
-
readonly slug: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, _mikro_orm_core.EmptyOptions & {
|
|
135
|
-
readonly '~c': true;
|
|
136
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
137
|
-
}, undefined, never, never, false>>, undefined>;
|
|
138
|
-
declare const User: _mikro_orm_core.EntitySchemaWithMeta<"User", string, _mikro_orm_core.InferEntityFromProperties<{
|
|
139
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
140
|
-
primary: true;
|
|
141
|
-
} & {
|
|
142
|
-
readonly '~c': true;
|
|
143
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
144
|
-
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
145
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
146
|
-
primary: true;
|
|
147
|
-
} & {
|
|
148
|
-
readonly '~c': true;
|
|
149
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
150
|
-
readonly status: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions & {
|
|
151
|
-
readonly '~c': true;
|
|
152
|
-
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
153
|
-
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
154
|
-
kind: "m:1";
|
|
155
|
-
}, "nullable"> & {
|
|
156
|
-
nullable: true;
|
|
157
|
-
}>;
|
|
158
|
-
}, undefined, never, never, false>, never, {
|
|
159
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
160
|
-
primary: true;
|
|
161
|
-
} & {
|
|
162
|
-
readonly '~c': true;
|
|
163
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
164
|
-
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
165
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
166
|
-
primary: true;
|
|
167
|
-
} & {
|
|
168
|
-
readonly '~c': true;
|
|
169
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
170
|
-
readonly status: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions & {
|
|
171
|
-
readonly '~c': true;
|
|
172
|
-
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
173
|
-
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
174
|
-
kind: "m:1";
|
|
175
|
-
}, "nullable"> & {
|
|
176
|
-
nullable: true;
|
|
177
|
-
}>;
|
|
178
|
-
}, _mikro_orm_core.EntityCtor<_mikro_orm_core.InferEntityFromProperties<{
|
|
179
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
180
|
-
primary: true;
|
|
181
|
-
} & {
|
|
182
|
-
readonly '~c': true;
|
|
183
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
184
|
-
readonly organization: () => _mikro_orm_core.PropertyChain<_mikro_orm_core.InferEntityFromProperties<{
|
|
185
|
-
readonly id: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<string, Omit<_mikro_orm_core.EmptyOptions, "primary"> & {
|
|
186
|
-
primary: true;
|
|
187
|
-
} & {
|
|
188
|
-
readonly '~c': true;
|
|
189
|
-
}, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>, keyof _mikro_orm_core.PropertyOptions<any> | ("~options" | "~type" | "$type" | "strictNullable")>;
|
|
190
|
-
readonly status: Pick<_mikro_orm_core.UniversalPropertyOptionsBuilder<any, _mikro_orm_core.EmptyOptions & {
|
|
191
|
-
readonly '~c': true;
|
|
192
|
-
}, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">, "name" | "serializedPrimaryKey" | "comment" | "array" | "fieldName" | "fieldNames" | "columnType" | "columnTypes" | "type" | "runtimeType" | "length" | "precision" | "scale" | "autoincrement" | "returning" | "onCreate" | "onUpdate" | "default" | "defaultRaw" | "formula" | "generated" | "nullable" | "unsigned" | "persist" | "hydrate" | "ref" | "hidden" | "version" | "concurrencyCheck" | "index" | "unique" | "check" | "lazy" | "primary" | "setter" | "getter" | "getterName" | "accessor" | "serializer" | "serializedName" | "groups" | "customOrder" | "extra" | "ignoreSchemaChanges" | "compliance" | ("~options" | "~type" | "$type" | "strictNullable") | "nativeEnumName">;
|
|
193
|
-
}, undefined, never, never, false>, Omit<_mikro_orm_core.EmptyOptions & {
|
|
194
|
-
kind: "m:1";
|
|
195
|
-
}, "nullable"> & {
|
|
196
|
-
nullable: true;
|
|
197
|
-
}>;
|
|
198
|
-
}, undefined, never, never, false>>, undefined>;
|
|
199
|
-
|
|
200
|
-
type OrganizationEntities<OrganizationStatus> = {
|
|
201
|
-
OrganizationMapper: {
|
|
202
|
-
'~entity': (typeof Organization)['~entity'] & {
|
|
203
|
-
status: OrganizationStatus[keyof OrganizationStatus];
|
|
204
|
-
};
|
|
205
|
-
};
|
|
206
|
-
CreateOrganizationMapper: {
|
|
207
|
-
'~entity': (typeof Organization)['~entity'] & {
|
|
208
|
-
status: OrganizationStatus[keyof OrganizationStatus];
|
|
209
|
-
};
|
|
210
|
-
};
|
|
211
|
-
UpdateOrganizationMapper: {
|
|
212
|
-
'~entity': (typeof Organization)['~entity'] & {
|
|
213
|
-
status: OrganizationStatus[keyof OrganizationStatus];
|
|
214
|
-
};
|
|
215
|
-
};
|
|
216
|
-
};
|
|
217
|
-
type PermissionEntities = {
|
|
218
|
-
PermissionMapper: {
|
|
219
|
-
'~entity': (typeof Permission)['~entity'];
|
|
220
|
-
};
|
|
221
|
-
CreatePermissionMapper: {
|
|
222
|
-
'~entity': (typeof Permission)['~entity'];
|
|
223
|
-
};
|
|
224
|
-
UpdatePermissionMapper: {
|
|
225
|
-
'~entity': (typeof Permission)['~entity'];
|
|
226
|
-
};
|
|
227
|
-
RoleEntityMapper: {
|
|
228
|
-
'~entity': (typeof Role)['~entity'];
|
|
229
|
-
};
|
|
230
|
-
};
|
|
231
|
-
type RoleEntities = {
|
|
232
|
-
RoleMapper: {
|
|
233
|
-
'~entity': (typeof Role)['~entity'];
|
|
234
|
-
};
|
|
235
|
-
CreateRoleMapper: {
|
|
236
|
-
'~entity': (typeof Role)['~entity'];
|
|
237
|
-
};
|
|
238
|
-
UpdateRoleMapper: {
|
|
239
|
-
'~entity': (typeof Role)['~entity'];
|
|
240
|
-
};
|
|
241
|
-
};
|
|
242
|
-
type UserEntities = {
|
|
243
|
-
UserMapper: {
|
|
244
|
-
'~entity': (typeof User)['~entity'];
|
|
245
|
-
};
|
|
246
|
-
CreateUserMapper: {
|
|
247
|
-
'~entity': (typeof User)['~entity'];
|
|
248
|
-
};
|
|
249
|
-
UpdateUserMapper: {
|
|
250
|
-
'~entity': (typeof User)['~entity'];
|
|
251
|
-
};
|
|
252
|
-
};
|
|
253
|
-
|
|
254
|
-
type OrganizationMappers<OrganizationStatus, MapperEntities extends OrganizationEntities<OrganizationStatus>, MapperDomains extends OrganizationDtos<OrganizationStatus>> = {
|
|
255
|
-
OrganizationMapper: {
|
|
256
|
-
entity: MapperEntities['OrganizationMapper'];
|
|
257
|
-
toDto: (entity: InferEntity<MapperEntities['OrganizationMapper']>) => Promise<MapperDomains['OrganizationMapper']>;
|
|
258
|
-
};
|
|
259
|
-
CreateOrganizationMapper: {
|
|
260
|
-
entity: MapperEntities['CreateOrganizationMapper'];
|
|
261
|
-
toEntity: (dto: MapperDomains['CreateOrganizationMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateOrganizationMapper']>>;
|
|
262
|
-
};
|
|
263
|
-
UpdateOrganizationMapper: {
|
|
264
|
-
entity: MapperEntities['UpdateOrganizationMapper'];
|
|
265
|
-
toEntity: (dto: MapperDomains['UpdateOrganizationMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateOrganizationMapper']>>;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
|
|
269
|
-
type PermissionMappers<MapperEntities extends PermissionEntities, MapperDomains extends PermissionDtos> = {
|
|
270
|
-
PermissionMapper: {
|
|
271
|
-
entity: MapperEntities['PermissionMapper'];
|
|
272
|
-
toDto: (entity: InferEntity<MapperEntities['PermissionMapper']>) => Promise<MapperDomains['PermissionMapper']>;
|
|
273
|
-
};
|
|
274
|
-
CreatePermissionMapper: {
|
|
275
|
-
entity: MapperEntities['CreatePermissionMapper'];
|
|
276
|
-
toEntity: (dto: MapperDomains['CreatePermissionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreatePermissionMapper']>>;
|
|
277
|
-
};
|
|
278
|
-
UpdatePermissionMapper: {
|
|
279
|
-
entity: MapperEntities['UpdatePermissionMapper'];
|
|
280
|
-
toEntity: (dto: MapperDomains['UpdatePermissionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdatePermissionMapper']>>;
|
|
281
|
-
};
|
|
282
|
-
RoleEntityMapper: {
|
|
283
|
-
entity: MapperEntities['RoleEntityMapper'];
|
|
284
|
-
toEntity: (dto: MapperDomains['RoleEntityMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['RoleEntityMapper']>>;
|
|
285
|
-
};
|
|
286
|
-
};
|
|
287
|
-
|
|
288
|
-
type RoleMappers<MapperEntities extends RoleEntities, MapperDomains extends RoleDtos> = {
|
|
289
|
-
RoleMapper: {
|
|
290
|
-
entity: MapperEntities['RoleMapper'];
|
|
291
|
-
toDto: (entity: InferEntity<MapperEntities['RoleMapper']>) => Promise<MapperDomains['RoleMapper']>;
|
|
292
|
-
};
|
|
293
|
-
CreateRoleMapper: {
|
|
294
|
-
entity: MapperEntities['CreateRoleMapper'];
|
|
295
|
-
toEntity: (dto: MapperDomains['CreateRoleMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateRoleMapper']>>;
|
|
296
|
-
};
|
|
297
|
-
UpdateRoleMapper: {
|
|
298
|
-
entity: MapperEntities['UpdateRoleMapper'];
|
|
299
|
-
toEntity: (dto: MapperDomains['UpdateRoleMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateRoleMapper']>>;
|
|
300
|
-
};
|
|
301
|
-
};
|
|
302
|
-
|
|
303
|
-
type UserMappers<MapperEntities extends UserEntities, MapperDomains extends UserDtos> = {
|
|
304
|
-
UserMapper: {
|
|
305
|
-
entity: MapperEntities['UserMapper'];
|
|
306
|
-
toDto: (entity: InferEntity<MapperEntities['UserMapper']>) => Promise<MapperDomains['UserMapper']>;
|
|
307
|
-
};
|
|
308
|
-
CreateUserMapper: {
|
|
309
|
-
entity: MapperEntities['CreateUserMapper'];
|
|
310
|
-
toEntity: (dto: MapperDomains['CreateUserMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateUserMapper']>>;
|
|
311
|
-
};
|
|
312
|
-
UpdateUserMapper: {
|
|
313
|
-
entity: MapperEntities['UpdateUserMapper'];
|
|
314
|
-
toEntity: (dto: MapperDomains['UpdateUserMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateUserMapper']>>;
|
|
315
|
-
};
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
export type { OrganizationDtos, OrganizationEntities, OrganizationMappers, PermissionDtos, PermissionEntities, PermissionMappers, RoleDtos, RoleEntities, RoleMappers, UserDtos, UserEntities, UserMappers };
|
|
1
|
+
export * from './iamDto.types';
|
|
2
|
+
export * from './iamEntities.types';
|
|
3
|
+
export * from './organization.mapper.types';
|
|
4
|
+
export * from './permission.mapper.types';
|
|
5
|
+
export * from './role.mapper.types';
|
|
6
|
+
export * from './user.mapper.types';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../domain/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntityManager, InferEntity } from '@mikro-orm/core';
|
|
2
|
+
import { OrganizationDtos } from './iamDto.types';
|
|
3
|
+
import { OrganizationEntities } from './iamEntities.types';
|
|
4
|
+
export type OrganizationMappers<OrganizationStatus, MapperEntities extends OrganizationEntities<OrganizationStatus>, MapperDomains extends OrganizationDtos<OrganizationStatus>> = {
|
|
5
|
+
OrganizationMapper: {
|
|
6
|
+
entity: MapperEntities['OrganizationMapper'];
|
|
7
|
+
toDto: (entity: InferEntity<MapperEntities['OrganizationMapper']>) => Promise<MapperDomains['OrganizationMapper']>;
|
|
8
|
+
};
|
|
9
|
+
CreateOrganizationMapper: {
|
|
10
|
+
entity: MapperEntities['CreateOrganizationMapper'];
|
|
11
|
+
toEntity: (dto: MapperDomains['CreateOrganizationMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateOrganizationMapper']>>;
|
|
12
|
+
};
|
|
13
|
+
UpdateOrganizationMapper: {
|
|
14
|
+
entity: MapperEntities['UpdateOrganizationMapper'];
|
|
15
|
+
toEntity: (dto: MapperDomains['UpdateOrganizationMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateOrganizationMapper']>>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=organization.mapper.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"organization.mapper.types.d.ts","sourceRoot":"","sources":["../../../domain/types/organization.mapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,mBAAmB,CAC7B,kBAAkB,EAClB,cAAc,SAAS,oBAAoB,CAAC,kBAAkB,CAAC,EAC/D,aAAa,SAAS,gBAAgB,CAAC,kBAAkB,CAAC,IACxD;IACF,kBAAkB,EAAE;QAClB,MAAM,EAAE,cAAc,CAAC,oBAAoB,CAAC,CAAC;QAC7C,KAAK,EAAE,CACL,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC,KACtD,OAAO,CAAC,aAAa,CAAC,oBAAoB,CAAC,CAAC,CAAC;KACnD,CAAC;IACF,wBAAwB,EAAE;QACxB,MAAM,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;QACnD,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,0BAA0B,CAAC,EAC9C,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;KACvE,CAAC;IACF,wBAAwB,EAAE;QACxB,MAAM,EAAE,cAAc,CAAC,0BAA0B,CAAC,CAAC;QACnD,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,0BAA0B,CAAC,EAC9C,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,0BAA0B,CAAC,CAAC,CAAC,CAAC;KACvE,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EntityManager, InferEntity } from '@mikro-orm/core';
|
|
2
|
+
import { PermissionDtos } from './iamDto.types';
|
|
3
|
+
import { PermissionEntities } from './iamEntities.types';
|
|
4
|
+
export type PermissionMappers<MapperEntities extends PermissionEntities, MapperDomains extends PermissionDtos> = {
|
|
5
|
+
PermissionMapper: {
|
|
6
|
+
entity: MapperEntities['PermissionMapper'];
|
|
7
|
+
toDto: (entity: InferEntity<MapperEntities['PermissionMapper']>) => Promise<MapperDomains['PermissionMapper']>;
|
|
8
|
+
};
|
|
9
|
+
CreatePermissionMapper: {
|
|
10
|
+
entity: MapperEntities['CreatePermissionMapper'];
|
|
11
|
+
toEntity: (dto: MapperDomains['CreatePermissionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreatePermissionMapper']>>;
|
|
12
|
+
};
|
|
13
|
+
UpdatePermissionMapper: {
|
|
14
|
+
entity: MapperEntities['UpdatePermissionMapper'];
|
|
15
|
+
toEntity: (dto: MapperDomains['UpdatePermissionMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdatePermissionMapper']>>;
|
|
16
|
+
};
|
|
17
|
+
RoleEntityMapper: {
|
|
18
|
+
entity: MapperEntities['RoleEntityMapper'];
|
|
19
|
+
toEntity: (dto: MapperDomains['RoleEntityMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['RoleEntityMapper']>>;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=permission.mapper.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permission.mapper.types.d.ts","sourceRoot":"","sources":["../../../domain/types/permission.mapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,MAAM,MAAM,iBAAiB,CAC3B,cAAc,SAAS,kBAAkB,EACzC,aAAa,SAAS,cAAc,IAClC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAC3C,KAAK,EAAE,CACL,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,KACpD,OAAO,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC,CAAC;KACjD,CAAC;IACF,sBAAsB,EAAE;QACtB,MAAM,EAAE,cAAc,CAAC,wBAAwB,CAAC,CAAC;QACjD,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,wBAAwB,CAAC,EAC5C,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;KACrE,CAAC;IACF,sBAAsB,EAAE;QACtB,MAAM,EAAE,cAAc,CAAC,wBAAwB,CAAC,CAAC;QACjD,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,wBAAwB,CAAC,EAC5C,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,wBAAwB,CAAC,CAAC,CAAC,CAAC;KACrE,CAAC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAC3C,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,kBAAkB,CAAC,EACtC,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntityManager, InferEntity } from '@mikro-orm/core';
|
|
2
|
+
import { RoleDtos } from './iamDto.types';
|
|
3
|
+
import { RoleEntities } from './iamEntities.types';
|
|
4
|
+
export type RoleMappers<MapperEntities extends RoleEntities, MapperDomains extends RoleDtos> = {
|
|
5
|
+
RoleMapper: {
|
|
6
|
+
entity: MapperEntities['RoleMapper'];
|
|
7
|
+
toDto: (entity: InferEntity<MapperEntities['RoleMapper']>) => Promise<MapperDomains['RoleMapper']>;
|
|
8
|
+
};
|
|
9
|
+
CreateRoleMapper: {
|
|
10
|
+
entity: MapperEntities['CreateRoleMapper'];
|
|
11
|
+
toEntity: (dto: MapperDomains['CreateRoleMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateRoleMapper']>>;
|
|
12
|
+
};
|
|
13
|
+
UpdateRoleMapper: {
|
|
14
|
+
entity: MapperEntities['UpdateRoleMapper'];
|
|
15
|
+
toEntity: (dto: MapperDomains['UpdateRoleMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateRoleMapper']>>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=role.mapper.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"role.mapper.types.d.ts","sourceRoot":"","sources":["../../../domain/types/role.mapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,WAAW,CACrB,cAAc,SAAS,YAAY,EACnC,aAAa,SAAS,QAAQ,IAC5B;IACF,UAAU,EAAE;QACV,MAAM,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;QACrC,KAAK,EAAE,CACL,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAC9C,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;KAC3C,CAAC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAC3C,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,kBAAkB,CAAC,EACtC,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAC3C,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,kBAAkB,CAAC,EACtC,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { EntityManager, InferEntity } from '@mikro-orm/core';
|
|
2
|
+
import { UserDtos } from './iamDto.types';
|
|
3
|
+
import { UserEntities } from './iamEntities.types';
|
|
4
|
+
export type UserMappers<MapperEntities extends UserEntities, MapperDomains extends UserDtos> = {
|
|
5
|
+
UserMapper: {
|
|
6
|
+
entity: MapperEntities['UserMapper'];
|
|
7
|
+
toDto: (entity: InferEntity<MapperEntities['UserMapper']>) => Promise<MapperDomains['UserMapper']>;
|
|
8
|
+
};
|
|
9
|
+
CreateUserMapper: {
|
|
10
|
+
entity: MapperEntities['CreateUserMapper'];
|
|
11
|
+
toEntity: (dto: MapperDomains['CreateUserMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['CreateUserMapper']>>;
|
|
12
|
+
};
|
|
13
|
+
UpdateUserMapper: {
|
|
14
|
+
entity: MapperEntities['UpdateUserMapper'];
|
|
15
|
+
toEntity: (dto: MapperDomains['UpdateUserMapper'], em: EntityManager, ...args: unknown[]) => Promise<InferEntity<MapperEntities['UpdateUserMapper']>>;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=user.mapper.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.mapper.types.d.ts","sourceRoot":"","sources":["../../../domain/types/user.mapper.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEnD,MAAM,MAAM,WAAW,CACrB,cAAc,SAAS,YAAY,EACnC,aAAa,SAAS,QAAQ,IAC5B;IACF,UAAU,EAAE;QACV,MAAM,EAAE,cAAc,CAAC,YAAY,CAAC,CAAC;QACrC,KAAK,EAAE,CACL,MAAM,EAAE,WAAW,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC,KAC9C,OAAO,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC;KAC3C,CAAC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAC3C,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,kBAAkB,CAAC,EACtC,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;IACF,gBAAgB,EAAE;QAChB,MAAM,EAAE,cAAc,CAAC,kBAAkB,CAAC,CAAC;QAC3C,QAAQ,EAAE,CACR,GAAG,EAAE,aAAa,CAAC,kBAAkB,CAAC,EACtC,EAAE,EAAE,aAAa,EACjB,GAAG,IAAI,EAAE,OAAO,EAAE,KACf,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;KAC/D,CAAC;CACH,CAAC"}
|