test-entity-library-asm 2.6.11 → 2.6.13
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 +4 -1
- package/dist/entities/DiscountCodeCompany.js +26 -2
- package/dist/entities/DiscountCodeUser.d.ts +3 -0
- package/dist/entities/DiscountCodeUser.js +22 -0
- package/package.json +1 -1
- package/src/entities/DiscountCodeCompany.ts +25 -2
- package/src/entities/DiscountCodeUser.ts +21 -0
|
@@ -6,8 +6,11 @@ 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;
|
|
13
|
+
repeat_days: string;
|
|
11
14
|
updated: Date;
|
|
12
15
|
status: number;
|
|
13
16
|
updated_by: Master;
|
|
@@ -47,14 +47,38 @@ 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);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({
|
|
76
|
+
length: 300,
|
|
77
|
+
nullable: true,
|
|
78
|
+
comment: 'Columna para agregar en un arreglo los días que se pueden repetir el descuento.',
|
|
79
|
+
}),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], DiscountCodeCompany.prototype, "repeat_days", void 0);
|
|
58
82
|
__decorate([
|
|
59
83
|
(0, typeorm_1.Column)({ type: 'datetime', comment: 'Fecha de expiración del registro.' }),
|
|
60
84
|
__metadata("design:type", Date)
|
|
@@ -10,8 +10,11 @@ export declare class DiscountCodeUser {
|
|
|
10
10
|
discount: string;
|
|
11
11
|
type: number;
|
|
12
12
|
single_use: number;
|
|
13
|
+
use_limit: number;
|
|
13
14
|
created: Date;
|
|
15
|
+
start: string;
|
|
14
16
|
expiration: string;
|
|
17
|
+
repeat_days: string;
|
|
15
18
|
updated_by: Partner;
|
|
16
19
|
updated: Date;
|
|
17
20
|
status: number;
|
|
@@ -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,10 +80,25 @@ 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)
|
|
79
93
|
], DiscountCodeUser.prototype, "expiration", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)({
|
|
96
|
+
length: 300,
|
|
97
|
+
nullable: true,
|
|
98
|
+
comment: 'Columna para agregar en un arreglo los días que se pueden repetir el descuento.',
|
|
99
|
+
}),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], DiscountCodeUser.prototype, "repeat_days", void 0);
|
|
80
102
|
__decorate([
|
|
81
103
|
(0, typeorm_1.ManyToOne)(function () { return Partner_1.Partner; }, function (partner) { return partner.discount_code_partners; }, {
|
|
82
104
|
onDelete: 'CASCADE',
|
package/package.json
CHANGED
|
@@ -42,11 +42,34 @@ 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
|
|
65
|
+
|
|
66
|
+
@Column({
|
|
67
|
+
length: 300,
|
|
68
|
+
nullable: true,
|
|
69
|
+
comment:
|
|
70
|
+
'Columna para agregar en un arreglo los días que se pueden repetir el descuento.',
|
|
71
|
+
})
|
|
72
|
+
repeat_days: string
|
|
50
73
|
|
|
51
74
|
@Column({ type: 'datetime', comment: 'Fecha de expiración del registro.' })
|
|
52
75
|
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,10 +70,24 @@ 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
|
|
69
82
|
|
|
83
|
+
@Column({
|
|
84
|
+
length: 300,
|
|
85
|
+
nullable: true,
|
|
86
|
+
comment:
|
|
87
|
+
'Columna para agregar en un arreglo los días que se pueden repetir el descuento.',
|
|
88
|
+
})
|
|
89
|
+
repeat_days: string
|
|
90
|
+
|
|
70
91
|
@ManyToOne(() => Partner, (partner) => partner.discount_code_partners, {
|
|
71
92
|
onDelete: 'CASCADE',
|
|
72
93
|
onUpdate: 'NO ACTION',
|