@carlosdiazz/lottodiz-shared 3.1.3 → 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.
- package/dist/enum/method-valid.d.ts +1 -0
- package/dist/enum/method-valid.js +1 -0
- package/dist/models/company/company.base.d.ts +2 -2
- package/dist/models/company/company.controller.d.ts +3 -2
- package/dist/models/company/company.datasource.d.ts +2 -2
- package/dist/models/company/company.resolver.d.ts +2 -2
- package/dist/models/company/company.service.d.ts +3 -2
- package/dist/models/company/update-company.base.d.ts +1 -1
- package/dist/models/group/create-group.base.d.ts +1 -1
- package/dist/models/group/group.base.d.ts +3 -3
- package/dist/models/group/group.controller.d.ts +2 -2
- package/dist/models/group/group.datasource.d.ts +2 -2
- package/dist/models/group/group.resolver.d.ts +2 -2
- package/dist/models/group/group.service.d.ts +2 -2
- package/dist/models/group/params-group.base.d.ts +1 -1
- package/dist/models/group/update-group.base.d.ts +2 -2
- package/dist/models/pos/create-pos.base.d.ts +2 -3
- package/dist/models/pos/params-pos.base.d.ts +4 -4
- package/dist/models/pos/pos.base.d.ts +3 -3
- package/dist/models/pos/pos.controller.d.ts +4 -4
- package/dist/models/pos/pos.datasource.d.ts +2 -2
- package/dist/models/pos/pos.resolver.d.ts +4 -4
- package/dist/models/pos/pos.service.d.ts +4 -4
- package/dist/models/pos/update-pos.base.d.ts +2 -2
- package/dist/models/pos_code/create-pos_code.base.d.ts +1 -1
- package/dist/models/pos_code/pos_code.base.d.ts +3 -3
- package/dist/models/pos_code/pos_code.controller.d.ts +2 -2
- package/dist/models/pos_code/pos_code.datasource.d.ts +2 -2
- package/dist/models/pos_code/pos_code.resolver.d.ts +1 -1
- package/dist/models/pos_code/pos_code.service.d.ts +2 -2
- package/dist/models/pos_monitor/create-pos_monitor.base.d.ts +1 -1
- package/dist/models/pos_monitor/pos_monitor.base.d.ts +3 -3
- package/dist/models/pos_monitor/pos_monitor.controller.d.ts +2 -2
- package/dist/models/pos_monitor/pos_monitor.datasource.d.ts +2 -2
- package/dist/models/pos_monitor/pos_monitor.resolver.d.ts +1 -1
- package/dist/models/pos_monitor/pos_monitor.service.d.ts +2 -2
- package/dist/models/pos_user/create-pos_user.base.d.ts +1 -1
- package/dist/models/pos_user/params-pos_user.base.d.ts +1 -1
- package/dist/models/pos_user/pos_user.base.d.ts +3 -3
- package/dist/models/pos_user/pos_user.controller.d.ts +2 -2
- package/dist/models/pos_user/pos_user.datasource.d.ts +2 -2
- package/dist/models/pos_user/pos_user.resolver.d.ts +2 -2
- package/dist/models/pos_user/pos_user.service.d.ts +2 -2
- package/dist/models/pos_user/update-pos_user.base.d.ts +2 -2
- package/dist/models/temporary_code/create-temporary_code.base.d.ts +1 -1
- package/dist/models/temporary_code/temporary_code.base.d.ts +2 -2
- package/dist/models/temporary_code/temporary_code.controller.d.ts +4 -4
- package/dist/models/temporary_code/temporary_code.datasource.d.ts +3 -3
- package/dist/models/temporary_code/temporary_code.resolver.d.ts +2 -2
- package/dist/models/temporary_code/temporary_code.service.d.ts +4 -4
- 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:
|
|
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:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<CompanyInterface>;
|
|
11
11
|
update(dto: UpdateCompanyInterface): Promise<CompanyInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<CompanyInterface>;
|
|
11
11
|
update(dto: UpdateCompanyInterface): Promise<CompanyInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
11
|
+
findOne(id: string, user?: UserInterface): Promise<CompanyInterface>;
|
|
12
12
|
update(dto: UpdateCompanyInterface, user?: UserInterface): Promise<CompanyInterface>;
|
|
13
|
-
remove(id:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<CompanyInterface>;
|
|
11
11
|
update(dto: UpdateCompanyInterface): Promise<CompanyInterface>;
|
|
12
|
-
remove(id:
|
|
12
|
+
remove(id: string): Promise<ResponseInterface>;
|
|
13
|
+
verify_status_sale(): Promise<ResponseInterface>;
|
|
13
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CompanyInterface } from "../company";
|
|
2
2
|
import { PosInterface } from "../pos";
|
|
3
3
|
export interface GroupInterface {
|
|
4
|
-
id:
|
|
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:
|
|
14
|
+
id: string;
|
|
15
15
|
name: string;
|
|
16
16
|
active: boolean;
|
|
17
17
|
code: string;
|
|
18
|
-
id_company:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<GroupInterface>;
|
|
11
11
|
update(dto: UpdateGroupInterface): Promise<GroupInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<GroupInterface>;
|
|
11
11
|
update(dto: UpdateGroupInterface): Promise<GroupInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
11
|
+
findOne(id: string, user?: UserInterface): Promise<GroupInterface>;
|
|
12
12
|
update(dto: UpdateGroupInterface, user?: UserInterface): Promise<GroupInterface>;
|
|
13
|
-
remove(id:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<GroupInterface>;
|
|
11
11
|
update(dto: UpdateGroupInterface): Promise<GroupInterface>;
|
|
12
|
-
remove(id:
|
|
12
|
+
remove(id: string): Promise<ResponseInterface>;
|
|
13
13
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { UserInterface } from "../user";
|
|
2
1
|
export interface CreatePosInterface {
|
|
3
2
|
name: string;
|
|
4
3
|
image?: string;
|
|
5
4
|
active?: boolean;
|
|
6
5
|
code: string;
|
|
7
|
-
id_group:
|
|
6
|
+
id_group: string;
|
|
8
7
|
}
|
|
9
8
|
export interface checkPosCodeDtoInterface {
|
|
10
|
-
|
|
9
|
+
nickname: string;
|
|
11
10
|
uuid: string;
|
|
12
11
|
}
|
|
@@ -3,8 +3,8 @@ export interface ParamsPosInterface extends PaginationInterface {
|
|
|
3
3
|
offset: number;
|
|
4
4
|
limit: number;
|
|
5
5
|
active: boolean;
|
|
6
|
-
id_group?:
|
|
7
|
-
id_company?:
|
|
8
|
-
is_pos_code?:
|
|
9
|
-
is_pos_monitor?:
|
|
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:
|
|
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:
|
|
19
|
+
id: string;
|
|
20
20
|
name: string;
|
|
21
21
|
image?: string;
|
|
22
22
|
active: boolean;
|
|
23
23
|
code: string;
|
|
24
|
-
id_group:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<PosInterface>;
|
|
11
11
|
update(dto: UpdatePosInterface): Promise<PosInterface>;
|
|
12
|
-
remove(id:
|
|
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<
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<PosInterface>;
|
|
11
11
|
update(dto: UpdatePosInterface): Promise<PosInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
11
|
+
findOne(id: string, user?: UserInterface): Promise<PosInterface>;
|
|
12
12
|
update(dto: UpdatePosInterface, user?: UserInterface): Promise<PosInterface>;
|
|
13
|
-
remove(id:
|
|
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<
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<PosInterface>;
|
|
11
11
|
update(dto: UpdatePosInterface): Promise<PosInterface>;
|
|
12
|
-
remove(id:
|
|
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<
|
|
15
|
+
checkPosCode(checkPosCodeDtoInterface: checkPosCodeDtoInterface): Promise<CheckPosResponseInterface>;
|
|
16
16
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PosInterface } from "../pos";
|
|
2
2
|
export interface PosCodeInterface {
|
|
3
|
-
id:
|
|
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:
|
|
10
|
+
id: string;
|
|
11
11
|
uuid: string;
|
|
12
|
-
id_pos:
|
|
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:
|
|
7
|
-
remove(id:
|
|
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:
|
|
7
|
-
remove(id:
|
|
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:
|
|
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:
|
|
7
|
-
remove(id:
|
|
6
|
+
findOne(id: string): Promise<PosCodeInterface>;
|
|
7
|
+
remove(id: string): Promise<ResponseInterface>;
|
|
8
8
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { PosInterface } from "../pos";
|
|
2
2
|
export interface PosMonitorInterface {
|
|
3
|
-
id:
|
|
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:
|
|
10
|
+
id: string;
|
|
11
11
|
uuid: string;
|
|
12
|
-
id_pos:
|
|
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:
|
|
7
|
-
remove(id:
|
|
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:
|
|
7
|
-
remove(id:
|
|
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:
|
|
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:
|
|
7
|
-
remove(id:
|
|
6
|
+
findOne(id: string): Promise<PosMonitorInterface>;
|
|
7
|
+
remove(id: string): Promise<ResponseInterface>;
|
|
8
8
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PosInterface } from "../pos";
|
|
2
2
|
export interface PosUserInterface {
|
|
3
|
-
id:
|
|
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:
|
|
13
|
+
id: string;
|
|
14
14
|
name: string;
|
|
15
15
|
password: string;
|
|
16
16
|
active: boolean;
|
|
17
17
|
nickname: string;
|
|
18
|
-
id_pos:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<PosUserInterface>;
|
|
11
11
|
update(dto: UpdatePosUserInterface): Promise<PosUserInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<PosUserInterface>;
|
|
11
11
|
update(dto: UpdatePosUserInterface): Promise<PosUserInterface>;
|
|
12
|
-
remove(id:
|
|
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:
|
|
11
|
+
findOne(id: string, user?: UserInterface): Promise<PosUserInterface>;
|
|
12
12
|
update(dto: UpdatePosUserInterface, user?: UserInterface): Promise<PosUserInterface>;
|
|
13
|
-
remove(id:
|
|
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:
|
|
10
|
+
findOne(id: string): Promise<PosUserInterface>;
|
|
11
11
|
update(dto: UpdatePosUserInterface): Promise<PosUserInterface>;
|
|
12
|
-
remove(id:
|
|
12
|
+
remove(id: string): Promise<ResponseInterface>;
|
|
13
13
|
}
|
|
@@ -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:
|
|
7
|
-
remove(id:
|
|
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:
|
|
12
|
-
deletePosMonitorByTemporaryCode(id:
|
|
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:
|
|
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:
|
|
11
|
-
deletePosMonitorByTemporaryCode(id:
|
|
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:
|
|
12
|
-
deletePosMonitorByTemporaryCode(id:
|
|
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:
|
|
7
|
-
remove(id:
|
|
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:
|
|
12
|
-
deletePosMonitorByTemporaryCode(id:
|
|
11
|
+
deletePosCodeByTemporaryCode(id: string): Promise<ResponseInterface>;
|
|
12
|
+
deletePosMonitorByTemporaryCode(id: string): Promise<ResponseInterface>;
|
|
13
13
|
}
|