@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.
Files changed (98) hide show
  1. package/dist/common/config/mongo.config.d.ts +3 -3
  2. package/dist/common/config/mongo.config.js +23 -23
  3. package/dist/common/decorators/request.decorators.d.ts +5 -5
  4. package/dist/common/decorators/request.decorators.js +36 -36
  5. package/dist/common/decorators/time-validation.decorator.d.ts +2 -2
  6. package/dist/common/decorators/time-validation.decorator.js +26 -26
  7. package/dist/common/filters/unhandled-exception.filter.d.ts +4 -4
  8. package/dist/common/filters/unhandled-exception.filter.js +38 -37
  9. package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
  10. package/dist/common/guards/guard.d.ts +8 -8
  11. package/dist/common/guards/guard.js +24 -24
  12. package/dist/common/index.d.ts +10 -10
  13. package/dist/common/index.js +26 -26
  14. package/dist/common/interceptors/request.interceptor.d.ts +20 -20
  15. package/dist/common/interceptors/request.interceptor.js +143 -142
  16. package/dist/common/interceptors/request.interceptor.js.map +1 -1
  17. package/dist/common/interfaces/context.interface.d.ts +125 -125
  18. package/dist/common/interfaces/context.interface.js +2 -2
  19. package/dist/common/store/request-store.d.ts +44 -44
  20. package/dist/common/store/request-store.js +166 -166
  21. package/dist/common/store/store-config.d.ts +6 -6
  22. package/dist/common/store/store-config.js +23 -23
  23. package/dist/common/store/store.interceptor.d.ts +5 -5
  24. package/dist/common/store/store.interceptor.js +37 -36
  25. package/dist/common/store/store.interceptor.js.map +1 -1
  26. package/dist/domain/db-connection.module.d.ts +3 -3
  27. package/dist/domain/db-connection.module.js +29 -28
  28. package/dist/domain/db-connection.module.js.map +1 -1
  29. package/dist/domain/entities/evaluator.entity.d.ts +17 -17
  30. package/dist/domain/entities/evaluator.entity.js +112 -111
  31. package/dist/domain/entities/evaluator.entity.js.map +1 -1
  32. package/dist/domain/entities/leads.entity.d.ts +26 -26
  33. package/dist/domain/entities/leads.entity.js +161 -160
  34. package/dist/domain/entities/leads.entity.js.map +1 -1
  35. package/dist/domain/entities/profile-permission.entity.d.ts +13 -13
  36. package/dist/domain/entities/profile-permission.entity.js +70 -69
  37. package/dist/domain/entities/profile-permission.entity.js.map +1 -1
  38. package/dist/domain/entities/profile.entity.d.ts +26 -26
  39. package/dist/domain/entities/profile.entity.js +99 -98
  40. package/dist/domain/entities/profile.entity.js.map +1 -1
  41. package/dist/domain/entities/student.entity.d.ts +26 -26
  42. package/dist/domain/entities/student.entity.js +124 -123
  43. package/dist/domain/entities/student.entity.js.map +1 -1
  44. package/dist/domain/entities/user.entity.d.ts +20 -20
  45. package/dist/domain/entities/user.entity.js +136 -135
  46. package/dist/domain/entities/user.entity.js.map +1 -1
  47. package/dist/domain/index.d.ts +10 -10
  48. package/dist/domain/index.js +26 -26
  49. package/dist/domain/schemas/global-users.schema.d.ts +60 -60
  50. package/dist/domain/schemas/global-users.schema.d.ts.map +1 -1
  51. package/dist/domain/schemas/global-users.schema.js +158 -156
  52. package/dist/domain/schemas/global-users.schema.js.map +1 -1
  53. package/dist/domain/schemas/tenant.schema.d.ts +106 -106
  54. package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
  55. package/dist/domain/schemas/tenant.schema.js +347 -338
  56. package/dist/domain/schemas/tenant.schema.js.map +1 -1
  57. package/dist/domain/shared-domain.module.d.ts +2 -2
  58. package/dist/domain/shared-domain.module.js +27 -26
  59. package/dist/domain/shared-domain.module.js.map +1 -1
  60. package/dist/index.d.ts +5 -5
  61. package/dist/index.js +21 -21
  62. package/dist/permissions/app-permissions/commute-x-permissions.d.ts +118 -118
  63. package/dist/permissions/app-permissions/commute-x-permissions.js +128 -128
  64. package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +498 -498
  65. package/dist/permissions/app-permissions/enroll-x-permissions.js +816 -816
  66. package/dist/permissions/app-permissions/exams-permissions.d.ts +745 -745
  67. package/dist/permissions/app-permissions/exams-permissions.js +1218 -1218
  68. package/dist/permissions/app-permissions/hostels-permissions.d.ts +424 -424
  69. package/dist/permissions/app-permissions/hostels-permissions.js +537 -537
  70. package/dist/permissions/app-permissions/payments-permissions.d.ts +364 -364
  71. package/dist/permissions/app-permissions/payments-permissions.js +486 -486
  72. package/dist/permissions/app-permissions/people-x-permissions.d.ts +346 -346
  73. package/dist/permissions/app-permissions/people-x-permissions.js +356 -356
  74. package/dist/permissions/app-permissions/square-permissions.d.ts +1219 -1219
  75. package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -1
  76. package/dist/permissions/app-permissions/square-permissions.js +2235 -2237
  77. package/dist/permissions/app-permissions/square-permissions.js.map +1 -1
  78. package/dist/permissions/check-permission.guard.d.ts +9 -9
  79. package/dist/permissions/check-permission.guard.js +60 -60
  80. package/dist/permissions/index.d.ts +9 -9
  81. package/dist/permissions/index.js +32 -32
  82. package/dist/permissions/permissions.d.ts +7422 -7422
  83. package/dist/permissions/permissions.js +122 -122
  84. package/dist/shared-module/index.d.ts +2 -2
  85. package/dist/shared-module/index.js +7 -7
  86. package/dist/shared-module/shared.module.d.ts +10 -10
  87. package/dist/shared-module/shared.module.js +37 -36
  88. package/dist/shared-module/shared.module.js.map +1 -1
  89. package/dist/shared-module/shared.service.d.ts +67 -67
  90. package/dist/shared-module/shared.service.js +212 -211
  91. package/dist/shared-module/shared.service.js.map +1 -1
  92. package/dist/utils/constants.d.ts +25 -25
  93. package/dist/utils/constants.js +28 -28
  94. package/dist/utils/index.d.ts +2 -2
  95. package/dist/utils/index.js +18 -18
  96. package/dist/utils/utils.d.ts +26 -26
  97. package/dist/utils/utils.js +250 -250
  98. package/package.json +46 -46
