@carlosdiazz/lottodiz-shared 1.0.6 → 1.0.8
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/constants/message.d.ts +2 -1
- package/dist/constants/message.js +1 -0
- package/dist/dtos/country/country.dto.d.ts +15 -0
- package/dist/dtos/country/country.dto.js +62 -0
- package/dist/dtos/country/create-country.base.d.ts +1 -1
- package/dist/dtos/country/create-country.base.js +53 -3
- package/dist/dtos/country/index.d.ts +1 -1
- package/dist/dtos/country/index.js +1 -1
- package/dist/dtos/country/params-country.base.d.ts +1 -1
- package/dist/dtos/country/params-country.base.js +24 -3
- package/dist/dtos/country/response-country.base.d.ts +3 -3
- package/dist/dtos/country/response-country.base.js +21 -3
- package/dist/dtos/index.d.ts +1 -0
- package/dist/dtos/index.js +1 -0
- package/dist/dtos/lottery/lottery.base.d.ts +2 -2
- package/package.json +1 -1
|
@@ -4,5 +4,6 @@ export declare enum MESSAGE {
|
|
|
4
4
|
SE_ELIMINO_CORRECTAMENTE = "SE ELIMINO CORRECTAMENTE",
|
|
5
5
|
NO_SE_PUEDE_ELIMINAR = "NO SE PUEDE ELIMINAR",
|
|
6
6
|
NO_SE_PUDO_EDITAR = "NO SE PUDO EDITAR",
|
|
7
|
-
NO_SE_PUDO_CREAR = "NO SE PUDO CREAR"
|
|
7
|
+
NO_SE_PUDO_CREAR = "NO SE PUDO CREAR",
|
|
8
|
+
NO_TIENES_PERMISO = "No Tienes Permiso"
|
|
8
9
|
}
|
|
@@ -9,4 +9,5 @@ var MESSAGE;
|
|
|
9
9
|
MESSAGE["NO_SE_PUEDE_ELIMINAR"] = "NO SE PUEDE ELIMINAR";
|
|
10
10
|
MESSAGE["NO_SE_PUDO_EDITAR"] = "NO SE PUDO EDITAR";
|
|
11
11
|
MESSAGE["NO_SE_PUDO_CREAR"] = "NO SE PUDO CREAR";
|
|
12
|
+
MESSAGE["NO_TIENES_PERMISO"] = "No Tienes Permiso";
|
|
12
13
|
})(MESSAGE || (exports.MESSAGE = MESSAGE = {}));
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { LotteryBase } from "../lottery";
|
|
2
|
+
import { CountryBase } from "../../models";
|
|
3
|
+
export declare class CountryDto implements CountryBase {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
preference: number;
|
|
8
|
+
color: string;
|
|
9
|
+
imagen?: string;
|
|
10
|
+
view_screen: boolean;
|
|
11
|
+
id_platform?: number;
|
|
12
|
+
lottery?: LotteryBase[];
|
|
13
|
+
create_at: Date;
|
|
14
|
+
update_at: Date;
|
|
15
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.CountryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CountryDto {
|
|
15
|
+
}
|
|
16
|
+
exports.CountryDto = CountryDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsNumber)(),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], CountryDto.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsString)(),
|
|
23
|
+
__metadata("design:type", String)
|
|
24
|
+
], CountryDto.prototype, "name", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], CountryDto.prototype, "active", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, class_validator_1.IsNumber)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CountryDto.prototype, "preference", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], CountryDto.prototype, "color", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, class_validator_1.IsUrl)(),
|
|
39
|
+
(0, class_validator_1.IsOptional)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], CountryDto.prototype, "imagen", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsBoolean)(),
|
|
44
|
+
__metadata("design:type", Boolean)
|
|
45
|
+
], CountryDto.prototype, "view_screen", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsNumber)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", Number)
|
|
50
|
+
], CountryDto.prototype, "id_platform", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsOptional)(),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], CountryDto.prototype, "lottery", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, class_validator_1.IsDateString)(),
|
|
57
|
+
__metadata("design:type", Date)
|
|
58
|
+
], CountryDto.prototype, "create_at", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, class_validator_1.IsDateString)(),
|
|
61
|
+
__metadata("design:type", Date)
|
|
62
|
+
], CountryDto.prototype, "update_at", void 0);
|
|
@@ -1,6 +1,56 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
12
|
+
exports.CreateCountryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class CreateCountryDto {
|
|
5
15
|
}
|
|
6
|
-
exports.
|
|
16
|
+
exports.CreateCountryDto = CreateCountryDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsString)(),
|
|
19
|
+
(0, class_validator_1.MinLength)(1),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], CreateCountryDto.prototype, "name", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, class_validator_1.IsBoolean)(),
|
|
24
|
+
(0, class_validator_1.IsOptional)(),
|
|
25
|
+
__metadata("design:type", Boolean)
|
|
26
|
+
], CreateCountryDto.prototype, "active", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsNumber)(),
|
|
29
|
+
(0, class_validator_1.Min)(0),
|
|
30
|
+
(0, class_validator_1.IsOptional)(),
|
|
31
|
+
__metadata("design:type", Number)
|
|
32
|
+
], CreateCountryDto.prototype, "preference", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, class_validator_1.IsString)(),
|
|
35
|
+
(0, class_validator_1.Matches)(/^#[0-9a-fA-F]{6}$/),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], CreateCountryDto.prototype, "color", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, class_validator_1.IsString)(),
|
|
41
|
+
(0, class_validator_1.Matches)(/\.(png|jpg|gif)$/),
|
|
42
|
+
(0, class_validator_1.IsUrl)(),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], CreateCountryDto.prototype, "imagen", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
(0, class_validator_1.IsOptional)(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], CreateCountryDto.prototype, "view_screen", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, class_validator_1.IsNumber)(),
|
|
53
|
+
(0, class_validator_1.Min)(1),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], CreateCountryDto.prototype, "id_platform", void 0);
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./country.
|
|
17
|
+
__exportStar(require("./country.dto"), exports);
|
|
18
18
|
__exportStar(require("./create-country.base"), exports);
|
|
19
19
|
__exportStar(require("./params-country.base"), exports);
|
|
20
20
|
__exportStar(require("./response-country.base"), exports);
|
|
@@ -1,7 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
12
|
+
exports.ParamsCountryDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
4
14
|
const common_1 = require("../common");
|
|
5
|
-
class
|
|
15
|
+
class ParamsCountryDto extends common_1.PaginationDto {
|
|
6
16
|
}
|
|
7
|
-
exports.
|
|
17
|
+
exports.ParamsCountryDto = ParamsCountryDto;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, class_validator_1.IsOptional)(),
|
|
20
|
+
(0, class_validator_1.IsNumber)(),
|
|
21
|
+
(0, class_validator_1.Min)(1),
|
|
22
|
+
__metadata("design:type", Number)
|
|
23
|
+
], ParamsCountryDto.prototype, "id_platform", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
(0, class_validator_1.IsBoolean)(),
|
|
27
|
+
__metadata("design:type", Boolean)
|
|
28
|
+
], ParamsCountryDto.prototype, "view_screen", void 0);
|
|
@@ -1,6 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
2
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
|
|
12
|
+
exports.ResponseCountryBaseDto = void 0;
|
|
13
|
+
const class_validator_1 = require("class-validator");
|
|
14
|
+
class ResponseCountryBaseDto {
|
|
5
15
|
}
|
|
6
|
-
exports.
|
|
16
|
+
exports.ResponseCountryBaseDto = ResponseCountryBaseDto;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, class_validator_1.IsArray)(),
|
|
19
|
+
__metadata("design:type", Array)
|
|
20
|
+
], ResponseCountryBaseDto.prototype, "items", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, class_validator_1.IsNumber)(),
|
|
23
|
+
__metadata("design:type", Number)
|
|
24
|
+
], ResponseCountryBaseDto.prototype, "total", void 0);
|
package/dist/dtos/index.d.ts
CHANGED
package/dist/dtos/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CountryDto } from "../country";
|
|
2
2
|
import { TemplateDrawBase } from "../template_draw";
|
|
3
3
|
export declare class LotteryBase {
|
|
4
4
|
id: number;
|
|
@@ -11,7 +11,7 @@ export declare class LotteryBase {
|
|
|
11
11
|
preference: number;
|
|
12
12
|
color: string;
|
|
13
13
|
is_express: boolean;
|
|
14
|
-
country?:
|
|
14
|
+
country?: CountryDto;
|
|
15
15
|
template_draw?: TemplateDrawBase[];
|
|
16
16
|
create_at: Date;
|
|
17
17
|
update_at: Date;
|