@carlosdiazz/lottodiz-shared 3.1.4 → 3.1.5

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.
Files changed (51) hide show
  1. package/dist/enum/method-valid.d.ts +1 -0
  2. package/dist/enum/method-valid.js +1 -0
  3. package/dist/models/company/company.base.d.ts +2 -2
  4. package/dist/models/company/company.controller.d.ts +3 -2
  5. package/dist/models/company/company.datasource.d.ts +2 -2
  6. package/dist/models/company/company.resolver.d.ts +2 -2
  7. package/dist/models/company/company.service.d.ts +3 -2
  8. package/dist/models/company/update-company.base.d.ts +1 -1
  9. package/dist/models/group/create-group.base.d.ts +1 -1
  10. package/dist/models/group/group.base.d.ts +3 -3
  11. package/dist/models/group/group.controller.d.ts +2 -2
  12. package/dist/models/group/group.datasource.d.ts +2 -2
  13. package/dist/models/group/group.resolver.d.ts +2 -2
  14. package/dist/models/group/group.service.d.ts +2 -2
  15. package/dist/models/group/params-group.base.d.ts +1 -1
  16. package/dist/models/group/update-group.base.d.ts +2 -2
  17. package/dist/models/pos/create-pos.base.d.ts +1 -1
  18. package/dist/models/pos/params-pos.base.d.ts +4 -4
  19. package/dist/models/pos/pos.base.d.ts +3 -3
  20. package/dist/models/pos/pos.controller.d.ts +4 -4
  21. package/dist/models/pos/pos.datasource.d.ts +2 -2
  22. package/dist/models/pos/pos.resolver.d.ts +4 -4
  23. package/dist/models/pos/pos.service.d.ts +4 -4
  24. package/dist/models/pos/update-pos.base.d.ts +2 -2
  25. package/dist/models/pos_code/create-pos_code.base.d.ts +1 -1
  26. package/dist/models/pos_code/pos_code.base.d.ts +3 -3
  27. package/dist/models/pos_code/pos_code.controller.d.ts +2 -2
  28. package/dist/models/pos_code/pos_code.datasource.d.ts +2 -2
  29. package/dist/models/pos_code/pos_code.resolver.d.ts +1 -1
  30. package/dist/models/pos_code/pos_code.service.d.ts +2 -2
  31. package/dist/models/pos_monitor/create-pos_monitor.base.d.ts +1 -1
  32. package/dist/models/pos_monitor/pos_monitor.base.d.ts +3 -3
  33. package/dist/models/pos_monitor/pos_monitor.controller.d.ts +2 -2
  34. package/dist/models/pos_monitor/pos_monitor.datasource.d.ts +2 -2
  35. package/dist/models/pos_monitor/pos_monitor.resolver.d.ts +1 -1
  36. package/dist/models/pos_monitor/pos_monitor.service.d.ts +2 -2
  37. package/dist/models/pos_user/create-pos_user.base.d.ts +1 -1
  38. package/dist/models/pos_user/params-pos_user.base.d.ts +1 -1
  39. package/dist/models/pos_user/pos_user.base.d.ts +3 -3
  40. package/dist/models/pos_user/pos_user.controller.d.ts +2 -2
  41. package/dist/models/pos_user/pos_user.datasource.d.ts +2 -2
  42. package/dist/models/pos_user/pos_user.resolver.d.ts +2 -2
  43. package/dist/models/pos_user/pos_user.service.d.ts +2 -2
  44. package/dist/models/pos_user/update-pos_user.base.d.ts +2 -2
  45. package/dist/models/temporary_code/create-temporary_code.base.d.ts +1 -1
  46. package/dist/models/temporary_code/temporary_code.base.d.ts +2 -2
  47. package/dist/models/temporary_code/temporary_code.controller.d.ts +4 -4
  48. package/dist/models/temporary_code/temporary_code.datasource.d.ts +3 -3
  49. package/dist/models/temporary_code/temporary_code.resolver.d.ts +2 -2
  50. package/dist/models/temporary_code/temporary_code.service.d.ts +4 -4
  51. package/package.json +1 -1
