@forklaunch/interfaces-iam 0.1.8 → 0.1.10
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.ts +1 -1
- package/lib/interfaces/organization.service.interface.d.ts +19 -6
- package/lib/interfaces/permission.service.interface.d.ts +33 -10
- package/lib/interfaces/role.service.interface.d.ts +30 -10
- package/lib/interfaces/user.service.interface.d.ts +40 -12
- package/lib/jest.config.d.ts +1 -1
- package/lib/jest.config.js +16 -16
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/index.d.ts +1 -1
- package/lib/types/organization.service.types.d.ts +14 -12
- package/lib/types/permission.service.types.d.ts +15 -13
- package/lib/types/role.service.types.d.ts +13 -11
- package/lib/types/user.service.types.d.ts +21 -18
- package/lib/vitest.config.d.ts +2 -2
- package/lib/vitest.config.js +4 -4
- package/package.json +9 -9
package/lib/types/index.d.ts
CHANGED
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { IdDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
import { UserDto } from './user.service.types';
|
|
3
3
|
export type CreateOrganizationDto = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
4
|
+
name: string;
|
|
5
|
+
domain: string;
|
|
6
|
+
subscription: string;
|
|
7
|
+
logoUrl?: string;
|
|
8
|
+
extraFields?: unknown;
|
|
9
9
|
};
|
|
10
10
|
export type UpdateOrganizationDto = IdDto & Partial<CreateOrganizationDto>;
|
|
11
|
-
export type OrganizationDto<OrganizationStatus> = IdDto &
|
|
11
|
+
export type OrganizationDto<OrganizationStatus> = IdDto &
|
|
12
|
+
CreateOrganizationDto &
|
|
13
|
+
Partial<RecordTimingDto> & {
|
|
12
14
|
users: UserDto[];
|
|
13
15
|
status: OrganizationStatus[keyof OrganizationStatus];
|
|
14
|
-
};
|
|
16
|
+
};
|
|
15
17
|
export type OrganizationServiceParameters<OrganizationStatus> = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
CreateOrganizationDto: CreateOrganizationDto;
|
|
19
|
+
OrganizationDto: OrganizationDto<OrganizationStatus>;
|
|
20
|
+
UpdateOrganizationDto: UpdateOrganizationDto;
|
|
21
|
+
IdDto: IdDto;
|
|
20
22
|
};
|
|
21
|
-
//# sourceMappingURL=organization.service.types.d.ts.map
|
|
23
|
+
//# sourceMappingURL=organization.service.types.d.ts.map
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
export type CreatePermissionDto = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
slug: string;
|
|
4
|
+
addToRolesIds?: string[];
|
|
5
|
+
extraFields?: unknown;
|
|
6
6
|
};
|
|
7
|
-
export type UpdatePermissionDto = IdDto &
|
|
7
|
+
export type UpdatePermissionDto = IdDto &
|
|
8
|
+
Partial<CreatePermissionDto> & {
|
|
8
9
|
removeFromRolesIds?: string[];
|
|
9
|
-
};
|
|
10
|
-
export type PermissionDto = IdDto &
|
|
10
|
+
};
|
|
11
|
+
export type PermissionDto = IdDto &
|
|
12
|
+
Partial<RecordTimingDto> & {
|
|
11
13
|
slug: string;
|
|
12
|
-
};
|
|
14
|
+
};
|
|
13
15
|
export type PermissionServiceParameters = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
CreatePermissionDto: CreatePermissionDto;
|
|
17
|
+
PermissionDto: PermissionDto;
|
|
18
|
+
UpdatePermissionDto: UpdatePermissionDto;
|
|
19
|
+
IdDto: IdDto;
|
|
20
|
+
IdsDto: IdsDto;
|
|
19
21
|
};
|
|
20
|
-
//# sourceMappingURL=permission.service.types.d.ts.map
|
|
22
|
+
//# sourceMappingURL=permission.service.types.d.ts.map
|
|
@@ -1,19 +1,21 @@
|
|
|
1
1
|
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
import { PermissionDto } from './permission.service.types';
|
|
3
3
|
export type CreateRoleDto = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
name: string;
|
|
5
|
+
permissionsIds?: PermissionDto[];
|
|
6
|
+
extraFields?: unknown;
|
|
7
7
|
};
|
|
8
8
|
export type UpdateRoleDto = IdDto & Partial<CreateRoleDto>;
|
|
9
|
-
export type RoleDto = IdDto &
|
|
9
|
+
export type RoleDto = IdDto &
|
|
10
|
+
Omit<CreateRoleDto, 'permissionsIds'> &
|
|
11
|
+
Partial<RecordTimingDto> & {
|
|
10
12
|
permissions: PermissionDto[];
|
|
11
|
-
};
|
|
13
|
+
};
|
|
12
14
|
export type RoleServiceParameters = {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
CreateRoleDto: CreateRoleDto;
|
|
16
|
+
RoleDto: RoleDto;
|
|
17
|
+
UpdateRoleDto: UpdateRoleDto;
|
|
18
|
+
IdDto: IdDto;
|
|
19
|
+
IdsDto: IdsDto;
|
|
18
20
|
};
|
|
19
|
-
//# sourceMappingURL=role.service.types.d.ts.map
|
|
21
|
+
//# sourceMappingURL=role.service.types.d.ts.map
|
|
@@ -1,25 +1,28 @@
|
|
|
1
1
|
import { IdDto, IdsDto, RecordTimingDto } from '@forklaunch/common';
|
|
2
2
|
import { RoleDto } from './role.service.types';
|
|
3
3
|
export type CreateUserDto = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
email: string;
|
|
5
|
+
password: string;
|
|
6
|
+
firstName: string;
|
|
7
|
+
lastName: string;
|
|
8
|
+
organizationId: string;
|
|
9
|
+
roleIds: string[];
|
|
10
|
+
phoneNumber?: string;
|
|
11
|
+
subscription?: string;
|
|
12
|
+
extraFields?: unknown;
|
|
13
13
|
};
|
|
14
|
-
export type UpdateUserDto = IdDto &
|
|
15
|
-
|
|
14
|
+
export type UpdateUserDto = IdDto &
|
|
15
|
+
Partial<Omit<CreateUserDto, 'organizationId'>>;
|
|
16
|
+
export type UserDto = IdDto &
|
|
17
|
+
Omit<CreateUserDto, 'roleIds' | 'password' | 'organizationId'> &
|
|
18
|
+
Partial<RecordTimingDto> & {
|
|
16
19
|
roles: RoleDto[];
|
|
17
|
-
};
|
|
20
|
+
};
|
|
18
21
|
export type UserServiceParameters = {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
CreateUserDto: CreateUserDto;
|
|
23
|
+
UserDto: UserDto;
|
|
24
|
+
UpdateUserDto: UpdateUserDto;
|
|
25
|
+
IdDto: IdDto;
|
|
26
|
+
IdsDto: IdsDto;
|
|
24
27
|
};
|
|
25
|
-
//# sourceMappingURL=user.service.types.d.ts.map
|
|
28
|
+
//# sourceMappingURL=user.service.types.d.ts.map
|
package/lib/vitest.config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import('vite').UserConfig;
|
|
2
2
|
export default _default;
|
|
3
|
-
//# sourceMappingURL=vitest.config.d.ts.map
|
|
3
|
+
//# sourceMappingURL=vitest.config.d.ts.map
|
package/lib/vitest.config.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forklaunch/interfaces-iam",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "IAM interfaces for forklaunch",
|
|
5
5
|
"homepage": "https://github.com/forklaunch/forklaunch-js#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -14,30 +14,30 @@
|
|
|
14
14
|
"author": "Forklift Technologies, Inc.",
|
|
15
15
|
"exports": {
|
|
16
16
|
"./interfaces": {
|
|
17
|
+
"types": "./lib/interfaces/index.d.ts",
|
|
17
18
|
"import": "./lib/interfaces/index.js",
|
|
18
|
-
"require": "./lib/interfaces/index.js"
|
|
19
|
-
"types": "./lib/interfaces/index.d.ts"
|
|
19
|
+
"require": "./lib/interfaces/index.js"
|
|
20
20
|
},
|
|
21
21
|
"./types": {
|
|
22
|
+
"types": "./lib/types/index.d.ts",
|
|
22
23
|
"import": "./lib/types/index.js",
|
|
23
|
-
"require": "./lib/types/index.js"
|
|
24
|
-
"types": "./lib/types/index.d.ts"
|
|
24
|
+
"require": "./lib/types/index.js"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"files": [
|
|
28
28
|
"lib/**"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@forklaunch/common": "
|
|
32
|
-
"@mikro-orm/core": "^6.4.
|
|
31
|
+
"@forklaunch/common": "link:../../../framework/common",
|
|
32
|
+
"@mikro-orm/core": "^6.4.13"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"depcheck": "^1.4.7",
|
|
36
36
|
"prettier": "^3.5.3",
|
|
37
|
-
"typedoc": "^0.28.
|
|
37
|
+
"typedoc": "^0.28.3"
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
|
-
"build": "tsc && pnpm package:eject",
|
|
40
|
+
"build": "tsc && if [ -f eject-package.bash ]; then pnpm package:eject; fi",
|
|
41
41
|
"clean": "rm -rf lib pnpm.lock.yaml node_modules",
|
|
42
42
|
"docs": "typedoc --out docs *",
|
|
43
43
|
"format": "prettier --ignore-path=.prettierignore --config .prettierrc '**/*.{ts,tsx,json}' --write",
|