@forklaunch/interfaces-iam 0.2.3 → 0.3.0
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/interfaces/index.d.mts +47 -0
- package/lib/interfaces/index.d.ts +47 -5
- package/lib/interfaces/index.js +18 -4
- package/lib/interfaces/index.mjs +0 -0
- package/lib/types/index.d.mts +81 -0
- package/lib/types/index.d.ts +81 -5
- package/lib/types/index.js +18 -4
- package/lib/types/index.mjs +0 -0
- package/package.json +3 -2
- package/lib/interfaces/index.d.ts.map +0 -1
- package/lib/interfaces/organization.service.interface.d.ts +0 -22
- package/lib/interfaces/organization.service.interface.d.ts.map +0 -1
- package/lib/interfaces/organization.service.interface.js +0 -1
- package/lib/interfaces/permission.service.interface.d.ts +0 -36
- package/lib/interfaces/permission.service.interface.d.ts.map +0 -1
- package/lib/interfaces/permission.service.interface.js +0 -1
- package/lib/interfaces/role.service.interface.d.ts +0 -33
- package/lib/interfaces/role.service.interface.d.ts.map +0 -1
- package/lib/interfaces/role.service.interface.js +0 -1
- package/lib/interfaces/user.service.interface.d.ts +0 -43
- package/lib/interfaces/user.service.interface.d.ts.map +0 -1
- package/lib/interfaces/user.service.interface.js +0 -1
- package/lib/jest.config.d.ts +0 -4
- package/lib/jest.config.d.ts.map +0 -1
- package/lib/jest.config.js +0 -19
- package/lib/tsconfig.tsbuildinfo +0 -1
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/organization.service.types.d.ts +0 -23
- package/lib/types/organization.service.types.d.ts.map +0 -1
- package/lib/types/organization.service.types.js +0 -1
- package/lib/types/permission.service.types.d.ts +0 -22
- package/lib/types/permission.service.types.d.ts.map +0 -1
- package/lib/types/permission.service.types.js +0 -1
- package/lib/types/role.service.types.d.ts +0 -21
- package/lib/types/role.service.types.d.ts.map +0 -1
- package/lib/types/role.service.types.js +0 -1
- package/lib/types/user.service.types.d.ts +0 -28
- package/lib/types/user.service.types.d.ts.map +0 -1
- package/lib/types/user.service.types.js +0 -1
- package/lib/vitest.config.d.ts +0 -3
- package/lib/vitest.config.d.ts.map +0 -1
- package/lib/vitest.config.js +0 -7
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { EntityManager } from '@mikro-orm/core';
|
|
2
|
+
import { OrganizationServiceParameters, PermissionServiceParameters, RoleServiceParameters, UserServiceParameters } from '../types/index.mjs';
|
|
3
|
+
import '@forklaunch/common';
|
|
4
|
+
|
|
5
|
+
interface OrganizationService<OrganizationStatus, Params extends OrganizationServiceParameters<OrganizationStatus> = OrganizationServiceParameters<OrganizationStatus>> {
|
|
6
|
+
createOrganization(organizationDto: Params['CreateOrganizationDto'], em?: EntityManager): Promise<Params['OrganizationDto']>;
|
|
7
|
+
getOrganization(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['OrganizationDto']>;
|
|
8
|
+
updateOrganization(organizationDto: Params['UpdateOrganizationDto'], em?: EntityManager): Promise<Params['OrganizationDto']>;
|
|
9
|
+
deleteOrganization(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface PermissionService<Params extends PermissionServiceParameters = PermissionServiceParameters> {
|
|
13
|
+
createPermission(permissionDto: Params['CreatePermissionDto'], em?: EntityManager): Promise<Params['PermissionDto']>;
|
|
14
|
+
createBatchPermissions(permissionDtos: Params['CreatePermissionDto'][], em?: EntityManager): Promise<Params['PermissionDto'][]>;
|
|
15
|
+
getPermission(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['PermissionDto']>;
|
|
16
|
+
getBatchPermissions(idsDto: Params['IdsDto'], em?: EntityManager): Promise<Params['PermissionDto'][]>;
|
|
17
|
+
updatePermission(permissionDto: Params['UpdatePermissionDto'], em?: EntityManager): Promise<Params['PermissionDto']>;
|
|
18
|
+
updateBatchPermissions(permissionDtos: Params['UpdatePermissionDto'][], em?: EntityManager): Promise<Params['PermissionDto'][]>;
|
|
19
|
+
deletePermission(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
20
|
+
deleteBatchPermissions(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface RoleService<Params extends RoleServiceParameters = RoleServiceParameters> {
|
|
24
|
+
createRole(roleDto: Params['CreateRoleDto'], em?: EntityManager): Promise<Params['RoleDto']>;
|
|
25
|
+
createBatchRoles(roleDtos: Params['CreateRoleDto'][], em?: EntityManager): Promise<Params['RoleDto'][]>;
|
|
26
|
+
getRole(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['RoleDto']>;
|
|
27
|
+
getBatchRoles(idsDto: Params['IdsDto'], em?: EntityManager): Promise<Params['RoleDto'][]>;
|
|
28
|
+
updateRole(roleDto: Params['UpdateRoleDto'], em?: EntityManager): Promise<Params['RoleDto']>;
|
|
29
|
+
updateBatchRoles(roleDtos: Params['UpdateRoleDto'][], em?: EntityManager): Promise<Params['RoleDto'][]>;
|
|
30
|
+
deleteRole(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
31
|
+
deleteBatchRoles(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface UserService<Params extends UserServiceParameters = UserServiceParameters> {
|
|
35
|
+
createUser(userDto: Params['CreateUserDto'], em?: EntityManager): Promise<Params['UserDto']>;
|
|
36
|
+
createBatchUsers(userDtos: Params['CreateUserDto'][], em?: EntityManager): Promise<Params['UserDto'][]>;
|
|
37
|
+
getUser(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['UserDto']>;
|
|
38
|
+
getBatchUsers(idsDto: Params['IdsDto'], em?: EntityManager): Promise<Params['UserDto'][]>;
|
|
39
|
+
updateUser(userDto: Params['UpdateUserDto'], em?: EntityManager): Promise<Params['UserDto']>;
|
|
40
|
+
updateBatchUsers(userDtos: Params['UpdateUserDto'][], em?: EntityManager): Promise<Params['UserDto'][]>;
|
|
41
|
+
deleteUser(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
42
|
+
deleteBatchUsers(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
43
|
+
verifyHasRole(idDto: Params['IdDto'], roleId: string, em?: EntityManager): Promise<void>;
|
|
44
|
+
verifyHasPermission(idDto: Params['IdDto'], permissionId: string, em?: EntityManager): Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type { OrganizationService, PermissionService, RoleService, UserService };
|
|
@@ -1,5 +1,47 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { EntityManager } from '@mikro-orm/core';
|
|
2
|
+
import { OrganizationServiceParameters, PermissionServiceParameters, RoleServiceParameters, UserServiceParameters } from '../types/index.js';
|
|
3
|
+
import '@forklaunch/common';
|
|
4
|
+
|
|
5
|
+
interface OrganizationService<OrganizationStatus, Params extends OrganizationServiceParameters<OrganizationStatus> = OrganizationServiceParameters<OrganizationStatus>> {
|
|
6
|
+
createOrganization(organizationDto: Params['CreateOrganizationDto'], em?: EntityManager): Promise<Params['OrganizationDto']>;
|
|
7
|
+
getOrganization(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['OrganizationDto']>;
|
|
8
|
+
updateOrganization(organizationDto: Params['UpdateOrganizationDto'], em?: EntityManager): Promise<Params['OrganizationDto']>;
|
|
9
|
+
deleteOrganization(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface PermissionService<Params extends PermissionServiceParameters = PermissionServiceParameters> {
|
|
13
|
+
createPermission(permissionDto: Params['CreatePermissionDto'], em?: EntityManager): Promise<Params['PermissionDto']>;
|
|
14
|
+
createBatchPermissions(permissionDtos: Params['CreatePermissionDto'][], em?: EntityManager): Promise<Params['PermissionDto'][]>;
|
|
15
|
+
getPermission(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['PermissionDto']>;
|
|
16
|
+
getBatchPermissions(idsDto: Params['IdsDto'], em?: EntityManager): Promise<Params['PermissionDto'][]>;
|
|
17
|
+
updatePermission(permissionDto: Params['UpdatePermissionDto'], em?: EntityManager): Promise<Params['PermissionDto']>;
|
|
18
|
+
updateBatchPermissions(permissionDtos: Params['UpdatePermissionDto'][], em?: EntityManager): Promise<Params['PermissionDto'][]>;
|
|
19
|
+
deletePermission(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
20
|
+
deleteBatchPermissions(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
interface RoleService<Params extends RoleServiceParameters = RoleServiceParameters> {
|
|
24
|
+
createRole(roleDto: Params['CreateRoleDto'], em?: EntityManager): Promise<Params['RoleDto']>;
|
|
25
|
+
createBatchRoles(roleDtos: Params['CreateRoleDto'][], em?: EntityManager): Promise<Params['RoleDto'][]>;
|
|
26
|
+
getRole(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['RoleDto']>;
|
|
27
|
+
getBatchRoles(idsDto: Params['IdsDto'], em?: EntityManager): Promise<Params['RoleDto'][]>;
|
|
28
|
+
updateRole(roleDto: Params['UpdateRoleDto'], em?: EntityManager): Promise<Params['RoleDto']>;
|
|
29
|
+
updateBatchRoles(roleDtos: Params['UpdateRoleDto'][], em?: EntityManager): Promise<Params['RoleDto'][]>;
|
|
30
|
+
deleteRole(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
31
|
+
deleteBatchRoles(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
interface UserService<Params extends UserServiceParameters = UserServiceParameters> {
|
|
35
|
+
createUser(userDto: Params['CreateUserDto'], em?: EntityManager): Promise<Params['UserDto']>;
|
|
36
|
+
createBatchUsers(userDtos: Params['CreateUserDto'][], em?: EntityManager): Promise<Params['UserDto'][]>;
|
|
37
|
+
getUser(idDto: Params['IdDto'], em?: EntityManager): Promise<Params['UserDto']>;
|
|
38
|
+
getBatchUsers(idsDto: Params['IdsDto'], em?: EntityManager): Promise<Params['UserDto'][]>;
|
|
39
|
+
updateUser(userDto: Params['UpdateUserDto'], em?: EntityManager): Promise<Params['UserDto']>;
|
|
40
|
+
updateBatchUsers(userDtos: Params['UpdateUserDto'][], em?: EntityManager): Promise<Params['UserDto'][]>;
|
|
41
|
+
deleteUser(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
42
|
+
deleteBatchUsers(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
43
|
+
verifyHasRole(idDto: Params['IdDto'], roleId: string, em?: EntityManager): Promise<void>;
|
|
44
|
+
verifyHasPermission(idDto: Params['IdDto'], permissionId: string, em?: EntityManager): Promise<void>;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type { OrganizationService, PermissionService, RoleService, UserService };
|
package/lib/interfaces/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// interfaces/index.ts
|
|
17
|
+
var interfaces_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(interfaces_exports);
|
|
File without changes
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { IdDto, RecordTimingDto, IdsDto } from '@forklaunch/common';
|
|
2
|
+
|
|
3
|
+
type CreatePermissionDto = {
|
|
4
|
+
slug: string;
|
|
5
|
+
addToRolesIds?: string[];
|
|
6
|
+
extraFields?: unknown;
|
|
7
|
+
};
|
|
8
|
+
type UpdatePermissionDto = IdDto & Partial<CreatePermissionDto> & {
|
|
9
|
+
removeFromRolesIds?: string[];
|
|
10
|
+
};
|
|
11
|
+
type PermissionDto = IdDto & Partial<RecordTimingDto> & {
|
|
12
|
+
slug: string;
|
|
13
|
+
};
|
|
14
|
+
type PermissionServiceParameters = {
|
|
15
|
+
CreatePermissionDto: CreatePermissionDto;
|
|
16
|
+
PermissionDto: PermissionDto;
|
|
17
|
+
UpdatePermissionDto: UpdatePermissionDto;
|
|
18
|
+
IdDto: IdDto;
|
|
19
|
+
IdsDto: IdsDto;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
type CreateRoleDto = {
|
|
23
|
+
name: string;
|
|
24
|
+
permissionsIds?: PermissionDto[];
|
|
25
|
+
extraFields?: unknown;
|
|
26
|
+
};
|
|
27
|
+
type UpdateRoleDto = IdDto & Partial<CreateRoleDto>;
|
|
28
|
+
type RoleDto = IdDto & Omit<CreateRoleDto, 'permissionsIds'> & Partial<RecordTimingDto> & {
|
|
29
|
+
permissions: PermissionDto[];
|
|
30
|
+
};
|
|
31
|
+
type RoleServiceParameters = {
|
|
32
|
+
CreateRoleDto: CreateRoleDto;
|
|
33
|
+
RoleDto: RoleDto;
|
|
34
|
+
UpdateRoleDto: UpdateRoleDto;
|
|
35
|
+
IdDto: IdDto;
|
|
36
|
+
IdsDto: IdsDto;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type CreateUserDto = {
|
|
40
|
+
email: string;
|
|
41
|
+
password: string;
|
|
42
|
+
firstName: string;
|
|
43
|
+
lastName: string;
|
|
44
|
+
organizationId: string;
|
|
45
|
+
roleIds: string[];
|
|
46
|
+
phoneNumber?: string;
|
|
47
|
+
subscription?: string;
|
|
48
|
+
extraFields?: unknown;
|
|
49
|
+
};
|
|
50
|
+
type UpdateUserDto = IdDto & Partial<Omit<CreateUserDto, 'organizationId'>>;
|
|
51
|
+
type UserDto = IdDto & Omit<CreateUserDto, 'roleIds' | 'password' | 'organizationId'> & Partial<RecordTimingDto> & {
|
|
52
|
+
roles: RoleDto[];
|
|
53
|
+
};
|
|
54
|
+
type UserServiceParameters = {
|
|
55
|
+
CreateUserDto: CreateUserDto;
|
|
56
|
+
UserDto: UserDto;
|
|
57
|
+
UpdateUserDto: UpdateUserDto;
|
|
58
|
+
IdDto: IdDto;
|
|
59
|
+
IdsDto: IdsDto;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type CreateOrganizationDto = {
|
|
63
|
+
name: string;
|
|
64
|
+
domain: string;
|
|
65
|
+
subscription: string;
|
|
66
|
+
logoUrl?: string;
|
|
67
|
+
extraFields?: unknown;
|
|
68
|
+
};
|
|
69
|
+
type UpdateOrganizationDto = IdDto & Partial<CreateOrganizationDto>;
|
|
70
|
+
type OrganizationDto<OrganizationStatus> = IdDto & CreateOrganizationDto & Partial<RecordTimingDto> & {
|
|
71
|
+
users: UserDto[];
|
|
72
|
+
status: OrganizationStatus[keyof OrganizationStatus];
|
|
73
|
+
};
|
|
74
|
+
type OrganizationServiceParameters<OrganizationStatus> = {
|
|
75
|
+
CreateOrganizationDto: CreateOrganizationDto;
|
|
76
|
+
OrganizationDto: OrganizationDto<OrganizationStatus>;
|
|
77
|
+
UpdateOrganizationDto: UpdateOrganizationDto;
|
|
78
|
+
IdDto: IdDto;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type { CreateOrganizationDto, CreatePermissionDto, CreateRoleDto, CreateUserDto, OrganizationDto, OrganizationServiceParameters, PermissionDto, PermissionServiceParameters, RoleDto, RoleServiceParameters, UpdateOrganizationDto, UpdatePermissionDto, UpdateRoleDto, UpdateUserDto, UserDto, UserServiceParameters };
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { IdDto, RecordTimingDto, IdsDto } from '@forklaunch/common';
|
|
2
|
+
|
|
3
|
+
type CreatePermissionDto = {
|
|
4
|
+
slug: string;
|
|
5
|
+
addToRolesIds?: string[];
|
|
6
|
+
extraFields?: unknown;
|
|
7
|
+
};
|
|
8
|
+
type UpdatePermissionDto = IdDto & Partial<CreatePermissionDto> & {
|
|
9
|
+
removeFromRolesIds?: string[];
|
|
10
|
+
};
|
|
11
|
+
type PermissionDto = IdDto & Partial<RecordTimingDto> & {
|
|
12
|
+
slug: string;
|
|
13
|
+
};
|
|
14
|
+
type PermissionServiceParameters = {
|
|
15
|
+
CreatePermissionDto: CreatePermissionDto;
|
|
16
|
+
PermissionDto: PermissionDto;
|
|
17
|
+
UpdatePermissionDto: UpdatePermissionDto;
|
|
18
|
+
IdDto: IdDto;
|
|
19
|
+
IdsDto: IdsDto;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
type CreateRoleDto = {
|
|
23
|
+
name: string;
|
|
24
|
+
permissionsIds?: PermissionDto[];
|
|
25
|
+
extraFields?: unknown;
|
|
26
|
+
};
|
|
27
|
+
type UpdateRoleDto = IdDto & Partial<CreateRoleDto>;
|
|
28
|
+
type RoleDto = IdDto & Omit<CreateRoleDto, 'permissionsIds'> & Partial<RecordTimingDto> & {
|
|
29
|
+
permissions: PermissionDto[];
|
|
30
|
+
};
|
|
31
|
+
type RoleServiceParameters = {
|
|
32
|
+
CreateRoleDto: CreateRoleDto;
|
|
33
|
+
RoleDto: RoleDto;
|
|
34
|
+
UpdateRoleDto: UpdateRoleDto;
|
|
35
|
+
IdDto: IdDto;
|
|
36
|
+
IdsDto: IdsDto;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
type CreateUserDto = {
|
|
40
|
+
email: string;
|
|
41
|
+
password: string;
|
|
42
|
+
firstName: string;
|
|
43
|
+
lastName: string;
|
|
44
|
+
organizationId: string;
|
|
45
|
+
roleIds: string[];
|
|
46
|
+
phoneNumber?: string;
|
|
47
|
+
subscription?: string;
|
|
48
|
+
extraFields?: unknown;
|
|
49
|
+
};
|
|
50
|
+
type UpdateUserDto = IdDto & Partial<Omit<CreateUserDto, 'organizationId'>>;
|
|
51
|
+
type UserDto = IdDto & Omit<CreateUserDto, 'roleIds' | 'password' | 'organizationId'> & Partial<RecordTimingDto> & {
|
|
52
|
+
roles: RoleDto[];
|
|
53
|
+
};
|
|
54
|
+
type UserServiceParameters = {
|
|
55
|
+
CreateUserDto: CreateUserDto;
|
|
56
|
+
UserDto: UserDto;
|
|
57
|
+
UpdateUserDto: UpdateUserDto;
|
|
58
|
+
IdDto: IdDto;
|
|
59
|
+
IdsDto: IdsDto;
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
type CreateOrganizationDto = {
|
|
63
|
+
name: string;
|
|
64
|
+
domain: string;
|
|
65
|
+
subscription: string;
|
|
66
|
+
logoUrl?: string;
|
|
67
|
+
extraFields?: unknown;
|
|
68
|
+
};
|
|
69
|
+
type UpdateOrganizationDto = IdDto & Partial<CreateOrganizationDto>;
|
|
70
|
+
type OrganizationDto<OrganizationStatus> = IdDto & CreateOrganizationDto & Partial<RecordTimingDto> & {
|
|
71
|
+
users: UserDto[];
|
|
72
|
+
status: OrganizationStatus[keyof OrganizationStatus];
|
|
73
|
+
};
|
|
74
|
+
type OrganizationServiceParameters<OrganizationStatus> = {
|
|
75
|
+
CreateOrganizationDto: CreateOrganizationDto;
|
|
76
|
+
OrganizationDto: OrganizationDto<OrganizationStatus>;
|
|
77
|
+
UpdateOrganizationDto: UpdateOrganizationDto;
|
|
78
|
+
IdDto: IdDto;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export type { CreateOrganizationDto, CreatePermissionDto, CreateRoleDto, CreateUserDto, OrganizationDto, OrganizationServiceParameters, PermissionDto, PermissionServiceParameters, RoleDto, RoleServiceParameters, UpdateOrganizationDto, UpdatePermissionDto, UpdateRoleDto, UpdateUserDto, UserDto, UserServiceParameters };
|
package/lib/types/index.js
CHANGED
|
@@ -1,4 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// types/index.ts
|
|
17
|
+
var types_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(types_exports);
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/interfaces-iam",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "IAM interfaces for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
"@mikro-orm/core": "^6.4.16"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"@typescript/native-preview": "7.0.0-dev.20250611.1",
|
|
35
36
|
"depcheck": "^1.4.7",
|
|
36
37
|
"prettier": "^3.5.3",
|
|
37
38
|
"typedoc": "^0.28.5"
|
|
38
39
|
},
|
|
39
40
|
"scripts": {
|
|
40
|
-
"build": "
|
|
41
|
+
"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",
|
|
41
42
|
"clean": "rm -rf lib pnpm.lock.yaml node_modules",
|
|
42
43
|
"docs": "typedoc --out docs *",
|
|
43
44
|
"format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from '@mikro-orm/core';
|
|
2
|
-
import { OrganizationServiceParameters } from '../types/organization.service.types';
|
|
3
|
-
export interface OrganizationService<
|
|
4
|
-
OrganizationStatus,
|
|
5
|
-
Params extends
|
|
6
|
-
OrganizationServiceParameters<OrganizationStatus> = OrganizationServiceParameters<OrganizationStatus>
|
|
7
|
-
> {
|
|
8
|
-
createOrganization(
|
|
9
|
-
organizationDto: Params['CreateOrganizationDto'],
|
|
10
|
-
em?: EntityManager
|
|
11
|
-
): Promise<Params['OrganizationDto']>;
|
|
12
|
-
getOrganization(
|
|
13
|
-
idDto: Params['IdDto'],
|
|
14
|
-
em?: EntityManager
|
|
15
|
-
): Promise<Params['OrganizationDto']>;
|
|
16
|
-
updateOrganization(
|
|
17
|
-
organizationDto: Params['UpdateOrganizationDto'],
|
|
18
|
-
em?: EntityManager
|
|
19
|
-
): Promise<Params['OrganizationDto']>;
|
|
20
|
-
deleteOrganization(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=organization.service.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.service.interface.d.ts","sourceRoot":"","sources":["../../interfaces/organization.service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,6BAA6B,EAAE,MAAM,qCAAqC,CAAC;AAEpF,MAAM,WAAW,mBAAmB,CAClC,kBAAkB,EAClB,MAAM,SACJ,6BAA6B,CAAC,kBAAkB,CAAC,GAAG,6BAA6B,CAAC,kBAAkB,CAAC;IAEvG,kBAAkB,CAChB,eAAe,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAChD,EAAE,CAAC,EAAE,aAAa,GACjB,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtC,eAAe,CACb,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EACtB,EAAE,CAAC,EAAE,aAAa,GACjB,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtC,kBAAkB,CAChB,eAAe,EAAE,MAAM,CAAC,uBAAuB,CAAC,EAChD,EAAE,CAAC,EAAE,aAAa,GACjB,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC,CAAC;IACtC,kBAAkB,CAAC,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { EntityManager } from '@mikro-orm/core';
|
|
2
|
-
import { PermissionServiceParameters } from '../types/permission.service.types';
|
|
3
|
-
export interface PermissionService<
|
|
4
|
-
Params extends PermissionServiceParameters = PermissionServiceParameters
|
|
5
|
-
> {
|
|
6
|
-
createPermission(
|
|
7
|
-
permissionDto: Params['CreatePermissionDto'],
|
|
8
|
-
em?: EntityManager
|
|
9
|
-
): Promise<Params['PermissionDto']>;
|
|
10
|
-
createBatchPermissions(
|
|
11
|
-
permissionDtos: Params['CreatePermissionDto'][],
|
|
12
|
-
em?: EntityManager
|
|
13
|
-
): Promise<Params['PermissionDto'][]>;
|
|
14
|
-
getPermission(
|
|
15
|
-
idDto: Params['IdDto'],
|
|
16
|
-
em?: EntityManager
|
|
17
|
-
): Promise<Params['PermissionDto']>;
|
|
18
|
-
getBatchPermissions(
|
|
19
|
-
idsDto: Params['IdsDto'],
|
|
20
|
-
em?: EntityManager
|
|
21
|
-
): Promise<Params['PermissionDto'][]>;
|
|
22
|
-
updatePermission(
|
|
23
|
-
permissionDto: Params['UpdatePermissionDto'],
|
|
24
|
-
em?: EntityManager
|
|
25
|
-
): Promise<Params['PermissionDto']>;
|
|
26
|
-
updateBatchPermissions(
|
|
27
|
-
permissionDtos: Params['UpdatePermissionDto'][],
|
|
28
|
-
em?: EntityManager
|
|
29
|
-
): Promise<Params['PermissionDto'][]>;
|
|
30
|
-
deletePermission(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
31
|
-
deleteBatchPermissions(
|
|
32
|
-
idsDto: Params['IdsDto'],
|
|
33
|
-
em?: EntityManager
|
|
34
|
-
): Promise<void>;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=permission.service.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.service.interface.d.ts","sourceRoot":"","sources":["../../interfaces/permission.service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAEhF,MAAM,WAAW,iBAAiB,CAChC,MAAM,SAAS,2BA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1
|
-
import { EntityManager } from '@mikro-orm/core';
|
|
2
|
-
import { RoleServiceParameters } from '../types/role.service.types';
|
|
3
|
-
export interface RoleService<
|
|
4
|
-
Params extends RoleServiceParameters = RoleServiceParameters
|
|
5
|
-
> {
|
|
6
|
-
createRole(
|
|
7
|
-
roleDto: Params['CreateRoleDto'],
|
|
8
|
-
em?: EntityManager
|
|
9
|
-
): Promise<Params['RoleDto']>;
|
|
10
|
-
createBatchRoles(
|
|
11
|
-
roleDtos: Params['CreateRoleDto'][],
|
|
12
|
-
em?: EntityManager
|
|
13
|
-
): Promise<Params['RoleDto'][]>;
|
|
14
|
-
getRole(
|
|
15
|
-
idDto: Params['IdDto'],
|
|
16
|
-
em?: EntityManager
|
|
17
|
-
): Promise<Params['RoleDto']>;
|
|
18
|
-
getBatchRoles(
|
|
19
|
-
idsDto: Params['IdsDto'],
|
|
20
|
-
em?: EntityManager
|
|
21
|
-
): Promise<Params['RoleDto'][]>;
|
|
22
|
-
updateRole(
|
|
23
|
-
roleDto: Params['UpdateRoleDto'],
|
|
24
|
-
em?: EntityManager
|
|
25
|
-
): Promise<Params['RoleDto']>;
|
|
26
|
-
updateBatchRoles(
|
|
27
|
-
roleDtos: Params['UpdateRoleDto'][],
|
|
28
|
-
em?: EntityManager
|
|
29
|
-
): Promise<Params['RoleDto'][]>;
|
|
30
|
-
deleteRole(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
31
|
-
deleteBatchRoles(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
32
|
-
}
|
|
33
|
-
//# sourceMappingURL=role.service.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.service.interface.d.ts","sourceRoot":"","sources":["../../interfaces/role.service.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE,MAAM,WAA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@@
|
|
|
1
|
-
import { EntityManager } from '@mikro-orm/core';
|
|
2
|
-
import { UserServiceParameters } from '../types/user.service.types';
|
|
3
|
-
export interface UserService<
|
|
4
|
-
Params extends UserServiceParameters = UserServiceParameters
|
|
5
|
-
> {
|
|
6
|
-
createUser(
|
|
7
|
-
userDto: Params['CreateUserDto'],
|
|
8
|
-
em?: EntityManager
|
|
9
|
-
): Promise<Params['UserDto']>;
|
|
10
|
-
createBatchUsers(
|
|
11
|
-
userDtos: Params['CreateUserDto'][],
|
|
12
|
-
em?: EntityManager
|
|
13
|
-
): Promise<Params['UserDto'][]>;
|
|
14
|
-
getUser(
|
|
15
|
-
idDto: Params['IdDto'],
|
|
16
|
-
em?: EntityManager
|
|
17
|
-
): Promise<Params['UserDto']>;
|
|
18
|
-
getBatchUsers(
|
|
19
|
-
idsDto: Params['IdsDto'],
|
|
20
|
-
em?: EntityManager
|
|
21
|
-
): Promise<Params['UserDto'][]>;
|
|
22
|
-
updateUser(
|
|
23
|
-
userDto: Params['UpdateUserDto'],
|
|
24
|
-
em?: EntityManager
|
|
25
|
-
): Promise<Params['UserDto']>;
|
|
26
|
-
updateBatchUsers(
|
|
27
|
-
userDtos: Params['UpdateUserDto'][],
|
|
28
|
-
em?: EntityManager
|
|
29
|
-
): Promise<Params['UserDto'][]>;
|
|
30
|
-
deleteUser(idDto: Params['IdDto'], em?: EntityManager): Promise<void>;
|
|
31
|
-
deleteBatchUsers(idsDto: Params['IdsDto'], em?: EntityManager): Promise<void>;
|
|
32
|
-
verifyHasRole(
|
|
33
|
-
idDto: Params['IdDto'],
|
|
34
|
-
roleId: string,
|
|
35
|
-
em?: EntityManager
|
|
36
|
-
): Promise<void>;
|
|
37
|
-
verifyHasPermission(
|
|
38
|
-
idDto: Params['IdDto'],
|
|
39
|
-
permissionId: string,
|
|
40
|
-
em?: EntityManager
|
|
41
|
-
): Promise<void>;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=user.service.interface.d.ts.map
|
|
@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G,OAAO,CAAC,IAAI,CAAC,CAAC;IACtE,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9E,aAAa,CACX,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EACtB,MAAM,EAAE,MAAM,EACd,EAAE,CAAC,EAAE,aAAa,GACjB,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB,mBAAmB,CACjB,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,EACtB,YAAY,EAAE,MAAM,EACpB,EAAE,CAAC,EAAE,aAAa,GACjB,OAAO,CAAC,IAAI,CAAC,CAAC;CAClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/jest.config.d.ts
DELETED
package/lib/jest.config.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../jest.config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAEpD,QAAA,MAAM,UAAU,EAAE,oBAiBjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
package/lib/jest.config.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
const jestConfig = {
|
|
2
|
-
preset: 'ts-jest/presets/default-esm', // or other ESM presets
|
|
3
|
-
moduleNameMapper: {
|
|
4
|
-
'^(\\.{1,2}/.*)\\.js$': '$1'
|
|
5
|
-
},
|
|
6
|
-
transform: {
|
|
7
|
-
// '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
|
|
8
|
-
// '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
|
|
9
|
-
'^.+\\.[tj]sx?$': [
|
|
10
|
-
'ts-jest',
|
|
11
|
-
{
|
|
12
|
-
useESM: true
|
|
13
|
-
}
|
|
14
|
-
],
|
|
15
|
-
'^.+\\.js$': 'babel-jest'
|
|
16
|
-
},
|
|
17
|
-
testPathIgnorePatterns: ['.*dist/', '.*node_modules/']
|
|
18
|
-
};
|
|
19
|
-
export default jestConfig;
|