@carlosdiazz/lottodiz-shared 1.9.4 → 1.9.6
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.
|
@@ -5,7 +5,6 @@ import { ResponseDrawWebscrapingInterface } from "./response-draw_webscraping.ba
|
|
|
5
5
|
import { UpdateDrawWebscrapingInterface } from "./update-draw_webscraping.base";
|
|
6
6
|
export interface DrawWebscrapingControllerInterface {
|
|
7
7
|
findAll(pagination: ParamsDrawWebscrapingInterface): Promise<ResponseDrawWebscrapingInterface>;
|
|
8
|
-
findOneWithRelation(id: number): Promise<DrawWebscrapingInterface>;
|
|
9
8
|
findOne(id: number): Promise<DrawWebscrapingInterface>;
|
|
10
9
|
update(dto: UpdateDrawWebscrapingInterface): Promise<DrawWebscrapingInterface>;
|
|
11
10
|
remove(id: number): Promise<ResponseInterface>;
|
|
@@ -8,7 +8,6 @@ export interface DrawWebscrapingServiceInterface {
|
|
|
8
8
|
create(dto: CreateDrawWebscrapingInterface): Promise<DrawWebscrapingInterface>;
|
|
9
9
|
findAll(pagination: ParamsDrawWebscrapingInterface): Promise<ResponseDrawWebscrapingInterface>;
|
|
10
10
|
findOne(id: number): Promise<DrawWebscrapingInterface>;
|
|
11
|
-
findOneWithRelation(id: number): Promise<DrawWebscrapingInterface>;
|
|
12
11
|
update(dto: UpdateDrawWebscrapingInterface): Promise<DrawWebscrapingInterface>;
|
|
13
12
|
remove(id: number): Promise<ResponseInterface>;
|
|
14
13
|
findAllDrawsWebscrapingByDate(paramsDrawWebscrapingByDate: ParamsDrawWebscrapingByDateInterface): Promise<DrawWebscrapingInterface[]>;
|
|
@@ -7,4 +7,4 @@ import * as joi from "joi";
|
|
|
7
7
|
* @returns Nueva hora en formato "HH:mm:ss"
|
|
8
8
|
*/
|
|
9
9
|
export declare function convertTimeZone(time: string, timeZone: string, timeZoneChange: string): string;
|
|
10
|
-
export declare const timeZoneValidator:
|
|
10
|
+
export declare const timeZoneValidator: joi.CustomValidator<string>;
|
|
@@ -42,9 +42,7 @@ function convertTimeZone(time, timeZone, timeZoneChange) {
|
|
|
42
42
|
const timeZoneValidator = (value, helpers) => {
|
|
43
43
|
const valid = luxon_1.DateTime.local().setZone(value).isValid;
|
|
44
44
|
if (!valid) {
|
|
45
|
-
return helpers.error("any.invalid", {
|
|
46
|
-
message: `"${value}" is not a valid IANA timezone`,
|
|
47
|
-
});
|
|
45
|
+
return helpers.error("any.invalid", { value });
|
|
48
46
|
}
|
|
49
47
|
return value;
|
|
50
48
|
};
|