test-entity-library-asm 2.8.10 → 2.8.12

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.
@@ -1,57 +1,58 @@
1
- export { BusinessTypeProduct } from './entities/BusinessTypeProduct';
2
- export { Category } from './entities/Category';
3
- export { ScheduleCategory } from './entities/CategorySchedule';
4
- export { City } from './entities/City';
5
- export { CodeRedemptionHistoryCompany } from './entities/CodeRedemptionHistoryCompany';
6
- export { CodeRedemptionHistoryUser } from './entities/CodeRedemptionHistoryUser';
7
- export { Company } from './entities/Company';
8
- export { Configuration } from './entities/Configuration';
9
- export { Country } from './entities/Country';
10
- export { Day } from './entities/Day';
11
- export { DiscountCodeCompany } from './entities/DiscountCodeCompany';
12
- export { DiscountCodeUser } from './entities/DiscountCodeUser';
13
- export { Local } from './entities/Local';
14
- export { LocalQualification } from './entities/LocalQualification';
15
- export { Master } from './entities/Master';
16
- export { MasterPermission } from './entities/MasterPermission';
17
- export { MasterRole } from './entities/MasterRole';
18
- export { Partner } from './entities/Partner';
19
- export { PartnerNotification } from './entities/PartnerNotification';
20
- export { PartnerPermission } from './entities/PartnerPermission';
21
- export { PartnerRole } from './entities/PartnerRole';
22
- export { PaymentMethod } from './entities/PaymentMethod';
23
- export { Plan } from './entities/Plan';
24
- export { Product } from './entities/Product';
25
- export { ProductGroup } from './entities/ProductGroup';
26
- export { ProductGroupComplement } from './entities/productGroupComplement';
27
- export { ProductIngredient } from './entities/ProductIngredient';
28
- export { ProductTopping } from './entities/ProductTopping';
29
- export { Region } from './entities/Region';
30
- export { Request } from './entities/Request';
31
- export { RequestProduct } from './entities/RequestProduct';
32
- export { RequestProductGroupComplement } from './entities/RequestProductGroupComplement';
33
- export { RequestStatus } from './entities/RequestStatus';
34
- export { Square } from './entities/Square';
35
- export { Terminal } from './entities/Terminal';
36
- export { TerminalSession } from './entities/TerminalSession';
37
- export { TypeMeasureIngredient } from './entities/TypeMeasureIngredient';
38
- export { User } from './entities/User';
39
- export { UserAddress } from './entities/UserAddress';
40
- export { BusinessType } from './entities/BusinessType';
41
- export { AuthenticationCredential } from './entities/AuthenticationCredential';
42
- export { PosSystem } from './entities/PosSystem';
43
- export { VerifyLocal } from './entities/VerifyLocal';
44
- export { MasterNotification } from './entities/MasterNotification';
45
- export { ReassignReview } from './entities/ReassignReview';
46
- export { LocalPlan } from './entities/LocalPlan';
47
- export { PartnerPermissionSection } from './entities/PartnerPermissionSection';
48
- export { PartnerPlatform } from './entities/PartnerPlatform';
49
- export { ServicePlan } from './entities/ServicePlan';
50
- export { LocalsCompany } from './views/LocalsCompany';
51
- export { VerifyLocals } from './views/VerifyLocals';
52
- export { MasterNotifications } from './views/MasterNotifications';
53
- export { ViewLocalsCompanies } from './views/ViewLocalsCompanies';
54
- export { Partners } from './views/Partners';
55
- export { DiscountsCodeUser } from './views/DiscountsCodeUser';
56
- export { CustomRepository } from './CustomRepository';
57
- export * from './utils';
1
+ export { BusinessTypeProduct } from "./entities/BusinessTypeProduct";
2
+ export { Category } from "./entities/Category";
3
+ export { ScheduleCategory } from "./entities/CategorySchedule";
4
+ export { City } from "./entities/City";
5
+ export { CodeRedemptionHistoryCompany } from "./entities/CodeRedemptionHistoryCompany";
6
+ export { CodeRedemptionHistoryUser } from "./entities/CodeRedemptionHistoryUser";
7
+ export { Company } from "./entities/Company";
8
+ export { Configuration } from "./entities/Configuration";
9
+ export { Country } from "./entities/Country";
10
+ export { Day } from "./entities/Day";
11
+ export { DiscountCodeCompany } from "./entities/DiscountCodeCompany";
12
+ export { DiscountCodeUser } from "./entities/DiscountCodeUser";
13
+ export { Local } from "./entities/Local";
14
+ export { LocalQualification } from "./entities/LocalQualification";
15
+ export { Master } from "./entities/Master";
16
+ export { MasterPermission } from "./entities/MasterPermission";
17
+ export { MasterRole } from "./entities/MasterRole";
18
+ export { Partner } from "./entities/Partner";
19
+ export { PartnerNotification } from "./entities/PartnerNotification";
20
+ export { PartnerPermission } from "./entities/PartnerPermission";
21
+ export { PartnerRole } from "./entities/PartnerRole";
22
+ export { PaymentMethod } from "./entities/PaymentMethod";
23
+ export { Plan } from "./entities/Plan";
24
+ export { Product } from "./entities/Product";
25
+ export { ProductGroup } from "./entities/ProductGroup";
26
+ export { ProductGroupComplement } from "./entities/productGroupComplement";
27
+ export { ProductIngredient } from "./entities/ProductIngredient";
28
+ export { ProductTopping } from "./entities/ProductTopping";
29
+ export { Region } from "./entities/Region";
30
+ export { Request } from "./entities/Request";
31
+ export { RequestProduct } from "./entities/RequestProduct";
32
+ export { RequestProductGroupComplement } from "./entities/RequestProductGroupComplement";
33
+ export { RequestStatus } from "./entities/RequestStatus";
34
+ export { Square } from "./entities/Square";
35
+ export { Terminal } from "./entities/Terminal";
36
+ export { TerminalSession } from "./entities/TerminalSession";
37
+ export { TypeMeasureIngredient } from "./entities/TypeMeasureIngredient";
38
+ export { User } from "./entities/User";
39
+ export { UserAddress } from "./entities/UserAddress";
40
+ export { BusinessType } from "./entities/BusinessType";
41
+ export { AuthenticationCredential } from "./entities/AuthenticationCredential";
42
+ export { PosSystem } from "./entities/PosSystem";
43
+ export { VerifyLocal } from "./entities/VerifyLocal";
44
+ export { MasterNotification } from "./entities/MasterNotification";
45
+ export { ReassignReview } from "./entities/ReassignReview";
46
+ export { LocalPlan } from "./entities/LocalPlan";
47
+ export { PartnerPermissionSection } from "./entities/PartnerPermissionSection";
48
+ export { PartnerPlatform } from "./entities/PartnerPlatform";
49
+ export { ServicePlan } from "./entities/ServicePlan";
50
+ export { LocalsCompany } from "./views/LocalsCompany";
51
+ export { VerifyLocals } from "./views/VerifyLocals";
52
+ export { MasterNotifications } from "./views/MasterNotifications";
53
+ export { ViewLocalsCompanies } from "./views/ViewLocalsCompanies";
54
+ export { Partners } from "./views/Partners";
55
+ export { DiscountsCodeUser } from "./views/DiscountsCodeUser";
56
+ export { PartnerNotifications } from "./views/PartnerNotifications";
57
+ export { CustomRepository } from "./CustomRepository";
58
+ export * from "./utils";
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  exports.LocalsCompany = exports.ServicePlan = exports.PartnerPlatform = exports.PartnerPermissionSection = exports.LocalPlan = 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
- exports.CustomRepository = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = void 0;
18
+ exports.CustomRepository = exports.PartnerNotifications = exports.DiscountsCodeUser = exports.Partners = exports.ViewLocalsCompanies = exports.MasterNotifications = exports.VerifyLocals = void 0;
19
19
  var BusinessTypeProduct_1 = require("./entities/BusinessTypeProduct");