@@ -1,124 +1,125 @@
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 = Gender = {}));
19
- let Student = exports.Student = class Student {
20
- id;
21
- rollNo;
22
- fullName;
23
- photoId;
24
- courseId;
25
- branchCode;
26
- semNo;
27
- batch;
28
- programId;
29
- mobile;
30
- alternateMobile;
31
- email;
32
- address;
33
- alternateEmail;
34
- gender;
35
- hasScholarship;
36
- userId;
37
- classroomId;
38
- createdAt;
39
- updatedAt;
40
- };
41
- __decorate([
42
- (0, typeorm_1.PrimaryGeneratedColumn)(),
43
- __metadata("design:type", Number)
44
- ], Student.prototype, "id", void 0);
45
- __decorate([
46
- (0, typeorm_1.Column)(),
47
- __metadata("design:type", String)
48
- ], Student.prototype, "rollNo", void 0);
49
- __decorate([
50
- (0, typeorm_1.Column)({ nullable: true }),
51
- __metadata("design:type", String)
52
- ], Student.prototype, "fullName", void 0);
53
- __decorate([
54
- (0, typeorm_1.Column)(),
55
- __metadata("design:type", Number)
56
- ], Student.prototype, "photoId", void 0);
57
- __decorate([
58
- (0, typeorm_1.Column)({ nullable: true }),
59
- __metadata("design:type", Number)
60
- ], Student.prototype, "courseId", void 0);
61
- __decorate([
62
- (0, typeorm_1.Column)({ nullable: true }),
63
- __metadata("design:type", String)
64
- ], Student.prototype, "branchCode", void 0);
65
- __decorate([
66
- (0, typeorm_1.Column)(),
67
- __metadata("design:type", Number)
68
- ], Student.prototype, "semNo", void 0);
69
- __decorate([
70
- (0, typeorm_1.Column)({ nullable: true }),
71
- __metadata("design:type", String)
72
- ], Student.prototype, "batch", void 0);
73
- __decorate([
74
- (0, typeorm_1.Column)(),
75
- __metadata("design:type", Number)
76
- ], Student.prototype, "programId", void 0);
77
- __decorate([
78
- (0, typeorm_1.Column)({ nullable: true }),
79
- __metadata("design:type", String)
80
- ], Student.prototype, "mobile", void 0);
81
- __decorate([
82
- (0, typeorm_1.Column)({ nullable: true }),
83
- __metadata("design:type", String)
84
- ], Student.prototype, "alternateMobile", void 0);
85
- __decorate([
86
- (0, typeorm_1.Column)({ nullable: true }),
87
- __metadata("design:type", String)
88
- ], Student.prototype, "email", void 0);
89
- __decorate([
90
- (0, typeorm_1.Column)(),
91
- __metadata("design:type", String)
92
- ], Student.prototype, "address", void 0);
93
- __decorate([
94
- (0, typeorm_1.Column)({ nullable: true }),
95
- __metadata("design:type", String)
96
- ], Student.prototype, "alternateEmail", void 0);
97
- __decorate([
98
- (0, typeorm_1.Column)(),
99
- __metadata("design:type", String)
100
- ], Student.prototype, "gender", void 0);
101
- __decorate([
102
- (0, typeorm_1.Column)({ nullable: true }),
103
- __metadata("design:type", Boolean)
104
- ], Student.prototype, "hasScholarship", void 0);
105
- __decorate([
106
- (0, typeorm_1.Column)({ nullable: true }),
107
- __metadata("design:type", Number)
108
- ], Student.prototype, "userId", void 0);
109
- __decorate([
110
- (0, typeorm_1.Column)(),
111
- __metadata("design:type", Number)
112
- ], Student.prototype, "classroomId", void 0);
113
- __decorate([
114
- (0, typeorm_1.CreateDateColumn)(),
115
- __metadata("design:type", String)
116
- ], Student.prototype, "createdAt", void 0);
117
- __decorate([
118
- (0, typeorm_1.UpdateDateColumn)(),
119
- __metadata("design:type", String)
120
- ], Student.prototype, "updatedAt", void 0);
121
- exports.Student = Student = __decorate([
122
- (0, typeorm_1.Entity)()
123
- ], Student);
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
+ rollNo;
22
+ fullName;
23
+ photoId;
24
+ courseId;
25
+ branchCode;
26
+ semNo;
27
+ batch;
28
+ programId;
29
+ mobile;
30
+ alternateMobile;
31
+ email;
32
+ address;
33
+ alternateEmail;
34
+ gender;
35
+ hasScholarship;
36
+ userId;
37
+ classroomId;
38
+ createdAt;
39
+ updatedAt;
40
+ };
41
+ __decorate([
42
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
43
+ __metadata("design:type", Number)
44
+ ], Student.prototype, "id", void 0);
45
+ __decorate([
46
+ (0, typeorm_1.Column)(),
47
+ __metadata("design:type", String)
48
+ ], Student.prototype, "rollNo", void 0);
49
+ __decorate([
50
+ (0, typeorm_1.Column)({ nullable: true }),
51
+ __metadata("design:type", String)
52
+ ], Student.prototype, "fullName", void 0);
53
+ __decorate([
54
+ (0, typeorm_1.Column)(),
55
+ __metadata("design:type", Number)
56
+ ], Student.prototype, "photoId", void 0);
57
+ __decorate([
58
+ (0, typeorm_1.Column)({ nullable: true }),
59
+ __metadata("design:type", Number)
60
+ ], Student.prototype, "courseId", void 0);
61
+ __decorate([
62
+ (0, typeorm_1.Column)({ nullable: true }),
63
+ __metadata("design:type", String)
64
+ ], Student.prototype, "branchCode", void 0);
65
+ __decorate([
66
+ (0, typeorm_1.Column)(),
67
+ __metadata("design:type", Number)
68
+ ], Student.prototype, "semNo", void 0);
69
+ __decorate([
70
+ (0, typeorm_1.Column)({ nullable: true }),
71
+ __metadata("design:type", String)
72
+ ], Student.prototype, "batch", void 0);
73
+ __decorate([
74
+ (0, typeorm_1.Column)(),
75
+ __metadata("design:type", Number)
76
+ ], Student.prototype, "programId", void 0);
77
+ __decorate([
78
+ (0, typeorm_1.Column)({ nullable: true }),
79
+ __metadata("design:type", String)
80
+ ], Student.prototype, "mobile", void 0);
81
+ __decorate([
82
+ (0, typeorm_1.Column)({ nullable: true }),
83
+ __metadata("design:type", String)
84
+ ], Student.prototype, "alternateMobile", void 0);
85
+ __decorate([
86
+ (0, typeorm_1.Column)({ nullable: true }),
87
+ __metadata("design:type", String)
88
+ ], Student.prototype, "email", void 0);
89
+ __decorate([
90
+ (0, typeorm_1.Column)(),
91
+ __metadata("design:type", String)
92
+ ], Student.prototype, "address", void 0);
93
+ __decorate([
94
+ (0, typeorm_1.Column)({ nullable: true }),
95
+ __metadata("design:type", String)
96
+ ], Student.prototype, "alternateEmail", void 0);
97
+ __decorate([
98
+ (0, typeorm_1.Column)(),
99
+ __metadata("design:type", String)
100
+ ], Student.prototype, "gender", void 0);
101
+ __decorate([
102
+ (0, typeorm_1.Column)({ nullable: true }),
103
+ __metadata("design:type", Boolean)
104
+ ], Student.prototype, "hasScholarship", void 0);
105
+ __decorate([
106
+ (0, typeorm_1.Column)({ nullable: true }),
107
+ __metadata("design:type", Number)
108
+ ], Student.prototype, "userId", void 0);
109
+ __decorate([
110
+ (0, typeorm_1.Column)(),
111
+ __metadata("design:type", Number)
112
+ ], Student.prototype, "classroomId", void 0);
113
+ __decorate([
114
+ (0, typeorm_1.CreateDateColumn)(),
115
+ __metadata("design:type", String)
116
+ ], Student.prototype, "createdAt", void 0);
117
+ __decorate([
118
+ (0, typeorm_1.UpdateDateColumn)(),
119
+ __metadata("design:type", String)
120
+ ], Student.prototype, "updatedAt", void 0);
121
+ Student = __decorate([
122
+ (0, typeorm_1.Entity)()
123
+ ], Student);
124
+ exports.Student = Student;
124
125
  //# sourceMappingURL=student.entity.js.map
