@forklaunch/interfaces-iam 0.3.1 → 0.3.4
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/eject/domain/types/organization.service.types.ts +5 -5
- package/lib/eject/domain/types/permission.service.types.ts +7 -5
- package/lib/eject/domain/types/role.service.types.ts +6 -6
- package/lib/eject/domain/types/user.service.types.ts +9 -6
- package/lib/types/index.d.mts +18 -17
- package/lib/types/index.d.ts +18 -17
- package/package.json +5 -5
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { IdDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
import { UserDto } from './user.service.types';
|
|
3
3
|
|
|
4
|
-
export type CreateOrganizationDto = {
|
|
4
|
+
export type CreateOrganizationDto = Partial<IdDto> & {
|
|
5
5
|
name: string;
|
|
6
6
|
domain: string;
|
|
7
7
|
subscription: string;
|
|
8
8
|
logoUrl?: string;
|
|
9
|
-
|
|
9
|
+
providerFields?: unknown;
|
|
10
10
|
};
|
|
11
|
-
export type UpdateOrganizationDto =
|
|
12
|
-
export type OrganizationDto<OrganizationStatus> =
|
|
13
|
-
|
|
11
|
+
export type UpdateOrganizationDto = Partial<CreateOrganizationDto> & IdDto;
|
|
12
|
+
export type OrganizationDto<OrganizationStatus> = CreateOrganizationDto &
|
|
13
|
+
IdDto &
|
|
14
14
|
Partial<RecordTimingDto> & {
|
|
15
15
|
users: UserDto[];
|
|
16
16
|
status: OrganizationStatus[keyof OrganizationStatus];
|
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
|
|
3
|
-
export type CreatePermissionDto = {
|
|
3
|
+
export type CreatePermissionDto = Partial<IdDto> & {
|
|
4
4
|
slug: string;
|
|
5
5
|
addToRolesIds?: string[];
|
|
6
|
-
|
|
6
|
+
providerFields?: unknown;
|
|
7
7
|
};
|
|
8
|
-
export type UpdatePermissionDto =
|
|
9
|
-
|
|
8
|
+
export type UpdatePermissionDto = Partial<CreatePermissionDto> &
|
|
9
|
+
IdDto & {
|
|
10
10
|
removeFromRolesIds?: string[];
|
|
11
11
|
};
|
|
12
|
-
export type PermissionDto =
|
|
12
|
+
export type PermissionDto = CreatePermissionDto &
|
|
13
|
+
IdDto &
|
|
13
14
|
Partial<RecordTimingDto> & {
|
|
14
15
|
slug: string;
|
|
16
|
+
providerFields?: unknown;
|
|
15
17
|
};
|
|
16
18
|
|
|
17
19
|
export type PermissionServiceParameters = {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
import { PermissionDto } from './permission.service.types';
|
|
3
3
|
|
|
4
|
-
export type CreateRoleDto = {
|
|
4
|
+
export type CreateRoleDto = Partial<IdDto> & {
|
|
5
5
|
name: string;
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
permissionIds?: string[];
|
|
7
|
+
providerFields?: unknown;
|
|
8
8
|
};
|
|
9
|
-
export type UpdateRoleDto =
|
|
10
|
-
export type RoleDto =
|
|
11
|
-
|
|
9
|
+
export type UpdateRoleDto = Partial<CreateRoleDto> & IdDto;
|
|
10
|
+
export type RoleDto = Omit<CreateRoleDto, 'permissionIds'> &
|
|
11
|
+
IdDto &
|
|
12
12
|
Partial<RecordTimingDto> & {
|
|
13
13
|
permissions: PermissionDto[];
|
|
14
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
import { RoleDto } from './role.service.types';
|
|
3
3
|
|
|
4
|
-
export type CreateUserDto = {
|
|
4
|
+
export type CreateUserDto = Partial<IdDto> & {
|
|
5
5
|
email: string;
|
|
6
6
|
password: string;
|
|
7
7
|
firstName: string;
|
|
@@ -10,13 +10,16 @@ export type CreateUserDto = {
|
|
|
10
10
|
roleIds: string[];
|
|
11
11
|
phoneNumber?: string;
|
|
12
12
|
subscription?: string;
|
|
13
|
-
|
|
13
|
+
providerFields?: unknown;
|
|
14
14
|
};
|
|
15
|
-
export type UpdateUserDto =
|
|
16
|
-
|
|
15
|
+
export type UpdateUserDto = Partial<Omit<CreateUserDto, 'organizationId'>> &
|
|
16
|
+
IdDto;
|
|
17
17
|
|
|
18
|
-
export type UserDto =
|
|
19
|
-
|
|
18
|
+
export type UserDto = Omit<
|
|
19
|
+
CreateUserDto,
|
|
20
|
+
'roleIds' | 'password' | 'organizationId'
|
|
21
|
+
> &
|
|
22
|
+
IdDto &
|
|
20
23
|
Partial<RecordTimingDto> & {
|
|
21
24
|
roles: RoleDto[];
|
|
22
25
|
};
|
package/lib/types/index.d.mts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { IdDto, RecordTimingDto, IdsDto } from '@forklaunch/common';
|
|
2
2
|
|
|
3
|
-
type CreatePermissionDto = {
|
|
3
|
+
type CreatePermissionDto = Partial<IdDto> & {
|
|
4
4
|
slug: string;
|
|
5
5
|
addToRolesIds?: string[];
|
|
6
|
-
|
|
6
|
+
providerFields?: unknown;
|
|
7
7
|
};
|
|
8
|
-
type UpdatePermissionDto =
|
|
8
|
+
type UpdatePermissionDto = Partial<CreatePermissionDto> & IdDto & {
|
|
9
9
|
removeFromRolesIds?: string[];
|
|
10
10
|
};
|
|
11
|
-
type PermissionDto = IdDto & Partial<RecordTimingDto> & {
|
|
11
|
+
type PermissionDto = CreatePermissionDto & IdDto & Partial<RecordTimingDto> & {
|
|
12
12
|
slug: string;
|
|
13
|
+
providerFields?: unknown;
|
|
13
14
|
};
|
|
14
15
|
type PermissionServiceParameters = {
|
|
15
16
|
CreatePermissionDto: CreatePermissionDto;
|
|
@@ -19,13 +20,13 @@ type PermissionServiceParameters = {
|
|
|
19
20
|
IdsDto: IdsDto;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
type CreateRoleDto = {
|
|
23
|
+
type CreateRoleDto = Partial<IdDto> & {
|
|
23
24
|
name: string;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
permissionIds?: string[];
|
|
26
|
+
providerFields?: unknown;
|
|
26
27
|
};
|
|
27
|
-
type UpdateRoleDto =
|
|
28
|
-
type RoleDto =
|
|
28
|
+
type UpdateRoleDto = Partial<CreateRoleDto> & IdDto;
|
|
29
|
+
type RoleDto = Omit<CreateRoleDto, 'permissionIds'> & IdDto & Partial<RecordTimingDto> & {
|
|
29
30
|
permissions: PermissionDto[];
|
|
30
31
|
};
|
|
31
32
|
type RoleServiceParameters = {
|
|
@@ -36,7 +37,7 @@ type RoleServiceParameters = {
|
|
|
36
37
|
IdsDto: IdsDto;
|
|
37
38
|
};
|
|
38
39
|
|
|
39
|
-
type CreateUserDto = {
|
|
40
|
+
type CreateUserDto = Partial<IdDto> & {
|
|
40
41
|
email: string;
|
|
41
42
|
password: string;
|
|
42
43
|
firstName: string;
|
|
@@ -45,10 +46,10 @@ type CreateUserDto = {
|
|
|
45
46
|
roleIds: string[];
|
|
46
47
|
phoneNumber?: string;
|
|
47
48
|
subscription?: string;
|
|
48
|
-
|
|
49
|
+
providerFields?: unknown;
|
|
49
50
|
};
|
|
50
|
-
type UpdateUserDto =
|
|
51
|
-
type UserDto =
|
|
51
|
+
type UpdateUserDto = Partial<Omit<CreateUserDto, 'organizationId'>> & IdDto;
|
|
52
|
+
type UserDto = Omit<CreateUserDto, 'roleIds' | 'password' | 'organizationId'> & IdDto & Partial<RecordTimingDto> & {
|
|
52
53
|
roles: RoleDto[];
|
|
53
54
|
};
|
|
54
55
|
type UserServiceParameters = {
|
|
@@ -59,15 +60,15 @@ type UserServiceParameters = {
|
|
|
59
60
|
IdsDto: IdsDto;
|
|
60
61
|
};
|
|
61
62
|
|
|
62
|
-
type CreateOrganizationDto = {
|
|
63
|
+
type CreateOrganizationDto = Partial<IdDto> & {
|
|
63
64
|
name: string;
|
|
64
65
|
domain: string;
|
|
65
66
|
subscription: string;
|
|
66
67
|
logoUrl?: string;
|
|
67
|
-
|
|
68
|
+
providerFields?: unknown;
|
|
68
69
|
};
|
|
69
|
-
type UpdateOrganizationDto =
|
|
70
|
-
type OrganizationDto<OrganizationStatus> =
|
|
70
|
+
type UpdateOrganizationDto = Partial<CreateOrganizationDto> & IdDto;
|
|
71
|
+
type OrganizationDto<OrganizationStatus> = CreateOrganizationDto & IdDto & Partial<RecordTimingDto> & {
|
|
71
72
|
users: UserDto[];
|
|
72
73
|
status: OrganizationStatus[keyof OrganizationStatus];
|
|
73
74
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import { IdDto, RecordTimingDto, IdsDto } from '@forklaunch/common';
|
|
2
2
|
|
|
3
|
-
type CreatePermissionDto = {
|
|
3
|
+
type CreatePermissionDto = Partial<IdDto> & {
|
|
4
4
|
slug: string;
|
|
5
5
|
addToRolesIds?: string[];
|
|
6
|
-
|
|
6
|
+
providerFields?: unknown;
|
|
7
7
|
};
|
|
8
|
-
type UpdatePermissionDto =
|
|
8
|
+
type UpdatePermissionDto = Partial<CreatePermissionDto> & IdDto & {
|
|
9
9
|
removeFromRolesIds?: string[];
|
|
10
10
|
};
|
|
11
|
-
type PermissionDto = IdDto & Partial<RecordTimingDto> & {
|
|
11
|
+
type PermissionDto = CreatePermissionDto & IdDto & Partial<RecordTimingDto> & {
|
|
12
12
|
slug: string;
|
|
13
|
+
providerFields?: unknown;
|
|
13
14
|
};
|
|
14
15
|
type PermissionServiceParameters = {
|
|
15
16
|
CreatePermissionDto: CreatePermissionDto;
|
|
@@ -19,13 +20,13 @@ type PermissionServiceParameters = {
|
|
|
19
20
|
IdsDto: IdsDto;
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
type CreateRoleDto = {
|
|
23
|
+
type CreateRoleDto = Partial<IdDto> & {
|
|
23
24
|
name: string;
|
|
24
|
-
|
|
25
|
-
|
|
25
|
+
permissionIds?: string[];
|
|
26
|
+
providerFields?: unknown;
|
|
26
27
|
};
|
|
27
|
-
type UpdateRoleDto =
|
|
28
|
-
type RoleDto =
|
|
28
|
+
type UpdateRoleDto = Partial<CreateRoleDto> & IdDto;
|
|
29
|
+
type RoleDto = Omit<CreateRoleDto, 'permissionIds'> & IdDto & Partial<RecordTimingDto> & {
|
|
29
30
|
permissions: PermissionDto[];
|
|
30
31
|
};
|
|
31
32
|
type RoleServiceParameters = {
|
|
@@ -36,7 +37,7 @@ type RoleServiceParameters = {
|
|
|
36
37
|
IdsDto: IdsDto;
|
|
37
38
|
};
|
|
38
39
|
|
|
39
|
-
type CreateUserDto = {
|
|
40
|
+
type CreateUserDto = Partial<IdDto> & {
|
|
40
41
|
email: string;
|
|
41
42
|
password: string;
|
|
42
43
|
firstName: string;
|
|
@@ -45,10 +46,10 @@ type CreateUserDto = {
|
|
|
45
46
|
roleIds: string[];
|
|
46
47
|
phoneNumber?: string;
|
|
47
48
|
subscription?: string;
|
|
48
|
-
|
|
49
|
+
providerFields?: unknown;
|
|
49
50
|
};
|
|
50
|
-
type UpdateUserDto =
|
|
51
|
-
type UserDto =
|
|
51
|
+
type UpdateUserDto = Partial<Omit<CreateUserDto, 'organizationId'>> & IdDto;
|
|
52
|
+
type UserDto = Omit<CreateUserDto, 'roleIds' | 'password' | 'organizationId'> & IdDto & Partial<RecordTimingDto> & {
|
|
52
53
|
roles: RoleDto[];
|
|
53
54
|
};
|
|
54
55
|
type UserServiceParameters = {
|
|
@@ -59,15 +60,15 @@ type UserServiceParameters = {
|
|
|
59
60
|
IdsDto: IdsDto;
|
|
60
61
|
};
|
|
61
62
|
|
|
62
|
-
type CreateOrganizationDto = {
|
|
63
|
+
type CreateOrganizationDto = Partial<IdDto> & {
|
|
63
64
|
name: string;
|
|
64
65
|
domain: string;
|
|
65
66
|
subscription: string;
|
|
66
67
|
logoUrl?: string;
|
|
67
|
-
|
|
68
|
+
providerFields?: unknown;
|
|
68
69
|
};
|
|
69
|
-
type UpdateOrganizationDto =
|
|
70
|
-
type OrganizationDto<OrganizationStatus> =
|
|
70
|
+
type UpdateOrganizationDto = Partial<CreateOrganizationDto> & IdDto;
|
|
71
|
+
type OrganizationDto<OrganizationStatus> = CreateOrganizationDto & IdDto & Partial<RecordTimingDto> & {
|
|
71
72
|
users: UserDto[];
|
|
72
73
|
status: OrganizationStatus[keyof OrganizationStatus];
|
|
73
74
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/interfaces-iam",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "IAM interfaces for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -30,14 +30,14 @@
|
|
|
30
30
|
"lib/**"
|
|
31
31
|
],
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@forklaunch/common": "^0.
|
|
33
|
+
"@forklaunch/common": "^0.4.2",
|
|
34
34
|
"@mikro-orm/core": "^6.4.16"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
37
|
+
"@typescript/native-preview": "7.0.0-dev.20250703.1",
|
|
38
38
|
"depcheck": "^1.4.7",
|
|
39
|
-
"prettier": "^3.
|
|
40
|
-
"typedoc": "^0.28.
|
|
39
|
+
"prettier": "^3.6.2",
|
|
40
|
+
"typedoc": "^0.28.7"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsgo --noEmit && tsup interfaces/index.ts 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",
|