@euler-edu/nest 0.0.0-stage → 7.0.1-beta0
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/lib/.tsbuildinfo +1 -0
- package/lib/connection/mongo/index.d.ts +3 -0
- package/lib/connection/mongo/index.d.ts.map +1 -0
- package/lib/connection/mongo/index.js +19 -0
- package/lib/connection/mongo/index.js.map +1 -0
- package/lib/connection/mongo/mongo.module.d.ts +5 -0
- package/lib/connection/mongo/mongo.module.d.ts.map +1 -0
- package/lib/connection/mongo/mongo.module.js +30 -0
- package/lib/connection/mongo/mongo.module.js.map +1 -0
- package/lib/connection/mongo/mongo.service.d.ts +21 -0
- package/lib/connection/mongo/mongo.service.d.ts.map +1 -0
- package/lib/connection/mongo/mongo.service.js +57 -0
- package/lib/connection/mongo/mongo.service.js.map +1 -0
- package/lib/connection/mongo/oj-main/contest.d.ts +399 -0
- package/lib/connection/mongo/oj-main/contest.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/contest.js +55 -0
- package/lib/connection/mongo/oj-main/contest.js.map +1 -0
- package/lib/connection/mongo/oj-main/index.d.ts +8 -0
- package/lib/connection/mongo/oj-main/index.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/index.js +18 -0
- package/lib/connection/mongo/oj-main/index.js.map +1 -0
- package/lib/connection/mongo/oj-main/mail.d.ts +55 -0
- package/lib/connection/mongo/oj-main/mail.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/mail.js +44 -0
- package/lib/connection/mongo/oj-main/mail.js.map +1 -0
- package/lib/connection/mongo/oj-main/problem.d.ts +103 -0
- package/lib/connection/mongo/oj-main/problem.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/problem.js +29 -0
- package/lib/connection/mongo/oj-main/problem.js.map +1 -0
- package/lib/connection/mongo/oj-main/record.d.ts +47 -0
- package/lib/connection/mongo/oj-main/record.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/record.js +26 -0
- package/lib/connection/mongo/oj-main/record.js.map +1 -0
- package/lib/connection/mongo/oj-main/sourceconsole.d.ts +67 -0
- package/lib/connection/mongo/oj-main/sourceconsole.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/sourceconsole.js +19 -0
- package/lib/connection/mongo/oj-main/sourceconsole.js.map +1 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.d.ts +175 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.js +47 -0
- package/lib/connection/mongo/oj-main/sourcesubmit.js.map +1 -0
- package/lib/connection/mongo/oj-main/user.d.ts +131 -0
- package/lib/connection/mongo/oj-main/user.d.ts.map +1 -0
- package/lib/connection/mongo/oj-main/user.js +35 -0
- package/lib/connection/mongo/oj-main/user.js.map +1 -0
- package/lib/connection/mongo/oj-sq/index.d.ts +3 -0
- package/lib/connection/mongo/oj-sq/index.d.ts.map +1 -0
- package/lib/connection/mongo/oj-sq/index.js +8 -0
- package/lib/connection/mongo/oj-sq/index.js.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.d.ts +291 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.d.ts.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.js +58 -0
- package/lib/connection/mongo/oj-sq/scoringRequest.js.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringServer.d.ts +39 -0
- package/lib/connection/mongo/oj-sq/scoringServer.d.ts.map +1 -0
- package/lib/connection/mongo/oj-sq/scoringServer.js +12 -0
- package/lib/connection/mongo/oj-sq/scoringServer.js.map +1 -0
- package/lib/connection/redis/index.d.ts +3 -0
- package/lib/connection/redis/index.d.ts.map +1 -0
- package/lib/connection/redis/index.js +19 -0
- package/lib/connection/redis/index.js.map +1 -0
- package/lib/connection/redis/redis.module.d.ts +5 -0
- package/lib/connection/redis/redis.module.d.ts.map +1 -0
- package/lib/connection/redis/redis.module.js +30 -0
- package/lib/connection/redis/redis.module.js.map +1 -0
- package/lib/connection/redis/redis.service.d.ts +35 -0
- package/lib/connection/redis/redis.service.d.ts.map +1 -0
- package/lib/connection/redis/redis.service.js +85 -0
- package/lib/connection/redis/redis.service.js.map +1 -0
- package/lib/connection/s3/index.d.ts +3 -0
- package/lib/connection/s3/index.d.ts.map +1 -0
- package/lib/connection/s3/index.js +19 -0
- package/lib/connection/s3/index.js.map +1 -0
- package/lib/connection/s3/s3.module.d.ts +11 -0
- package/lib/connection/s3/s3.module.d.ts.map +1 -0
- package/lib/connection/s3/s3.module.js +57 -0
- package/lib/connection/s3/s3.module.js.map +1 -0
- package/lib/connection/s3/s3.service.d.ts +54 -0
- package/lib/connection/s3/s3.service.d.ts.map +1 -0
- package/lib/connection/s3/s3.service.js +253 -0
- package/lib/connection/s3/s3.service.js.map +1 -0
- package/lib/connection/social/index.d.ts +3 -0
- package/lib/connection/social/index.d.ts.map +1 -0
- package/lib/connection/social/index.js +19 -0
- package/lib/connection/social/index.js.map +1 -0
- package/lib/connection/social/social.module.d.ts +3 -0
- package/lib/connection/social/social.module.d.ts.map +1 -0
- package/lib/connection/social/social.module.js +21 -0
- package/lib/connection/social/social.module.js.map +1 -0
- package/lib/connection/social/social.service.d.ts +16 -0
- package/lib/connection/social/social.service.d.ts.map +1 -0
- package/lib/connection/social/social.service.js +230 -0
- package/lib/connection/social/social.service.js.map +1 -0
- package/lib/connection/sqs/index.d.ts +3 -0
- package/lib/connection/sqs/index.d.ts.map +1 -0
- package/lib/connection/sqs/index.js +19 -0
- package/lib/connection/sqs/index.js.map +1 -0
- package/lib/connection/sqs/sqs.module.d.ts +5 -0
- package/lib/connection/sqs/sqs.module.d.ts.map +1 -0
- package/lib/connection/sqs/sqs.module.js +31 -0
- package/lib/connection/sqs/sqs.module.js.map +1 -0
- package/lib/connection/sqs/sqs.service.d.ts +28 -0
- package/lib/connection/sqs/sqs.service.d.ts.map +1 -0
- package/lib/connection/sqs/sqs.service.js +122 -0
- package/lib/connection/sqs/sqs.service.js.map +1 -0
- package/lib/constants/metadata.d.ts +5 -0
- package/lib/constants/metadata.d.ts.map +1 -0
- package/lib/constants/metadata.js +8 -0
- package/lib/constants/metadata.js.map +1 -0
- package/lib/decorators/auth.decorator.d.ts +15 -0
- package/lib/decorators/auth.decorator.d.ts.map +1 -0
- package/lib/decorators/auth.decorator.js +65 -0
- package/lib/decorators/auth.decorator.js.map +1 -0
- package/lib/decorators/client.decorator.d.ts +9 -0
- package/lib/decorators/client.decorator.d.ts.map +1 -0
- package/lib/decorators/client.decorator.js +49 -0
- package/lib/decorators/client.decorator.js.map +1 -0
- package/lib/decorators/endpoint.decorator.d.ts +3 -0
- package/lib/decorators/endpoint.decorator.d.ts.map +1 -0
- package/lib/decorators/endpoint.decorator.js +96 -0
- package/lib/decorators/endpoint.decorator.js.map +1 -0
- package/lib/decorators/index.d.ts +8 -0
- package/lib/decorators/index.d.ts.map +1 -0
- package/lib/decorators/index.js +24 -0
- package/lib/decorators/index.js.map +1 -0
- package/lib/decorators/mongo.decorator.d.ts +8 -0
- package/lib/decorators/mongo.decorator.d.ts.map +1 -0
- package/lib/decorators/mongo.decorator.js +115 -0
- package/lib/decorators/mongo.decorator.js.map +1 -0
- package/lib/decorators/socket.decorator.d.ts +5 -0
- package/lib/decorators/socket.decorator.d.ts.map +1 -0
- package/lib/decorators/socket.decorator.js +28 -0
- package/lib/decorators/socket.decorator.js.map +1 -0
- package/lib/decorators/sqs.decorator.d.ts +4 -0
- package/lib/decorators/sqs.decorator.d.ts.map +1 -0
- package/lib/decorators/sqs.decorator.js +8 -0
- package/lib/decorators/sqs.decorator.js.map +1 -0
- package/lib/decorators/swagger.decorator.d.ts +2 -0
- package/lib/decorators/swagger.decorator.d.ts.map +1 -0
- package/lib/decorators/swagger.decorator.js +8 -0
- package/lib/decorators/swagger.decorator.js.map +1 -0
- package/lib/filters/global.filters.d.ts +16 -0
- package/lib/filters/global.filters.d.ts.map +1 -0
- package/lib/filters/global.filters.js +75 -0
- package/lib/filters/global.filters.js.map +1 -0
- package/lib/filters/index.d.ts +2 -0
- package/lib/filters/index.d.ts.map +1 -0
- package/lib/filters/index.js +18 -0
- package/lib/filters/index.js.map +1 -0
- package/lib/guards/auth.guard.d.ts +13 -0
- package/lib/guards/auth.guard.d.ts.map +1 -0
- package/lib/guards/auth.guard.js +61 -0
- package/lib/guards/auth.guard.js.map +1 -0
- package/lib/guards/endpoint.guard.d.ts +4 -0
- package/lib/guards/endpoint.guard.d.ts.map +1 -0
- package/lib/guards/endpoint.guard.js +39 -0
- package/lib/guards/endpoint.guard.js.map +1 -0
- package/lib/guards/global.guard.d.ts +10 -0
- package/lib/guards/global.guard.d.ts.map +1 -0
- package/lib/guards/global.guard.js +139 -0
- package/lib/guards/global.guard.js.map +1 -0
- package/lib/guards/index.d.ts +5 -0
- package/lib/guards/index.d.ts.map +1 -0
- package/lib/guards/index.js +21 -0
- package/lib/guards/index.js.map +1 -0
- package/lib/guards/socket.guard.d.ts +4 -0
- package/lib/guards/socket.guard.d.ts.map +1 -0
- package/lib/guards/socket.guard.js +35 -0
- package/lib/guards/socket.guard.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -0
- package/lib/logger/index.d.ts +3 -0
- package/lib/logger/index.d.ts.map +1 -0
- package/lib/logger/index.js +21 -0
- package/lib/logger/index.js.map +1 -0
- package/lib/logger/logger.module.d.ts +3 -0
- package/lib/logger/logger.module.d.ts.map +1 -0
- package/lib/logger/logger.module.js +46 -0
- package/lib/logger/logger.module.js.map +1 -0
- package/lib/recaptcha/index.d.ts +3 -0
- package/lib/recaptcha/index.d.ts.map +1 -0
- package/lib/recaptcha/index.js +19 -0
- package/lib/recaptcha/index.js.map +1 -0
- package/lib/recaptcha/recaptcha.module.d.ts +3 -0
- package/lib/recaptcha/recaptcha.module.d.ts.map +1 -0
- package/lib/recaptcha/recaptcha.module.js +21 -0
- package/lib/recaptcha/recaptcha.module.js.map +1 -0
- package/lib/recaptcha/recaptcha.service.d.ts +5 -0
- package/lib/recaptcha/recaptcha.service.d.ts.map +1 -0
- package/lib/recaptcha/recaptcha.service.js +46 -0
- package/lib/recaptcha/recaptcha.service.js.map +1 -0
- package/lib/utils/image/index.d.ts +4 -0
- package/lib/utils/image/index.d.ts.map +1 -0
- package/lib/utils/image/index.js +16 -0
- package/lib/utils/image/index.js.map +1 -0
- package/lib/utils/jwt/index.d.ts +2 -0
- package/lib/utils/jwt/index.d.ts.map +1 -0
- package/lib/utils/jwt/index.js +38 -0
- package/lib/utils/jwt/index.js.map +1 -0
- package/lib/utils/logger/index.d.ts +45 -0
- package/lib/utils/logger/index.d.ts.map +1 -0
- package/lib/utils/logger/index.js +59 -0
- package/lib/utils/logger/index.js.map +1 -0
- package/lib/utils/mongo/index.d.ts +2 -0
- package/lib/utils/mongo/index.d.ts.map +1 -0
- package/lib/utils/mongo/index.js +6 -0
- package/lib/utils/mongo/index.js.map +1 -0
- package/lib/utils/swagger/index.d.ts +7 -0
- package/lib/utils/swagger/index.d.ts.map +1 -0
- package/lib/utils/swagger/index.js +29 -0
- package/lib/utils/swagger/index.js.map +1 -0
- package/package.json +62 -3
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/connection/mongo/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./mongo.service"), exports);
|
|
18
|
+
__exportStar(require("./mongo.module"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/connection/mongo/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAgC;AAChC,iDAA+B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.module.d.ts","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.module.ts"],"names":[],"mappings":"AAIA,qBAIa,iBAAiB;CAAG;AAEjC,qBAIa,eAAe;CAAG"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.MongoOjSQModule = exports.MongoOjMainModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const mongo_service_1 = require("./mongo.service");
|
|
12
|
+
let MongoOjMainModule = class MongoOjMainModule {
|
|
13
|
+
};
|
|
14
|
+
exports.MongoOjMainModule = MongoOjMainModule;
|
|
15
|
+
exports.MongoOjMainModule = MongoOjMainModule = __decorate([
|
|
16
|
+
(0, common_1.Module)({
|
|
17
|
+
providers: [mongo_service_1.MongoOjMainService],
|
|
18
|
+
exports: [mongo_service_1.MongoOjMainService],
|
|
19
|
+
})
|
|
20
|
+
], MongoOjMainModule);
|
|
21
|
+
let MongoOjSQModule = class MongoOjSQModule {
|
|
22
|
+
};
|
|
23
|
+
exports.MongoOjSQModule = MongoOjSQModule;
|
|
24
|
+
exports.MongoOjSQModule = MongoOjSQModule = __decorate([
|
|
25
|
+
(0, common_1.Module)({
|
|
26
|
+
providers: [mongo_service_1.MongoOjSQService],
|
|
27
|
+
exports: [mongo_service_1.MongoOjSQService],
|
|
28
|
+
})
|
|
29
|
+
], MongoOjSQModule);
|
|
30
|
+
//# sourceMappingURL=mongo.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.module.js","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AAExC,mDAAuE;AAMhE,IAAM,iBAAiB,GAAvB,MAAM,iBAAiB;CAAG,CAAA;AAApB,8CAAiB;4BAAjB,iBAAiB;IAJ7B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,kCAAkB,CAAC;QAC/B,OAAO,EAAE,CAAC,kCAAkB,CAAC;KAC9B,CAAC;GACW,iBAAiB,CAAG;AAM1B,IAAM,eAAe,GAArB,MAAM,eAAe;CAAG,CAAA;AAAlB,0CAAe;0BAAf,eAAe;IAJ3B,IAAA,eAAM,EAAC;QACN,SAAS,EAAE,CAAC,gCAAgB,CAAC;QAC7B,OAAO,EAAE,CAAC,gCAAgB,CAAC;KAC5B,CAAC;GACW,eAAe,CAAG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import mongoose from 'mongoose';
|
|
2
|
+
export declare class MongoOjMainService {
|
|
3
|
+
private readonly logger;
|
|
4
|
+
private connection;
|
|
5
|
+
userModel: mongoose.Model<any>;
|
|
6
|
+
problemModel: mongoose.Model<any>;
|
|
7
|
+
contestModel: mongoose.Model<any>;
|
|
8
|
+
sourcesubmitModel: mongoose.Model<any>;
|
|
9
|
+
sourceconsoleModel: mongoose.Model<any>;
|
|
10
|
+
recordModel: mongoose.Model<any>;
|
|
11
|
+
mailModel: mongoose.Model<any>;
|
|
12
|
+
constructor();
|
|
13
|
+
}
|
|
14
|
+
export declare class MongoOjSQService {
|
|
15
|
+
private readonly logger;
|
|
16
|
+
private connection;
|
|
17
|
+
scoringRequestModel: mongoose.Model<any>;
|
|
18
|
+
scoringServerModel: mongoose.Model<any>;
|
|
19
|
+
constructor();
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=mongo.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.service.d.ts","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.service.ts"],"names":[],"mappings":"AACA,OAAO,QAAQ,MAAM,UAAU,CAAC;AAehC,qBACa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuC;IAC9D,OAAO,CAAC,UAAU,CAAsB;IAGjC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAClC,iBAAiB,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACvC,kBAAkB,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACjC,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;CAyBvC;AAED,qBACa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqC;IAC5D,OAAO,CAAC,UAAU,CAAsB;IAGjC,mBAAmB,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACzC,kBAAkB,EAAE,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;;CAoBhD"}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
var MongoOjMainService_1, MongoOjSQService_1;
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.MongoOjSQService = exports.MongoOjMainService = void 0;
|
|
17
|
+
const common_1 = require("@nestjs/common");
|
|
18
|
+
const mongoose_1 = __importDefault(require("mongoose"));
|
|
19
|
+
const constants_1 = __importDefault(require("@euler-edu/utils/constants"));
|
|
20
|
+
const oj_main_1 = require("./oj-main");
|
|
21
|
+
const oj_sq_1 = require("./oj-sq");
|
|
22
|
+
let MongoOjMainService = MongoOjMainService_1 = class MongoOjMainService {
|
|
23
|
+
constructor() {
|
|
24
|
+
this.logger = new common_1.Logger(MongoOjMainService_1.name);
|
|
25
|
+
this.connection = mongoose_1.default.createConnection(constants_1.default.url.mongo.ojMainUrl);
|
|
26
|
+
this.connection.on('connected', () => this.logger.log('Mongo-main-DB is connected'));
|
|
27
|
+
this.connection.on('disconnected', () => this.logger.log('Mongo-main-DB is dis-connected'));
|
|
28
|
+
this.userModel = this.connection.model('users', oj_main_1.userSchema);
|
|
29
|
+
this.problemModel = this.connection.model('problems_v2', oj_main_1.problemSchema);
|
|
30
|
+
this.contestModel = this.connection.model('contests', oj_main_1.contestSchema);
|
|
31
|
+
this.sourcesubmitModel = this.connection.model('source_submits_v2', oj_main_1.sourcesubmitSchema);
|
|
32
|
+
this.sourceconsoleModel = this.connection.model('source_consoles_v2', oj_main_1.sourceconsoleSchema);
|
|
33
|
+
this.recordModel = this.connection.model('records', oj_main_1.recordSchema);
|
|
34
|
+
this.mailModel = this.connection.model('mails', oj_main_1.mailSchema);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.MongoOjMainService = MongoOjMainService;
|
|
38
|
+
exports.MongoOjMainService = MongoOjMainService = MongoOjMainService_1 = __decorate([
|
|
39
|
+
(0, common_1.Injectable)(),
|
|
40
|
+
__metadata("design:paramtypes", [])
|
|
41
|
+
], MongoOjMainService);
|
|
42
|
+
let MongoOjSQService = MongoOjSQService_1 = class MongoOjSQService {
|
|
43
|
+
constructor() {
|
|
44
|
+
this.logger = new common_1.Logger(MongoOjSQService_1.name);
|
|
45
|
+
this.connection = mongoose_1.default.createConnection(constants_1.default.url.mongo.ojSQUrl);
|
|
46
|
+
this.connection.on('connected', () => this.logger.log('Mongo-sq-DB is connected'));
|
|
47
|
+
this.connection.on('disconnected', () => this.logger.log('Mongo-sq-DB is dis-connected'));
|
|
48
|
+
this.scoringRequestModel = this.connection.model('scoring_requests_v2', oj_sq_1.scoringRequestSchema);
|
|
49
|
+
this.scoringServerModel = this.connection.model('scoring_servers', oj_sq_1.scoringServerSchema);
|
|
50
|
+
}
|
|
51
|
+
};
|
|
52
|
+
exports.MongoOjSQService = MongoOjSQService;
|
|
53
|
+
exports.MongoOjSQService = MongoOjSQService = MongoOjSQService_1 = __decorate([
|
|
54
|
+
(0, common_1.Injectable)(),
|
|
55
|
+
__metadata("design:paramtypes", [])
|
|
56
|
+
], MongoOjSQService);
|
|
57
|
+
//# sourceMappingURL=mongo.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mongo.service.js","sourceRoot":"","sources":["../../../src/connection/mongo/mongo.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAoD;AACpD,wDAAgC;AAEhC,2EAAmD;AAEnD,uCAQmB;AACnB,mCAAoE;AAG7D,IAAM,kBAAkB,0BAAxB,MAAM,kBAAkB;IAa7B;QAZiB,WAAM,GAAG,IAAI,eAAM,CAAC,oBAAkB,CAAC,IAAI,CAAC,CAAC;QAa5D,IAAI,CAAC,UAAU,GAAG,kBAAQ,CAAC,gBAAgB,CAAC,mBAAS,CAAC,GAAG,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC3E,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CACnC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,4BAA4B,CAAC,CAC9C,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,CACtC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAClD,CAAC;QAEF,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAU,CAAC,CAAC;QAC5D,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,aAAa,EAAE,uBAAa,CAAC,CAAC;QACxE,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,UAAU,EAAE,uBAAa,CAAC,CAAC;QACrE,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAC5C,mBAAmB,EACnB,4BAAkB,CACnB,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAC7C,oBAAoB,EACpB,6BAAmB,CACpB,CAAC;QACF,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,SAAS,EAAE,sBAAY,CAAC,CAAC;QAClE,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAAC,OAAO,EAAE,oBAAU,CAAC,CAAC;IAC9D,CAAC;CACF,CAAA;AApCY,gDAAkB;6BAAlB,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;;GACA,kBAAkB,CAoC9B;AAGM,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAQ3B;QAPiB,WAAM,GAAG,IAAI,eAAM,CAAC,kBAAgB,CAAC,IAAI,CAAC,CAAC;QAQ1D,IAAI,CAAC,UAAU,GAAG,kBAAQ,CAAC,gBAAgB,CAAC,mBAAS,CAAC,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACzE,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,CACnC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,0BAA0B,CAAC,CAC5C,CAAC;QACF,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,CACtC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,CAAC,CAChD,CAAC;QAEF,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAC9C,qBAAqB,EACrB,4BAAoB,CACrB,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,UAAU,CAAC,KAAK,CAC7C,iBAAiB,EACjB,2BAAmB,CACpB,CAAC;IACJ,CAAC;CACF,CAAA;AA1BY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;;GACA,gBAAgB,CA0B5B"}
|
|
@@ -0,0 +1,399 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const contestSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
created_at: NativeDate;
|
|
4
|
+
updated_at: NativeDate;
|
|
5
|
+
join_type: "public";
|
|
6
|
+
rank_type: "acm-icpc";
|
|
7
|
+
compile_types: string[];
|
|
8
|
+
manager_user_ids: string[];
|
|
9
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
10
|
+
id: string;
|
|
11
|
+
joined_at: NativeDate;
|
|
12
|
+
panalty_total: number;
|
|
13
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
14
|
+
problem_id: string;
|
|
15
|
+
tries: number;
|
|
16
|
+
status: "accept" | "wrong" | "pending";
|
|
17
|
+
panalty: number;
|
|
18
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
19
|
+
problem_id: string;
|
|
20
|
+
tries: number;
|
|
21
|
+
status: "accept" | "wrong" | "pending";
|
|
22
|
+
panalty: number;
|
|
23
|
+
}, {}, {}> & {
|
|
24
|
+
problem_id: string;
|
|
25
|
+
tries: number;
|
|
26
|
+
status: "accept" | "wrong" | "pending";
|
|
27
|
+
panalty: number;
|
|
28
|
+
}>;
|
|
29
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
30
|
+
id: string;
|
|
31
|
+
joined_at: NativeDate;
|
|
32
|
+
panalty_total: number;
|
|
33
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
34
|
+
problem_id: string;
|
|
35
|
+
tries: number;
|
|
36
|
+
status: "accept" | "wrong" | "pending";
|
|
37
|
+
panalty: number;
|
|
38
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
39
|
+
problem_id: string;
|
|
40
|
+
tries: number;
|
|
41
|
+
status: "accept" | "wrong" | "pending";
|
|
42
|
+
panalty: number;
|
|
43
|
+
}, {}, {}> & {
|
|
44
|
+
problem_id: string;
|
|
45
|
+
tries: number;
|
|
46
|
+
status: "accept" | "wrong" | "pending";
|
|
47
|
+
panalty: number;
|
|
48
|
+
}>;
|
|
49
|
+
}, {}, {}> & {
|
|
50
|
+
id: string;
|
|
51
|
+
joined_at: NativeDate;
|
|
52
|
+
panalty_total: number;
|
|
53
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
54
|
+
problem_id: string;
|
|
55
|
+
tries: number;
|
|
56
|
+
status: "accept" | "wrong" | "pending";
|
|
57
|
+
panalty: number;
|
|
58
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
59
|
+
problem_id: string;
|
|
60
|
+
tries: number;
|
|
61
|
+
status: "accept" | "wrong" | "pending";
|
|
62
|
+
panalty: number;
|
|
63
|
+
}, {}, {}> & {
|
|
64
|
+
problem_id: string;
|
|
65
|
+
tries: number;
|
|
66
|
+
status: "accept" | "wrong" | "pending";
|
|
67
|
+
panalty: number;
|
|
68
|
+
}>;
|
|
69
|
+
}>;
|
|
70
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
71
|
+
id: string;
|
|
72
|
+
problem_id: string;
|
|
73
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
74
|
+
id: string;
|
|
75
|
+
problem_id: string;
|
|
76
|
+
}, {}, {}> & {
|
|
77
|
+
id: string;
|
|
78
|
+
problem_id: string;
|
|
79
|
+
}>;
|
|
80
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
81
|
+
created_at: NativeDate;
|
|
82
|
+
updated_at: NativeDate;
|
|
83
|
+
content: string;
|
|
84
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
85
|
+
created_at: NativeDate;
|
|
86
|
+
updated_at: NativeDate;
|
|
87
|
+
content: string;
|
|
88
|
+
}, {}, {}> & {
|
|
89
|
+
created_at: NativeDate;
|
|
90
|
+
updated_at: NativeDate;
|
|
91
|
+
content: string;
|
|
92
|
+
}>;
|
|
93
|
+
time_start: NativeDate;
|
|
94
|
+
time_end: NativeDate;
|
|
95
|
+
title?: {
|
|
96
|
+
kr: string;
|
|
97
|
+
} | null | undefined;
|
|
98
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
99
|
+
created_at: NativeDate;
|
|
100
|
+
updated_at: NativeDate;
|
|
101
|
+
join_type: "public";
|
|
102
|
+
rank_type: "acm-icpc";
|
|
103
|
+
compile_types: string[];
|
|
104
|
+
manager_user_ids: string[];
|
|
105
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
106
|
+
id: string;
|
|
107
|
+
joined_at: NativeDate;
|
|
108
|
+
panalty_total: number;
|
|
109
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
110
|
+
problem_id: string;
|
|
111
|
+
tries: number;
|
|
112
|
+
status: "accept" | "wrong" | "pending";
|
|
113
|
+
panalty: number;
|
|
114
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
115
|
+
problem_id: string;
|
|
116
|
+
tries: number;
|
|
117
|
+
status: "accept" | "wrong" | "pending";
|
|
118
|
+
panalty: number;
|
|
119
|
+
}, {}, {}> & {
|
|
120
|
+
problem_id: string;
|
|
121
|
+
tries: number;
|
|
122
|
+
status: "accept" | "wrong" | "pending";
|
|
123
|
+
panalty: number;
|
|
124
|
+
}>;
|
|
125
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
126
|
+
id: string;
|
|
127
|
+
joined_at: NativeDate;
|
|
128
|
+
panalty_total: number;
|
|
129
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
130
|
+
problem_id: string;
|
|
131
|
+
tries: number;
|
|
132
|
+
status: "accept" | "wrong" | "pending";
|
|
133
|
+
panalty: number;
|
|
134
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
135
|
+
problem_id: string;
|
|
136
|
+
tries: number;
|
|
137
|
+
status: "accept" | "wrong" | "pending";
|
|
138
|
+
panalty: number;
|
|
139
|
+
}, {}, {}> & {
|
|
140
|
+
problem_id: string;
|
|
141
|
+
tries: number;
|
|
142
|
+
status: "accept" | "wrong" | "pending";
|
|
143
|
+
panalty: number;
|
|
144
|
+
}>;
|
|
145
|
+
}, {}, {}> & {
|
|
146
|
+
id: string;
|
|
147
|
+
joined_at: NativeDate;
|
|
148
|
+
panalty_total: number;
|
|
149
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
150
|
+
problem_id: string;
|
|
151
|
+
tries: number;
|
|
152
|
+
status: "accept" | "wrong" | "pending";
|
|
153
|
+
panalty: number;
|
|
154
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
155
|
+
problem_id: string;
|
|
156
|
+
tries: number;
|
|
157
|
+
status: "accept" | "wrong" | "pending";
|
|
158
|
+
panalty: number;
|
|
159
|
+
}, {}, {}> & {
|
|
160
|
+
problem_id: string;
|
|
161
|
+
tries: number;
|
|
162
|
+
status: "accept" | "wrong" | "pending";
|
|
163
|
+
panalty: number;
|
|
164
|
+
}>;
|
|
165
|
+
}>;
|
|
166
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
167
|
+
id: string;
|
|
168
|
+
problem_id: string;
|
|
169
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
170
|
+
id: string;
|
|
171
|
+
problem_id: string;
|
|
172
|
+
}, {}, {}> & {
|
|
173
|
+
id: string;
|
|
174
|
+
problem_id: string;
|
|
175
|
+
}>;
|
|
176
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
177
|
+
created_at: NativeDate;
|
|
178
|
+
updated_at: NativeDate;
|
|
179
|
+
content: string;
|
|
180
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
181
|
+
created_at: NativeDate;
|
|
182
|
+
updated_at: NativeDate;
|
|
183
|
+
content: string;
|
|
184
|
+
}, {}, {}> & {
|
|
185
|
+
created_at: NativeDate;
|
|
186
|
+
updated_at: NativeDate;
|
|
187
|
+
content: string;
|
|
188
|
+
}>;
|
|
189
|
+
time_start: NativeDate;
|
|
190
|
+
time_end: NativeDate;
|
|
191
|
+
title?: {
|
|
192
|
+
kr: string;
|
|
193
|
+
} | null | undefined;
|
|
194
|
+
}, {
|
|
195
|
+
id: string;
|
|
196
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
197
|
+
created_at: NativeDate;
|
|
198
|
+
updated_at: NativeDate;
|
|
199
|
+
join_type: "public";
|
|
200
|
+
rank_type: "acm-icpc";
|
|
201
|
+
compile_types: string[];
|
|
202
|
+
manager_user_ids: string[];
|
|
203
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
204
|
+
id: string;
|
|
205
|
+
joined_at: NativeDate;
|
|
206
|
+
panalty_total: number;
|
|
207
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
208
|
+
problem_id: string;
|
|
209
|
+
tries: number;
|
|
210
|
+
status: "accept" | "wrong" | "pending";
|
|
211
|
+
panalty: number;
|
|
212
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
213
|
+
problem_id: string;
|
|
214
|
+
tries: number;
|
|
215
|
+
status: "accept" | "wrong" | "pending";
|
|
216
|
+
panalty: number;
|
|
217
|
+
}, {}, {}> & {
|
|
218
|
+
problem_id: string;
|
|
219
|
+
tries: number;
|
|
220
|
+
status: "accept" | "wrong" | "pending";
|
|
221
|
+
panalty: number;
|
|
222
|
+
}>;
|
|
223
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
224
|
+
id: string;
|
|
225
|
+
joined_at: NativeDate;
|
|
226
|
+
panalty_total: number;
|
|
227
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
228
|
+
problem_id: string;
|
|
229
|
+
tries: number;
|
|
230
|
+
status: "accept" | "wrong" | "pending";
|
|
231
|
+
panalty: number;
|
|
232
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
233
|
+
problem_id: string;
|
|
234
|
+
tries: number;
|
|
235
|
+
status: "accept" | "wrong" | "pending";
|
|
236
|
+
panalty: number;
|
|
237
|
+
}, {}, {}> & {
|
|
238
|
+
problem_id: string;
|
|
239
|
+
tries: number;
|
|
240
|
+
status: "accept" | "wrong" | "pending";
|
|
241
|
+
panalty: number;
|
|
242
|
+
}>;
|
|
243
|
+
}, {}, {}> & {
|
|
244
|
+
id: string;
|
|
245
|
+
joined_at: NativeDate;
|
|
246
|
+
panalty_total: number;
|
|
247
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
248
|
+
problem_id: string;
|
|
249
|
+
tries: number;
|
|
250
|
+
status: "accept" | "wrong" | "pending";
|
|
251
|
+
panalty: number;
|
|
252
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
253
|
+
problem_id: string;
|
|
254
|
+
tries: number;
|
|
255
|
+
status: "accept" | "wrong" | "pending";
|
|
256
|
+
panalty: number;
|
|
257
|
+
}, {}, {}> & {
|
|
258
|
+
problem_id: string;
|
|
259
|
+
tries: number;
|
|
260
|
+
status: "accept" | "wrong" | "pending";
|
|
261
|
+
panalty: number;
|
|
262
|
+
}>;
|
|
263
|
+
}>;
|
|
264
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
265
|
+
id: string;
|
|
266
|
+
problem_id: string;
|
|
267
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
268
|
+
id: string;
|
|
269
|
+
problem_id: string;
|
|
270
|
+
}, {}, {}> & {
|
|
271
|
+
id: string;
|
|
272
|
+
problem_id: string;
|
|
273
|
+
}>;
|
|
274
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
275
|
+
created_at: NativeDate;
|
|
276
|
+
updated_at: NativeDate;
|
|
277
|
+
content: string;
|
|
278
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
279
|
+
created_at: NativeDate;
|
|
280
|
+
updated_at: NativeDate;
|
|
281
|
+
content: string;
|
|
282
|
+
}, {}, {}> & {
|
|
283
|
+
created_at: NativeDate;
|
|
284
|
+
updated_at: NativeDate;
|
|
285
|
+
content: string;
|
|
286
|
+
}>;
|
|
287
|
+
time_start: NativeDate;
|
|
288
|
+
time_end: NativeDate;
|
|
289
|
+
title?: {
|
|
290
|
+
kr: string;
|
|
291
|
+
} | null | undefined;
|
|
292
|
+
} & {
|
|
293
|
+
_id: import("mongoose").Types.ObjectId;
|
|
294
|
+
} & {
|
|
295
|
+
__v: number;
|
|
296
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
297
|
+
id: string;
|
|
298
|
+
}>, unknown, {
|
|
299
|
+
created_at: NativeDate;
|
|
300
|
+
updated_at: NativeDate;
|
|
301
|
+
join_type: "public";
|
|
302
|
+
rank_type: "acm-icpc";
|
|
303
|
+
compile_types: string[];
|
|
304
|
+
manager_user_ids: string[];
|
|
305
|
+
users: import("mongoose").Types.DocumentArray<{
|
|
306
|
+
id: string;
|
|
307
|
+
joined_at: NativeDate;
|
|
308
|
+
panalty_total: number;
|
|
309
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
310
|
+
problem_id: string;
|
|
311
|
+
tries: number;
|
|
312
|
+
status: "accept" | "wrong" | "pending";
|
|
313
|
+
panalty: number;
|
|
314
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
315
|
+
problem_id: string;
|
|
316
|
+
tries: number;
|
|
317
|
+
status: "accept" | "wrong" | "pending";
|
|
318
|
+
panalty: number;
|
|
319
|
+
}, {}, {}> & {
|
|
320
|
+
problem_id: string;
|
|
321
|
+
tries: number;
|
|
322
|
+
status: "accept" | "wrong" | "pending";
|
|
323
|
+
panalty: number;
|
|
324
|
+
}>;
|
|
325
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
326
|
+
id: string;
|
|
327
|
+
joined_at: NativeDate;
|
|
328
|
+
panalty_total: number;
|
|
329
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
330
|
+
problem_id: string;
|
|
331
|
+
tries: number;
|
|
332
|
+
status: "accept" | "wrong" | "pending";
|
|
333
|
+
panalty: number;
|
|
334
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
335
|
+
problem_id: string;
|
|
336
|
+
tries: number;
|
|
337
|
+
status: "accept" | "wrong" | "pending";
|
|
338
|
+
panalty: number;
|
|
339
|
+
}, {}, {}> & {
|
|
340
|
+
problem_id: string;
|
|
341
|
+
tries: number;
|
|
342
|
+
status: "accept" | "wrong" | "pending";
|
|
343
|
+
panalty: number;
|
|
344
|
+
}>;
|
|
345
|
+
}, {}, {}> & {
|
|
346
|
+
id: string;
|
|
347
|
+
joined_at: NativeDate;
|
|
348
|
+
panalty_total: number;
|
|
349
|
+
panalties: import("mongoose").Types.DocumentArray<{
|
|
350
|
+
problem_id: string;
|
|
351
|
+
tries: number;
|
|
352
|
+
status: "accept" | "wrong" | "pending";
|
|
353
|
+
panalty: number;
|
|
354
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
355
|
+
problem_id: string;
|
|
356
|
+
tries: number;
|
|
357
|
+
status: "accept" | "wrong" | "pending";
|
|
358
|
+
panalty: number;
|
|
359
|
+
}, {}, {}> & {
|
|
360
|
+
problem_id: string;
|
|
361
|
+
tries: number;
|
|
362
|
+
status: "accept" | "wrong" | "pending";
|
|
363
|
+
panalty: number;
|
|
364
|
+
}>;
|
|
365
|
+
}>;
|
|
366
|
+
problems: import("mongoose").Types.DocumentArray<{
|
|
367
|
+
id: string;
|
|
368
|
+
problem_id: string;
|
|
369
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
370
|
+
id: string;
|
|
371
|
+
problem_id: string;
|
|
372
|
+
}, {}, {}> & {
|
|
373
|
+
id: string;
|
|
374
|
+
problem_id: string;
|
|
375
|
+
}>;
|
|
376
|
+
notices: import("mongoose").Types.DocumentArray<{
|
|
377
|
+
created_at: NativeDate;
|
|
378
|
+
updated_at: NativeDate;
|
|
379
|
+
content: string;
|
|
380
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
381
|
+
created_at: NativeDate;
|
|
382
|
+
updated_at: NativeDate;
|
|
383
|
+
content: string;
|
|
384
|
+
}, {}, {}> & {
|
|
385
|
+
created_at: NativeDate;
|
|
386
|
+
updated_at: NativeDate;
|
|
387
|
+
content: string;
|
|
388
|
+
}>;
|
|
389
|
+
time_start: NativeDate;
|
|
390
|
+
time_end: NativeDate;
|
|
391
|
+
title?: {
|
|
392
|
+
kr: string;
|
|
393
|
+
} | null | undefined;
|
|
394
|
+
} & {
|
|
395
|
+
_id: import("mongoose").Types.ObjectId;
|
|
396
|
+
} & {
|
|
397
|
+
__v: number;
|
|
398
|
+
}>;
|
|
399
|
+
//# sourceMappingURL=contest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contest.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/contest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAiClC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.contestSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const oj_contest_1 = require("@euler-edu/constant/oj-contest");
|
|
6
|
+
const userPanaltySchema = new mongoose_1.Schema({
|
|
7
|
+
problem_id: { type: String, required: true },
|
|
8
|
+
tries: { type: Number, required: true, default: 0 },
|
|
9
|
+
status: {
|
|
10
|
+
type: String,
|
|
11
|
+
required: true,
|
|
12
|
+
enum: oj_contest_1.ojContest.userPanaltyStatuses,
|
|
13
|
+
},
|
|
14
|
+
panalty: { type: Number, required: true, default: 0 },
|
|
15
|
+
});
|
|
16
|
+
const userSchema = new mongoose_1.Schema({
|
|
17
|
+
id: { type: String, required: true },
|
|
18
|
+
joined_at: { type: Date, required: true },
|
|
19
|
+
panalty_total: { type: Number, required: true, default: 0 },
|
|
20
|
+
panalties: { type: [userPanaltySchema], required: true, default: [] },
|
|
21
|
+
});
|
|
22
|
+
const problemSchema = new mongoose_1.Schema({
|
|
23
|
+
id: { type: String, required: true },
|
|
24
|
+
problem_id: { type: String, required: true },
|
|
25
|
+
});
|
|
26
|
+
const noticeSchema = new mongoose_1.Schema({
|
|
27
|
+
content: { type: String, required: true, default: '' },
|
|
28
|
+
created_at: { type: Date, required: true },
|
|
29
|
+
updated_at: { type: Date, required: true },
|
|
30
|
+
});
|
|
31
|
+
exports.contestSchema = new mongoose_1.Schema({
|
|
32
|
+
title: new mongoose_1.Schema({
|
|
33
|
+
kr: { type: String, required: true, default: '' },
|
|
34
|
+
}),
|
|
35
|
+
join_type: {
|
|
36
|
+
type: String,
|
|
37
|
+
required: true,
|
|
38
|
+
enum: oj_contest_1.ojContest.joinTypes,
|
|
39
|
+
},
|
|
40
|
+
rank_type: {
|
|
41
|
+
type: String,
|
|
42
|
+
required: true,
|
|
43
|
+
enum: oj_contest_1.ojContest.rankTypes,
|
|
44
|
+
},
|
|
45
|
+
compile_types: { type: [String], required: true, default: [] },
|
|
46
|
+
manager_user_ids: { type: [String], required: true, default: [] },
|
|
47
|
+
users: { type: [userSchema], required: true, default: [] },
|
|
48
|
+
problems: { type: [problemSchema], required: true, default: [] },
|
|
49
|
+
notices: { type: [noticeSchema], default: [] },
|
|
50
|
+
time_start: { type: Date, required: true },
|
|
51
|
+
time_end: { type: Date, required: true },
|
|
52
|
+
created_at: { type: Date, required: true },
|
|
53
|
+
updated_at: { type: Date, required: true },
|
|
54
|
+
});
|
|
55
|
+
//# sourceMappingURL=contest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"contest.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/contest.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { userSchema } from './user';
|
|
2
|
+
export { problemSchema } from './problem';
|
|
3
|
+
export { recordSchema } from './record';
|
|
4
|
+
export { contestSchema } from './contest';
|
|
5
|
+
export { sourcesubmitSchema } from './sourcesubmit';
|
|
6
|
+
export { sourceconsoleSchema } from './sourceconsole';
|
|
7
|
+
export { mailSchema } from './mail';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC"}
|