@@ -1 +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,sBAAN,MAAM,QAGjB;AAGM,IAAM,OAAO,qBAAb,MAAM,OAAO;IAElB,EAAE,CAAS;IAGX,MAAM,CAAS;IAGf,QAAQ,CAAS;IAGjB,OAAO,CAAS;IAGhB,QAAQ,CAAS;IAGjB,UAAU,CAAS;IAGnB,KAAK,CAAS;IAGd,KAAK,CAAS;IAGd,SAAS,CAAS;IAGlB,MAAM,CAAS;IAGf,eAAe,CAAS;IAGxB,KAAK,CAAS;IAGd,OAAO,CAAS;IAGhB,cAAc,CAAS;IAGvB,MAAM,CAAS;IAGf,cAAc,CAAU;IAGxB,MAAM,CAAS;IAGf,WAAW,CAAS;IAGpB,SAAS,CAAS;IAGlB,SAAS,CAAS;CACnB,CAAA;AA1DC;IADC,IAAA,gCAAsB,GAAE;;mCACd;AAGX;IADC,IAAA,gBAAM,GAAE;;uCACM;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAGjB;IADC,IAAA,gBAAM,GAAE;;wCACO;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACV;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACR;AAGnB;IADC,IAAA,gBAAM,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B;IAAC,IAAA,gBAAM,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACZ;AAEf;IAAC,IAAA,gBAAM,GAAE;;4CACW;AAEpB;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;0CACD;AA3DP,OAAO;IADnB,IAAA,gBAAM,GAAE;GACI,OAAO,CA4DnB;AA5DY,0BAAO"}
@@ -1,21 +1,21 @@
1
- import { Profile } from './profile.entity';
2
- export declare class User {
3
- id: number;
4
- type: string;
5
- fullName: string;
6
- username: string;
7
- email: string;
8
- mobile: string;
9
- password: string;
10
- isActive: boolean;
11
- isSuperuser: boolean;
12
- roleId: number;
13
- departmentId: number;
14
- pictureId: number;
15
- profiles: Profile[];
16
- createdAt: string;
17
- updatedAt: string;
18
- verifyPassword(plainTextPassword: string): Promise<boolean>;
19
- hashPassword(): Promise<void>;
20
- }
1
+ import { Profile } from './profile.entity';
2
+ export declare class User {
3
+ id: number;
4
+ type: string;
5
+ fullName: string;
6
+ username: string;
7
+ email: string;
8
+ mobile: string;
9
+ password: string;
10
+ isActive: boolean;
11
+ isSuperuser: boolean;
12
+ roleId: number;
13
+ departmentId: number;
14
+ pictureId: number;
15
+ profiles: Profile[];
16
+ createdAt: string;
17
+ updatedAt: string;
18
+ verifyPassword(plainTextPassword: string): Promise<boolean>;
19
+ hashPassword(): Promise<void>;
20
+ }
21
21
  //# sourceMappingURL=user.entity.d.ts.map
