@euler-edu/nest 0.0.0-stage → 7.0.1-beta1
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/hq-status/index.d.ts +2 -0
- package/lib/connection/mongo/hq-status/index.d.ts.map +1 -0
- package/lib/connection/mongo/hq-status/index.js +6 -0
- package/lib/connection/mongo/hq-status/index.js.map +1 -0
- package/lib/connection/mongo/hq-status/serviceUptime.d.ts +39 -0
- package/lib/connection/mongo/hq-status/serviceUptime.d.ts.map +1 -0
- package/lib/connection/mongo/hq-status/serviceUptime.js +12 -0
- package/lib/connection/mongo/hq-status/serviceUptime.js.map +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 +7 -0
- package/lib/connection/mongo/mongo.module.d.ts.map +1 -0
- package/lib/connection/mongo/mongo.module.js +39 -0
- package/lib/connection/mongo/mongo.module.js.map +1 -0
- package/lib/connection/mongo/mongo.service.d.ts +27 -0
- package/lib/connection/mongo/mongo.service.d.ts.map +1 -0
- package/lib/connection/mongo/mongo.service.js +72 -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 +61 -3
- package/README.md +0 -3
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const problemSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
id: string;
|
|
4
|
+
hidden: boolean;
|
|
5
|
+
tag: string[];
|
|
6
|
+
sample_input: string[];
|
|
7
|
+
sample_output: string[];
|
|
8
|
+
year: string;
|
|
9
|
+
limit_time: number;
|
|
10
|
+
limit_memory: number;
|
|
11
|
+
source_solve_len: number;
|
|
12
|
+
source_submit_len: number;
|
|
13
|
+
can_submit: boolean;
|
|
14
|
+
spj: boolean;
|
|
15
|
+
url_youtube: string;
|
|
16
|
+
url_blog: string;
|
|
17
|
+
memo: string;
|
|
18
|
+
created_at?: NativeDate | null | undefined;
|
|
19
|
+
title?: {
|
|
20
|
+
kr: string;
|
|
21
|
+
} | null | undefined;
|
|
22
|
+
derived_stats?: any;
|
|
23
|
+
derived_testcases?: any[] | null | undefined;
|
|
24
|
+
updated_at?: NativeDate | null | undefined;
|
|
25
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
26
|
+
id: string;
|
|
27
|
+
hidden: boolean;
|
|
28
|
+
tag: string[];
|
|
29
|
+
sample_input: string[];
|
|
30
|
+
sample_output: string[];
|
|
31
|
+
year: string;
|
|
32
|
+
limit_time: number;
|
|
33
|
+
limit_memory: number;
|
|
34
|
+
source_solve_len: number;
|
|
35
|
+
source_submit_len: number;
|
|
36
|
+
can_submit: boolean;
|
|
37
|
+
spj: boolean;
|
|
38
|
+
url_youtube: string;
|
|
39
|
+
url_blog: string;
|
|
40
|
+
memo: string;
|
|
41
|
+
created_at?: NativeDate | null | undefined;
|
|
42
|
+
title?: {
|
|
43
|
+
kr: string;
|
|
44
|
+
} | null | undefined;
|
|
45
|
+
derived_stats?: any;
|
|
46
|
+
derived_testcases?: any[] | null | undefined;
|
|
47
|
+
updated_at?: NativeDate | null | undefined;
|
|
48
|
+
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
49
|
+
id: string;
|
|
50
|
+
hidden: boolean;
|
|
51
|
+
tag: string[];
|
|
52
|
+
sample_input: string[];
|
|
53
|
+
sample_output: string[];
|
|
54
|
+
year: string;
|
|
55
|
+
limit_time: number;
|
|
56
|
+
limit_memory: number;
|
|
57
|
+
source_solve_len: number;
|
|
58
|
+
source_submit_len: number;
|
|
59
|
+
can_submit: boolean;
|
|
60
|
+
spj: boolean;
|
|
61
|
+
url_youtube: string;
|
|
62
|
+
url_blog: string;
|
|
63
|
+
memo: string;
|
|
64
|
+
created_at?: NativeDate | null | undefined;
|
|
65
|
+
title?: {
|
|
66
|
+
kr: string;
|
|
67
|
+
} | null | undefined;
|
|
68
|
+
derived_stats?: any;
|
|
69
|
+
derived_testcases?: any[] | null | undefined;
|
|
70
|
+
updated_at?: NativeDate | null | undefined;
|
|
71
|
+
} & {
|
|
72
|
+
_id: import("mongoose").Types.ObjectId;
|
|
73
|
+
} & {
|
|
74
|
+
__v: number;
|
|
75
|
+
}, unknown, {
|
|
76
|
+
id: string;
|
|
77
|
+
hidden: boolean;
|
|
78
|
+
tag: string[];
|
|
79
|
+
sample_input: string[];
|
|
80
|
+
sample_output: string[];
|
|
81
|
+
year: string;
|
|
82
|
+
limit_time: number;
|
|
83
|
+
limit_memory: number;
|
|
84
|
+
source_solve_len: number;
|
|
85
|
+
source_submit_len: number;
|
|
86
|
+
can_submit: boolean;
|
|
87
|
+
spj: boolean;
|
|
88
|
+
url_youtube: string;
|
|
89
|
+
url_blog: string;
|
|
90
|
+
memo: string;
|
|
91
|
+
created_at?: NativeDate | null | undefined;
|
|
92
|
+
title?: {
|
|
93
|
+
kr: string;
|
|
94
|
+
} | null | undefined;
|
|
95
|
+
derived_stats?: any;
|
|
96
|
+
derived_testcases?: any[] | null | undefined;
|
|
97
|
+
updated_at?: NativeDate | null | undefined;
|
|
98
|
+
} & {
|
|
99
|
+
_id: import("mongoose").Types.ObjectId;
|
|
100
|
+
} & {
|
|
101
|
+
__v: number;
|
|
102
|
+
}>;
|
|
103
|
+
//# sourceMappingURL=problem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"problem.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/problem.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuBxB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.problemSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.problemSchema = new mongoose_1.Schema({
|
|
6
|
+
id: { type: String, required: true, unique: true },
|
|
7
|
+
title: new mongoose_1.Schema({
|
|
8
|
+
kr: { type: String, required: true, default: '' },
|
|
9
|
+
}),
|
|
10
|
+
tag: [{ type: String }],
|
|
11
|
+
sample_input: [{ type: String, required: true }],
|
|
12
|
+
sample_output: [{ type: String, required: true }],
|
|
13
|
+
year: { type: String, default: '?' },
|
|
14
|
+
limit_time: { type: Number, required: true, default: 1 },
|
|
15
|
+
limit_memory: { type: Number, required: true, default: 512 },
|
|
16
|
+
source_solve_len: { type: Number, required: true, default: 0 },
|
|
17
|
+
source_submit_len: { type: Number, required: true, default: 0 },
|
|
18
|
+
hidden: { type: Boolean, required: true, default: false },
|
|
19
|
+
can_submit: { type: Boolean, required: true, default: true },
|
|
20
|
+
spj: { type: Boolean, required: true, default: false },
|
|
21
|
+
url_youtube: { type: String, default: '' },
|
|
22
|
+
url_blog: { type: String, default: '' },
|
|
23
|
+
memo: { type: String, default: '' },
|
|
24
|
+
derived_stats: { type: Object, required: false },
|
|
25
|
+
derived_testcases: { type: Array, required: false },
|
|
26
|
+
created_at: { type: Date },
|
|
27
|
+
updated_at: { type: Date },
|
|
28
|
+
});
|
|
29
|
+
//# sourceMappingURL=problem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"problem.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/problem.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAErB,QAAA,aAAa,GAAG,IAAI,iBAAM,CAAC;IACtC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE;IAClD,KAAK,EAAE,IAAI,iBAAM,CAAC;QAChB,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;KAClD,CAAC;IACF,GAAG,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAChD,aAAa,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IACjD,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE;IACpC,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE;IACxD,YAAY,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,EAAE;IAC5D,gBAAgB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE;IAC9D,iBAAiB,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,EAAE;IAC/D,MAAM,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;IACzD,UAAU,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE;IAC5D,GAAG,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE;IACtD,WAAW,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IAC1C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACvC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACnC,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IAChD,iBAAiB,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE;IACnD,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;IAC1B,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const recordSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
type: "trophy" | "problem-pioneer" | "contest-winner";
|
|
4
|
+
created_at: NativeDate;
|
|
5
|
+
login_id: string;
|
|
6
|
+
trophy_type?: string | null | undefined;
|
|
7
|
+
problem_id?: string | null | undefined;
|
|
8
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
9
|
+
past_contest_id?: string | null | undefined;
|
|
10
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
11
|
+
type: "trophy" | "problem-pioneer" | "contest-winner";
|
|
12
|
+
created_at: NativeDate;
|
|
13
|
+
login_id: string;
|
|
14
|
+
trophy_type?: string | null | undefined;
|
|
15
|
+
problem_id?: string | null | undefined;
|
|
16
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
17
|
+
past_contest_id?: string | null | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
id: string;
|
|
20
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
21
|
+
type: "trophy" | "problem-pioneer" | "contest-winner";
|
|
22
|
+
created_at: NativeDate;
|
|
23
|
+
login_id: string;
|
|
24
|
+
trophy_type?: string | null | undefined;
|
|
25
|
+
problem_id?: string | null | undefined;
|
|
26
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
27
|
+
past_contest_id?: string | null | undefined;
|
|
28
|
+
} & {
|
|
29
|
+
_id: import("mongoose").Types.ObjectId;
|
|
30
|
+
} & {
|
|
31
|
+
__v: number;
|
|
32
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
33
|
+
id: string;
|
|
34
|
+
}>, unknown, {
|
|
35
|
+
type: "trophy" | "problem-pioneer" | "contest-winner";
|
|
36
|
+
created_at: NativeDate;
|
|
37
|
+
login_id: string;
|
|
38
|
+
trophy_type?: string | null | undefined;
|
|
39
|
+
problem_id?: string | null | undefined;
|
|
40
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
41
|
+
past_contest_id?: string | null | undefined;
|
|
42
|
+
} & {
|
|
43
|
+
_id: import("mongoose").Types.ObjectId;
|
|
44
|
+
} & {
|
|
45
|
+
__v: number;
|
|
46
|
+
}>;
|
|
47
|
+
//# sourceMappingURL=record.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/record.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAIlC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBvB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recordSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const oj_record_1 = require("@euler-edu/constant/oj-record");
|
|
6
|
+
exports.recordSchema = new mongoose_1.Schema({
|
|
7
|
+
type: {
|
|
8
|
+
type: String,
|
|
9
|
+
required: true,
|
|
10
|
+
enum: oj_record_1.ojRecord.types,
|
|
11
|
+
},
|
|
12
|
+
login_id: { type: String, required: true },
|
|
13
|
+
trophy_type: {
|
|
14
|
+
type: String,
|
|
15
|
+
required: false,
|
|
16
|
+
enum: Object.keys(oj_record_1.ojRecord.trophies),
|
|
17
|
+
},
|
|
18
|
+
problem_id: { type: String, required: false },
|
|
19
|
+
contest_id: { type: mongoose_1.Schema.Types.ObjectId, required: false },
|
|
20
|
+
past_contest_id: { type: String, required: false },
|
|
21
|
+
created_at: {
|
|
22
|
+
type: Date,
|
|
23
|
+
required: true,
|
|
24
|
+
},
|
|
25
|
+
});
|
|
26
|
+
//# sourceMappingURL=record.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/record.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAElC,6DAAyD;AAE5C,QAAA,YAAY,GAAG,IAAI,iBAAM,CAAC;IACrC,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,IAAI;QACd,IAAI,EAAE,oBAAQ,CAAC,KAAK;KACrB;IACD,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,QAAQ,EAAE,KAAK;QACf,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,oBAAQ,CAAC,QAAQ,CAAC;KACrC;IACD,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC7C,UAAU,EAAE,EAAE,IAAI,EAAE,iBAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC5D,eAAe,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IAClD,UAAU,EAAE;QACV,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,IAAI;KACf;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const sourceconsoleSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
created_at: NativeDate;
|
|
4
|
+
login_id: string;
|
|
5
|
+
source: string;
|
|
6
|
+
compile: string;
|
|
7
|
+
problem_id: string;
|
|
8
|
+
input: string;
|
|
9
|
+
error?: string | null | undefined;
|
|
10
|
+
updated_at?: NativeDate | null | undefined;
|
|
11
|
+
time?: number | null | undefined;
|
|
12
|
+
memory?: number | null | undefined;
|
|
13
|
+
output?: string | null | undefined;
|
|
14
|
+
socket_id?: string | null | undefined;
|
|
15
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
16
|
+
created_at: NativeDate;
|
|
17
|
+
login_id: string;
|
|
18
|
+
source: string;
|
|
19
|
+
compile: string;
|
|
20
|
+
problem_id: string;
|
|
21
|
+
input: string;
|
|
22
|
+
error?: string | null | undefined;
|
|
23
|
+
updated_at?: NativeDate | null | undefined;
|
|
24
|
+
time?: number | null | undefined;
|
|
25
|
+
memory?: number | null | undefined;
|
|
26
|
+
output?: string | null | undefined;
|
|
27
|
+
socket_id?: string | null | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
id: string;
|
|
30
|
+
}, import("mongoose").DefaultSchemaOptions> & Omit<{
|
|
31
|
+
created_at: NativeDate;
|
|
32
|
+
login_id: string;
|
|
33
|
+
source: string;
|
|
34
|
+
compile: string;
|
|
35
|
+
problem_id: string;
|
|
36
|
+
input: string;
|
|
37
|
+
error?: string | null | undefined;
|
|
38
|
+
updated_at?: NativeDate | null | undefined;
|
|
39
|
+
time?: number | null | undefined;
|
|
40
|
+
memory?: number | null | undefined;
|
|
41
|
+
output?: string | null | undefined;
|
|
42
|
+
socket_id?: string | null | undefined;
|
|
43
|
+
} & {
|
|
44
|
+
_id: import("mongoose").Types.ObjectId;
|
|
45
|
+
} & {
|
|
46
|
+
__v: number;
|
|
47
|
+
}, "id"> & import("mongoose").HydratedDocumentOverrides<{
|
|
48
|
+
id: string;
|
|
49
|
+
}>, unknown, {
|
|
50
|
+
created_at: NativeDate;
|
|
51
|
+
login_id: string;
|
|
52
|
+
source: string;
|
|
53
|
+
compile: string;
|
|
54
|
+
problem_id: string;
|
|
55
|
+
input: string;
|
|
56
|
+
error?: string | null | undefined;
|
|
57
|
+
updated_at?: NativeDate | null | undefined;
|
|
58
|
+
time?: number | null | undefined;
|
|
59
|
+
memory?: number | null | undefined;
|
|
60
|
+
output?: string | null | undefined;
|
|
61
|
+
socket_id?: string | null | undefined;
|
|
62
|
+
} & {
|
|
63
|
+
_id: import("mongoose").Types.ObjectId;
|
|
64
|
+
} & {
|
|
65
|
+
__v: number;
|
|
66
|
+
}>;
|
|
67
|
+
//# sourceMappingURL=sourceconsole.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceconsole.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/sourceconsole.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAElC,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa9B,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sourceconsoleSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
exports.sourceconsoleSchema = new mongoose_1.Schema({
|
|
6
|
+
problem_id: { type: String, required: true },
|
|
7
|
+
login_id: { type: String, required: true },
|
|
8
|
+
socket_id: { type: String, required: false },
|
|
9
|
+
source: { type: String, required: true, default: '' },
|
|
10
|
+
compile: { type: String, required: true },
|
|
11
|
+
input: { type: String, default: '' },
|
|
12
|
+
output: { type: String, required: false },
|
|
13
|
+
error: { type: String, required: false },
|
|
14
|
+
time: { type: Number, required: false },
|
|
15
|
+
memory: { type: Number, required: false },
|
|
16
|
+
created_at: { type: Date, required: true },
|
|
17
|
+
updated_at: { type: Date },
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=sourceconsole.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourceconsole.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/sourceconsole.ts"],"names":[],"mappings":";;;AAAA,uCAAkC;AAErB,QAAA,mBAAmB,GAAG,IAAI,iBAAM,CAAC;IAC5C,UAAU,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC5C,QAAQ,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IAC5C,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,EAAE;IACrD,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;IACzC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,EAAE;IACpC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IACzC,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IACxC,IAAI,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IACvC,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE;IACzC,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE;IAC1C,UAAU,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { Schema } from 'mongoose';
|
|
2
|
+
export declare const sourcesubmitSchema: Schema<any, import("mongoose").Model<any, any, any, any, any, any, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, {
|
|
3
|
+
id: number;
|
|
4
|
+
created_at: NativeDate;
|
|
5
|
+
login_id: string;
|
|
6
|
+
source: string;
|
|
7
|
+
compile: string;
|
|
8
|
+
updated_at: NativeDate;
|
|
9
|
+
problem_id: string;
|
|
10
|
+
status: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output";
|
|
11
|
+
score: number;
|
|
12
|
+
is_ignored: boolean;
|
|
13
|
+
testcases: import("mongoose").Types.DocumentArray<{
|
|
14
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
15
|
+
inputPath: string;
|
|
16
|
+
inputVersion: string;
|
|
17
|
+
outputPath: string;
|
|
18
|
+
outputVersion: string;
|
|
19
|
+
time?: number | null | undefined;
|
|
20
|
+
memory?: number | null | undefined;
|
|
21
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
22
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
23
|
+
inputPath: string;
|
|
24
|
+
inputVersion: string;
|
|
25
|
+
outputPath: string;
|
|
26
|
+
outputVersion: string;
|
|
27
|
+
time?: number | null | undefined;
|
|
28
|
+
memory?: number | null | undefined;
|
|
29
|
+
}, {}, {}> & {
|
|
30
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
31
|
+
inputPath: string;
|
|
32
|
+
inputVersion: string;
|
|
33
|
+
outputPath: string;
|
|
34
|
+
outputVersion: string;
|
|
35
|
+
time?: number | null | undefined;
|
|
36
|
+
memory?: number | null | undefined;
|
|
37
|
+
}>;
|
|
38
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
39
|
+
stderr?: string | null | undefined;
|
|
40
|
+
derived_time?: number | null | undefined;
|
|
41
|
+
derived_memory?: number | null | undefined;
|
|
42
|
+
derived_source_length?: number | null | undefined;
|
|
43
|
+
}, import("mongoose").Document<unknown, {}, {
|
|
44
|
+
id: number;
|
|
45
|
+
created_at: NativeDate;
|
|
46
|
+
login_id: string;
|
|
47
|
+
source: string;
|
|
48
|
+
compile: string;
|
|
49
|
+
updated_at: NativeDate;
|
|
50
|
+
problem_id: string;
|
|
51
|
+
status: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output";
|
|
52
|
+
score: number;
|
|
53
|
+
is_ignored: boolean;
|
|
54
|
+
testcases: import("mongoose").Types.DocumentArray<{
|
|
55
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
56
|
+
inputPath: string;
|
|
57
|
+
inputVersion: string;
|
|
58
|
+
outputPath: string;
|
|
59
|
+
outputVersion: string;
|
|
60
|
+
time?: number | null | undefined;
|
|
61
|
+
memory?: number | null | undefined;
|
|
62
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
63
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
64
|
+
inputPath: string;
|
|
65
|
+
inputVersion: string;
|
|
66
|
+
outputPath: string;
|
|
67
|
+
outputVersion: string;
|
|
68
|
+
time?: number | null | undefined;
|
|
69
|
+
memory?: number | null | undefined;
|
|
70
|
+
}, {}, {}> & {
|
|
71
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
72
|
+
inputPath: string;
|
|
73
|
+
inputVersion: string;
|
|
74
|
+
outputPath: string;
|
|
75
|
+
outputVersion: string;
|
|
76
|
+
time?: number | null | undefined;
|
|
77
|
+
memory?: number | null | undefined;
|
|
78
|
+
}>;
|
|
79
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
80
|
+
stderr?: string | null | undefined;
|
|
81
|
+
derived_time?: number | null | undefined;
|
|
82
|
+
derived_memory?: number | null | undefined;
|
|
83
|
+
derived_source_length?: number | null | undefined;
|
|
84
|
+
}, {}, import("mongoose").DefaultSchemaOptions> & {
|
|
85
|
+
id: number;
|
|
86
|
+
created_at: NativeDate;
|
|
87
|
+
login_id: string;
|
|
88
|
+
source: string;
|
|
89
|
+
compile: string;
|
|
90
|
+
updated_at: NativeDate;
|
|
91
|
+
problem_id: string;
|
|
92
|
+
status: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output";
|
|
93
|
+
score: number;
|
|
94
|
+
is_ignored: boolean;
|
|
95
|
+
testcases: import("mongoose").Types.DocumentArray<{
|
|
96
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
97
|
+
inputPath: string;
|
|
98
|
+
inputVersion: string;
|
|
99
|
+
outputPath: string;
|
|
100
|
+
outputVersion: string;
|
|
101
|
+
time?: number | null | undefined;
|
|
102
|
+
memory?: number | null | undefined;
|
|
103
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
104
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
105
|
+
inputPath: string;
|
|
106
|
+
inputVersion: string;
|
|
107
|
+
outputPath: string;
|
|
108
|
+
outputVersion: string;
|
|
109
|
+
time?: number | null | undefined;
|
|
110
|
+
memory?: number | null | undefined;
|
|
111
|
+
}, {}, {}> & {
|
|
112
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
113
|
+
inputPath: string;
|
|
114
|
+
inputVersion: string;
|
|
115
|
+
outputPath: string;
|
|
116
|
+
outputVersion: string;
|
|
117
|
+
time?: number | null | undefined;
|
|
118
|
+
memory?: number | null | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
121
|
+
stderr?: string | null | undefined;
|
|
122
|
+
derived_time?: number | null | undefined;
|
|
123
|
+
derived_memory?: number | null | undefined;
|
|
124
|
+
derived_source_length?: number | null | undefined;
|
|
125
|
+
} & {
|
|
126
|
+
_id: import("mongoose").Types.ObjectId;
|
|
127
|
+
} & {
|
|
128
|
+
__v: number;
|
|
129
|
+
}, unknown, {
|
|
130
|
+
id: number;
|
|
131
|
+
created_at: NativeDate;
|
|
132
|
+
login_id: string;
|
|
133
|
+
source: string;
|
|
134
|
+
compile: string;
|
|
135
|
+
updated_at: NativeDate;
|
|
136
|
+
problem_id: string;
|
|
137
|
+
status: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output";
|
|
138
|
+
score: number;
|
|
139
|
+
is_ignored: boolean;
|
|
140
|
+
testcases: import("mongoose").Types.DocumentArray<{
|
|
141
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
142
|
+
inputPath: string;
|
|
143
|
+
inputVersion: string;
|
|
144
|
+
outputPath: string;
|
|
145
|
+
outputVersion: string;
|
|
146
|
+
time?: number | null | undefined;
|
|
147
|
+
memory?: number | null | undefined;
|
|
148
|
+
}, import("mongoose").Types.Subdocument<import("mongodb").ObjectId, unknown, {
|
|
149
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
150
|
+
inputPath: string;
|
|
151
|
+
inputVersion: string;
|
|
152
|
+
outputPath: string;
|
|
153
|
+
outputVersion: string;
|
|
154
|
+
time?: number | null | undefined;
|
|
155
|
+
memory?: number | null | undefined;
|
|
156
|
+
}, {}, {}> & {
|
|
157
|
+
result: "compile" | "accept" | "wrong" | "pending" | "time" | "memory" | "runtime" | "server" | "output" | "ignored";
|
|
158
|
+
inputPath: string;
|
|
159
|
+
inputVersion: string;
|
|
160
|
+
outputPath: string;
|
|
161
|
+
outputVersion: string;
|
|
162
|
+
time?: number | null | undefined;
|
|
163
|
+
memory?: number | null | undefined;
|
|
164
|
+
}>;
|
|
165
|
+
contest_id?: import("mongoose").Types.ObjectId | null | undefined;
|
|
166
|
+
stderr?: string | null | undefined;
|
|
167
|
+
derived_time?: number | null | undefined;
|
|
168
|
+
derived_memory?: number | null | undefined;
|
|
169
|
+
derived_source_length?: number | null | undefined;
|
|
170
|
+
} & {
|
|
171
|
+
_id: import("mongoose").Types.ObjectId;
|
|
172
|
+
} & {
|
|
173
|
+
__v: number;
|
|
174
|
+
}>;
|
|
175
|
+
//# sourceMappingURL=sourcesubmit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourcesubmit.d.ts","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/sourcesubmit.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAkBlC,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwB7B,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sourcesubmitSchema = void 0;
|
|
4
|
+
const mongoose_1 = require("mongoose");
|
|
5
|
+
const oj_submit_1 = require("@euler-edu/constant/oj-submit");
|
|
6
|
+
const testcaseSchema = new mongoose_1.Schema({
|
|
7
|
+
inputPath: { type: String, required: true },
|
|
8
|
+
inputVersion: { type: String, required: true },
|
|
9
|
+
outputPath: { type: String, required: true },
|
|
10
|
+
outputVersion: { type: String, required: true },
|
|
11
|
+
result: {
|
|
12
|
+
type: String,
|
|
13
|
+
required: true,
|
|
14
|
+
enum: oj_submit_1.ojSubmit.testcaseResults,
|
|
15
|
+
},
|
|
16
|
+
memory: { type: Number },
|
|
17
|
+
time: { type: Number },
|
|
18
|
+
});
|
|
19
|
+
exports.sourcesubmitSchema = new mongoose_1.Schema({
|
|
20
|
+
id: { type: Number, required: true, unique: true },
|
|
21
|
+
problem_id: { type: String, required: true },
|
|
22
|
+
login_id: { type: String, required: true },
|
|
23
|
+
source: { type: String, required: true, default: '' },
|
|
24
|
+
compile: { type: String, required: true },
|
|
25
|
+
status: {
|
|
26
|
+
type: String,
|
|
27
|
+
required: true,
|
|
28
|
+
enum: oj_submit_1.ojSubmit.statuses,
|
|
29
|
+
},
|
|
30
|
+
score: { type: Number, default: 0 },
|
|
31
|
+
stderr: { type: String },
|
|
32
|
+
contest_id: { type: mongoose_1.Schema.Types.ObjectId },
|
|
33
|
+
is_ignored: { type: Boolean, default: false },
|
|
34
|
+
derived_time: { type: Number, required: false },
|
|
35
|
+
derived_memory: { type: Number, required: false },
|
|
36
|
+
derived_source_length: { type: Number, required: false },
|
|
37
|
+
created_at: { type: Date, required: true },
|
|
38
|
+
updated_at: { type: Date, required: true },
|
|
39
|
+
testcases: [testcaseSchema],
|
|
40
|
+
});
|
|
41
|
+
exports.sourcesubmitSchema.index({ login_id: 1, id: -1 });
|
|
42
|
+
exports.sourcesubmitSchema.index({ created_at: -1 });
|
|
43
|
+
exports.sourcesubmitSchema.index({ problem_id: 1 });
|
|
44
|
+
exports.sourcesubmitSchema.index({ derived_time: 1, created_at: 1 });
|
|
45
|
+
exports.sourcesubmitSchema.index({ derived_memory: 1, created_at: 1 });
|
|
46
|
+
exports.sourcesubmitSchema.index({ derived_source_length: 1, created_at: 1 });
|
|
47
|
+
//# sourceMappingURL=sourcesubmit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sourcesubmit.js","sourceRoot":"","sources":["../../../../src/connection/mongo/oj-main/sourcesubmit.ts"],"names":[],"mappings":"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"}
|