20
20
  Object.defineProperty(exports, "BusinessTypeProduct", { enumerable: true, get: function () { return BusinessTypeProduct_1.BusinessTypeProduct; } });
21
21
  var Category_1 = require("./entities/Category");
@@ -126,6 +126,8 @@ var Partners_1 = require("./views/Partners");
126
126
  Object.defineProperty(exports, "Partners", { enumerable: true, get: function () { return Partners_1.Partners; } });
127
127
  var DiscountsCodeUser_1 = require("./views/DiscountsCodeUser");
128
128
  Object.defineProperty(exports, "DiscountsCodeUser", { enumerable: true, get: function () { return DiscountsCodeUser_1.DiscountsCodeUser; } });
129
+ var PartnerNotifications_1 = require("./views/PartnerNotifications");
130
+ Object.defineProperty(exports, "PartnerNotifications", { enumerable: true, get: function () { return PartnerNotifications_1.PartnerNotifications; } });
129
131
  var CustomRepository_1 = require("./CustomRepository");
130
132
  Object.defineProperty(exports, "CustomRepository", { enumerable: true, get: function () { return CustomRepository_1.CustomRepository; } });
131
133
  __exportStar(require("./utils"), exports);
@@ -27,6 +27,8 @@ export declare class MasterNotifications {
27
27
  master_previous_email: string;
28
28
  partner_id: number;
29
29
  partner_name: string;
30
+ partner_surname: string;
31
+ partner_profile: any;
30
32
  partner_email: string;
31
33
  partner_phone: string;
32
34
  master_assigned_notification: number;
@@ -141,6 +141,14 @@ var MasterNotifications = /** @class */ (function () {
141
141
  (0, typeorm_1.ViewColumn)(),
142
142
  __metadata("design:type", String)
143
143
  ], MasterNotifications.prototype, "partner_name", void 0);
144
+ __decorate([
145
+ (0, typeorm_1.ViewColumn)(),
146
+ __metadata("design:type", String)
147
+ ], MasterNotifications.prototype, "partner_surname", void 0);
148
+ __decorate([
149
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
150
+ __metadata("design:type", Object)
151
+ ], MasterNotifications.prototype, "partner_profile", void 0);
144
152
  __decorate([
145
153
  (0, typeorm_1.ViewColumn)(),
146
154
  __metadata("design:type", String)
@@ -0,0 +1,24 @@
1
+ export declare class PartnerNotifications {
2
+ id: number;
3
+ partner: number;
4
+ master: number;
5
+ name: string;
6
+ description: string;
7
+ settings: any;
8
+ created: Date;
9
+ status: number;
10
+ partner_name: string;
11
+ partner_surname: string;
12
+ partner_profile: any;
13
+ partner_email: string;
14
+ partner_phone: string;
15
+ partner_status: number;
16
+ master_document: string;
17
+ master_name: string;
18
+ master_surname: string;
19
+ master_email: string;
20
+ master_phone: string;
21
+ master_profile: any;
22
+ master_status: number;
23
+ partner_assigned_notification: number;
24
+ }
@@ -0,0 +1,127 @@
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.PartnerNotifications = 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 PartnerNotifications = /** @class */ (function () {
30
+ function PartnerNotifications() {
31
+ }
32
+ __decorate([
33
+ (0, typeorm_1.ViewColumn)(),
34
+ __metadata("design:type", Number)
35
+ ], PartnerNotifications.prototype, "id", void 0);
36
+ __decorate([
37
+ (0, typeorm_1.ViewColumn)(),
38
+ __metadata("design:type", Number)
39
+ ], PartnerNotifications.prototype, "partner", void 0);
40
+ __decorate([
41
+ (0, typeorm_1.ViewColumn)(),
42
+ __metadata("design:type", Number)
43
+ ], PartnerNotifications.prototype, "master", void 0);
44
+ __decorate([
45
+ (0, typeorm_1.ViewColumn)(),
46
+ __metadata("design:type", String)
47
+ ], PartnerNotifications.prototype, "name", void 0);
48
+ __decorate([
49
+ (0, typeorm_1.ViewColumn)(),
50
+ __metadata("design:type", String)
51
+ ], PartnerNotifications.prototype, "description", void 0);
52
+ __decorate([
53
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
54
+ __metadata("design:type", Object)
55
+ ], PartnerNotifications.prototype, "settings", void 0);
56
+ __decorate([
57
+ (0, typeorm_1.ViewColumn)({ transformer: DateTransformer }),
58
+ __metadata("design:type", Date)
59
+ ], PartnerNotifications.prototype, "created", void 0);
60
+ __decorate([
61
+ (0, typeorm_1.ViewColumn)(),
62
+ __metadata("design:type", Number)
63
+ ], PartnerNotifications.prototype, "status", void 0);
64
+ __decorate([
65
+ (0, typeorm_1.ViewColumn)(),
66
+ __metadata("design:type", String)
67
+ ], PartnerNotifications.prototype, "partner_name", void 0);
68
+ __decorate([
69
+ (0, typeorm_1.ViewColumn)(),
70
+ __metadata("design:type", String)
71
+ ], PartnerNotifications.prototype, "partner_surname", void 0);
72
+ __decorate([
73
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
74
+ __metadata("design:type", Object)
75
+ ], PartnerNotifications.prototype, "partner_profile", void 0);
76
+ __decorate([
77
+ (0, typeorm_1.ViewColumn)(),
78
+ __metadata("design:type", String)
79
+ ], PartnerNotifications.prototype, "partner_email", void 0);
80
+ __decorate([
81
+ (0, typeorm_1.ViewColumn)(),
82
+ __metadata("design:type", String)
83
+ ], PartnerNotifications.prototype, "partner_phone", void 0);
84
+ __decorate([
85
+ (0, typeorm_1.ViewColumn)(),
86
+ __metadata("design:type", Number)
87
+ ], PartnerNotifications.prototype, "partner_status", void 0);
88
+ __decorate([
89
+ (0, typeorm_1.ViewColumn)(),
90
+ __metadata("design:type", String)
91
+ ], PartnerNotifications.prototype, "master_document", void 0);
92
+ __decorate([
93
+ (0, typeorm_1.ViewColumn)(),
94
+ __metadata("design:type", String)
95
+ ], PartnerNotifications.prototype, "master_name", void 0);
96
+ __decorate([
97
+ (0, typeorm_1.ViewColumn)(),
98
+ __metadata("design:type", String)
99
+ ], PartnerNotifications.prototype, "master_surname", void 0);
100
+ __decorate([
101
+ (0, typeorm_1.ViewColumn)(),
102
+ __metadata("design:type", String)
103
+ ], PartnerNotifications.prototype, "master_email", void 0);
104
+ __decorate([
105
+ (0, typeorm_1.ViewColumn)(),
106
+ __metadata("design:type", String)
107
+ ], PartnerNotifications.prototype, "master_phone", void 0);
108
+ __decorate([
109
+ (0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
110
+ __metadata("design:type", Object)
111
+ ], PartnerNotifications.prototype, "master_profile", void 0);
112
+ __decorate([
113
+ (0, typeorm_1.ViewColumn)(),
114
+ __metadata("design:type", Number)
115
+ ], PartnerNotifications.prototype, "master_status", void 0);
116
+ __decorate([
117
+ (0, typeorm_1.ViewColumn)(),
118
+ __metadata("design:type", Number)
119
+ ], PartnerNotifications.prototype, "partner_assigned_notification", void 0);
120
+ PartnerNotifications = __decorate([
121
+ (0, typeorm_1.ViewEntity)({
122
+ name: "partner_notifications",
123
+ })
124
+ ], PartnerNotifications);
125
+ return PartnerNotifications;
126
+ }());
127
+ exports.PartnerNotifications = PartnerNotifications;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "test-entity-library-asm",
3
- "version": "2.8.10",
3
+ "version": "2.8.12",
4
4
  "description": "Entidades de ejemplo para una base de datos",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,59 +1,60 @@
1
- export { BusinessTypeProduct } from './entities/BusinessTypeProduct'
2
- export { Category } from './entities/Category'
3
- export { ScheduleCategory } from './entities/CategorySchedule'
4
- export { City } from './entities/City'
5
- export { CodeRedemptionHistoryCompany } from './entities/CodeRedemptionHistoryCompany'
6
- export { CodeRedemptionHistoryUser } from './entities/CodeRedemptionHistoryUser'
7
- export { Company } from './entities/Company'
8
- export { Configuration } from './entities/Configuration'
9
- export { Country } from './entities/Country'
10
- export { Day } from './entities/Day'
11
- export { DiscountCodeCompany } from './entities/DiscountCodeCompany'
12
- export { DiscountCodeUser } from './entities/DiscountCodeUser'
13
- export { Local } from './entities/Local'
14
- export { LocalQualification } from './entities/LocalQualification'
15
- export { Master } from './entities/Master'
16
- export { MasterPermission } from './entities/MasterPermission'
17
- export { MasterRole } from './entities/MasterRole'
18
- export { Partner } from './entities/Partner'
19
- export { PartnerNotification } from './entities/PartnerNotification'
20
- export { PartnerPermission } from './entities/PartnerPermission'
21
- export { PartnerRole } from './entities/PartnerRole'
22
- export { PaymentMethod } from './entities/PaymentMethod'
23
- export { Plan } from './entities/Plan'
24
- export { Product } from './entities/Product'
25
- export { ProductGroup } from './entities/ProductGroup'
26
- export { ProductGroupComplement } from './entities/productGroupComplement'
27
- export { ProductIngredient } from './entities/ProductIngredient'
28
- export { ProductTopping } from './entities/ProductTopping'
29
- export { Region } from './entities/Region'
30
- export { Request } from './entities/Request'
31
- export { RequestProduct } from './entities/RequestProduct'
32
- export { RequestProductGroupComplement } from './entities/RequestProductGroupComplement'
33
- export { RequestStatus } from './entities/RequestStatus'
34
- export { Square } from './entities/Square'
35
- export { Terminal } from './entities/Terminal'
36
- export { TerminalSession } from './entities/TerminalSession'
37
- export { TypeMeasureIngredient } from './entities/TypeMeasureIngredient'
38
- export { User } from './entities/User'
39
- export { UserAddress } from './entities/UserAddress'
40
- export { BusinessType } from './entities/BusinessType'
41
- export { AuthenticationCredential } from './entities/AuthenticationCredential'
42
- export { PosSystem } from './entities/PosSystem'
43
- export { VerifyLocal } from './entities/VerifyLocal'
44
- export { MasterNotification } from './entities/MasterNotification'
45
- export { ReassignReview } from './entities/ReassignReview'
46
- export { LocalPlan } from './entities/LocalPlan'
47
- export { PartnerPermissionSection } from './entities/PartnerPermissionSection'
48
- export { PartnerPlatform } from './entities/PartnerPlatform'
49
- export { ServicePlan } from './entities/ServicePlan'
1
+ export { BusinessTypeProduct } from "./entities/BusinessTypeProduct";
2
+ export { Category } from "./entities/Category";
3
+ export { ScheduleCategory } from "./entities/CategorySchedule";
4
+ export { City } from "./entities/City";
5
+ export { CodeRedemptionHistoryCompany } from "./entities/CodeRedemptionHistoryCompany";
6
+ export { CodeRedemptionHistoryUser } from "./entities/CodeRedemptionHistoryUser";
7
+ export { Company } from "./entities/Company";
8
+ export { Configuration } from "./entities/Configuration";
9
+ export { Country } from "./entities/Country";
10
+ export { Day } from "./entities/Day";
11
+ export { DiscountCodeCompany } from "./entities/DiscountCodeCompany";
12
+ export { DiscountCodeUser } from "./entities/DiscountCodeUser";
13
+ export { Local } from "./entities/Local";
14
+ export { LocalQualification } from "./entities/LocalQualification";
15
+ export { Master } from "./entities/Master";
16
+ export { MasterPermission } from "./entities/MasterPermission";
17
+ export { MasterRole } from "./entities/MasterRole";
18
+ export { Partner } from "./entities/Partner";
19
+ export { PartnerNotification } from "./entities/PartnerNotification";
20
+ export { PartnerPermission } from "./entities/PartnerPermission";
21
+ export { PartnerRole } from "./entities/PartnerRole";
22
+ export { PaymentMethod } from "./entities/PaymentMethod";
23
+ export { Plan } from "./entities/Plan";
24
+ export { Product } from "./entities/Product";
25
+ export { ProductGroup } from "./entities/ProductGroup";
26
+ export { ProductGroupComplement } from "./entities/productGroupComplement";
27
+ export { ProductIngredient } from "./entities/ProductIngredient";
28
+ export { ProductTopping } from "./entities/ProductTopping";
29
+ export { Region } from "./entities/Region";
30
+ export { Request } from "./entities/Request";
31
+ export { RequestProduct } from "./entities/RequestProduct";
32
+ export { RequestProductGroupComplement } from "./entities/RequestProductGroupComplement";
33
+ export { RequestStatus } from "./entities/RequestStatus";
34
+ export { Square } from "./entities/Square";
35
+ export { Terminal } from "./entities/Terminal";
36
+ export { TerminalSession } from "./entities/TerminalSession";
37
+ export { TypeMeasureIngredient } from "./entities/TypeMeasureIngredient";
38
+ export { User } from "./entities/User";
39
+ export { UserAddress } from "./entities/UserAddress";
40
+ export { BusinessType } from "./entities/BusinessType";
41
+ export { AuthenticationCredential } from "./entities/AuthenticationCredential";
42
+ export { PosSystem } from "./entities/PosSystem";
43
+ export { VerifyLocal } from "./entities/VerifyLocal";
44
+ export { MasterNotification } from "./entities/MasterNotification";
45
+ export { ReassignReview } from "./entities/ReassignReview";
46
+ export { LocalPlan } from "./entities/LocalPlan";
47
+ export { PartnerPermissionSection } from "./entities/PartnerPermissionSection";
48
+ export { PartnerPlatform } from "./entities/PartnerPlatform";
49
+ export { ServicePlan } from "./entities/ServicePlan";
50
50
 
51
- export { LocalsCompany } from './views/LocalsCompany'
52
- export { VerifyLocals } from './views/VerifyLocals'
53
- export { MasterNotifications } from './views/MasterNotifications'
54
- export { ViewLocalsCompanies } from './views/ViewLocalsCompanies'
55
- export { Partners } from './views/Partners'
56
- export { DiscountsCodeUser } from './views/DiscountsCodeUser'
51
+ export { LocalsCompany } from "./views/LocalsCompany";
52
+ export { VerifyLocals } from "./views/VerifyLocals";
53
+ export { MasterNotifications } from "./views/MasterNotifications";
54
+ export { ViewLocalsCompanies } from "./views/ViewLocalsCompanies";
55
+ export { Partners } from "./views/Partners";
56
+ export { DiscountsCodeUser } from "./views/DiscountsCodeUser";
57
+ export { PartnerNotifications } from "./views/PartnerNotifications";
57
58
 
58
- export { CustomRepository } from './CustomRepository'
59
- export * from './utils'
59
+ export { CustomRepository } from "./CustomRepository";
60
+ export * from "./utils";
@@ -105,6 +105,12 @@ export class MasterNotifications {
105
105
  @ViewColumn()
106
106
  partner_name: string;
107
107
 
108
+ @ViewColumn()
109
+ partner_surname: string;
110
+
111
+ @ViewColumn({ transformer: jsonTransformer })
112
+ partner_profile: any;
113
+
108
114
  @ViewColumn()
109
115
  partner_email: string;
110
116
 
@@ -0,0 +1,89 @@
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: "partner_notifications",
22
+ })
23
+ export class PartnerNotifications {
24
+ @ViewColumn()
25
+ id: number;
26
+
27
+ @ViewColumn()
28
+ partner: number;
29
+
30
+ @ViewColumn()
31
+ master: number;
32
+
33
+ @ViewColumn()
34
+ name: string;
35
+
36
+ @ViewColumn()
37
+ description: string;
38
+
39
+ @ViewColumn({ transformer: jsonTransformer })
40
+ settings: any;
41
+
42
+ @ViewColumn({ transformer: DateTransformer })
43
+ created: Date;
44
+
45
+ @ViewColumn()
46
+ status: number;
47
+
48
+ @ViewColumn()
49
+ partner_name: string;
50
+
51
+ @ViewColumn()
52
+ partner_surname: string;
53
+
54
+ @ViewColumn({ transformer: jsonTransformer })
55
+ partner_profile: any;
56
+
57
+ @ViewColumn()
58
+ partner_email: string;
59
+
60
+ @ViewColumn()
61
+ partner_phone: string;
62
+
63
+ @ViewColumn()
64
+ partner_status: number;
65
+
66
+ @ViewColumn()
67
+ master_document: string;
68
+
69
+ @ViewColumn()
70
+ master_name: string;
71
+
72
+ @ViewColumn()
73
+ master_surname: string;
74
+
75
+ @ViewColumn()
76
+ master_email: string;
77
+
78
+ @ViewColumn()
79
+ master_phone: string;
80
+
81
+ @ViewColumn({ transformer: jsonTransformer })
82
+ master_profile: any;
83
+
84
+ @ViewColumn()
85
+ master_status: number;
86
+
87
+ @ViewColumn()
88
+ partner_assigned_notification: number;
89
+ }