@@ -1,136 +1,137 @@
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.User = void 0;
36
- const bcrypt = __importStar(require("bcrypt"));
37
- const typeorm_1 = require("typeorm");
38
- const profile_entity_1 = require("./profile.entity");
39
- let User = exports.User = class User {
40
- id;
41
- type;
42
- fullName;
43
- username;
44
- email;
45
- mobile;
46
- password;
47
- isActive;
48
- isSuperuser;
49
- roleId;
50
- departmentId;
51
- pictureId;
52
- profiles;
53
- createdAt;
54
- updatedAt;
55
- async verifyPassword(plainTextPassword) {
56
- return bcrypt.compare(plainTextPassword, this.password);
57
- }
58
- async hashPassword() {
59
- this.password = await bcrypt.hash(this.password, 10);
60
- }
61
- };
62
- __decorate([
63
- (0, typeorm_1.PrimaryGeneratedColumn)(),
64
- __metadata("design:type", Number)
65
- ], User.prototype, "id", void 0);
66
- __decorate([
67
- (0, typeorm_1.Column)(),
68
- __metadata("design:type", String)
69
- ], User.prototype, "type", void 0);
70
- __decorate([
71
- (0, typeorm_1.Column)(),
72
- __metadata("design:type", String)
73
- ], User.prototype, "fullName", void 0);
74
- __decorate([
75
- (0, typeorm_1.Column)(),
76
- __metadata("design:type", String)
77
- ], User.prototype, "username", void 0);
78
- __decorate([
79
- (0, typeorm_1.Column)(),
80
- __metadata("design:type", String)
81
- ], User.prototype, "email", void 0);
82
- __decorate([
83
- (0, typeorm_1.Column)(),
84
- __metadata("design:type", String)
85
- ], User.prototype, "mobile", void 0);
86
- __decorate([
87
- (0, typeorm_1.Column)(),
88
- __metadata("design:type", String)
89
- ], User.prototype, "password", void 0);
90
- __decorate([
91
- (0, typeorm_1.Column)({ default: true }),
92
- __metadata("design:type", Boolean)
93
- ], User.prototype, "isActive", void 0);
94
- __decorate([
95
- (0, typeorm_1.Column)({ default: false }),
96
- __metadata("design:type", Boolean)
97
- ], User.prototype, "isSuperuser", void 0);
98
- __decorate([
99
- (0, typeorm_1.Column)(),
100
- __metadata("design:type", Number)
101
- ], User.prototype, "roleId", void 0);
102
- __decorate([
103
- (0, typeorm_1.Column)(),
104
- __metadata("design:type", Number)
105
- ], User.prototype, "departmentId", void 0);
106
- __decorate([
107
- (0, typeorm_1.Column)(),
108
- __metadata("design:type", Number)
109
- ], User.prototype, "pictureId", void 0);
110
- __decorate([
111
- (0, typeorm_1.ManyToMany)(() => profile_entity_1.Profile),
112
- (0, typeorm_1.JoinTable)({
113
- name: 'user_profiles',
114
- joinColumn: { name: 'user_id' },
115
- inverseJoinColumn: { name: 'profile_id' },
116
- }),
117
- __metadata("design:type", Array)
118
- ], User.prototype, "profiles", void 0);
119
- __decorate([
120
- (0, typeorm_1.CreateDateColumn)(),
121
- __metadata("design:type", String)
122
- ], User.prototype, "createdAt", void 0);
123
- __decorate([
124
- (0, typeorm_1.UpdateDateColumn)(),
125
- __metadata("design:type", String)
126
- ], User.prototype, "updatedAt", void 0);
127
- __decorate([
128
- (0, typeorm_1.BeforeInsert)(),
129
- __metadata("design:type", Function),
130
- __metadata("design:paramtypes", []),
131
- __metadata("design:returntype", Promise)
132
- ], User.prototype, "hashPassword", null);
133
- exports.User = User = __decorate([
134
- (0, typeorm_1.Entity)()
135
- ], User);
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.User = void 0;
36
+ const bcrypt = __importStar(require("bcrypt"));
37
+ const typeorm_1 = require("typeorm");
38
+ const profile_entity_1 = require("./profile.entity");
39
+ let User = class User {
40
+ id;
41
+ type;
42
+ fullName;
43
+ username;
44
+ email;
45
+ mobile;
46
+ password;
47
+ isActive;
48
+ isSuperuser;
49
+ roleId;
50
+ departmentId;
51
+ pictureId;
52
+ profiles;
53
+ createdAt;
54
+ updatedAt;
55
+ async verifyPassword(plainTextPassword) {
56
+ return bcrypt.compare(plainTextPassword, this.password);
57
+ }
58
+ async hashPassword() {
59
+ this.password = await bcrypt.hash(this.password, 10);
60
+ }
61
+ };
62
+ __decorate([
63
+ (0, typeorm_1.PrimaryGeneratedColumn)(),
64
+ __metadata("design:type", Number)
65
+ ], User.prototype, "id", void 0);
66
+ __decorate([
67
+ (0, typeorm_1.Column)(),
68
+ __metadata("design:type", String)
69
+ ], User.prototype, "type", void 0);
70
+ __decorate([
71
+ (0, typeorm_1.Column)(),
72
+ __metadata("design:type", String)
73
+ ], User.prototype, "fullName", void 0);
74
+ __decorate([
75
+ (0, typeorm_1.Column)(),
76
+ __metadata("design:type", String)
77
+ ], User.prototype, "username", void 0);
78
+ __decorate([
79
+ (0, typeorm_1.Column)(),
80
+ __metadata("design:type", String)
81
+ ], User.prototype, "email", void 0);
82
+ __decorate([
83
+ (0, typeorm_1.Column)(),
84
+ __metadata("design:type", String)
85
+ ], User.prototype, "mobile", void 0);
86
+ __decorate([
87
+ (0, typeorm_1.Column)(),
88
+ __metadata("design:type", String)
89
+ ], User.prototype, "password", void 0);
90
+ __decorate([
91
+ (0, typeorm_1.Column)({ default: true }),
92
+ __metadata("design:type", Boolean)
93
+ ], User.prototype, "isActive", void 0);
94
+ __decorate([
95
+ (0, typeorm_1.Column)({ default: false }),
96
+ __metadata("design:type", Boolean)
97
+ ], User.prototype, "isSuperuser", void 0);
98
+ __decorate([
99
+ (0, typeorm_1.Column)(),
100
+ __metadata("design:type", Number)
101
+ ], User.prototype, "roleId", void 0);
102
+ __decorate([
103
+ (0, typeorm_1.Column)(),
104
+ __metadata("design:type", Number)
105
+ ], User.prototype, "departmentId", void 0);
106
+ __decorate([
107
+ (0, typeorm_1.Column)(),
108
+ __metadata("design:type", Number)
109
+ ], User.prototype, "pictureId", void 0);
110
+ __decorate([
111
+ (0, typeorm_1.ManyToMany)(() => profile_entity_1.Profile),
112
+ (0, typeorm_1.JoinTable)({
113
+ name: 'user_profiles',
114
+ joinColumn: { name: 'user_id' },
115
+ inverseJoinColumn: { name: 'profile_id' },
116
+ }),
117
+ __metadata("design:type", Array)
118
+ ], User.prototype, "profiles", void 0);
119
+ __decorate([
120
+ (0, typeorm_1.CreateDateColumn)(),
121
+ __metadata("design:type", String)
122
+ ], User.prototype, "createdAt", void 0);
123
+ __decorate([
124
+ (0, typeorm_1.UpdateDateColumn)(),
125
+ __metadata("design:type", String)
126
+ ], User.prototype, "updatedAt", void 0);
127
+ __decorate([
128
+ (0, typeorm_1.BeforeInsert)(),
129
+ __metadata("design:type", Function),
130
+ __metadata("design:paramtypes", []),
131
+ __metadata("design:returntype", Promise)
132
+ ], User.prototype, "hashPassword", null);
133
+ User = __decorate([
134
+ (0, typeorm_1.Entity)()
135
+ ], User);
136
+ exports.User = User;
136
137
  //# sourceMappingURL=user.entity.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../../src/domain/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAiC;AACjC,qCASiB;AACjB,qDAA2C;AAGpC,IAAM,IAAI,kBAAV,MAAM,IAAI;IAEf,EAAE,CAAS;IAGX,IAAI,CAAS;IAGb,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,MAAM,CAAS;IAGf,QAAQ,CAAS;IAGjB,QAA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M,EAAC,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;;sCACR;AAElB;IAAC,IAAA,gBAAM,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;yCACN;AAErB;IAAC,IAAA,gBAAM,GAAE;;oCACM;AAEf;IAAC,IAAA,gBAAM,GAAE;;0CACY;AAErB;IAAC,IAAA,gBAAM,GAAE;;uCACS;AAElB;IAAC,IAAA,oBAAU,EAAC,GAAG,EAAE,CAAC,wBAAO,CAAC;IACzB,IAAA,mBAAS,EAAC;QACT,IAAI,EAAE,eAAe;QACrB,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;QAC/B,iBAAiB,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KAC1C,CAAC;;sCACkB;AAEpB;IAAC,IAAA,0BAAgB,GAAE;;uCACD;AAElB;IAAC,IAAA,0BAAgB,GAAE;;uCACD;AAOZ;IADL,IAAA,sBAAY,GAAE;;;;wCAGd;AA1DU,IAAI;IADhB,IAAA,gBAAM,GAAE;GACI,IAAI,CA2DhB;AA3DY,oBAAI"}
@@ -1,11 +1,11 @@
1
- export * from './db-connection.module';
2
- export * from './entities/evaluator.entity';
3
- export * from './entities/leads.entity';
4
- export * from './entities/profile-permission.entity';
5
- export * from './entities/profile.entity';
6
- export * from './entities/student.entity';
7
- export * from './entities/user.entity';
8
- export * from './schemas/global-users.schema';
9
- export * from './schemas/tenant.schema';
10
- export * from './shared-domain.module';
1
+ export * from './db-connection.module';
2
+ export * from './entities/evaluator.entity';
3
+ export * from './entities/leads.entity';
4
+ export * from './entities/profile-permission.entity';
5
+ export * from './entities/profile.entity';
6
+ export * from './entities/student.entity';
7
+ export * from './entities/user.entity';
8
+ export * from './schemas/global-users.schema';
9
+ export * from './schemas/tenant.schema';
10
+ export * from './shared-domain.module';
11
11
  //# sourceMappingURL=index.d.ts.map