@euler-edu/schema 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/auths/index.d.ts +49 -0
- package/lib/auths/index.js +49 -0
- package/lib/auths/index.js.map +1 -0
- package/lib/configs/index.d.ts +2 -0
- package/lib/configs/index.js +19 -0
- package/lib/configs/index.js.map +1 -0
- package/lib/configs/oj-envConfig/index.d.ts +143 -0
- package/lib/configs/oj-envConfig/index.js +35 -0
- package/lib/configs/oj-envConfig/index.js.map +1 -0
- package/lib/configs/style/index.d.ts +53 -0
- package/lib/configs/style/index.js +46 -0
- package/lib/configs/style/index.js.map +1 -0
- package/lib/endpoints/hq-api/index.d.ts +37 -0
- package/lib/endpoints/hq-api/index.js +14 -0
- package/lib/endpoints/hq-api/index.js.map +1 -0
- package/lib/endpoints/hq-api/serviceUptime.atom.d.ts +12 -0
- package/lib/endpoints/hq-api/serviceUptime.atom.js +18 -0
- package/lib/endpoints/hq-api/serviceUptime.atom.js.map +1 -0
- package/lib/endpoints/hq-api/serviceUptime.endpoint.d.ts +23 -0
- package/lib/endpoints/hq-api/serviceUptime.endpoint.js +23 -0
- package/lib/endpoints/hq-api/serviceUptime.endpoint.js.map +1 -0
- package/lib/endpoints/index.d.ts +2622 -0
- package/lib/endpoints/index.js +12 -0
- package/lib/endpoints/index.js.map +1 -0
- package/lib/endpoints/oj-api/auth.atom.d.ts +10 -0
- package/lib/endpoints/oj-api/auth.atom.js +26 -0
- package/lib/endpoints/oj-api/auth.atom.js.map +1 -0
- package/lib/endpoints/oj-api/auth.endpoint.d.ts +105 -0
- package/lib/endpoints/oj-api/auth.endpoint.js +118 -0
- package/lib/endpoints/oj-api/auth.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/contest.atom.d.ts +23 -0
- package/lib/endpoints/oj-api/contest.atom.js +20 -0
- package/lib/endpoints/oj-api/contest.atom.js.map +1 -0
- package/lib/endpoints/oj-api/contest.endpoint.d.ts +53 -0
- package/lib/endpoints/oj-api/contest.endpoint.js +49 -0
- package/lib/endpoints/oj-api/contest.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/index.d.ts +2523 -0
- package/lib/endpoints/oj-api/index.js +58 -0
- package/lib/endpoints/oj-api/index.js.map +1 -0
- package/lib/endpoints/oj-api/mail.atom.d.ts +12 -0
- package/lib/endpoints/oj-api/mail.atom.js +14 -0
- package/lib/endpoints/oj-api/mail.atom.js.map +1 -0
- package/lib/endpoints/oj-api/mail.endpoint.d.ts +48 -0
- package/lib/endpoints/oj-api/mail.endpoint.js +51 -0
- package/lib/endpoints/oj-api/mail.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/problem.atom.d.ts +120 -0
- package/lib/endpoints/oj-api/problem.atom.js +164 -0
- package/lib/endpoints/oj-api/problem.atom.js.map +1 -0
- package/lib/endpoints/oj-api/problem.endpoint.d.ts +291 -0
- package/lib/endpoints/oj-api/problem.endpoint.js +199 -0
- package/lib/endpoints/oj-api/problem.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/rank.atom.d.ts +5 -0
- package/lib/endpoints/oj-api/rank.atom.js +9 -0
- package/lib/endpoints/oj-api/rank.atom.js.map +1 -0
- package/lib/endpoints/oj-api/rank.endpoint.d.ts +54 -0
- package/lib/endpoints/oj-api/rank.endpoint.js +59 -0
- package/lib/endpoints/oj-api/rank.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/record.atom.d.ts +31 -0
- package/lib/endpoints/oj-api/record.atom.js +12 -0
- package/lib/endpoints/oj-api/record.atom.js.map +1 -0
- package/lib/endpoints/oj-api/record.endpoint.d.ts +107 -0
- package/lib/endpoints/oj-api/record.endpoint.js +87 -0
- package/lib/endpoints/oj-api/record.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/run.atom.d.ts +29 -0
- package/lib/endpoints/oj-api/run.atom.js +22 -0
- package/lib/endpoints/oj-api/run.atom.js.map +1 -0
- package/lib/endpoints/oj-api/run.endpoint.d.ts +59 -0
- package/lib/endpoints/oj-api/run.endpoint.js +50 -0
- package/lib/endpoints/oj-api/run.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/scoringRequest.atom.d.ts +24 -0
- package/lib/endpoints/oj-api/scoringRequest.atom.js +21 -0
- package/lib/endpoints/oj-api/scoringRequest.atom.js.map +1 -0
- package/lib/endpoints/oj-api/scoringRequest.endpoint.d.ts +47 -0
- package/lib/endpoints/oj-api/scoringRequest.endpoint.js +37 -0
- package/lib/endpoints/oj-api/scoringRequest.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/scoringServer.atom.d.ts +10 -0
- package/lib/endpoints/oj-api/scoringServer.atom.js +18 -0
- package/lib/endpoints/oj-api/scoringServer.atom.js.map +1 -0
- package/lib/endpoints/oj-api/scoringServer.endpoint.d.ts +21 -0
- package/lib/endpoints/oj-api/scoringServer.endpoint.js +25 -0
- package/lib/endpoints/oj-api/scoringServer.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/source.atom.d.ts +10 -0
- package/lib/endpoints/oj-api/source.atom.js +22 -0
- package/lib/endpoints/oj-api/source.atom.js.map +1 -0
- package/lib/endpoints/oj-api/source.endpoint.d.ts +98 -0
- package/lib/endpoints/oj-api/source.endpoint.js +72 -0
- package/lib/endpoints/oj-api/source.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/submit.atom.d.ts +62 -0
- package/lib/endpoints/oj-api/submit.atom.js +40 -0
- package/lib/endpoints/oj-api/submit.atom.js.map +1 -0
- package/lib/endpoints/oj-api/submit.endpoint.d.ts +236 -0
- package/lib/endpoints/oj-api/submit.endpoint.js +162 -0
- package/lib/endpoints/oj-api/submit.endpoint.js.map +1 -0
- package/lib/endpoints/oj-api/user.atom.d.ts +220 -0
- package/lib/endpoints/oj-api/user.atom.js +74 -0
- package/lib/endpoints/oj-api/user.atom.js.map +1 -0
- package/lib/endpoints/oj-api/user.endpoint.d.ts +879 -0
- package/lib/endpoints/oj-api/user.endpoint.js +502 -0
- package/lib/endpoints/oj-api/user.endpoint.js.map +1 -0
- package/lib/endpoints/oj-archives/index.d.ts +51 -0
- package/lib/endpoints/oj-archives/index.js +47 -0
- package/lib/endpoints/oj-archives/index.js.map +1 -0
- package/lib/endpoints/oj-problemContents/index.d.ts +15 -0
- package/lib/endpoints/oj-problemContents/index.js +17 -0
- package/lib/endpoints/oj-problemContents/index.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/index.js.map +1 -0
- package/lib/queues/index.d.ts +12 -0
- package/lib/queues/index.js +11 -0
- package/lib/queues/index.js.map +1 -0
- package/lib/queues/oj-clientSocketEventQueue.d.ts +12 -0
- package/lib/queues/oj-clientSocketEventQueue.js +16 -0
- package/lib/queues/oj-clientSocketEventQueue.js.map +1 -0
- package/lib/sockets/index.d.ts +34 -0
- package/lib/sockets/index.js +13 -0
- package/lib/sockets/index.js.map +1 -0
- package/lib/sockets/oj-socket/index.d.ts +18 -0
- package/lib/sockets/oj-socket/index.js +21 -0
- package/lib/sockets/oj-socket/index.js.map +1 -0
- package/lib/sockets/oj-web/index.d.ts +18 -0
- package/lib/sockets/oj-web/index.js +21 -0
- package/lib/sockets/oj-web/index.js.map +1 -0
- package/lib/types/index.d.ts +28 -0
- package/lib/types/index.js +3 -0
- package/lib/types/index.js.map +1 -0
- package/package.json +29 -3
- package/README.md +0 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.atom.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/record.atom.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6DAAyD;AAE5C,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,SAAS;IACjB,IAAI,EAAE,OAAC,CAAC,IAAI,CAAC,oBAAQ,CAAC,KAAK,CAAC;IAC5B,UAAU,EAAE,OAAC,CAAC,IAAI,CAChB,MAAM,CAAC,IAAI,CAAC,oBAAQ,CAAC,QAAQ,CAAuC,CACrE;IACD,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;CACnC,CAAC"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly get: {
|
|
4
|
+
readonly prefix: "/record";
|
|
5
|
+
readonly operation: {
|
|
6
|
+
readonly summary: "기록 조회";
|
|
7
|
+
};
|
|
8
|
+
readonly base: "oj-api";
|
|
9
|
+
readonly method: "get";
|
|
10
|
+
readonly path: () => string;
|
|
11
|
+
readonly data: z.ZodObject<{
|
|
12
|
+
records: z.ZodArray<z.ZodObject<{
|
|
13
|
+
type: z.ZodEnum<{
|
|
14
|
+
trophy: "trophy";
|
|
15
|
+
"problem-pioneer": "problem-pioneer";
|
|
16
|
+
"contest-winner": "contest-winner";
|
|
17
|
+
}>;
|
|
18
|
+
userId: z.ZodString;
|
|
19
|
+
trophyType: z.ZodOptional<z.ZodEnum<{
|
|
20
|
+
stone: "stone";
|
|
21
|
+
"first-solve": "first-solve";
|
|
22
|
+
"50-solves": "50-solves";
|
|
23
|
+
"100-solves": "100-solves";
|
|
24
|
+
"200-solves": "200-solves";
|
|
25
|
+
"500-solves": "500-solves";
|
|
26
|
+
"1000-solves": "1000-solves";
|
|
27
|
+
"2000-solves": "2000-solves";
|
|
28
|
+
"5000-solves": "5000-solves";
|
|
29
|
+
"10-trials": "10-trials";
|
|
30
|
+
"first-pioneer": "first-pioneer";
|
|
31
|
+
"20-pioneers": "20-pioneers";
|
|
32
|
+
"50-pioneers": "50-pioneers";
|
|
33
|
+
"100-pioneers": "100-pioneers";
|
|
34
|
+
"weekly-coder": "weekly-coder";
|
|
35
|
+
cola: "cola";
|
|
36
|
+
steak: "steak";
|
|
37
|
+
"win-contest": "win-contest";
|
|
38
|
+
"win-yearly-rank": "win-yearly-rank";
|
|
39
|
+
}>>;
|
|
40
|
+
problemId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
contestId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
pastContestId: z.ZodOptional<z.ZodString>;
|
|
43
|
+
createdAt: z.ZodISODateTime;
|
|
44
|
+
}, z.core.$strip>>;
|
|
45
|
+
page: z.ZodNumber;
|
|
46
|
+
maxPage: z.ZodNumber;
|
|
47
|
+
count: z.ZodNumber;
|
|
48
|
+
}, z.core.$strip>;
|
|
49
|
+
readonly query: z.ZodObject<{
|
|
50
|
+
types: z.ZodOptional<z.ZodString>;
|
|
51
|
+
userIds: z.ZodOptional<z.ZodString>;
|
|
52
|
+
trophyTypes: z.ZodOptional<z.ZodString>;
|
|
53
|
+
sort: z.ZodOptional<z.ZodEnum<{
|
|
54
|
+
"createdAt-asc": "createdAt-asc";
|
|
55
|
+
"createdAt-desc": "createdAt-desc";
|
|
56
|
+
"userId-asc": "userId-asc";
|
|
57
|
+
"userId-desc": "userId-desc";
|
|
58
|
+
}>>;
|
|
59
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
60
|
+
onePageLength: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
};
|
|
63
|
+
readonly putByUserId: {
|
|
64
|
+
readonly prefix: "/record";
|
|
65
|
+
readonly operation: {
|
|
66
|
+
readonly summary: "기록 업데이트";
|
|
67
|
+
readonly triggerHandler: true;
|
|
68
|
+
};
|
|
69
|
+
readonly base: "oj-api";
|
|
70
|
+
readonly method: "put";
|
|
71
|
+
readonly path: (userId: string) => string;
|
|
72
|
+
};
|
|
73
|
+
readonly putBySubmitId: {
|
|
74
|
+
readonly prefix: "/record";
|
|
75
|
+
readonly operation: {
|
|
76
|
+
readonly summary: "기록 업데이트";
|
|
77
|
+
readonly triggerHandler: true;
|
|
78
|
+
};
|
|
79
|
+
readonly base: "oj-api";
|
|
80
|
+
readonly method: "put";
|
|
81
|
+
readonly path: (submitId: string) => string;
|
|
82
|
+
};
|
|
83
|
+
readonly putByContestId: {
|
|
84
|
+
readonly prefix: "/record";
|
|
85
|
+
readonly operation: {
|
|
86
|
+
readonly summary: "기록 업데이트";
|
|
87
|
+
readonly triggerHandler: true;
|
|
88
|
+
readonly deprecated: true;
|
|
89
|
+
};
|
|
90
|
+
readonly base: "oj-api";
|
|
91
|
+
readonly method: "put";
|
|
92
|
+
readonly path: (contestId: string) => string;
|
|
93
|
+
};
|
|
94
|
+
readonly putMigrate: {
|
|
95
|
+
readonly prefix: "/record";
|
|
96
|
+
readonly operation: {
|
|
97
|
+
readonly summary: "기록 마이그레이션";
|
|
98
|
+
};
|
|
99
|
+
readonly auth: {
|
|
100
|
+
readonly requiredLevel: 5;
|
|
101
|
+
};
|
|
102
|
+
readonly base: "oj-api";
|
|
103
|
+
readonly method: "put";
|
|
104
|
+
readonly path: () => string;
|
|
105
|
+
};
|
|
106
|
+
};
|
|
107
|
+
export default _default;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const zod_1 = require("zod");
|
|
4
|
+
const contest_atom_1 = require("./contest.atom");
|
|
5
|
+
const problem_atom_1 = require("./problem.atom");
|
|
6
|
+
const record_atom_1 = require("./record.atom");
|
|
7
|
+
const user_atom_1 = require("./user.atom");
|
|
8
|
+
const { prefix } = record_atom_1.recordAtom;
|
|
9
|
+
exports.default = {
|
|
10
|
+
get: {
|
|
11
|
+
prefix,
|
|
12
|
+
operation: {
|
|
13
|
+
summary: '기록 조회',
|
|
14
|
+
},
|
|
15
|
+
base: 'oj-api',
|
|
16
|
+
method: 'get',
|
|
17
|
+
path: () => `/`,
|
|
18
|
+
data: zod_1.z.object({
|
|
19
|
+
records: zod_1.z.array(zod_1.z.object({
|
|
20
|
+
type: record_atom_1.recordAtom.type,
|
|
21
|
+
userId: user_atom_1.userAtom.id,
|
|
22
|
+
trophyType: record_atom_1.recordAtom.trophyType.optional(),
|
|
23
|
+
problemId: problem_atom_1.problemAtom.id.optional(),
|
|
24
|
+
contestId: contest_atom_1.contestAtom.id.optional(),
|
|
25
|
+
pastContestId: contest_atom_1.contestAtom.pastContestId.optional(),
|
|
26
|
+
createdAt: record_atom_1.recordAtom.createdAt,
|
|
27
|
+
})),
|
|
28
|
+
page: zod_1.z.number().int().positive(),
|
|
29
|
+
maxPage: zod_1.z.number().int().positive(),
|
|
30
|
+
count: zod_1.z.number().int().nonnegative(),
|
|
31
|
+
}),
|
|
32
|
+
query: zod_1.z.object({
|
|
33
|
+
types: zod_1.z.string().trim().optional(),
|
|
34
|
+
userIds: zod_1.z.string().trim().optional(),
|
|
35
|
+
trophyTypes: zod_1.z.string().trim().optional(),
|
|
36
|
+
sort: zod_1.z
|
|
37
|
+
.enum(['createdAt-asc', 'createdAt-desc', 'userId-asc', 'userId-desc'])
|
|
38
|
+
.optional(),
|
|
39
|
+
page: zod_1.z.coerce.number().int().positive().default(1),
|
|
40
|
+
onePageLength: zod_1.z.coerce.number().int().positive().max(200).default(100),
|
|
41
|
+
}),
|
|
42
|
+
},
|
|
43
|
+
putByUserId: {
|
|
44
|
+
prefix,
|
|
45
|
+
operation: {
|
|
46
|
+
summary: '기록 업데이트',
|
|
47
|
+
triggerHandler: true,
|
|
48
|
+
},
|
|
49
|
+
base: 'oj-api',
|
|
50
|
+
method: 'put',
|
|
51
|
+
path: (userId) => `/byUserId/${userId}`,
|
|
52
|
+
},
|
|
53
|
+
putBySubmitId: {
|
|
54
|
+
prefix,
|
|
55
|
+
operation: {
|
|
56
|
+
summary: '기록 업데이트',
|
|
57
|
+
triggerHandler: true,
|
|
58
|
+
},
|
|
59
|
+
base: 'oj-api',
|
|
60
|
+
method: 'put',
|
|
61
|
+
path: (submitId) => `/bySubmitId/${submitId}`,
|
|
62
|
+
},
|
|
63
|
+
putByContestId: {
|
|
64
|
+
prefix,
|
|
65
|
+
operation: {
|
|
66
|
+
summary: '기록 업데이트',
|
|
67
|
+
triggerHandler: true,
|
|
68
|
+
deprecated: true,
|
|
69
|
+
},
|
|
70
|
+
base: 'oj-api',
|
|
71
|
+
method: 'put',
|
|
72
|
+
path: (contestId) => `/byContestId/${contestId}`,
|
|
73
|
+
},
|
|
74
|
+
putMigrate: {
|
|
75
|
+
prefix,
|
|
76
|
+
operation: {
|
|
77
|
+
summary: '기록 마이그레이션',
|
|
78
|
+
},
|
|
79
|
+
auth: {
|
|
80
|
+
requiredLevel: 5,
|
|
81
|
+
},
|
|
82
|
+
base: 'oj-api',
|
|
83
|
+
method: 'put',
|
|
84
|
+
path: () => `/migrate`,
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=record.endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"record.endpoint.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/record.endpoint.ts"],"names":[],"mappings":";;AACA,6BAAwB;AAExB,iDAA6C;AAC7C,iDAA6C;AAC7C,+CAA2C;AAC3C,2CAAuC;AAEvC,MAAM,EAAE,MAAM,EAAE,GAAG,wBAAU,CAAC;AAE9B,kBAAe;IACb,GAAG,EAAE;QACH,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,OAAO;SACjB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG;QACf,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,OAAO,EAAE,OAAC,CAAC,KAAK,CACd,OAAC,CAAC,MAAM,CAAC;gBACP,IAAI,EAAE,wBAAU,CAAC,IAAI;gBACrB,MAAM,EAAE,oBAAQ,CAAC,EAAE;gBACnB,UAAU,EAAE,wBAAU,CAAC,UAAU,CAAC,QAAQ,EAAE;gBAC5C,SAAS,EAAE,0BAAW,CAAC,EAAE,CAAC,QAAQ,EAAE;gBACpC,SAAS,EAAE,0BAAW,CAAC,EAAE,CAAC,QAAQ,EAAE;gBACpC,aAAa,EAAE,0BAAW,CA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AAE;KAChD;IACD,aAAa,EAAE;QACb,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,cAAc,EAAE,IAAI;SACrB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,CAAC,QAAgB,EAAE,EAAE,CAAC,eAAe,QAAQ,EAAE;KACtD;IACD,cAAc,EAAE;QACd,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,SAAS;YAClB,cAAc,EAAE,IAAI;YACpB,UAAU,EAAE,IAAI;SACjB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,CAAC,SAAiB,EAAE,EAAE,CAAC,gBAAgB,SAAS,EAAE;KACzD;IACD,UAAU,EAAE;QAEV,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,WAAW;SACrB;QACD,IAAI,EAAE;YACJ,aAAa,EAAE,CAAC;SACjB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,GAAG,EAAE,CAAC,UAAU;KACvB;CAC0C,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const runAtom: {
|
|
3
|
+
prefix: string;
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
socketId: z.ZodString;
|
|
6
|
+
input: z.ZodString;
|
|
7
|
+
output: z.ZodString;
|
|
8
|
+
error: z.ZodString;
|
|
9
|
+
time: z.ZodNumber;
|
|
10
|
+
memory: z.ZodNumber;
|
|
11
|
+
source: z.ZodString;
|
|
12
|
+
language: z.ZodEnum<{
|
|
13
|
+
c: "c";
|
|
14
|
+
ruby: "ruby";
|
|
15
|
+
r: "r";
|
|
16
|
+
c11: "c11";
|
|
17
|
+
"c++": "c++";
|
|
18
|
+
"c++11": "c++11";
|
|
19
|
+
"c++14": "c++14";
|
|
20
|
+
"c++17": "c++17";
|
|
21
|
+
python2: "python2";
|
|
22
|
+
python3: "python3";
|
|
23
|
+
pypy3: "pypy3";
|
|
24
|
+
openjdk: "openjdk";
|
|
25
|
+
golang: "golang";
|
|
26
|
+
}>;
|
|
27
|
+
createdAt: z.ZodISODateTime;
|
|
28
|
+
updatedAt: z.ZodISODateTime;
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.runAtom = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const oj_submit_1 = require("@euler-edu/constant/oj-submit");
|
|
6
|
+
exports.runAtom = {
|
|
7
|
+
prefix: '/run',
|
|
8
|
+
id: zod_1.z.string().trim().min(1).describe('실행 아이디'),
|
|
9
|
+
socketId: zod_1.z.string().trim().min(1).max(100).describe('실행 세션 ID'),
|
|
10
|
+
input: zod_1.z.string().max(100000).describe('실행 입력'),
|
|
11
|
+
output: zod_1.z.string().max(100000).describe('실행 결과'),
|
|
12
|
+
error: zod_1.z.string().max(100000).describe('실행 에러'),
|
|
13
|
+
time: zod_1.z.number().min(0).describe('실행 시간 (sec)'),
|
|
14
|
+
memory: zod_1.z.number().min(0).describe('실행 메모리 사용량 (mb)'),
|
|
15
|
+
source: zod_1.z.string().trim().min(1).max(100000).describe('실행 소스코드'),
|
|
16
|
+
language: zod_1.z
|
|
17
|
+
.enum(Object.keys(oj_submit_1.ojSubmit.environments))
|
|
18
|
+
.describe('실행 언어'),
|
|
19
|
+
createdAt: zod_1.z.iso.datetime({ offset: true }).describe('실행 생성 시간'),
|
|
20
|
+
updatedAt: zod_1.z.iso.datetime({ offset: true }).describe('실행 수정 시간'),
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=run.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.atom.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/run.atom.ts"],"names":[],"mappings":";;;AAAA,6B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AAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;IAChE,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;CACjE,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly getById: {
|
|
4
|
+
readonly prefix: string;
|
|
5
|
+
readonly operation: {
|
|
6
|
+
readonly summary: "실행 조회";
|
|
7
|
+
};
|
|
8
|
+
readonly auth: {
|
|
9
|
+
readonly requiredLevel: 1;
|
|
10
|
+
};
|
|
11
|
+
readonly base: "oj-api";
|
|
12
|
+
readonly method: "get";
|
|
13
|
+
readonly path: (id: string) => string;
|
|
14
|
+
readonly data: z.ZodObject<{
|
|
15
|
+
socketId: z.ZodOptional<z.ZodString>;
|
|
16
|
+
output: z.ZodOptional<z.ZodString>;
|
|
17
|
+
error: z.ZodOptional<z.ZodString>;
|
|
18
|
+
time: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
memory: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
createdAt: z.ZodISODateTime;
|
|
21
|
+
updatedAt: z.ZodISODateTime;
|
|
22
|
+
}, z.core.$strip>;
|
|
23
|
+
};
|
|
24
|
+
readonly post: {
|
|
25
|
+
readonly prefix: string;
|
|
26
|
+
readonly operation: {
|
|
27
|
+
readonly summary: "실행 생성";
|
|
28
|
+
};
|
|
29
|
+
readonly auth: {
|
|
30
|
+
readonly requiredLevel: 1;
|
|
31
|
+
};
|
|
32
|
+
readonly base: "oj-api";
|
|
33
|
+
readonly method: "post";
|
|
34
|
+
readonly path: () => string;
|
|
35
|
+
readonly body: z.ZodObject<{
|
|
36
|
+
problemId: z.ZodString;
|
|
37
|
+
source: z.ZodString;
|
|
38
|
+
input: z.ZodString;
|
|
39
|
+
language: z.ZodEnum<{
|
|
40
|
+
c: "c";
|
|
41
|
+
ruby: "ruby";
|
|
42
|
+
r: "r";
|
|
43
|
+
c11: "c11";
|
|
44
|
+
"c++": "c++";
|
|
45
|
+
"c++11": "c++11";
|
|
46
|
+
"c++14": "c++14";
|
|
47
|
+
"c++17": "c++17";
|
|
48
|
+
python2: "python2";
|
|
49
|
+
python3: "python3";
|
|
50
|
+
pypy3: "pypy3";
|
|
51
|
+
openjdk: "openjdk";
|
|
52
|
+
golang: "golang";
|
|
53
|
+
}>;
|
|
54
|
+
socketId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
}, z.core.$strip>;
|
|
56
|
+
readonly data: z.ZodString;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const zod_1 = require("zod");
|
|
4
|
+
const problem_atom_1 = require("./problem.atom");
|
|
5
|
+
const run_atom_1 = require("./run.atom");
|
|
6
|
+
const { prefix } = run_atom_1.runAtom;
|
|
7
|
+
exports.default = {
|
|
8
|
+
getById: {
|
|
9
|
+
prefix,
|
|
10
|
+
operation: {
|
|
11
|
+
summary: '실행 조회',
|
|
12
|
+
},
|
|
13
|
+
auth: {
|
|
14
|
+
requiredLevel: 1,
|
|
15
|
+
},
|
|
16
|
+
base: 'oj-api',
|
|
17
|
+
method: 'get',
|
|
18
|
+
path: (id) => `/byId/${id}`,
|
|
19
|
+
data: zod_1.z.object({
|
|
20
|
+
socketId: run_atom_1.runAtom.socketId.optional(),
|
|
21
|
+
output: run_atom_1.runAtom.output.optional(),
|
|
22
|
+
error: run_atom_1.runAtom.error.optional(),
|
|
23
|
+
time: run_atom_1.runAtom.time.optional(),
|
|
24
|
+
memory: run_atom_1.runAtom.memory.optional(),
|
|
25
|
+
createdAt: run_atom_1.runAtom.createdAt,
|
|
26
|
+
updatedAt: run_atom_1.runAtom.updatedAt,
|
|
27
|
+
}),
|
|
28
|
+
},
|
|
29
|
+
post: {
|
|
30
|
+
prefix,
|
|
31
|
+
operation: {
|
|
32
|
+
summary: '실행 생성',
|
|
33
|
+
},
|
|
34
|
+
auth: {
|
|
35
|
+
requiredLevel: 1,
|
|
36
|
+
},
|
|
37
|
+
base: 'oj-api',
|
|
38
|
+
method: 'post',
|
|
39
|
+
path: () => `/`,
|
|
40
|
+
body: zod_1.z.object({
|
|
41
|
+
problemId: problem_atom_1.problemAtom.id,
|
|
42
|
+
source: run_atom_1.runAtom.source,
|
|
43
|
+
input: run_atom_1.runAtom.input,
|
|
44
|
+
language: run_atom_1.runAtom.language,
|
|
45
|
+
socketId: run_atom_1.runAtom.socketId.optional(),
|
|
46
|
+
}),
|
|
47
|
+
data: run_atom_1.runAtom.id,
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=run.endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.endpoint.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/run.endpoint.ts"],"names":[],"mappings":";;AACA,6BAAwB;AAExB,iDAA6C;AAC7C,yCAAqC;AAErC,MAAM,EAAE,MAAM,EAAE,GAAG,kBAAO,CAAC;AAE3B,kBAAe;IACb,OAAO,EAAE;QACP,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,OAAO;SACjB;QACD,IAAI,EAAE;YACJ,aAAa,EAAE,CAAC;SACjB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,SAAS,EAAE,EAAE;QACnC,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,QAAQ,EAAE,kBAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE;YACrC,MAAM,EAAE,kBAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;YACjC,KAAK,EAAE,kBAAO,CAAC,KAAK,CAAC,QAAQ,EAAE;YAC/B,IAAI,EAAE,kBAAO,CAAC,IAAI,CAAC,QAAQ,EAAE;YAC7B,MAAM,EAAE,kBAAO,CAAC,MAAM,CAAC,QAAQ,EAAE;YACjC,SAAS,EAAE,kBAAO,CAAC,SAAS;YAC5B,SAAS,EAAE,kBAAO,CAAC,SAAS;SAC7B,CAAC;KACH;IACD,IAAI,EAAE;QACJ,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,OAAO;SACjB;QACD,IAAI,EAAE;YACJ,aAAa,EAAE,CAAC;SACjB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,MAAe;QACvB,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG;QACf,IAAI,EAAE,OAAC,CAAC,MAAM,CAAC;YACb,SAAS,EAAE,0BAAW,CAAC,EAAE;YACzB,MAAM,EAAE,kBAAO,CAAC,MAAM;YACtB,KAAK,EAAE,kBAAO,CAAC,KAAK;YACpB,QAAQ,EAAE,kBAAO,CAAC,QAAQ;YAC1B,QAAQ,EAAE,kBAAO,CAAC,QAAQ,CAAC,QAAQ,EAAE;SACtC,CAAC;QACF,IAAI,EAAE,kBAAO,CAAC,EAAE;KACjB;CAC0C,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const scoringRequestAtom: {
|
|
3
|
+
prefix: string;
|
|
4
|
+
status: z.ZodEnum<{
|
|
5
|
+
pending: "pending";
|
|
6
|
+
processing: "processing";
|
|
7
|
+
processed: "processed";
|
|
8
|
+
completed: "completed";
|
|
9
|
+
}>;
|
|
10
|
+
isSubmit: z.ZodBoolean;
|
|
11
|
+
isRun: z.ZodBoolean;
|
|
12
|
+
history: z.ZodObject<{
|
|
13
|
+
status: z.ZodEnum<{
|
|
14
|
+
pending: "pending";
|
|
15
|
+
processing: "processing";
|
|
16
|
+
processed: "processed";
|
|
17
|
+
completed: "completed";
|
|
18
|
+
}>;
|
|
19
|
+
serverName: z.ZodString;
|
|
20
|
+
createdAt: z.ZodISODateTime;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
createdAt: z.ZodISODateTime;
|
|
23
|
+
updatedAt: z.ZodISODateTime;
|
|
24
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scoringRequestAtom = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const oj_scoringRequest_1 = require("@euler-edu/constant/oj-scoringRequest");
|
|
6
|
+
exports.scoringRequestAtom = {
|
|
7
|
+
prefix: '/scoringRequest',
|
|
8
|
+
status: zod_1.z.enum(oj_scoringRequest_1.ojScoringRequest.statuses).describe('채점 요청 상태'),
|
|
9
|
+
isSubmit: zod_1.z.boolean().describe('제출 여부'),
|
|
10
|
+
isRun: zod_1.z.boolean().describe('실행 여부'),
|
|
11
|
+
history: zod_1.z
|
|
12
|
+
.object({
|
|
13
|
+
status: zod_1.z.enum(oj_scoringRequest_1.ojScoringRequest.statuses),
|
|
14
|
+
serverName: zod_1.z.string(),
|
|
15
|
+
createdAt: zod_1.z.iso.datetime({ offset: true }),
|
|
16
|
+
})
|
|
17
|
+
.describe('채점 요청 변경 이력'),
|
|
18
|
+
createdAt: zod_1.z.iso.datetime({ offset: true }).describe('채점 요청 생성 시각'),
|
|
19
|
+
updatedAt: zod_1.z.iso.datetime({ offset: true }).describe('채점 요청 수정 시각'),
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=scoringRequest.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoringRequest.atom.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/scoringRequest.atom.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,6EAAyE;AAE5D,QAAA,kBAAkB,GAAG;IAChC,MAAM,EAAE,iBAAiB;IACzB,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,oCAAgB,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,UAAU,CAAC;IAC9D,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IACvC,KAAK,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC;IACpC,OAAO,EAAE,OAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,OAAC,CAAC,IAAI,CAAC,oCAAgB,CAAC,QAAQ,CAAC;QACzC,UAAU,EAAE,OAAC,CAAC,MAAM,EAAE;QACtB,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KAC5C,CAAC;SACD,QAAQ,CAAC,aAAa,CAAC;IAC1B,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;IACnE,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;CACpE,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly get: {
|
|
4
|
+
readonly prefix: string;
|
|
5
|
+
readonly operation: {
|
|
6
|
+
readonly summary: "채점 기록 조회";
|
|
7
|
+
};
|
|
8
|
+
readonly base: "oj-api";
|
|
9
|
+
readonly method: "get";
|
|
10
|
+
readonly path: () => string;
|
|
11
|
+
readonly data: z.ZodObject<{
|
|
12
|
+
requests: z.ZodArray<z.ZodObject<{
|
|
13
|
+
status: z.ZodEnum<{
|
|
14
|
+
pending: "pending";
|
|
15
|
+
processing: "processing";
|
|
16
|
+
processed: "processed";
|
|
17
|
+
completed: "completed";
|
|
18
|
+
}>;
|
|
19
|
+
isSubmit: z.ZodBoolean;
|
|
20
|
+
isRun: z.ZodBoolean;
|
|
21
|
+
histories: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
pending: "pending";
|
|
24
|
+
processing: "processing";
|
|
25
|
+
processed: "processed";
|
|
26
|
+
completed: "completed";
|
|
27
|
+
}>;
|
|
28
|
+
serverName: z.ZodString;
|
|
29
|
+
createdAt: z.ZodISODateTime;
|
|
30
|
+
}, z.core.$strip>>>;
|
|
31
|
+
createdAt: z.ZodISODateTime;
|
|
32
|
+
updatedAt: z.ZodISODateTime;
|
|
33
|
+
}, z.core.$strip>>;
|
|
34
|
+
page: z.ZodNumber;
|
|
35
|
+
maxPage: z.ZodNumber;
|
|
36
|
+
count: z.ZodNumber;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
readonly query: z.ZodObject<{
|
|
39
|
+
statuses: z.ZodOptional<z.ZodString>;
|
|
40
|
+
isSubmit: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
41
|
+
isRun: z.ZodOptional<z.ZodCoercedBoolean<unknown>>;
|
|
42
|
+
page: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
43
|
+
onePageLength: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
|
|
44
|
+
}, z.core.$strip>;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export default _default;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const zod_1 = require("zod");
|
|
4
|
+
const scoringRequest_atom_1 = require("./scoringRequest.atom");
|
|
5
|
+
const { prefix } = scoringRequest_atom_1.scoringRequestAtom;
|
|
6
|
+
exports.default = {
|
|
7
|
+
get: {
|
|
8
|
+
prefix,
|
|
9
|
+
operation: {
|
|
10
|
+
summary: '채점 기록 조회',
|
|
11
|
+
},
|
|
12
|
+
base: 'oj-api',
|
|
13
|
+
method: 'get',
|
|
14
|
+
path: () => `/`,
|
|
15
|
+
data: zod_1.z.object({
|
|
16
|
+
requests: zod_1.z.array(zod_1.z.object({
|
|
17
|
+
status: scoringRequest_atom_1.scoringRequestAtom.status,
|
|
18
|
+
isSubmit: scoringRequest_atom_1.scoringRequestAtom.isSubmit,
|
|
19
|
+
isRun: scoringRequest_atom_1.scoringRequestAtom.isRun,
|
|
20
|
+
histories: zod_1.z.array(scoringRequest_atom_1.scoringRequestAtom.history).optional(),
|
|
21
|
+
createdAt: scoringRequest_atom_1.scoringRequestAtom.createdAt,
|
|
22
|
+
updatedAt: scoringRequest_atom_1.scoringRequestAtom.updatedAt,
|
|
23
|
+
})),
|
|
24
|
+
page: zod_1.z.number().int().positive(),
|
|
25
|
+
maxPage: zod_1.z.number().int().positive(),
|
|
26
|
+
count: zod_1.z.number().int().nonnegative(),
|
|
27
|
+
}),
|
|
28
|
+
query: zod_1.z.object({
|
|
29
|
+
statuses: zod_1.z.string().trim().optional(),
|
|
30
|
+
isSubmit: zod_1.z.coerce.boolean().optional(),
|
|
31
|
+
isRun: zod_1.z.coerce.boolean().optional(),
|
|
32
|
+
page: zod_1.z.coerce.number().int().positive().default(1),
|
|
33
|
+
onePageLength: zod_1.z.coerce.number().int().positive().max(20).default(10),
|
|
34
|
+
}),
|
|
35
|
+
},
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=scoringRequest.endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoringRequest.endpoint.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/scoringRequest.endpoint.ts"],"names":[],"mappings":";;AACA,6BAAwB;AAExB,+DAA2D;AAE3D,MAAM,EAAE,MAAM,EAAE,GAAG,wCAAkB,CAAC;AAEtC,kBAAe;IACb,GAAG,EAAE;QACH,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,UAAU;SACpB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,GAAG,EAAE,C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C0C,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const scoringServerAtom: {
|
|
3
|
+
prefix: string;
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
type: z.ZodString;
|
|
6
|
+
isOnline: z.ZodBoolean;
|
|
7
|
+
createdAt: z.ZodISODateTime;
|
|
8
|
+
updatedAt: z.ZodISODateTime;
|
|
9
|
+
lastScoringRequestAt: z.ZodISODateTime;
|
|
10
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.scoringServerAtom = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.scoringServerAtom = {
|
|
6
|
+
prefix: '/scoringServer',
|
|
7
|
+
name: zod_1.z.string().trim().min(1).describe('서버 이름'),
|
|
8
|
+
type: zod_1.z.string().trim().min(1).describe('서버 타입'),
|
|
9
|
+
isOnline: zod_1.z.boolean().describe('서버 온라인 여부'),
|
|
10
|
+
createdAt: zod_1.z.iso.datetime({ offset: true }).describe('서버 정보 생성 시각'),
|
|
11
|
+
updatedAt: zod_1.z.iso
|
|
12
|
+
.datetime({ offset: true })
|
|
13
|
+
.describe('서버 정보 마지막 갱신 시각'),
|
|
14
|
+
lastScoringRequestAt: zod_1.z.iso
|
|
15
|
+
.datetime({ offset: true })
|
|
16
|
+
.describe('마지막 채점 요청 시각'),
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=scoringServer.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoringServer.atom.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/scoringServer.atom.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,iBAAiB,GAAG;IAC/B,MAAM,EAAE,gBAAgB;IACxB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;IAChD,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC;IAChD,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,WAAW,CAAC;IAC3C,SAAS,EAAE,OAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC;IACnE,SAAS,EAAE,OAAC,CAAC,GAAG;SACb,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;SAC1B,QAAQ,CAAC,iBAAiB,CAAC;IAC9B,oBAAoB,EAAE,OAAC,CAAC,GAAG;SACxB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;SAC1B,QAAQ,CAAC,cAAc,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly get: {
|
|
4
|
+
readonly prefix: string;
|
|
5
|
+
readonly operation: {
|
|
6
|
+
readonly summary: "채점 서버 조회";
|
|
7
|
+
};
|
|
8
|
+
readonly base: "oj-api";
|
|
9
|
+
readonly method: "get";
|
|
10
|
+
readonly path: () => string;
|
|
11
|
+
readonly data: z.ZodArray<z.ZodObject<{
|
|
12
|
+
name: z.ZodString;
|
|
13
|
+
type: z.ZodString;
|
|
14
|
+
isOnline: z.ZodBoolean;
|
|
15
|
+
createdAt: z.ZodISODateTime;
|
|
16
|
+
updatedAt: z.ZodISODateTime;
|
|
17
|
+
lastScoringRequestAt: z.ZodOptional<z.ZodISODateTime>;
|
|
18
|
+
}, z.core.$strip>>;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
export default _default;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const zod_1 = require("zod");
|
|
4
|
+
const scoringServer_atom_1 = require("./scoringServer.atom");
|
|
5
|
+
const { prefix } = scoringServer_atom_1.scoringServerAtom;
|
|
6
|
+
exports.default = {
|
|
7
|
+
get: {
|
|
8
|
+
prefix,
|
|
9
|
+
operation: {
|
|
10
|
+
summary: '채점 서버 조회',
|
|
11
|
+
},
|
|
12
|
+
base: 'oj-api',
|
|
13
|
+
method: 'get',
|
|
14
|
+
path: () => `/`,
|
|
15
|
+
data: zod_1.z.array(zod_1.z.object({
|
|
16
|
+
name: scoringServer_atom_1.scoringServerAtom.name,
|
|
17
|
+
type: scoringServer_atom_1.scoringServerAtom.type,
|
|
18
|
+
isOnline: scoringServer_atom_1.scoringServerAtom.isOnline,
|
|
19
|
+
createdAt: scoringServer_atom_1.scoringServerAtom.createdAt,
|
|
20
|
+
updatedAt: scoringServer_atom_1.scoringServerAtom.updatedAt,
|
|
21
|
+
lastScoringRequestAt: scoringServer_atom_1.scoringServerAtom.lastScoringRequestAt.optional(),
|
|
22
|
+
})),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=scoringServer.endpoint.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scoringServer.endpoint.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/scoringServer.endpoint.ts"],"names":[],"mappings":";;AACA,6BAAwB;AAExB,6DAAyD;AAEzD,MAAM,EAAE,MAAM,EAAE,GAAG,sCAAiB,CAAC;AAErC,kBAAe;IACb,GAAG,EAAE;QACH,MAAM;QACN,SAAS,EAAE;YACT,OAAO,EAAE,UAAU;SACpB;QACD,IAAI,EAAE,QAAiB;QACvB,MAAM,EAAE,KAAc;QACtB,IAAI,EAAE,GAAG,EAAE,CAAC,GAAG;QACf,IAAI,EAAE,OAAC,CAAC,KAAK,CACX,OAAC,CAAC,MAAM,CAAC;YACP,IAAI,EAAE,sCAAiB,CAAC,IAAI;YAC5B,IAAI,EAAE,sCAAiB,CAAC,IAAI;YAC5B,QAAQ,EAAE,sCAAiB,CAAC,QAAQ;YACpC,SAAS,EAAE,sCAAiB,CAAC,SAAS;YACtC,SAAS,EAAE,sCAAiB,CAAC,SAAS;YACtC,oBAAoB,EAAE,sCAAiB,CAAC,oBAAoB,CAAC,QAAQ,EAAE;SACxE,CAAC,CACH;KACF;CAC0C,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sourceAtom = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.sourceAtom = {
|
|
6
|
+
prefix: '/source',
|
|
7
|
+
version: zod_1.z
|
|
8
|
+
.object({
|
|
9
|
+
size: zod_1.z
|
|
10
|
+
.number()
|
|
11
|
+
.int()
|
|
12
|
+
.nonnegative()
|
|
13
|
+
.describe('소스코드 저장 용량 (byte)'),
|
|
14
|
+
versionId: zod_1.z.string().trim().min(1).describe('소스코드 버전 ID'),
|
|
15
|
+
lastModified: zod_1.z.iso
|
|
16
|
+
.datetime({ offset: true })
|
|
17
|
+
.describe('소스코드 마지막 수정 시각'),
|
|
18
|
+
isLatest: zod_1.z.boolean().describe('소스코드 최신 여부'),
|
|
19
|
+
})
|
|
20
|
+
.describe('소스코드 저장 내용'),
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=source.atom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"source.atom.js","sourceRoot":"","sources":["../../../src/endpoints/oj-api/source.atom.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAEX,QAAA,UAAU,GAAG;IACxB,MAAM,EAAE,SAAS;IACjB,OAAO,EAAE,OAAC;SACP,MAAM,CAAC;QACN,IAAI,EAAE,OAAC;aACJ,MAAM,EAAE;aACR,GAAG,EAAE;aACL,WAAW,EAAE;aACb,QAAQ,CAAC,mBAAmB,CAAC;QAChC,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC;QAC1D,YAAY,EAAE,OAAC,CAAC,GAAG;aAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;aAC1B,QAAQ,CAAC,gBAAgB,CAAC;QAC7B,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC;KAC7C,CAAC;SACD,QAAQ,CAAC,YAAY,CAAC;CAC1B,CAAC"}
|