@carlosdiazz/lottodiz-shared 3.1.8 → 3.2.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.
@@ -211,5 +211,15 @@ export declare class MethodValid {
211
211
  static TEMPORARY_CODE_CREATE_POS_MONITOR: string;
212
212
  static TEMPORARY_CODE_DELETE_POS_CODE: string;
213
213
  static TEMPORARY_CODE_DELETE_POS_MONITOR: string;
214
+ static GAME_TYPE_CREATE: string;
215
+ static GAME_TYPE_FIND_ONE: string;
216
+ static GAME_TYPE_FIND_ALL: string;
217
+ static GAME_TYPE_UPDATE: string;
218
+ static GAME_TYPE_REMOVE: string;
219
+ static TEMPLATE_DRAW_GAME_TYPE_CREATE: string;
220
+ static TEMPLATE_DRAW_GAME_TYPE_FIND_ONE: string;
221
+ static TEMPLATE_DRAW_GAME_TYPE_FIND_ALL: string;
222
+ static TEMPLATE_DRAW_GAME_TYPE_UPDATE: string;
223
+ static TEMPLATE_DRAW_GAME_TYPE_REMOVE: string;
214
224
  static OBS_EXECUTE_ACTION: string;
215
225
  }
@@ -252,5 +252,17 @@ MethodValid.TEMPORARY_CODE_CREATE_POS_CODE = "TEMPORARY_CODE_CREATE_POS_CODE";
252
252
  MethodValid.TEMPORARY_CODE_CREATE_POS_MONITOR = "TEMPORARY_CODE_CREATE_POS_MONITOR";
253
253
  MethodValid.TEMPORARY_CODE_DELETE_POS_CODE = "TEMPORARY_CODE_DELETE_POS_CODE";
254
254
  MethodValid.TEMPORARY_CODE_DELETE_POS_MONITOR = "TEMPORARY_CODE_DELETE_POS_MONITOR";
255
+ //GAME TYPE
256
+ MethodValid.GAME_TYPE_CREATE = "GAME_TYPE_CREATE";
257
+ MethodValid.GAME_TYPE_FIND_ONE = "GAME_TYPE_FIND_ONE";
258
+ MethodValid.GAME_TYPE_FIND_ALL = "GAME_TYPE_FIND_ALL";
259
+ MethodValid.GAME_TYPE_UPDATE = "GAME_TYPE_UPDATE";
260
+ MethodValid.GAME_TYPE_REMOVE = "GAME_TYPE_REMOVE";
261
+ //TEMPLATE DRAW GAME TYPE
262
+ MethodValid.TEMPLATE_DRAW_GAME_TYPE_CREATE = "TEMPLATE_DRAW_GAME_TYPE_CREATE";
263
+ MethodValid.TEMPLATE_DRAW_GAME_TYPE_FIND_ONE = "TEMPLATE_DRAW_GAME_TYPE_FIND_ONE";
264
+ MethodValid.TEMPLATE_DRAW_GAME_TYPE_FIND_ALL = "TEMPLATE_DRAW_GAME_TYPE_FIND_ALL";
265
+ MethodValid.TEMPLATE_DRAW_GAME_TYPE_UPDATE = "TEMPLATE_DRAW_GAME_TYPE_UPDATE";
266
+ MethodValid.TEMPLATE_DRAW_GAME_TYPE_REMOVE = "TEMPLATE_DRAW_GAME_TYPE_REMOVE";
255
267
  //OBS
256
268
  MethodValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
@@ -139,5 +139,13 @@ export declare class PermissionValid {
139
139
  static TEMPORARY_CODE_CREATE_POS_MONITOR: string;
140
140
  static TEMPORARY_CODE_DELETE_POS_CODE: string;
141
141
  static TEMPORARY_CODE_DELETE_POS_MONITOR: string;
142
+ static GAME_TYPE_CREATE: string;
143
+ static GAME_TYPE_VIEW: string;
144
+ static GAME_TYPE_UPDATE: string;
145
+ static GAME_TYPE_DELETE: string;
146
+ static TEMPLATE_DRAW_GAME_TYPE_CREATE: string;
147
+ static TEMPLATE_DRAW_GAME_TYPE_VIEW: string;
148
+ static TEMPLATE_DRAW_GAME_TYPE_UPDATE: string;
149
+ static TEMPLATE_DRAW_GAME_TYPE_DELETE: string;
142
150
  static OBS_EXECUTE_ACTION: string;
143
151
  }
@@ -177,5 +177,15 @@ PermissionValid.TEMPORARY_CODE_CREATE_POS_CODE = "TEMPORARY_CODE_CREATE_POS_CODE
177
177
  PermissionValid.TEMPORARY_CODE_CREATE_POS_MONITOR = "TEMPORARY_CODE_CREATE_POS_MONITOR";
178
178
  PermissionValid.TEMPORARY_CODE_DELETE_POS_CODE = "TEMPORARY_CODE_DELETE_POS_CODE";
179
179
  PermissionValid.TEMPORARY_CODE_DELETE_POS_MONITOR = "TEMPORARY_CODE_DELETE_POS_MONITOR";
180
+ //GAME TYPE
181
+ PermissionValid.GAME_TYPE_CREATE = "GAME_TYPE_CREATE";
182
+ PermissionValid.GAME_TYPE_VIEW = "GAME_TYPE_VIEW";
183
+ PermissionValid.GAME_TYPE_UPDATE = "GAME_TYPE_UPDATE";
184
+ PermissionValid.GAME_TYPE_DELETE = "GAME_TYPE_DELETE";
185
+ //TEMPLATE DRAW GAME TYPE
186
+ PermissionValid.TEMPLATE_DRAW_GAME_TYPE_CREATE = "TEMPLATE_DRAW_GAME_TYPE_CREATE";
187
+ PermissionValid.TEMPLATE_DRAW_GAME_TYPE_VIEW = "TEMPLATE_DRAW_GAME_TYPE_VIEW";
188
+ PermissionValid.TEMPLATE_DRAW_GAME_TYPE_UPDATE = "TEMPLATE_DRAW_GAME_TYPE_UPDATE";
189
+ PermissionValid.TEMPLATE_DRAW_GAME_TYPE_DELETE = "TEMPLATE_DRAW_GAME_TYPE_DELETE";
180
190
  //OBS
181
191
  PermissionValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
@@ -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.2.0",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,