@campxdev/server-shared 1.2.36 → 1.2.38
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/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 +37 -38
- package/dist/common/filters/unhandled-exception.filter.js.map +1 -1
- package/dist/common/guards/guard.d.ts +8 -8
- package/dist/common/guards/guard.js +24 -24
- package/dist/common/index.d.ts +10 -10
- package/dist/common/index.js +26 -26
- package/dist/common/interceptors/request.interceptor.d.ts +20 -20
- package/dist/common/interceptors/request.interceptor.js +142 -143
- package/dist/common/interceptors/request.interceptor.js.map +1 -1
- package/dist/common/interfaces/context.interface.d.ts +125 -125
- package/dist/common/interfaces/context.interface.js +2 -2
- package/dist/common/store/request-store.d.ts +44 -44
- package/dist/common/store/request-store.js +166 -166
- 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 +36 -37
- package/dist/common/store/store.interceptor.js.map +1 -1
- package/dist/domain/db-connection.module.d.ts +3 -3
- package/dist/domain/db-connection.module.js +28 -29
- package/dist/domain/db-connection.module.js.map +1 -1
- package/dist/domain/entities/evaluator.entity.d.ts +17 -17
- package/dist/domain/entities/evaluator.entity.js +111 -112
- package/dist/domain/entities/evaluator.entity.js.map +1 -1
- package/dist/domain/entities/leads.entity.d.ts +26 -26
- package/dist/domain/entities/leads.entity.js +160 -161
- package/dist/domain/entities/leads.entity.js.map +1 -1
- package/dist/domain/entities/profile-permission.entity.d.ts +13 -13
- package/dist/domain/entities/profile-permission.entity.js +69 -70
- package/dist/domain/entities/profile-permission.entity.js.map +1 -1
- package/dist/domain/entities/profile.entity.d.ts +26 -26
- package/dist/domain/entities/profile.entity.js +98 -99
- package/dist/domain/entities/profile.entity.js.map +1 -1
- package/dist/domain/entities/student.entity.d.ts +26 -26
- package/dist/domain/entities/student.entity.js +123 -124
- package/dist/domain/entities/student.entity.js.map +1 -1
- package/dist/domain/entities/user.entity.d.ts +20 -20
- package/dist/domain/entities/user.entity.js +135 -136
- package/dist/domain/entities/user.entity.js.map +1 -1
- package/dist/domain/index.d.ts +10 -10
- package/dist/domain/index.js +26 -26
- package/dist/domain/schemas/global-users.schema.d.ts +60 -60
- package/dist/domain/schemas/global-users.schema.d.ts.map +1 -1
- package/dist/domain/schemas/global-users.schema.js +156 -158
- package/dist/domain/schemas/global-users.schema.js.map +1 -1
- package/dist/domain/schemas/tenant.schema.d.ts +109 -106
- package/dist/domain/schemas/tenant.schema.d.ts.map +1 -1
- package/dist/domain/schemas/tenant.schema.js +349 -347
- package/dist/domain/schemas/tenant.schema.js.map +1 -1
- package/dist/domain/shared-domain.module.d.ts +2 -2
- package/dist/domain/shared-domain.module.js +26 -27
- package/dist/domain/shared-domain.module.js.map +1 -1
- package/dist/index.d.ts +5 -5
- package/dist/index.js +21 -21
- package/dist/permissions/app-permissions/commute-x-permissions.d.ts +118 -118
- package/dist/permissions/app-permissions/commute-x-permissions.js +128 -128
- package/dist/permissions/app-permissions/enroll-x-permissions.d.ts +498 -498
- package/dist/permissions/app-permissions/enroll-x-permissions.js +816 -816
- package/dist/permissions/app-permissions/exams-permissions.d.ts +745 -745
- package/dist/permissions/app-permissions/exams-permissions.js +1218 -1218
- package/dist/permissions/app-permissions/hostels-permissions.d.ts +424 -424
- package/dist/permissions/app-permissions/hostels-permissions.js +537 -537
- package/dist/permissions/app-permissions/payments-permissions.d.ts +364 -364
- package/dist/permissions/app-permissions/payments-permissions.js +486 -486
- package/dist/permissions/app-permissions/people-x-permissions.d.ts +346 -346
- package/dist/permissions/app-permissions/people-x-permissions.js +356 -356
- package/dist/permissions/app-permissions/square-permissions.d.ts +1240 -1219
- package/dist/permissions/app-permissions/square-permissions.d.ts.map +1 -1
- package/dist/permissions/app-permissions/square-permissions.js +2263 -2235
- package/dist/permissions/app-permissions/square-permissions.js.map +1 -1
- package/dist/permissions/check-permission.guard.d.ts +9 -9
- package/dist/permissions/check-permission.guard.js +60 -60
- package/dist/permissions/index.d.ts +9 -9
- package/dist/permissions/index.js +32 -32
- package/dist/permissions/permissions.d.ts +7464 -7422
- package/dist/permissions/permissions.d.ts.map +1 -1
- package/dist/permissions/permissions.js +122 -122
- 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 +36 -37
- package/dist/shared-module/shared.module.js.map +1 -1
- package/dist/shared-module/shared.service.d.ts +67 -67
- package/dist/shared-module/shared.service.js +211 -212
- package/dist/shared-module/shared.service.js.map +1 -1
- 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 +26 -26
- package/dist/utils/utils.js +250 -250
- package/package.json +46 -46
|
@@ -1,348 +1,350 @@
|
|
|
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.TenantSchema = exports.Tenant = exports.TenantEnvironment = exports.PaymentCredentials = exports.PaymentCredentialsTypes = exports.AirPayConfig = exports.PaytmConfig = exports.RazorpayConfig = exports.TextLocalConfig = exports.SMTPConfig = exports.EasyWDMSConfig = void 0;
|
|
13
|
-
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
-
const mongoose_2 = require("mongoose");
|
|
15
|
-
let EasyWDMSConfig = class EasyWDMSConfig extends mongoose_2.Document {
|
|
16
|
-
host;
|
|
17
|
-
port;
|
|
18
|
-
username;
|
|
19
|
-
password;
|
|
20
|
-
database;
|
|
21
|
-
baseApiUrl;
|
|
22
|
-
};
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], EasyWDMSConfig.prototype, "host", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
29
|
-
__metadata("design:type", Number)
|
|
30
|
-
], EasyWDMSConfig.prototype, "port", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], EasyWDMSConfig.prototype, "username", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], EasyWDMSConfig.prototype, "password", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], EasyWDMSConfig.prototype, "database", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
45
|
-
__metadata("design:type", String)
|
|
46
|
-
], EasyWDMSConfig.prototype, "baseApiUrl", void 0);
|
|
47
|
-
EasyWDMSConfig = __decorate([
|
|
48
|
-
(0, mongoose_1.Schema)()
|
|
49
|
-
], EasyWDMSConfig);
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
(
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
(
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
(
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
exports.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
TextLocalConfig
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
], RazorpayConfig
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
__decorate([
|
|
141
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
142
|
-
__metadata("design:type", String)
|
|
143
|
-
], PaytmConfig.prototype, "
|
|
144
|
-
__decorate([
|
|
145
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
146
|
-
__metadata("design:type", String)
|
|
147
|
-
], PaytmConfig.prototype, "
|
|
148
|
-
__decorate([
|
|
149
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
150
|
-
__metadata("design:type", String)
|
|
151
|
-
], PaytmConfig.prototype, "
|
|
152
|
-
__decorate([
|
|
153
|
-
(0, mongoose_1.Prop)({
|
|
154
|
-
__metadata("design:type",
|
|
155
|
-
], PaytmConfig.prototype, "
|
|
156
|
-
__decorate([
|
|
157
|
-
(0, mongoose_1.Prop)(
|
|
158
|
-
__metadata("design:type",
|
|
159
|
-
], PaytmConfig.prototype, "
|
|
160
|
-
__decorate([
|
|
161
|
-
(0, mongoose_1.Prop)(),
|
|
162
|
-
__metadata("design:type", String)
|
|
163
|
-
], PaytmConfig.prototype, "
|
|
164
|
-
__decorate([
|
|
165
|
-
(0, mongoose_1.Prop)(),
|
|
166
|
-
__metadata("design:type", String)
|
|
167
|
-
], PaytmConfig.prototype, "
|
|
168
|
-
__decorate([
|
|
169
|
-
(0, mongoose_1.Prop)(),
|
|
170
|
-
__metadata("design:type", String)
|
|
171
|
-
], PaytmConfig.prototype, "
|
|
172
|
-
__decorate([
|
|
173
|
-
(0, mongoose_1.Prop)(),
|
|
174
|
-
__metadata("design:type", String)
|
|
175
|
-
], PaytmConfig.prototype, "
|
|
176
|
-
__decorate([
|
|
177
|
-
(0, mongoose_1.
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
(
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
(
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
(
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
], TenantEnvironment
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
(
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
(
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
(
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
(
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
(
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
(
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
(
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
(
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
(
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
(
|
|
345
|
-
], Tenant);
|
|
346
|
-
exports.Tenant = Tenant
|
|
347
|
-
exports.
|
|
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.TenantSchema = exports.Tenant = exports.TenantCName = exports.TenantEnvironment = exports.PaymentCredentials = exports.PaymentCredentialsTypes = exports.AirPayConfig = exports.PaytmConfig = exports.RazorpayConfig = exports.TextLocalConfig = exports.SMTPConfig = exports.EasyWDMSConfig = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const mongoose_2 = require("mongoose");
|
|
15
|
+
let EasyWDMSConfig = exports.EasyWDMSConfig = class EasyWDMSConfig extends mongoose_2.Document {
|
|
16
|
+
host;
|
|
17
|
+
port;
|
|
18
|
+
username;
|
|
19
|
+
password;
|
|
20
|
+
database;
|
|
21
|
+
baseApiUrl;
|
|
22
|
+
};
|
|
23
|
+
__decorate([
|
|
24
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], EasyWDMSConfig.prototype, "host", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
29
|
+
__metadata("design:type", Number)
|
|
30
|
+
], EasyWDMSConfig.prototype, "port", void 0);
|
|
31
|
+
__decorate([
|
|
32
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
33
|
+
__metadata("design:type", String)
|
|
34
|
+
], EasyWDMSConfig.prototype, "username", void 0);
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
37
|
+
__metadata("design:type", String)
|
|
38
|
+
], EasyWDMSConfig.prototype, "password", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], EasyWDMSConfig.prototype, "database", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
45
|
+
__metadata("design:type", String)
|
|
46
|
+
], EasyWDMSConfig.prototype, "baseApiUrl", void 0);
|
|
47
|
+
exports.EasyWDMSConfig = EasyWDMSConfig = __decorate([
|
|
48
|
+
(0, mongoose_1.Schema)()
|
|
49
|
+
], EasyWDMSConfig);
|
|
50
|
+
const EasyWDMSConfigSchema = mongoose_1.SchemaFactory.createForClass(EasyWDMSConfig);
|
|
51
|
+
let SMTPConfig = exports.SMTPConfig = class SMTPConfig extends mongoose_2.Document {
|
|
52
|
+
host;
|
|
53
|
+
port;
|
|
54
|
+
username;
|
|
55
|
+
password;
|
|
56
|
+
from;
|
|
57
|
+
secure;
|
|
58
|
+
};
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
61
|
+
__metadata("design:type", String)
|
|
62
|
+
], SMTPConfig.prototype, "host", void 0);
|
|
63
|
+
__decorate([
|
|
64
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
65
|
+
__metadata("design:type", Number)
|
|
66
|
+
], SMTPConfig.prototype, "port", void 0);
|
|
67
|
+
__decorate([
|
|
68
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
69
|
+
__metadata("design:type", String)
|
|
70
|
+
], SMTPConfig.prototype, "username", void 0);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
73
|
+
__metadata("design:type", String)
|
|
74
|
+
], SMTPConfig.prototype, "password", void 0);
|
|
75
|
+
__decorate([
|
|
76
|
+
(0, mongoose_1.Prop)(),
|
|
77
|
+
__metadata("design:type", String)
|
|
78
|
+
], SMTPConfig.prototype, "from", void 0);
|
|
79
|
+
__decorate([
|
|
80
|
+
(0, mongoose_1.Prop)({ default: true }),
|
|
81
|
+
__metadata("design:type", Boolean)
|
|
82
|
+
], SMTPConfig.prototype, "secure", void 0);
|
|
83
|
+
exports.SMTPConfig = SMTPConfig = __decorate([
|
|
84
|
+
(0, mongoose_1.Schema)()
|
|
85
|
+
], SMTPConfig);
|
|
86
|
+
const SMTPConfigSchema = mongoose_1.SchemaFactory.createForClass(SMTPConfig);
|
|
87
|
+
let TextLocalConfig = exports.TextLocalConfig = class TextLocalConfig extends mongoose_2.Document {
|
|
88
|
+
isEnabled;
|
|
89
|
+
apiKey;
|
|
90
|
+
sender;
|
|
91
|
+
};
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
94
|
+
__metadata("design:type", Boolean)
|
|
95
|
+
], TextLocalConfig.prototype, "isEnabled", void 0);
|
|
96
|
+
__decorate([
|
|
97
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
98
|
+
__metadata("design:type", String)
|
|
99
|
+
], TextLocalConfig.prototype, "apiKey", void 0);
|
|
100
|
+
__decorate([
|
|
101
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
102
|
+
__metadata("design:type", String)
|
|
103
|
+
], TextLocalConfig.prototype, "sender", void 0);
|
|
104
|
+
exports.TextLocalConfig = TextLocalConfig = __decorate([
|
|
105
|
+
(0, mongoose_1.Schema)()
|
|
106
|
+
], TextLocalConfig);
|
|
107
|
+
const TextLocalConfigSchema = mongoose_1.SchemaFactory.createForClass(TextLocalConfig);
|
|
108
|
+
let RazorpayConfig = exports.RazorpayConfig = class RazorpayConfig extends mongoose_2.Document {
|
|
109
|
+
key;
|
|
110
|
+
secret;
|
|
111
|
+
};
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
114
|
+
__metadata("design:type", String)
|
|
115
|
+
], RazorpayConfig.prototype, "key", void 0);
|
|
116
|
+
__decorate([
|
|
117
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
118
|
+
__metadata("design:type", String)
|
|
119
|
+
], RazorpayConfig.prototype, "secret", void 0);
|
|
120
|
+
exports.RazorpayConfig = RazorpayConfig = __decorate([
|
|
121
|
+
(0, mongoose_1.Schema)()
|
|
122
|
+
], RazorpayConfig);
|
|
123
|
+
const RazorpayConfigSchema = mongoose_1.SchemaFactory.createForClass(RazorpayConfig);
|
|
124
|
+
let PaytmConfig = exports.PaytmConfig = class PaytmConfig extends mongoose_2.Document {
|
|
125
|
+
merchantId;
|
|
126
|
+
merchantKey;
|
|
127
|
+
industryType;
|
|
128
|
+
website;
|
|
129
|
+
isProd;
|
|
130
|
+
channelId;
|
|
131
|
+
callbackUrl;
|
|
132
|
+
transactionUrl;
|
|
133
|
+
accountNumber;
|
|
134
|
+
accountName;
|
|
135
|
+
};
|
|
136
|
+
__decorate([
|
|
137
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
138
|
+
__metadata("design:type", String)
|
|
139
|
+
], PaytmConfig.prototype, "merchantId", void 0);
|
|
140
|
+
__decorate([
|
|
141
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
142
|
+
__metadata("design:type", String)
|
|
143
|
+
], PaytmConfig.prototype, "merchantKey", void 0);
|
|
144
|
+
__decorate([
|
|
145
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
146
|
+
__metadata("design:type", String)
|
|
147
|
+
], PaytmConfig.prototype, "industryType", void 0);
|
|
148
|
+
__decorate([
|
|
149
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
150
|
+
__metadata("design:type", String)
|
|
151
|
+
], PaytmConfig.prototype, "website", void 0);
|
|
152
|
+
__decorate([
|
|
153
|
+
(0, mongoose_1.Prop)({ default: true }),
|
|
154
|
+
__metadata("design:type", Boolean)
|
|
155
|
+
], PaytmConfig.prototype, "isProd", void 0);
|
|
156
|
+
__decorate([
|
|
157
|
+
(0, mongoose_1.Prop)(),
|
|
158
|
+
__metadata("design:type", String)
|
|
159
|
+
], PaytmConfig.prototype, "channelId", void 0);
|
|
160
|
+
__decorate([
|
|
161
|
+
(0, mongoose_1.Prop)(),
|
|
162
|
+
__metadata("design:type", String)
|
|
163
|
+
], PaytmConfig.prototype, "callbackUrl", void 0);
|
|
164
|
+
__decorate([
|
|
165
|
+
(0, mongoose_1.Prop)(),
|
|
166
|
+
__metadata("design:type", String)
|
|
167
|
+
], PaytmConfig.prototype, "transactionUrl", void 0);
|
|
168
|
+
__decorate([
|
|
169
|
+
(0, mongoose_1.Prop)(),
|
|
170
|
+
__metadata("design:type", String)
|
|
171
|
+
], PaytmConfig.prototype, "accountNumber", void 0);
|
|
172
|
+
__decorate([
|
|
173
|
+
(0, mongoose_1.Prop)(),
|
|
174
|
+
__metadata("design:type", String)
|
|
175
|
+
], PaytmConfig.prototype, "accountName", void 0);
|
|
176
|
+
exports.PaytmConfig = PaytmConfig = __decorate([
|
|
177
|
+
(0, mongoose_1.Schema)()
|
|
178
|
+
], PaytmConfig);
|
|
179
|
+
const PaytmConfigSchema = mongoose_1.SchemaFactory.createForClass(PaytmConfig);
|
|
180
|
+
let AirPayConfig = exports.AirPayConfig = class AirPayConfig extends mongoose_2.Document {
|
|
181
|
+
merchantId;
|
|
182
|
+
username;
|
|
183
|
+
password;
|
|
184
|
+
secretKey;
|
|
185
|
+
};
|
|
186
|
+
__decorate([
|
|
187
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
188
|
+
__metadata("design:type", String)
|
|
189
|
+
], AirPayConfig.prototype, "merchantId", void 0);
|
|
190
|
+
__decorate([
|
|
191
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
192
|
+
__metadata("design:type", String)
|
|
193
|
+
], AirPayConfig.prototype, "username", void 0);
|
|
194
|
+
__decorate([
|
|
195
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
196
|
+
__metadata("design:type", String)
|
|
197
|
+
], AirPayConfig.prototype, "password", void 0);
|
|
198
|
+
__decorate([
|
|
199
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
200
|
+
__metadata("design:type", String)
|
|
201
|
+
], AirPayConfig.prototype, "secretKey", void 0);
|
|
202
|
+
exports.AirPayConfig = AirPayConfig = __decorate([
|
|
203
|
+
(0, mongoose_1.Schema)()
|
|
204
|
+
], AirPayConfig);
|
|
205
|
+
const AirPayConfigSchema = mongoose_1.SchemaFactory.createForClass(AirPayConfig);
|
|
206
|
+
exports.PaymentCredentialsTypes = {
|
|
207
|
+
RAZORPAY: 'RAZORPAY',
|
|
208
|
+
PAYTM: 'PAYTM',
|
|
209
|
+
AIRPAY: 'AIRPAY',
|
|
210
|
+
};
|
|
211
|
+
let PaymentCredentials = exports.PaymentCredentials = class PaymentCredentials extends mongoose_2.Document {
|
|
212
|
+
type;
|
|
213
|
+
razorpayConfig;
|
|
214
|
+
paytmConfig;
|
|
215
|
+
airPayConfig;
|
|
216
|
+
};
|
|
217
|
+
__decorate([
|
|
218
|
+
(0, mongoose_1.Prop)({ required: true, key: true }),
|
|
219
|
+
__metadata("design:type", String)
|
|
220
|
+
], PaymentCredentials.prototype, "type", void 0);
|
|
221
|
+
__decorate([
|
|
222
|
+
(0, mongoose_1.Prop)({ type: RazorpayConfigSchema }),
|
|
223
|
+
__metadata("design:type", RazorpayConfig)
|
|
224
|
+
], PaymentCredentials.prototype, "razorpayConfig", void 0);
|
|
225
|
+
__decorate([
|
|
226
|
+
(0, mongoose_1.Prop)({ type: PaytmConfigSchema }),
|
|
227
|
+
__metadata("design:type", PaytmConfig)
|
|
228
|
+
], PaymentCredentials.prototype, "paytmConfig", void 0);
|
|
229
|
+
__decorate([
|
|
230
|
+
(0, mongoose_1.Prop)({ type: AirPayConfigSchema }),
|
|
231
|
+
__metadata("design:type", AirPayConfig)
|
|
232
|
+
], PaymentCredentials.prototype, "airPayConfig", void 0);
|
|
233
|
+
exports.PaymentCredentials = PaymentCredentials = __decorate([
|
|
234
|
+
(0, mongoose_1.Schema)()
|
|
235
|
+
], PaymentCredentials);
|
|
236
|
+
const PaymentCredentialsSchema = mongoose_1.SchemaFactory.createForClass(PaymentCredentials);
|
|
237
|
+
let TenantEnvironment = exports.TenantEnvironment = class TenantEnvironment extends mongoose_2.Document {
|
|
238
|
+
s3BucketName;
|
|
239
|
+
sentryDsn;
|
|
240
|
+
clientName;
|
|
241
|
+
studentAndroidApp;
|
|
242
|
+
studentIOSApp;
|
|
243
|
+
facultyAndroidApp;
|
|
244
|
+
facultyIOSApp;
|
|
245
|
+
razorpayKey;
|
|
246
|
+
razorpaySecret;
|
|
247
|
+
};
|
|
248
|
+
__decorate([
|
|
249
|
+
(0, mongoose_1.Prop)(),
|
|
250
|
+
__metadata("design:type", String)
|
|
251
|
+
], TenantEnvironment.prototype, "s3BucketName", void 0);
|
|
252
|
+
__decorate([
|
|
253
|
+
(0, mongoose_1.Prop)(),
|
|
254
|
+
__metadata("design:type", String)
|
|
255
|
+
], TenantEnvironment.prototype, "sentryDsn", void 0);
|
|
256
|
+
__decorate([
|
|
257
|
+
(0, mongoose_1.Prop)(),
|
|
258
|
+
__metadata("design:type", String)
|
|
259
|
+
], TenantEnvironment.prototype, "clientName", void 0);
|
|
260
|
+
__decorate([
|
|
261
|
+
(0, mongoose_1.Prop)(),
|
|
262
|
+
__metadata("design:type", String)
|
|
263
|
+
], TenantEnvironment.prototype, "studentAndroidApp", void 0);
|
|
264
|
+
__decorate([
|
|
265
|
+
(0, mongoose_1.Prop)(),
|
|
266
|
+
__metadata("design:type", String)
|
|
267
|
+
], TenantEnvironment.prototype, "studentIOSApp", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
(0, mongoose_1.Prop)(),
|
|
270
|
+
__metadata("design:type", String)
|
|
271
|
+
], TenantEnvironment.prototype, "facultyAndroidApp", void 0);
|
|
272
|
+
__decorate([
|
|
273
|
+
(0, mongoose_1.Prop)(),
|
|
274
|
+
__metadata("design:type", String)
|
|
275
|
+
], TenantEnvironment.prototype, "facultyIOSApp", void 0);
|
|
276
|
+
__decorate([
|
|
277
|
+
(0, mongoose_1.Prop)(),
|
|
278
|
+
__metadata("design:type", String)
|
|
279
|
+
], TenantEnvironment.prototype, "razorpayKey", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
(0, mongoose_1.Prop)(),
|
|
282
|
+
__metadata("design:type", String)
|
|
283
|
+
], TenantEnvironment.prototype, "razorpaySecret", void 0);
|
|
284
|
+
exports.TenantEnvironment = TenantEnvironment = __decorate([
|
|
285
|
+
(0, mongoose_1.Schema)()
|
|
286
|
+
], TenantEnvironment);
|
|
287
|
+
const TenantEnvironmentSchema = mongoose_1.SchemaFactory.createForClass(TenantEnvironment);
|
|
288
|
+
exports.TenantCName = 'tenants';
|
|
289
|
+
let Tenant = exports.Tenant = class Tenant extends mongoose_2.Document {
|
|
290
|
+
name;
|
|
291
|
+
subDomain;
|
|
292
|
+
database;
|
|
293
|
+
env;
|
|
294
|
+
easyWDMSConfig;
|
|
295
|
+
smtpConfig;
|
|
296
|
+
textLocalConfig;
|
|
297
|
+
paymentCredentials;
|
|
298
|
+
defaultPaymentCredentials;
|
|
299
|
+
hasInActivityCheck;
|
|
300
|
+
inActivityCheckTime;
|
|
301
|
+
};
|
|
302
|
+
__decorate([
|
|
303
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
304
|
+
__metadata("design:type", String)
|
|
305
|
+
], Tenant.prototype, "name", void 0);
|
|
306
|
+
__decorate([
|
|
307
|
+
(0, mongoose_1.Prop)({ required: true, unique: true }),
|
|
308
|
+
__metadata("design:type", String)
|
|
309
|
+
], Tenant.prototype, "subDomain", void 0);
|
|
310
|
+
__decorate([
|
|
311
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
312
|
+
__metadata("design:type", String)
|
|
313
|
+
], Tenant.prototype, "database", void 0);
|
|
314
|
+
__decorate([
|
|
315
|
+
(0, mongoose_1.Prop)({ required: true, type: TenantEnvironmentSchema }),
|
|
316
|
+
__metadata("design:type", TenantEnvironment)
|
|
317
|
+
], Tenant.prototype, "env", void 0);
|
|
318
|
+
__decorate([
|
|
319
|
+
(0, mongoose_1.Prop)({ type: EasyWDMSConfigSchema }),
|
|
320
|
+
__metadata("design:type", EasyWDMSConfig)
|
|
321
|
+
], Tenant.prototype, "easyWDMSConfig", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, mongoose_1.Prop)({ type: SMTPConfigSchema }),
|
|
324
|
+
__metadata("design:type", SMTPConfig)
|
|
325
|
+
], Tenant.prototype, "smtpConfig", void 0);
|
|
326
|
+
__decorate([
|
|
327
|
+
(0, mongoose_1.Prop)({ type: TextLocalConfigSchema, required: false }),
|
|
328
|
+
__metadata("design:type", TextLocalConfig)
|
|
329
|
+
], Tenant.prototype, "textLocalConfig", void 0);
|
|
330
|
+
__decorate([
|
|
331
|
+
(0, mongoose_1.Prop)({ type: [PaymentCredentialsSchema], default: [] }),
|
|
332
|
+
__metadata("design:type", Array)
|
|
333
|
+
], Tenant.prototype, "paymentCredentials", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.ObjectId }),
|
|
336
|
+
__metadata("design:type", String)
|
|
337
|
+
], Tenant.prototype, "defaultPaymentCredentials", void 0);
|
|
338
|
+
__decorate([
|
|
339
|
+
(0, mongoose_1.Prop)({ default: false }),
|
|
340
|
+
__metadata("design:type", Boolean)
|
|
341
|
+
], Tenant.prototype, "hasInActivityCheck", void 0);
|
|
342
|
+
__decorate([
|
|
343
|
+
(0, mongoose_1.Prop)(),
|
|
344
|
+
__metadata("design:type", Number)
|
|
345
|
+
], Tenant.prototype, "inActivityCheckTime", void 0);
|
|
346
|
+
exports.Tenant = Tenant = __decorate([
|
|
347
|
+
(0, mongoose_1.Schema)({ collection: exports.TenantCName, timestamps: true, id: true })
|
|
348
|
+
], Tenant);
|
|
349
|
+
exports.TenantSchema = mongoose_1.SchemaFactory.createForClass(Tenant);
|
|
348
350
|
//# sourceMappingURL=tenant.schema.js.map
|