test-entity-library-asm 2.8.9 → 2.8.11
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 +58 -57
- package/dist/entities.views.routes.js +3 -1
- package/dist/views/MasterNotifications.d.ts +7 -1
- package/dist/views/MasterNotifications.js +31 -7
- package/dist/views/PartnerNotifications.d.ts +22 -0
- package/dist/views/PartnerNotifications.js +119 -0
- package/package.json +1 -1
- package/src/entities.views.routes.ts +58 -57
- package/src/views/MasterNotifications.ts +53 -35
- package/src/views/PartnerNotifications.ts +83 -0
|
@@ -1,57 +1,58 @@
|
|
|
1
|
-
export { BusinessTypeProduct } from
|
|
2
|
-
export { Category } from
|
|
3
|
-
export { ScheduleCategory } from
|
|
4
|
-
export { City } from
|
|
5
|
-
export { CodeRedemptionHistoryCompany } from
|
|
6
|
-
export { CodeRedemptionHistoryUser } from
|
|
7
|
-
export { Company } from
|
|
8
|
-
export { Configuration } from
|
|
9
|
-
export { Country } from
|
|
10
|
-
export { Day } from
|
|
11
|
-
export { DiscountCodeCompany } from
|
|
12
|
-
export { DiscountCodeUser } from
|
|
13
|
-
export { Local } from
|
|
14
|
-
export { LocalQualification } from
|
|
15
|
-
export { Master } from
|
|
16
|
-
export { MasterPermission } from
|
|
17
|
-
export { MasterRole } from
|
|
18
|
-
export { Partner } from
|
|
19
|
-
export { PartnerNotification } from
|
|
20
|
-
export { PartnerPermission } from
|
|
21
|
-
export { PartnerRole } from
|
|
22
|
-
export { PaymentMethod } from
|
|
23
|
-
export { Plan } from
|
|
24
|
-
export { Product } from
|
|
25
|
-
export { ProductGroup } from
|
|
26
|
-
export { ProductGroupComplement } from
|
|
27
|
-
export { ProductIngredient } from
|
|
28
|
-
export { ProductTopping } from
|
|
29
|
-
export { Region } from
|
|
30
|
-
export { Request } from
|
|
31
|
-
export { RequestProduct } from
|
|
32
|
-
export { RequestProductGroupComplement } from
|
|
33
|
-
export { RequestStatus } from
|
|
34
|
-
export { Square } from
|
|
35
|
-
export { Terminal } from
|
|
36
|
-
export { TerminalSession } from
|
|
37
|
-
export { TypeMeasureIngredient } from
|
|
38
|
-
export { User } from
|
|
39
|
-
export { UserAddress } from
|
|
40
|
-
export { BusinessType } from
|
|
41
|
-
export { AuthenticationCredential } from
|
|
42
|
-
export { PosSystem } from
|
|
43
|
-
export { VerifyLocal } from
|
|
44
|
-
export { MasterNotification } from
|
|
45
|
-
export { ReassignReview } from
|
|
46
|
-
export { LocalPlan } from
|
|
47
|
-
export { PartnerPermissionSection } from
|
|
48
|
-
export { PartnerPlatform } from
|
|
49
|
-
export { ServicePlan } from
|
|
50
|
-
export { LocalsCompany } from
|
|
51
|
-
export { VerifyLocals } from
|
|
52
|
-
export { MasterNotifications } from
|
|
53
|
-
export { ViewLocalsCompanies } from
|
|
54
|
-
export { Partners } from
|
|
55
|
-
export { DiscountsCodeUser } from
|
|
56
|
-
export {
|
|
57
|
-
export
|
|
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);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
export declare class MasterNotifications {
|
|
2
2
|
id: number;
|
|
3
3
|
master: number;
|
|
4
|
+
partner: number;
|
|
4
5
|
name: string;
|
|
5
6
|
description: string;
|
|
6
7
|
settings: any;
|
|
7
|
-
type: number;
|
|
8
8
|
created: Date;
|
|
9
9
|
status: number;
|
|
10
10
|
master_document: string;
|
|
@@ -15,6 +15,7 @@ export declare class MasterNotifications {
|
|
|
15
15
|
master_profile: any;
|
|
16
16
|
master_status: number;
|
|
17
17
|
verify_local_local_information: any;
|
|
18
|
+
verify_local_assigned_master: number;
|
|
18
19
|
verify_local_status: number;
|
|
19
20
|
company_name: string;
|
|
20
21
|
company_profile: any;
|
|
@@ -24,4 +25,9 @@ export declare class MasterNotifications {
|
|
|
24
25
|
master_previous_name: string;
|
|
25
26
|
master_previous_surname: string;
|
|
26
27
|
master_previous_email: string;
|
|
28
|
+
partner_id: number;
|
|
29
|
+
partner_name: string;
|
|
30
|
+
partner_email: string;
|
|
31
|
+
partner_phone: string;
|
|
32
|
+
master_assigned_notification: number;
|
|
27
33
|
}
|
|
@@ -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 MasterNotifications = /** @class */ (function () {
|
|
@@ -37,6 +37,10 @@ var MasterNotifications = /** @class */ (function () {
|
|
|
37
37
|
(0, typeorm_1.ViewColumn)(),
|
|
38
38
|
__metadata("design:type", Number)
|
|
39
39
|
], MasterNotifications.prototype, "master", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.ViewColumn)(),
|
|
42
|
+
__metadata("design:type", Number)
|
|
43
|
+
], MasterNotifications.prototype, "partner", void 0);
|
|
40
44
|
__decorate([
|
|
41
45
|
(0, typeorm_1.ViewColumn)(),
|
|
42
46
|
__metadata("design:type", String)
|
|
@@ -49,10 +53,6 @@ var MasterNotifications = /** @class */ (function () {
|
|
|
49
53
|
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
50
54
|
__metadata("design:type", Object)
|
|
51
55
|
], MasterNotifications.prototype, "settings", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.ViewColumn)(),
|
|
54
|
-
__metadata("design:type", Number)
|
|
55
|
-
], MasterNotifications.prototype, "type", void 0);
|
|
56
56
|
__decorate([
|
|
57
57
|
(0, typeorm_1.ViewColumn)({ transformer: DateTransformer }),
|
|
58
58
|
__metadata("design:type", Date)
|
|
@@ -93,6 +93,10 @@ var MasterNotifications = /** @class */ (function () {
|
|
|
93
93
|
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
94
94
|
__metadata("design:type", Object)
|
|
95
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_assigned_master", void 0);
|
|
96
100
|
__decorate([
|
|
97
101
|
(0, typeorm_1.ViewColumn)(),
|
|
98
102
|
__metadata("design:type", Number)
|
|
@@ -129,9 +133,29 @@ var MasterNotifications = /** @class */ (function () {
|
|
|
129
133
|
(0, typeorm_1.ViewColumn)(),
|
|
130
134
|
__metadata("design:type", String)
|
|
131
135
|
], MasterNotifications.prototype, "master_previous_email", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.ViewColumn)(),
|
|
138
|
+
__metadata("design:type", Number)
|
|
139
|
+
], MasterNotifications.prototype, "partner_id", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.ViewColumn)(),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], MasterNotifications.prototype, "partner_name", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.ViewColumn)(),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], MasterNotifications.prototype, "partner_email", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.ViewColumn)(),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], MasterNotifications.prototype, "partner_phone", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.ViewColumn)(),
|
|
154
|
+
__metadata("design:type", Number)
|
|
155
|
+
], MasterNotifications.prototype, "master_assigned_notification", void 0);
|
|
132
156
|
MasterNotifications = __decorate([
|
|
133
157
|
(0, typeorm_1.ViewEntity)({
|
|
134
|
-
name:
|
|
158
|
+
name: "master_notifications",
|
|
135
159
|
})
|
|
136
160
|
], MasterNotifications);
|
|
137
161
|
return MasterNotifications;
|
|
@@ -0,0 +1,22 @@
|
|
|
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_email: string;
|
|
12
|
+
partner_phone: string;
|
|
13
|
+
partner_status: number;
|
|
14
|
+
master_document: string;
|
|
15
|
+
master_name: string;
|
|
16
|
+
master_surname: string;
|
|
17
|
+
master_email: string;
|
|
18
|
+
master_phone: string;
|
|
19
|
+
master_profile: any;
|
|
20
|
+
master_status: number;
|
|
21
|
+
partner_assigned_notification: number;
|
|
22
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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_email", void 0);
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.ViewColumn)(),
|
|
74
|
+
__metadata("design:type", String)
|
|
75
|
+
], PartnerNotifications.prototype, "partner_phone", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.ViewColumn)(),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], PartnerNotifications.prototype, "partner_status", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.ViewColumn)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], PartnerNotifications.prototype, "master_document", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.ViewColumn)(),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], PartnerNotifications.prototype, "master_name", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.ViewColumn)(),
|
|
90
|
+
__metadata("design:type", String)
|
|
91
|
+
], PartnerNotifications.prototype, "master_surname", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.ViewColumn)(),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], PartnerNotifications.prototype, "master_email", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.ViewColumn)(),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], PartnerNotifications.prototype, "master_phone", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.ViewColumn)({ transformer: jsonTransformer }),
|
|
102
|
+
__metadata("design:type", Object)
|
|
103
|
+
], PartnerNotifications.prototype, "master_profile", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.ViewColumn)(),
|
|
106
|
+
__metadata("design:type", Number)
|
|
107
|
+
], PartnerNotifications.prototype, "master_status", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.ViewColumn)(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], PartnerNotifications.prototype, "partner_assigned_notification", void 0);
|
|
112
|
+
PartnerNotifications = __decorate([
|
|
113
|
+
(0, typeorm_1.ViewEntity)({
|
|
114
|
+
name: "partner_notifications",
|
|
115
|
+
})
|
|
116
|
+
], PartnerNotifications);
|
|
117
|
+
return PartnerNotifications;
|
|
118
|
+
}());
|
|
119
|
+
exports.PartnerNotifications = PartnerNotifications;
|
package/package.json
CHANGED
|
@@ -1,59 +1,60 @@
|
|
|
1
|
-
export { BusinessTypeProduct } from
|
|
2
|
-
export { Category } from
|
|
3
|
-
export { ScheduleCategory } from
|
|
4
|
-
export { City } from
|
|
5
|
-
export { CodeRedemptionHistoryCompany } from
|
|
6
|
-
export { CodeRedemptionHistoryUser } from
|
|
7
|
-
export { Company } from
|
|
8
|
-
export { Configuration } from
|
|
9
|
-
export { Country } from
|
|
10
|
-
export { Day } from
|
|
11
|
-
export { DiscountCodeCompany } from
|
|
12
|
-
export { DiscountCodeUser } from
|
|
13
|
-
export { Local } from
|
|
14
|
-
export { LocalQualification } from
|
|
15
|
-
export { Master } from
|
|
16
|
-
export { MasterPermission } from
|
|
17
|
-
export { MasterRole } from
|
|
18
|
-
export { Partner } from
|
|
19
|
-
export { PartnerNotification } from
|
|
20
|
-
export { PartnerPermission } from
|
|
21
|
-
export { PartnerRole } from
|
|
22
|
-
export { PaymentMethod } from
|
|
23
|
-
export { Plan } from
|
|
24
|
-
export { Product } from
|
|
25
|
-
export { ProductGroup } from
|
|
26
|
-
export { ProductGroupComplement } from
|
|
27
|
-
export { ProductIngredient } from
|
|
28
|
-
export { ProductTopping } from
|
|
29
|
-
export { Region } from
|
|
30
|
-
export { Request } from
|
|
31
|
-
export { RequestProduct } from
|
|
32
|
-
export { RequestProductGroupComplement } from
|
|
33
|
-
export { RequestStatus } from
|
|
34
|
-
export { Square } from
|
|
35
|
-
export { Terminal } from
|
|
36
|
-
export { TerminalSession } from
|
|
37
|
-
export { TypeMeasureIngredient } from
|
|
38
|
-
export { User } from
|
|
39
|
-
export { UserAddress } from
|
|
40
|
-
export { BusinessType } from
|
|
41
|
-
export { AuthenticationCredential } from
|
|
42
|
-
export { PosSystem } from
|
|
43
|
-
export { VerifyLocal } from
|
|
44
|
-
export { MasterNotification } from
|
|
45
|
-
export { ReassignReview } from
|
|
46
|
-
export { LocalPlan } from
|
|
47
|
-
export { PartnerPermissionSection } from
|
|
48
|
-
export { PartnerPlatform } from
|
|
49
|
-
export { ServicePlan } from
|
|
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
|
|
52
|
-
export { VerifyLocals } from
|
|
53
|
-
export { MasterNotifications } from
|
|
54
|
-
export { ViewLocalsCompanies } from
|
|
55
|
-
export { Partners } from
|
|
56
|
-
export { DiscountsCodeUser } from
|
|
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
|
|
59
|
-
export * from
|
|
59
|
+
export { CustomRepository } from "./CustomRepository";
|
|
60
|
+
export * from "./utils";
|
|
@@ -1,98 +1,116 @@
|
|
|
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: "master_notifications",
|
|
22
22
|
})
|
|
23
23
|
export class MasterNotifications {
|
|
24
24
|
@ViewColumn()
|
|
25
|
-
id: number
|
|
25
|
+
id: number;
|
|
26
26
|
|
|
27
27
|
@ViewColumn()
|
|
28
|
-
master: number
|
|
28
|
+
master: number;
|
|
29
29
|
|
|
30
30
|
@ViewColumn()
|
|
31
|
-
|
|
31
|
+
partner: number;
|
|
32
32
|
|
|
33
33
|
@ViewColumn()
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
@ViewColumn({ transformer: jsonTransformer })
|
|
37
|
-
settings: any
|
|
34
|
+
name: string;
|
|
38
35
|
|
|
39
36
|
@ViewColumn()
|
|
40
|
-
|
|
37
|
+
description: string;
|
|
38
|
+
|
|
39
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
40
|
+
settings: any;
|
|
41
41
|
|
|
42
42
|
@ViewColumn({ transformer: DateTransformer })
|
|
43
|
-
created: Date
|
|
43
|
+
created: Date;
|
|
44
44
|
|
|
45
45
|
@ViewColumn()
|
|
46
|
-
status: number
|
|
46
|
+
status: number;
|
|
47
47
|
|
|
48
48
|
@ViewColumn()
|
|
49
|
-
master_document: string
|
|
49
|
+
master_document: string;
|
|
50
50
|
|
|
51
51
|
@ViewColumn()
|
|
52
|
-
master_name: string
|
|
52
|
+
master_name: string;
|
|
53
53
|
|
|
54
54
|
@ViewColumn()
|
|
55
|
-
master_surname: string
|
|
55
|
+
master_surname: string;
|
|
56
56
|
|
|
57
57
|
@ViewColumn()
|
|
58
|
-
master_email: string
|
|
58
|
+
master_email: string;
|
|
59
59
|
|
|
60
60
|
@ViewColumn()
|
|
61
|
-
master_phone: string
|
|
61
|
+
master_phone: string;
|
|
62
62
|
|
|
63
63
|
@ViewColumn({ transformer: jsonTransformer })
|
|
64
|
-
master_profile: any
|
|
64
|
+
master_profile: any;
|
|
65
65
|
|
|
66
66
|
@ViewColumn()
|
|
67
|
-
master_status: number
|
|
67
|
+
master_status: number;
|
|
68
68
|
|
|
69
69
|
@ViewColumn({ transformer: jsonTransformer })
|
|
70
|
-
verify_local_local_information: any
|
|
70
|
+
verify_local_local_information: any;
|
|
71
|
+
|
|
72
|
+
@ViewColumn()
|
|
73
|
+
verify_local_assigned_master: number;
|
|
71
74
|
|
|
72
75
|
@ViewColumn()
|
|
73
|
-
verify_local_status: number
|
|
76
|
+
verify_local_status: number;
|
|
74
77
|
|
|
75
78
|
@ViewColumn()
|
|
76
|
-
company_name: string
|
|
79
|
+
company_name: string;
|
|
77
80
|
|
|
78
81
|
@ViewColumn({ transformer: jsonTransformer })
|
|
79
|
-
company_profile: any
|
|
82
|
+
company_profile: any;
|
|
80
83
|
|
|
81
84
|
@ViewColumn()
|
|
82
|
-
reassign_review_new_user: number
|
|
85
|
+
reassign_review_new_user: number;
|
|
83
86
|
|
|
84
87
|
@ViewColumn({ transformer: jsonTransformer })
|
|
85
|
-
reassign_review_settings: any
|
|
88
|
+
reassign_review_settings: any;
|
|
89
|
+
|
|
90
|
+
@ViewColumn()
|
|
91
|
+
master_previous_id: number;
|
|
92
|
+
|
|
93
|
+
@ViewColumn()
|
|
94
|
+
master_previous_name: string;
|
|
95
|
+
|
|
96
|
+
@ViewColumn()
|
|
97
|
+
master_previous_surname: string;
|
|
98
|
+
|
|
99
|
+
@ViewColumn()
|
|
100
|
+
master_previous_email: string;
|
|
101
|
+
|
|
102
|
+
@ViewColumn()
|
|
103
|
+
partner_id: number;
|
|
86
104
|
|
|
87
105
|
@ViewColumn()
|
|
88
|
-
|
|
106
|
+
partner_name: string;
|
|
89
107
|
|
|
90
108
|
@ViewColumn()
|
|
91
|
-
|
|
109
|
+
partner_email: string;
|
|
92
110
|
|
|
93
111
|
@ViewColumn()
|
|
94
|
-
|
|
112
|
+
partner_phone: string;
|
|
95
113
|
|
|
96
114
|
@ViewColumn()
|
|
97
|
-
|
|
115
|
+
master_assigned_notification: number;
|
|
98
116
|
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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_email: string;
|
|
53
|
+
|
|
54
|
+
@ViewColumn()
|
|
55
|
+
partner_phone: string;
|
|
56
|
+
|
|
57
|
+
@ViewColumn()
|
|
58
|
+
partner_status: number;
|
|
59
|
+
|
|
60
|
+
@ViewColumn()
|
|
61
|
+
master_document: string;
|
|
62
|
+
|
|
63
|
+
@ViewColumn()
|
|
64
|
+
master_name: string;
|
|
65
|
+
|
|
66
|
+
@ViewColumn()
|
|
67
|
+
master_surname: string;
|
|
68
|
+
|
|
69
|
+
@ViewColumn()
|
|
70
|
+
master_email: string;
|
|
71
|
+
|
|
72
|
+
@ViewColumn()
|
|
73
|
+
master_phone: string;
|
|
74
|
+
|
|
75
|
+
@ViewColumn({ transformer: jsonTransformer })
|
|
76
|
+
master_profile: any;
|
|
77
|
+
|
|
78
|
+
@ViewColumn()
|
|
79
|
+
master_status: number;
|
|
80
|
+
|
|
81
|
+
@ViewColumn()
|
|
82
|
+
partner_assigned_notification: number;
|
|
83
|
+
}
|