@campxdev/server-shared 1.2.37 → 1.2.39
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 +37 -38
- 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 +142 -143
- 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 +36 -37
- 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 +28 -29
- 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 +111 -112
- 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 +160 -161
- 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 +69 -70
- 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 +98 -99
- 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 +123 -124
- 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 +135 -136
- 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 +156 -158
- package/dist/domain/schemas/global-users.schema.js.map +1 -1
- package/dist/domain/schemas/tenant.schema.d.ts +109 -106
- package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
- package/dist/domain/schemas/tenant.schema.js +349 -347
- 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 +26 -27
- 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 +1357 -1240
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.js +2470 -2263
- 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 +7698 -7464
- package/dist/permissions/permissions.d.ts.map +1 -1
- 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 +36 -37
- 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 +211 -212
- 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
package/dist/domain/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./db-connection.module"), exports);
|
|
18
|
-
__exportStar(require("./entities/evaluator.entity"), exports);
|
|
19
|
-
__exportStar(require("./entities/leads.entity"), exports);
|
|
20
|
-
__exportStar(require("./entities/profile-permission.entity"), exports);
|
|
21
|
-
__exportStar(require("./entities/profile.entity"), exports);
|
|
22
|
-
__exportStar(require("./entities/student.entity"), exports);
|
|
23
|
-
__exportStar(require("./entities/user.entity"), exports);
|
|
24
|
-
__exportStar(require("./schemas/global-users.schema"), exports);
|
|
25
|
-
__exportStar(require("./schemas/tenant.schema"), exports);
|
|
26
|
-
__exportStar(require("./shared-domain.module"), exports);
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./db-connection.module"), exports);
|
|
18
|
+
__exportStar(require("./entities/evaluator.entity"), exports);
|
|
19
|
+
__exportStar(require("./entities/leads.entity"), exports);
|
|
20
|
+
__exportStar(require("./entities/profile-permission.entity"), exports);
|
|
21
|
+
__exportStar(require("./entities/profile.entity"), exports);
|
|
22
|
+
__exportStar(require("./entities/student.entity"), exports);
|
|
23
|
+
__exportStar(require("./entities/user.entity"), exports);
|
|
24
|
+
__exportStar(require("./schemas/global-users.schema"), exports);
|
|
25
|
+
__exportStar(require("./schemas/tenant.schema"), exports);
|
|
26
|
+
__exportStar(require("./shared-domain.module"), exports);
|
|
27
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,61 +1,61 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Document, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
-
export declare const GlobalUserCName = "global_users";
|
|
27
|
-
export declare class StudentDetails extends Document {
|
|
28
|
-
studentAltMobile: string;
|
|
29
|
-
parentName: string;
|
|
30
|
-
parentMobile: string;
|
|
31
|
-
fatherName: string;
|
|
32
|
-
motherName: string;
|
|
33
|
-
address: string;
|
|
34
|
-
}
|
|
35
|
-
export declare class GlobalUser extends Document {
|
|
36
|
-
tenantId: string;
|
|
37
|
-
institutionIds: number[];
|
|
38
|
-
userId: number;
|
|
39
|
-
username: string;
|
|
40
|
-
email: string;
|
|
41
|
-
password: string;
|
|
42
|
-
fullName: string;
|
|
43
|
-
isActive: boolean;
|
|
44
|
-
isSuperUser: boolean;
|
|
45
|
-
isAdminUser: boolean;
|
|
46
|
-
type: string;
|
|
47
|
-
workPhoneNumber: string;
|
|
48
|
-
personalPhoneNumber: string;
|
|
49
|
-
personalEmail: string;
|
|
50
|
-
studentDetails: StudentDetails;
|
|
51
|
-
lastLoggedIn: Date;
|
|
52
|
-
departmentIds: string[];
|
|
53
|
-
createdBy: string;
|
|
54
|
-
updatedBy: string;
|
|
55
|
-
}
|
|
56
|
-
export declare const GlobalUserSchema: MongooseSchema<GlobalUser, import("mongoose").Model<GlobalUser, any, any, any, Document<unknown, any, GlobalUser> &
|
|
57
|
-
_id: import("mongoose").Types.ObjectId;
|
|
58
|
-
},
|
|
59
|
-
_id: import("mongoose").Types.ObjectId;
|
|
60
|
-
}
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
export declare const GlobalUserCName = "global_users";
|
|
27
|
+
export declare class StudentDetails extends Document {
|
|
28
|
+
studentAltMobile: string;
|
|
29
|
+
parentName: string;
|
|
30
|
+
parentMobile: string;
|
|
31
|
+
fatherName: string;
|
|
32
|
+
motherName: string;
|
|
33
|
+
address: string;
|
|
34
|
+
}
|
|
35
|
+
export declare class GlobalUser extends Document {
|
|
36
|
+
tenantId: string;
|
|
37
|
+
institutionIds: number[];
|
|
38
|
+
userId: number;
|
|
39
|
+
username: string;
|
|
40
|
+
email: string;
|
|
41
|
+
password: string;
|
|
42
|
+
fullName: string;
|
|
43
|
+
isActive: boolean;
|
|
44
|
+
isSuperUser: boolean;
|
|
45
|
+
isAdminUser: boolean;
|
|
46
|
+
type: string;
|
|
47
|
+
workPhoneNumber: string;
|
|
48
|
+
personalPhoneNumber: string;
|
|
49
|
+
personalEmail: string;
|
|
50
|
+
studentDetails: StudentDetails;
|
|
51
|
+
lastLoggedIn: Date;
|
|
52
|
+
departmentIds: string[];
|
|
53
|
+
createdBy: string;
|
|
54
|
+
updatedBy: string;
|
|
55
|
+
}
|
|
56
|
+
export declare const GlobalUserSchema: MongooseSchema<GlobalUser, import("mongoose").Model<GlobalUser, any, any, any, Document<unknown, any, GlobalUser> & GlobalUser & {
|
|
57
|
+
_id: import("mongoose").Types.ObjectId;
|
|
58
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GlobalUser, Document<unknown, {}, GlobalUser> & GlobalUser & {
|
|
59
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
}>;
|
|
61
61
|
//# sourceMappingURL=global-users.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-users.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/global-users.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAG9D,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,qBACa,cAAe,SAAQ,QAAQ;IAE1C,gBAAgB,EAAE,MAAM,CAAC;IAGzB,UAAU,EAAE,MAAM,CAAC;IAGnB,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,qBACa,UAAW,SAAQ,QAAQ;IAEtC,QAAQ,EAAE,MAAM,CAAC;IAGjB,cAAc,EAAE,MAAM,EAAE,CAAC;IAGzB,MAAM,EAAE,MAAM,CAAC;IAGf,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,OAAO,CAAC;IAGlB,WAAW,EAAE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EAAE,MAAM,CAAC;IAGxB,mBAAmB,EAAE,MAAM,CAAC;IAG5B,aAAa,EAAE,MAAM,CAAC;IAGtB,cAAc,EAAE,cAAc,CAAC;IAG/B,YAAY,EAAE,IAAI,CAAC;IAGnB,aAAa,EAAE,MAAM,EAAE,CAAC;IAGxB,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,gBAAgB;;;;EAA2C,CAAC"}
|
|
@@ -1,159 +1,157 @@
|
|
|
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.GlobalUserSchema = exports.GlobalUser = exports.StudentDetails = exports.GlobalUserCName = void 0;
|
|
13
|
-
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
-
const mongoose_2 = require("mongoose");
|
|
15
|
-
const utils_1 = require("../../utils");
|
|
16
|
-
exports.GlobalUserCName = 'global_users';
|
|
17
|
-
let StudentDetails = class StudentDetails extends mongoose_2.Document {
|
|
18
|
-
studentAltMobile;
|
|
19
|
-
parentName;
|
|
20
|
-
parentMobile;
|
|
21
|
-
fatherName;
|
|
22
|
-
motherName;
|
|
23
|
-
address;
|
|
24
|
-
};
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, mongoose_1.Prop)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], StudentDetails.prototype, "studentAltMobile", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, mongoose_1.Prop)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], StudentDetails.prototype, "parentName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, mongoose_1.Prop)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], StudentDetails.prototype, "parentMobile", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, mongoose_1.Prop)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], StudentDetails.prototype, "fatherName", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, mongoose_1.Prop)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], StudentDetails.prototype, "motherName", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, mongoose_1.Prop)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], StudentDetails.prototype, "address", void 0);
|
|
49
|
-
StudentDetails = __decorate([
|
|
50
|
-
(0, mongoose_1.Schema)({ id: false })
|
|
51
|
-
], StudentDetails);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
(
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
(
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
(
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
(
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
(
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
(
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
(
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
(
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
(
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
(
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
(
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
(
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
(
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
(
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
(
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
exports.
|
|
155
|
-
exports.GlobalUserSchema
|
|
156
|
-
exports.GlobalUserSchema.index({ tenantId: 1,
|
|
157
|
-
exports.GlobalUserSchema.index({ tenantId: 1, type: 1, email: 1 });
|
|
158
|
-
exports.GlobalUserSchema.index({ tenantId: 1, userId: 1 });
|
|
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.GlobalUserSchema = exports.GlobalUser = exports.StudentDetails = exports.GlobalUserCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
exports.GlobalUserCName = 'global_users';
|
|
17
|
+
let StudentDetails = exports.StudentDetails = class StudentDetails extends mongoose_2.Document {
|
|
18
|
+
studentAltMobile;
|
|
19
|
+
parentName;
|
|
20
|
+
parentMobile;
|
|
21
|
+
fatherName;
|
|
22
|
+
motherName;
|
|
23
|
+
address;
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], StudentDetails.prototype, "studentAltMobile", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StudentDetails.prototype, "parentName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], StudentDetails.prototype, "parentMobile", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], StudentDetails.prototype, "fatherName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], StudentDetails.prototype, "motherName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], StudentDetails.prototype, "address", void 0);
|
|
49
|
+
exports.StudentDetails = StudentDetails = __decorate([
|
|
50
|
+
(0, mongoose_1.Schema)({ id: false })
|
|
51
|
+
], StudentDetails);
|
|
52
|
+
const StudentDetailsSchema = mongoose_1.SchemaFactory.createForClass(StudentDetails);
|
|
53
|
+
let GlobalUser = exports.GlobalUser = class GlobalUser extends mongoose_2.Document {
|
|
54
|
+
tenantId;
|
|
55
|
+
institutionIds;
|
|
56
|
+
userId;
|
|
57
|
+
username;
|
|
58
|
+
email;
|
|
59
|
+
password;
|
|
60
|
+
fullName;
|
|
61
|
+
isActive;
|
|
62
|
+
isSuperUser;
|
|
63
|
+
isAdminUser;
|
|
64
|
+
type;
|
|
65
|
+
workPhoneNumber;
|
|
66
|
+
personalPhoneNumber;
|
|
67
|
+
personalEmail;
|
|
68
|
+
studentDetails;
|
|
69
|
+
lastLoggedIn;
|
|
70
|
+
departmentIds;
|
|
71
|
+
createdBy;
|
|
72
|
+
updatedBy;
|
|
73
|
+
};
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, index: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], GlobalUser.prototype, "tenantId", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, mongoose_1.Prop)({ default: [] }),
|
|
80
|
+
__metadata("design:type", Array)
|
|
81
|
+
], GlobalUser.prototype, "institutionIds", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, mongoose_1.Prop)(),
|
|
84
|
+
__metadata("design:type", Number)
|
|
85
|
+
], GlobalUser.prototype, "userId", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], GlobalUser.prototype, "username", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], GlobalUser.prototype, "email", void 0);
|
|
94
|
+
__decorate([
|
|
95
|
+
(0, mongoose_1.Prop)(),
|
|
96
|
+
__metadata("design:type", String)
|
|
97
|
+
], GlobalUser.prototype, "password", void 0);
|
|
98
|
+
__decorate([
|
|
99
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
100
|
+
__metadata("design:type", String)
|
|
101
|
+
], GlobalUser.prototype, "fullName", void 0);
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, mongoose_1.Prop)({ default: true }),
|
|
104
|
+
__metadata("design:type", Boolean)
|
|
105
|
+
], GlobalUser.prototype, "isActive", void 0);
|
|
106
|
+
__decorate([
|
|
107
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
108
|
+
__metadata("design:type", Boolean)
|
|
109
|
+
], GlobalUser.prototype, "isSuperUser", void 0);
|
|
110
|
+
__decorate([
|
|
111
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
112
|
+
__metadata("design:type", Boolean)
|
|
113
|
+
], GlobalUser.prototype, "isAdminUser", void 0);
|
|
114
|
+
__decorate([
|
|
115
|
+
(0, mongoose_1.Prop)({ default: utils_1.userType.staff_user }),
|
|
116
|
+
__metadata("design:type", String)
|
|
117
|
+
], GlobalUser.prototype, "type", void 0);
|
|
118
|
+
__decorate([
|
|
119
|
+
(0, mongoose_1.Prop)(),
|
|
120
|
+
__metadata("design:type", String)
|
|
121
|
+
], GlobalUser.prototype, "workPhoneNumber", void 0);
|
|
122
|
+
__decorate([
|
|
123
|
+
(0, mongoose_1.Prop)(),
|
|
124
|
+
__metadata("design:type", String)
|
|
125
|
+
], GlobalUser.prototype, "personalPhoneNumber", void 0);
|
|
126
|
+
__decorate([
|
|
127
|
+
(0, mongoose_1.Prop)(),
|
|
128
|
+
__metadata("design:type", String)
|
|
129
|
+
], GlobalUser.prototype, "personalEmail", void 0);
|
|
130
|
+
__decorate([
|
|
131
|
+
(0, mongoose_1.Prop)({ type: StudentDetailsSchema }),
|
|
132
|
+
__metadata("design:type", StudentDetails)
|
|
133
|
+
], GlobalUser.prototype, "studentDetails", void 0);
|
|
134
|
+
__decorate([
|
|
135
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
136
|
+
__metadata("design:type", Date)
|
|
137
|
+
], GlobalUser.prototype, "lastLoggedIn", void 0);
|
|
138
|
+
__decorate([
|
|
139
|
+
(0, mongoose_1.Prop)({ type: [mongoose_2.Schema.Types.ObjectId], default: [] }),
|
|
140
|
+
__metadata("design:type", Array)
|
|
141
|
+
], GlobalUser.prototype, "departmentIds", void 0);
|
|
142
|
+
__decorate([
|
|
143
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
144
|
+
__metadata("design:type", String)
|
|
145
|
+
], GlobalUser.prototype, "createdBy", void 0);
|
|
146
|
+
__decorate([
|
|
147
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
148
|
+
__metadata("design:type", String)
|
|
149
|
+
], GlobalUser.prototype, "updatedBy", void 0);
|
|
150
|
+
exports.GlobalUser = GlobalUser = __decorate([
|
|
151
|
+
(0, mongoose_1.Schema)({ timestamps: true, id: true, collection: exports.GlobalUserCName })
|
|
152
|
+
], GlobalUser);
|
|
153
|
+
exports.GlobalUserSchema = mongoose_1.SchemaFactory.createForClass(GlobalUser);
|
|
154
|
+
exports.GlobalUserSchema.index({ tenantId: 1, type: 1, username: 1 });
|
|
155
|
+
exports.GlobalUserSchema.index({ tenantId: 1, type: 1, email: 1 });
|
|
156
|
+
exports.GlobalUserSchema.index({ tenantId: 1, userId: 1 });
|
|
159
157
|
//# sourceMappingURL=global-users.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-users.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/global-users.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA8D;AAC9D,uCAAuC;AAE1B,QAAA,eAAe,GAAG,cAAc,CAAC;AAGvC,IAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"global-users.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/global-users.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAA8D;AAC9D,uCAAuC;AAE1B,QAAA,eAAe,GAAG,cAAc,CAAC;AAGvC,IAAM,cAAc,4BAApB,MAAM,cAAe,SAAQ,mBAAQ;IAE1C,gBAAgB,CAAS;IAGzB,UAAU,CAAS;IAGnB,YAAY,CAAS;IAGrB,UAAU,CAAS;IAGnB,UAAU,CAAS;IAGnB,OAAO,CAAS;CACjB,CAAA;AAhBC;IADC,IAAA,eAAI,GAAE;;wDACkB;AAGzB;IADC,IAAA,eAAI,GAAE;;kDACY;AAGnB;IADC,IAAA,eAAI,GAAE;;oDACc;AAGrB;IADC,IAAA,eAAI,GAAE;;kDACY;AAGnB;IADC,IAAA,eAAI,GAAE;;kDACY;AAGnB;IADC,IAAA,eAAI,GAAE;;+CACS;yBAjBL,cAAc;IAD1B,IAAA,iBAAM,EAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC;GACT,cAAc,CAkB1B;AACD,MAAM,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;AAGnE,IAAM,UAAU,wBAAhB,MAAM,UAAW,SAAQ,mBAAQ;IAEtC,QAAQ,CAAS;IAGjB,cAAc,CAAW;IAGzB,MAAM,CAAS;IAGf,QAAQ,CAAS;IAGjB,KAAK,CAAS;IAGd,QAAQ,CAAS;IAGjB,QAAQ,CAAS;IAGjB,QAAQ,CAAU;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