test-entity-library-asm 2.5.9 → 2.6.0
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.views.routes.d.ts +1 -0
- package/dist/entities.views.routes.js +3 -1
- package/dist/views/MasterNotifications.d.ts +19 -0
- package/dist/views/MasterNotifications.js +107 -0
- package/package.json +1 -1
- package/src/entities.views.routes.ts +1 -0
- package/src/views/MasterNotifications.ts +74 -0
|
@@ -45,5 +45,6 @@ export { MasterNotification } from './entities/MasterNotification';
|
|
|
45
45
|
export { ReassignReview } from './entities/ReassignReview';
|
|
46
46
|
export { LocalsCompany } from './views/LocalsCompany';
|
|
47
47
|
export { VerifyLocals } from './views/VerifyLocals';
|
|
48
|
+
export { MasterNotifications } from './views/MasterNotifications';
|
|
48
49
|
export { CustomRepository } from './CustomRepository';
|
|
49
50
|
export * from './utils';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.CustomRepository = exports.VerifyLocals = exports.LocalsCompany = exports.ReassignReview = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.TerminalSession = exports.Terminal = exports.Square = exports.RequestStatus = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
|
|
17
|
+
exports.CustomRepository = exports.MasterNotifications = exports.VerifyLocals = exports.LocalsCompany = exports.ReassignReview = exports.MasterNotification = exports.VerifyLocal = exports.PosSystem = exports.AuthenticationCredential = exports.BusinessType = exports.UserAddress = exports.User = exports.TypeMeasureIngredient = exports.TerminalSession = exports.Terminal = exports.Square = exports.RequestStatus = exports.RequestProductGroupComplement = exports.RequestProduct = exports.Request = exports.Region = exports.ProductTopping = exports.ProductIngredient = exports.ProductGroupComplement = exports.ProductGroup = exports.Product = exports.Plan = exports.PaymentMethod = exports.PartnerRole = exports.PartnerPermission = exports.PartnerNotification = exports.Partner = exports.MasterRole = exports.MasterPermission = exports.Master = exports.LocalQualification = exports.Local = exports.DiscountCodeUser = exports.DiscountCodeCompany = exports.Day = exports.Country = exports.Configuration = exports.Company = exports.CodeRedemptionHistoryUser = exports.CodeRedemptionHistoryCompany = exports.City = exports.ScheduleCategory = exports.Category = exports.BusinessTypeProduct = void 0;
|
|
18
18
|
var BusinessTypeProduct_1 = require("./entities/BusinessTypeProduct");
|
|
19
19
|
Object.defineProperty(exports, "BusinessTypeProduct", { enumerable: true, get: function () { return BusinessTypeProduct_1.BusinessTypeProduct; } });
|
|
20
20
|
var Category_1 = require("./entities/Category");
|
|
@@ -109,6 +109,8 @@ var LocalsCompany_1 = require("./views/LocalsCompany");
|
|
|
109
109
|
Object.defineProperty(exports, "LocalsCompany", { enumerable: true, get: function () { return LocalsCompany_1.LocalsCompany; } });
|
|
110
110
|
var VerifyLocals_1 = require("./views/VerifyLocals");
|
|
111
111
|
Object.defineProperty(exports, "VerifyLocals", { enumerable: true, get: function () { return VerifyLocals_1.VerifyLocals; } });
|
|
112
|
+
var MasterNotifications_1 = require("./views/MasterNotifications");
|
|
113
|
+
Object.defineProperty(exports, "MasterNotifications", { enumerable: true, get: function () { return MasterNotifications_1.MasterNotifications; } });
|
|
112
114
|
var CustomRepository_1 = require("./CustomRepository");
|
|
113
115
|
Object.defineProperty(exports, "CustomRepository", { enumerable: true, get: function () { return CustomRepository_1.CustomRepository; } });
|
|
114
116
|
__exportStar(require("./utils"), exports);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare class MasterNotifications {
|
|
2
|
+
id: number;
|
|
3
|
+
master: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
settings: any;
|
|
7
|
+
type: number;
|
|
8
|
+
created: string;
|
|
9
|
+
status: number;
|
|
10
|
+
master_document: string;
|
|
11
|
+
master_name: string;
|
|
12
|
+
master_surname: string;
|
|
13
|
+
master_email: string;
|
|
14
|
+
master_phone: string;
|
|
15
|
+
master_profile: any;
|
|
16
|
+
master_status: number;
|
|
17
|
+
verify_local_local_information: any;
|
|
18
|
+
verify_local_status: number;
|
|
19
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MasterNotifications = void 0;
|
|
13
|
+
var typeorm_1 = require("typeorm");
|
|
14
|
+
var moment = require("moment-timezone");
|
|
15
|
+
var __1 = require("..");
|
|
16
|
+
// JSON Transformer
|
|
17
|
+
var jsonTransformer = {
|
|
18
|
+
to: function (value) { return JSON.stringify(value); },
|
|
19
|
+
from: function (value) { return JSON.parse(value); },
|
|
20
|
+
};
|
|
21
|
+
var DateTransformer = {
|
|
22
|
+
to: function (value) {
|
|
23
|
+
return moment.utc(value).format('YYYY-MM-DD HH:mm:ss');
|
|
24
|
+
},
|
|
25
|
+
from: function (value) {
|
|
26
|
+
return moment.utc(value).tz((0, __1.getTimeZone)()).format('YYYY-MM-DD HH:mm:ss');
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
var MasterNotifications = /** @class */ (function () {
|
|
30
|
+
function MasterNotifications() {
|
|
31
|
+
}
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, typeorm_1.ViewColumn)(),
|
|
34
|
+
__metadata("design:type", Number)
|
|
35
|
+
], MasterNotifications.prototype, "id", void 0);
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.ViewColumn)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], MasterNotifications.prototype, "master", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ViewColumn)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], MasterNotifications.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.ViewColumn)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], MasterNotifications.prototype, "description", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], MasterNotifications.prototype, "settings", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.ViewColumn)(),
|
|
54
|
+
__metadata("design:type", Number)
|
|
55
|
+
], MasterNotifications.prototype, "type", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.ViewColumn)({ transformer: DateTransformer }),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], MasterNotifications.prototype, "created", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.ViewColumn)(),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], MasterNotifications.prototype, "status", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ViewColumn)(),
|
|
66
|
+
__metadata("design:type", String)
|
|
67
|
+
], MasterNotifications.prototype, "master_document", void 0);
|
|
68
|
+
__decorate([
|
|
69
|
+
(0, typeorm_1.ViewColumn)(),
|
|
70
|
+
__metadata("design:type", String)
|
|
71
|
+
], MasterNotifications.prototype, "master_name", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ViewColumn)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], MasterNotifications.prototype, "master_surname", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.ViewColumn)(),
|
|
78
|
+
__metadata("design:type", String)
|
|
79
|
+
], MasterNotifications.prototype, "master_email", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.ViewColumn)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], MasterNotifications.prototype, "master_phone", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
86
|
+
__metadata("design:type", Object)
|
|
87
|
+
], MasterNotifications.prototype, "master_profile", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.ViewColumn)(),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], MasterNotifications.prototype, "master_status", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
94
|
+
__metadata("design:type", Object)
|
|
95
|
+
], MasterNotifications.prototype, "verify_local_local_information", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.ViewColumn)(),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], MasterNotifications.prototype, "verify_local_status", void 0);
|
|
100
|
+
MasterNotifications = __decorate([
|
|
101
|
+
(0, typeorm_1.ViewEntity)({
|
|
102
|
+
name: 'master_notifications',
|
|
103
|
+
})
|
|
104
|
+
], MasterNotifications);
|
|
105
|
+
return MasterNotifications;
|
|
106
|
+
}());
|
|
107
|
+
exports.MasterNotifications = MasterNotifications;
|
package/package.json
CHANGED
|
@@ -46,6 +46,7 @@ export { ReassignReview } from './entities/ReassignReview'
|
|
|
46
46
|
|
|
47
47
|
export { LocalsCompany } from './views/LocalsCompany'
|
|
48
48
|
export { VerifyLocals } from './views/VerifyLocals'
|
|
49
|
+
export { MasterNotifications } from './views/MasterNotifications'
|
|
49
50
|
|
|
50
51
|
export { CustomRepository } from './CustomRepository'
|
|
51
52
|
export * from './utils'
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { ViewEntity, ViewColumn } from 'typeorm'
|
|
2
|
+
import moment = require('moment-timezone')
|
|
3
|
+
import { getTimeZone } from '..'
|
|
4
|
+
|
|
5
|
+
// JSON Transformer
|
|
6
|
+
const jsonTransformer = {
|
|
7
|
+
to: (value: any) => JSON.stringify(value),
|
|
8
|
+
from: (value: string) => JSON.parse(value),
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
const DateTransformer = {
|
|
12
|
+
to(value: Date | string): string {
|
|
13
|
+
return moment.utc(value).format('YYYY-MM-DD HH:mm:ss')
|
|
14
|
+
},
|
|
15
|
+
from(value: string): string {
|
|
16
|
+
return moment.utc(value).tz(getTimeZone()).format('YYYY-MM-DD HH:mm:ss')
|
|
17
|
+
},
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@ViewEntity({
|
|
21
|
+
name: 'master_notifications',
|
|
22
|
+
})
|
|
23
|
+
export class MasterNotifications {
|
|
24
|
+
@ViewColumn()
|
|
25
|
+
id: number
|
|
26
|
+
|
|
27
|
+
@ViewColumn()
|
|
28
|
+
master: number
|
|
29
|
+
|
|
30
|
+
@ViewColumn()
|
|
31
|
+
name: string
|
|
32
|
+
|
|
33
|
+
@ViewColumn()
|
|
34
|
+
description: string
|
|
35
|
+
|
|
36
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
37
|
+
settings: any
|
|
38
|
+
|
|
39
|
+
@ViewColumn()
|
|
40
|
+
type: number
|
|
41
|
+
|
|
42
|
+
@ViewColumn({ transformer: DateTransformer })
|
|
43
|
+
created: string
|
|
44
|
+
|
|
45
|
+
@ViewColumn()
|
|
46
|
+
status: number
|
|
47
|
+
|
|
48
|
+
@ViewColumn()
|
|
49
|
+
master_document: string
|
|
50
|
+
|
|
51
|
+
@ViewColumn()
|
|
52
|
+
master_name: string
|
|
53
|
+
|
|
54
|
+
@ViewColumn()
|
|
55
|
+
master_surname: string
|
|
56
|
+
|
|
57
|
+
@ViewColumn()
|
|
58
|
+
master_email: string
|
|
59
|
+
|
|
60
|
+
@ViewColumn()
|
|
61
|
+
master_phone: string
|
|
62
|
+
|
|
63
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
64
|
+
master_profile: any
|
|
65
|
+
|
|
66
|
+
@ViewColumn()
|
|
67
|
+
master_status: number
|
|
68
|
+
|
|
69
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
70
|
+
verify_local_local_information: any
|
|
71
|
+
|
|
72
|
+
@ViewColumn()
|
|
73
|
+
verify_local_status: number
|
|
74
|
+
}
|