@flusys/nestjs-iam 4.0.2 → 4.1.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.
@@ -2,12 +2,17 @@ import { ILoggedUserInfo, SingleResponseDto } from '@flusys/nestjs-shared';
2
2
  import { ActionResponseDto, ActionTreeQueryDto, CreateActionDto, UpdateActionDto } from '../dtos/action.dto';
3
3
  import { ActionService } from '../services/action.service';
4
4
  declare const ActionController_base: abstract new (service: ActionService) => {
5
+ readonly enabledEndpoints: import("@flusys/nestjs-shared").ApiEndpoint[] | "all";
5
6
  service: ActionService;
7
+ isEnabled(endpoint: import("@flusys/nestjs-shared").ApiEndpoint): boolean;
6
8
  insert(addDto: CreateActionDto, user: ILoggedUserInfo | null): Promise<SingleResponseDto<ActionResponseDto>>;
7
9
  insertMany(addDto: CreateActionDto[], user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<ActionResponseDto>>;
8
10
  getById(id: string, body: import("@flusys/nestjs-shared").GetByIdBodyDto, user: ILoggedUserInfo | null): Promise<SingleResponseDto<ActionResponseDto>>;
11
+ getByIds(body: import("@flusys/nestjs-shared").GetByIdsDto, user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").ListResponseDto<ActionResponseDto>>;
9
12
  update(updateDto: UpdateActionDto, user: ILoggedUserInfo | null): Promise<SingleResponseDto<ActionResponseDto>>;
10
13
  updateMany(updateDtos: UpdateActionDto[], user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<ActionResponseDto>>;
14
+ bulkUpsert(dtos: (CreateActionDto | UpdateActionDto)[], user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<ActionResponseDto>>;
15
+ getByFilter(filter: Record<string, any>, user: ILoggedUserInfo | null): Promise<SingleResponseDto<ActionResponseDto>>;
11
16
  getAll(filterAndPaginationDto: import("@flusys/nestjs-shared").FilterAndPaginationDto, user: ILoggedUserInfo | null, search?: string): Promise<import("@flusys/nestjs-shared").ListResponseDto<ActionResponseDto>>;
12
17
  delete(deleteDto: import("@flusys/nestjs-shared").DeleteDto, user: ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").MessageResponseDto>;
13
18
  };
@@ -1,12 +1,17 @@
1
1
  import { CreateRoleDto, RoleResponseDto, UpdateRoleDto } from '../dtos/role.dto';
2
2
  import { RoleService } from '../services/role.service';
3
3
  declare const RoleController_base: abstract new (service: RoleService) => {
4
+ readonly enabledEndpoints: import("@flusys/nestjs-shared").ApiEndpoint[] | "all";
4
5
  service: RoleService;
6
+ isEnabled(endpoint: import("@flusys/nestjs-shared").ApiEndpoint): boolean;
5
7
  insert(addDto: CreateRoleDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<RoleResponseDto>>;
6
8
  insertMany(addDto: CreateRoleDto[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<RoleResponseDto>>;
7
9
  getById(id: string, body: import("@flusys/nestjs-shared").GetByIdBodyDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<RoleResponseDto>>;
10
+ getByIds(body: import("@flusys/nestjs-shared").GetByIdsDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").ListResponseDto<RoleResponseDto>>;
8
11
  update(updateDto: UpdateRoleDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<RoleResponseDto>>;
9
12
  updateMany(updateDtos: UpdateRoleDto[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<RoleResponseDto>>;
13
+ bulkUpsert(dtos: (CreateRoleDto | UpdateRoleDto)[], user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").BulkResponseDto<RoleResponseDto>>;
14
+ getByFilter(filter: Record<string, any>, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").SingleResponseDto<RoleResponseDto>>;
10
15
  getAll(filterAndPaginationDto: import("@flusys/nestjs-shared").FilterAndPaginationDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null, search?: string): Promise<import("@flusys/nestjs-shared").ListResponseDto<RoleResponseDto>>;
11
16
  delete(deleteDto: import("@flusys/nestjs-shared").DeleteDto, user: import("@flusys/nestjs-shared").ILoggedUserInfo | null): Promise<import("@flusys/nestjs-shared").MessageResponseDto>;
12
17
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flusys/nestjs-iam",
3
- "version": "4.0.2",
3
+ "version": "4.1.0",
4
4
  "description": "Identity and Access Management (IAM) module for NestJS applications",
5
5
  "main": "cjs/index.js",
6
6
  "module": "fesm/index.js",
@@ -90,7 +90,7 @@
90
90
  "express": "^4.18.0"
91
91
  },
92
92
  "dependencies": {
93
- "@flusys/nestjs-core": "4.0.2",
94
- "@flusys/nestjs-shared": "4.0.2"
93
+ "@flusys/nestjs-core": "4.1.0",
94
+ "@flusys/nestjs-shared": "4.1.0"
95
95
  }
96
96
  }