@carlosdiazz/lottodiz-shared 3.6.5 → 3.6.7
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/models/ticket/ticket.base.d.ts +1 -1
- package/dist/models/ticket/ticket.controller.d.ts +2 -2
- package/dist/models/ticket/ticket.datasource.d.ts +2 -2
- package/dist/models/ticket/ticket.resolver.d.ts +2 -2
- package/dist/models/ticket/ticket.service.d.ts +2 -2
- package/dist/utils/clean_object.d.ts +1 -0
- package/dist/utils/clean_object.js +7 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +1 -0
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseFindTicketInterface, TicketInterface } from "./ticket.base";
|
|
2
2
|
import { CreateTicketInterface } from "./create-ticket.base";
|
|
3
3
|
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
4
4
|
import { ResponseInterface } from "../common";
|
|
5
5
|
export interface TicketControllerInterface {
|
|
6
6
|
create(dto: CreateTicketInterface): Promise<TicketInterface>;
|
|
7
7
|
findAll(pagination: ParamsTicketInterface): Promise<TicketInterface[]>;
|
|
8
|
-
findByCode(code: string): Promise<
|
|
8
|
+
findByCode(code: string): Promise<ResponseFindTicketInterface>;
|
|
9
9
|
cancelByCode(code: string): Promise<ResponseInterface>;
|
|
10
10
|
payByCode(code: string): Promise<ResponseInterface>;
|
|
11
11
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseFindTicketInterface, TicketInterface } from "./ticket.base";
|
|
2
2
|
import { CreateTicketInterface } from "./create-ticket.base";
|
|
3
3
|
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
4
4
|
import { ResponseInterface } from "../common";
|
|
5
5
|
export interface TicketDatasourceInterface {
|
|
6
6
|
create(dto: CreateTicketInterface): Promise<TicketInterface>;
|
|
7
7
|
findAll(pagination: ParamsTicketInterface): Promise<TicketInterface[]>;
|
|
8
|
-
findByCode(code: string): Promise<
|
|
8
|
+
findByCode(code: string): Promise<ResponseFindTicketInterface>;
|
|
9
9
|
cancelByCode(code: string): Promise<ResponseInterface>;
|
|
10
10
|
payByCode(code: string): Promise<ResponseInterface>;
|
|
11
11
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { UserInterface } from "../user";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponseFindTicketInterface, TicketInterface } from "./ticket.base";
|
|
3
3
|
import { CreateTicketInterface } from "./create-ticket.base";
|
|
4
4
|
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
5
5
|
import { ResponseInterface } from "../common";
|
|
6
6
|
export interface TicketResolverInterface {
|
|
7
7
|
create(dto: CreateTicketInterface, user?: UserInterface): Promise<TicketInterface>;
|
|
8
8
|
findAll(pagination: ParamsTicketInterface, user?: UserInterface): Promise<TicketInterface[]>;
|
|
9
|
-
findByCode(code: string, user?: UserInterface): Promise<
|
|
9
|
+
findByCode(code: string, user?: UserInterface): Promise<ResponseFindTicketInterface>;
|
|
10
10
|
cancelByCode(code: string, user?: UserInterface): Promise<ResponseInterface>;
|
|
11
11
|
payByCode(code: string, user?: UserInterface): Promise<ResponseInterface>;
|
|
12
12
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseFindTicketInterface, TicketInterface } from "./ticket.base";
|
|
2
2
|
import { CreateTicketInterface } from "./create-ticket.base";
|
|
3
3
|
import { ParamsTicketInterface } from "./params-ticket.base";
|
|
4
4
|
import { ResponseInterface } from "../common";
|
|
5
5
|
export interface TicketServiceInterface {
|
|
6
6
|
create(dto: CreateTicketInterface): Promise<TicketInterface>;
|
|
7
7
|
findAll(pagination: ParamsTicketInterface): Promise<TicketInterface[]>;
|
|
8
|
-
findByCode(code: string): Promise<
|
|
8
|
+
findByCode(code: string): Promise<ResponseFindTicketInterface>;
|
|
9
9
|
cancelByCode(code: string): Promise<ResponseInterface>;
|
|
10
10
|
payByCode(code: string): Promise<ResponseInterface>;
|
|
11
11
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cleanObject: <T extends object>(obj: T) => Partial<T>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.cleanObject = void 0;
|
|
4
|
+
const cleanObject = (obj) => {
|
|
5
|
+
return Object.fromEntries(Object.entries(obj).filter(([_, value]) => value !== undefined && value !== null));
|
|
6
|
+
};
|
|
7
|
+
exports.cleanObject = cleanObject;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/utils/index.js
CHANGED
|
@@ -38,3 +38,4 @@ __exportStar(require("./validate-template_result"), exports);
|
|
|
38
38
|
__exportStar(require("./validate-xpath"), exports);
|
|
39
39
|
__exportStar(require("./validatePositionsResult"), exports);
|
|
40
40
|
__exportStar(require("./validate_propety"), exports);
|
|
41
|
+
__exportStar(require("./clean_object"), exports);
|