@campxdev/server-shared 1.0.15 → 1.0.16
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/domain/entities/evaluator.entity.d.ts +18 -0
- package/dist/domain/entities/evaluator.entity.d.ts.map +1 -0
- package/dist/domain/entities/evaluator.entity.js +113 -0
- package/dist/domain/entities/evaluator.entity.js.map +1 -0
- package/dist/domain/entities/leads.entity.d.ts +27 -0
- package/dist/domain/entities/leads.entity.d.ts.map +1 -0
- package/dist/domain/entities/leads.entity.js +162 -0
- package/dist/domain/entities/leads.entity.js.map +1 -0
- package/dist/domain/entities/student.entity.d.ts +58 -0
- package/dist/domain/entities/student.entity.d.ts.map +1 -0
- package/dist/domain/entities/student.entity.js +280 -0
- package/dist/domain/entities/student.entity.js.map +1 -0
- package/dist/domain/entities/user.entity.d.ts +2 -0
- package/dist/domain/entities/user.entity.d.ts.map +1 -1
- package/dist/domain/entities/user.entity.js +36 -0
- package/dist/domain/entities/user.entity.js.map +1 -1
- package/dist/domain/index.d.ts +3 -0
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +3 -0
- package/dist/domain/index.js.map +1 -1
- package/dist/permissions/check-permission.guard.d.ts +42 -43
- package/dist/permissions/check-permission.guard.d.ts.map +1 -1
- package/dist/permissions/check-permission.guard.js.map +1 -1
- package/dist/permissions/index.d.ts +1 -1
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js.map +1 -1
- package/package.json +3 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare class Evaluator {
|
|
2
|
+
id: number;
|
|
3
|
+
fullName: string;
|
|
4
|
+
email: string;
|
|
5
|
+
mobile: string;
|
|
6
|
+
alternativeMobile: string;
|
|
7
|
+
password: string;
|
|
8
|
+
organisation: string;
|
|
9
|
+
address: string;
|
|
10
|
+
costPerPaper: number;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
updatedAt: string;
|
|
13
|
+
picture: any;
|
|
14
|
+
proofPicture: any;
|
|
15
|
+
verifyPassword(plainTextPassword: string): Promise<boolean>;
|
|
16
|
+
hashPassword(): Promise<void>;
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=evaluator.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/evaluator.entity.ts"],"names":[],"mappings":"AAUA,qBACa,SAAS;IAEpB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,iBAAiB,EAAE,MAAM,CAAC;IAG1B,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,EAAE,MAAM,CAAC;IAGrB,OAAO,EAAE,MAAM,CAAC;IAGhB,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAElB,OAAO,EAAE,GAAG,CAAC;IAEb,YAAY,EAAE,GAAG,CAAC;IAEZ,cAAc,CAAC,iBAAiB,EAAE,MAAM;IAKxC,YAAY;CAGnB"}
|
|
@@ -0,0 +1,113 @@
|
|
|
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.Evaluator = void 0;
|
|
36
|
+
const bcrypt = __importStar(require("bcrypt"));
|
|
37
|
+
const typeorm_1 = require("typeorm");
|
|
38
|
+
let Evaluator = class Evaluator {
|
|
39
|
+
id;
|
|
40
|
+
fullName;
|
|
41
|
+
email;
|
|
42
|
+
mobile;
|
|
43
|
+
alternativeMobile;
|
|
44
|
+
password;
|
|
45
|
+
organisation;
|
|
46
|
+
address;
|
|
47
|
+
costPerPaper;
|
|
48
|
+
createdAt;
|
|
49
|
+
updatedAt;
|
|
50
|
+
picture;
|
|
51
|
+
proofPicture;
|
|
52
|
+
async verifyPassword(plainTextPassword) {
|
|
53
|
+
return bcrypt.compare(plainTextPassword, this.password);
|
|
54
|
+
}
|
|
55
|
+
async hashPassword() {
|
|
56
|
+
this.password = await bcrypt.hash(this.password, 10);
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
61
|
+
__metadata("design:type", Number)
|
|
62
|
+
], Evaluator.prototype, "id", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, typeorm_1.Column)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], Evaluator.prototype, "fullName", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, typeorm_1.Column)({ unique: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], Evaluator.prototype, "email", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], Evaluator.prototype, "mobile", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], Evaluator.prototype, "alternativeMobile", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, typeorm_1.Column)(),
|
|
81
|
+
__metadata("design:type", String)
|
|
82
|
+
], Evaluator.prototype, "password", void 0);
|
|
83
|
+
__decorate([
|
|
84
|
+
(0, typeorm_1.Column)(),
|
|
85
|
+
__metadata("design:type", String)
|
|
86
|
+
], Evaluator.prototype, "organisation", void 0);
|
|
87
|
+
__decorate([
|
|
88
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
89
|
+
__metadata("design:type", String)
|
|
90
|
+
], Evaluator.prototype, "address", void 0);
|
|
91
|
+
__decorate([
|
|
92
|
+
(0, typeorm_1.Column)(),
|
|
93
|
+
__metadata("design:type", Number)
|
|
94
|
+
], Evaluator.prototype, "costPerPaper", void 0);
|
|
95
|
+
__decorate([
|
|
96
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
97
|
+
__metadata("design:type", String)
|
|
98
|
+
], Evaluator.prototype, "createdAt", void 0);
|
|
99
|
+
__decorate([
|
|
100
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
101
|
+
__metadata("design:type", String)
|
|
102
|
+
], Evaluator.prototype, "updatedAt", void 0);
|
|
103
|
+
__decorate([
|
|
104
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
105
|
+
__metadata("design:type", Function),
|
|
106
|
+
__metadata("design:paramtypes", []),
|
|
107
|
+
__metadata("design:returntype", Promise)
|
|
108
|
+
], Evaluator.prototype, "hashPassword", null);
|
|
109
|
+
Evaluator = __decorate([
|
|
110
|
+
(0, typeorm_1.Entity)()
|
|
111
|
+
], Evaluator);
|
|
112
|
+
exports.Evaluator = Evaluator;
|
|
113
|
+
//# sourceMappingURL=evaluator.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/evaluator.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,qCAOiB;AAGV,IAAM,SAAS,GAAf,MAAM,SAAS;IAEpB,EAAE,CAAS;IAGX,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,MAAM,CAAS;IAGf,iBAAiB,CAAS;IAG1B,QAAQ,CAAS;IAGjB,YAAY,CAAS;IAGrB,OAAO,CAAS;IAGhB,YAAY,CAAS;IAGrB,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB,OAAO,CAAM;IAEb,YAAY,CAAM;IAElB,KAAK,CAAC,cAAc,CAAC,iBAAyB;QAC5C,OAAO,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC1D,CAAC;IAGK,AAAN,KAAK,CAAC,YAAY;QAChB,IAAI,CAAC,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IACvD,CAAC;CACF,CAAA;AA7CC;IAAC,IAAA,gCAAsB,GAAE;;qCACd;AAEX;IAAC,IAAA,gBAAM,GAAE;;2CACQ;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;;wCACX;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACZ;AAEf;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACD;AAE1B;IAAC,IAAA,gBAAM,GAAE;;2CACQ;AAEjB;IAAC,IAAA,gBAAM,GAAE;;+CACY;AAErB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACX;AAEhB;IAAC,IAAA,gBAAM,GAAE;;+CACY;AAErB;IAAC,IAAA,0BAAgB,GAAE;;4CACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;4CACD;AAWZ;IADL,IAAA,sBAAY,GAAE;;;;6CAGd;AA7CU,SAAS;IADrB,IAAA,gBAAM,GAAE;GACI,SAAS,CA8CrB;AA9CY,8BAAS"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare class Leads {
|
|
2
|
+
id: number;
|
|
3
|
+
name: string;
|
|
4
|
+
firstName: string;
|
|
5
|
+
lastName: string;
|
|
6
|
+
mobile: string;
|
|
7
|
+
gender: string;
|
|
8
|
+
email: string;
|
|
9
|
+
location: string;
|
|
10
|
+
source: string;
|
|
11
|
+
campaign: string;
|
|
12
|
+
type: string;
|
|
13
|
+
programId: number;
|
|
14
|
+
courseId: number;
|
|
15
|
+
counsellorId: number;
|
|
16
|
+
stage: string;
|
|
17
|
+
status: string;
|
|
18
|
+
batch: string;
|
|
19
|
+
remarks: string;
|
|
20
|
+
followUpDate: string;
|
|
21
|
+
dob: string;
|
|
22
|
+
password: string;
|
|
23
|
+
createdAt: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
verifyPassword(plainTextPassword: string): Promise<boolean>;
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=leads.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leads.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/leads.entity.ts"],"names":[],"mappings":"AASA,qBACa,KAAK;IAEhB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAGjB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,EAAE,MAAM,CAAC;IAGrB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,YAAY,EAAE,MAAM,CAAC;IAGrB,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAEZ,cAAc,CAAC,iBAAiB,EAAE,MAAM;CAG/C"}
|
|
@@ -0,0 +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;
|
|
162
|
+
//# sourceMappingURL=leads.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leads.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/leads.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,qCAMiB;AAGV,IAAM,KAAK,GAAX,MAAM,KAAK;IAEhB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,SAAS,CAAS;IAGlB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;IAAC,IAAA,gBAAM,GAAE;;2CACY;AAErB;IAAC,IAAA,gBAAM,GAAE;;kCACG;AAEZ;IAAC,IAAA,gBAAM,GAAE;;uCACQ;AAEjB;IAAC,IAAA,0BAAgB,GAAE;;wCACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;wCACD;AApEP,KAAK;IADjB,IAAA,gBAAM,GAAE;GACI,KAAK,CAyEjB;AAzEY,sBAAK"}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export declare enum Gender {
|
|
2
|
+
Male = "male",
|
|
3
|
+
Female = "female"
|
|
4
|
+
}
|
|
5
|
+
export declare class Student {
|
|
6
|
+
id: number;
|
|
7
|
+
collegeId: number;
|
|
8
|
+
rollNo: string;
|
|
9
|
+
fullName: string;
|
|
10
|
+
photoId: number;
|
|
11
|
+
admissionNo: string;
|
|
12
|
+
courseId: number;
|
|
13
|
+
branchCode: string;
|
|
14
|
+
semester: string;
|
|
15
|
+
semesterId: number;
|
|
16
|
+
semNo: number;
|
|
17
|
+
batch: string;
|
|
18
|
+
batchId: number;
|
|
19
|
+
curriculumId: number;
|
|
20
|
+
programId: number;
|
|
21
|
+
mobile: string;
|
|
22
|
+
alternateMobile: string;
|
|
23
|
+
email: string;
|
|
24
|
+
address: string;
|
|
25
|
+
alternateEmail: string;
|
|
26
|
+
gender: string;
|
|
27
|
+
dob: string;
|
|
28
|
+
parentName: string;
|
|
29
|
+
parentMobile: string;
|
|
30
|
+
parentOccupation: string;
|
|
31
|
+
fatherName: string;
|
|
32
|
+
motherName: string;
|
|
33
|
+
motherOccupation: string;
|
|
34
|
+
motherTongue: string;
|
|
35
|
+
nationality: string;
|
|
36
|
+
religion: string;
|
|
37
|
+
caste: string;
|
|
38
|
+
hasScholarship: boolean;
|
|
39
|
+
admissionDate: string;
|
|
40
|
+
discontinued: boolean;
|
|
41
|
+
discontinuedDate: string;
|
|
42
|
+
yearOfPass: string;
|
|
43
|
+
spotAdmission: boolean;
|
|
44
|
+
detainee: boolean;
|
|
45
|
+
aadhaarNo: string;
|
|
46
|
+
userId: number;
|
|
47
|
+
section: string;
|
|
48
|
+
classroomId: number;
|
|
49
|
+
detained: boolean;
|
|
50
|
+
detained_reason: string;
|
|
51
|
+
transferred: boolean;
|
|
52
|
+
physicallyChallenged: boolean;
|
|
53
|
+
identificationMark1: string;
|
|
54
|
+
identificationMark2: string;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=student.entity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/student.entity.ts"],"names":[],"mappings":"AAQA,oBAAY,MAAM;IAChB,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AAED,qBACa,OAAO;IAElB,EAAE,EAAE,MAAM,CAAC;IAGX,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,EAAE,MAAM,CAAC;IAGf,eAAe,EAAE,MAAM,CAAC;IAGxB,KAAK,EAAE,MAAM,CAAC;IAGd,OAAO,EAAE,MAAM,CAAC;IAGhB,cAAc,EAAE,MAAM,CAAC;IAGvB,MAAM,EAAE,MAAM,CAAC;IAGf,GAAG,EAAE,MAAM,CAAC;IAGZ,UAAU,EAAE,MAAM,CAAC;IAGnB,YAAY,EAAE,MAAM,CAAC;IAGrB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,YAAY,EAAE,MAAM,CAAC;IAGrB,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,cAAc,EAAE,OAAO,CAAC;IAGxB,aAAa,EAAE,MAAM,CAAC;IAGtB,YAAY,EAAE,OAAO,CAAC;IAGtB,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,OAAO,CAAC;IAGvB,QAAQ,EAAE,OAAO,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAGlB,MAAM,EAAE,MAAM,CAAC;IAGf,OAAO,EAAE,MAAM,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,OAAO,CAAC;IAGlB,eAAe,EAAE,MAAM,CAAC;IAGxB,WAAW,EAAE,OAAO,CAAC;IAGrB,oBAAoB,EAAE,OAAO,CAAC;IAG9B,mBAAmB,EAAE,MAAM,CAAC;IAG5B,mBAAmB,EAAE,MAAM,CAAC;IAG5B,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
|
@@ -0,0 +1,280 @@
|
|
|
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.Student = exports.Gender = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
var Gender;
|
|
15
|
+
(function (Gender) {
|
|
16
|
+
Gender["Male"] = "male";
|
|
17
|
+
Gender["Female"] = "female";
|
|
18
|
+
})(Gender = exports.Gender || (exports.Gender = {}));
|
|
19
|
+
let Student = class Student {
|
|
20
|
+
id;
|
|
21
|
+
collegeId;
|
|
22
|
+
rollNo;
|
|
23
|
+
fullName;
|
|
24
|
+
photoId;
|
|
25
|
+
admissionNo;
|
|
26
|
+
courseId;
|
|
27
|
+
branchCode;
|
|
28
|
+
semester;
|
|
29
|
+
semesterId;
|
|
30
|
+
semNo;
|
|
31
|
+
batch;
|
|
32
|
+
batchId;
|
|
33
|
+
curriculumId;
|
|
34
|
+
programId;
|
|
35
|
+
mobile;
|
|
36
|
+
alternateMobile;
|
|
37
|
+
email;
|
|
38
|
+
address;
|
|
39
|
+
alternateEmail;
|
|
40
|
+
gender;
|
|
41
|
+
dob;
|
|
42
|
+
parentName;
|
|
43
|
+
parentMobile;
|
|
44
|
+
parentOccupation;
|
|
45
|
+
fatherName;
|
|
46
|
+
motherName;
|
|
47
|
+
motherOccupation;
|
|
48
|
+
motherTongue;
|
|
49
|
+
nationality;
|
|
50
|
+
religion;
|
|
51
|
+
caste;
|
|
52
|
+
hasScholarship;
|
|
53
|
+
admissionDate;
|
|
54
|
+
discontinued;
|
|
55
|
+
discontinuedDate;
|
|
56
|
+
yearOfPass;
|
|
57
|
+
spotAdmission;
|
|
58
|
+
detainee;
|
|
59
|
+
aadhaarNo;
|
|
60
|
+
userId;
|
|
61
|
+
section;
|
|
62
|
+
classroomId;
|
|
63
|
+
detained;
|
|
64
|
+
detained_reason;
|
|
65
|
+
transferred;
|
|
66
|
+
physicallyChallenged;
|
|
67
|
+
identificationMark1;
|
|
68
|
+
identificationMark2;
|
|
69
|
+
createdAt;
|
|
70
|
+
updatedAt;
|
|
71
|
+
};
|
|
72
|
+
__decorate([
|
|
73
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
74
|
+
__metadata("design:type", Number)
|
|
75
|
+
], Student.prototype, "id", void 0);
|
|
76
|
+
__decorate([
|
|
77
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
78
|
+
__metadata("design:type", Number)
|
|
79
|
+
], Student.prototype, "collegeId", void 0);
|
|
80
|
+
__decorate([
|
|
81
|
+
(0, typeorm_1.Column)(),
|
|
82
|
+
__metadata("design:type", String)
|
|
83
|
+
], Student.prototype, "rollNo", void 0);
|
|
84
|
+
__decorate([
|
|
85
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
86
|
+
__metadata("design:type", String)
|
|
87
|
+
], Student.prototype, "fullName", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, typeorm_1.Column)(),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], Student.prototype, "photoId", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], Student.prototype, "admissionNo", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
98
|
+
__metadata("design:type", Number)
|
|
99
|
+
], Student.prototype, "courseId", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], Student.prototype, "branchCode", void 0);
|
|
104
|
+
__decorate([
|
|
105
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
106
|
+
__metadata("design:type", String)
|
|
107
|
+
], Student.prototype, "semester", void 0);
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, typeorm_1.Column)(),
|
|
110
|
+
__metadata("design:type", Number)
|
|
111
|
+
], Student.prototype, "semesterId", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, typeorm_1.Column)(),
|
|
114
|
+
__metadata("design:type", Number)
|
|
115
|
+
], Student.prototype, "semNo", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], Student.prototype, "batch", void 0);
|
|
120
|
+
__decorate([
|
|
121
|
+
(0, typeorm_1.Column)(),
|
|
122
|
+
__metadata("design:type", Number)
|
|
123
|
+
], Student.prototype, "batchId", void 0);
|
|
124
|
+
__decorate([
|
|
125
|
+
(0, typeorm_1.Column)(),
|
|
126
|
+
__metadata("design:type", Number)
|
|
127
|
+
], Student.prototype, "curriculumId", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, typeorm_1.Column)(),
|
|
130
|
+
__metadata("design:type", Number)
|
|
131
|
+
], Student.prototype, "programId", void 0);
|
|
132
|
+
__decorate([
|
|
133
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
134
|
+
__metadata("design:type", String)
|
|
135
|
+
], Student.prototype, "mobile", void 0);
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], Student.prototype, "alternateMobile", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], Student.prototype, "email", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, typeorm_1.Column)(),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], Student.prototype, "address", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], Student.prototype, "alternateEmail", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, typeorm_1.Column)(),
|
|
154
|
+
__metadata("design:type", String)
|
|
155
|
+
], Student.prototype, "gender", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, typeorm_1.Column)(),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], Student.prototype, "dob", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], Student.prototype, "parentName", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], Student.prototype, "parentMobile", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], Student.prototype, "parentOccupation", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, typeorm_1.Column)(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], Student.prototype, "fatherName", void 0);
|
|
176
|
+
__decorate([
|
|
177
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
178
|
+
__metadata("design:type", String)
|
|
179
|
+
], Student.prototype, "motherName", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
182
|
+
__metadata("design:type", String)
|
|
183
|
+
], Student.prototype, "motherOccupation", void 0);
|
|
184
|
+
__decorate([
|
|
185
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
186
|
+
__metadata("design:type", String)
|
|
187
|
+
], Student.prototype, "motherTongue", void 0);
|
|
188
|
+
__decorate([
|
|
189
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
190
|
+
__metadata("design:type", String)
|
|
191
|
+
], Student.prototype, "nationality", void 0);
|
|
192
|
+
__decorate([
|
|
193
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
194
|
+
__metadata("design:type", String)
|
|
195
|
+
], Student.prototype, "religion", void 0);
|
|
196
|
+
__decorate([
|
|
197
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
198
|
+
__metadata("design:type", String)
|
|
199
|
+
], Student.prototype, "caste", void 0);
|
|
200
|
+
__decorate([
|
|
201
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
202
|
+
__metadata("design:type", Boolean)
|
|
203
|
+
], Student.prototype, "hasScholarship", void 0);
|
|
204
|
+
__decorate([
|
|
205
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
206
|
+
__metadata("design:type", String)
|
|
207
|
+
], Student.prototype, "admissionDate", void 0);
|
|
208
|
+
__decorate([
|
|
209
|
+
(0, typeorm_1.Column)({ default: false, nullable: true }),
|
|
210
|
+
__metadata("design:type", Boolean)
|
|
211
|
+
], Student.prototype, "discontinued", void 0);
|
|
212
|
+
__decorate([
|
|
213
|
+
(0, typeorm_1.Column)({ type: 'date', nullable: true }),
|
|
214
|
+
__metadata("design:type", String)
|
|
215
|
+
], Student.prototype, "discontinuedDate", void 0);
|
|
216
|
+
__decorate([
|
|
217
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
218
|
+
__metadata("design:type", String)
|
|
219
|
+
], Student.prototype, "yearOfPass", void 0);
|
|
220
|
+
__decorate([
|
|
221
|
+
(0, typeorm_1.Column)({ default: false, nullable: true }),
|
|
222
|
+
__metadata("design:type", Boolean)
|
|
223
|
+
], Student.prototype, "spotAdmission", void 0);
|
|
224
|
+
__decorate([
|
|
225
|
+
(0, typeorm_1.Column)({ default: false, nullable: true }),
|
|
226
|
+
__metadata("design:type", Boolean)
|
|
227
|
+
], Student.prototype, "detainee", void 0);
|
|
228
|
+
__decorate([
|
|
229
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
230
|
+
__metadata("design:type", String)
|
|
231
|
+
], Student.prototype, "aadhaarNo", void 0);
|
|
232
|
+
__decorate([
|
|
233
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
234
|
+
__metadata("design:type", Number)
|
|
235
|
+
], Student.prototype, "userId", void 0);
|
|
236
|
+
__decorate([
|
|
237
|
+
(0, typeorm_1.Column)(),
|
|
238
|
+
__metadata("design:type", String)
|
|
239
|
+
], Student.prototype, "section", void 0);
|
|
240
|
+
__decorate([
|
|
241
|
+
(0, typeorm_1.Column)(),
|
|
242
|
+
__metadata("design:type", Number)
|
|
243
|
+
], Student.prototype, "classroomId", void 0);
|
|
244
|
+
__decorate([
|
|
245
|
+
(0, typeorm_1.Column)(),
|
|
246
|
+
__metadata("design:type", Boolean)
|
|
247
|
+
], Student.prototype, "detained", void 0);
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, typeorm_1.Column)(),
|
|
250
|
+
__metadata("design:type", String)
|
|
251
|
+
], Student.prototype, "detained_reason", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, typeorm_1.Column)(),
|
|
254
|
+
__metadata("design:type", Boolean)
|
|
255
|
+
], Student.prototype, "transferred", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, typeorm_1.Column)({ default: false, nullable: true }),
|
|
258
|
+
__metadata("design:type", Boolean)
|
|
259
|
+
], Student.prototype, "physicallyChallenged", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, typeorm_1.Column)(),
|
|
262
|
+
__metadata("design:type", String)
|
|
263
|
+
], Student.prototype, "identificationMark1", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, typeorm_1.Column)(),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], Student.prototype, "identificationMark2", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
270
|
+
__metadata("design:type", String)
|
|
271
|
+
], Student.prototype, "createdAt", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
274
|
+
__metadata("design:type", String)
|
|
275
|
+
], Student.prototype, "updatedAt", void 0);
|
|
276
|
+
Student = __decorate([
|
|
277
|
+
(0, typeorm_1.Entity)()
|
|
278
|
+
], Student);
|
|
279
|
+
exports.Student = Student;
|
|
280
|
+
//# sourceMappingURL=student.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/student.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAMiB;AAEjB,IAAY,MAGX;AAHD,WAAY,MAAM;IAChB,uBAAa,CAAA;IACb,2BAAiB,CAAA;AACnB,CAAC,EAHW,MAAM,GAAN,cAAM,KAAN,cAAM,QAGjB;AAGM,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,EAAE,CAAS;IAGX,SAAS,CAAS;IAGlB,MAAM,CAAS;IAGf,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,YAAY,CAAS;IAGrB,SAAS,CAAS;IAGlB,MAAM,CAAS;IAGf,eAAe,CAAS;IAGxB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,cAAc,CAAS;IAGvB,MAAM,CAAS;IAGf,GAAG,CAAS;IAGZ,UAAU,CAAS;IAGnB,YAAY,CAAS;IAGrB,gBAAgB,CAAS;IAGzB,UAAU,CAAS;IAGnB,UAAU,CAAS;IAGnB,gBAAgB,CAAS;IAGzB,YAAY,CAAS;IAGrB,WAAW,CAAS;IAGpB,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,cAAc,CAAU;IAGxB,aAAa,CAAS;IAGtB,YAAY,CA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1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/user.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../../src/domain/entities/user.entity.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAE3C,qBACa,IAAI;IAEf,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,OAAO,CAAC;IAGlB,WAAW,EAAE,OAAO,CAAC;IAGrB,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,UAAU,CAAC;IAGvB,SAAS,EAAE,MAAM,CAAC;IAQlB,QAAQ,EAAE,OAAO,EAAE,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;IAEZ,cAAc,CAAC,iBAAiB,EAAE,MAAM;IAKxC,YAAY;CAGnB"}
|
|
@@ -1,15 +1,39 @@
|
|
|
1
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
|
+
});
|
|
2
18
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
19
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
20
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
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;
|
|
6
22
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
|
+
};
|
|
8
31
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
32
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
33
|
};
|
|
11
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
35
|
exports.User = void 0;
|
|
36
|
+
const bcrypt = __importStar(require("bcrypt"));
|
|
13
37
|
const typeorm_1 = require("typeorm");
|
|
14
38
|
const department_entity_1 = require("./department.entity");
|
|
15
39
|
const profile_entity_1 = require("./profile.entity");
|
|
@@ -31,6 +55,12 @@ let User = class User {
|
|
|
31
55
|
schoolId;
|
|
32
56
|
createdAt;
|
|
33
57
|
updatedAt;
|
|
58
|
+
async verifyPassword(plainTextPassword) {
|
|
59
|
+
return bcrypt.compare(plainTextPassword, this.password);
|
|
60
|
+
}
|
|
61
|
+
async hashPassword() {
|
|
62
|
+
this.password = await bcrypt.hash(this.password, 10);
|
|
63
|
+
}
|
|
34
64
|
};
|
|
35
65
|
__decorate([
|
|
36
66
|
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
@@ -105,6 +135,12 @@ __decorate([
|
|
|
105
135
|
(0, typeorm_1.UpdateDateColumn)(),
|
|
106
136
|
__metadata("design:type", String)
|
|
107
137
|
], User.prototype, "updatedAt", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, typeorm_1.BeforeInsert)(),
|
|
140
|
+
__metadata("design:type", Function),
|
|
141
|
+
__metadata("design:paramtypes", []),
|
|
142
|
+
__metadata("design:returntype", Promise)
|
|
143
|
+
], User.prototype, "hashPassword", null);
|
|
108
144
|
User = __decorate([
|
|
109
145
|
(0, typeorm_1.Entity)()
|
|
110
146
|
], User);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/user.entity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,qCAUiB;AACjB,2DAAiD;AACjD,qDAA2C;AAGpC,IAAM,IAAI,GAAV,MAAM,IAAI;IAEf,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,MAAM,CAAS;IAGf,QAAQ,CAAS;IAGjB,QAAQ,CAAU;IAGlB,WAAW,CAAU;IAGrB,MAAM,CAAS;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EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KAC1C,CAAC;;sCACkB;AAEpB;IAAC,IAAA,gBAAM,GAAE;;sCACQ;AAEjB;IAAC,IAAA,0BAAgB,GAAE;;uCACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;uCACD;AAOZ;IADL,IAAA,sBAAY,GAAE;;;;wCAGd;AAhEU,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CAiEhB;AAjEY,oBAAI"}
|
package/dist/domain/index.d.ts
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export * from './db-connection.module';
|
|
2
2
|
export * from './entities/department.entity';
|
|
3
|
+
export * from './entities/evaluator.entity';
|
|
4
|
+
export * from './entities/leads.entity';
|
|
3
5
|
export * from './entities/profile-permission.entity';
|
|
4
6
|
export * from './entities/profile.entity';
|
|
5
7
|
export * from './entities/program.entity';
|
|
8
|
+
export * from './entities/student.entity';
|
|
6
9
|
export * from './entities/user.entity';
|
|
7
10
|
export * from './schemas/tenant.schema';
|
|
8
11
|
export * from './shared-domain.module';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,sCAAsC,CAAC;AACrD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC"}
|
package/dist/domain/index.js
CHANGED
|
@@ -16,9 +16,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./db-connection.module"), exports);
|
|
18
18
|
__exportStar(require("./entities/department.entity"), exports);
|
|
19
|
+
__exportStar(require("./entities/evaluator.entity"), exports);
|
|
20
|
+
__exportStar(require("./entities/leads.entity"), exports);
|
|
19
21
|
__exportStar(require("./entities/profile-permission.entity"), exports);
|
|
20
22
|
__exportStar(require("./entities/profile.entity"), exports);
|
|
21
23
|
__exportStar(require("./entities/program.entity"), exports);
|
|
24
|
+
__exportStar(require("./entities/student.entity"), exports);
|
|
22
25
|
__exportStar(require("./entities/user.entity"), exports);
|
|
23
26
|
__exportStar(require("./schemas/tenant.schema"), exports);
|
|
24
27
|
__exportStar(require("./shared-domain.module"), exports);
|
package/dist/domain/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,+DAA6C;AAC7C,uEAAqD;AACrD,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/domain/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,+DAA6C;AAC7C,8DAA4C;AAC5C,0DAAwC;AACxC,uEAAqD;AACrD,4DAA0C;AAC1C,4DAA0C;AAC1C,4DAA0C;AAC1C,yDAAuC;AACvC,0DAAwC;AACxC,yDAAuC"}
|
|
@@ -2,50 +2,49 @@ import { EntityManager } from 'typeorm';
|
|
|
2
2
|
import { IRequest } from '../common';
|
|
3
3
|
import { ProfilePermission, User } from '../domain';
|
|
4
4
|
export type CheckFn = (manager: EntityManager, user: User, permission: ProfilePermission, req: IRequest) => Promise<boolean> | boolean;
|
|
5
|
-
export type PermissionCheckFn = CheckFn | boolean;
|
|
6
5
|
export type CheckPermissions = {
|
|
7
|
-
organisation?:
|
|
8
|
-
users?:
|
|
9
|
-
admissions?:
|
|
10
|
-
students?:
|
|
11
|
-
subjects?:
|
|
12
|
-
course_registration?:
|
|
13
|
-
end_semester_examinations?:
|
|
14
|
-
internal_examinations?:
|
|
15
|
-
extra_curricular_activities?:
|
|
16
|
-
bundling?:
|
|
17
|
-
classroom?:
|
|
18
|
-
feed?:
|
|
19
|
-
programs?:
|
|
20
|
-
degrees?:
|
|
21
|
-
semesters?:
|
|
22
|
-
curriculums?:
|
|
23
|
-
assessment_rules?:
|
|
24
|
-
examinations?:
|
|
25
|
-
results_processing?:
|
|
26
|
-
lead_status?:
|
|
27
|
-
hosteler?:
|
|
28
|
-
hosteler_settings?:
|
|
29
|
-
schools?:
|
|
30
|
-
subject_types?:
|
|
31
|
-
assessment_types?:
|
|
32
|
-
master_subject?:
|
|
33
|
-
academic_calendar?:
|
|
34
|
-
designations?:
|
|
35
|
-
tasks?:
|
|
36
|
-
fee_counters?:
|
|
37
|
-
evaluators?:
|
|
38
|
-
exam_registrations?:
|
|
39
|
-
hall_tickets?:
|
|
40
|
-
omrs?:
|
|
41
|
-
paper_configuration?:
|
|
42
|
-
internal_marks?:
|
|
43
|
-
external_marks?:
|
|
44
|
-
d_forms?:
|
|
45
|
-
exam_rooms?:
|
|
46
|
-
exam_timetable?:
|
|
47
|
-
time_slots?:
|
|
48
|
-
quotas?:
|
|
6
|
+
organisation?: CheckFn | boolean;
|
|
7
|
+
users?: CheckFn | boolean;
|
|
8
|
+
admissions?: CheckFn | boolean;
|
|
9
|
+
students?: CheckFn | boolean;
|
|
10
|
+
subjects?: CheckFn | boolean;
|
|
11
|
+
course_registration?: CheckFn | boolean;
|
|
12
|
+
end_semester_examinations?: CheckFn | boolean;
|
|
13
|
+
internal_examinations?: CheckFn | boolean;
|
|
14
|
+
extra_curricular_activities?: CheckFn | boolean;
|
|
15
|
+
bundling?: CheckFn | boolean;
|
|
16
|
+
classroom?: CheckFn | boolean;
|
|
17
|
+
feed?: CheckFn | boolean;
|
|
18
|
+
programs?: CheckFn | boolean;
|
|
19
|
+
degrees?: CheckFn | boolean;
|
|
20
|
+
semesters?: CheckFn | boolean;
|
|
21
|
+
curriculums?: CheckFn | boolean;
|
|
22
|
+
assessment_rules?: CheckFn | boolean;
|
|
23
|
+
examinations?: CheckFn | boolean;
|
|
24
|
+
results_processing?: CheckFn | boolean;
|
|
25
|
+
lead_status?: CheckFn | boolean;
|
|
26
|
+
hosteler?: CheckFn | boolean;
|
|
27
|
+
hosteler_settings?: CheckFn | boolean;
|
|
28
|
+
schools?: CheckFn | boolean;
|
|
29
|
+
subject_types?: CheckFn | boolean;
|
|
30
|
+
assessment_types?: CheckFn | boolean;
|
|
31
|
+
master_subject?: CheckFn | boolean;
|
|
32
|
+
academic_calendar?: CheckFn | boolean;
|
|
33
|
+
designations?: CheckFn | boolean;
|
|
34
|
+
tasks?: CheckFn | boolean;
|
|
35
|
+
fee_counters?: CheckFn | boolean;
|
|
36
|
+
evaluators?: CheckFn | boolean;
|
|
37
|
+
exam_registrations?: CheckFn | boolean;
|
|
38
|
+
hall_tickets?: CheckFn | boolean;
|
|
39
|
+
omrs?: CheckFn | boolean;
|
|
40
|
+
paper_configuration?: CheckFn | boolean;
|
|
41
|
+
internal_marks?: CheckFn | boolean;
|
|
42
|
+
external_marks?: CheckFn | boolean;
|
|
43
|
+
d_forms?: CheckFn | boolean;
|
|
44
|
+
exam_rooms?: CheckFn | boolean;
|
|
45
|
+
exam_timetable?: CheckFn | boolean;
|
|
46
|
+
time_slots?: CheckFn | boolean;
|
|
47
|
+
quotas?: CheckFn | boolean;
|
|
49
48
|
};
|
|
50
49
|
export declare function validateRequestPermission(permissionName: string, fns: CheckPermissions): Promise<boolean>;
|
|
51
50
|
//# sourceMappingURL=check-permission.guard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-permission.guard.d.ts","sourceRoot":"","sources":["../../src/permissions/check-permission.guard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAA0C,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGpD,MAAM,MAAM,OAAO,GAAG,CACpB,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,iBAAiB,EAC7B,GAAG,EAAE,QAAQ,KACV,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAEhC,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"check-permission.guard.d.ts","sourceRoot":"","sources":["../../src/permissions/check-permission.guard.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,EAA0C,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC7E,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAGpD,MAAM,MAAM,OAAO,GAAG,CACpB,OAAO,EAAE,aAAa,EACtB,IAAI,EAAE,IAAI,EACV,UAAU,EAAE,iBAAiB,EAC7B,GAAG,EAAE,QAAQ,KACV,OAAO,CAAC,OAAO,CAAC,GAAG,OAAO,CAAC;AAEhC,MAAM,MAAM,gBAAgB,GAAG;IAC7B,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACjC,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/B,QAAQ,CAAC,EAAE,O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AC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACjC,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/B,kBAAkB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACvC,YAAY,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACjC,IAAI,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACzB,mBAAmB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACxC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/B,cAAc,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IACnC,UAAU,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC/B,MAAM,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;CAC5B,CAAC;AAEF,wBAAsB,yBAAyB,CAC7C,cAAc,EAAE,MAAM,EACtB,GAAG,EAAE,gBAAgB,GACpB,OAAO,CAAC,OAAO,CAAC,CA6ClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-permission.guard.js","sourceRoot":"","sources":["../../src/permissions/check-permission.guard.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAE9B,sCAA6E;AAC7E,sCAAoD;AACpD,+CAAwD;
|
|
1
|
+
{"version":3,"file":"check-permission.guard.js","sourceRoot":"","sources":["../../src/permissions/check-permission.guard.ts"],"names":[],"mappings":";;;AAAA,mCAA8B;AAE9B,sCAA6E;AAC7E,sCAAoD;AACpD,+CAAwD;AAsDjD,KAAK,UAAU,yBAAyB,CAC7C,cAAsB,EACtB,GAAqB;IAErB,MAAM,OAAO,GAAG,IAAA,oBAAW,GAAE,CAAC;I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AC,CAAC,CAAC,aAAa,CAAC,CAAC;QACvD,KAAK,CAAC,WAAW,GAAG,IAAA,aAAI,EAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;QACzE,OAAO,KAAK,CAAC;IACf,CAAC,CAAC,CAAC;IACL,IAAI,CAAC,iBAAiB;QAAE,OAAO,KAAK,CAAC;IAErC,IAAI,CAAC,iBAAiB,CAAC,aAAa;QAAE,OAAO,KAAK,CAAC;IAEnD,IAAI,UAAU,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IAErD,IAAI,iBAAiB,CAAC,WAAW,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IAE7D,MAAM,EAAE,GAAG,GAAG,EAAE,CAAC,UAAU,CAAC,SAAmC,CAAC,CAAC;IAEjE,IAAI,EAAE,KAAK,IAAI,IAAI,EAAE,KAAK,SAAS;QAAE,OAAO,IAAI,CAAC;IACjD,IAAI,OAAO,EAAE,KAAK,UAAU;QAAE,OAAO,EAAE,CAAC,IAAA,sBAAa,GAAE,CAAC,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,CAAC,CAAC;IAC/F,IAAI,OAAO,EAAE,KAAK,SAAS;QAAE,OAAO,EAAE,CAAC;IAEvC,OAAO,IAAI,CAAC;AACd,CAAC;AAhDD,8DAgDC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/permissions/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/permissions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,cAAc,eAAe,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/permissions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/permissions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AACA,gDAA8B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@campxdev/server-shared",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.16",
|
|
4
4
|
"description": "Campx server shared files",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"@nestjs/core": "^9.3.9",
|
|
17
17
|
"@nestjs/microservices": "^9.3.9",
|
|
18
18
|
"@nestjs/mongoose": "^9.2.1",
|
|
19
|
+
"bcrypt": "^5.1.0",
|
|
19
20
|
"class-validator": "^0.14.0",
|
|
20
21
|
"joi": "^17.8.3",
|
|
21
22
|
"jsonwebtoken": "^9.0.0",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"xlsx": "^0.18.5"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
34
|
+
"@types/bcrypt": "^5.0.0",
|
|
33
35
|
"@types/express": "^4.17.17",
|
|
34
36
|
"@types/lodash": "^4.14.191",
|
|
35
37
|
"@types/mongoose": "^5.11.97",
|