test-entity-library-asm 2.9.6 → 2.9.7
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.
|
@@ -20,10 +20,10 @@ var jsonTransformer = {
|
|
|
20
20
|
};
|
|
21
21
|
var DateTransformer = {
|
|
22
22
|
to: function (value) {
|
|
23
|
-
return moment.utc(value).format(
|
|
23
|
+
return moment.utc(value).format("YYYY-MM-DD HH:mm:ss");
|
|
24
24
|
},
|
|
25
25
|
from: function (value) {
|
|
26
|
-
return moment.utc(value).tz((0, __1.getTimeZone)()).format(
|
|
26
|
+
return moment.utc(value).tz((0, __1.getTimeZone)()).format("YYYY-MM-DD HH:mm:ss");
|
|
27
27
|
},
|
|
28
28
|
};
|
|
29
29
|
var ViewLocalsCompanies = /** @class */ (function () {
|
|
@@ -53,6 +53,10 @@ var ViewLocalsCompanies = /** @class */ (function () {
|
|
|
53
53
|
(0, typeorm_1.ViewColumn)(),
|
|
54
54
|
__metadata("design:type", Number)
|
|
55
55
|
], ViewLocalsCompanies.prototype, "has_square", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
58
|
+
__metadata("design:type", Object)
|
|
59
|
+
], ViewLocalsCompanies.prototype, "details_local", void 0);
|
|
56
60
|
__decorate([
|
|
57
61
|
(0, typeorm_1.ViewColumn)(),
|
|
58
62
|
__metadata("design:type", String)
|
|
@@ -111,7 +115,7 @@ var ViewLocalsCompanies = /** @class */ (function () {
|
|
|
111
115
|
], ViewLocalsCompanies.prototype, "company", void 0);
|
|
112
116
|
ViewLocalsCompanies = __decorate([
|
|
113
117
|
(0, typeorm_1.ViewEntity)({
|
|
114
|
-
name:
|
|
118
|
+
name: "view_locals_companies",
|
|
115
119
|
})
|
|
116
120
|
], ViewLocalsCompanies);
|
|
117
121
|
return ViewLocalsCompanies;
|
package/package.json
CHANGED
|
@@ -1,83 +1,86 @@
|
|
|
1
|
-
import { ViewEntity, ViewColumn } from
|
|
2
|
-
import moment = require(
|
|
3
|
-
import { getTimeZone } from
|
|
1
|
+
import { ViewEntity, ViewColumn } from "typeorm";
|
|
2
|
+
import moment = require("moment-timezone");
|
|
3
|
+
import { getTimeZone } from "..";
|
|
4
4
|
|
|
5
5
|
// JSON Transformer
|
|
6
6
|
const jsonTransformer = {
|
|
7
7
|
to: (value: any) => JSON.stringify(value),
|
|
8
8
|
from: (value: string) => JSON.parse(value),
|
|
9
|
-
}
|
|
9
|
+
};
|
|
10
10
|
|
|
11
11
|
const DateTransformer = {
|
|
12
12
|
to(value: Date | string): string {
|
|
13
|
-
return moment.utc(value).format(
|
|
13
|
+
return moment.utc(value).format("YYYY-MM-DD HH:mm:ss");
|
|
14
14
|
},
|
|
15
15
|
from(value: string): string {
|
|
16
|
-
return moment.utc(value).tz(getTimeZone()).format(
|
|
16
|
+
return moment.utc(value).tz(getTimeZone()).format("YYYY-MM-DD HH:mm:ss");
|
|
17
17
|
},
|
|
18
|
-
}
|
|
18
|
+
};
|
|
19
19
|
|
|
20
20
|
@ViewEntity({
|
|
21
|
-
name:
|
|
21
|
+
name: "view_locals_companies",
|
|
22
22
|
})
|
|
23
23
|
export class ViewLocalsCompanies {
|
|
24
24
|
@ViewColumn()
|
|
25
|
-
id_local: number
|
|
25
|
+
id_local: number;
|
|
26
26
|
|
|
27
27
|
@ViewColumn()
|
|
28
|
-
name_local: string
|
|
28
|
+
name_local: string;
|
|
29
29
|
|
|
30
30
|
@ViewColumn({ transformer: DateTransformer })
|
|
31
|
-
created_local: string
|
|
31
|
+
created_local: string;
|
|
32
32
|
|
|
33
33
|
@ViewColumn({ transformer: DateTransformer })
|
|
34
|
-
updated_local: string
|
|
34
|
+
updated_local: string;
|
|
35
35
|
|
|
36
36
|
@ViewColumn()
|
|
37
|
-
status: number
|
|
37
|
+
status: number;
|
|
38
38
|
|
|
39
39
|
@ViewColumn()
|
|
40
|
-
has_square: number
|
|
40
|
+
has_square: number;
|
|
41
|
+
|
|
42
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
43
|
+
details_local: object;
|
|
41
44
|
|
|
42
45
|
@ViewColumn()
|
|
43
|
-
pos_system_name: string
|
|
46
|
+
pos_system_name: string;
|
|
44
47
|
|
|
45
48
|
@ViewColumn()
|
|
46
|
-
city_name: string
|
|
49
|
+
city_name: string;
|
|
47
50
|
|
|
48
51
|
@ViewColumn()
|
|
49
|
-
region_name: string
|
|
52
|
+
region_name: string;
|
|
50
53
|
|
|
51
54
|
@ViewColumn()
|
|
52
|
-
country_name: string
|
|
55
|
+
country_name: string;
|
|
53
56
|
|
|
54
57
|
@ViewColumn()
|
|
55
|
-
prefix: string
|
|
58
|
+
prefix: string;
|
|
56
59
|
|
|
57
60
|
@ViewColumn()
|
|
58
|
-
country_code: string
|
|
61
|
+
country_code: string;
|
|
59
62
|
|
|
60
63
|
@ViewColumn()
|
|
61
|
-
total_partners: number
|
|
64
|
+
total_partners: number;
|
|
62
65
|
|
|
63
66
|
@ViewColumn()
|
|
64
|
-
cellphone: string
|
|
67
|
+
cellphone: string;
|
|
65
68
|
|
|
66
69
|
@ViewColumn()
|
|
67
|
-
email: string
|
|
70
|
+
email: string;
|
|
68
71
|
|
|
69
72
|
@ViewColumn()
|
|
70
|
-
isVerifyPhone: number
|
|
73
|
+
isVerifyPhone: number;
|
|
71
74
|
|
|
72
75
|
@ViewColumn()
|
|
73
|
-
isVerifyEmail: number
|
|
76
|
+
isVerifyEmail: number;
|
|
74
77
|
|
|
75
78
|
@ViewColumn()
|
|
76
|
-
address: string
|
|
79
|
+
address: string;
|
|
77
80
|
|
|
78
81
|
@ViewColumn()
|
|
79
|
-
visible: number
|
|
82
|
+
visible: number;
|
|
80
83
|
|
|
81
84
|
@ViewColumn()
|
|
82
|
-
company: number
|
|
85
|
+
company: number;
|
|
83
86
|
}
|