@carlosdiazz/lottodiz-shared 3.1.1 → 3.1.2

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.
@@ -161,12 +161,12 @@ export declare class MethodValid {
161
161
  static POS_FIND_BY_POS_MONITOR: string;
162
162
  static POS_SEND_WS: string;
163
163
  static POS_CODE_SEND_WS: string;
164
+ static POS_CHECK_POS: string;
164
165
  static POS_USER_CREATE: string;
165
166
  static POS_USER_FIND_ONE: string;
166
167
  static POS_USER_FIND_ALL: string;
167
168
  static POS_USER_UPDATE: string;
168
169
  static POS_USER_REMOVE: string;
169
- static POS_USER_LOGIN: string;
170
170
  static FIREBASE_CREATE_POS_USER: string;
171
171
  static FIREBASE_DELETE_POS_USER: string;
172
172
  static FIREBASE_UPDATE_PASSWORD_POS_USER: string;
@@ -193,13 +193,13 @@ MethodValid.POS_FIND_BY_POS_CODE = "POS_FIND_BY_POS_CODE";
193
193
  MethodValid.POS_FIND_BY_POS_MONITOR = "POS_FIND_BY_POS_MONITOR";
194
194
  MethodValid.POS_SEND_WS = "POS_SEND_WS";
195
195
  MethodValid.POS_CODE_SEND_WS = "POS_CODE_SEND_WS";
196
+ MethodValid.POS_CHECK_POS = "POS_CHECK_POS";
196
197
  //POS USER
197
198
  MethodValid.POS_USER_CREATE = "POS_USER_CREATE";
198
199
  MethodValid.POS_USER_FIND_ONE = "POS_USER_FIND_ONE";
199
200
  MethodValid.POS_USER_FIND_ALL = "POS_USER_FIND_ALL";
200
201
  MethodValid.POS_USER_UPDATE = "POS_USER_UPDATE";
201
202
  MethodValid.POS_USER_REMOVE = "POS_USER_REMOVE";
202
- MethodValid.POS_USER_LOGIN = "POS_USER_LOGIN";
203
203
  //FIREBASE POS USER
204
204
  MethodValid.FIREBASE_CREATE_POS_USER = "FIREBASE_CREATE_POS_USER";
205
205
  MethodValid.FIREBASE_DELETE_POS_USER = "FIREBASE_DELETE_POS_USER";
@@ -4,6 +4,7 @@ import { ParamsPosInterface } from "./params-pos.base";
4
4
  import { ResponsePosInterface } from "./response-pos.base";
5
5
  import { UpdatePosInterface } from "./update-pos.base";
6
6
  import { ResponseInterface } from "../common";
7
+ import { UserInterface } from "../user";
7
8
  export interface PosControllerInterface {
8
9
  create(dto: CreatePosInterface): Promise<PosInterface>;
9
10
  findAll(pagination: ParamsPosInterface): Promise<ResponsePosInterface>;
@@ -12,4 +13,5 @@ export interface PosControllerInterface {
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  findByPosCode(uuid: string): Promise<PosInterface>;
14
15
  findByPosMonitor(uuid: string): Promise<PosInterface>;
16
+ checkPosCode(uuid: string, user: UserInterface): Promise<PosInterface>;
15
17
  }
@@ -13,4 +13,5 @@ export interface PosResolverInterface {
13
13
  remove(id: number, 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
17
  }
@@ -4,6 +4,7 @@ import { CreatePosInterface } from "./create-pos.base";
4
4
  import { ParamsPosInterface } from "./params-pos.base";
5
5
  import { ResponsePosInterface } from "./response-pos.base";
6
6
  import { UpdatePosInterface } from "./update-pos.base";
7
+ import { UserInterface } from "../user";
7
8
  export interface PosServiceInterface {
8
9
  create(dto: CreatePosInterface): Promise<PosInterface>;
9
10
  findAll(pagination: ParamsPosInterface): Promise<ResponsePosInterface>;
@@ -12,4 +13,5 @@ export interface PosServiceInterface {
12
13
  remove(id: number): Promise<ResponseInterface>;
13
14
  findByPosCode(uuid: string): Promise<PosInterface>;
14
15
  findByPosMonitor(uuid: string): Promise<PosInterface>;
16
+ checkPosCode(uuid: string, user: UserInterface): Promise<PosInterface>;
15
17
  }
@@ -3,3 +3,6 @@ export interface ResponsePosInterface {
3
3
  items: PosInterface[];
4
4
  total: number;
5
5
  }
6
+ export interface CheckPosResponseInterface {
7
+ pos: PosInterface;
8
+ }
@@ -0,0 +1,8 @@
1
+ import { PosInterface } from "../pos";
2
+ export interface CheckPosInterface {
3
+ token: string;
4
+ deviceUuid: string;
5
+ }
6
+ export interface CheckPosResponseInterface {
7
+ pos: PosInterface;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carlosdiazz/lottodiz-shared",
3
- "version": "3.1.1",
3
+ "version": "3.1.2",
4
4
  "description": "Shared Dtos, models, constants and utils",
5
5
  "main": "dist/index.js",
6
6
  "private": false,