test-entity-library-asm 3.9.33 → 3.9.34
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.
|
@@ -7,8 +7,8 @@ export declare class LocalsCompanyInformationForTheMap {
|
|
|
7
7
|
latitude: number;
|
|
8
8
|
longitude: number;
|
|
9
9
|
details: any | null;
|
|
10
|
-
created:
|
|
11
|
-
updated:
|
|
10
|
+
created: Date;
|
|
11
|
+
updated: Date;
|
|
12
12
|
updated_by: number;
|
|
13
13
|
square: number | null;
|
|
14
14
|
pos_system: number;
|
|
@@ -22,9 +22,9 @@ export declare class LocalsCompanyInformationForTheMap {
|
|
|
22
22
|
company_profile: any | null;
|
|
23
23
|
company_contact_details: any | null;
|
|
24
24
|
company_settings: any | null;
|
|
25
|
-
company_created:
|
|
25
|
+
company_created: Date;
|
|
26
26
|
company_expiration: string | null;
|
|
27
|
-
company_updated:
|
|
27
|
+
company_updated: Date;
|
|
28
28
|
company_status: number;
|
|
29
29
|
total_requests: number;
|
|
30
30
|
total_ratings: number;
|
|
@@ -11,8 +11,6 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.LocalsCompanyInformationForTheMap = void 0;
|
|
13
13
|
const typeorm_1 = require("typeorm");
|
|
14
|
-
const moment = require("moment-timezone");
|
|
15
|
-
const __1 = require("..");
|
|
16
14
|
const jsonTransformer = {
|
|
17
15
|
to: (value) => JSON.stringify(value),
|
|
18
16
|
from: (value) => {
|
|
@@ -25,14 +23,6 @@ const jsonTransformer = {
|
|
|
25
23
|
}
|
|
26
24
|
},
|
|
27
25
|
};
|
|
28
|
-
const DateTransformer = {
|
|
29
|
-
to(value) {
|
|
30
|
-
return moment.utc(value).format("YYYY-MM-DD HH:mm:ss");
|
|
31
|
-
},
|
|
32
|
-
from(value) {
|
|
33
|
-
return moment.utc(value).tz((0, __1.getTimeZone)()).format("YYYY-MM-DD HH:mm:ss");
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
26
|
let LocalsCompanyInformationForTheMap = class LocalsCompanyInformationForTheMap {
|
|
37
27
|
};
|
|
38
28
|
exports.LocalsCompanyInformationForTheMap = LocalsCompanyInformationForTheMap;
|
|
@@ -69,12 +59,12 @@ __decorate([
|
|
|
69
59
|
__metadata("design:type", Object)
|
|
70
60
|
], LocalsCompanyInformationForTheMap.prototype, "details", void 0);
|
|
71
61
|
__decorate([
|
|
72
|
-
(0, typeorm_1.ViewColumn)(
|
|
73
|
-
__metadata("design:type",
|
|
62
|
+
(0, typeorm_1.ViewColumn)(),
|
|
63
|
+
__metadata("design:type", Date)
|
|
74
64
|
], LocalsCompanyInformationForTheMap.prototype, "created", void 0);
|
|
75
65
|
__decorate([
|
|
76
|
-
(0, typeorm_1.ViewColumn)(
|
|
77
|
-
__metadata("design:type",
|
|
66
|
+
(0, typeorm_1.ViewColumn)(),
|
|
67
|
+
__metadata("design:type", Date)
|
|
78
68
|
], LocalsCompanyInformationForTheMap.prototype, "updated", void 0);
|
|
79
69
|
__decorate([
|
|
80
70
|
(0, typeorm_1.ViewColumn)(),
|
|
@@ -129,16 +119,16 @@ __decorate([
|
|
|
129
119
|
__metadata("design:type", Object)
|
|
130
120
|
], LocalsCompanyInformationForTheMap.prototype, "company_settings", void 0);
|
|
131
121
|
__decorate([
|
|
132
|
-
(0, typeorm_1.ViewColumn)(
|
|
133
|
-
__metadata("design:type",
|
|
122
|
+
(0, typeorm_1.ViewColumn)(),
|
|
123
|
+
__metadata("design:type", Date)
|
|
134
124
|
], LocalsCompanyInformationForTheMap.prototype, "company_created", void 0);
|
|
135
125
|
__decorate([
|
|
136
|
-
(0, typeorm_1.ViewColumn)(
|
|
126
|
+
(0, typeorm_1.ViewColumn)(),
|
|
137
127
|
__metadata("design:type", Object)
|
|
138
128
|
], LocalsCompanyInformationForTheMap.prototype, "company_expiration", void 0);
|
|
139
129
|
__decorate([
|
|
140
|
-
(0, typeorm_1.ViewColumn)(
|
|
141
|
-
__metadata("design:type",
|
|
130
|
+
(0, typeorm_1.ViewColumn)(),
|
|
131
|
+
__metadata("design:type", Date)
|
|
142
132
|
], LocalsCompanyInformationForTheMap.prototype, "company_updated", void 0);
|
|
143
133
|
__decorate([
|
|
144
134
|
(0, typeorm_1.ViewColumn)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import { ViewColumn, ViewEntity } from "typeorm";
|
|
2
|
-
import moment = require("moment-timezone");
|
|
3
|
-
import { getTimeZone } from "..";
|
|
4
2
|
|
|
5
3
|
const jsonTransformer = {
|
|
6
4
|
to: (value: any) => JSON.stringify(value),
|
|
@@ -14,15 +12,6 @@ const jsonTransformer = {
|
|
|
14
12
|
},
|
|
15
13
|
};
|
|
16
14
|
|
|
17
|
-
const DateTransformer = {
|
|
18
|
-
to(value: Date | string): string {
|
|
19
|
-
return moment.utc(value).format("YYYY-MM-DD HH:mm:ss");
|
|
20
|
-
},
|
|
21
|
-
from(value: string): string {
|
|
22
|
-
return moment.utc(value).tz(getTimeZone()).format("YYYY-MM-DD HH:mm:ss");
|
|
23
|
-
},
|
|
24
|
-
};
|
|
25
|
-
|
|
26
15
|
@ViewEntity({
|
|
27
16
|
name: "locals_company_information_for_the_map",
|
|
28
17
|
})
|
|
@@ -51,11 +40,11 @@ export class LocalsCompanyInformationForTheMap {
|
|
|
51
40
|
@ViewColumn({ transformer: jsonTransformer })
|
|
52
41
|
details: any | null;
|
|
53
42
|
|
|
54
|
-
@ViewColumn(
|
|
55
|
-
created:
|
|
43
|
+
@ViewColumn()
|
|
44
|
+
created: Date;
|
|
56
45
|
|
|
57
|
-
@ViewColumn(
|
|
58
|
-
updated:
|
|
46
|
+
@ViewColumn()
|
|
47
|
+
updated: Date;
|
|
59
48
|
|
|
60
49
|
@ViewColumn()
|
|
61
50
|
updated_by: number;
|
|
@@ -96,14 +85,14 @@ export class LocalsCompanyInformationForTheMap {
|
|
|
96
85
|
@ViewColumn({ transformer: jsonTransformer })
|
|
97
86
|
company_settings: any | null;
|
|
98
87
|
|
|
99
|
-
@ViewColumn(
|
|
100
|
-
company_created:
|
|
88
|
+
@ViewColumn()
|
|
89
|
+
company_created: Date;
|
|
101
90
|
|
|
102
|
-
@ViewColumn(
|
|
91
|
+
@ViewColumn()
|
|
103
92
|
company_expiration: string | null;
|
|
104
93
|
|
|
105
|
-
@ViewColumn(
|
|
106
|
-
company_updated:
|
|
94
|
+
@ViewColumn()
|
|
95
|
+
company_updated: Date;
|
|
107
96
|
|
|
108
97
|
@ViewColumn()
|
|
109
98
|
company_status: number;
|