test-entity-library-asm 2.6.11 → 2.6.12
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/entities/DiscountCodeCompany.d.ts +3 -1
- package/dist/entities/DiscountCodeCompany.js +18 -2
- package/dist/entities/DiscountCodeUser.d.ts +2 -0
- package/dist/entities/DiscountCodeUser.js +14 -0
- package/package.json +1 -1
- package/src/entities/DiscountCodeCompany.ts +17 -2
- package/src/entities/DiscountCodeUser.ts +13 -0
|
@@ -6,8 +6,10 @@ export declare class DiscountCodeCompany {
|
|
|
6
6
|
discount: string;
|
|
7
7
|
type: number;
|
|
8
8
|
single_use: number;
|
|
9
|
+
use_limit: number;
|
|
9
10
|
created: Date;
|
|
10
|
-
|
|
11
|
+
start: string;
|
|
12
|
+
expiration: string;
|
|
11
13
|
updated: Date;
|
|
12
14
|
status: number;
|
|
13
15
|
updated_by: Master;
|
|
@@ -47,13 +47,29 @@ var DiscountCodeCompany = /** @class */ (function () {
|
|
|
47
47
|
}),
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
49
|
], DiscountCodeCompany.prototype, "single_use", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({
|
|
52
|
+
nullable: true,
|
|
53
|
+
comment: 'Validamos sí el descuento se aplica para una cantidad límite de usuarios. Entonces, no debería tener en cuenta la fecha de expiración o, si quiero agregar las 2 condicionales.',
|
|
54
|
+
}),
|
|
55
|
+
__metadata("design:type", Number)
|
|
56
|
+
], DiscountCodeCompany.prototype, "use_limit", void 0);
|
|
50
57
|
__decorate([
|
|
51
58
|
(0, typeorm_1.Column)({ type: 'datetime', comment: 'Fecha de creación del registro.' }),
|
|
52
59
|
__metadata("design:type", Date)
|
|
53
60
|
], DiscountCodeCompany.prototype, "created", void 0);
|
|
54
61
|
__decorate([
|
|
55
|
-
(0, typeorm_1.Column)({
|
|
56
|
-
|
|
62
|
+
(0, typeorm_1.Column)({
|
|
63
|
+
comment: 'Fecha inicial del descuento.',
|
|
64
|
+
}),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], DiscountCodeCompany.prototype, "start", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({
|
|
69
|
+
nullable: true,
|
|
70
|
+
comment: 'Fecha de expiración del registro.',
|
|
71
|
+
}),
|
|
72
|
+
__metadata("design:type", String)
|
|
57
73
|
], DiscountCodeCompany.prototype, "expiration", void 0);
|
|
58
74
|
__decorate([
|
|
59
75
|
(0, typeorm_1.Column)({ type: 'datetime', comment: 'Fecha de expiración del registro.' }),
|
|
@@ -63,6 +63,13 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
63
63
|
}),
|
|
64
64
|
__metadata("design:type", Number)
|
|
65
65
|
], DiscountCodeUser.prototype, "single_use", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({
|
|
68
|
+
nullable: true,
|
|
69
|
+
comment: 'Validamos sí el descuento se aplica para una cantidad límite de usuarios. Entonces, no debería tener en cuenta la fecha de expiración o, si quiero agregar las 2 condicionales.',
|
|
70
|
+
}),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], DiscountCodeUser.prototype, "use_limit", void 0);
|
|
66
73
|
__decorate([
|
|
67
74
|
(0, typeorm_1.Column)({
|
|
68
75
|
type: 'datetime',
|
|
@@ -73,6 +80,13 @@ var DiscountCodeUser = /** @class */ (function () {
|
|
|
73
80
|
], DiscountCodeUser.prototype, "created", void 0);
|
|
74
81
|
__decorate([
|
|
75
82
|
(0, typeorm_1.Column)({
|
|
83
|
+
comment: 'Fecha inicial del descuento.',
|
|
84
|
+
}),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], DiscountCodeUser.prototype, "start", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({
|
|
89
|
+
nullable: true,
|
|
76
90
|
comment: 'Fecha de expiración del registro.',
|
|
77
91
|
}),
|
|
78
92
|
__metadata("design:type", String)
|
package/package.json
CHANGED
|
@@ -42,11 +42,26 @@ export class DiscountCodeCompany {
|
|
|
42
42
|
})
|
|
43
43
|
single_use: number
|
|
44
44
|
|
|
45
|
+
@Column({
|
|
46
|
+
nullable: true,
|
|
47
|
+
comment:
|
|
48
|
+
'Validamos sí el descuento se aplica para una cantidad límite de usuarios. Entonces, no debería tener en cuenta la fecha de expiración o, si quiero agregar las 2 condicionales.',
|
|
49
|
+
})
|
|
50
|
+
use_limit: number
|
|
51
|
+
|
|
45
52
|
@Column({ type: 'datetime', comment: 'Fecha de creación del registro.' })
|
|
46
53
|
created: Date
|
|
47
54
|
|
|
48
|
-
@Column({
|
|
49
|
-
|
|
55
|
+
@Column({
|
|
56
|
+
comment: 'Fecha inicial del descuento.',
|
|
57
|
+
})
|
|
58
|
+
start: string
|
|
59
|
+
|
|
60
|
+
@Column({
|
|
61
|
+
nullable: true,
|
|
62
|
+
comment: 'Fecha de expiración del registro.',
|
|
63
|
+
})
|
|
64
|
+
expiration: string
|
|
50
65
|
|
|
51
66
|
@Column({ type: 'datetime', comment: 'Fecha de expiración del registro.' })
|
|
52
67
|
updated: Date
|
|
@@ -55,6 +55,13 @@ export class DiscountCodeUser {
|
|
|
55
55
|
})
|
|
56
56
|
single_use: number
|
|
57
57
|
|
|
58
|
+
@Column({
|
|
59
|
+
nullable: true,
|
|
60
|
+
comment:
|
|
61
|
+
'Validamos sí el descuento se aplica para una cantidad límite de usuarios. Entonces, no debería tener en cuenta la fecha de expiración o, si quiero agregar las 2 condicionales.',
|
|
62
|
+
})
|
|
63
|
+
use_limit: number
|
|
64
|
+
|
|
58
65
|
@Column({
|
|
59
66
|
type: 'datetime',
|
|
60
67
|
transformer: new DateTransformer(),
|
|
@@ -63,6 +70,12 @@ export class DiscountCodeUser {
|
|
|
63
70
|
created: Date
|
|
64
71
|
|
|
65
72
|
@Column({
|
|
73
|
+
comment: 'Fecha inicial del descuento.',
|
|
74
|
+
})
|
|
75
|
+
start: string
|
|
76
|
+
|
|
77
|
+
@Column({
|
|
78
|
+
nullable: true,
|
|
66
79
|
comment: 'Fecha de expiración del registro.',
|
|
67
80
|
})
|
|
68
81
|
expiration: string
|