@@ -142,6 +142,7 @@ export declare class MethodValid {
142
142
  static VERIFY_STATUS_WEBSCRAPING: string;
143
143
  static VERIFY_STATUS_TOOLS: string;
144
144
  static VERIFY_STATUS_AUTH: string;
145
+ static VERIFY_STATUS_SALE: string;
145
146
  static COMPANY_CREATE: string;
146
147
  static COMPANY_FIND_ONE: string;
147
148
  static COMPANY_FIND_ALL: string;
@@ -171,6 +171,7 @@ MethodValid.VERIFY_STATUS_CRON = "VERIFY_STATUS_CRON";
171
171
  MethodValid.VERIFY_STATUS_WEBSCRAPING = "VERIFY_STATUS_WEBSCRAPING";
172
172
  MethodValid.VERIFY_STATUS_TOOLS = "VERIFY_STATUS_TOOLS";
173
173
  MethodValid.VERIFY_STATUS_AUTH = "VERIFY_STATUS_AUTH";
174
+ MethodValid.VERIFY_STATUS_SALE = "VERIFY_STATUS_SALE";
174
175
  //COMPANY
175
176
  MethodValid.COMPANY_CREATE = "COMPANY_CREATE";
176
177
  MethodValid.COMPANY_FIND_ONE = "COMPANY_FIND_ONE";
@@ -1,6 +1,6 @@
1
1
  import { GroupInterface } from "../group";
2
2
  export interface CompanyInterface {
3
- id: number;
3
+ id: string;
4
4
  name: string;
5
5
  image?: string;
6
6
  active: boolean;
@@ -10,7 +10,7 @@ export interface CompanyInterface {
10
10
  update_at: Date;
11
11
  }
12
12
  export interface CompanyFormInterface {
13
- id: number;
13
+ id: string;
14
14
  name: string;
15
15
  image?: string;
16
16
  active: boolean;
@@ -7,7 +7,8 @@ import { ResponseInterface } from "../common";
7
7
  export interface CompanyControllerInterface {
8
8
  create(dto: CreateCompanyInterface): Promise<CompanyInterface>;
9
9
  findAll(pagination: ParamsCompanyInterface): Promise<ResponseCompanyInterface>;
10
- findOne(id: number): Promise<CompanyInterface>;
10
+ findOne(id: string): Promise<CompanyInterface>;
11
11
  update(dto: UpdateCompanyInterface): Promise<CompanyInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ verify_status_sale(): Promise<ResponseInterface>;
13
14
  }
@@ -7,7 +7,7 @@ import { ResponseInterface } from "../common";
7
7
  export interface CompanyDatasourceInterface {
8
8
  create(dto: CreateCompanyInterface): Promise<CompanyInterface>;
9
9
  findAll(pagination: ParamsCompanyInterface): Promise<ResponseCompanyInterface>;
10
- findOne(id: number): Promise<CompanyInterface>;
10
+ findOne(id: string): Promise<CompanyInterface>;
11
11
  update(dto: UpdateCompanyInterface): Promise<CompanyInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -8,7 +8,7 @@ import { UpdateCompanyInterface } from "./update-company.base";
8
8
  export interface CompanyResolverInterface {
9
9
  create(dto: CreateCompanyInterface, user?: UserInterface): Promise<CompanyInterface>;
10
10
  findAll(pagination: ParamsCompanyInterface, user?: UserInterface): Promise<ResponseCompanyInterface>;
11
- findOne(id: number, user?: UserInterface): Promise<CompanyInterface>;
11
+ findOne(id: string, user?: UserInterface): Promise<CompanyInterface>;
12
12
  update(dto: UpdateCompanyInterface, user?: UserInterface): Promise<CompanyInterface>;
13
- remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
13
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
14
14
  }
@@ -7,7 +7,8 @@ import { UpdateCompanyInterface } from "./update-company.base";
7
7
  export interface CompanyServiceInterface {
8
8
  create(dto: CreateCompanyInterface): Promise<CompanyInterface>;
9
9
  findAll(pagination: ParamsCompanyInterface): Promise<ResponseCompanyInterface>;
10
- findOne(id: number): Promise<CompanyInterface>;
10
+ findOne(id: string): Promise<CompanyInterface>;
11
11
  update(dto: UpdateCompanyInterface): Promise<CompanyInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
+ verify_status_sale(): Promise<ResponseInterface>;
13
14
  }
@@ -1,5 +1,5 @@
1
1
  export interface UpdateCompanyInterface {
2
- id: number;
2
+ id: string;
3
3
  name?: string;
4
4
  image?: string;
5
5
  active?: boolean;
@@ -2,5 +2,5 @@ export interface CreateGroupInterface {
2
2
  name: string;
3
3
  active?: boolean;
4
4
  code: string;
5
- id_company: number;
5
+ id_company: string;
6
6
  }
@@ -1,7 +1,7 @@
1
1
  import { CompanyInterface } from "../company";
2
2
  import { PosInterface } from "../pos";
3
3
  export interface GroupInterface {
4
- id: number;
4
+ id: string;
5
5
  name: string;
6
6
  active: boolean;
7
7
  code: string;
@@ -11,9 +11,9 @@ export interface GroupInterface {
11
11
  update_at: Date;
12
12
  }
13
13
  export interface GroupFormInterface {
14
- id: number;
14
+ id: string;
15
15
  name: string;
16
16
  active: boolean;
17
17
  code: string;
18
- id_company: number;
18
+ id_company: string;
19
19
  }
@@ -7,7 +7,7 @@ import { ResponseInterface } from "../common";
7
7
  export interface GroupControllerInterface {
8
8
  create(dto: CreateGroupInterface): Promise<GroupInterface>;
9
9
  findAll(pagination: ParamsGroupInterface): Promise<ResponseGroupInterface>;
10
- findOne(id: number): Promise<GroupInterface>;
10
+ findOne(id: string): Promise<GroupInterface>;
11
11
  update(dto: UpdateGroupInterface): Promise<GroupInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -7,7 +7,7 @@ import { ResponseInterface } from "../common";
7
7
  export interface GroupDatasourceInterface {
8
8
  create(dto: CreateGroupInterface): Promise<GroupInterface>;
9
9
  findAll(pagination: ParamsGroupInterface): Promise<ResponseGroupInterface>;
10
- findOne(id: number): Promise<GroupInterface>;
10
+ findOne(id: string): Promise<GroupInterface>;
11
11
  update(dto: UpdateGroupInterface): Promise<GroupInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -8,7 +8,7 @@ import { UpdateGroupInterface } from "./update-group.base";
8
8
  export interface GroupResolverInterface {
9
9
  create(dto: CreateGroupInterface, user?: UserInterface): Promise<GroupInterface>;
10
10
  findAll(pagination: ParamsGroupInterface, user?: UserInterface): Promise<ResponseGroupInterface>;
11
- findOne(id: number, user?: UserInterface): Promise<GroupInterface>;
11
+ findOne(id: string, user?: UserInterface): Promise<GroupInterface>;
12
12
  update(dto: UpdateGroupInterface, user?: UserInterface): Promise<GroupInterface>;
13
- remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
13
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
14
14
  }
@@ -7,7 +7,7 @@ import { UpdateGroupInterface } from "./update-group.base";
7
7
  export interface GroupServiceInterface {
8
8
  create(dto: CreateGroupInterface): Promise<GroupInterface>;
9
9
  findAll(pagination: ParamsGroupInterface): Promise<ResponseGroupInterface>;
10
- findOne(id: number): Promise<GroupInterface>;
10
+ findOne(id: string): Promise<GroupInterface>;
11
11
  update(dto: UpdateGroupInterface): Promise<GroupInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -3,5 +3,5 @@ export interface ParamsGroupInterface extends PaginationInterface {
3
3
  offset: number;
4
4
  limit: number;
5
5
  active: boolean;
6
- id_company?: number | null;
6
+ id_company?: string | null;
7
7
  }
@@ -1,7 +1,7 @@
1
1
  export interface UpdateGroupInterface {
2
- id: number;
2
+ id: string;
3
3
  name?: string;
4
4
  active?: boolean;
5
5
  code?: string;
6
- id_company?: number;
6
+ id_company?: string;
7
7
  }
@@ -3,7 +3,7 @@ export interface CreatePosInterface {
3
3
  image?: string;
4
4
  active?: boolean;
5
5
  code: string;
6
- id_group: number;
6
+ id_group: string;
7
7
  }
8
8
  export interface checkPosCodeDtoInterface {
9
9
  nickname: string;
@@ -3,8 +3,8 @@ export interface ParamsPosInterface extends PaginationInterface {
3
3
  offset: number;
4
4
  limit: number;
5
5
  active: boolean;
6
- id_group?: number | null;
7
- id_company?: number | null;
8
- is_pos_code?: boolean | null;
9
- is_pos_monitor?: boolean | null;
6
+ id_group?: string | null;
7
+ id_company?: string | null;
8
+ is_pos_code?: string | null;
9
+ is_pos_monitor?: string | null;
10
10
  }
@@ -3,7 +3,7 @@ import { PosUserInterface } from "../pos_user";
3
3
  import { PosMonitorInterface } from "../pos_monitor";
4
4
  import { PosCodeInterface } from "../pos_code";
5
5
  export interface PosInterface {
6
- id: number;
6
+ id: string;
7
7
  name: string;
8
8
  image?: string;
9
9
  active: boolean;
@@ -16,10 +16,10 @@ export interface PosInterface {
16
16
  update_at: Date;
17
17
  }
18
18
  export interface PosFormInterface {
19
- id: number;
19
+ id: string;
20
20
  name: string;
21
21
  image?: string;
22
22
  active: boolean;
23
23
  code: string;
24
- id_group: number;
24
+ id_group: string;
25
25
  }
@@ -1,16 +1,16 @@
1
1
  import { PosInterface } from "./pos.base";
2
2
  import { checkPosCodeDtoInterface, CreatePosInterface } from "./create-pos.base";
3
3
  import { ParamsPosInterface } from "./params-pos.base";
4
- import { ResponsePosInterface } from "./response-pos.base";
4
+ import { CheckPosResponseInterface, ResponsePosInterface } from "./response-pos.base";
5
5
  import { UpdatePosInterface } from "./update-pos.base";
6
6
  import { ResponseInterface } from "../common";
7
7
  export interface PosControllerInterface {
8
8
  create(dto: CreatePosInterface): Promise<PosInterface>;
9
9
  findAll(pagination: ParamsPosInterface): Promise<ResponsePosInterface>;
10
- findOne(id: number): Promise<PosInterface>;
10
+ findOne(id: string): Promise<PosInterface>;
11
11
  update(dto: UpdatePosInterface): Promise<PosInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  findByPosCode(uuid: string): Promise<PosInterface>;
14
14
  findByPosMonitor(uuid: string): Promise<PosInterface>;
15
- checkPosCode(checkPosCodeDtoInterface: checkPosCodeDtoInterface): Promise<PosInterface>;
15
+ checkPosCode(checkPosCodeDtoInterface: checkPosCodeDtoInterface): Promise<CheckPosResponseInterface>;
16
16
  }
@@ -7,7 +7,7 @@ import { ResponseInterface } from "../common";
7
7
  export interface PosDatasourceInterface {
8
8
  create(dto: CreatePosInterface): Promise<PosInterface>;
9
9
  findAll(pagination: ParamsPosInterface): Promise<ResponsePosInterface>;
10
- findOne(id: number): Promise<PosInterface>;
10
+ findOne(id: string): Promise<PosInterface>;
11
11
  update(dto: UpdatePosInterface): Promise<PosInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -3,15 +3,15 @@ import { UserInterface } from "../user";
3
3
  import { PosInterface } from "./pos.base";
4
4
  import { CreatePosInterface } from "./create-pos.base";
5
5
  import { ParamsPosInterface } from "./params-pos.base";
6
- import { ResponsePosInterface } from "./response-pos.base";
6
+ import { CheckPosResponseInterface, ResponsePosInterface } from "./response-pos.base";
7
7
  import { UpdatePosInterface } from "./update-pos.base";
8
8
  export interface PosResolverInterface {
9
9
  create(dto: CreatePosInterface, user?: UserInterface): Promise<PosInterface>;
10
10
  findAll(pagination: ParamsPosInterface, user?: UserInterface): Promise<ResponsePosInterface>;
11
- findOne(id: number, user?: UserInterface): Promise<PosInterface>;
11
+ findOne(id: string, user?: UserInterface): Promise<PosInterface>;
12
12
  update(dto: UpdatePosInterface, user?: UserInterface): Promise<PosInterface>;
13
- remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
13
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
14
14
  findByPosCode(uuid: string, user?: UserInterface): Promise<PosInterface>;
15
15
  findByPosMonitor(uuid: string, user?: UserInterface): Promise<PosInterface>;
16
- checkPosCode(uuid: string, user: UserInterface): Promise<PosInterface>;
16
+ checkPosCode(uuid: string, user: UserInterface): Promise<CheckPosResponseInterface>;
17
17
  }
@@ -2,15 +2,15 @@ import { ResponseInterface } from "../common";
2
2
  import { PosInterface } from "./pos.base";
3
3
  import { CreatePosInterface, checkPosCodeDtoInterface } from "./create-pos.base";
4
4
  import { ParamsPosInterface } from "./params-pos.base";
5
- import { ResponsePosInterface } from "./response-pos.base";
5
+ import { CheckPosResponseInterface, ResponsePosInterface } from "./response-pos.base";
6
6
  import { UpdatePosInterface } from "./update-pos.base";
7
7
  export interface PosServiceInterface {
8
8
  create(dto: CreatePosInterface): Promise<PosInterface>;
9
9
  findAll(pagination: ParamsPosInterface): Promise<ResponsePosInterface>;
10
- findOne(id: number): Promise<PosInterface>;
10
+ findOne(id: string): Promise<PosInterface>;
11
11
  update(dto: UpdatePosInterface): Promise<PosInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  findByPosCode(uuid: string): Promise<PosInterface>;
14
14
  findByPosMonitor(uuid: string): Promise<PosInterface>;
15
- checkPosCode(checkPosCodeDtoInterface: checkPosCodeDtoInterface): Promise<PosInterface>;
15
+ checkPosCode(checkPosCodeDtoInterface: checkPosCodeDtoInterface): Promise<CheckPosResponseInterface>;
16
16
  }
@@ -1,8 +1,8 @@
1
1
  export interface UpdatePosInterface {
2
- id: number;
2
+ id: string;
3
3
  name?: string;
4
4
  image?: string;
5
5
  active?: boolean;
6
6
  code?: string;
7
- id_group?: number;
7
+ id_group?: string;
8
8
  }
@@ -1,4 +1,4 @@
1
1
  export interface CreatePosCodeInterface {
2
2
  uuid: string;
3
- id_pos: number;
3
+ id_pos: string;
4
4
  }
@@ -1,13 +1,13 @@
1
1
  import { PosInterface } from "../pos";
2
2
  export interface PosCodeInterface {
3
- id: number;
3
+ id: string;
4
4
  uuid: string;
5
5
  active: boolean;
6
6
  pos?: PosInterface;
7
7
  create_at: Date;
8
8
  }
9
9
  export interface PosCodeFormInterface {
10
- id: number;
10
+ id: string;
11
11
  uuid: string;
12
- id_pos: number;
12
+ id_pos: string;
13
13
  }
@@ -3,6 +3,6 @@ import { CreatePosCodeInterface } from "./create-pos_code.base";
3
3
  import { ResponseInterface } from "../common";
4
4
  export interface PosCodeControllerInterface {
5
5
  create(dto: CreatePosCodeInterface): Promise<PosCodeInterface>;
6
- findOne(id: number): Promise<PosCodeInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<PosCodeInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  }
@@ -3,6 +3,6 @@ import { CreatePosCodeInterface } from "./create-pos_code.base";
3
3
  import { ResponseInterface } from "../common";
4
4
  export interface PosCodeDatasourceInterface {
5
5
  create(dto: CreatePosCodeInterface): Promise<PosCodeInterface>;
6
- findOne(id: number): Promise<PosCodeInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<PosCodeInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  }
@@ -3,5 +3,5 @@ import { PosCodeInterface } from "./pos_code.base";
3
3
  import { CreatePosCodeInterface } from "./create-pos_code.base";
4
4
  export interface PosCodeResolverInterface {
5
5
  create(dto: CreatePosCodeInterface, user?: UserInterface): Promise<PosCodeInterface>;
6
- findOne(id: number, user?: UserInterface): Promise<PosCodeInterface>;
6
+ findOne(id: string, user?: UserInterface): Promise<PosCodeInterface>;
7
7
  }
@@ -3,6 +3,6 @@ import { PosCodeInterface } from "./pos_code.base";
3
3
  import { CreatePosCodeInterface } from "./create-pos_code.base";
4
4
  export interface PosCodeServiceInterface {
5
5
  create(dto: CreatePosCodeInterface): Promise<PosCodeInterface>;
6
- findOne(id: number): Promise<PosCodeInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<PosCodeInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  }
@@ -1,4 +1,4 @@
1
1
  export interface CreatePosMonitorInterface {
2
2
  uuid: string;
3
- id_pos: number;
3
+ id_pos: string;
4
4
  }
@@ -1,13 +1,13 @@
1
1
  import { PosInterface } from "../pos";
2
2
  export interface PosMonitorInterface {
3
- id: number;
3
+ id: string;
4
4
  uuid: string;
5
5
  active: boolean;
6
6
  pos?: PosInterface;
7
7
  create_at: Date;
8
8
  }
9
9
  export interface PosMonitorFormInterface {
10
- id: number;
10
+ id: string;
11
11
  uuid: string;
12
- id_pos: number;
12
+ id_pos: string;
13
13
  }
@@ -3,6 +3,6 @@ import { CreatePosMonitorInterface } from "./create-pos_monitor.base";
3
3
  import { ResponseInterface } from "../common";
4
4
  export interface PosMonitorControllerInterface {
5
5
  create(dto: CreatePosMonitorInterface): Promise<PosMonitorInterface>;
6
- findOne(id: number): Promise<PosMonitorInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<PosMonitorInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  }
@@ -3,6 +3,6 @@ import { CreatePosMonitorInterface } from "./create-pos_monitor.base";
3
3
  import { ResponseInterface } from "../common";
4
4
  export interface PosMonitorDatasourceInterface {
5
5
  create(dto: CreatePosMonitorInterface): Promise<PosMonitorInterface>;
6
- findOne(id: number): Promise<PosMonitorInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<PosMonitorInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  }
@@ -3,5 +3,5 @@ import { PosMonitorInterface } from "./pos_monitor.base";
3
3
  import { CreatePosMonitorInterface } from "./create-pos_monitor.base";
4
4
  export interface PosMonitorResolverInterface {
5
5
  create(dto: CreatePosMonitorInterface, user?: UserInterface): Promise<PosMonitorInterface>;
6
- findOne(id: number, user?: UserInterface): Promise<PosMonitorInterface>;
6
+ findOne(id: string, user?: UserInterface): Promise<PosMonitorInterface>;
7
7
  }
@@ -3,6 +3,6 @@ import { PosMonitorInterface } from "./pos_monitor.base";
3
3
  import { CreatePosMonitorInterface } from "./create-pos_monitor.base";
4
4
  export interface PosMonitorServiceInterface {
5
5
  create(dto: CreatePosMonitorInterface): Promise<PosMonitorInterface>;
6
- findOne(id: number): Promise<PosMonitorInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<PosMonitorInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  }
@@ -3,5 +3,5 @@ export interface CreatePosUserInterface {
3
3
  password: string;
4
4
  active?: boolean;
5
5
  nickname: string;
6
- id_pos: number;
6
+ id_pos: string;
7
7
  }
@@ -3,5 +3,5 @@ export interface ParamsPosUserInterface extends PaginationInterface {
3
3
  offset: number;
4
4
  limit: number;
5
5
  active: boolean;
6
- id_pos?: number | null;
6
+ id_pos?: string | null;
7
7
  }
@@ -1,6 +1,6 @@
1
1
  import { PosInterface } from "../pos";
2
2
  export interface PosUserInterface {
3
- id: number;
3
+ id: string;
4
4
  name: string;
5
5
  active: boolean;
6
6
  nickname: string;
@@ -10,10 +10,10 @@ export interface PosUserInterface {
10
10
  update_at: Date;
11
11
  }
12
12
  export interface PosUserFormInterface {
13
- id: number;
13
+ id: string;
14
14
  name: string;
15
15
  password: string;
16
16
  active: boolean;
17
17
  nickname: string;
18
- id_pos: number;
18
+ id_pos: string;
19
19
  }
@@ -7,7 +7,7 @@ import { ResponseInterface } from "../common";
7
7
  export interface PosUserControllerInterface {
8
8
  create(dto: CreatePosUserInterface): Promise<PosUserInterface>;
9
9
  findAll(pagination: ParamsPosUserInterface): Promise<ResponsePosUserInterface>;
10
- findOne(id: number): Promise<PosUserInterface>;
10
+ findOne(id: string): Promise<PosUserInterface>;
11
11
  update(dto: UpdatePosUserInterface): Promise<PosUserInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -7,7 +7,7 @@ import { ResponseInterface } from "../common";
7
7
  export interface PosUserDatasourceInterface {
8
8
  create(dto: CreatePosUserInterface): Promise<PosUserInterface>;
9
9
  findAll(pagination: ParamsPosUserInterface): Promise<ResponsePosUserInterface>;
10
- findOne(id: number): Promise<PosUserInterface>;
10
+ findOne(id: string): Promise<PosUserInterface>;
11
11
  update(dto: UpdatePosUserInterface): Promise<PosUserInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -8,7 +8,7 @@ import { UpdatePosUserInterface } from "./update-pos_user.base";
8
8
  export interface PosUserResolverInterface {
9
9
  create(dto: CreatePosUserInterface, user?: UserInterface): Promise<PosUserInterface>;
10
10
  findAll(pagination: ParamsPosUserInterface, user?: UserInterface): Promise<ResponsePosUserInterface>;
11
- findOne(id: number, user?: UserInterface): Promise<PosUserInterface>;
11
+ findOne(id: string, user?: UserInterface): Promise<PosUserInterface>;
12
12
  update(dto: UpdatePosUserInterface, user?: UserInterface): Promise<PosUserInterface>;
13
- remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
13
+ remove(id: string, user?: UserInterface): Promise<ResponseInterface>;
14
14
  }
@@ -7,7 +7,7 @@ import { UpdatePosUserInterface } from "./update-pos_user.base";
7
7
  export interface PosUserServiceInterface {
8
8
  create(dto: CreatePosUserInterface): Promise<PosUserInterface>;
9
9
  findAll(pagination: ParamsPosUserInterface): Promise<ResponsePosUserInterface>;
10
- findOne(id: number): Promise<PosUserInterface>;
10
+ findOne(id: string): Promise<PosUserInterface>;
11
11
  update(dto: UpdatePosUserInterface): Promise<PosUserInterface>;
12
- remove(id: number): Promise<ResponseInterface>;
12
+ remove(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -1,8 +1,8 @@
1
1
  export interface UpdatePosUserInterface {
2
- id: number;
2
+ id: string;
3
3
  name?: string;
4
4
  password?: string;
5
5
  active?: boolean;
6
6
  nickname?: string;
7
- id_pos?: number;
7
+ id_pos?: string;
8
8
  }
@@ -4,5 +4,5 @@ export interface CreateTemporaryCodeInterface {
4
4
  }
5
5
  export interface CreatePosByTemporaryCodeInterface {
6
6
  code: string;
7
- id: number;
7
+ id: string;
8
8
  }
@@ -1,11 +1,11 @@
1
1
  export interface TemporaryCodeInterface {
2
- id: number;
2
+ id: string;
3
3
  uuid: string;
4
4
  code: string;
5
5
  create_at: Date;
6
6
  }
7
7
  export interface TemporaryCodeFormInterface {
8
- id: number;
8
+ id: string;
9
9
  uuid: string;
10
10
  code: string;
11
11
  }
@@ -3,11 +3,11 @@ import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from
3
3
  import { ResponseInterface } from "../common";
4
4
  export interface TemporaryCodeControllerInterface {
5
5
  create(dto: CreateTemporaryCodeInterface): Promise<TemporaryCodeInterface>;
6
- findOne(id: number): Promise<TemporaryCodeInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<TemporaryCodeInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  findOneByCode(code: string): Promise<TemporaryCodeInterface>;
9
9
  createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
10
10
  createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
11
- deletePosCodeByTemporaryCode(id: number): Promise<ResponseInterface>;
12
- deletePosMonitorByTemporaryCode(id: number): Promise<ResponseInterface>;
11
+ deletePosCodeByTemporaryCode(id: string): Promise<ResponseInterface>;
12
+ deletePosMonitorByTemporaryCode(id: string): Promise<ResponseInterface>;
13
13
  }
@@ -3,10 +3,10 @@ import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from
3
3
  import { ResponseInterface } from "../common";
4
4
  export interface TemporaryCodeDatasourceInterface {
5
5
  create(dto: CreateTemporaryCodeInterface): Promise<TemporaryCodeInterface>;
6
- findOne(id: number): Promise<TemporaryCodeInterface>;
6
+ findOne(id: string): Promise<TemporaryCodeInterface>;
7
7
  findOneByCode(code: string): Promise<TemporaryCodeInterface>;
8
8
  createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
9
9
  createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
10
- deletePosCodeByTemporaryCode(id: number): Promise<ResponseInterface>;
11
- deletePosMonitorByTemporaryCode(id: number): Promise<ResponseInterface>;
10
+ deletePosCodeByTemporaryCode(id: string): Promise<ResponseInterface>;
11
+ deletePosMonitorByTemporaryCode(id: string): Promise<ResponseInterface>;
12
12
  }
@@ -8,6 +8,6 @@ export interface TemporaryCodeResolverInterface {
8
8
  findOneByCode(code: string, user?: UserInterface): Promise<TemporaryCodeInterface>;
9
9
  createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface, user?: UserInterface): Promise<ResponseInterface>;
10
10
  createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface, user?: UserInterface): Promise<ResponseInterface>;
11
- deletePosCodeByTemporaryCode(id: number, user?: UserInterface): Promise<ResponseInterface>;
12
- deletePosMonitorByTemporaryCode(id: number, user?: UserInterface): Promise<ResponseInterface>;
11
+ deletePosCodeByTemporaryCode(id: string, user?: UserInterface): Promise<ResponseInterface>;
12
+ deletePosMonitorByTemporaryCode(id: string, user?: UserInterface): Promise<ResponseInterface>;
13
13
  }
@@ -3,11 +3,11 @@ import { TemporaryCodeInterface } from "./temporary_code.base";
3
3
  import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from "./create-temporary_code.base";
4
4
  export interface TemporaryCodeServiceInterface {
5
5
  create(dto: CreateTemporaryCodeInterface): Promise<TemporaryCodeInterface>;
6
- findOne(id: number): Promise<TemporaryCodeInterface>;
7
- remove(id: number): Promise<ResponseInterface>;
6
+ findOne(id: string): Promise<TemporaryCodeInterface>;
7
+ remove(id: string): Promise<ResponseInterface>;
8
8
  findOneByCode(code: string): Promise<TemporaryCodeInterface>;
9
9
  createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
10
10
  createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
11
- deletePosCodeByTemporaryCode(id: number): Promise<ResponseInterface>;
12
- deletePosMonitorByTemporaryCode(id: number): Promise<ResponseInterface>;
11
+ deletePosCodeByTemporaryCode(id: string): Promise<ResponseInterface>;
12
+ deletePosMonitorByTemporaryCode(id: string): Promise<ResponseInterface>;
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "3.1.4",
3
+ "version": "3.1.5",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,