@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.
@@ -2,4 +2,4 @@ export * from './organization.service.types';
2
2
  export * from './permission.service.types';
3
3
  export * from './role.service.types';
4
4
  export * from './user.service.types';
5
- //# sourceMappingURL=index.d.ts.map
5
+ //# sourceMappingURL=index.d.ts.map
@@ -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
- name: string;
5
- domain: string;
6
- subscription: string;
7
- logoUrl?: string;
8
- extraFields?: unknown;
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 & CreateOrganizationDto & Partial<RecordTimingDto> & {
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
- CreateOrganizationDto: CreateOrganizationDto;
17
- OrganizationDto: OrganizationDto<OrganizationStatus>;
18
- UpdateOrganizationDto: UpdateOrganizationDto;
19
- IdDto: IdDto;
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
- slug: string;
4
- addToRolesIds?: string[];
5
- extraFields?: unknown;
3
+ slug: string;
4
+ addToRolesIds?: string[];
5
+ extraFields?: unknown;
6
6
  };
7
- export type UpdatePermissionDto = IdDto & Partial<CreatePermissionDto> & {
7
+ export type UpdatePermissionDto = IdDto &
8
+ Partial<CreatePermissionDto> & {
8
9
  removeFromRolesIds?: string[];
9
- };
10
- export type PermissionDto = IdDto & Partial<RecordTimingDto> & {
10
+ };
11
+ export type PermissionDto = IdDto &
12
+ Partial<RecordTimingDto> & {
11
13
  slug: string;
12
- };
14
+ };
13
15
  export type PermissionServiceParameters = {
14
- CreatePermissionDto: CreatePermissionDto;
15
- PermissionDto: PermissionDto;
16
- UpdatePermissionDto: UpdatePermissionDto;
17
- IdDto: IdDto;
18
- IdsDto: IdsDto;
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
- name: string;
5
- permissionsIds?: PermissionDto[];
6
- extraFields?: unknown;
4
+ name: string;
5
+ permissionsIds?: PermissionDto[];
6
+ extraFields?: unknown;
7
7
  };
8
8
  export type UpdateRoleDto = IdDto & Partial<CreateRoleDto>;
9
- export type RoleDto = IdDto & Omit<CreateRoleDto, 'permissionsIds'> & Partial<RecordTimingDto> & {
9
+ export type RoleDto = IdDto &
10
+ Omit<CreateRoleDto, 'permissionsIds'> &
11
+ Partial<RecordTimingDto> & {
10
12
  permissions: PermissionDto[];
11
- };
13
+ };
12
14
  export type RoleServiceParameters = {
13
- CreateRoleDto: CreateRoleDto;
14
- RoleDto: RoleDto;
15
- UpdateRoleDto: UpdateRoleDto;
16
- IdDto: IdDto;
17
- IdsDto: IdsDto;
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
- 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;
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 & Partial<Omit<CreateUserDto, 'organizationId'>>;
15
- export type UserDto = IdDto & Omit<CreateUserDto, 'roleIds' | 'password' | 'organizationId'> & Partial<RecordTimingDto> & {
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
- CreateUserDto: CreateUserDto;
20
- UserDto: UserDto;
21
- UpdateUserDto: UpdateUserDto;
22
- IdDto: IdDto;
23
- IdsDto: IdsDto;
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
@@ -1,3 +1,3 @@
1
- declare const _default: import("vite").UserConfig;
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
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from 'vitest/config';
2
2
  export default defineConfig({
3
- test: {
4
- globals: true,
5
- exclude: ['**/lib/**', '**/node_modules/**']
6
- }
3
+ test: {
4
+ globals: true,
5
+ exclude: ['**/lib/**', '**/node_modules/**']
6
+ }
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/interfaces-iam",
3
- "version": "0.1.8",
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": "^0.2.6",
32
- "@mikro-orm/core": "^6.4.12"
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.2"
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",