@campxdev/server-shared 1.3.25 → 1.3.27
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/decorators/batch-validation.decorator.d.ts +3 -0
- package/dist/common/decorators/batch-validation.decorator.d.ts.map +1 -0
- package/dist/common/decorators/batch-validation.decorator.js +27 -0
- package/dist/common/decorators/batch-validation.decorator.js.map +1 -0
- package/dist/common/filters/unhandled-exception.filter.js +2 -3
- package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
- package/dist/common/guards/guard.d.ts +2 -0
- package/dist/common/guards/guard.d.ts.map +1 -1
- package/dist/common/guards/guard.js +6 -1
- package/dist/common/guards/guard.js.map +1 -1
- package/dist/common/index.d.ts +1 -1
- package/dist/common/index.d.ts.map +1 -1
- package/dist/common/index.js +1 -1
- package/dist/common/index.js.map +1 -1
- package/dist/common/interceptors/request.interceptor.d.ts +6 -1
- package/dist/common/interceptors/request.interceptor.d.ts.map +1 -1
- package/dist/common/interceptors/request.interceptor.js +53 -13
- package/dist/common/interceptors/request.interceptor.js.map +1 -1
- package/dist/common/interfaces/context.interface.d.ts +62 -32
- package/dist/common/interfaces/context.interface.d.ts.map +1 -1
- package/dist/common/store/request-store.d.ts +27 -7
- package/dist/common/store/request-store.d.ts.map +1 -1
- package/dist/common/store/request-store.js +96 -23
- package/dist/common/store/request-store.js.map +1 -1
- package/dist/common/store/store.interceptor.js +2 -3
- package/dist/common/store/store.interceptor.js.map +1 -1
- package/dist/domain/db-connection.module.js +2 -3
- package/dist/domain/db-connection.module.js.map +1 -1
- package/dist/domain/entities/evaluator.entity.js +2 -16
- package/dist/domain/entities/evaluator.entity.js.map +1 -1
- package/dist/domain/entities/leads.entity.js +2 -26
- package/dist/domain/entities/leads.entity.js.map +1 -1
- package/dist/domain/entities/profile-permission.entity.d.ts +2 -0
- package/dist/domain/entities/profile-permission.entity.d.ts.map +1 -1
- package/dist/domain/entities/profile-permission.entity.js +7 -12
- package/dist/domain/entities/profile-permission.entity.js.map +1 -1
- package/dist/domain/entities/profile.entity.d.ts +17 -1
- package/dist/domain/entities/profile.entity.d.ts.map +1 -1
- package/dist/domain/entities/profile.entity.js +45 -14
- package/dist/domain/entities/profile.entity.js.map +1 -1
- package/dist/domain/entities/student.entity.d.ts +11 -31
- package/dist/domain/entities/student.entity.d.ts.map +1 -1
- package/dist/domain/entities/student.entity.js +38 -170
- package/dist/domain/entities/student.entity.js.map +1 -1
- package/dist/domain/entities/user.entity.d.ts +0 -3
- package/dist/domain/entities/user.entity.d.ts.map +1 -1
- package/dist/domain/entities/user.entity.js +2 -29
- package/dist/domain/entities/user.entity.js.map +1 -1
- package/dist/domain/index.d.ts +8 -2
- package/dist/domain/index.d.ts.map +1 -1
- package/dist/domain/index.js +8 -2
- package/dist/domain/index.js.map +1 -1
- package/dist/domain/schemas/admission.schema.d.ts +257 -0
- package/dist/domain/schemas/admission.schema.d.ts.map +1 -0
- package/dist/domain/schemas/admission.schema.js +707 -0
- package/dist/domain/schemas/admission.schema.js.map +1 -0
- package/dist/domain/schemas/course.schema.d.ts +54 -0
- package/dist/domain/schemas/course.schema.d.ts.map +1 -0
- package/dist/domain/schemas/course.schema.js +89 -0
- package/dist/domain/schemas/course.schema.js.map +1 -0
- package/dist/domain/schemas/global-users.schema.d.ts +12 -3
- package/dist/domain/schemas/global-users.schema.d.ts.map +1 -1
- package/dist/domain/schemas/global-users.schema.js +46 -23
- package/dist/domain/schemas/global-users.schema.js.map +1 -1
- package/dist/domain/schemas/institution.schema.d.ts +53 -0
- package/dist/domain/schemas/institution.schema.d.ts.map +1 -0
- package/dist/domain/schemas/institution.schema.js +94 -0
- package/dist/domain/schemas/institution.schema.js.map +1 -0
- package/dist/domain/schemas/media-record.schema.d.ts +53 -0
- package/dist/domain/schemas/media-record.schema.d.ts.map +1 -0
- package/dist/domain/schemas/media-record.schema.js +86 -0
- package/dist/domain/schemas/media-record.schema.js.map +1 -0
- package/dist/domain/schemas/program.schema.d.ts +49 -0
- package/dist/domain/schemas/program.schema.d.ts.map +1 -0
- package/dist/domain/schemas/program.schema.js +81 -0
- package/dist/domain/schemas/program.schema.js.map +1 -0
- package/dist/domain/schemas/quota.schema.d.ts +47 -0
- package/dist/domain/schemas/quota.schema.d.ts.map +1 -0
- package/dist/domain/schemas/quota.schema.js +64 -0
- package/dist/domain/schemas/quota.schema.js.map +1 -0
- package/dist/domain/schemas/semester.schema.d.ts +50 -0
- package/dist/domain/schemas/semester.schema.d.ts.map +1 -0
- package/dist/domain/schemas/semester.schema.js +84 -0
- package/dist/domain/schemas/semester.schema.js.map +1 -0
- package/dist/domain/schemas/sub-schemas.schema.d.ts +276 -0
- package/dist/domain/schemas/sub-schemas.schema.d.ts.map +1 -0
- package/dist/domain/schemas/sub-schemas.schema.js +931 -0
- package/dist/domain/schemas/sub-schemas.schema.js.map +1 -0
- package/dist/domain/schemas/tenant.schema.d.ts +89 -35
- package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
- package/dist/domain/schemas/tenant.schema.js +274 -85
- package/dist/domain/schemas/tenant.schema.js.map +1 -1
- package/dist/domain/shared-domain.module.js +2 -3
- package/dist/domain/shared-domain.module.js.map +1 -1
- package/dist/permissions/app-permissions/commute-x-permissions.d.ts +119 -0
- package/dist/permissions/app-permissions/commute-x-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/commute-x-permissions.js +129 -0
- package/dist/permissions/app-permissions/commute-x-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +538 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.js +876 -0
- package/dist/permissions/app-permissions/enroll-x-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/exams-permissions.d.ts +912 -0
- package/dist/permissions/app-permissions/exams-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/exams-permissions.js +1702 -0
- package/dist/permissions/app-permissions/exams-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/hostels-permissions.d.ts +452 -0
- package/dist/permissions/app-permissions/hostels-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/hostels-permissions.js +580 -0
- package/dist/permissions/app-permissions/hostels-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/payments-permissions.d.ts +473 -0
- package/dist/permissions/app-permissions/payments-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/payments-permissions.js +794 -0
- package/dist/permissions/app-permissions/payments-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/people-x-permissions.d.ts +434 -0
- package/dist/permissions/app-permissions/people-x-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/people-x-permissions.js +530 -0
- package/dist/permissions/app-permissions/people-x-permissions.js.map +1 -0
- package/dist/permissions/app-permissions/square-permissions.d.ts +1673 -0
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -0
- package/dist/permissions/app-permissions/square-permissions.js +3024 -0
- package/dist/permissions/app-permissions/square-permissions.js.map +1 -0
- package/dist/permissions/check-permission.guard.d.ts +5 -46
- package/dist/permissions/check-permission.guard.d.ts.map +1 -1
- package/dist/permissions/check-permission.guard.js +14 -8
- package/dist/permissions/check-permission.guard.js.map +1 -1
- package/dist/permissions/index.d.ts +7 -0
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +15 -0
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/permissions.d.ts +8021 -762
- package/dist/permissions/permissions.d.ts.map +1 -1
- package/dist/permissions/permissions.js +94 -1916
- package/dist/permissions/permissions.js.map +1 -1
- package/dist/shared-module/shared.module.d.ts +1 -0
- package/dist/shared-module/shared.module.d.ts.map +1 -1
- package/dist/shared-module/shared.module.js +2 -3
- package/dist/shared-module/shared.module.js.map +1 -1
- package/dist/shared-module/shared.service.d.ts +11 -2
- package/dist/shared-module/shared.service.d.ts.map +1 -1
- package/dist/shared-module/shared.service.js +73 -20
- package/dist/shared-module/shared.service.js.map +1 -1
- package/dist/utils/constants.d.ts +19 -4
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/constants.js +15 -5
- package/dist/utils/constants.js.map +1 -1
- package/dist/utils/utils.d.ts +29 -3
- package/dist/utils/utils.d.ts.map +1 -1
- package/dist/utils/utils.js +132 -12
- package/dist/utils/utils.js.map +1 -1
- package/package.json +1 -1
- package/dist/common/databases/mongoose.repository.d.ts +0 -41
- package/dist/common/databases/mongoose.repository.d.ts.map +0 -1
- package/dist/common/databases/mongoose.repository.js +0 -95
- package/dist/common/databases/mongoose.repository.js.map +0 -1
- package/dist/domain/entities/department.entity.d.ts +0 -10
- package/dist/domain/entities/department.entity.d.ts.map +0 -1
- package/dist/domain/entities/department.entity.js +0 -51
- package/dist/domain/entities/department.entity.js.map +0 -1
- package/dist/domain/entities/program.entity.d.ts +0 -14
- package/dist/domain/entities/program.entity.d.ts.map +0 -1
- package/dist/domain/entities/program.entity.js +0 -71
- package/dist/domain/entities/program.entity.js.map +0 -1
|
@@ -0,0 +1,86 @@
|
|
|
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.MediaRecordSubSchema = exports.MediaRecordSchema = exports.MediaRecord = exports.MediaRecordCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
exports.MediaRecordCName = 'media_records';
|
|
16
|
+
let MediaRecord = exports.MediaRecord = class MediaRecord {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], MediaRecord.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], MediaRecord.prototype, "originalFileName", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], MediaRecord.prototype, "key", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)(),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], MediaRecord.prototype, "type", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], MediaRecord.prototype, "subtype", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)(),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], MediaRecord.prototype, "typeId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)(),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], MediaRecord.prototype, "mediaType", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], MediaRecord.prototype, "mimeType", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)(),
|
|
52
|
+
__metadata("design:type", Number)
|
|
53
|
+
], MediaRecord.prototype, "fileSize", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Mixed, select: false }),
|
|
56
|
+
__metadata("design:type", Object)
|
|
57
|
+
], MediaRecord.prototype, "s3Response", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)(),
|
|
60
|
+
__metadata("design:type", Date)
|
|
61
|
+
], MediaRecord.prototype, "createdAt", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)(),
|
|
64
|
+
__metadata("design:type", Date)
|
|
65
|
+
], MediaRecord.prototype, "updatedAt", void 0);
|
|
66
|
+
exports.MediaRecord = MediaRecord = __decorate([
|
|
67
|
+
(0, mongoose_1.Schema)({
|
|
68
|
+
collection: exports.MediaRecordCName,
|
|
69
|
+
virtuals: true,
|
|
70
|
+
toJSON: { virtuals: true },
|
|
71
|
+
toObject: { virtuals: true },
|
|
72
|
+
})
|
|
73
|
+
], MediaRecord);
|
|
74
|
+
exports.MediaRecordSchema = mongoose_1.SchemaFactory.createForClass(MediaRecord);
|
|
75
|
+
exports.MediaRecordSchema.index({ id: -1 }, { unique: true });
|
|
76
|
+
exports.MediaRecordSchema.index({ key: 1 }, { unique: true });
|
|
77
|
+
exports.MediaRecordSchema.index({ type: 1, subtype: 1, typeId: 1 });
|
|
78
|
+
exports.MediaRecordSchema.virtual('url').get(function () {
|
|
79
|
+
return `${process.env.AWS_S3_BUCKET_BASE_URL}/${this.key}`;
|
|
80
|
+
});
|
|
81
|
+
exports.MediaRecordSubSchema = mongoose_1.SchemaFactory.createForClass(MediaRecord);
|
|
82
|
+
exports.MediaRecordSubSchema.set('_id', false);
|
|
83
|
+
exports.MediaRecordSubSchema.virtual('url').get(function () {
|
|
84
|
+
return `${process.env.AWS_S3_BUCKET_BASE_URL}/${this.key}`;
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=media-record.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"media-record.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/media-record.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAsE;AAEzD,QAAA,gBAAgB,GAAG,eAAe,CAAC;AASzC,IAAM,WAAW,yBAAjB,MAAM,WAAW;CAsCvB,CAAA;AApCC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACd;AAGX;IADC,IAAA,eAAI,GAAE;;qDACkB;AAGzB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wCACb;AAGZ;IADC,IAAA,eAAI,GAAE;;yCACM;AAGb;IADC,IAAA,eAAI,GAAE;;4CACS;AAGhB;IADC,IAAA,eAAI,GAAE;;2CACQ;AAGf;IADC,IAAA,eAAI,GAAE;;8CACW;AAGlB;IADC,IAAA,eAAI,GAAE;;6CACU;AAGjB;IADC,IAAA,eAAI,GAAE;;6CACU;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC;;+CAC1C;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;8CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;8CAAC;sBAnCL,WAAW;IANvB,IAAA,iBAAM,EAAC;QACN,UAAU,EAAE,wBAAgB;QAC5B,QAAQ,EAAE,IAAI;QACd,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;QAC1B,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;KAC7B,CAAC;GACW,WAAW,CAsCvB;AAEY,QAAA,iBAAiB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAC3E,yBAAiB,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AACtD,yBAAiB,CAAC,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AACtD,yBAAiB,CAAC,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAE5D,yBAAiB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;IACnC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;AAC7D,CAAC,CAAC,CAAC;AAEU,QAAA,oBAAoB,GAAG,wBAAa,CAAC,cAAc,CAAC,WAAW,CAAC,CAAC;AAC9E,4BAAoB,CAAC,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;AACvC,4BAAoB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC;IACtC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,sBAAsB,IAAI,IAAI,CAAC,GAAG,EAAE,CAAC;AAC7D,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
export declare const ProgramCName = "programs";
|
|
27
|
+
export type ProgramDocument = HydratedDocument<Program>;
|
|
28
|
+
export declare class Program {
|
|
29
|
+
id: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
institutionId: string;
|
|
32
|
+
courseId: string;
|
|
33
|
+
uniqueId: number;
|
|
34
|
+
departmentId: string;
|
|
35
|
+
branchCode: string;
|
|
36
|
+
branchName: string;
|
|
37
|
+
branchDisplay: string;
|
|
38
|
+
seats: number;
|
|
39
|
+
createdById: string;
|
|
40
|
+
updatedById: string;
|
|
41
|
+
updatedAt: Date;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
}
|
|
44
|
+
export declare const ProgramSchema: MongooseSchema<Program, import("mongoose").Model<Program, any, any, any, import("mongoose").Document<unknown, any, Program> & Program & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Program, import("mongoose").Document<unknown, {}, Program> & Program & {
|
|
47
|
+
_id: import("mongoose").Types.ObjectId;
|
|
48
|
+
}>;
|
|
49
|
+
//# sourceMappingURL=program.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/program.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,YAAY,aAAa,CAAC;AACvC,MAAM,MAAM,eAAe,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;AAExD,qBACa,OAAO;IAElB,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,YAAY,EAAE,MAAM,CAAC;IAGrB,UAAU,EAAE,MAAM,CAAC;IAGnB,UAAU,EAAE,MAAM,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,KAAK,EAAE,MAAM,CAAC;IAGd,WAAW,EAAE,MAAM,CAAC;IAGpB,WAAW,EAAE,MAAM,CAAC;IAGpB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;CACjB;AACD,eAAO,MAAM,aAAa;;;;EAAwC,CAAC"}
|
|
@@ -0,0 +1,81 @@
|
|
|
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.ProgramSchema = exports.Program = exports.ProgramCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
exports.ProgramCName = 'programs';
|
|
16
|
+
let Program = exports.Program = class Program {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], Program.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Program.prototype, "tenantId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Program.prototype, "institutionId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Program.prototype, "courseId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], Program.prototype, "uniqueId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Program.prototype, "departmentId", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Program.prototype, "branchCode", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Program.prototype, "branchName", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Program.prototype, "branchDisplay", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)(),
|
|
56
|
+
__metadata("design:type", Number)
|
|
57
|
+
], Program.prototype, "seats", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], Program.prototype, "createdById", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Program.prototype, "updatedById", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)(),
|
|
68
|
+
__metadata("design:type", Date)
|
|
69
|
+
], Program.prototype, "updatedAt", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, mongoose_1.Prop)(),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Program.prototype, "createdAt", void 0);
|
|
74
|
+
exports.Program = Program = __decorate([
|
|
75
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: exports.ProgramCName })
|
|
76
|
+
], Program);
|
|
77
|
+
exports.ProgramSchema = mongoose_1.SchemaFactory.createForClass(Program);
|
|
78
|
+
exports.ProgramSchema.index({ id: -1 }, { unique: true });
|
|
79
|
+
exports.ProgramSchema.index({ courseId: 1, branchCode: 1 }, { unique: true });
|
|
80
|
+
exports.ProgramSchema.index({ tenantId: 1, institutionId: 1 });
|
|
81
|
+
//# sourceMappingURL=program.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/program.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAsE;AAEzD,QAAA,YAAY,GAAG,UAAU,CAAC;AAIhC,IAAM,OAAO,qBAAb,MAAM,OAAO;CA0CnB,CAAA;AAxCC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCAC7C;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACH;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACR;AAGjB;IADC,IAAA,eAAI,GAAE;;yCACU;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;6CACzB;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACN;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACN;AAGnB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACH;AAGtB;IADC,IAAA,eAAI,GAAE;;sCACO;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;4CAC1B;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;4CAC1B;AAGpB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;0CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;0CAAC;kBAzCL,OAAO;IADnB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE,oBAAY,EAAE,CAAC;GAC1C,OAAO,CA0CnB;AACY,QAAA,aAAa,GAAG,wBAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC;AACnE,qBAAa,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,qBAAa,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AACtE,qBAAa,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
import { Course } from './course.schema';
|
|
27
|
+
export declare const QuotaCName = "quotas";
|
|
28
|
+
export type QuotaDocument = HydratedDocument<Quota>;
|
|
29
|
+
export declare class Quota {
|
|
30
|
+
id: string;
|
|
31
|
+
tenantId: string;
|
|
32
|
+
institutionId: string;
|
|
33
|
+
courseId: string;
|
|
34
|
+
uniqueId: number;
|
|
35
|
+
name: string;
|
|
36
|
+
createdById: string;
|
|
37
|
+
updatedById: string;
|
|
38
|
+
updatedAt: Date;
|
|
39
|
+
createdAt: Date;
|
|
40
|
+
course: Course;
|
|
41
|
+
}
|
|
42
|
+
export declare const QuotaSchema: MongooseSchema<Quota, import("mongoose").Model<Quota, any, any, any, import("mongoose").Document<unknown, any, Quota> & Quota & {
|
|
43
|
+
_id: import("mongoose").Types.ObjectId;
|
|
44
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Quota, import("mongoose").Document<unknown, {}, Quota> & Quota & {
|
|
45
|
+
_id: import("mongoose").Types.ObjectId;
|
|
46
|
+
}>;
|
|
47
|
+
//# sourceMappingURL=quota.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/quota.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC,eAAO,MAAM,UAAU,WAAW,CAAC;AACnC,MAAM,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;AAEpD,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,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,WAAW;;;;EAAsC,CAAC"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.QuotaSchema = exports.Quota = exports.QuotaCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
exports.QuotaCName = 'quotas';
|
|
16
|
+
let Quota = exports.Quota = class Quota {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], Quota.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Quota.prototype, "tenantId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Quota.prototype, "institutionId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Quota.prototype, "courseId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)(),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], Quota.prototype, "uniqueId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], Quota.prototype, "name", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Quota.prototype, "createdById", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Quota.prototype, "updatedById", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)(),
|
|
52
|
+
__metadata("design:type", Date)
|
|
53
|
+
], Quota.prototype, "updatedAt", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)(),
|
|
56
|
+
__metadata("design:type", Date)
|
|
57
|
+
], Quota.prototype, "createdAt", void 0);
|
|
58
|
+
exports.Quota = Quota = __decorate([
|
|
59
|
+
(0, mongoose_1.Schema)({ timestamps: true, collection: exports.QuotaCName })
|
|
60
|
+
], Quota);
|
|
61
|
+
exports.QuotaSchema = mongoose_1.SchemaFactory.createForClass(Quota);
|
|
62
|
+
exports.QuotaSchema.index({ id: -1 }, { unique: true });
|
|
63
|
+
exports.QuotaSchema.index({ tenantId: 1, institutionId: 1, courseId: 1, name: 1 }, { unique: true });
|
|
64
|
+
//# sourceMappingURL=quota.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quota.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/quota.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAsE;AAGzD,QAAA,UAAU,GAAG,QAAQ,CAAC;AAI5B,IAAM,KAAK,mBAAX,MAAM,KAAK;CAgCjB,CAAA;AA9BC;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;AAChD,mBAAW,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
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 { HydratedDocument, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
export declare const SemesterCName = "semesters";
|
|
27
|
+
export type SemesterDocument = HydratedDocument<Semester>;
|
|
28
|
+
export declare class Semester {
|
|
29
|
+
id: string;
|
|
30
|
+
tenantId: string;
|
|
31
|
+
institutionId: string;
|
|
32
|
+
courseId: string;
|
|
33
|
+
semNo: number;
|
|
34
|
+
year: number;
|
|
35
|
+
name: string;
|
|
36
|
+
semester: string;
|
|
37
|
+
semPrintName: string;
|
|
38
|
+
completion: boolean;
|
|
39
|
+
isAnnualExam: boolean;
|
|
40
|
+
createdById: string;
|
|
41
|
+
updatedById: string;
|
|
42
|
+
createdAt: Date;
|
|
43
|
+
updatedAt: Date;
|
|
44
|
+
}
|
|
45
|
+
export declare const SemesterSchema: MongooseSchema<Semester, import("mongoose").Model<Semester, any, any, any, import("mongoose").Document<unknown, any, Semester> & Semester & {
|
|
46
|
+
_id: import("mongoose").Types.ObjectId;
|
|
47
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Semester, import("mongoose").Document<unknown, {}, Semester> & Semester & {
|
|
48
|
+
_id: import("mongoose").Types.ObjectId;
|
|
49
|
+
}>;
|
|
50
|
+
//# sourceMappingURL=semester.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semester.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/semester.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAEtE,eAAO,MAAM,aAAa,cAAc,CAAC;AACzC,MAAM,MAAM,gBAAgB,GAAG,gBAAgB,CAAC,QAAQ,CAAC,CAAC;AAE1D,qBACa,QAAQ;IAEnB,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;CACjB;AACD,eAAO,MAAM,cAAc;;;;EAAyC,CAAC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
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.SemesterSchema = exports.Semester = exports.SemesterCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
exports.SemesterCName = 'semesters';
|
|
16
|
+
let Semester = exports.Semester = class Semester {
|
|
17
|
+
};
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
20
|
+
__metadata("design:type", String)
|
|
21
|
+
], Semester.prototype, "id", void 0);
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId, required: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], Semester.prototype, "tenantId", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], Semester.prototype, "institutionId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], Semester.prototype, "courseId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
36
|
+
__metadata("design:type", Number)
|
|
37
|
+
], Semester.prototype, "semNo", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
40
|
+
__metadata("design:type", Number)
|
|
41
|
+
], Semester.prototype, "year", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], Semester.prototype, "name", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], Semester.prototype, "semester", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], Semester.prototype, "semPrintName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
56
|
+
__metadata("design:type", Boolean)
|
|
57
|
+
], Semester.prototype, "completion", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
60
|
+
__metadata("design:type", Boolean)
|
|
61
|
+
], Semester.prototype, "isAnnualExam", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], Semester.prototype, "createdById", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], Semester.prototype, "updatedById", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, mongoose_1.Prop)(),
|
|
72
|
+
__metadata("design:type", Date)
|
|
73
|
+
], Semester.prototype, "createdAt", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, mongoose_1.Prop)(),
|
|
76
|
+
__metadata("design:type", Date)
|
|
77
|
+
], Semester.prototype, "updatedAt", void 0);
|
|
78
|
+
exports.Semester = Semester = __decorate([
|
|
79
|
+
(0, mongoose_1.Schema)({ collection: exports.SemesterCName, timestamps: true })
|
|
80
|
+
], Semester);
|
|
81
|
+
exports.SemesterSchema = mongoose_1.SchemaFactory.createForClass(Semester);
|
|
82
|
+
exports.SemesterSchema.index({ id: 1 }, { unique: true });
|
|
83
|
+
exports.SemesterSchema.index({ courseId: 1, semNo: 1 }, { unique: true });
|
|
84
|
+
//# sourceMappingURL=semester.schema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"semester.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/semester.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAsE;AAEzD,QAAA,aAAa,GAAG,WAAW,CAAC;AAIlC,IAAM,QAAQ,sBAAd,MAAM,QAAQ;CA6CpB,CAAA;AA3CC;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oCACd;AAGX;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,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,CAAC;;0CACR;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uCACX;AAGd;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACZ;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sCACZ;AAGb;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACR;AAGjB;IADC,IAAA,eAAI,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACJ;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;4CACL;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;;8CACH;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;6CAC1B;AAGpB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;6CAC1B;AAGpB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;2CAAC;AAGhB;IADC,IAAA,eAAI,GAAE;8BACI,IAAI;2CAAC;mBA5CL,QAAQ;IADpB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,qBAAa,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;GAC3C,QAAQ,CA6CpB;AACY,QAAA,cAAc,GAAG,wBAAa,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACrE,sBAAc,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;AAClD,sBAAc,CAAC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC"}
|