test-entity-library-asm 3.9.70 → 3.9.72
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/DiscountCodeUser.d.ts +2 -1
- package/dist/entities/DiscountCodeUser.js +11 -2
- package/dist/views/DiscountsCodeUser.d.ts +2 -0
- package/dist/views/DiscountsCodeUser.js +8 -0
- package/package.json +1 -1
- package/src/entities/DiscountCodeUser.ts +11 -2
- package/src/views/DiscountsCodeUser.ts +6 -0
|
@@ -5,11 +5,12 @@ import { Partner } from "./Partner";
|
|
|
5
5
|
export declare class DiscountCodeUser {
|
|
6
6
|
id: number;
|
|
7
7
|
company: Company;
|
|
8
|
-
local: Local
|
|
8
|
+
local: Local;
|
|
9
9
|
code: string;
|
|
10
10
|
name: string;
|
|
11
11
|
mode: number;
|
|
12
12
|
user_segment: number;
|
|
13
|
+
limited_budget: string;
|
|
13
14
|
discount: string;
|
|
14
15
|
type: number;
|
|
15
16
|
use_limit: number | null;
|
|
@@ -37,10 +37,9 @@ __decorate([
|
|
|
37
37
|
(0, typeorm_1.ManyToOne)(() => __1.Local, (local) => local.discount_code_locals, {
|
|
38
38
|
onDelete: "CASCADE",
|
|
39
39
|
onUpdate: "NO ACTION",
|
|
40
|
-
nullable: true,
|
|
41
40
|
}),
|
|
42
41
|
(0, typeorm_1.JoinColumn)({ name: "local" }),
|
|
43
|
-
__metadata("design:type",
|
|
42
|
+
__metadata("design:type", __1.Local)
|
|
44
43
|
], DiscountCodeUser.prototype, "local", void 0);
|
|
45
44
|
__decorate([
|
|
46
45
|
(0, typeorm_1.Column)({
|
|
@@ -76,6 +75,16 @@ __decorate([
|
|
|
76
75
|
}),
|
|
77
76
|
__metadata("design:type", Number)
|
|
78
77
|
], DiscountCodeUser.prototype, "user_segment", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({
|
|
80
|
+
type: "varchar",
|
|
81
|
+
length: 40,
|
|
82
|
+
nullable: true,
|
|
83
|
+
default: null,
|
|
84
|
+
comment: "Presupuesto limitado: Indica si el descuento va a tener un presupuesto limitado, es decir, si yo agrego un valor (eje: 600.000 COP), cuando se agote ese presupuesto la promoción/descuento se finalizará.\nSi queda en null este campo, lo que indica es que tendrá un presupuesto ilimitado, entonces finalizará una vez se agote el límite de uso o fecha de expiración.",
|
|
85
|
+
}),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], DiscountCodeUser.prototype, "limited_budget", void 0);
|
|
79
88
|
__decorate([
|
|
80
89
|
(0, typeorm_1.Column)({ length: 10, type: "varchar", comment: "Descuento que se aplica." }),
|
|
81
90
|
__metadata("design:type", String)
|
|
@@ -6,6 +6,7 @@ export declare class DiscountsCodeUser {
|
|
|
6
6
|
name: string;
|
|
7
7
|
mode: number;
|
|
8
8
|
user_segment: number;
|
|
9
|
+
limited_budget: string | null;
|
|
9
10
|
discount: string;
|
|
10
11
|
type: number;
|
|
11
12
|
use_limit: number;
|
|
@@ -37,5 +38,6 @@ export declare class DiscountsCodeUser {
|
|
|
37
38
|
partner_full_name: string;
|
|
38
39
|
partner_profile: any;
|
|
39
40
|
partner_status: number;
|
|
41
|
+
number_of_products: number;
|
|
40
42
|
number_of_times_used: number;
|
|
41
43
|
}
|
|
@@ -42,6 +42,10 @@ __decorate([
|
|
|
42
42
|
(0, typeorm_1.ViewColumn)(),
|
|
43
43
|
__metadata("design:type", Number)
|
|
44
44
|
], DiscountsCodeUser.prototype, "user_segment", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, typeorm_1.ViewColumn)(),
|
|
47
|
+
__metadata("design:type", Object)
|
|
48
|
+
], DiscountsCodeUser.prototype, "limited_budget", void 0);
|
|
45
49
|
__decorate([
|
|
46
50
|
(0, typeorm_1.ViewColumn)(),
|
|
47
51
|
__metadata("design:type", String)
|
|
@@ -166,6 +170,10 @@ __decorate([
|
|
|
166
170
|
(0, typeorm_1.ViewColumn)(),
|
|
167
171
|
__metadata("design:type", Number)
|
|
168
172
|
], DiscountsCodeUser.prototype, "partner_status", void 0);
|
|
173
|
+
__decorate([
|
|
174
|
+
(0, typeorm_1.ViewColumn)(),
|
|
175
|
+
__metadata("design:type", Number)
|
|
176
|
+
], DiscountsCodeUser.prototype, "number_of_products", void 0);
|
|
169
177
|
__decorate([
|
|
170
178
|
(0, typeorm_1.ViewColumn)(),
|
|
171
179
|
__metadata("design:type", Number)
|
package/package.json
CHANGED
|
@@ -31,10 +31,9 @@ export class DiscountCodeUser {
|
|
|
31
31
|
@ManyToOne(() => Local, (local) => local.discount_code_locals, {
|
|
32
32
|
onDelete: "CASCADE",
|
|
33
33
|
onUpdate: "NO ACTION",
|
|
34
|
-
nullable: true,
|
|
35
34
|
})
|
|
36
35
|
@JoinColumn({ name: "local" })
|
|
37
|
-
local: Local
|
|
36
|
+
local: Local;
|
|
38
37
|
|
|
39
38
|
@Column({
|
|
40
39
|
length: 10,
|
|
@@ -68,6 +67,16 @@ export class DiscountCodeUser {
|
|
|
68
67
|
})
|
|
69
68
|
user_segment: number;
|
|
70
69
|
|
|
70
|
+
@Column({
|
|
71
|
+
type: "varchar",
|
|
72
|
+
length: 40,
|
|
73
|
+
nullable: true,
|
|
74
|
+
default: null,
|
|
75
|
+
comment:
|
|
76
|
+
"Presupuesto limitado: Indica si el descuento va a tener un presupuesto limitado, es decir, si yo agrego un valor (eje: 600.000 COP), cuando se agote ese presupuesto la promoción/descuento se finalizará.\nSi queda en null este campo, lo que indica es que tendrá un presupuesto ilimitado, entonces finalizará una vez se agote el límite de uso o fecha de expiración.",
|
|
77
|
+
})
|
|
78
|
+
limited_budget: string;
|
|
79
|
+
|
|
71
80
|
@Column({ length: 10, type: "varchar", comment: "Descuento que se aplica." })
|
|
72
81
|
discount: string;
|
|
73
82
|
|
|
@@ -25,6 +25,9 @@ export class DiscountsCodeUser {
|
|
|
25
25
|
@ViewColumn()
|
|
26
26
|
user_segment: number;
|
|
27
27
|
|
|
28
|
+
@ViewColumn()
|
|
29
|
+
limited_budget: string | null;
|
|
30
|
+
|
|
28
31
|
@ViewColumn()
|
|
29
32
|
discount: string;
|
|
30
33
|
|
|
@@ -118,6 +121,9 @@ export class DiscountsCodeUser {
|
|
|
118
121
|
@ViewColumn()
|
|
119
122
|
partner_status: number;
|
|
120
123
|
|
|
124
|
+
@ViewColumn()
|
|
125
|
+
number_of_products: number;
|
|
126
|
+
|
|
121
127
|
@ViewColumn()
|
|
122
128
|
number_of_times_used: number;
|
|
123
129
|
}
|