@carlosdiazz/lottodiz-shared 3.1.8 → 3.1.9

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.
@@ -1,6 +1,6 @@
1
1
  import { RoleInterface } from "../role";
2
2
  export interface PermissionInterface {
3
- id: number;
3
+ id: string;
4
4
  name: string;
5
5
  role?: RoleInterface[];
6
6
  create_at: Date;
@@ -3,5 +3,5 @@ import { PermissionInterface } from "./permission.interface";
3
3
  export interface PermissionServiceInterface {
4
4
  findAll(): Promise<PermissionInterface[]>;
5
5
  create(dto: CreatePermissionInterface): Promise<boolean>;
6
- findAllByIds(ids: number[]): Promise<PermissionInterface[]>;
6
+ findAllByIds(ids: string[]): Promise<PermissionInterface[]>;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  export interface CreateRoleInterface {
2
2
  name: string;
3
- permiso_accion: number[];
3
+ permiso_accion: string[];
4
4
  active?: boolean;
5
5
  }
@@ -6,8 +6,8 @@ import { UpdateRoleInterface } from "./update-role";
6
6
  export interface RoleControllerInterface {
7
7
  create(dto: CreateRoleInterface): Promise<RoleInterface>;
8
8
  findAll(pagination: PaginationInterface): Promise<ResponseRoleInterface>;
9
- findOne(id: number): Promise<RoleInterface>;
9
+ findOne(id: string): Promise<RoleInterface>;
10
10
  update(dto: UpdateRoleInterface): Promise<RoleInterface>;
11
- remove(id: number): Promise<ResponseInterface>;
11
+ remove(id: string): Promise<ResponseInterface>;
12
12
  verify_status_auth(): Promise<ResponseInterface>;
13
13
  }
@@ -6,7 +6,7 @@ import { UpdateRoleInterface } from "./update-role";
6
6
  export interface RoleDatasourceInterface {
7
7
  create(dto: CreateRoleInterface): Promise<RoleInterface>;
8
8
  findAll(pagination: PaginationInterface): Promise<ResponseRoleInterface>;
9
- findOne(id: number): Promise<RoleInterface>;
9
+ findOne(id: string): Promise<RoleInterface>;
10
10
  update(dto: UpdateRoleInterface): Promise<RoleInterface>;
11
- remove(id: number): Promise<ResponseInterface>;
11
+ remove(id: string): Promise<ResponseInterface>;
12
12
  }
@@ -1,7 +1,7 @@
1
1
  import { PermissionInterface } from "../permission";
2
2
  import { UserInterface } from "../user";
3
3
  export interface RoleInterface {
4
- id: number;
4
+ id: string;
5
5
  name: string;
6
6
  active: boolean;
7
7
  permission?: PermissionInterface[];
@@ -10,8 +10,8 @@ export interface RoleInterface {
10
10
  update_at: Date;
11
11
  }
12
12
  export interface RoleFormInterface {
13
- id: number;
13
+ id: string;
14
14
  name: string;
15
15
  active: boolean;
16
- permiso_accion: number[];
16
+ permiso_accion: string[];
17
17
  }
@@ -7,7 +7,7 @@ import { UpdateRoleInterface } from "./update-role";
7
7
  export interface RoleResolverInterface {
8
8
  create(dto: CreateRoleInterface, user?: UserInterface): Promise<RoleInterface>;
9
9
  findAll(pagination: PaginationInterface, user?: UserInterface): Promise<ResponseRoleInterface>;
10
- findOne(id: number, user?: UserInterface): Promise<RoleInterface>;
10
+ findOne(id: string, user?: UserInterface): Promise<RoleInterface>;
11
11
  update(dto: UpdateRoleInterface, user?: UserInterface): Promise<RoleInterface>;
12
- remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
12
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
13
13
  }
@@ -6,8 +6,8 @@ import { UpdateRoleInterface } from "./update-role";
6
6
  export interface RoleServiceInterface {
7
7
  create(dto: CreateRoleInterface): Promise<RoleInterface>;
8
8
  findAll(pagination: PaginationInterface): Promise<ResponseRoleInterface>;
9
- findOne(id: number): Promise<RoleInterface>;
9
+ findOne(id: string): Promise<RoleInterface>;
10
10
  update(dto: UpdateRoleInterface): Promise<RoleInterface>;
11
- remove(id: number): Promise<ResponseInterface>;
11
+ remove(id: string): Promise<ResponseInterface>;
12
12
  verify_status_auth(): Promise<ResponseInterface>;
13
13
  }
@@ -1,6 +1,6 @@
1
1
  export interface UpdateRoleInterface {
2
- id: number;
2
+ id: string;
3
3
  name?: string;
4
- permiso_accion?: number[];
4
+ permiso_accion?: string[];
5
5
  active?: boolean;
6
6
  }
@@ -3,5 +3,5 @@ export interface CreateUserInterface {
3
3
  provider: string;
4
4
  providerId: string;
5
5
  email: string;
6
- id_role?: number;
6
+ id_role?: string;
7
7
  }
@@ -3,5 +3,5 @@ export interface ParamsUserInterface extends PaginationInterface {
3
3
  offset: number;
4
4
  limit: number;
5
5
  active: boolean;
6
- id_role?: number | null;
6
+ id_role?: string | null;
7
7
  }
@@ -1,5 +1,5 @@
1
1
  export interface UpdateUserInterface {
2
- id: number;
3
- id_role?: number;
2
+ id: string;
3
+ id_role?: string;
4
4
  name?: string;
5
5
  }
@@ -5,7 +5,7 @@ import { UpdateUserInterface } from "./update-user.base";
5
5
  import { UserInterface } from "./user.interface";
6
6
  export interface UserControllerInterface {
7
7
  findAll(pagination: ParamsUserInterface): Promise<ResponseUserInterface>;
8
- findOne(id: number): Promise<UserInterface>;
8
+ findOne(id: string): Promise<UserInterface>;
9
9
  update(dto: UpdateUserInterface): Promise<UserInterface>;
10
- remove(id: number): Promise<ResponseInterface>;
10
+ remove(id: string): Promise<ResponseInterface>;
11
11
  }
@@ -5,7 +5,7 @@ import { UpdateUserInterface } from "./update-user.base";
5
5
  import { UserInterface } from "./user.interface";
6
6
  export interface UserDatasourceInterface {
7
7
  findAll(pagination: ParamsUserInterface): Promise<ResponseUserInterface>;
8
- findOne(id: number): Promise<UserInterface>;
8
+ findOne(id: string): Promise<UserInterface>;
9
9
  update(dto: UpdateUserInterface): Promise<UserInterface>;
10
- remove(id: number): Promise<ResponseInterface>;
10
+ remove(id: string): Promise<ResponseInterface>;
11
11
  }
@@ -1,6 +1,6 @@
1
1
  import { RoleInterface } from "../role";
2
2
  export interface UserInterface {
3
- id: number;
3
+ id: string;
4
4
  name: string;
5
5
  provider: string;
6
6
  providerId: string;
@@ -5,7 +5,7 @@ import { UpdateUserInterface } from "./update-user.base";
5
5
  import { UserInterface } from "./user.interface";
6
6
  export interface UserResolverInterface {
7
7
  findAll(pagination: ParamsUserInterface, user?: UserInterface): Promise<ResponseUserInterface>;
8
- findOne(id: number, user?: UserInterface): Promise<UserInterface>;
8
+ findOne(id: string, user?: UserInterface): Promise<UserInterface>;
9
9
  update(dto: UpdateUserInterface, user?: UserInterface): Promise<UserInterface>;
10
- remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
10
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
11
11
  }
@@ -5,7 +5,7 @@ import { UpdateUserInterface } from "./update-user.base";
5
5
  import { UserInterface } from "./user.interface";
6
6
  export interface UserServiceInterface {
7
7
  findAll(pagination: ParamsUserInterface): Promise<ResponseUserInterface>;
8
- findOne(id: number): Promise<UserInterface>;
8
+ findOne(id: string): Promise<UserInterface>;
9
9
  update(dto: UpdateUserInterface): Promise<UserInterface>;
10
- remove(id: number): Promise<ResponseInterface>;
10
+ remove(id: string): Promise<ResponseInterface>;
11
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "3.1.8",
3
+ "version": "3.1.9",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,