@campxdev/server-shared 1.1.21 → 1.1.22-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/config/mongo.config.d.ts +3 -3
- package/dist/common/config/mongo.config.js +23 -23
- package/dist/common/databases/mongoose.repository.d.ts +40 -40
- package/dist/common/databases/mongoose.repository.js +94 -94
- package/dist/common/decorators/request.decorators.d.ts +5 -5
- package/dist/common/decorators/request.decorators.js +36 -36
- package/dist/common/decorators/time-validation.decorator.d.ts +2 -2
- package/dist/common/decorators/time-validation.decorator.js +26 -26
- package/dist/common/filters/unhandled-exception.filter.d.ts +4 -4
- package/dist/common/filters/unhandled-exception.filter.js +38 -38
- package/dist/common/guards/guard.d.ts +8 -8
- package/dist/common/guards/guard.js +24 -24
- package/dist/common/index.d.ts +11 -11
- package/dist/common/index.js +27 -27
- package/dist/common/interceptors/request.interceptor.d.ts +17 -17
- package/dist/common/interceptors/request.interceptor.js +132 -132
- package/dist/common/interfaces/context.interface.d.ts +102 -102
- package/dist/common/interfaces/context.interface.js +2 -2
- package/dist/common/store/request-store.d.ts +32 -32
- package/dist/common/store/request-store.js +125 -125
- package/dist/common/store/store-config.d.ts +6 -6
- package/dist/common/store/store-config.js +23 -23
- package/dist/common/store/store.interceptor.d.ts +5 -5
- package/dist/common/store/store.interceptor.js +37 -37
- package/dist/domain/db-connection.module.d.ts +3 -3
- package/dist/domain/db-connection.module.js +29 -29
- package/dist/domain/entities/department.entity.d.ts +9 -9
- package/dist/domain/entities/department.entity.js +50 -50
- package/dist/domain/entities/evaluator.entity.d.ts +17 -17
- package/dist/domain/entities/evaluator.entity.js +112 -112
- package/dist/domain/entities/leads.entity.d.ts +26 -26
- package/dist/domain/entities/leads.entity.js +161 -161
- package/dist/domain/entities/profile-permission.entity.d.ts +13 -13
- package/dist/domain/entities/profile-permission.entity.js +70 -70
- package/dist/domain/entities/profile.entity.d.ts +25 -25
- package/dist/domain/entities/profile.entity.js +98 -98
- package/dist/domain/entities/program.entity.d.ts +13 -13
- package/dist/domain/entities/program.entity.js +70 -70
- package/dist/domain/entities/student.entity.d.ts +57 -57
- package/dist/domain/entities/student.entity.js +279 -279
- package/dist/domain/entities/user.entity.d.ts +23 -23
- package/dist/domain/entities/user.entity.js +147 -147
- package/dist/domain/index.d.ts +12 -12
- package/dist/domain/index.js +28 -28
- package/dist/domain/schemas/global-users.schema.d.ts +58 -58
- package/dist/domain/schemas/global-users.schema.js +145 -145
- package/dist/domain/schemas/tenant.schema.d.ts +114 -114
- package/dist/domain/schemas/tenant.schema.js +387 -387
- package/dist/domain/shared-domain.module.d.ts +2 -2
- package/dist/domain/shared-domain.module.js +27 -27
- package/dist/index.d.ts +5 -5
- package/dist/index.js +21 -21
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +375 -390
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/enroll-x-permissions.js +468 -453
- package/dist/permissions/app-permissions/enroll-x-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/exams-permissions.d.ts +730 -745
- package/dist/permissions/app-permissions/exams-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/exams-permissions.js +1137 -1213
- package/dist/permissions/app-permissions/exams-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/hostels-permissions.d.ts +239 -241
- package/dist/permissions/app-permissions/hostels-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/hostels-permissions.js +243 -251
- package/dist/permissions/app-permissions/hostels-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/payments-permissions.d.ts +337 -352
- package/dist/permissions/app-permissions/payments-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/payments-permissions.js +454 -474
- package/dist/permissions/app-permissions/payments-permissions.js.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.d.ts +1084 -1123
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.js +1992 -2085
- package/dist/permissions/app-permissions/square-permissions.js.map +1 -1
- package/dist/permissions/check-permission.guard.d.ts +52 -52
- package/dist/permissions/check-permission.guard.js +58 -58
- package/dist/permissions/index.d.ts +6 -7
- package/dist/permissions/index.d.ts.map +1 -1
- package/dist/permissions/index.js +26 -28
- package/dist/permissions/index.js.map +1 -1
- package/dist/permissions/permissions.d.ts +5540 -5708
- package/dist/permissions/permissions.d.ts.map +1 -1
- package/dist/permissions/permissions.js +116 -116
- package/dist/shared-module/index.d.ts +2 -2
- package/dist/shared-module/index.js +7 -7
- package/dist/shared-module/shared.module.d.ts +10 -10
- package/dist/shared-module/shared.module.js +37 -37
- package/dist/shared-module/shared.service.d.ts +67 -67
- package/dist/shared-module/shared.service.js +209 -209
- package/dist/utils/constants.d.ts +25 -25
- package/dist/utils/constants.js +28 -28
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.js +18 -18
- package/dist/utils/utils.d.ts +24 -24
- package/dist/utils/utils.js +234 -234
- package/package.json +46 -46
|
@@ -1,146 +1,146 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.GlobalUserSchema = exports.GlobalUser = exports.StudentDetails = exports.GlobalUserCName = void 0;
|
|
13
|
-
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
-
const mongoose_2 = require("mongoose");
|
|
15
|
-
const utils_1 = require("../../utils");
|
|
16
|
-
exports.GlobalUserCName = 'global_users';
|
|
17
|
-
let StudentDetails = class StudentDetails extends mongoose_2.Document {
|
|
18
|
-
studentAltMobile;
|
|
19
|
-
parentName;
|
|
20
|
-
parentMobile;
|
|
21
|
-
fatherName;
|
|
22
|
-
motherName;
|
|
23
|
-
address;
|
|
24
|
-
};
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, mongoose_1.Prop)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], StudentDetails.prototype, "studentAltMobile", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, mongoose_1.Prop)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], StudentDetails.prototype, "parentName", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, mongoose_1.Prop)(),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], StudentDetails.prototype, "parentMobile", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, mongoose_1.Prop)(),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], StudentDetails.prototype, "fatherName", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
(0, mongoose_1.Prop)(),
|
|
43
|
-
__metadata("design:type", String)
|
|
44
|
-
], StudentDetails.prototype, "motherName", void 0);
|
|
45
|
-
__decorate([
|
|
46
|
-
(0, mongoose_1.Prop)(),
|
|
47
|
-
__metadata("design:type", String)
|
|
48
|
-
], StudentDetails.prototype, "address", void 0);
|
|
49
|
-
StudentDetails = __decorate([
|
|
50
|
-
(0, mongoose_1.Schema)({ id: false })
|
|
51
|
-
], StudentDetails);
|
|
52
|
-
exports.StudentDetails = StudentDetails;
|
|
53
|
-
const StudentDetailsSchema = mongoose_1.SchemaFactory.createForClass(StudentDetails);
|
|
54
|
-
let GlobalUser = class GlobalUser extends mongoose_2.Document {
|
|
55
|
-
tenantId;
|
|
56
|
-
userId;
|
|
57
|
-
username;
|
|
58
|
-
email;
|
|
59
|
-
password;
|
|
60
|
-
fullName;
|
|
61
|
-
isActive;
|
|
62
|
-
isSuperUser;
|
|
63
|
-
isAdminUser;
|
|
64
|
-
type;
|
|
65
|
-
workPhoneNumber;
|
|
66
|
-
personalPhoneNumber;
|
|
67
|
-
personalEmail;
|
|
68
|
-
studentDetails;
|
|
69
|
-
lastLoggedIn;
|
|
70
|
-
createdBy;
|
|
71
|
-
updatedBy;
|
|
72
|
-
};
|
|
73
|
-
__decorate([
|
|
74
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
75
|
-
__metadata("design:type", String)
|
|
76
|
-
], GlobalUser.prototype, "tenantId", void 0);
|
|
77
|
-
__decorate([
|
|
78
|
-
(0, mongoose_1.Prop)(),
|
|
79
|
-
__metadata("design:type", Number)
|
|
80
|
-
], GlobalUser.prototype, "userId", void 0);
|
|
81
|
-
__decorate([
|
|
82
|
-
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
83
|
-
__metadata("design:type", String)
|
|
84
|
-
], GlobalUser.prototype, "username", void 0);
|
|
85
|
-
__decorate([
|
|
86
|
-
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
87
|
-
__metadata("design:type", String)
|
|
88
|
-
], GlobalUser.prototype, "email", void 0);
|
|
89
|
-
__decorate([
|
|
90
|
-
(0, mongoose_1.Prop)(),
|
|
91
|
-
__metadata("design:type", String)
|
|
92
|
-
], GlobalUser.prototype, "password", void 0);
|
|
93
|
-
__decorate([
|
|
94
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
95
|
-
__metadata("design:type", String)
|
|
96
|
-
], GlobalUser.prototype, "fullName", void 0);
|
|
97
|
-
__decorate([
|
|
98
|
-
(0, mongoose_1.Prop)({ default: true }),
|
|
99
|
-
__metadata("design:type", Boolean)
|
|
100
|
-
], GlobalUser.prototype, "isActive", void 0);
|
|
101
|
-
__decorate([
|
|
102
|
-
(0, mongoose_1.Prop)({ default: false }),
|
|
103
|
-
__metadata("design:type", Boolean)
|
|
104
|
-
], GlobalUser.prototype, "isSuperUser", void 0);
|
|
105
|
-
__decorate([
|
|
106
|
-
(0, mongoose_1.Prop)({ default: false }),
|
|
107
|
-
__metadata("design:type", Boolean)
|
|
108
|
-
], GlobalUser.prototype, "isAdminUser", void 0);
|
|
109
|
-
__decorate([
|
|
110
|
-
(0, mongoose_1.Prop)({ default: utils_1.userType.staff_user }),
|
|
111
|
-
__metadata("design:type", String)
|
|
112
|
-
], GlobalUser.prototype, "type", void 0);
|
|
113
|
-
__decorate([
|
|
114
|
-
(0, mongoose_1.Prop)(),
|
|
115
|
-
__metadata("design:type", String)
|
|
116
|
-
], GlobalUser.prototype, "workPhoneNumber", void 0);
|
|
117
|
-
__decorate([
|
|
118
|
-
(0, mongoose_1.Prop)(),
|
|
119
|
-
__metadata("design:type", String)
|
|
120
|
-
], GlobalUser.prototype, "personalPhoneNumber", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, mongoose_1.Prop)(),
|
|
123
|
-
__metadata("design:type", String)
|
|
124
|
-
], GlobalUser.prototype, "personalEmail", void 0);
|
|
125
|
-
__decorate([
|
|
126
|
-
(0, mongoose_1.Prop)({ type: StudentDetailsSchema }),
|
|
127
|
-
__metadata("design:type", StudentDetails)
|
|
128
|
-
], GlobalUser.prototype, "studentDetails", void 0);
|
|
129
|
-
__decorate([
|
|
130
|
-
(0, mongoose_1.Prop)({ required: false }),
|
|
131
|
-
__metadata("design:type", Date)
|
|
132
|
-
], GlobalUser.prototype, "lastLoggedIn", void 0);
|
|
133
|
-
__decorate([
|
|
134
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
135
|
-
__metadata("design:type", String)
|
|
136
|
-
], GlobalUser.prototype, "createdBy", void 0);
|
|
137
|
-
__decorate([
|
|
138
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], GlobalUser.prototype, "updatedBy", void 0);
|
|
141
|
-
GlobalUser = __decorate([
|
|
142
|
-
(0, mongoose_1.Schema)({ timestamps: true, id: true, collection: exports.GlobalUserCName })
|
|
143
|
-
], GlobalUser);
|
|
144
|
-
exports.GlobalUser = GlobalUser;
|
|
145
|
-
exports.GlobalUserSchema = mongoose_1.SchemaFactory.createForClass(GlobalUser);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GlobalUserSchema = exports.GlobalUser = exports.StudentDetails = exports.GlobalUserCName = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
const utils_1 = require("../../utils");
|
|
16
|
+
exports.GlobalUserCName = 'global_users';
|
|
17
|
+
let StudentDetails = class StudentDetails extends mongoose_2.Document {
|
|
18
|
+
studentAltMobile;
|
|
19
|
+
parentName;
|
|
20
|
+
parentMobile;
|
|
21
|
+
fatherName;
|
|
22
|
+
motherName;
|
|
23
|
+
address;
|
|
24
|
+
};
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, mongoose_1.Prop)(),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], StudentDetails.prototype, "studentAltMobile", void 0);
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, mongoose_1.Prop)(),
|
|
31
|
+
__metadata("design:type", String)
|
|
32
|
+
], StudentDetails.prototype, "parentName", void 0);
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, mongoose_1.Prop)(),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], StudentDetails.prototype, "parentMobile", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, mongoose_1.Prop)(),
|
|
39
|
+
__metadata("design:type", String)
|
|
40
|
+
], StudentDetails.prototype, "fatherName", void 0);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, mongoose_1.Prop)(),
|
|
43
|
+
__metadata("design:type", String)
|
|
44
|
+
], StudentDetails.prototype, "motherName", void 0);
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, mongoose_1.Prop)(),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], StudentDetails.prototype, "address", void 0);
|
|
49
|
+
StudentDetails = __decorate([
|
|
50
|
+
(0, mongoose_1.Schema)({ id: false })
|
|
51
|
+
], StudentDetails);
|
|
52
|
+
exports.StudentDetails = StudentDetails;
|
|
53
|
+
const StudentDetailsSchema = mongoose_1.SchemaFactory.createForClass(StudentDetails);
|
|
54
|
+
let GlobalUser = class GlobalUser extends mongoose_2.Document {
|
|
55
|
+
tenantId;
|
|
56
|
+
userId;
|
|
57
|
+
username;
|
|
58
|
+
email;
|
|
59
|
+
password;
|
|
60
|
+
fullName;
|
|
61
|
+
isActive;
|
|
62
|
+
isSuperUser;
|
|
63
|
+
isAdminUser;
|
|
64
|
+
type;
|
|
65
|
+
workPhoneNumber;
|
|
66
|
+
personalPhoneNumber;
|
|
67
|
+
personalEmail;
|
|
68
|
+
studentDetails;
|
|
69
|
+
lastLoggedIn;
|
|
70
|
+
createdBy;
|
|
71
|
+
updatedBy;
|
|
72
|
+
};
|
|
73
|
+
__decorate([
|
|
74
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
75
|
+
__metadata("design:type", String)
|
|
76
|
+
], GlobalUser.prototype, "tenantId", void 0);
|
|
77
|
+
__decorate([
|
|
78
|
+
(0, mongoose_1.Prop)(),
|
|
79
|
+
__metadata("design:type", Number)
|
|
80
|
+
], GlobalUser.prototype, "userId", void 0);
|
|
81
|
+
__decorate([
|
|
82
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
83
|
+
__metadata("design:type", String)
|
|
84
|
+
], GlobalUser.prototype, "username", void 0);
|
|
85
|
+
__decorate([
|
|
86
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
87
|
+
__metadata("design:type", String)
|
|
88
|
+
], GlobalUser.prototype, "email", void 0);
|
|
89
|
+
__decorate([
|
|
90
|
+
(0, mongoose_1.Prop)(),
|
|
91
|
+
__metadata("design:type", String)
|
|
92
|
+
], GlobalUser.prototype, "password", void 0);
|
|
93
|
+
__decorate([
|
|
94
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
95
|
+
__metadata("design:type", String)
|
|
96
|
+
], GlobalUser.prototype, "fullName", void 0);
|
|
97
|
+
__decorate([
|
|
98
|
+
(0, mongoose_1.Prop)({ default: true }),
|
|
99
|
+
__metadata("design:type", Boolean)
|
|
100
|
+
], GlobalUser.prototype, "isActive", void 0);
|
|
101
|
+
__decorate([
|
|
102
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
103
|
+
__metadata("design:type", Boolean)
|
|
104
|
+
], GlobalUser.prototype, "isSuperUser", void 0);
|
|
105
|
+
__decorate([
|
|
106
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
107
|
+
__metadata("design:type", Boolean)
|
|
108
|
+
], GlobalUser.prototype, "isAdminUser", void 0);
|
|
109
|
+
__decorate([
|
|
110
|
+
(0, mongoose_1.Prop)({ default: utils_1.userType.staff_user }),
|
|
111
|
+
__metadata("design:type", String)
|
|
112
|
+
], GlobalUser.prototype, "type", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, mongoose_1.Prop)(),
|
|
115
|
+
__metadata("design:type", String)
|
|
116
|
+
], GlobalUser.prototype, "workPhoneNumber", void 0);
|
|
117
|
+
__decorate([
|
|
118
|
+
(0, mongoose_1.Prop)(),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], GlobalUser.prototype, "personalPhoneNumber", void 0);
|
|
121
|
+
__decorate([
|
|
122
|
+
(0, mongoose_1.Prop)(),
|
|
123
|
+
__metadata("design:type", String)
|
|
124
|
+
], GlobalUser.prototype, "personalEmail", void 0);
|
|
125
|
+
__decorate([
|
|
126
|
+
(0, mongoose_1.Prop)({ type: StudentDetailsSchema }),
|
|
127
|
+
__metadata("design:type", StudentDetails)
|
|
128
|
+
], GlobalUser.prototype, "studentDetails", void 0);
|
|
129
|
+
__decorate([
|
|
130
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
131
|
+
__metadata("design:type", Date)
|
|
132
|
+
], GlobalUser.prototype, "lastLoggedIn", void 0);
|
|
133
|
+
__decorate([
|
|
134
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
135
|
+
__metadata("design:type", String)
|
|
136
|
+
], GlobalUser.prototype, "createdBy", void 0);
|
|
137
|
+
__decorate([
|
|
138
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
139
|
+
__metadata("design:type", String)
|
|
140
|
+
], GlobalUser.prototype, "updatedBy", void 0);
|
|
141
|
+
GlobalUser = __decorate([
|
|
142
|
+
(0, mongoose_1.Schema)({ timestamps: true, id: true, collection: exports.GlobalUserCName })
|
|
143
|
+
], GlobalUser);
|
|
144
|
+
exports.GlobalUser = GlobalUser;
|
|
145
|
+
exports.GlobalUserSchema = mongoose_1.SchemaFactory.createForClass(GlobalUser);
|
|
146
146
|
//# sourceMappingURL=global-users.schema.js.map
|
|
@@ -1,115 +1,115 @@
|
|
|
1
|
-
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
-
/// <reference types="mongoose/types/callback" />
|
|
3
|
-
/// <reference types="mongoose/types/collection" />
|
|
4
|
-
/// <reference types="mongoose/types/connection" />
|
|
5
|
-
/// <reference types="mongoose/types/cursor" />
|
|
6
|
-
/// <reference types="mongoose/types/document" />
|
|
7
|
-
/// <reference types="mongoose/types/error" />
|
|
8
|
-
/// <reference types="mongoose/types/expressions" />
|
|
9
|
-
/// <reference types="mongoose/types/helpers" />
|
|
10
|
-
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
-
/// <reference types="mongoose/types/indexes" />
|
|
12
|
-
/// <reference types="mongoose/types/models" />
|
|
13
|
-
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
-
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
-
/// <reference types="mongoose/types/populate" />
|
|
16
|
-
/// <reference types="mongoose/types/query" />
|
|
17
|
-
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
-
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
-
/// <reference types="mongoose/types/session" />
|
|
20
|
-
/// <reference types="mongoose/types/types" />
|
|
21
|
-
/// <reference types="mongoose/types/utility" />
|
|
22
|
-
/// <reference types="mongoose/types/validation" />
|
|
23
|
-
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
-
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
-
import { Document, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
-
export declare class EasyWDMSConfig extends Document {
|
|
27
|
-
host: string;
|
|
28
|
-
port: number;
|
|
29
|
-
username: string;
|
|
30
|
-
password: string;
|
|
31
|
-
database: string;
|
|
32
|
-
baseApiUrl: string;
|
|
33
|
-
}
|
|
34
|
-
export declare class SMTPConfig extends Document {
|
|
35
|
-
host: string;
|
|
36
|
-
port: number;
|
|
37
|
-
username: string;
|
|
38
|
-
password: string;
|
|
39
|
-
from: string;
|
|
40
|
-
secure: boolean;
|
|
41
|
-
}
|
|
42
|
-
export declare class TextLocalConfig extends Document {
|
|
43
|
-
isEnabled: boolean;
|
|
44
|
-
apiKey: string;
|
|
45
|
-
sender: string;
|
|
46
|
-
}
|
|
47
|
-
export declare class RazorpayConfig extends Document {
|
|
48
|
-
key: string;
|
|
49
|
-
secret: string;
|
|
50
|
-
}
|
|
51
|
-
export declare class PaytmConfig extends Document {
|
|
52
|
-
merchantId: string;
|
|
53
|
-
merchantKey: string;
|
|
54
|
-
industryType: string;
|
|
55
|
-
website: string;
|
|
56
|
-
isProd: boolean;
|
|
57
|
-
channelId: string;
|
|
58
|
-
callbackUrl: string;
|
|
59
|
-
transactionUrl: string;
|
|
60
|
-
accountNumber: string;
|
|
61
|
-
accountName: string;
|
|
62
|
-
}
|
|
63
|
-
export declare class AirPayConfig extends Document {
|
|
64
|
-
merchantId: string;
|
|
65
|
-
username: string;
|
|
66
|
-
password: string;
|
|
67
|
-
secretKey: string;
|
|
68
|
-
}
|
|
69
|
-
export declare const PaymentCredentialsTypes: {
|
|
70
|
-
RAZORPAY: string;
|
|
71
|
-
PAYTM: string;
|
|
72
|
-
AIRPAY: string;
|
|
73
|
-
};
|
|
74
|
-
export declare class PaymentCredentials extends Document {
|
|
75
|
-
type: string;
|
|
76
|
-
razorpayConfig?: RazorpayConfig;
|
|
77
|
-
paytmConfig?: PaytmConfig;
|
|
78
|
-
airPayConfig?: AirPayConfig;
|
|
79
|
-
}
|
|
80
|
-
export declare class TenantEnvironment extends Document {
|
|
81
|
-
s3AccessKeyId: string;
|
|
82
|
-
s3SecretAccessKey: string;
|
|
83
|
-
s3BucketName: string;
|
|
84
|
-
s3Region: string;
|
|
85
|
-
s3Endpoint: string;
|
|
86
|
-
sentryDsn?: string;
|
|
87
|
-
clientName?: string;
|
|
88
|
-
studentAndroidApp: string;
|
|
89
|
-
studentIOSApp: string;
|
|
90
|
-
facultyAndroidApp: string;
|
|
91
|
-
facultyIOSApp: string;
|
|
92
|
-
razorpayKey?: string;
|
|
93
|
-
razorpaySecret?: string;
|
|
94
|
-
}
|
|
95
|
-
export declare class Tenant extends Document {
|
|
96
|
-
name: string;
|
|
97
|
-
subDomain: string;
|
|
98
|
-
host: string;
|
|
99
|
-
port: number;
|
|
100
|
-
username: string;
|
|
101
|
-
password: string;
|
|
102
|
-
database: string;
|
|
103
|
-
env: TenantEnvironment;
|
|
104
|
-
easyWDMSConfig: EasyWDMSConfig;
|
|
105
|
-
smtpConfig: SMTPConfig;
|
|
106
|
-
textLocalConfig: TextLocalConfig;
|
|
107
|
-
paymentCredentials: PaymentCredentials[];
|
|
108
|
-
defaultPaymentCredentials: string;
|
|
109
|
-
}
|
|
110
|
-
export declare const TenantSchema: MongooseSchema<Tenant, import("mongoose").Model<Tenant, any, any, any, Document<unknown, any, Tenant> & Omit<Tenant & {
|
|
111
|
-
_id: import("mongoose").Types.ObjectId;
|
|
112
|
-
}, never>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Tenant, Document<unknown, {}, import("mongoose").FlatRecord<Tenant>> & Omit<import("mongoose").FlatRecord<Tenant> & {
|
|
113
|
-
_id: import("mongoose").Types.ObjectId;
|
|
114
|
-
}, never>>;
|
|
1
|
+
/// <reference types="mongoose/types/aggregate" />
|
|
2
|
+
/// <reference types="mongoose/types/callback" />
|
|
3
|
+
/// <reference types="mongoose/types/collection" />
|
|
4
|
+
/// <reference types="mongoose/types/connection" />
|
|
5
|
+
/// <reference types="mongoose/types/cursor" />
|
|
6
|
+
/// <reference types="mongoose/types/document" />
|
|
7
|
+
/// <reference types="mongoose/types/error" />
|
|
8
|
+
/// <reference types="mongoose/types/expressions" />
|
|
9
|
+
/// <reference types="mongoose/types/helpers" />
|
|
10
|
+
/// <reference types="mongoose/types/middlewares" />
|
|
11
|
+
/// <reference types="mongoose/types/indexes" />
|
|
12
|
+
/// <reference types="mongoose/types/models" />
|
|
13
|
+
/// <reference types="mongoose/types/mongooseoptions" />
|
|
14
|
+
/// <reference types="mongoose/types/pipelinestage" />
|
|
15
|
+
/// <reference types="mongoose/types/populate" />
|
|
16
|
+
/// <reference types="mongoose/types/query" />
|
|
17
|
+
/// <reference types="mongoose/types/schemaoptions" />
|
|
18
|
+
/// <reference types="mongoose/types/schematypes" />
|
|
19
|
+
/// <reference types="mongoose/types/session" />
|
|
20
|
+
/// <reference types="mongoose/types/types" />
|
|
21
|
+
/// <reference types="mongoose/types/utility" />
|
|
22
|
+
/// <reference types="mongoose/types/validation" />
|
|
23
|
+
/// <reference types="mongoose/types/virtuals" />
|
|
24
|
+
/// <reference types="mongoose/types/inferschematype" />
|
|
25
|
+
import { Document, Schema as MongooseSchema } from 'mongoose';
|
|
26
|
+
export declare class EasyWDMSConfig extends Document {
|
|
27
|
+
host: string;
|
|
28
|
+
port: number;
|
|
29
|
+
username: string;
|
|
30
|
+
password: string;
|
|
31
|
+
database: string;
|
|
32
|
+
baseApiUrl: string;
|
|
33
|
+
}
|
|
34
|
+
export declare class SMTPConfig extends Document {
|
|
35
|
+
host: string;
|
|
36
|
+
port: number;
|
|
37
|
+
username: string;
|
|
38
|
+
password: string;
|
|
39
|
+
from: string;
|
|
40
|
+
secure: boolean;
|
|
41
|
+
}
|
|
42
|
+
export declare class TextLocalConfig extends Document {
|
|
43
|
+
isEnabled: boolean;
|
|
44
|
+
apiKey: string;
|
|
45
|
+
sender: string;
|
|
46
|
+
}
|
|
47
|
+
export declare class RazorpayConfig extends Document {
|
|
48
|
+
key: string;
|
|
49
|
+
secret: string;
|
|
50
|
+
}
|
|
51
|
+
export declare class PaytmConfig extends Document {
|
|
52
|
+
merchantId: string;
|
|
53
|
+
merchantKey: string;
|
|
54
|
+
industryType: string;
|
|
55
|
+
website: string;
|
|
56
|
+
isProd: boolean;
|
|
57
|
+
channelId: string;
|
|
58
|
+
callbackUrl: string;
|
|
59
|
+
transactionUrl: string;
|
|
60
|
+
accountNumber: string;
|
|
61
|
+
accountName: string;
|
|
62
|
+
}
|
|
63
|
+
export declare class AirPayConfig extends Document {
|
|
64
|
+
merchantId: string;
|
|
65
|
+
username: string;
|
|
66
|
+
password: string;
|
|
67
|
+
secretKey: string;
|
|
68
|
+
}
|
|
69
|
+
export declare const PaymentCredentialsTypes: {
|
|
70
|
+
RAZORPAY: string;
|
|
71
|
+
PAYTM: string;
|
|
72
|
+
AIRPAY: string;
|
|
73
|
+
};
|
|
74
|
+
export declare class PaymentCredentials extends Document {
|
|
75
|
+
type: string;
|
|
76
|
+
razorpayConfig?: RazorpayConfig;
|
|
77
|
+
paytmConfig?: PaytmConfig;
|
|
78
|
+
airPayConfig?: AirPayConfig;
|
|
79
|
+
}
|
|
80
|
+
export declare class TenantEnvironment extends Document {
|
|
81
|
+
s3AccessKeyId: string;
|
|
82
|
+
s3SecretAccessKey: string;
|
|
83
|
+
s3BucketName: string;
|
|
84
|
+
s3Region: string;
|
|
85
|
+
s3Endpoint: string;
|
|
86
|
+
sentryDsn?: string;
|
|
87
|
+
clientName?: string;
|
|
88
|
+
studentAndroidApp: string;
|
|
89
|
+
studentIOSApp: string;
|
|
90
|
+
facultyAndroidApp: string;
|
|
91
|
+
facultyIOSApp: string;
|
|
92
|
+
razorpayKey?: string;
|
|
93
|
+
razorpaySecret?: string;
|
|
94
|
+
}
|
|
95
|
+
export declare class Tenant extends Document {
|
|
96
|
+
name: string;
|
|
97
|
+
subDomain: string;
|
|
98
|
+
host: string;
|
|
99
|
+
port: number;
|
|
100
|
+
username: string;
|
|
101
|
+
password: string;
|
|
102
|
+
database: string;
|
|
103
|
+
env: TenantEnvironment;
|
|
104
|
+
easyWDMSConfig: EasyWDMSConfig;
|
|
105
|
+
smtpConfig: SMTPConfig;
|
|
106
|
+
textLocalConfig: TextLocalConfig;
|
|
107
|
+
paymentCredentials: PaymentCredentials[];
|
|
108
|
+
defaultPaymentCredentials: string;
|
|
109
|
+
}
|
|
110
|
+
export declare const TenantSchema: MongooseSchema<Tenant, import("mongoose").Model<Tenant, any, any, any, Document<unknown, any, Tenant> & Omit<Tenant & {
|
|
111
|
+
_id: import("mongoose").Types.ObjectId;
|
|
112
|
+
}, never>, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Tenant, Document<unknown, {}, import("mongoose").FlatRecord<Tenant>> & Omit<import("mongoose").FlatRecord<Tenant> & {
|
|
113
|
+
_id: import("mongoose").Types.ObjectId;
|
|
114
|
+
}, never>>;
|
|
115
115
|
//# sourceMappingURL=tenant.schema.d.ts.map
|