@campxdev/server-shared 1.1.20 → 1.1.22-alpha.1
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/common/config/mongo.config.d.ts +3 -3
- package/dist/common/config/mongo.config.js +23 -23
- package/dist/common/databases/mongoose.repository.d.ts +40 -40
- package/dist/common/databases/mongoose.repository.js +94 -94
- package/dist/common/decorators/request.decorators.d.ts +5 -5
- package/dist/common/decorators/request.decorators.js +36 -36
- package/dist/common/decorators/time-validation.decorator.d.ts +2 -2
- package/dist/common/decorators/time-validation.decorator.js +26 -26
- package/dist/common/filters/unhandled-exception.filter.d.ts +4 -4
- package/dist/common/filters/unhandled-exception.filter.js +38 -38
- package/dist/common/guards/guard.d.ts +8 -8
- package/dist/common/guards/guard.js +24 -24
- package/dist/common/index.d.ts +11 -11
- package/dist/common/index.js +27 -27
- package/dist/common/interceptors/request.interceptor.d.ts +17 -17
- package/dist/common/interceptors/request.interceptor.js +132 -132
- package/dist/common/interfaces/context.interface.d.ts +102 -102
- package/dist/common/interfaces/context.interface.js +2 -2
- package/dist/common/store/request-store.d.ts +32 -32
- package/dist/common/store/request-store.js +125 -125
- package/dist/common/store/store-config.d.ts +6 -6
- package/dist/common/store/store-config.js +23 -23
- package/dist/common/store/store.interceptor.d.ts +5 -5
- package/dist/common/store/store.interceptor.js +37 -37
- package/dist/domain/db-connection.module.d.ts +3 -3
- package/dist/domain/db-connection.module.js +29 -29
- package/dist/domain/entities/department.entity.d.ts +9 -9
- package/dist/domain/entities/department.entity.js +50 -50
- package/dist/domain/entities/evaluator.entity.d.ts +17 -17
- package/dist/domain/entities/evaluator.entity.js +112 -112
- package/dist/domain/entities/leads.entity.d.ts +26 -26
- package/dist/domain/entities/leads.entity.js +161 -161
- package/dist/domain/entities/profile-permission.entity.d.ts +13 -13
- package/dist/domain/entities/profile-permission.entity.js +70 -70
- package/dist/domain/entities/profile.entity.d.ts +25 -25
- package/dist/domain/entities/profile.entity.js +98 -98
- package/dist/domain/entities/program.entity.d.ts +13 -13
- package/dist/domain/entities/program.entity.js +70 -70
- package/dist/domain/entities/student.entity.d.ts +57 -57
- package/dist/domain/entities/student.entity.js +279 -279
- package/dist/domain/entities/user.entity.d.ts +23 -23
- package/dist/domain/entities/user.entity.js +147 -147
- package/dist/domain/index.d.ts +12 -12
- package/dist/domain/index.js +28 -28
- package/dist/domain/schemas/global-users.schema.d.ts +58 -58
- package/dist/domain/schemas/global-users.schema.js +145 -145
- package/dist/domain/schemas/tenant.schema.d.ts +114 -114
- package/dist/domain/schemas/tenant.schema.js +387 -387
- package/dist/domain/shared-domain.module.d.ts +2 -2
- package/dist/domain/shared-domain.module.js +27 -27
- package/dist/index.d.ts +5 -5
- package/dist/index.js +21 -21
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +375 -390
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/enroll-x-permissions.js +468 -448
- package/dist/permissions/app-permissions/enroll-x-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/exams-permissions.d.ts +730 -745
- package/dist/permissions/app-permissions/exams-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/exams-permissions.js +1137 -1213
- package/dist/permissions/app-permissions/exams-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/hostels-permissions.d.ts +239 -241
- package/dist/permissions/app-permissions/hostels-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/hostels-permissions.js +243 -251
- package/dist/permissions/app-permissions/hostels-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/payments-permissions.d.ts +337 -352
- package/dist/permissions/app-permissions/payments-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/payments-permissions.js +454 -474
- package/dist/permissions/app-permissions/payments-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.d.ts +1084 -1090
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.js +1992 -2012
- package/dist/permissions/app-permissions/square-permissions.js.map +1 -1
- package/dist/permissions/check-permission.guard.d.ts +52 -52
- package/dist/permissions/check-permission.guard.js +58 -58
- package/dist/permissions/index.d.ts +6 -7
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +26 -28
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/permissions.d.ts +5540 -5642
- package/dist/permissions/permissions.d.ts.map +1 -1
- package/dist/permissions/permissions.js +116 -116
- package/dist/shared-module/index.d.ts +2 -2
- package/dist/shared-module/index.js +7 -7
- package/dist/shared-module/shared.module.d.ts +10 -10
- package/dist/shared-module/shared.module.js +37 -37
- package/dist/shared-module/shared.service.d.ts +67 -67
- package/dist/shared-module/shared.service.js +209 -209
- package/dist/utils/constants.d.ts +25 -25
- package/dist/utils/constants.js +28 -28
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +18 -18
- package/dist/utils/utils.d.ts +24 -24
- package/dist/utils/utils.js +234 -234
- package/package.json +46 -46
|
@@ -1,162 +1,162 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
-
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;
|
|
22
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
-
};
|
|
24
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
-
if (mod && mod.__esModule) return mod;
|
|
26
|
-
var result = {};
|
|
27
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
-
__setModuleDefault(result, mod);
|
|
29
|
-
return result;
|
|
30
|
-
};
|
|
31
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
-
};
|
|
34
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
-
exports.Leads = void 0;
|
|
36
|
-
const bcrypt = __importStar(require("bcrypt"));
|
|
37
|
-
const typeorm_1 = require("typeorm");
|
|
38
|
-
let Leads = class Leads {
|
|
39
|
-
id;
|
|
40
|
-
name;
|
|
41
|
-
firstName;
|
|
42
|
-
lastName;
|
|
43
|
-
mobile;
|
|
44
|
-
gender;
|
|
45
|
-
email;
|
|
46
|
-
location;
|
|
47
|
-
source;
|
|
48
|
-
campaign;
|
|
49
|
-
type;
|
|
50
|
-
programId;
|
|
51
|
-
courseId;
|
|
52
|
-
counsellorId;
|
|
53
|
-
stage;
|
|
54
|
-
status;
|
|
55
|
-
batch;
|
|
56
|
-
remarks;
|
|
57
|
-
followUpDate;
|
|
58
|
-
dob;
|
|
59
|
-
password;
|
|
60
|
-
createdAt;
|
|
61
|
-
updatedAt;
|
|
62
|
-
async verifyPassword(plainTextPassword) {
|
|
63
|
-
return bcrypt.compare(plainTextPassword, this.password);
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
__decorate([
|
|
67
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
68
|
-
__metadata("design:type", Number)
|
|
69
|
-
], Leads.prototype, "id", void 0);
|
|
70
|
-
__decorate([
|
|
71
|
-
(0, typeorm_1.Column)(),
|
|
72
|
-
__metadata("design:type", String)
|
|
73
|
-
], Leads.prototype, "name", void 0);
|
|
74
|
-
__decorate([
|
|
75
|
-
(0, typeorm_1.Column)(),
|
|
76
|
-
__metadata("design:type", String)
|
|
77
|
-
], Leads.prototype, "firstName", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.Column)(),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], Leads.prototype, "lastName", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, typeorm_1.Column)(),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], Leads.prototype, "mobile", void 0);
|
|
86
|
-
__decorate([
|
|
87
|
-
(0, typeorm_1.Column)(),
|
|
88
|
-
__metadata("design:type", String)
|
|
89
|
-
], Leads.prototype, "gender", void 0);
|
|
90
|
-
__decorate([
|
|
91
|
-
(0, typeorm_1.Column)(),
|
|
92
|
-
__metadata("design:type", String)
|
|
93
|
-
], Leads.prototype, "email", void 0);
|
|
94
|
-
__decorate([
|
|
95
|
-
(0, typeorm_1.Column)(),
|
|
96
|
-
__metadata("design:type", String)
|
|
97
|
-
], Leads.prototype, "location", void 0);
|
|
98
|
-
__decorate([
|
|
99
|
-
(0, typeorm_1.Column)(),
|
|
100
|
-
__metadata("design:type", String)
|
|
101
|
-
], Leads.prototype, "source", void 0);
|
|
102
|
-
__decorate([
|
|
103
|
-
(0, typeorm_1.Column)(),
|
|
104
|
-
__metadata("design:type", String)
|
|
105
|
-
], Leads.prototype, "campaign", void 0);
|
|
106
|
-
__decorate([
|
|
107
|
-
(0, typeorm_1.Column)(),
|
|
108
|
-
__metadata("design:type", String)
|
|
109
|
-
], Leads.prototype, "type", void 0);
|
|
110
|
-
__decorate([
|
|
111
|
-
(0, typeorm_1.Column)(),
|
|
112
|
-
__metadata("design:type", Number)
|
|
113
|
-
], Leads.prototype, "programId", void 0);
|
|
114
|
-
__decorate([
|
|
115
|
-
(0, typeorm_1.Column)(),
|
|
116
|
-
__metadata("design:type", Number)
|
|
117
|
-
], Leads.prototype, "courseId", void 0);
|
|
118
|
-
__decorate([
|
|
119
|
-
(0, typeorm_1.Column)(),
|
|
120
|
-
__metadata("design:type", Number)
|
|
121
|
-
], Leads.prototype, "counsellorId", void 0);
|
|
122
|
-
__decorate([
|
|
123
|
-
(0, typeorm_1.Column)(),
|
|
124
|
-
__metadata("design:type", String)
|
|
125
|
-
], Leads.prototype, "stage", void 0);
|
|
126
|
-
__decorate([
|
|
127
|
-
(0, typeorm_1.Column)(),
|
|
128
|
-
__metadata("design:type", String)
|
|
129
|
-
], Leads.prototype, "status", void 0);
|
|
130
|
-
__decorate([
|
|
131
|
-
(0, typeorm_1.Column)(),
|
|
132
|
-
__metadata("design:type", String)
|
|
133
|
-
], Leads.prototype, "batch", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, typeorm_1.Column)(),
|
|
136
|
-
__metadata("design:type", String)
|
|
137
|
-
], Leads.prototype, "remarks", void 0);
|
|
138
|
-
__decorate([
|
|
139
|
-
(0, typeorm_1.Column)(),
|
|
140
|
-
__metadata("design:type", String)
|
|
141
|
-
], Leads.prototype, "followUpDate", void 0);
|
|
142
|
-
__decorate([
|
|
143
|
-
(0, typeorm_1.Column)(),
|
|
144
|
-
__metadata("design:type", String)
|
|
145
|
-
], Leads.prototype, "dob", void 0);
|
|
146
|
-
__decorate([
|
|
147
|
-
(0, typeorm_1.Column)(),
|
|
148
|
-
__metadata("design:type", String)
|
|
149
|
-
], Leads.prototype, "password", void 0);
|
|
150
|
-
__decorate([
|
|
151
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
152
|
-
__metadata("design:type", String)
|
|
153
|
-
], Leads.prototype, "createdAt", void 0);
|
|
154
|
-
__decorate([
|
|
155
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
156
|
-
__metadata("design:type", String)
|
|
157
|
-
], Leads.prototype, "updatedAt", void 0);
|
|
158
|
-
Leads = __decorate([
|
|
159
|
-
(0, typeorm_1.Entity)()
|
|
160
|
-
], Leads);
|
|
161
|
-
exports.Leads = Leads;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
19
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
20
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
21
|
+
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;
|
|
22
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
23
|
+
};
|
|
24
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
25
|
+
if (mod && mod.__esModule) return mod;
|
|
26
|
+
var result = {};
|
|
27
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
28
|
+
__setModuleDefault(result, mod);
|
|
29
|
+
return result;
|
|
30
|
+
};
|
|
31
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
32
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
|
+
exports.Leads = void 0;
|
|
36
|
+
const bcrypt = __importStar(require("bcrypt"));
|
|
37
|
+
const typeorm_1 = require("typeorm");
|
|
38
|
+
let Leads = class Leads {
|
|
39
|
+
id;
|
|
40
|
+
name;
|
|
41
|
+
firstName;
|
|
42
|
+
lastName;
|
|
43
|
+
mobile;
|
|
44
|
+
gender;
|
|
45
|
+
email;
|
|
46
|
+
location;
|
|
47
|
+
source;
|
|
48
|
+
campaign;
|
|
49
|
+
type;
|
|
50
|
+
programId;
|
|
51
|
+
courseId;
|
|
52
|
+
counsellorId;
|
|
53
|
+
stage;
|
|
54
|
+
status;
|
|
55
|
+
batch;
|
|
56
|
+
remarks;
|
|
57
|
+
followUpDate;
|
|
58
|
+
dob;
|
|
59
|
+
password;
|
|
60
|
+
createdAt;
|
|
61
|
+
updatedAt;
|
|
62
|
+
async verifyPassword(plainTextPassword) {
|
|
63
|
+
return bcrypt.compare(plainTextPassword, this.password);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], Leads.prototype, "id", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)(),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], Leads.prototype, "name", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], Leads.prototype, "firstName", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Leads.prototype, "lastName", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.Column)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Leads.prototype, "mobile", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, typeorm_1.Column)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], Leads.prototype, "gender", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, typeorm_1.Column)(),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], Leads.prototype, "email", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, typeorm_1.Column)(),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], Leads.prototype, "location", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, typeorm_1.Column)(),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], Leads.prototype, "source", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, typeorm_1.Column)(),
|
|
104
|
+
__metadata("design:type", String)
|
|
105
|
+
], Leads.prototype, "campaign", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, typeorm_1.Column)(),
|
|
108
|
+
__metadata("design:type", String)
|
|
109
|
+
], Leads.prototype, "type", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, typeorm_1.Column)(),
|
|
112
|
+
__metadata("design:type", Number)
|
|
113
|
+
], Leads.prototype, "programId", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, typeorm_1.Column)(),
|
|
116
|
+
__metadata("design:type", Number)
|
|
117
|
+
], Leads.prototype, "courseId", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, typeorm_1.Column)(),
|
|
120
|
+
__metadata("design:type", Number)
|
|
121
|
+
], Leads.prototype, "counsellorId", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, typeorm_1.Column)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], Leads.prototype, "stage", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, typeorm_1.Column)(),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], Leads.prototype, "status", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, typeorm_1.Column)(),
|
|
132
|
+
__metadata("design:type", String)
|
|
133
|
+
], Leads.prototype, "batch", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, typeorm_1.Column)(),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], Leads.prototype, "remarks", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.Column)(),
|
|
140
|
+
__metadata("design:type", String)
|
|
141
|
+
], Leads.prototype, "followUpDate", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, typeorm_1.Column)(),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], Leads.prototype, "dob", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, typeorm_1.Column)(),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], Leads.prototype, "password", void 0);
|
|
150
|
+
__decorate([
|
|
151
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
152
|
+
__metadata("design:type", String)
|
|
153
|
+
], Leads.prototype, "createdAt", void 0);
|
|
154
|
+
__decorate([
|
|
155
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
156
|
+
__metadata("design:type", String)
|
|
157
|
+
], Leads.prototype, "updatedAt", void 0);
|
|
158
|
+
Leads = __decorate([
|
|
159
|
+
(0, typeorm_1.Entity)()
|
|
160
|
+
], Leads);
|
|
161
|
+
exports.Leads = Leads;
|
|
162
162
|
//# sourceMappingURL=leads.entity.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { Profile } from './profile.entity';
|
|
2
|
-
export declare class ProfilePermission {
|
|
3
|
-
id: number;
|
|
4
|
-
profileId: number;
|
|
5
|
-
profile: Profile;
|
|
6
|
-
groupSlug: string;
|
|
7
|
-
permissionSlug: string;
|
|
8
|
-
hasPermission: boolean;
|
|
9
|
-
permissions: string[];
|
|
10
|
-
lastUpdatedBy: number;
|
|
11
|
-
updatedAt: string;
|
|
12
|
-
createdAt: string;
|
|
13
|
-
}
|
|
1
|
+
import { Profile } from './profile.entity';
|
|
2
|
+
export declare class ProfilePermission {
|
|
3
|
+
id: number;
|
|
4
|
+
profileId: number;
|
|
5
|
+
profile: Profile;
|
|
6
|
+
groupSlug: string;
|
|
7
|
+
permissionSlug: string;
|
|
8
|
+
hasPermission: boolean;
|
|
9
|
+
permissions: string[];
|
|
10
|
+
lastUpdatedBy: number;
|
|
11
|
+
updatedAt: string;
|
|
12
|
+
createdAt: string;
|
|
13
|
+
}
|
|
14
14
|
//# sourceMappingURL=profile-permission.entity.d.ts.map
|
|
@@ -1,71 +1,71 @@
|
|
|
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.ProfilePermission = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const profile_entity_1 = require("./profile.entity");
|
|
15
|
-
let ProfilePermission = class ProfilePermission {
|
|
16
|
-
id;
|
|
17
|
-
profileId;
|
|
18
|
-
profile;
|
|
19
|
-
groupSlug;
|
|
20
|
-
permissionSlug;
|
|
21
|
-
hasPermission;
|
|
22
|
-
permissions;
|
|
23
|
-
lastUpdatedBy;
|
|
24
|
-
updatedAt;
|
|
25
|
-
createdAt;
|
|
26
|
-
};
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], ProfilePermission.prototype, "id", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, typeorm_1.Column)(),
|
|
33
|
-
__metadata("design:type", Number)
|
|
34
|
-
], ProfilePermission.prototype, "profileId", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, typeorm_1.ManyToOne)(() => profile_entity_1.Profile),
|
|
37
|
-
__metadata("design:type", profile_entity_1.Profile)
|
|
38
|
-
], ProfilePermission.prototype, "profile", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, typeorm_1.Column)(),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], ProfilePermission.prototype, "groupSlug", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, typeorm_1.Column)(),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], ProfilePermission.prototype, "permissionSlug", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, typeorm_1.Column)(),
|
|
49
|
-
__metadata("design:type", Boolean)
|
|
50
|
-
], ProfilePermission.prototype, "hasPermission", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, typeorm_1.Column)({ type: 'simple-array' }),
|
|
53
|
-
__metadata("design:type", Array)
|
|
54
|
-
], ProfilePermission.prototype, "permissions", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", Number)
|
|
58
|
-
], ProfilePermission.prototype, "lastUpdatedBy", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
61
|
-
__metadata("design:type", String)
|
|
62
|
-
], ProfilePermission.prototype, "updatedAt", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
65
|
-
__metadata("design:type", String)
|
|
66
|
-
], ProfilePermission.prototype, "createdAt", void 0);
|
|
67
|
-
ProfilePermission = __decorate([
|
|
68
|
-
(0, typeorm_1.Entity)()
|
|
69
|
-
], ProfilePermission);
|
|
70
|
-
exports.ProfilePermission = ProfilePermission;
|
|
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.ProfilePermission = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const profile_entity_1 = require("./profile.entity");
|
|
15
|
+
let ProfilePermission = class ProfilePermission {
|
|
16
|
+
id;
|
|
17
|
+
profileId;
|
|
18
|
+
profile;
|
|
19
|
+
groupSlug;
|
|
20
|
+
permissionSlug;
|
|
21
|
+
hasPermission;
|
|
22
|
+
permissions;
|
|
23
|
+
lastUpdatedBy;
|
|
24
|
+
updatedAt;
|
|
25
|
+
createdAt;
|
|
26
|
+
};
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], ProfilePermission.prototype, "id", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, typeorm_1.Column)(),
|
|
33
|
+
__metadata("design:type", Number)
|
|
34
|
+
], ProfilePermission.prototype, "profileId", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, typeorm_1.ManyToOne)(() => profile_entity_1.Profile),
|
|
37
|
+
__metadata("design:type", profile_entity_1.Profile)
|
|
38
|
+
], ProfilePermission.prototype, "profile", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)(),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ProfilePermission.prototype, "groupSlug", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)(),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], ProfilePermission.prototype, "permissionSlug", void 0);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, typeorm_1.Column)(),
|
|
49
|
+
__metadata("design:type", Boolean)
|
|
50
|
+
], ProfilePermission.prototype, "hasPermission", void 0);
|
|
51
|
+
__decorate([
|
|
52
|
+
(0, typeorm_1.Column)({ type: 'simple-array' }),
|
|
53
|
+
__metadata("design:type", Array)
|
|
54
|
+
], ProfilePermission.prototype, "permissions", void 0);
|
|
55
|
+
__decorate([
|
|
56
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
57
|
+
__metadata("design:type", Number)
|
|
58
|
+
], ProfilePermission.prototype, "lastUpdatedBy", void 0);
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], ProfilePermission.prototype, "updatedAt", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], ProfilePermission.prototype, "createdAt", void 0);
|
|
67
|
+
ProfilePermission = __decorate([
|
|
68
|
+
(0, typeorm_1.Entity)()
|
|
69
|
+
], ProfilePermission);
|
|
70
|
+
exports.ProfilePermission = ProfilePermission;
|
|
71
71
|
//# sourceMappingURL=profile-permission.entity.js.map
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { User } from './user.entity';
|
|
2
|
-
export declare class Profile {
|
|
3
|
-
id: number;
|
|
4
|
-
name: string;
|
|
5
|
-
application: string;
|
|
6
|
-
isAdmin: boolean;
|
|
7
|
-
isDefault: boolean;
|
|
8
|
-
description: string;
|
|
9
|
-
createdBy: number;
|
|
10
|
-
creator: User;
|
|
11
|
-
updatedBy: number;
|
|
12
|
-
updater: User;
|
|
13
|
-
updatedAt: string;
|
|
14
|
-
createdAt: string;
|
|
15
|
-
equal(data: unknown): boolean;
|
|
16
|
-
}
|
|
17
|
-
export declare const ProfileApplicationType: {
|
|
18
|
-
square: string;
|
|
19
|
-
exams: string;
|
|
20
|
-
payments: string;
|
|
21
|
-
enroll_x: string;
|
|
22
|
-
hostels: string;
|
|
23
|
-
commute: string;
|
|
24
|
-
hrms: string;
|
|
25
|
-
};
|
|
1
|
+
import { User } from './user.entity';
|
|
2
|
+
export declare class Profile {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
application: string;
|
|
6
|
+
isAdmin: boolean;
|
|
7
|
+
isDefault: boolean;
|
|
8
|
+
description: string;
|
|
9
|
+
createdBy: number;
|
|
10
|
+
creator: User;
|
|
11
|
+
updatedBy: number;
|
|
12
|
+
updater: User;
|
|
13
|
+
updatedAt: string;
|
|
14
|
+
createdAt: string;
|
|
15
|
+
equal(data: unknown): boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProfileApplicationType: {
|
|
18
|
+
square: string;
|
|
19
|
+
exams: string;
|
|
20
|
+
payments: string;
|
|
21
|
+
enroll_x: string;
|
|
22
|
+
hostels: string;
|
|
23
|
+
commute: string;
|
|
24
|
+
hrms: string;
|
|
25
|
+
};
|
|
26
26
|
//# sourceMappingURL=profile.entity.d.ts.map
|