@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,25 @@
|
|
|
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("./admission.schema"), exports);
|
|
18
|
+
__exportStar(require("./course.schema"), exports);
|
|
19
|
+
__exportStar(require("./institution.schema"), exports);
|
|
20
|
+
__exportStar(require("./program.schema"), exports);
|
|
21
|
+
__exportStar(require("./quota.schema"), exports);
|
|
22
|
+
__exportStar(require("./semester.schema"), exports);
|
|
23
|
+
__exportStar(require("./student.schema"), exports);
|
|
24
|
+
__exportStar(require("./sub-schemas.schema"), exports);
|
|
25
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,qDAAmC;AACnC,kDAAgC;AAChC,uDAAqC;AACrC,mDAAiC;AACjC,iDAA+B;AAC/B,oDAAkC;AAClC,mDAAiC;AACjC,uDAAqC"}
|
|
@@ -22,15 +22,14 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import {
|
|
26
|
-
import { MediaRecord } from '
|
|
25
|
+
import { Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
import { MediaRecord } from '../schemas/media-record.schema';
|
|
27
27
|
export declare class InstitutionPrincipalDetails {
|
|
28
28
|
name: string;
|
|
29
29
|
email: string;
|
|
30
30
|
}
|
|
31
31
|
export declare const InstitutionCName = "institutions";
|
|
32
|
-
export
|
|
33
|
-
export declare class Institution {
|
|
32
|
+
export declare class MInstitution {
|
|
34
33
|
id: string;
|
|
35
34
|
tenantId: string;
|
|
36
35
|
uniqueId: number;
|
|
@@ -38,7 +37,6 @@ export declare class Institution {
|
|
|
38
37
|
code: string;
|
|
39
38
|
refCode: string;
|
|
40
39
|
address?: string;
|
|
41
|
-
canEditAttendance: boolean;
|
|
42
40
|
recognitionDetails?: string;
|
|
43
41
|
phone?: string;
|
|
44
42
|
email?: string;
|
|
@@ -51,9 +49,17 @@ export declare class Institution {
|
|
|
51
49
|
imageSquare?: MediaRecord;
|
|
52
50
|
reportHeader?: MediaRecord;
|
|
53
51
|
}
|
|
54
|
-
export declare const InstitutionSchema: MongooseSchema<
|
|
52
|
+
export declare const InstitutionSchema: MongooseSchema<MInstitution, import("mongoose").Model<MInstitution, any, any, any, import("mongoose").Document<unknown, any, MInstitution> & MInstitution & {
|
|
55
53
|
_id: import("mongoose").Types.ObjectId;
|
|
56
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions,
|
|
54
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MInstitution, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MInstitution>> & import("mongoose").FlatRecord<MInstitution> & {
|
|
57
55
|
_id: import("mongoose").Types.ObjectId;
|
|
58
56
|
}>;
|
|
57
|
+
export declare const convertInstitutionDoc: {
|
|
58
|
+
(value: (object | (import("mongoose").Document<unknown, {}, MInstitution> & MInstitution & {
|
|
59
|
+
_id: import("mongoose").Types.ObjectId;
|
|
60
|
+
}))[]): MInstitution[];
|
|
61
|
+
(value: object | (import("mongoose").Document<unknown, {}, MInstitution> & MInstitution & {
|
|
62
|
+
_id: import("mongoose").Types.ObjectId;
|
|
63
|
+
})): MInstitution;
|
|
64
|
+
};
|
|
59
65
|
//# sourceMappingURL=institution.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"institution.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/other-schemas/institution.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,WAAW,EAAwB,MAAM,gCAAgC,CAAC;AAEnF,qBACa,2BAA2B;IAEtC,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;CACf;AAGD,eAAO,MAAM,gBAAgB,iBAAiB,CAAC;AAE/C,qBACa,YAAY;IAEvB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAG5B,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,UAAU,EAAE,2BAA2B,EAAE,CAAC;IAG1C,KAAK,CAAC,EAAE,WAAW,CAAC;IAGpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAG1B,YAAY,CAAC,EAAE,WAAW,CAAC;CAC5B;AAED,eAAO,MAAM,iBAAiB;;;;EAA6C,CAAC;AAG5E,eAAO,MAAM,qBAAqB;;;;;;;CAA2B,CAAC"}
|
|
@@ -9,11 +9,11 @@ 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.InstitutionSchema = exports.
|
|
12
|
+
exports.convertInstitutionDoc = exports.InstitutionSchema = exports.MInstitution = exports.InstitutionCName = exports.InstitutionPrincipalDetails = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const mongoose_2 = require("mongoose");
|
|
15
15
|
const utils_1 = require("../../utils");
|
|
16
|
-
const media_record_schema_1 = require("
|
|
16
|
+
const media_record_schema_1 = require("../schemas/media-record.schema");
|
|
17
17
|
let InstitutionPrincipalDetails = class InstitutionPrincipalDetails {
|
|
18
18
|
};
|
|
19
19
|
exports.InstitutionPrincipalDetails = InstitutionPrincipalDetails;
|
|
@@ -30,87 +30,85 @@ exports.InstitutionPrincipalDetails = InstitutionPrincipalDetails = __decorate([
|
|
|
30
30
|
], InstitutionPrincipalDetails);
|
|
31
31
|
const InstitutionPrincipalDetailsSchema = mongoose_1.SchemaFactory.createForClass(InstitutionPrincipalDetails);
|
|
32
32
|
exports.InstitutionCName = 'institutions';
|
|
33
|
-
let
|
|
33
|
+
let MInstitution = class MInstitution {
|
|
34
34
|
};
|
|
35
|
-
exports.
|
|
35
|
+
exports.MInstitution = MInstitution;
|
|
36
36
|
__decorate([
|
|
37
37
|
(0, mongoose_1.Prop)({ required: true }),
|
|
38
38
|
__metadata("design:type", String)
|
|
39
|
-
],
|
|
39
|
+
], MInstitution.prototype, "id", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
42
42
|
__metadata("design:type", String)
|
|
43
|
-
],
|
|
43
|
+
], MInstitution.prototype, "tenantId", void 0);
|
|
44
44
|
__decorate([
|
|
45
45
|
(0, mongoose_1.Prop)({ required: true }),
|
|
46
46
|
__metadata("design:type", Number)
|
|
47
|
-
],
|
|
47
|
+
], MInstitution.prototype, "uniqueId", void 0);
|
|
48
48
|
__decorate([
|
|
49
49
|
(0, mongoose_1.Prop)({ required: true, trim: true }),
|
|
50
50
|
__metadata("design:type", String)
|
|
51
|
-
],
|
|
51
|
+
], MInstitution.prototype, "name", void 0);
|
|
52
52
|
__decorate([
|
|
53
53
|
(0, mongoose_1.Prop)({ required: true, trim: true, lowercase: true }),
|
|
54
54
|
__metadata("design:type", String)
|
|
55
|
-
],
|
|
55
|
+
], MInstitution.prototype, "code", void 0);
|
|
56
56
|
__decorate([
|
|
57
57
|
(0, mongoose_1.Prop)({ default: null }),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
|
-
],
|
|
59
|
+
], MInstitution.prototype, "refCode", void 0);
|
|
60
60
|
__decorate([
|
|
61
61
|
(0, mongoose_1.Prop)({ trim: true }),
|
|
62
62
|
__metadata("design:type", String)
|
|
63
|
-
],
|
|
64
|
-
__decorate([
|
|
65
|
-
(0, mongoose_1.Prop)({ default: true }),
|
|
66
|
-
__metadata("design:type", Boolean)
|
|
67
|
-
], Institution.prototype, "canEditAttendance", void 0);
|
|
63
|
+
], MInstitution.prototype, "address", void 0);
|
|
68
64
|
__decorate([
|
|
69
65
|
(0, mongoose_1.Prop)({ trim: true }),
|
|
70
66
|
__metadata("design:type", String)
|
|
71
|
-
],
|
|
67
|
+
], MInstitution.prototype, "recognitionDetails", void 0);
|
|
72
68
|
__decorate([
|
|
73
69
|
(0, mongoose_1.Prop)({ trim: true }),
|
|
74
70
|
__metadata("design:type", String)
|
|
75
|
-
],
|
|
71
|
+
], MInstitution.prototype, "phone", void 0);
|
|
76
72
|
__decorate([
|
|
77
73
|
(0, mongoose_1.Prop)({ trim: true, lowercase: true }),
|
|
78
74
|
__metadata("design:type", String)
|
|
79
|
-
],
|
|
75
|
+
], MInstitution.prototype, "email", void 0);
|
|
80
76
|
__decorate([
|
|
81
77
|
(0, mongoose_1.Prop)(),
|
|
82
78
|
__metadata("design:type", Date)
|
|
83
|
-
],
|
|
79
|
+
], MInstitution.prototype, "updatedAt", void 0);
|
|
84
80
|
__decorate([
|
|
85
81
|
(0, mongoose_1.Prop)(),
|
|
86
82
|
__metadata("design:type", Date)
|
|
87
|
-
],
|
|
83
|
+
], MInstitution.prototype, "createdAt", void 0);
|
|
88
84
|
__decorate([
|
|
89
85
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
90
86
|
__metadata("design:type", String)
|
|
91
|
-
],
|
|
87
|
+
], MInstitution.prototype, "createdById", void 0);
|
|
92
88
|
__decorate([
|
|
93
89
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
94
90
|
__metadata("design:type", String)
|
|
95
|
-
],
|
|
91
|
+
], MInstitution.prototype, "updatedById", void 0);
|
|
96
92
|
__decorate([
|
|
97
93
|
(0, mongoose_1.Prop)({ type: [InstitutionPrincipalDetailsSchema], default: [], set: (0, utils_1.getSetDefaultFn)([]) }),
|
|
98
94
|
__metadata("design:type", Array)
|
|
99
|
-
],
|
|
95
|
+
], MInstitution.prototype, "principals", void 0);
|
|
100
96
|
__decorate([
|
|
101
97
|
(0, mongoose_1.Prop)({ type: media_record_schema_1.MediaRecordSubSchema }),
|
|
102
98
|
__metadata("design:type", media_record_schema_1.MediaRecord)
|
|
103
|
-
],
|
|
99
|
+
], MInstitution.prototype, "image", void 0);
|
|
104
100
|
__decorate([
|
|
105
101
|
(0, mongoose_1.Prop)({ type: media_record_schema_1.MediaRecordSubSchema }),
|
|
106
102
|
__metadata("design:type", media_record_schema_1.MediaRecord)
|
|
107
|
-
],
|
|
103
|
+
], MInstitution.prototype, "imageSquare", void 0);
|
|
108
104
|
__decorate([
|
|
109
105
|
(0, mongoose_1.Prop)({ type: media_record_schema_1.MediaRecordSubSchema }),
|
|
110
106
|
__metadata("design:type", media_record_schema_1.MediaRecord)
|
|
111
|
-
],
|
|
112
|
-
exports.
|
|
107
|
+
], MInstitution.prototype, "reportHeader", void 0);
|
|
108
|
+
exports.MInstitution = MInstitution = __decorate([
|
|
113
109
|
(0, mongoose_1.Schema)({ collection: exports.InstitutionCName, timestamps: true })
|
|
114
|
-
],
|
|
115
|
-
exports.InstitutionSchema = mongoose_1.SchemaFactory.createForClass(
|
|
110
|
+
], MInstitution);
|
|
111
|
+
exports.InstitutionSchema = mongoose_1.SchemaFactory.createForClass(MInstitution);
|
|
112
|
+
exports.InstitutionSchema.index({ id: -1 }, { unique: true });
|
|
113
|
+
exports.convertInstitutionDoc = (0, utils_1.convertDoc)(MInstitution);
|
|
116
114
|
//# sourceMappingURL=institution.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"institution.schema.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/institution.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,u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AAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAEzC,QAAA,qBAAqB,GAAG,IAAA,kBAAU,EAAC,YAAY,CAAC,CAAC"}
|
|
@@ -22,29 +22,38 @@
|
|
|
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
|
+
import { MCourse } from './course.schema';
|
|
26
27
|
export declare const ProgramCName = "programs";
|
|
27
|
-
export
|
|
28
|
-
export declare class Program {
|
|
28
|
+
export declare class MProgram {
|
|
29
29
|
id: string;
|
|
30
|
+
uniqueId: number;
|
|
30
31
|
tenantId: string;
|
|
31
32
|
institutionId: string;
|
|
32
33
|
courseId: string;
|
|
33
|
-
|
|
34
|
-
departmentId: string;
|
|
34
|
+
departmentId?: string;
|
|
35
35
|
branchCode: string;
|
|
36
|
+
refCode: string;
|
|
36
37
|
branchName: string;
|
|
37
38
|
branchDisplay: string;
|
|
38
|
-
|
|
39
|
-
seats: number;
|
|
39
|
+
seats?: number;
|
|
40
40
|
createdById: string;
|
|
41
41
|
updatedById: string;
|
|
42
42
|
updatedAt: Date;
|
|
43
43
|
createdAt: Date;
|
|
44
|
+
course?: MCourse;
|
|
44
45
|
}
|
|
45
|
-
export declare const ProgramSchema: MongooseSchema<
|
|
46
|
+
export declare const ProgramSchema: MongooseSchema<MProgram, import("mongoose").Model<MProgram, any, any, any, import("mongoose").Document<unknown, any, MProgram> & MProgram & {
|
|
46
47
|
_id: import("mongoose").Types.ObjectId;
|
|
47
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions,
|
|
48
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MProgram, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MProgram>> & import("mongoose").FlatRecord<MProgram> & {
|
|
48
49
|
_id: import("mongoose").Types.ObjectId;
|
|
49
50
|
}>;
|
|
51
|
+
export declare const convertProgramDoc: {
|
|
52
|
+
(value: (object | (import("mongoose").Document<unknown, {}, MProgram> & MProgram & {
|
|
53
|
+
_id: import("mongoose").Types.ObjectId;
|
|
54
|
+
}))[]): MProgram[];
|
|
55
|
+
(value: object | (import("mongoose").Document<unknown, {}, MProgram> & MProgram & {
|
|
56
|
+
_id: import("mongoose").Types.ObjectId;
|
|
57
|
+
})): MProgram;
|
|
58
|
+
};
|
|
50
59
|
//# sourceMappingURL=program.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/other-schemas/program.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,qBACa,QAAQ;IAEnB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,UAAU,EAAE,MAAM,CAAC;IAGnB,OAAO,EAAE,MAAM,CAAC;IAGhB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAEhB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,aAAa;;;;EAAyC,CAAC;AAGpE,eAAO,MAAM,iBAAiB;;;;;;;CAAuB,CAAC"}
|
|
@@ -9,75 +9,78 @@ 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.ProgramSchema = exports.
|
|
12
|
+
exports.convertProgramDoc = exports.ProgramSchema = exports.MProgram = exports.ProgramCName = 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
|
exports.ProgramCName = 'programs';
|
|
16
|
-
let
|
|
17
|
+
let MProgram = class MProgram {
|
|
17
18
|
};
|
|
18
|
-
exports.
|
|
19
|
+
exports.MProgram = MProgram;
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, mongoose_1.Prop)({ required: true }),
|
|
21
22
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
23
|
+
], MProgram.prototype, "id", void 0);
|
|
24
|
+
__decorate([
|
|
25
|
+
(0, mongoose_1.Prop)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], MProgram.prototype, "uniqueId", void 0);
|
|
23
28
|
__decorate([
|
|
24
29
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
25
30
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
31
|
+
], MProgram.prototype, "tenantId", void 0);
|
|
27
32
|
__decorate([
|
|
28
33
|
(0, mongoose_1.Prop)({ required: true }),
|
|
29
34
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
35
|
+
], MProgram.prototype, "institutionId", void 0);
|
|
31
36
|
__decorate([
|
|
32
37
|
(0, mongoose_1.Prop)({ required: true }),
|
|
33
38
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, mongoose_1.Prop)(),
|
|
37
|
-
__metadata("design:type", Number)
|
|
38
|
-
], Program.prototype, "uniqueId", void 0);
|
|
39
|
+
], MProgram.prototype, "courseId", void 0);
|
|
39
40
|
__decorate([
|
|
40
41
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
41
42
|
__metadata("design:type", String)
|
|
42
|
-
],
|
|
43
|
+
], MProgram.prototype, "departmentId", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, mongoose_1.Prop)({ required: true }),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
47
|
+
], MProgram.prototype, "branchCode", void 0);
|
|
47
48
|
__decorate([
|
|
48
|
-
(0, mongoose_1.Prop)({
|
|
49
|
+
(0, mongoose_1.Prop)({ default: null }),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
|
-
],
|
|
51
|
+
], MProgram.prototype, "refCode", void 0);
|
|
51
52
|
__decorate([
|
|
52
53
|
(0, mongoose_1.Prop)({ required: true }),
|
|
53
54
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
55
|
+
], MProgram.prototype, "branchName", void 0);
|
|
55
56
|
__decorate([
|
|
56
|
-
(0, mongoose_1.Prop)({
|
|
57
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
57
58
|
__metadata("design:type", String)
|
|
58
|
-
],
|
|
59
|
+
], MProgram.prototype, "branchDisplay", void 0);
|
|
59
60
|
__decorate([
|
|
60
61
|
(0, mongoose_1.Prop)(),
|
|
61
62
|
__metadata("design:type", Number)
|
|
62
|
-
],
|
|
63
|
+
], MProgram.prototype, "seats", void 0);
|
|
63
64
|
__decorate([
|
|
64
65
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
65
66
|
__metadata("design:type", String)
|
|
66
|
-
],
|
|
67
|
+
], MProgram.prototype, "createdById", void 0);
|
|
67
68
|
__decorate([
|
|
68
69
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
69
70
|
__metadata("design:type", String)
|
|
70
|
-
],
|
|
71
|
+
], MProgram.prototype, "updatedById", void 0);
|
|
71
72
|
__decorate([
|
|
72
73
|
(0, mongoose_1.Prop)(),
|
|
73
74
|
__metadata("design:type", Date)
|
|
74
|
-
],
|
|
75
|
+
], MProgram.prototype, "updatedAt", void 0);
|
|
75
76
|
__decorate([
|
|
76
77
|
(0, mongoose_1.Prop)(),
|
|
77
78
|
__metadata("design:type", Date)
|
|
78
|
-
],
|
|
79
|
-
exports.
|
|
79
|
+
], MProgram.prototype, "createdAt", void 0);
|
|
80
|
+
exports.MProgram = MProgram = __decorate([
|
|
80
81
|
(0, mongoose_1.Schema)({ timestamps: true, collection: exports.ProgramCName })
|
|
81
|
-
],
|
|
82
|
-
exports.ProgramSchema = mongoose_1.SchemaFactory.createForClass(
|
|
82
|
+
], MProgram);
|
|
83
|
+
exports.ProgramSchema = mongoose_1.SchemaFactory.createForClass(MProgram);
|
|
84
|
+
exports.ProgramSchema.index({ id: -1 }, { unique: true });
|
|
85
|
+
exports.convertProgramDoc = (0, utils_1.convertDoc)(MProgram);
|
|
83
86
|
//# sourceMappingURL=program.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.schema.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/program.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAyC;AAG5B,QAAA,YAAY,GAAG,UAAU,CAAC;AAGhC,IAAM,QAAQ,GAAd,MAAM,QAAQ;CA+CpB,CAAA;AA/CY,4BAAQ;AAEnB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACd;AAGX;IADC,IAAA,eAAI,GAAE;;0CACU;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC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M,EAAE,IAAI,EAAE,CAAC,CAAC;AAErC,QAAA,iBAAiB,GAAG,IAAA,kBAAU,EAAC,QAAQ,CAAC,CAAC"}
|
|
@@ -22,10 +22,9 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
25
|
+
import { Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
import { MCourse } from './course.schema';
|
|
27
27
|
export declare const QuotaCName = "quotas";
|
|
28
|
-
export type QuotaDocument = HydratedDocument<Quota>;
|
|
29
28
|
export declare class Quota {
|
|
30
29
|
id: string;
|
|
31
30
|
tenantId: string;
|
|
@@ -37,11 +36,19 @@ export declare class Quota {
|
|
|
37
36
|
updatedById: string;
|
|
38
37
|
updatedAt: Date;
|
|
39
38
|
createdAt: Date;
|
|
40
|
-
course
|
|
39
|
+
course?: MCourse;
|
|
41
40
|
}
|
|
42
41
|
export declare const QuotaSchema: MongooseSchema<Quota, import("mongoose").Model<Quota, any, any, any, import("mongoose").Document<unknown, any, Quota> & Quota & {
|
|
43
42
|
_id: import("mongoose").Types.ObjectId;
|
|
44
43
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Quota, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Quota>> & import("mongoose").FlatRecord<Quota> & {
|
|
45
44
|
_id: import("mongoose").Types.ObjectId;
|
|
46
45
|
}>;
|
|
46
|
+
export declare const convertQuotaDoc: {
|
|
47
|
+
(value: (object | (import("mongoose").Document<unknown, {}, Quota> & Quota & {
|
|
48
|
+
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
}))[]): Quota[];
|
|
50
|
+
(value: object | (import("mongoose").Document<unknown, {}, Quota> & Quota & {
|
|
51
|
+
_id: import("mongoose").Types.ObjectId;
|
|
52
|
+
})): Quota;
|
|
53
|
+
};
|
|
47
54
|
//# sourceMappingURL=quota.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/other-schemas/quota.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,eAAO,MAAM,UAAU,WAAW,CAAC;AAEnC,qBACa,KAAK;IAEhB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAEhB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,WAAW;;;;EAAsC,CAAC;AAG/D,eAAO,MAAM,eAAe;;;;;;;CAAoB,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.QuotaSchema = exports.Quota = exports.QuotaCName = void 0;
|
|
12
|
+
exports.convertQuotaDoc = exports.QuotaSchema = exports.Quota = exports.QuotaCName = 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
|
exports.QuotaCName = 'quotas';
|
|
16
17
|
let Quota = class Quota {
|
|
17
18
|
};
|
|
@@ -61,5 +62,5 @@ exports.Quota = Quota = __decorate([
|
|
|
61
62
|
], Quota);
|
|
62
63
|
exports.QuotaSchema = mongoose_1.SchemaFactory.createForClass(Quota);
|
|
63
64
|
exports.QuotaSchema.index({ id: -1 }, { unique: true });
|
|
64
|
-
exports.
|
|
65
|
+
exports.convertQuotaDoc = (0, utils_1.convertDoc)(Quota);
|
|
65
66
|
//# sourceMappingURL=quota.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.schema.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/quota.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAyC;AAG5B,QAAA,UAAU,GAAG,QAAQ,CAAC;AAG5B,IAAM,KAAK,GAAX,MAAM,KAAK;CAgCjB,CAAA;AAhCY,sBAAK;AAEhB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCAC7C;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACH;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACR;AAGjB;IADC,IAAA,eAAI,GAAE;;uCACU;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACZ;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;0CAC1B;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;0CAC1B;AAGpB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;wCAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;wCAAC;gBA7BL,KAAK;IADjB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,kBAAU,EAAE,CAAC;GACxC,KAAK,CAgCjB;AAEY,QAAA,WAAW,GAAG,wBAAa,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAC/D,mBAAW,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAEnC,QAAA,eAAe,GAAG,IAAA,kBAAU,EAAC,KAAK,CAAC,CAAC"}
|
|
@@ -22,10 +22,10 @@
|
|
|
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
|
+
import { MCourse } from './course.schema';
|
|
26
27
|
export declare const SemesterCName = "semesters";
|
|
27
|
-
export
|
|
28
|
-
export declare class Semester {
|
|
28
|
+
export declare class MSemester {
|
|
29
29
|
id: string;
|
|
30
30
|
tenantId: string;
|
|
31
31
|
institutionId: string;
|
|
@@ -41,10 +41,19 @@ export declare class Semester {
|
|
|
41
41
|
updatedById: string;
|
|
42
42
|
createdAt: Date;
|
|
43
43
|
updatedAt: Date;
|
|
44
|
+
course?: MCourse;
|
|
44
45
|
}
|
|
45
|
-
export declare const SemesterSchema: MongooseSchema<
|
|
46
|
+
export declare const SemesterSchema: MongooseSchema<MSemester, import("mongoose").Model<MSemester, any, any, any, import("mongoose").Document<unknown, any, MSemester> & MSemester & {
|
|
46
47
|
_id: import("mongoose").Types.ObjectId;
|
|
47
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions,
|
|
48
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MSemester, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MSemester>> & import("mongoose").FlatRecord<MSemester> & {
|
|
48
49
|
_id: import("mongoose").Types.ObjectId;
|
|
49
50
|
}>;
|
|
51
|
+
export declare const convertSemesterDoc: {
|
|
52
|
+
(value: (object | (import("mongoose").Document<unknown, {}, MSemester> & MSemester & {
|
|
53
|
+
_id: import("mongoose").Types.ObjectId;
|
|
54
|
+
}))[]): MSemester[];
|
|
55
|
+
(value: object | (import("mongoose").Document<unknown, {}, MSemester> & MSemester & {
|
|
56
|
+
_id: import("mongoose").Types.ObjectId;
|
|
57
|
+
})): MSemester;
|
|
58
|
+
};
|
|
50
59
|
//# sourceMappingURL=semester.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semester.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/other-schemas/semester.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEpD,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC,qBACa,SAAS;IAEpB,EAAE,EAAE,MAAM,CAAC;IAGX,QAAQ,EAAE,MAAM,CAAC;IAGjB,aAAa,EAAE,MAAM,CAAC;IAGtB,QAAQ,EAAE,MAAM,CAAC;IAGjB,KAAK,EAAE,MAAM,CAAC;IAGd,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,OAAO,CAAC;IAGpB,YAAY,EAAE,OAAO,CAAC;IAGtB,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAEhB,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,cAAc;;;;EAA0C,CAAC;AAGtE,eAAO,MAAM,kBAAkB;;;;;;;CAAwB,CAAC"}
|
|
@@ -9,75 +9,78 @@ 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.SemesterSchema = exports.
|
|
12
|
+
exports.convertSemesterDoc = exports.SemesterSchema = exports.MSemester = exports.SemesterCName = 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
|
exports.SemesterCName = 'semesters';
|
|
16
|
-
let
|
|
17
|
+
let MSemester = class MSemester {
|
|
17
18
|
};
|
|
18
|
-
exports.
|
|
19
|
+
exports.MSemester = MSemester;
|
|
19
20
|
__decorate([
|
|
20
21
|
(0, mongoose_1.Prop)({ required: true }),
|
|
21
22
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
23
|
+
], MSemester.prototype, "id", void 0);
|
|
23
24
|
__decorate([
|
|
24
25
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
25
26
|
__metadata("design:type", String)
|
|
26
|
-
],
|
|
27
|
+
], MSemester.prototype, "tenantId", void 0);
|
|
27
28
|
__decorate([
|
|
28
29
|
(0, mongoose_1.Prop)({ required: true }),
|
|
29
30
|
__metadata("design:type", String)
|
|
30
|
-
],
|
|
31
|
+
], MSemester.prototype, "institutionId", void 0);
|
|
31
32
|
__decorate([
|
|
32
33
|
(0, mongoose_1.Prop)({ required: true }),
|
|
33
34
|
__metadata("design:type", String)
|
|
34
|
-
],
|
|
35
|
+
], MSemester.prototype, "courseId", void 0);
|
|
35
36
|
__decorate([
|
|
36
37
|
(0, mongoose_1.Prop)({ required: true }),
|
|
37
38
|
__metadata("design:type", Number)
|
|
38
|
-
],
|
|
39
|
+
], MSemester.prototype, "semNo", void 0);
|
|
39
40
|
__decorate([
|
|
40
41
|
(0, mongoose_1.Prop)({ required: true }),
|
|
41
42
|
__metadata("design:type", Number)
|
|
42
|
-
],
|
|
43
|
+
], MSemester.prototype, "year", void 0);
|
|
43
44
|
__decorate([
|
|
44
45
|
(0, mongoose_1.Prop)({ required: true }),
|
|
45
46
|
__metadata("design:type", String)
|
|
46
|
-
],
|
|
47
|
+
], MSemester.prototype, "name", void 0);
|
|
47
48
|
__decorate([
|
|
48
49
|
(0, mongoose_1.Prop)({ required: true }),
|
|
49
50
|
__metadata("design:type", String)
|
|
50
|
-
],
|
|
51
|
+
], MSemester.prototype, "semester", void 0);
|
|
51
52
|
__decorate([
|
|
52
53
|
(0, mongoose_1.Prop)({ required: true }),
|
|
53
54
|
__metadata("design:type", String)
|
|
54
|
-
],
|
|
55
|
+
], MSemester.prototype, "semPrintName", void 0);
|
|
55
56
|
__decorate([
|
|
56
57
|
(0, mongoose_1.Prop)({ default: false }),
|
|
57
58
|
__metadata("design:type", Boolean)
|
|
58
|
-
],
|
|
59
|
+
], MSemester.prototype, "completion", void 0);
|
|
59
60
|
__decorate([
|
|
60
61
|
(0, mongoose_1.Prop)({ default: false }),
|
|
61
62
|
__metadata("design:type", Boolean)
|
|
62
|
-
],
|
|
63
|
+
], MSemester.prototype, "isAnnualExam", void 0);
|
|
63
64
|
__decorate([
|
|
64
65
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
65
66
|
__metadata("design:type", String)
|
|
66
|
-
],
|
|
67
|
+
], MSemester.prototype, "createdById", void 0);
|
|
67
68
|
__decorate([
|
|
68
69
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
69
70
|
__metadata("design:type", String)
|
|
70
|
-
],
|
|
71
|
+
], MSemester.prototype, "updatedById", void 0);
|
|
71
72
|
__decorate([
|
|
72
73
|
(0, mongoose_1.Prop)(),
|
|
73
74
|
__metadata("design:type", Date)
|
|
74
|
-
],
|
|
75
|
+
], MSemester.prototype, "createdAt", void 0);
|
|
75
76
|
__decorate([
|
|
76
77
|
(0, mongoose_1.Prop)(),
|
|
77
78
|
__metadata("design:type", Date)
|
|
78
|
-
],
|
|
79
|
-
exports.
|
|
79
|
+
], MSemester.prototype, "updatedAt", void 0);
|
|
80
|
+
exports.MSemester = MSemester = __decorate([
|
|
80
81
|
(0, mongoose_1.Schema)({ collection: exports.SemesterCName, timestamps: true })
|
|
81
|
-
],
|
|
82
|
-
exports.SemesterSchema = mongoose_1.SchemaFactory.createForClass(
|
|
82
|
+
], MSemester);
|
|
83
|
+
exports.SemesterSchema = mongoose_1.SchemaFactory.createForClass(MSemester);
|
|
84
|
+
exports.SemesterSchema.index({ id: -1 }, { unique: true });
|
|
85
|
+
exports.convertSemesterDoc = (0, utils_1.convertDoc)(MSemester);
|
|
83
86
|
//# sourceMappingURL=semester.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semester.schema.js","sourceRoot":"","sources":["../../../src/domain/other-schemas/semester.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAyC;AAG5B,QAAA,aAAa,GAAG,WAAW,CAAC;AAGlC,IAAM,SAAS,GAAf,MAAM,SAAS;CA+CrB,CAAA;AA/CY,8BAAS;AAEpB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC7C;AAGjB;IADC,IAAA,eAAI,EAAC,EAA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