@campxdev/server-shared 1.5.39 → 1.6.0
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/index.d.ts +0 -1
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +0 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/interfaces/context.interface.d.ts +2 -70
- package/dist/common/interfaces/context.interface.d.ts.map +1 -1
- package/dist/domain/index.d.ts +3 -9
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +4 -9
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/modules/db-connection.module.d.ts +1 -1
- package/dist/domain/modules/db-connection.module.d.ts.map +1 -1
- package/dist/domain/modules/db-connection.module.js +1 -1
- package/dist/domain/modules/db-connection.module.js.map +1 -1
- package/dist/domain/modules/shared-domain.module.d.ts.map +1 -1
- package/dist/domain/modules/shared-domain.module.js +12 -13
- package/dist/domain/modules/shared-domain.module.js.map +1 -1
- package/dist/domain/mongodb-repositories/mongodb-data-imports.repository.d.ts +2 -3
- package/dist/domain/mongodb-repositories/mongodb-data-imports.repository.d.ts.map +1 -1
- package/dist/domain/mongodb-repositories/mongodb-data-imports.repository.js +1 -12
- package/dist/domain/mongodb-repositories/mongodb-data-imports.repository.js.map +1 -1
- package/dist/domain/mongodb-repositories/mongodb-global-user.repository.d.ts +35 -0
- package/dist/domain/mongodb-repositories/mongodb-global-user.repository.d.ts.map +1 -0
- package/dist/domain/mongodb-repositories/mongodb-global-user.repository.js +90 -0
- package/dist/domain/mongodb-repositories/mongodb-global-user.repository.js.map +1 -0
- package/dist/domain/mongodb-repositories/mongodb-media-record.repository.d.ts +0 -1
- package/dist/domain/mongodb-repositories/mongodb-media-record.repository.d.ts.map +1 -1
- package/dist/domain/mongodb-repositories/mongodb-media-record.repository.js +3 -14
- package/dist/domain/mongodb-repositories/mongodb-media-record.repository.js.map +1 -1
- package/dist/domain/mongodb-repositories/mongodb-tenant.repository.d.ts +36 -0
- package/dist/domain/mongodb-repositories/mongodb-tenant.repository.d.ts.map +1 -0
- package/dist/domain/mongodb-repositories/mongodb-tenant.repository.js +47 -0
- package/dist/domain/mongodb-repositories/mongodb-tenant.repository.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/admission.schema.d.ts +33 -47
- package/dist/domain/other-schemas/admission.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/admission.schema.js +5 -149
- package/dist/domain/other-schemas/admission.schema.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/course.schema.d.ts +12 -5
- package/dist/domain/other-schemas/course.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/course.schema.js +26 -26
- package/dist/domain/other-schemas/course.schema.js.map +1 -0
- package/dist/domain/other-schemas/index.d.ts +9 -0
- package/dist/domain/other-schemas/index.d.ts.map +1 -0
- package/dist/domain/other-schemas/index.js +25 -0
- package/dist/domain/other-schemas/index.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/institution.schema.d.ts +13 -7
- package/dist/domain/other-schemas/institution.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/institution.schema.js +27 -29
- package/dist/domain/other-schemas/institution.schema.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/program.schema.d.ts +18 -9
- package/dist/domain/other-schemas/program.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/program.schema.js +29 -26
- package/dist/domain/other-schemas/program.schema.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/quota.schema.d.ts +11 -4
- package/dist/domain/other-schemas/quota.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/quota.schema.js +3 -2
- package/dist/domain/other-schemas/quota.schema.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/semester.schema.d.ts +14 -5
- package/dist/domain/other-schemas/semester.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/semester.schema.js +24 -21
- package/dist/domain/other-schemas/semester.schema.js.map +1 -0
- package/dist/domain/other-schemas/student.schema.d.ts +57 -0
- package/dist/domain/other-schemas/student.schema.d.ts.map +1 -0
- package/dist/domain/other-schemas/student.schema.js +80 -0
- package/dist/domain/other-schemas/student.schema.js.map +1 -0
- package/dist/domain/{schemas → other-schemas}/sub-schemas.schema.d.ts +0 -25
- package/dist/domain/other-schemas/sub-schemas.schema.d.ts.map +1 -0
- package/dist/domain/{schemas → other-schemas}/sub-schemas.schema.js +44 -98
- package/dist/domain/other-schemas/sub-schemas.schema.js.map +1 -0
- package/dist/domain/repositories/global-user.repository.d.ts +17 -0
- package/dist/domain/repositories/global-user.repository.d.ts.map +1 -0
- package/dist/domain/repositories/global-user.repository.js +7 -0
- package/dist/domain/repositories/global-user.repository.js.map +1 -0
- package/dist/domain/repositories/tenant.repository.d.ts +8 -0
- package/dist/domain/repositories/tenant.repository.d.ts.map +1 -0
- package/dist/domain/repositories/tenant.repository.js +7 -0
- package/dist/domain/repositories/tenant.repository.js.map +1 -0
- package/dist/domain/schemas/data-import.schema.d.ts +9 -2
- package/dist/domain/schemas/data-import.schema.d.ts.map +1 -1
- package/dist/domain/schemas/data-import.schema.js +4 -1
- package/dist/domain/schemas/data-import.schema.js.map +1 -1
- package/dist/domain/schemas/global-users.schema.d.ts +33 -8
- package/dist/domain/schemas/global-users.schema.d.ts.map +1 -1
- package/dist/domain/schemas/global-users.schema.js +69 -7
- package/dist/domain/schemas/global-users.schema.js.map +1 -1
- package/dist/domain/schemas/media-record.schema.d.ts +9 -2
- package/dist/domain/schemas/media-record.schema.d.ts.map +1 -1
- package/dist/domain/schemas/media-record.schema.js +3 -1
- package/dist/domain/schemas/media-record.schema.js.map +1 -1
- package/dist/domain/schemas/tenant.schema.d.ts +37 -24
- package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
- package/dist/domain/schemas/tenant.schema.js +50 -45
- package/dist/domain/schemas/tenant.schema.js.map +1 -1
- package/dist/request-store/request-store.d.ts +6 -5
- package/dist/request-store/request-store.d.ts.map +1 -1
- package/dist/request-store/request-store.js +0 -1
- package/dist/request-store/request-store.js.map +1 -1
- package/dist/shared-module/index.d.ts +2 -1
- package/dist/shared-module/index.d.ts.map +1 -1
- package/dist/shared-module/index.js +15 -0
- package/dist/shared-module/index.js.map +1 -1
- package/dist/shared-module/shared-private.constants.d.ts +2 -0
- package/dist/shared-module/shared-private.constants.d.ts.map +1 -0
- package/dist/shared-module/shared-private.constants.js +5 -0
- package/dist/shared-module/shared-private.constants.js.map +1 -0
- package/dist/shared-module/shared.module.d.ts +2 -7
- package/dist/shared-module/shared.module.d.ts.map +1 -1
- package/dist/shared-module/shared.module.js +19 -10
- package/dist/shared-module/shared.module.js.map +1 -1
- package/dist/shared-module/shared.service.d.ts +7 -44
- package/dist/shared-module/shared.service.d.ts.map +1 -1
- package/dist/shared-module/shared.service.js +22 -41
- package/dist/shared-module/shared.service.js.map +1 -1
- package/dist/shared-module/shared.types.d.ts +17 -0
- package/dist/shared-module/shared.types.d.ts.map +1 -0
- package/dist/shared-module/shared.types.js +3 -0
- package/dist/shared-module/shared.types.js.map +1 -0
- package/dist/utils/constants.d.ts +9 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +57 -1
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/mongoose-fn.d.ts +49 -0
- package/dist/utils/mongoose-fn.d.ts.map +1 -0
- package/dist/utils/mongoose-fn.js +55 -0
- package/dist/utils/mongoose-fn.js.map +1 -0
- package/dist/utils/utils.js +5 -5
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/config/mongo.config.d.ts +0 -19
- package/dist/common/config/mongo.config.d.ts.map +0 -1
- package/dist/common/config/mongo.config.js +0 -48
- package/dist/common/config/mongo.config.js.map +0 -1
- package/dist/domain/schemas/admission.schema.d.ts.map +0 -1
- package/dist/domain/schemas/admission.schema.js.map +0 -1
- package/dist/domain/schemas/course.schema.d.ts.map +0 -1
- package/dist/domain/schemas/course.schema.js.map +0 -1
- package/dist/domain/schemas/institution.schema.d.ts.map +0 -1
- package/dist/domain/schemas/institution.schema.js.map +0 -1
- package/dist/domain/schemas/program.schema.d.ts.map +0 -1
- package/dist/domain/schemas/program.schema.js.map +0 -1
- package/dist/domain/schemas/quota.schema.d.ts.map +0 -1
- package/dist/domain/schemas/quota.schema.js.map +0 -1
- package/dist/domain/schemas/semester.schema.d.ts.map +0 -1
- package/dist/domain/schemas/semester.schema.js.map +0 -1
- package/dist/domain/schemas/sub-schemas.schema.d.ts.map +0 -1
- package/dist/domain/schemas/sub-schemas.schema.js.map +0 -1
|
@@ -0,0 +1,57 @@
|
|
|
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 { Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
import { AdmissionSubValue } from './admission.schema';
|
|
27
|
+
import { MentorSessions } from './sub-schemas.schema';
|
|
28
|
+
export declare const StudentCName = "students";
|
|
29
|
+
export declare class MStudent {
|
|
30
|
+
id: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
institutionId: string;
|
|
33
|
+
rollNo: string;
|
|
34
|
+
studentId: number;
|
|
35
|
+
admissionId: string;
|
|
36
|
+
status: string;
|
|
37
|
+
mentorUserIds: string[];
|
|
38
|
+
mentorSessions: MentorSessions[];
|
|
39
|
+
admissionSubValue: AdmissionSubValue;
|
|
40
|
+
globalUserId: string;
|
|
41
|
+
createdAt: Date;
|
|
42
|
+
updatedAt: Date;
|
|
43
|
+
}
|
|
44
|
+
export declare const StudentSchema: MongooseSchema<MStudent, import("mongoose").Model<MStudent, any, any, any, import("mongoose").Document<unknown, any, MStudent> & MStudent & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MStudent, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MStudent>> & import("mongoose").FlatRecord<MStudent> & {
|
|
47
|
+
_id: import("mongoose").Types.ObjectId;
|
|
48
|
+
}>;
|
|
49
|
+
export declare const convertStudentDoc: {
|
|
50
|
+
(value: (object | (import("mongoose").Document<unknown, {}, MStudent> & MStudent & {
|
|
51
|
+
_id: import("mongoose").Types.ObjectId;
|
|
52
|
+
}))[]): MStudent[];
|
|
53
|
+
(value: object | (import("mongoose").Document<unknown, {}, MStudent> & MStudent & {
|
|
54
|
+
_id: import("mongoose").Types.ObjectId;
|
|
55
|
+
})): MStudent;
|
|
56
|
+
};
|
|
57
|
+
//# sourceMappingURL=student.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/other-schemas/student.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,oBAAoB,CAAC;AAChF,OAAO,EAAE,cAAc,EAAwB,MAAM,sBAAsB,CAAC;AAE5E,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,qBACa,QAAQ;IAEnB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,WAAW,EAAE,MAAM,CAAC;IAGpB,MAAM,EAAE,MAAM,CAAC;IAGf,aAAa,EAAE,MAAM,EAAE,CAAC;IAGxB,cAAc,EAAE,cAAc,EAAE,CAAC;IAGjC,iBAAiB,EAAE,iBAAiB,CAAC;IAGrC,YAAY,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,aAAa;;;;EAAyC,CAAC;AAGpE,eAAO,MAAM,iBAAiB;;;;;;;CAAuB,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
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.convertStudentDoc = exports.StudentSchema = exports.MStudent = exports.StudentCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
const admission_schema_1 = require("./admission.schema");
|
|
17
|
+
const sub_schemas_schema_1 = require("./sub-schemas.schema");
|
|
18
|
+
exports.StudentCName = 'students';
|
|
19
|
+
let MStudent = class MStudent {
|
|
20
|
+
};
|
|
21
|
+
exports.MStudent = MStudent;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], MStudent.prototype, "id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: true, type: mongoose_2.Schema.Types.ObjectId }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], MStudent.prototype, "tenantId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MStudent.prototype, "institutionId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)({ required: true, trim: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], MStudent.prototype, "rollNo", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], MStudent.prototype, "studentId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], MStudent.prototype, "admissionId", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ required: true, enum: Object.values(utils_1.StudentStatuses), default: utils_1.StudentStatuses.active }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], MStudent.prototype, "status", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)({ required: true, default: [], type: [mongoose_2.Schema.Types.ObjectId] }),
|
|
52
|
+
__metadata("design:type", Array)
|
|
53
|
+
], MStudent.prototype, "mentorUserIds", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)({ required: true, default: [], type: [sub_schemas_schema_1.MentorSessionsSchema] }),
|
|
56
|
+
__metadata("design:type", Array)
|
|
57
|
+
], MStudent.prototype, "mentorSessions", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)({ required: true, type: admission_schema_1.AdmissionSubValueSchema }),
|
|
60
|
+
__metadata("design:type", admission_schema_1.AdmissionSubValue)
|
|
61
|
+
], MStudent.prototype, "admissionSubValue", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], MStudent.prototype, "globalUserId", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)(),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], MStudent.prototype, "createdAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, mongoose_1.Prop)(),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], MStudent.prototype, "updatedAt", void 0);
|
|
74
|
+
exports.MStudent = MStudent = __decorate([
|
|
75
|
+
(0, mongoose_1.Schema)({ collection: exports.StudentCName, timestamps: true })
|
|
76
|
+
], MStudent);
|
|
77
|
+
exports.StudentSchema = mongoose_1.SchemaFactory.createForClass(MStudent);
|
|
78
|
+
exports.StudentSchema.index({ id: -1 }, { unique: true });
|
|
79
|
+
exports.convertStudentDoc = (0, utils_1.convertDoc)(MStudent);
|
|
80
|
+
//# sourceMappingURL=student.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"student.schema.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/student.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAA0D;AAC1D,yDAAgF;AAChF,6DAA4E;AAE/D,QAAA,YAAY,GAAG,UAAU,CAAC;AAGhC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAuCpB,CAAA;AAvCY,4BAAQ;AAEnB;IADC,IAAA,eAAI,GAAE;;oCACI;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;0CAC7C;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACH;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;;wCACtB;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACP;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACL;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,uBAAe,CAAC,EAAE,OAAO,EAAE,uBAAe,CAAC,MAAM,EAAE,CAAC;;wCACjF;AAGf;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,iBAAc,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,CAAC;;+CACrD;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,yCAAoB,CAAC,EAAE,CAAC;;gDACnC;AAGjC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,0CAAuB,EAAE,CAAC;8BACrC,oCAAiB;mDAAC;AAGrC;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;8CACzB;AAGrB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;2CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;2CAAC;mBAtCL,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,oBAAY,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAC1C,QAAQ,CAuCpB;AAEY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACpE,qBAAa,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAErC,QAAA,iBAAiB,GAAG,IAAA,kBAAU,EAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -238,31 +238,6 @@ export declare class PersonalDetailsDto {
|
|
|
238
238
|
qualification?: string;
|
|
239
239
|
languages?: string;
|
|
240
240
|
}
|
|
241
|
-
export declare class StudentDetails {
|
|
242
|
-
studentAltMobile: string;
|
|
243
|
-
parentName: string;
|
|
244
|
-
parentMobile: string;
|
|
245
|
-
fatherName: string;
|
|
246
|
-
motherName: string;
|
|
247
|
-
address: string;
|
|
248
|
-
}
|
|
249
|
-
export declare const StudentDetailsSchema: MongooseSchema<StudentDetails, import("mongoose").Model<StudentDetails, any, any, any, import("mongoose").Document<unknown, any, StudentDetails> & StudentDetails & {
|
|
250
|
-
_id: import("mongoose").Types.ObjectId;
|
|
251
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, StudentDetails, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<StudentDetails>> & import("mongoose").FlatRecord<StudentDetails> & {
|
|
252
|
-
_id: import("mongoose").Types.ObjectId;
|
|
253
|
-
}>;
|
|
254
|
-
export declare class MentorDetails {
|
|
255
|
-
noOfStudents: number;
|
|
256
|
-
totalSessions: number;
|
|
257
|
-
averageRating: number;
|
|
258
|
-
mentorshipTopicIds: string[];
|
|
259
|
-
areasOfExpertise: string[];
|
|
260
|
-
}
|
|
261
|
-
export declare const MentorDetailsSchema: MongooseSchema<MentorDetails, import("mongoose").Model<MentorDetails, any, any, any, import("mongoose").Document<unknown, any, MentorDetails> & MentorDetails & {
|
|
262
|
-
_id: import("mongoose").Types.ObjectId;
|
|
263
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MentorDetails, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MentorDetails>> & import("mongoose").FlatRecord<MentorDetails> & {
|
|
264
|
-
_id: import("mongoose").Types.ObjectId;
|
|
265
|
-
}>;
|
|
266
241
|
export declare class MentorSessions {
|
|
267
242
|
mentorUserId: string;
|
|
268
243
|
totalSessions: number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-schemas.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/other-schemas/sub-schemas.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAwBpD,qBACa,YAAY;IAEvB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAG1B,SAAS,CAAC,EAAE,MAAM,CAAC;IAGnB,eA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C;IAIlB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAI/B,eAAe,CAAC,EAAE,MAAM,CAAC;IAIzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAI/B,SAAS,CAAC,EAAE,MAAM,CAAC;IAInB,MAAM,CAAC,EAAE,MAAM,CAAC;IAIhB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAI/B,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAI1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAI9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAI9B,KAAK,CAAC,EAAE,MAAM,CAAC;IAIf,IAAI,CAAC,EAAE,MAAM,CAAC;IAId,OAAO,CAAC,EAAE,MAAM,CAAC;IAIjB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,UAAU,CAAC,EAAE,MAAM,CAAC;IAIpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAIvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qBACa,cAAc;IAEzB,YAAY,EAAE,MAAM,CAAC;IAGrB,aAAa,EAAE,MAAM,CAAC;IAGtB,YAAY,EAAE,IAAI,CAAC;CACpB;AACD,eAAO,MAAM,oBAAoB;;;;EAA+C,CAAC"}
|
|
@@ -9,27 +9,31 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MentorSessionsSchema = exports.MentorSessions = exports.
|
|
12
|
+
exports.MentorSessionsSchema = exports.MentorSessions = exports.PersonalDetailsDto = exports.PersonalDetailsSchema = exports.PersonalDetails = exports.GuardianDetailsDto = exports.GuardianDetailsSchema = exports.GuardianDetails = exports.UgDetailsDto = exports.UgDetailsSchema = exports.UgDetails = exports.InterDetailsDto = exports.InterDetailsSchema = exports.InterDetails = exports.TenthDetailsDto = exports.TenthDetailsSchema = exports.TenthDetails = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const class_transformer_1 = require("class-transformer");
|
|
15
15
|
const class_validator_1 = require("class-validator");
|
|
16
16
|
const mongoose_2 = require("mongoose");
|
|
17
17
|
const utils_1 = require("../../utils");
|
|
18
|
-
|
|
19
|
-
These are the sub-document schemas and there respective DTOs for api requests.
|
|
20
|
-
These are used in admissions and leads schemas.
|
|
21
|
-
|
|
22
|
-
- Getter are used to convert the decimal128 type to number type when the data is fetched
|
|
23
|
-
|
|
24
|
-
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
/**
|
|
19
|
+
* These are the sub-document schemas and there respective DTOs for api requests.
|
|
20
|
+
* These are used in admissions and leads schemas.
|
|
21
|
+
*
|
|
22
|
+
* - Getter are used to convert the decimal128 type to number type when the data is fetched from the database and toJson or toObject is used.
|
|
23
|
+
* - Transform is used to convert the email to lowercase and trim the spaces.
|
|
24
|
+
* - Make show if float values is expected for a field, they should be of type Decimal128 and the getter should be used to convert them to number type.
|
|
25
|
+
*
|
|
26
|
+
* Important:
|
|
27
|
+
* The DTOs are used for validation and the schemas are used for mongoose.
|
|
28
|
+
* When you add new fields to the schemas, make sure to add them to the DTOs as well.
|
|
29
|
+
*/
|
|
30
|
+
const schemaOptions = {
|
|
31
|
+
_id: false,
|
|
32
|
+
id: false,
|
|
33
|
+
timestamps: false,
|
|
34
|
+
toJSON: { getters: true },
|
|
35
|
+
toObject: { getters: true },
|
|
36
|
+
};
|
|
33
37
|
let TenthDetails = class TenthDetails {
|
|
34
38
|
};
|
|
35
39
|
exports.TenthDetails = TenthDetails;
|
|
@@ -38,11 +42,11 @@ __decorate([
|
|
|
38
42
|
__metadata("design:type", String)
|
|
39
43
|
], TenthDetails.prototype, "tenthStudentName", void 0);
|
|
40
44
|
__decorate([
|
|
41
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
45
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
42
46
|
__metadata("design:type", Number)
|
|
43
47
|
], TenthDetails.prototype, "tenthCgpa", void 0);
|
|
44
48
|
__decorate([
|
|
45
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
49
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
46
50
|
__metadata("design:type", Number)
|
|
47
51
|
], TenthDetails.prototype, "tenthPercentage", void 0);
|
|
48
52
|
__decorate([
|
|
@@ -78,19 +82,19 @@ __decorate([
|
|
|
78
82
|
__metadata("design:type", String)
|
|
79
83
|
], TenthDetails.prototype, "tenthScoreType", void 0);
|
|
80
84
|
__decorate([
|
|
81
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
85
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
82
86
|
__metadata("design:type", Number)
|
|
83
87
|
], TenthDetails.prototype, "tenthTotalMarks", void 0);
|
|
84
88
|
__decorate([
|
|
85
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
89
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
86
90
|
__metadata("design:type", Number)
|
|
87
91
|
], TenthDetails.prototype, "tenthSecuredMarks", void 0);
|
|
88
92
|
__decorate([
|
|
89
|
-
(0, mongoose_1.Prop)({ default: false, set: (0,
|
|
93
|
+
(0, mongoose_1.Prop)({ default: false, set: (0, utils_1.getSetDefaultBoolFn)(false) }),
|
|
90
94
|
__metadata("design:type", Boolean)
|
|
91
95
|
], TenthDetails.prototype, "isSSCSubmitted", void 0);
|
|
92
96
|
exports.TenthDetails = TenthDetails = __decorate([
|
|
93
|
-
(0, mongoose_1.Schema)(
|
|
97
|
+
(0, mongoose_1.Schema)(schemaOptions)
|
|
94
98
|
], TenthDetails);
|
|
95
99
|
exports.TenthDetailsSchema = mongoose_1.SchemaFactory.createForClass(TenthDetails);
|
|
96
100
|
class TenthDetailsDto {
|
|
@@ -187,31 +191,31 @@ __decorate([
|
|
|
187
191
|
__metadata("design:type", Number)
|
|
188
192
|
], InterDetails.prototype, "eamcetRank", void 0);
|
|
189
193
|
__decorate([
|
|
190
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
194
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
191
195
|
__metadata("design:type", Number)
|
|
192
196
|
], InterDetails.prototype, "interCgpa", void 0);
|
|
193
197
|
__decorate([
|
|
194
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
198
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
195
199
|
__metadata("design:type", Number)
|
|
196
200
|
], InterDetails.prototype, "interPercentage", void 0);
|
|
197
201
|
__decorate([
|
|
198
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
202
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
199
203
|
__metadata("design:type", Number)
|
|
200
204
|
], InterDetails.prototype, "interTotalMarks", void 0);
|
|
201
205
|
__decorate([
|
|
202
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
206
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
203
207
|
__metadata("design:type", Number)
|
|
204
208
|
], InterDetails.prototype, "interSecuredMarks", void 0);
|
|
205
209
|
__decorate([
|
|
206
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
210
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
207
211
|
__metadata("design:type", Number)
|
|
208
212
|
], InterDetails.prototype, "interLangMarks", void 0);
|
|
209
213
|
__decorate([
|
|
210
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
214
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
211
215
|
__metadata("design:type", Number)
|
|
212
216
|
], InterDetails.prototype, "interGroupMarks", void 0);
|
|
213
217
|
__decorate([
|
|
214
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
218
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
215
219
|
__metadata("design:type", Number)
|
|
216
220
|
], InterDetails.prototype, "interGroupMarksPercentage", void 0);
|
|
217
221
|
__decorate([
|
|
@@ -239,11 +243,11 @@ __decorate([
|
|
|
239
243
|
__metadata("design:type", String)
|
|
240
244
|
], InterDetails.prototype, "interSchoolCity", void 0);
|
|
241
245
|
__decorate([
|
|
242
|
-
(0, mongoose_1.Prop)({ default: false, set: (0,
|
|
246
|
+
(0, mongoose_1.Prop)({ default: false, set: (0, utils_1.getSetDefaultBoolFn)(false) }),
|
|
243
247
|
__metadata("design:type", Boolean)
|
|
244
248
|
], InterDetails.prototype, "isIntermediateSubmitted", void 0);
|
|
245
249
|
exports.InterDetails = InterDetails = __decorate([
|
|
246
|
-
(0, mongoose_1.Schema)(
|
|
250
|
+
(0, mongoose_1.Schema)(schemaOptions)
|
|
247
251
|
], InterDetails);
|
|
248
252
|
exports.InterDetailsSchema = mongoose_1.SchemaFactory.createForClass(InterDetails);
|
|
249
253
|
class InterDetailsDto {
|
|
@@ -343,19 +347,19 @@ let UgDetails = class UgDetails {
|
|
|
343
347
|
};
|
|
344
348
|
exports.UgDetails = UgDetails;
|
|
345
349
|
__decorate([
|
|
346
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
350
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
347
351
|
__metadata("design:type", Number)
|
|
348
352
|
], UgDetails.prototype, "ugPercentage", void 0);
|
|
349
353
|
__decorate([
|
|
350
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
354
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
351
355
|
__metadata("design:type", Number)
|
|
352
356
|
], UgDetails.prototype, "ugCgpa", void 0);
|
|
353
357
|
__decorate([
|
|
354
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
358
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
355
359
|
__metadata("design:type", Number)
|
|
356
360
|
], UgDetails.prototype, "ugSecuredMarks", void 0);
|
|
357
361
|
__decorate([
|
|
358
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get:
|
|
362
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Decimal128, get: utils_1.parseDecimal }),
|
|
359
363
|
__metadata("design:type", Number)
|
|
360
364
|
], UgDetails.prototype, "ugTotalMarks", void 0);
|
|
361
365
|
__decorate([
|
|
@@ -387,7 +391,7 @@ __decorate([
|
|
|
387
391
|
__metadata("design:type", String)
|
|
388
392
|
], UgDetails.prototype, "ugSchoolCity", void 0);
|
|
389
393
|
exports.UgDetails = UgDetails = __decorate([
|
|
390
|
-
(0, mongoose_1.Schema)(
|
|
394
|
+
(0, mongoose_1.Schema)(schemaOptions)
|
|
391
395
|
], UgDetails);
|
|
392
396
|
exports.UgDetailsSchema = mongoose_1.SchemaFactory.createForClass(UgDetails);
|
|
393
397
|
class UgDetailsDto {
|
|
@@ -516,7 +520,7 @@ __decorate([
|
|
|
516
520
|
__metadata("design:type", String)
|
|
517
521
|
], GuardianDetails.prototype, "motherAadhaar", void 0);
|
|
518
522
|
exports.GuardianDetails = GuardianDetails = __decorate([
|
|
519
|
-
(0, mongoose_1.Schema)(
|
|
523
|
+
(0, mongoose_1.Schema)(schemaOptions)
|
|
520
524
|
], GuardianDetails);
|
|
521
525
|
exports.GuardianDetailsSchema = mongoose_1.SchemaFactory.createForClass(GuardianDetails);
|
|
522
526
|
class GuardianDetailsDto {
|
|
@@ -671,7 +675,7 @@ __decorate([
|
|
|
671
675
|
__metadata("design:type", String)
|
|
672
676
|
], PersonalDetails.prototype, "nicKey", void 0);
|
|
673
677
|
__decorate([
|
|
674
|
-
(0, mongoose_1.Prop)({ default: false, set: (0,
|
|
678
|
+
(0, mongoose_1.Prop)({ default: false, set: (0, utils_1.getSetDefaultBoolFn)(false) }),
|
|
675
679
|
__metadata("design:type", Boolean)
|
|
676
680
|
], PersonalDetails.prototype, "physicallyChallenged", void 0);
|
|
677
681
|
__decorate([
|
|
@@ -719,7 +723,7 @@ __decorate([
|
|
|
719
723
|
__metadata("design:type", String)
|
|
720
724
|
], PersonalDetails.prototype, "languages", void 0);
|
|
721
725
|
exports.PersonalDetails = PersonalDetails = __decorate([
|
|
722
|
-
(0, mongoose_1.Schema)(
|
|
726
|
+
(0, mongoose_1.Schema)(schemaOptions)
|
|
723
727
|
], PersonalDetails);
|
|
724
728
|
exports.PersonalDetailsSchema = mongoose_1.SchemaFactory.createForClass(PersonalDetails);
|
|
725
729
|
class PersonalDetailsDto {
|
|
@@ -859,64 +863,6 @@ __decorate([
|
|
|
859
863
|
(0, class_validator_1.IsString)(),
|
|
860
864
|
__metadata("design:type", String)
|
|
861
865
|
], PersonalDetailsDto.prototype, "languages", void 0);
|
|
862
|
-
let StudentDetails = class StudentDetails {
|
|
863
|
-
};
|
|
864
|
-
exports.StudentDetails = StudentDetails;
|
|
865
|
-
__decorate([
|
|
866
|
-
(0, mongoose_1.Prop)(),
|
|
867
|
-
__metadata("design:type", String)
|
|
868
|
-
], StudentDetails.prototype, "studentAltMobile", void 0);
|
|
869
|
-
__decorate([
|
|
870
|
-
(0, mongoose_1.Prop)(),
|
|
871
|
-
__metadata("design:type", String)
|
|
872
|
-
], StudentDetails.prototype, "parentName", void 0);
|
|
873
|
-
__decorate([
|
|
874
|
-
(0, mongoose_1.Prop)(),
|
|
875
|
-
__metadata("design:type", String)
|
|
876
|
-
], StudentDetails.prototype, "parentMobile", void 0);
|
|
877
|
-
__decorate([
|
|
878
|
-
(0, mongoose_1.Prop)(),
|
|
879
|
-
__metadata("design:type", String)
|
|
880
|
-
], StudentDetails.prototype, "fatherName", void 0);
|
|
881
|
-
__decorate([
|
|
882
|
-
(0, mongoose_1.Prop)(),
|
|
883
|
-
__metadata("design:type", String)
|
|
884
|
-
], StudentDetails.prototype, "motherName", void 0);
|
|
885
|
-
__decorate([
|
|
886
|
-
(0, mongoose_1.Prop)(),
|
|
887
|
-
__metadata("design:type", String)
|
|
888
|
-
], StudentDetails.prototype, "address", void 0);
|
|
889
|
-
exports.StudentDetails = StudentDetails = __decorate([
|
|
890
|
-
(0, mongoose_1.Schema)({ id: false })
|
|
891
|
-
], StudentDetails);
|
|
892
|
-
exports.StudentDetailsSchema = mongoose_1.SchemaFactory.createForClass(StudentDetails);
|
|
893
|
-
let MentorDetails = class MentorDetails {
|
|
894
|
-
};
|
|
895
|
-
exports.MentorDetails = MentorDetails;
|
|
896
|
-
__decorate([
|
|
897
|
-
(0, mongoose_1.Prop)({ default: 0 }),
|
|
898
|
-
__metadata("design:type", Number)
|
|
899
|
-
], MentorDetails.prototype, "noOfStudents", void 0);
|
|
900
|
-
__decorate([
|
|
901
|
-
(0, mongoose_1.Prop)({ default: 0 }),
|
|
902
|
-
__metadata("design:type", Number)
|
|
903
|
-
], MentorDetails.prototype, "totalSessions", void 0);
|
|
904
|
-
__decorate([
|
|
905
|
-
(0, mongoose_1.Prop)({ default: 0 }),
|
|
906
|
-
__metadata("design:type", Number)
|
|
907
|
-
], MentorDetails.prototype, "averageRating", void 0);
|
|
908
|
-
__decorate([
|
|
909
|
-
(0, mongoose_1.Prop)({ default: [], type: [mongoose_2.Schema.Types.ObjectId] }),
|
|
910
|
-
__metadata("design:type", Array)
|
|
911
|
-
], MentorDetails.prototype, "mentorshipTopicIds", void 0);
|
|
912
|
-
__decorate([
|
|
913
|
-
(0, mongoose_1.Prop)({ default: [] }),
|
|
914
|
-
__metadata("design:type", Array)
|
|
915
|
-
], MentorDetails.prototype, "areasOfExpertise", void 0);
|
|
916
|
-
exports.MentorDetails = MentorDetails = __decorate([
|
|
917
|
-
(0, mongoose_1.Schema)({ id: false, timestamps: false, _id: false })
|
|
918
|
-
], MentorDetails);
|
|
919
|
-
exports.MentorDetailsSchema = mongoose_1.SchemaFactory.createForClass(MentorDetails);
|
|
920
866
|
let MentorSessions = class MentorSessions {
|
|
921
867
|
};
|
|
922
868
|
exports.MentorSessions = MentorSessions;
|
|
@@ -933,7 +879,7 @@ __decorate([
|
|
|
933
879
|
__metadata("design:type", Date)
|
|
934
880
|
], MentorSessions.prototype, "followUpDate", void 0);
|
|
935
881
|
exports.MentorSessions = MentorSessions = __decorate([
|
|
936
|
-
(0, mongoose_1.Schema)(
|
|
882
|
+
(0, mongoose_1.Schema)(schemaOptions)
|
|
937
883
|
], MentorSessions);
|
|
938
884
|
exports.MentorSessionsSchema = mongoose_1.SchemaFactory.createForClass(MentorSessions);
|
|
939
885
|
//# sourceMappingURL=sub-schemas.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sub-schemas.schema.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/sub-schemas.schema.ts"],"names":[],"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,IAAA,0BAAQ,GAAE;;sDACS;AAIpB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;yDACY;AAIvB;IAFC,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;qDACQ;AAId,IAAM,cAAc,GAApB,MAAM,cAAc;CAS1B,CAAA;AATY,wCAAc;AAEzB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;oDACzB;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;qDACf;AAGtB;IADC,IAAA,eAAI,GAAE;8BACO,IAAI;oDAAC;yBARR,cAAc;IAD1B,IAAA,iBAAM,EAAC,aAAa,CAAC;GACT,cAAc,CAS1B;AACY,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GlobalUser } from '../schemas/global-users.schema';
|
|
2
|
+
export type UserSubValue = {
|
|
3
|
+
_id: string;
|
|
4
|
+
id: string;
|
|
5
|
+
tenantId: string;
|
|
6
|
+
userId: number;
|
|
7
|
+
fullName: string;
|
|
8
|
+
username: string;
|
|
9
|
+
email: string;
|
|
10
|
+
employeeId?: string;
|
|
11
|
+
};
|
|
12
|
+
export declare abstract class GGlobalUserRepository {
|
|
13
|
+
abstract findById(globalUserId: string): Promise<GlobalUser>;
|
|
14
|
+
abstract findSubValueMapByIds(globalUserIds: string[]): Promise<Map<string, UserSubValue>>;
|
|
15
|
+
abstract findSubValueByIds(globalUserIds: string[]): Promise<UserSubValue[]>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=global-user.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-user.repository.d.ts","sourceRoot":"","sources":["../../../src/domain/repositories/global-user.repository.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAE5D,MAAM,MAAM,YAAY,GAAG;IACzB,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,8BAAsB,qBAAqB;IACzC,QAAQ,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAE5D,QAAQ,CAAC,oBAAoB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IAE1F,QAAQ,CAAC,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC;CAC7E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"global-user.repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/global-user.repository.ts"],"names":[],"mappings":";;;AAcA,MAAsB,qBAAqB;CAM1C;AAND,sDAMC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Tenant } from '../schemas/tenant.schema';
|
|
2
|
+
export declare abstract class GTenantRepository {
|
|
3
|
+
abstract findBySubDomain(subDomain: string): Promise<Tenant>;
|
|
4
|
+
abstract findById(id: string): Promise<Tenant>;
|
|
5
|
+
abstract findDatabaseByTenantId(tenantId: string): Promise<string>;
|
|
6
|
+
abstract findAll(): Promise<Tenant[]>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=tenant.repository.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.repository.d.ts","sourceRoot":"","sources":["../../../src/domain/repositories/tenant.repository.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAElD,8BAAsB,iBAAiB;IACrC,QAAQ,CAAC,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAE5D,QAAQ,CAAC,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAE9C,QAAQ,CAAC,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAElE,QAAQ,CAAC,OAAO,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;CACtC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tenant.repository.js","sourceRoot":"","sources":["../../../src/domain/repositories/tenant.repository.ts"],"names":[],"mappings":";;;AAEA,MAAsB,iBAAiB;CAQtC;AARD,8CAQC"}
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import {
|
|
25
|
+
import { Schema as MongooseSchema } from 'mongoose';
|
|
26
26
|
import { MediaRecord } from './media-record.schema';
|
|
27
27
|
export declare const DataImportImportTypes: {
|
|
28
28
|
INSERT: string;
|
|
@@ -37,7 +37,6 @@ export declare const DataImportStatus: {
|
|
|
37
37
|
COMPLETED: string;
|
|
38
38
|
FAILED: string;
|
|
39
39
|
};
|
|
40
|
-
export type DataImportDocument = HydratedDocument<DataImport>;
|
|
41
40
|
export declare const DataImportCName = "data_imports";
|
|
42
41
|
export declare class DataImport {
|
|
43
42
|
id: string;
|
|
@@ -61,4 +60,12 @@ export declare const DataImportSchema: MongooseSchema<DataImport, import("mongoo
|
|
|
61
60
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, DataImport, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<DataImport>> & import("mongoose").FlatRecord<DataImport> & {
|
|
62
61
|
_id: import("mongoose").Types.ObjectId;
|
|
63
62
|
}>;
|
|
63
|
+
export declare const convertDataImportDoc: {
|
|
64
|
+
(value: (object | (import("mongoose").Document<unknown, {}, DataImport> & DataImport & {
|
|
65
|
+
_id: import("mongoose").Types.ObjectId;
|
|
66
|
+
}))[]): DataImport[];
|
|
67
|
+
(value: object | (import("mongoose").Document<unknown, {}, DataImport> & DataImport & {
|
|
68
|
+
_id: import("mongoose").Types.ObjectId;
|
|
69
|
+
})): DataImport;
|
|
70
|
+
};
|
|
64
71
|
//# sourceMappingURL=data-import.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-import.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/data-import.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"data-import.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/data-import.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAwB,MAAM,uBAAuB,CAAC;AAE1E,eAAO,MAAM,qBAAqB;;;CAGjC,CAAC;AAEF,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,eAAe,iBAAiB,CAAC;AAE9C,qBACa,UAAU;IAErB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,WAAW,EAAE,MAAM,CAAC;IAGpB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,WAAW,CAAC;IAG3B,YAAY,CAAC,EAAE,WAAW,CAAC;IAG3B,WAAW,EAAE,MAAM,CAAC;IAGpB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,eAAO,MAAM,gBAAgB;;;;EAA2C,CAAC;AAGzE,eAAO,MAAM,oBAAoB;;;;;;;CAAyB,CAAC"}
|
|
@@ -9,9 +9,10 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.DataImportSchema = exports.DataImport = exports.DataImportCName = exports.DataImportStatus = exports.DataImportImportTypes = void 0;
|
|
12
|
+
exports.convertDataImportDoc = exports.DataImportSchema = exports.DataImport = exports.DataImportCName = exports.DataImportStatus = exports.DataImportImportTypes = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
15
16
|
const media_record_schema_1 = require("./media-record.schema");
|
|
16
17
|
exports.DataImportImportTypes = {
|
|
17
18
|
INSERT: 'INSERT',
|
|
@@ -94,4 +95,6 @@ exports.DataImport = DataImport = __decorate([
|
|
|
94
95
|
(0, mongoose_1.Schema)({ collection: exports.DataImportCName, timestamps: true })
|
|
95
96
|
], DataImport);
|
|
96
97
|
exports.DataImportSchema = mongoose_1.SchemaFactory.createForClass(DataImport);
|
|
98
|
+
exports.DataImportSchema.index({ id: -1 }, { unique: true });
|
|
99
|
+
exports.convertDataImportDoc = (0, utils_1.convertDoc)(DataImport);
|
|
97
100
|
//# sourceMappingURL=data-import.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-import.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/data-import.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"data-import.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/data-import.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAyC;AACzC,+DAA0E;AAE7D,QAAA,qBAAqB,GAAG;IACnC,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEW,QAAA,gBAAgB,GAAG;IAC9B,OAAO,EAAE,SAAS;IAClB,kBAAkB,EAAE,oBAAoB;IACxC,sBAAsB,EAAE,wBAAwB;IAChD,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;CACjB,CAAC;AAEW,QAAA,eAAe,GAAG,cAAc,CAAC;AAGvC,IAAM,UAAU,GAAhB,MAAM,UAAU;CA6CtB,CAAA;AA7CY,gCAAU;AAErB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;;sCAC/B;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;4CAC7C;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACH;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,I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