@carlosdiazz/lottodiz-shared 2.9.9 → 3.0.1
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.
- package/dist/enum/method-valid.d.ts +5 -0
- package/dist/enum/method-valid.js +5 -0
- package/dist/enum/permission-valid.d.ts +5 -0
- package/dist/enum/permission-valid.js +5 -0
- package/dist/models/pos/index.d.ts +0 -1
- package/dist/models/pos/index.js +0 -1
- package/dist/models/pos/pos.resolver.d.ts +2 -0
- package/dist/models/pos/pos.service.d.ts +5 -1
- package/dist/models/temporary_code/create-temporary_code.base.d.ts +4 -0
- package/dist/models/temporary_code/temporary_code.controller.d.ts +6 -1
- package/dist/models/temporary_code/temporary_code.datasource.d.ts +6 -2
- package/dist/models/temporary_code/temporary_code.resolver.d.ts +7 -1
- package/dist/models/temporary_code/temporary_code.service.d.ts +6 -1
- package/package.json +1 -1
|
@@ -198,5 +198,10 @@ export declare class MethodValid {
|
|
|
198
198
|
static TEMPORARY_CODE_FIND_ALL: string;
|
|
199
199
|
static TEMPORARY_CODE_UPDATE: string;
|
|
200
200
|
static TEMPORARY_CODE_REMOVE: string;
|
|
201
|
+
static TEMPORARY_CODE_FIND_ONE_BY_CODE: string;
|
|
202
|
+
static TEMPORARY_CODE_CREATE_POS_CODE: string;
|
|
203
|
+
static TEMPORARY_CODE_CREATE_POS_MONITOR: string;
|
|
204
|
+
static TEMPORARY_CODE_DELETE_POS_CODE: string;
|
|
205
|
+
static TEMPORARY_CODE_DELETE_POS_MONITOR: string;
|
|
201
206
|
static OBS_EXECUTE_ACTION: string;
|
|
202
207
|
}
|
|
@@ -238,5 +238,10 @@ MethodValid.TEMPORARY_CODE_FIND_ONE = "TEMPORARY_CODE_FIND_ONE";
|
|
|
238
238
|
MethodValid.TEMPORARY_CODE_FIND_ALL = "TEMPORARY_CODE_FIND_ALL";
|
|
239
239
|
MethodValid.TEMPORARY_CODE_UPDATE = "TEMPORARY_CODE_UPDATE";
|
|
240
240
|
MethodValid.TEMPORARY_CODE_REMOVE = "TEMPORARY_CODE_REMOVE";
|
|
241
|
+
MethodValid.TEMPORARY_CODE_FIND_ONE_BY_CODE = "TEMPORARY_CODE_FIND_ONE_BY_CODE";
|
|
242
|
+
MethodValid.TEMPORARY_CODE_CREATE_POS_CODE = "TEMPORARY_CODE_CREATE_POS_CODE";
|
|
243
|
+
MethodValid.TEMPORARY_CODE_CREATE_POS_MONITOR = "TEMPORARY_CODE_CREATE_POS_MONITOR";
|
|
244
|
+
MethodValid.TEMPORARY_CODE_DELETE_POS_CODE = "TEMPORARY_CODE_DELETE_POS_CODE";
|
|
245
|
+
MethodValid.TEMPORARY_CODE_DELETE_POS_MONITOR = "TEMPORARY_CODE_DELETE_POS_MONITOR";
|
|
241
246
|
//OBS
|
|
242
247
|
MethodValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
|
|
@@ -134,5 +134,10 @@ export declare class PermissionValid {
|
|
|
134
134
|
static TEMPORARY_CODE_VIEW: string;
|
|
135
135
|
static TEMPORARY_CODE_UPDATE: string;
|
|
136
136
|
static TEMPORARY_CODE_DELETE: string;
|
|
137
|
+
static TEMPORARY_CODE_FIND_ONE_BY_CODE: string;
|
|
138
|
+
static TEMPORARY_CODE_CREATE_POS_CODE: string;
|
|
139
|
+
static TEMPORARY_CODE_CREATE_POS_MONITOR: string;
|
|
140
|
+
static TEMPORARY_CODE_DELETE_POS_CODE: string;
|
|
141
|
+
static TEMPORARY_CODE_DELETE_POS_MONITOR: string;
|
|
137
142
|
static OBS_EXECUTE_ACTION: string;
|
|
138
143
|
}
|
|
@@ -172,5 +172,10 @@ PermissionValid.TEMPORARY_CODE_CREATE = "TEMPORARY_CODE_CREATE";
|
|
|
172
172
|
PermissionValid.TEMPORARY_CODE_VIEW = "TEMPORARY_CODE_VIEW";
|
|
173
173
|
PermissionValid.TEMPORARY_CODE_UPDATE = "TEMPORARY_CODE_UPDATE";
|
|
174
174
|
PermissionValid.TEMPORARY_CODE_DELETE = "TEMPORARY_CODE_DELETE";
|
|
175
|
+
PermissionValid.TEMPORARY_CODE_FIND_ONE_BY_CODE = "TEMPORARY_CODE_FIND_ONE_BY_CODE";
|
|
176
|
+
PermissionValid.TEMPORARY_CODE_CREATE_POS_CODE = "TEMPORARY_CODE_CREATE_POS_CODE";
|
|
177
|
+
PermissionValid.TEMPORARY_CODE_CREATE_POS_MONITOR = "TEMPORARY_CODE_CREATE_POS_MONITOR";
|
|
178
|
+
PermissionValid.TEMPORARY_CODE_DELETE_POS_CODE = "TEMPORARY_CODE_DELETE_POS_CODE";
|
|
179
|
+
PermissionValid.TEMPORARY_CODE_DELETE_POS_MONITOR = "TEMPORARY_CODE_DELETE_POS_MONITOR";
|
|
175
180
|
//OBS
|
|
176
181
|
PermissionValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
|
|
@@ -2,7 +2,6 @@ export * from "./pos.base";
|
|
|
2
2
|
export * from "./pos.controller";
|
|
3
3
|
export * from "./pos.datasource";
|
|
4
4
|
export * from "./pos.resolver";
|
|
5
|
-
export * from "./pos.service";
|
|
6
5
|
export * from "./create-pos.base";
|
|
7
6
|
export * from "./params-pos.base";
|
|
8
7
|
export * from "./response-pos.base";
|
package/dist/models/pos/index.js
CHANGED
|
@@ -18,7 +18,6 @@ __exportStar(require("./pos.base"), exports);
|
|
|
18
18
|
__exportStar(require("./pos.controller"), exports);
|
|
19
19
|
__exportStar(require("./pos.datasource"), exports);
|
|
20
20
|
__exportStar(require("./pos.resolver"), exports);
|
|
21
|
-
__exportStar(require("./pos.service"), exports);
|
|
22
21
|
__exportStar(require("./create-pos.base"), exports);
|
|
23
22
|
__exportStar(require("./params-pos.base"), exports);
|
|
24
23
|
__exportStar(require("./response-pos.base"), exports);
|
|
@@ -11,4 +11,6 @@ export interface PosResolverInterface {
|
|
|
11
11
|
findOne(id: number, user?: UserInterface): Promise<PosInterface>;
|
|
12
12
|
update(dto: UpdatePosInterface, user?: UserInterface): Promise<PosInterface>;
|
|
13
13
|
remove(id: number, user?: UserInterface): Promise<ResponseInterface>;
|
|
14
|
+
findByPosCode(uuid: string, user?: UserInterface): Promise<PosInterface>;
|
|
15
|
+
findByPosMonitor(uuid: string, user?: UserInterface): Promise<PosInterface>;
|
|
14
16
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResponseInterface } from "../common";
|
|
2
2
|
import { PosInterface } from "./pos.base";
|
|
3
|
-
import { CreatePosInterface } from "./create-pos.base";
|
|
3
|
+
import { CreatePosByCodeInterface, 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";
|
|
@@ -12,4 +12,8 @@ export interface PosServiceInterface {
|
|
|
12
12
|
remove(id: number): Promise<ResponseInterface>;
|
|
13
13
|
findByPosCode(uuid: string): Promise<PosInterface>;
|
|
14
14
|
findByPosMonitor(uuid: string): Promise<PosInterface>;
|
|
15
|
+
createPosCodeByCode(dto: CreatePosByCodeInterface): Promise<ResponseInterface>;
|
|
16
|
+
createPosMonitorByCode(dto: CreatePosByCodeInterface): Promise<ResponseInterface>;
|
|
17
|
+
deletePosCodeByCode(id: number): Promise<ResponseInterface>;
|
|
18
|
+
deletePosMonitorByCode(id: number): Promise<ResponseInterface>;
|
|
15
19
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { TemporaryCodeInterface } from "./temporary_code.base";
|
|
2
|
-
import { CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
2
|
+
import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
3
3
|
import { ResponseInterface } from "../common";
|
|
4
4
|
export interface TemporaryCodeControllerInterface {
|
|
5
5
|
create(dto: CreateTemporaryCodeInterface): Promise<TemporaryCodeInterface>;
|
|
6
6
|
findOne(id: number): Promise<TemporaryCodeInterface>;
|
|
7
7
|
remove(id: number): Promise<ResponseInterface>;
|
|
8
|
+
findOneByCode(code: string): Promise<TemporaryCodeInterface>;
|
|
9
|
+
createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
|
|
10
|
+
createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
|
|
11
|
+
deletePosCodeByTemporaryCode(id: number): Promise<ResponseInterface>;
|
|
12
|
+
deletePosMonitorByTemporaryCode(id: number): Promise<ResponseInterface>;
|
|
8
13
|
}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { TemporaryCodeInterface } from "./temporary_code.base";
|
|
2
|
-
import { CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
2
|
+
import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
3
3
|
import { ResponseInterface } from "../common";
|
|
4
4
|
export interface TemporaryCodeDatasourceInterface {
|
|
5
5
|
create(dto: CreateTemporaryCodeInterface): Promise<TemporaryCodeInterface>;
|
|
6
6
|
findOne(id: number): Promise<TemporaryCodeInterface>;
|
|
7
|
-
|
|
7
|
+
findOneByCode(code: string): Promise<TemporaryCodeInterface>;
|
|
8
|
+
createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
|
|
9
|
+
createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
|
|
10
|
+
deletePosCodeByTemporaryCode(id: number): Promise<ResponseInterface>;
|
|
11
|
+
deletePosMonitorByTemporaryCode(id: number): Promise<ResponseInterface>;
|
|
8
12
|
}
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { UserInterface } from "../user";
|
|
2
2
|
import { TemporaryCodeInterface } from "./temporary_code.base";
|
|
3
|
-
import { CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
3
|
+
import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
4
|
+
import { ResponseInterface } from "../common";
|
|
4
5
|
export interface TemporaryCodeResolverInterface {
|
|
5
6
|
create(dto: CreateTemporaryCodeInterface, user?: UserInterface): Promise<TemporaryCodeInterface>;
|
|
6
7
|
findOne(id: number, user?: UserInterface): Promise<TemporaryCodeInterface>;
|
|
8
|
+
findOneByCode(code: string, user?: UserInterface): Promise<TemporaryCodeInterface>;
|
|
9
|
+
createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface, user?: UserInterface): Promise<ResponseInterface>;
|
|
10
|
+
createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface, user?: UserInterface): Promise<ResponseInterface>;
|
|
11
|
+
deletePosCodeByTemporaryCode(id: number, user?: UserInterface): Promise<ResponseInterface>;
|
|
12
|
+
deletePosMonitorByTemporaryCode(id: number, user?: UserInterface): Promise<ResponseInterface>;
|
|
7
13
|
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
1
|
import { ResponseInterface } from "../common";
|
|
2
2
|
import { TemporaryCodeInterface } from "./temporary_code.base";
|
|
3
|
-
import { CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
3
|
+
import { CreatePosByTemporaryCodeInterface, CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
4
4
|
export interface TemporaryCodeServiceInterface {
|
|
5
5
|
create(dto: CreateTemporaryCodeInterface): Promise<TemporaryCodeInterface>;
|
|
6
6
|
findOne(id: number): Promise<TemporaryCodeInterface>;
|
|
7
7
|
remove(id: number): Promise<ResponseInterface>;
|
|
8
|
+
findOneByCode(code: string): Promise<TemporaryCodeInterface>;
|
|
9
|
+
createPosCodeByTemporaryCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
|
|
10
|
+
createPosMonitorByTemporyCode(dto: CreatePosByTemporaryCodeInterface): Promise<ResponseInterface>;
|
|
11
|
+
deletePosCodeByTemporaryCode(id: number): Promise<ResponseInterface>;
|
|
12
|
+
deletePosMonitorByTemporaryCode(id: number): Promise<ResponseInterface>;
|
|
8
13
|
}
|