@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
|
@@ -22,13 +22,30 @@
|
|
|
22
22
|
/// <reference types="mongoose/types/validation" />
|
|
23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import {
|
|
26
|
-
|
|
25
|
+
import { Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
export declare class MentorDetails {
|
|
27
|
+
noOfStudents: number;
|
|
28
|
+
totalSessions: number;
|
|
29
|
+
averageRating: number;
|
|
30
|
+
mentorshipTopicIds: string[];
|
|
31
|
+
areasOfExpertise: string[];
|
|
32
|
+
}
|
|
33
|
+
export declare class StudentDetails {
|
|
34
|
+
studentAltMobile: string;
|
|
35
|
+
parentName: string;
|
|
36
|
+
parentMobile: string;
|
|
37
|
+
fatherName: string;
|
|
38
|
+
motherName: string;
|
|
39
|
+
address: string;
|
|
40
|
+
}
|
|
27
41
|
export declare const GlobalUserCName = "global_users";
|
|
28
|
-
export declare class GlobalUser
|
|
42
|
+
export declare class GlobalUser {
|
|
43
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
44
|
+
id: string;
|
|
29
45
|
tenantId: string;
|
|
30
46
|
institutionIds: number[];
|
|
31
47
|
userId: number;
|
|
48
|
+
employeeId: string;
|
|
32
49
|
username: string;
|
|
33
50
|
email: string;
|
|
34
51
|
isCounsellor: boolean;
|
|
@@ -52,9 +69,17 @@ export declare class GlobalUser extends Document {
|
|
|
52
69
|
createdBy: string;
|
|
53
70
|
updatedBy: string;
|
|
54
71
|
}
|
|
55
|
-
export declare const GlobalUserSchema: MongooseSchema<GlobalUser, import("mongoose").Model<GlobalUser, any, any, any, Document<unknown, any, GlobalUser> & GlobalUser & {
|
|
56
|
-
_id:
|
|
57
|
-
}
|
|
58
|
-
_id:
|
|
59
|
-
}
|
|
72
|
+
export declare const GlobalUserSchema: MongooseSchema<GlobalUser, import("mongoose").Model<GlobalUser, any, any, any, import("mongoose").Document<unknown, any, GlobalUser> & GlobalUser & Required<{
|
|
73
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
74
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, GlobalUser, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<GlobalUser>> & import("mongoose").FlatRecord<GlobalUser> & Required<{
|
|
75
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
76
|
+
}>>;
|
|
77
|
+
export declare const convertGlobalUserDoc: {
|
|
78
|
+
(value: (object | (import("mongoose").Document<unknown, {}, GlobalUser> & GlobalUser & Required<{
|
|
79
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
80
|
+
}>))[]): GlobalUser[];
|
|
81
|
+
(value: object | (import("mongoose").Document<unknown, {}, GlobalUser> & GlobalUser & Required<{
|
|
82
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
83
|
+
}>)): GlobalUser;
|
|
84
|
+
};
|
|
60
85
|
//# sourceMappingURL=global-users.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-users.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/global-users.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"global-users.schema.d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E,MAAM,CAAC;IAGtB,cAAc,EAAE,cAAc,CAAC;IAG/B,YAAY,EAAE,IAAI,CAAC;IAGnB,aAAa,EAAE,MAAM,CAAC;IAGtB,aAAa,EAAE,MAAM,EAAE,CAAC;IAGxB,KAAK,EAAE,MAAM,EAAE,CAAC;IAGhB,QAAQ,EAAE,OAAO,CAAC;IAGlB,aAAa,EAAE,aAAa,CAAC;IAG7B,SAAS,EAAE,MAAM,CAAC;IAGlB,SAAS,EAAE,MAAM,CAAC;CACnB;AACD,eAAO,MAAM,gBAAgB;;;;GAA2C,CAAC;AACzE,eAAO,MAAM,oBAAoB;;;;;;;CAAwC,CAAC"}
|
|
@@ -9,13 +9,70 @@ 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.GlobalUserSchema = exports.GlobalUser = exports.GlobalUserCName = void 0;
|
|
12
|
+
exports.convertGlobalUserDoc = exports.GlobalUserSchema = exports.GlobalUser = exports.GlobalUserCName = exports.StudentDetails = exports.MentorDetails = 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
|
-
|
|
16
|
+
let MentorDetails = class MentorDetails {
|
|
17
|
+
};
|
|
18
|
+
exports.MentorDetails = MentorDetails;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
21
|
+
__metadata("design:type", Number)
|
|
22
|
+
], MentorDetails.prototype, "noOfStudents", void 0);
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
25
|
+
__metadata("design:type", Number)
|
|
26
|
+
], MentorDetails.prototype, "totalSessions", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ default: 0 }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], MentorDetails.prototype, "averageRating", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ default: [], type: [mongoose_2.Schema.Types.ObjectId] }),
|
|
33
|
+
__metadata("design:type", Array)
|
|
34
|
+
], MentorDetails.prototype, "mentorshipTopicIds", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ default: [] }),
|
|
37
|
+
__metadata("design:type", Array)
|
|
38
|
+
], MentorDetails.prototype, "areasOfExpertise", void 0);
|
|
39
|
+
exports.MentorDetails = MentorDetails = __decorate([
|
|
40
|
+
(0, mongoose_1.Schema)({ id: false, timestamps: false, _id: false })
|
|
41
|
+
], MentorDetails);
|
|
42
|
+
const MentorDetailsSchema = mongoose_1.SchemaFactory.createForClass(MentorDetails);
|
|
43
|
+
let StudentDetails = class StudentDetails {
|
|
44
|
+
};
|
|
45
|
+
exports.StudentDetails = StudentDetails;
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, mongoose_1.Prop)(),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], StudentDetails.prototype, "studentAltMobile", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, mongoose_1.Prop)(),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], StudentDetails.prototype, "parentName", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, mongoose_1.Prop)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], StudentDetails.prototype, "parentMobile", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, mongoose_1.Prop)(),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], StudentDetails.prototype, "fatherName", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, mongoose_1.Prop)(),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], StudentDetails.prototype, "motherName", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, mongoose_1.Prop)(),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], StudentDetails.prototype, "address", void 0);
|
|
70
|
+
exports.StudentDetails = StudentDetails = __decorate([
|
|
71
|
+
(0, mongoose_1.Schema)({ id: false })
|
|
72
|
+
], StudentDetails);
|
|
73
|
+
const StudentDetailsSchema = mongoose_1.SchemaFactory.createForClass(StudentDetails);
|
|
17
74
|
exports.GlobalUserCName = 'global_users';
|
|
18
|
-
let GlobalUser = class GlobalUser
|
|
75
|
+
let GlobalUser = class GlobalUser {
|
|
19
76
|
};
|
|
20
77
|
exports.GlobalUser = GlobalUser;
|
|
21
78
|
__decorate([
|
|
@@ -30,6 +87,10 @@ __decorate([
|
|
|
30
87
|
(0, mongoose_1.Prop)(),
|
|
31
88
|
__metadata("design:type", Number)
|
|
32
89
|
], GlobalUser.prototype, "userId", void 0);
|
|
90
|
+
__decorate([
|
|
91
|
+
(0, mongoose_1.Prop)(),
|
|
92
|
+
__metadata("design:type", String)
|
|
93
|
+
], GlobalUser.prototype, "employeeId", void 0);
|
|
33
94
|
__decorate([
|
|
34
95
|
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
35
96
|
__metadata("design:type", String)
|
|
@@ -83,8 +144,8 @@ __decorate([
|
|
|
83
144
|
__metadata("design:type", String)
|
|
84
145
|
], GlobalUser.prototype, "personalEmail", void 0);
|
|
85
146
|
__decorate([
|
|
86
|
-
(0, mongoose_1.Prop)({ type:
|
|
87
|
-
__metadata("design:type",
|
|
147
|
+
(0, mongoose_1.Prop)({ type: StudentDetailsSchema }),
|
|
148
|
+
__metadata("design:type", StudentDetails)
|
|
88
149
|
], GlobalUser.prototype, "studentDetails", void 0);
|
|
89
150
|
__decorate([
|
|
90
151
|
(0, mongoose_1.Prop)({ required: false }),
|
|
@@ -107,8 +168,8 @@ __decorate([
|
|
|
107
168
|
__metadata("design:type", Boolean)
|
|
108
169
|
], GlobalUser.prototype, "isMentor", void 0);
|
|
109
170
|
__decorate([
|
|
110
|
-
(0, mongoose_1.Prop)({ type:
|
|
111
|
-
__metadata("design:type",
|
|
171
|
+
(0, mongoose_1.Prop)({ type: MentorDetailsSchema }),
|
|
172
|
+
__metadata("design:type", MentorDetails)
|
|
112
173
|
], GlobalUser.prototype, "mentorDetails", void 0);
|
|
113
174
|
__decorate([
|
|
114
175
|
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
@@ -122,4 +183,5 @@ exports.GlobalUser = GlobalUser = __decorate([
|
|
|
122
183
|
(0, mongoose_1.Schema)({ timestamps: true, id: true, collection: exports.GlobalUserCName })
|
|
123
184
|
], GlobalUser);
|
|
124
185
|
exports.GlobalUserSchema = mongoose_1.SchemaFactory.createForClass(GlobalUser);
|
|
186
|
+
exports.convertGlobalUserDoc = (0, utils_1.convertDoc)(GlobalUser, { _id: true });
|
|
125
187
|
//# sourceMappingURL=global-users.schema.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-users.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/global-users.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"global-users.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/global-users.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAmD;AAG5C,IAAM,aAAa,GAAnB,MAAM,aAAa;CAezB,CAAA;AAfY,sCAAa;AAExB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;mDACA;AAGrB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACC;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;oDACC;AAGtB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EA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K,CAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;iDACrC;AAGxB;IADC,IAAA,eAAI,EAAC,EAAE,OAAO,EAAE,EAAE,EAAE,CAAC;;yCACN;AAGhB;IADC,IAAA,eAAI,GAAE;;4CACW;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,mBAAmB,EAAE,CAAC;8BACrB,aAAa;iDAAC;AAG7B;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;6CAC5B;AAGlB;IADC,IAAA,eAAI,EAAC,EAAE,IAAI,EAAE,iBAAc,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC;;6CAC5B;qBAjFP,UAAU;IADtB,IAAA,iBAAM,EAAC,EAAE,UAAU,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,uBAAe,EAAE,CAAC;GACvD,UAAU,CAkFtB;AACY,QAAA,gBAAgB,GAAG,wBAAa,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;AAC5D,QAAA,oBAAoB,GAAG,IAAA,kBAAU,EAAC,UAAU,EAAE,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC,CAAC"}
|
|
@@ -22,9 +22,8 @@
|
|
|
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
|
export declare const MediaRecordCName = "media_records";
|
|
27
|
-
export type MediaRecordDocument = HydratedDocument<MediaRecord>;
|
|
28
27
|
export declare class MediaRecord {
|
|
29
28
|
id: string;
|
|
30
29
|
originalFileName: string;
|
|
@@ -45,6 +44,14 @@ export declare const MediaRecordSchema: MongooseSchema<MediaRecord, import("mong
|
|
|
45
44
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MediaRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MediaRecord>> & import("mongoose").FlatRecord<MediaRecord> & {
|
|
46
45
|
_id: import("mongoose").Types.ObjectId;
|
|
47
46
|
}>;
|
|
47
|
+
export declare const convertMediaRecordDoc: {
|
|
48
|
+
(value: (object | (import("mongoose").Document<unknown, {}, MediaRecord> & MediaRecord & {
|
|
49
|
+
_id: import("mongoose").Types.ObjectId;
|
|
50
|
+
}))[]): MediaRecord[];
|
|
51
|
+
(value: object | (import("mongoose").Document<unknown, {}, MediaRecord> & MediaRecord & {
|
|
52
|
+
_id: import("mongoose").Types.ObjectId;
|
|
53
|
+
})): MediaRecord;
|
|
54
|
+
};
|
|
48
55
|
export declare const MediaRecordSubSchema: MongooseSchema<MediaRecord, import("mongoose").Model<MediaRecord, any, any, any, import("mongoose").Document<unknown, any, MediaRecord> & MediaRecord & {
|
|
49
56
|
_id: import("mongoose").Types.ObjectId;
|
|
50
57
|
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, MediaRecord, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<MediaRecord>> & import("mongoose").FlatRecord<MediaRecord> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-record.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/media-record.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"media-record.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/media-record.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,MAAM,UAAU,CAAC;AAGpD,eAAO,MAAM,gBAAgB,kBAAkB,CAAC;AAEhD,qBAMa,WAAW;IAEtB,EAAE,EAAE,MAAM,CAAC;IAGX,gBAAgB,EAAE,MAAM,CAAC;IAGzB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,OAAO,EAAE,MAAM,CAAC;IAGhB,MAAM,EAAE,MAAM,CAAC;IAGf,SAAS,EAAE,MAAM,CAAC;IAGlB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,GAAG,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAGhB,SAAS,EAAE,IAAI,CAAC;IAEhB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,iBAAiB;;;;EAA4C,CAAC;AAS3E,eAAO,MAAM,qBAAqB;;;;;;;CAA0B,CAAC;AAE7D,eAAO,MAAM,oBAAoB;;;;EAA4C,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.MediaRecordSubSchema = exports.MediaRecordSchema = exports.MediaRecord = exports.MediaRecordCName = void 0;
|
|
12
|
+
exports.MediaRecordSubSchema = exports.convertMediaRecordDoc = exports.MediaRecordSchema = exports.MediaRecord = exports.MediaRecordCName = 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.MediaRecordCName = 'media_records';
|
|
16
17
|
let MediaRecord = class MediaRecord {
|
|
17
18
|
};
|
|
@@ -79,6 +80,7 @@ exports.MediaRecordSchema.index({ type: 1, subtype: 1, typeId: 1 });
|
|
|
79
80
|
exports.MediaRecordSchema.virtual('url').get(function () {
|
|
80
81
|
return `${process.env.AWS_S3_BUCKET_BASE_URL}/${this.key}`;
|
|
81
82
|
});
|
|
83
|
+
exports.convertMediaRecordDoc = (0, utils_1.convertDoc)(MediaRecord);
|
|
82
84
|
exports.MediaRecordSubSchema = mongoose_1.SchemaFactory.createForClass(MediaRecord);
|
|
83
85
|
exports.MediaRecordSubSchema.set('_id', false);
|
|
84
86
|
exports.MediaRecordSubSchema.virtual('url').get(function () {
|
|
@@ -1 +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,
|
|
1
|
+
{"version":3,"file":"media-record.schema.js","sourceRoot":"","sources":["../../../src/domain/schemas/media-record.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,+CAA+D;AAC/D,uCAAoD;AACpD,uCAAyC;AAE5B,QAAA,gBAAgB,GAAG,eAAe,CAAC;AAQzC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAsCvB,CAAA;AAtCY,kCAAW;AAEtB;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,iBA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23
23
|
/// <reference types="mongoose/types/virtuals" />
|
|
24
24
|
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import {
|
|
26
|
-
export declare class EasyWDMSConfig
|
|
25
|
+
import { Schema as MongooseSchema, Types } from 'mongoose';
|
|
26
|
+
export declare class EasyWDMSConfig {
|
|
27
27
|
host: string;
|
|
28
28
|
port: number;
|
|
29
29
|
username: string;
|
|
@@ -31,7 +31,7 @@ export declare class EasyWDMSConfig extends Document {
|
|
|
31
31
|
database: string;
|
|
32
32
|
baseApiUrl: string;
|
|
33
33
|
}
|
|
34
|
-
export declare class SMTPConfig
|
|
34
|
+
export declare class SMTPConfig {
|
|
35
35
|
host: string;
|
|
36
36
|
port: number;
|
|
37
37
|
username: string;
|
|
@@ -39,16 +39,16 @@ export declare class SMTPConfig extends Document {
|
|
|
39
39
|
from: string;
|
|
40
40
|
secure: boolean;
|
|
41
41
|
}
|
|
42
|
-
export declare class TextLocalConfig
|
|
42
|
+
export declare class TextLocalConfig {
|
|
43
43
|
isEnabled: boolean;
|
|
44
44
|
apiKey: string;
|
|
45
45
|
sender: string;
|
|
46
46
|
}
|
|
47
|
-
export declare class RazorpayConfig
|
|
47
|
+
export declare class RazorpayConfig {
|
|
48
48
|
key: string;
|
|
49
49
|
secret: string;
|
|
50
50
|
}
|
|
51
|
-
export declare class PaytmConfig
|
|
51
|
+
export declare class PaytmConfig {
|
|
52
52
|
merchantId: string;
|
|
53
53
|
merchantKey: string;
|
|
54
54
|
industryType: string;
|
|
@@ -60,23 +60,23 @@ export declare class PaytmConfig extends Document {
|
|
|
60
60
|
accountNumber: string;
|
|
61
61
|
accountName: string;
|
|
62
62
|
}
|
|
63
|
-
export declare class AirPayConfig
|
|
63
|
+
export declare class AirPayConfig {
|
|
64
64
|
merchantId: string;
|
|
65
65
|
username: string;
|
|
66
66
|
password: string;
|
|
67
67
|
secretKey: string;
|
|
68
68
|
}
|
|
69
|
-
export declare class BillDeskConfig
|
|
69
|
+
export declare class BillDeskConfig {
|
|
70
70
|
merchantId: string;
|
|
71
71
|
securityId: string;
|
|
72
72
|
checksumKey: string;
|
|
73
73
|
}
|
|
74
|
-
export declare class BillDeskV2Config
|
|
74
|
+
export declare class BillDeskV2Config {
|
|
75
75
|
merchantId: string;
|
|
76
76
|
securityId: string;
|
|
77
77
|
checksumKey: string;
|
|
78
78
|
}
|
|
79
|
-
export declare class GrayQuestConfig
|
|
79
|
+
export declare class GrayQuestConfig {
|
|
80
80
|
clientId: string;
|
|
81
81
|
clientSecret: string;
|
|
82
82
|
apiKey: string;
|
|
@@ -90,7 +90,9 @@ export declare const PaymentCredentialsTypes: {
|
|
|
90
90
|
BILL_DESK_V2: string;
|
|
91
91
|
GRAY_QUEST: string;
|
|
92
92
|
};
|
|
93
|
-
export declare class PaymentCredentials
|
|
93
|
+
export declare class PaymentCredentials {
|
|
94
|
+
_id: MongooseSchema.Types.ObjectId | Types.ObjectId;
|
|
95
|
+
id: string;
|
|
94
96
|
type: string;
|
|
95
97
|
paymentFeeChargesId?: string;
|
|
96
98
|
razorpayConfig?: RazorpayConfig;
|
|
@@ -100,7 +102,7 @@ export declare class PaymentCredentials extends Document {
|
|
|
100
102
|
billDeskV2Config?: BillDeskV2Config;
|
|
101
103
|
grayQuestConfig?: GrayQuestConfig;
|
|
102
104
|
}
|
|
103
|
-
export declare class TenantEnvironment
|
|
105
|
+
export declare class TenantEnvironment {
|
|
104
106
|
s3BucketName: string;
|
|
105
107
|
sentryDsn?: string;
|
|
106
108
|
clientName?: string;
|
|
@@ -112,28 +114,39 @@ export declare class TenantEnvironment extends Document {
|
|
|
112
114
|
razorpaySecret?: string;
|
|
113
115
|
}
|
|
114
116
|
export declare const TenantCName = "tenants";
|
|
115
|
-
export declare class Tenant
|
|
117
|
+
export declare class Tenant {
|
|
118
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
119
|
+
id: string;
|
|
116
120
|
name: string;
|
|
121
|
+
clientName: string;
|
|
117
122
|
subDomain: string;
|
|
118
123
|
database: string;
|
|
119
124
|
institutionType: string;
|
|
120
|
-
|
|
121
|
-
|
|
125
|
+
masterInstitutionId?: string;
|
|
126
|
+
masterInstitutionUniqueId?: number;
|
|
127
|
+
paymentCredentials: PaymentCredentials[];
|
|
128
|
+
defaultPaymentCredentials?: string;
|
|
122
129
|
easyWDMSConfig: EasyWDMSConfig;
|
|
123
130
|
smtpConfig: SMTPConfig;
|
|
124
131
|
textLocalConfig: TextLocalConfig;
|
|
125
|
-
paymentCredentials: PaymentCredentials[];
|
|
126
|
-
defaultPaymentCredentials: string;
|
|
127
132
|
hasInActivityCheck: boolean;
|
|
128
133
|
isHomePageEnabled: boolean;
|
|
129
134
|
inActivityCheckTime: number;
|
|
130
|
-
|
|
131
|
-
masterInstitutionUniqueId: number;
|
|
135
|
+
twoFactorAuthEnabled: boolean;
|
|
132
136
|
enablePaymentsRevenueFrom: Date;
|
|
137
|
+
env: TenantEnvironment;
|
|
133
138
|
}
|
|
134
|
-
export declare const TenantSchema: MongooseSchema<Tenant, import("mongoose").Model<Tenant, any, any, any, Document<unknown, any, Tenant> & Tenant & {
|
|
135
|
-
_id:
|
|
136
|
-
}
|
|
137
|
-
_id:
|
|
138
|
-
}
|
|
139
|
+
export declare const TenantSchema: MongooseSchema<Tenant, import("mongoose").Model<Tenant, any, any, any, import("mongoose").Document<unknown, any, Tenant> & Tenant & Required<{
|
|
140
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
141
|
+
}>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Tenant, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Tenant>> & import("mongoose").FlatRecord<Tenant> & Required<{
|
|
142
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
143
|
+
}>>;
|
|
144
|
+
export declare const convertTenantDoc: {
|
|
145
|
+
(value: (object | (import("mongoose").Document<unknown, {}, Tenant> & Tenant & Required<{
|
|
146
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
147
|
+
}>))[]): Tenant[];
|
|
148
|
+
(value: object | (import("mongoose").Document<unknown, {}, Tenant> & Tenant & Required<{
|
|
149
|
+
_id: MongooseSchema.Types.ObjectId;
|
|
150
|
+
}>)): Tenant;
|
|
151
|
+
};
|
|
139
152
|
//# sourceMappingURL=tenant.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tenant.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/tenant.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tenant.schema.d.ts","sourceRoot":"","sources":["../../../src/domain/schemas/tenant.schema.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,OAAO,EAAE,MAAM,IAAI,cAAc,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAG3D,qBACa,cAAc;IAEzB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,qBACa,UAAU;IAErB,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,CAAC;IAGjB,QAAQ,EAAE,MAAM,CAAC;IAGjB,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,OAAO,CAAC;CACjB;AAGD,qBACa,eAAe;IAE1B,SAAS,EAAE,OAAO,CAAC;IAGnB,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,qBACa,cAAc;IAEzB,GAAG,EAAE,MAAM,CAAC;IAGZ,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,qBACa,WAAW;IAEtB,UAAU,EAAE,MAAM,CAAC;IAGnB,WAAW,EAAE,MA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