@carlosdiazz/lottodiz-shared 2.9.9 → 3.0.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.
- 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/create-pos.base.d.ts +4 -0
- package/dist/models/pos/pos.controller.d.ts +5 -1
- package/dist/models/pos/pos.datasource.d.ts +5 -1
- package/dist/models/pos/pos.resolver.d.ts +7 -1
- package/dist/models/pos/pos.service.d.ts +5 -1
- package/dist/models/temporary_code/temporary_code.controller.d.ts +1 -0
- package/dist/models/temporary_code/temporary_code.datasource.d.ts +1 -0
- package/dist/models/temporary_code/temporary_code.resolver.d.ts +1 -0
- package/dist/models/temporary_code/temporary_code.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -158,6 +158,10 @@ export declare class MethodValid {
|
|
|
158
158
|
static POS_REMOVE: string;
|
|
159
159
|
static POS_FIND_BY_POS_CODE: string;
|
|
160
160
|
static POS_FIND_BY_POS_MONITOR: string;
|
|
161
|
+
static CREATE_POS_CODE_BY_CODE: string;
|
|
162
|
+
static CREATE_POS_MONITOR_BY_CODE: string;
|
|
163
|
+
static DELETE_POS_CODE_BY_CODE: string;
|
|
164
|
+
static DELETE_POS_MONITOR_BY_CODE: string;
|
|
161
165
|
static POS_USER_CREATE: string;
|
|
162
166
|
static POS_USER_FIND_ONE: string;
|
|
163
167
|
static POS_USER_FIND_ALL: string;
|
|
@@ -198,5 +202,6 @@ export declare class MethodValid {
|
|
|
198
202
|
static TEMPORARY_CODE_FIND_ALL: string;
|
|
199
203
|
static TEMPORARY_CODE_UPDATE: string;
|
|
200
204
|
static TEMPORARY_CODE_REMOVE: string;
|
|
205
|
+
static TEMPORARY_CODE_FIND_ONE_BY_CODE: string;
|
|
201
206
|
static OBS_EXECUTE_ACTION: string;
|
|
202
207
|
}
|
|
@@ -190,6 +190,10 @@ MethodValid.POS_UPDATE = "POS_UPDATE";
|
|
|
190
190
|
MethodValid.POS_REMOVE = "POS_REMOVE";
|
|
191
191
|
MethodValid.POS_FIND_BY_POS_CODE = "POS_FIND_BY_POS_CODE";
|
|
192
192
|
MethodValid.POS_FIND_BY_POS_MONITOR = "POS_FIND_BY_POS_MONITOR";
|
|
193
|
+
MethodValid.CREATE_POS_CODE_BY_CODE = "CREATE_POS_CODE_BY_CODE";
|
|
194
|
+
MethodValid.CREATE_POS_MONITOR_BY_CODE = "CREATE_POS_MONITOR_BY_CODE";
|
|
195
|
+
MethodValid.DELETE_POS_CODE_BY_CODE = "DELETE_POS_CODE_BY_CODE";
|
|
196
|
+
MethodValid.DELETE_POS_MONITOR_BY_CODE = "DELETE_POS_MONITOR_BY_CODE";
|
|
193
197
|
//POS USER
|
|
194
198
|
MethodValid.POS_USER_CREATE = "POS_USER_CREATE";
|
|
195
199
|
MethodValid.POS_USER_FIND_ONE = "POS_USER_FIND_ONE";
|
|
@@ -238,5 +242,6 @@ MethodValid.TEMPORARY_CODE_FIND_ONE = "TEMPORARY_CODE_FIND_ONE";
|
|
|
238
242
|
MethodValid.TEMPORARY_CODE_FIND_ALL = "TEMPORARY_CODE_FIND_ALL";
|
|
239
243
|
MethodValid.TEMPORARY_CODE_UPDATE = "TEMPORARY_CODE_UPDATE";
|
|
240
244
|
MethodValid.TEMPORARY_CODE_REMOVE = "TEMPORARY_CODE_REMOVE";
|
|
245
|
+
MethodValid.TEMPORARY_CODE_FIND_ONE_BY_CODE = "TEMPORARY_CODE_FIND_ONE_BY_CODE";
|
|
241
246
|
//OBS
|
|
242
247
|
MethodValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
|
|
@@ -103,6 +103,10 @@ export declare class PermissionValid {
|
|
|
103
103
|
static POS_VIEW: string;
|
|
104
104
|
static POS_UPDATE: string;
|
|
105
105
|
static POS_DELETE: string;
|
|
106
|
+
static CREATE_POS_CODE_BY_CODE: string;
|
|
107
|
+
static CREATE_POS_MONITOR_BY_CODE: string;
|
|
108
|
+
static DELETE_POS_CODE_BY_CODE: string;
|
|
109
|
+
static DELETE_POS_MONITOR_BY_CODE: string;
|
|
106
110
|
static POS_USER_CREATE: string;
|
|
107
111
|
static POS_USER_VIEW: string;
|
|
108
112
|
static POS_USER_UPDATE: string;
|
|
@@ -134,5 +138,6 @@ export declare class PermissionValid {
|
|
|
134
138
|
static TEMPORARY_CODE_VIEW: string;
|
|
135
139
|
static TEMPORARY_CODE_UPDATE: string;
|
|
136
140
|
static TEMPORARY_CODE_DELETE: string;
|
|
141
|
+
static TEMPORARY_CODE_FIND_ONE_BY_CODE: string;
|
|
137
142
|
static OBS_EXECUTE_ACTION: string;
|
|
138
143
|
}
|
|
@@ -133,6 +133,10 @@ PermissionValid.POS_CREATE = "POS_CREATE";
|
|
|
133
133
|
PermissionValid.POS_VIEW = "POS_VIEW";
|
|
134
134
|
PermissionValid.POS_UPDATE = "POS_UPDATE";
|
|
135
135
|
PermissionValid.POS_DELETE = "POS_DELETE";
|
|
136
|
+
PermissionValid.CREATE_POS_CODE_BY_CODE = "CREATE_POS_CODE_BY_CODE";
|
|
137
|
+
PermissionValid.CREATE_POS_MONITOR_BY_CODE = "CREATE_POS_MONITOR_BY_CODE";
|
|
138
|
+
PermissionValid.DELETE_POS_CODE_BY_CODE = "DELETE_POS_CODE_BY_CODE";
|
|
139
|
+
PermissionValid.DELETE_POS_MONITOR_BY_CODE = "DELETE_POS_MONITOR_BY_CODE";
|
|
136
140
|
//POS USER
|
|
137
141
|
PermissionValid.POS_USER_CREATE = "POS_USER_CREATE";
|
|
138
142
|
PermissionValid.POS_USER_VIEW = "POS_USER_VIEW";
|
|
@@ -172,5 +176,6 @@ PermissionValid.TEMPORARY_CODE_CREATE = "TEMPORARY_CODE_CREATE";
|
|
|
172
176
|
PermissionValid.TEMPORARY_CODE_VIEW = "TEMPORARY_CODE_VIEW";
|
|
173
177
|
PermissionValid.TEMPORARY_CODE_UPDATE = "TEMPORARY_CODE_UPDATE";
|
|
174
178
|
PermissionValid.TEMPORARY_CODE_DELETE = "TEMPORARY_CODE_DELETE";
|
|
179
|
+
PermissionValid.TEMPORARY_CODE_FIND_ONE_BY_CODE = "TEMPORARY_CODE_FIND_ONE_BY_CODE";
|
|
175
180
|
//OBS
|
|
176
181
|
PermissionValid.OBS_EXECUTE_ACTION = "OBS_EXECUTE_ACTION";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PosInterface } from "./pos.base";
|
|
2
|
-
import { CreatePosInterface } from "./create-pos.base";
|
|
2
|
+
import { CreatePosByCodeInterface, CreatePosInterface } from "./create-pos.base";
|
|
3
3
|
import { ParamsPosInterface } from "./params-pos.base";
|
|
4
4
|
import { ResponsePosInterface } from "./response-pos.base";
|
|
5
5
|
import { UpdatePosInterface } from "./update-pos.base";
|
|
@@ -12,4 +12,8 @@ export interface PosControllerInterface {
|
|
|
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,5 +1,5 @@
|
|
|
1
1
|
import { PosInterface } from "./pos.base";
|
|
2
|
-
import { CreatePosInterface } from "./create-pos.base";
|
|
2
|
+
import { CreatePosByCodeInterface, CreatePosInterface } from "./create-pos.base";
|
|
3
3
|
import { ParamsPosInterface } from "./params-pos.base";
|
|
4
4
|
import { ResponsePosInterface } from "./response-pos.base";
|
|
5
5
|
import { UpdatePosInterface } from "./update-pos.base";
|
|
@@ -10,4 +10,8 @@ export interface PosDatasourceInterface {
|
|
|
10
10
|
findOne(id: number): Promise<PosInterface>;
|
|
11
11
|
update(dto: UpdatePosInterface): Promise<PosInterface>;
|
|
12
12
|
remove(id: number): Promise<ResponseInterface>;
|
|
13
|
+
createPosCodeByCode(dto: CreatePosByCodeInterface): Promise<ResponseInterface>;
|
|
14
|
+
createPosMonitorByCode(dto: CreatePosByCodeInterface): Promise<ResponseInterface>;
|
|
15
|
+
deletePosCodeByCode(id: number): Promise<ResponseInterface>;
|
|
16
|
+
deletePosMonitorByCode(id: number): Promise<ResponseInterface>;
|
|
13
17
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResponseInterface } from "../common";
|
|
2
2
|
import { UserInterface } from "../user";
|
|
3
3
|
import { PosInterface } from "./pos.base";
|
|
4
|
-
import { CreatePosInterface } from "./create-pos.base";
|
|
4
|
+
import { CreatePosByCodeInterface, CreatePosInterface } from "./create-pos.base";
|
|
5
5
|
import { ParamsPosInterface } from "./params-pos.base";
|
|
6
6
|
import { ResponsePosInterface } from "./response-pos.base";
|
|
7
7
|
import { UpdatePosInterface } from "./update-pos.base";
|
|
@@ -11,4 +11,10 @@ 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>;
|
|
16
|
+
createPosCodeByCode(dto: CreatePosByCodeInterface): Promise<ResponseInterface>;
|
|
17
|
+
createPosMonitorByCode(dto: CreatePosByCodeInterface): Promise<ResponseInterface>;
|
|
18
|
+
deletePosCodeByCode(id: number): Promise<ResponseInterface>;
|
|
19
|
+
deletePosMonitorByCode(id: number): Promise<ResponseInterface>;
|
|
14
20
|
}
|
|
@@ -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
|
}
|
|
@@ -5,4 +5,5 @@ 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>;
|
|
8
9
|
}
|
|
@@ -5,4 +5,5 @@ export interface TemporaryCodeDatasourceInterface {
|
|
|
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>;
|
|
8
9
|
}
|
|
@@ -4,4 +4,5 @@ import { CreateTemporaryCodeInterface } from "./create-temporary_code.base";
|
|
|
4
4
|
export interface TemporaryCodeResolverInterface {
|
|
5
5
|
create(dto: CreateTemporaryCodeInterface, user?: UserInterface): Promise<TemporaryCodeInterface>;
|
|
6
6
|
findOne(id: number, user?: UserInterface): Promise<TemporaryCodeInterface>;
|
|
7
|
+
findOneByCode(code: string, user?: UserInterface): Promise<TemporaryCodeInterface>;
|
|
7
8
|
}
|
|
@@ -5,4 +5,5 @@ 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>;
|
|
8
9
|
}
|