@campxdev/server-shared 1.2.35 → 1.2.36
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/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 -37
- package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
- package/dist/common/guards/guard.d.ts +8 -8
- package/dist/common/guards/guard.js +24 -24
- package/dist/common/index.d.ts +10 -10
- package/dist/common/index.js +26 -26
- package/dist/common/interceptors/request.interceptor.d.ts +20 -20
- package/dist/common/interceptors/request.interceptor.js +143 -142
- package/dist/common/interceptors/request.interceptor.js.map +1 -1
- package/dist/common/interfaces/context.interface.d.ts +125 -125
- package/dist/common/interfaces/context.interface.js +2 -2
- package/dist/common/store/request-store.d.ts +44 -44
- package/dist/common/store/request-store.js +166 -166
- 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 -36
- package/dist/common/store/store.interceptor.js.map +1 -1
- package/dist/domain/db-connection.module.d.ts +3 -3
- package/dist/domain/db-connection.module.js +29 -28
- package/dist/domain/db-connection.module.js.map +1 -1
- package/dist/domain/entities/evaluator.entity.d.ts +17 -17
- package/dist/domain/entities/evaluator.entity.js +112 -111
- package/dist/domain/entities/evaluator.entity.js.map +1 -1
- package/dist/domain/entities/leads.entity.d.ts +26 -26
- package/dist/domain/entities/leads.entity.js +161 -160
- package/dist/domain/entities/leads.entity.js.map +1 -1
- package/dist/domain/entities/profile-permission.entity.d.ts +13 -13
- package/dist/domain/entities/profile-permission.entity.js +70 -69
- package/dist/domain/entities/profile-permission.entity.js.map +1 -1
- package/dist/domain/entities/profile.entity.d.ts +26 -26
- package/dist/domain/entities/profile.entity.js +99 -98
- package/dist/domain/entities/profile.entity.js.map +1 -1
- package/dist/domain/entities/student.entity.d.ts +26 -26
- package/dist/domain/entities/student.entity.js +124 -123
- package/dist/domain/entities/student.entity.js.map +1 -1
- package/dist/domain/entities/user.entity.d.ts +20 -20
- package/dist/domain/entities/user.entity.js +136 -135
- package/dist/domain/entities/user.entity.js.map +1 -1
- package/dist/domain/index.d.ts +10 -10
- package/dist/domain/index.js +26 -26
- package/dist/domain/schemas/global-users.schema.d.ts +60 -60
- package/dist/domain/schemas/global-users.schema.d.ts.map +1 -1
- package/dist/domain/schemas/global-users.schema.js +158 -156
- package/dist/domain/schemas/global-users.schema.js.map +1 -1
- package/dist/domain/schemas/tenant.schema.d.ts +106 -106
- package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
- package/dist/domain/schemas/tenant.schema.js +347 -338
- package/dist/domain/schemas/tenant.schema.js.map +1 -1
- package/dist/domain/shared-domain.module.d.ts +2 -2
- package/dist/domain/shared-domain.module.js +27 -26
- package/dist/domain/shared-domain.module.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +21 -21
- package/dist/permissions/app-permissions/commute-x-permissions.d.ts +118 -118
- package/dist/permissions/app-permissions/commute-x-permissions.js +128 -128
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +498 -498
- package/dist/permissions/app-permissions/enroll-x-permissions.js +816 -816
- package/dist/permissions/app-permissions/exams-permissions.d.ts +745 -745
- package/dist/permissions/app-permissions/exams-permissions.js +1218 -1218
- package/dist/permissions/app-permissions/hostels-permissions.d.ts +424 -424
- package/dist/permissions/app-permissions/hostels-permissions.js +537 -537
- package/dist/permissions/app-permissions/payments-permissions.d.ts +364 -364
- package/dist/permissions/app-permissions/payments-permissions.js +486 -486
- package/dist/permissions/app-permissions/people-x-permissions.d.ts +346 -346
- package/dist/permissions/app-permissions/people-x-permissions.js +356 -356
- package/dist/permissions/app-permissions/square-permissions.d.ts +1219 -1219
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.js +2235 -2237
- package/dist/permissions/app-permissions/square-permissions.js.map +1 -1
- package/dist/permissions/check-permission.guard.d.ts +9 -9
- package/dist/permissions/check-permission.guard.js +60 -60
- package/dist/permissions/index.d.ts +9 -9
- package/dist/permissions/index.js +32 -32
- package/dist/permissions/permissions.d.ts +7422 -7422
- package/dist/permissions/permissions.js +122 -122
- 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 -36
- package/dist/shared-module/shared.module.js.map +1 -1
- package/dist/shared-module/shared.service.d.ts +67 -67
- package/dist/shared-module/shared.service.js +212 -211
- package/dist/shared-module/shared.service.js.map +1 -1
- 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 +26 -26
- package/dist/utils/utils.js +250 -250
- package/package.json +46 -46
|
@@ -1,70 +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 =
|
|
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
|
-
|
|
68
|
-
(0, typeorm_1.Entity)()
|
|
69
|
-
], 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;
|
|
70
71
|
//# sourceMappingURL=profile-permission.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile-permission.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAGpC,IAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"profile-permission.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile-permission.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAOiB;AACjB,qDAA2C;AAGpC,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;IAE5B,EAAE,CAAS;IAGX,SAAS,CAAS;IAGlB,OAAO,CAAU;IAGjB,SAAS,CAAS;IAGlB,cAAc,CAAS;IAGvB,aAAa,CAAU;IAGvB,WAAW,CAAW;IAGtB,aAAa,CAAS;IAGtB,SAAS,CAAS;IAGlB,SAAS,CAAS;CACnB,CAAA;AA7BC;IAAC,IAAA,gCAAsB,GAAE;;6CACd;AAEX;IAAC,IAAA,gBAAM,GAAE;;oDACS;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;8BAChB,wBAAO;kDAAC;AAEjB;IAAC,IAAA,gBAAM,GAAE;;oDACS;AAElB;IAAC,IAAA,gBAAM,GAAE;;yDACc;AAEvB;IAAC,IAAA,gBAAM,GAAE;;wDACc;AAEvB;IAAC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,cAAc,EAAE,CAAC;;sDACX;AAEtB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACL;AAEtB;IAAC,IAAA,0BAAgB,GAAE;;oDACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;oDACD;AA7BP,iBAAiB;IAD7B,IAAA,gBAAM,GAAE;GACI,iBAAiB,CA8B7B;AA9BY,8CAAiB"}
|
|
@@ -1,27 +1,27 @@
|
|
|
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
|
-
commute_x: string;
|
|
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
|
+
commute_x: string;
|
|
26
|
+
};
|
|
27
27
|
//# sourceMappingURL=profile.entity.d.ts.map
|
|
@@ -1,99 +1,100 @@
|
|
|
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.ProfileApplicationType = exports.Profile = void 0;
|
|
13
|
-
const typeorm_1 = require("typeorm");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
15
|
-
let Profile =
|
|
16
|
-
id;
|
|
17
|
-
name;
|
|
18
|
-
application;
|
|
19
|
-
isAdmin;
|
|
20
|
-
isDefault;
|
|
21
|
-
description;
|
|
22
|
-
createdBy;
|
|
23
|
-
creator;
|
|
24
|
-
updatedBy;
|
|
25
|
-
updater;
|
|
26
|
-
updatedAt;
|
|
27
|
-
createdAt;
|
|
28
|
-
equal(data) {
|
|
29
|
-
if (data['name'] !== this.name)
|
|
30
|
-
return false;
|
|
31
|
-
if (data['description'] !== this.description)
|
|
32
|
-
return false;
|
|
33
|
-
return true;
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
38
|
-
__metadata("design:type", Number)
|
|
39
|
-
], Profile.prototype, "id", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, typeorm_1.Column)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], Profile.prototype, "name", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, typeorm_1.Column)(),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], Profile.prototype, "application", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
50
|
-
__metadata("design:type", Boolean)
|
|
51
|
-
], Profile.prototype, "isAdmin", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, typeorm_1.Column)({ default: false }),
|
|
54
|
-
__metadata("design:type", Boolean)
|
|
55
|
-
], Profile.prototype, "isDefault", void 0);
|
|
56
|
-
__decorate([
|
|
57
|
-
(0, typeorm_1.Column)(),
|
|
58
|
-
__metadata("design:type", String)
|
|
59
|
-
], Profile.prototype, "description", void 0);
|
|
60
|
-
__decorate([
|
|
61
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
-
__metadata("design:type", Number)
|
|
63
|
-
], Profile.prototype, "createdBy", void 0);
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
66
|
-
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
67
|
-
__metadata("design:type", user_entity_1.User)
|
|
68
|
-
], Profile.prototype, "creator", void 0);
|
|
69
|
-
__decorate([
|
|
70
|
-
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
|
-
__metadata("design:type", Number)
|
|
72
|
-
], Profile.prototype, "updatedBy", void 0);
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
75
|
-
(0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
|
|
76
|
-
__metadata("design:type", user_entity_1.User)
|
|
77
|
-
], Profile.prototype, "updater", void 0);
|
|
78
|
-
__decorate([
|
|
79
|
-
(0, typeorm_1.UpdateDateColumn)(),
|
|
80
|
-
__metadata("design:type", String)
|
|
81
|
-
], Profile.prototype, "updatedAt", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, typeorm_1.CreateDateColumn)(),
|
|
84
|
-
__metadata("design:type", String)
|
|
85
|
-
], Profile.prototype, "createdAt", void 0);
|
|
86
|
-
|
|
87
|
-
(0, typeorm_1.Entity)()
|
|
88
|
-
], Profile);
|
|
89
|
-
exports.
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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.ProfileApplicationType = exports.Profile = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
const user_entity_1 = require("./user.entity");
|
|
15
|
+
let Profile = class Profile {
|
|
16
|
+
id;
|
|
17
|
+
name;
|
|
18
|
+
application;
|
|
19
|
+
isAdmin;
|
|
20
|
+
isDefault;
|
|
21
|
+
description;
|
|
22
|
+
createdBy;
|
|
23
|
+
creator;
|
|
24
|
+
updatedBy;
|
|
25
|
+
updater;
|
|
26
|
+
updatedAt;
|
|
27
|
+
createdAt;
|
|
28
|
+
equal(data) {
|
|
29
|
+
if (data['name'] !== this.name)
|
|
30
|
+
return false;
|
|
31
|
+
if (data['description'] !== this.description)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
__decorate([
|
|
37
|
+
(0, typeorm_1.PrimaryGeneratedColumn)(),
|
|
38
|
+
__metadata("design:type", Number)
|
|
39
|
+
], Profile.prototype, "id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, typeorm_1.Column)(),
|
|
42
|
+
__metadata("design:type", String)
|
|
43
|
+
], Profile.prototype, "name", void 0);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, typeorm_1.Column)(),
|
|
46
|
+
__metadata("design:type", String)
|
|
47
|
+
], Profile.prototype, "application", void 0);
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
50
|
+
__metadata("design:type", Boolean)
|
|
51
|
+
], Profile.prototype, "isAdmin", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({ default: false }),
|
|
54
|
+
__metadata("design:type", Boolean)
|
|
55
|
+
], Profile.prototype, "isDefault", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, typeorm_1.Column)(),
|
|
58
|
+
__metadata("design:type", String)
|
|
59
|
+
], Profile.prototype, "description", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
62
|
+
__metadata("design:type", Number)
|
|
63
|
+
], Profile.prototype, "createdBy", void 0);
|
|
64
|
+
__decorate([
|
|
65
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
66
|
+
(0, typeorm_1.JoinColumn)({ name: 'created_by' }),
|
|
67
|
+
__metadata("design:type", user_entity_1.User)
|
|
68
|
+
], Profile.prototype, "creator", void 0);
|
|
69
|
+
__decorate([
|
|
70
|
+
(0, typeorm_1.Column)({ nullable: true }),
|
|
71
|
+
__metadata("design:type", Number)
|
|
72
|
+
], Profile.prototype, "updatedBy", void 0);
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, typeorm_1.ManyToOne)(() => user_entity_1.User),
|
|
75
|
+
(0, typeorm_1.JoinColumn)({ name: 'updated_by' }),
|
|
76
|
+
__metadata("design:type", user_entity_1.User)
|
|
77
|
+
], Profile.prototype, "updater", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.UpdateDateColumn)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], Profile.prototype, "updatedAt", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, typeorm_1.CreateDateColumn)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], Profile.prototype, "createdAt", void 0);
|
|
86
|
+
Profile = __decorate([
|
|
87
|
+
(0, typeorm_1.Entity)()
|
|
88
|
+
], Profile);
|
|
89
|
+
exports.Profile = Profile;
|
|
90
|
+
exports.ProfileApplicationType = {
|
|
91
|
+
square: 'square',
|
|
92
|
+
exams: 'exams',
|
|
93
|
+
payments: 'payments',
|
|
94
|
+
enroll_x: 'enroll_x',
|
|
95
|
+
hostels: 'hostels',
|
|
96
|
+
commute: 'commute',
|
|
97
|
+
hrms: 'hrms',
|
|
98
|
+
commute_x: 'commute_x',
|
|
99
|
+
};
|
|
99
100
|
//# sourceMappingURL=profile.entity.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAG9B,IAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"profile.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/profile.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAQiB;AACjB,+CAAqC;AAG9B,IAAM,OAAO,GAAb,MAAM,OAAO;IAElB,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,WAAW,CAAS;IAGpB,OAAO,CAAU;IAGjB,SAAS,CAAU;IAGnB,WAAW,CAAS;IAGpB,SAAS,CAAS;IAIlB,OAAO,CAAO;IAGd,SAAS,CAAS;IAIlB,OAAO,CAAO;IAGd,SAAS,CAAS;IAGlB,SAAS,CAAS;IAElB,KAAK,CAAC,IAAa;QACjB,IAAI,IAAI,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI;YAAE,OAAO,KAAK,CAAC;QAC7C,IAAI,IAAI,CAAC,aAAa,CAAC,KAAK,IAAI,CAAC,WAAW;YAAE,OAAO,KAAK,CAAC;QAC3D,OAAO,IAAI,CAAC;IACd,CAAC;CACF,CAAA;AA3CC;IAAC,IAAA,gCAAsB,GAAE;;mCACd;AAEX;IAAC,IAAA,gBAAM,GAAE;;qCACI;AAEb;IAAC,IAAA,gBAAM,GAAE;;4CACW;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;wCACV;AAEjB;IAAC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;0CACR;AAEnB;IAAC,IAAA,gBAAM,GAAE;;4CACW;AAEpB;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACrB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,kBAAI;wCAAC;AAEd;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACT;AAElB;IAAC,IAAA,mBAAS,EAAC,GAAG,EAAE,CAAC,kBAAI,CAAC;IACrB,IAAA,oBAAU,EAAC,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;8BAC1B,kBAAI;wCAAC;AAEd;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AArCP,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA4CnB;AA5CY,0BAAO;AA8CP,QAAA,sBAAsB,GAAG;IACpC,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;CACvB,CAAC"}
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
export declare enum Gender {
|
|
2
|
-
Male = "male",
|
|
3
|
-
Female = "female"
|
|
4
|
-
}
|
|
5
|
-
export declare class Student {
|
|
6
|
-
id: number;
|
|
7
|
-
rollNo: string;
|
|
8
|
-
fullName: string;
|
|
9
|
-
photoId: number;
|
|
10
|
-
courseId: number;
|
|
11
|
-
branchCode: string;
|
|
12
|
-
semNo: number;
|
|
13
|
-
batch: string;
|
|
14
|
-
programId: number;
|
|
15
|
-
mobile: string;
|
|
16
|
-
alternateMobile: string;
|
|
17
|
-
email: string;
|
|
18
|
-
address: string;
|
|
19
|
-
alternateEmail: string;
|
|
20
|
-
gender: string;
|
|
21
|
-
hasScholarship: boolean;
|
|
22
|
-
userId: number;
|
|
23
|
-
classroomId: number;
|
|
24
|
-
createdAt: string;
|
|
25
|
-
updatedAt: string;
|
|
26
|
-
}
|
|
1
|
+
export declare enum Gender {
|
|
2
|
+
Male = "male",
|
|
3
|
+
Female = "female"
|
|
4
|
+
}
|
|
5
|
+
export declare class Student {
|
|
6
|
+
id: number;
|
|
7
|
+
rollNo: string;
|
|
8
|
+
fullName: string;
|
|
9
|
+
photoId: number;
|
|
10
|
+
courseId: number;
|
|
11
|
+
branchCode: string;
|
|
12
|
+
semNo: number;
|
|
13
|
+
batch: string;
|
|
14
|
+
programId: number;
|
|
15
|
+
mobile: string;
|
|
16
|
+
alternateMobile: string;
|
|
17
|
+
email: string;
|
|
18
|
+
address: string;
|
|
19
|
+
alternateEmail: string;
|
|
20
|
+
gender: string;
|
|
21
|
+
hasScholarship: boolean;
|
|
22
|
+
userId: number;
|
|
23
|
+
classroomId: number;
|
|
24
|
+
createdAt: string;
|
|
25
|
+
updatedAt: string;
|
|
26
|
+
}
|
|
27
27
|
//# sourceMappingURL=student.entity.d.ts.map
|