@juki-team/commons 0.1.46 → 0.1.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{types/constants → constants}/commons.d.ts +1 -1
- package/dist/constants/commons.js +648 -0
- package/dist/{types/constants → constants}/contest.d.ts +1 -1
- package/dist/constants/contest.js +28 -0
- package/dist/{types/constants → constants}/course.d.ts +1 -1
- package/dist/constants/course.js +12 -0
- package/dist/constants/date.js +23 -0
- package/dist/constants/email.js +34 -0
- package/dist/{types/constants → constants}/entity.d.ts +1 -1
- package/dist/constants/entity.js +18 -0
- package/dist/{types/constants → constants}/file.d.ts +1 -1
- package/dist/constants/file.js +45 -0
- package/dist/constants/index.d.ts +18 -0
- package/dist/constants/index.js +18 -0
- package/dist/{types/constants → constants}/judge.d.ts +1 -1
- package/dist/constants/judge.js +225 -0
- package/dist/{types/constants → constants}/organization.d.ts +1 -1
- package/dist/constants/organization.js +24 -0
- package/dist/{types/constants → constants}/problem.d.ts +1 -1
- package/dist/constants/problem.js +69 -0
- package/dist/constants/routing.js +7 -0
- package/dist/{types/constants → constants}/services.d.ts +1 -1
- package/dist/constants/services.js +157 -0
- package/dist/{types/constants → constants}/system.d.ts +1 -1
- package/dist/constants/system.js +9 -0
- package/dist/{types/constants → constants}/teams.d.ts +1 -1
- package/dist/constants/teams.js +17 -0
- package/dist/constants/time.js +9 -0
- package/dist/{types/constants → constants}/user.d.ts +2 -2
- package/dist/constants/user.js +40 -0
- package/dist/{types/constants → constants}/websocket.d.ts +7 -3
- package/dist/constants/websocket.js +56 -0
- package/dist/{types/constants → constants}/worksheet.d.ts +1 -1
- package/dist/constants/worksheet.js +66 -0
- package/dist/{types/dto → dto}/class.d.ts +3 -3
- package/dist/dto/class.js +1 -0
- package/dist/{types/dto → dto}/code.d.ts +1 -1
- package/dist/dto/code.js +1 -0
- package/dist/{types/dto → dto}/comments.d.ts +1 -1
- package/dist/dto/comments.js +1 -0
- package/dist/{types/dto → dto}/contest.d.ts +4 -4
- package/dist/dto/contest.js +7 -0
- package/dist/{types/dto → dto}/course.d.ts +4 -4
- package/dist/dto/course.js +1 -0
- package/dist/{types/dto → dto}/entity.d.ts +2 -2
- package/dist/dto/entity.js +5 -0
- package/dist/{types/dto → dto}/excalidraw.d.ts +3 -3
- package/dist/dto/excalidraw.js +1 -0
- package/dist/{types/dto → dto}/file.d.ts +2 -2
- package/dist/dto/file.js +1 -0
- package/dist/dto/image.js +1 -0
- package/dist/dto/index.d.ts +25 -0
- package/dist/dto/index.js +25 -0
- package/dist/{types/dto → dto}/judge.d.ts +1 -1
- package/dist/dto/judge.js +1 -0
- package/dist/{types/dto → dto}/markdown.d.ts +3 -3
- package/dist/dto/markdown.js +1 -0
- package/dist/{types/dto → dto}/mermaid.d.ts +3 -3
- package/dist/dto/mermaid.js +1 -0
- package/dist/{types/dto → dto}/organization.d.ts +3 -3
- package/dist/dto/organization.js +1 -0
- package/dist/{types/dto → dto}/problem.d.ts +3 -3
- package/dist/dto/problem.js +1 -0
- package/dist/{types/dto → dto}/scoreboard.d.ts +2 -2
- package/dist/dto/scoreboard.js +1 -0
- package/dist/{types/dto → dto}/session.d.ts +2 -2
- package/dist/dto/session.js +1 -0
- package/dist/{types/dto → dto}/socket.d.ts +5 -5
- package/dist/dto/socket.js +1 -0
- package/dist/{types/dto → dto}/statistics.d.ts +1 -1
- package/dist/dto/statistics.js +1 -0
- package/dist/{types/dto → dto}/submission.d.ts +3 -3
- package/dist/dto/submission.js +1 -0
- package/dist/{types/dto → dto}/system.d.ts +1 -1
- package/dist/dto/system.js +1 -0
- package/dist/dto/url.js +1 -0
- package/dist/{types/dto → dto}/user.d.ts +3 -3
- package/dist/dto/user.js +1 -0
- package/dist/{types/dto → dto}/virtual-user.d.ts +1 -1
- package/dist/dto/virtual-user.js +1 -0
- package/dist/{types/dto → dto}/worksheet-submissions.d.ts +3 -3
- package/dist/dto/worksheet-submissions.js +1 -0
- package/dist/{types/dto → dto}/worksheet.d.ts +3 -3
- package/dist/dto/worksheet.js +1 -0
- package/dist/{types/helpers → helpers}/class.d.ts +1 -1
- package/dist/helpers/class.js +10 -0
- package/dist/helpers/comments.js +4 -0
- package/dist/{types/helpers → helpers}/commons.d.ts +1 -1
- package/dist/helpers/commons.js +187 -0
- package/dist/{types/helpers → helpers}/contest.d.ts +1 -1
- package/dist/helpers/contest.js +21 -0
- package/dist/helpers/date.js +181 -0
- package/dist/{types/helpers → helpers}/document.d.ts +2 -2
- package/dist/helpers/document.js +51 -0
- package/dist/{types/helpers → helpers}/errors.d.ts +1 -1
- package/dist/helpers/errors.js +17 -0
- package/dist/helpers/file.js +4 -0
- package/dist/helpers/index.d.ts +17 -0
- package/dist/helpers/index.js +17 -0
- package/dist/helpers/interval.js +24 -0
- package/dist/{types/helpers → helpers}/judging.d.ts +1 -1
- package/dist/helpers/judging.js +124 -0
- package/dist/helpers/number.js +2 -0
- package/dist/helpers/object.js +33 -0
- package/dist/{types/helpers → helpers}/responses.d.ts +2 -2
- package/dist/helpers/responses.js +95 -0
- package/dist/{types/helpers → helpers}/socket.d.ts +3 -3
- package/dist/helpers/socket.js +279 -0
- package/dist/{types/helpers → helpers}/time.d.ts +1 -1
- package/dist/helpers/time.js +69 -0
- package/dist/{types/helpers → helpers}/user.d.ts +1 -1
- package/dist/helpers/user.js +14 -0
- package/dist/{types/helpers → helpers}/worksheet.d.ts +1 -1
- package/dist/helpers/worksheet.js +107 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/types/account.js +10 -0
- package/dist/types/{types/class.d.ts → class.d.ts} +2 -2
- package/dist/types/class.js +7 -0
- package/dist/types/comments.js +1 -0
- package/dist/types/{types/commons.d.ts → commons.d.ts} +1 -1
- package/dist/types/commons.js +69 -0
- package/dist/types/{types/contest.d.ts → contest.d.ts} +4 -4
- package/dist/types/contest.js +27 -0
- package/dist/types/{types/course.d.ts → course.d.ts} +1 -1
- package/dist/types/course.js +1 -0
- package/dist/types/entity.js +50 -0
- package/dist/types/{types/excalidraw.d.ts → excalidraw.d.ts} +1 -1
- package/dist/types/excalidraw.js +1 -0
- package/dist/types/{types/file.d.ts → file.d.ts} +2 -2
- package/dist/types/file.js +19 -0
- package/dist/types/{types/group.d.ts → group.d.ts} +1 -1
- package/dist/types/group.js +5 -0
- package/dist/types/index.d.ts +27 -4
- package/dist/types/index.js +27 -0
- package/dist/types/{types/judge.d.ts → judge.d.ts} +2 -2
- package/dist/types/judge.js +49 -0
- package/dist/types/{types/markdown.d.ts → markdown.d.ts} +1 -1
- package/dist/types/markdown.js +1 -0
- package/dist/types/{types/mermaid.d.ts → mermaid.d.ts} +1 -1
- package/dist/types/mermaid.js +1 -0
- package/dist/types/notification.js +8 -0
- package/dist/types/organization.js +14 -0
- package/dist/types/{types/prisma.d.ts → prisma.d.ts} +1 -1
- package/dist/types/prisma.js +106 -0
- package/dist/types/{types/problems.d.ts → problems.d.ts} +3 -3
- package/dist/types/problems.js +28 -0
- package/dist/types/scoreboard.js +1 -0
- package/dist/types/{types/services.d.ts → services.d.ts} +1 -1
- package/dist/types/services.js +152 -0
- package/dist/types/{types/sheet.d.ts → sheet.d.ts} +2 -2
- package/dist/types/sheet.js +16 -0
- package/dist/types/{types/socket.d.ts → socket.d.ts} +3 -2
- package/dist/types/socket.js +76 -0
- package/dist/types/submission.js +1 -0
- package/dist/types/system.js +1 -0
- package/dist/types/{types/teams.d.ts → teams.d.ts} +2 -2
- package/dist/types/teams.js +1 -0
- package/dist/types/{types/users.d.ts → users.d.ts} +2 -2
- package/dist/types/users.js +23 -0
- package/dist/types/virtual-user.js +8 -0
- package/dist/types/{types/worksheet.d.ts → worksheet.d.ts} +3 -3
- package/dist/types/worksheet.js +11 -0
- package/package.json +8 -11
- package/dist/cjs/index.cjs +0 -3695
- package/dist/esm/index.js +0 -3415
- package/dist/types/constants/index.d.ts +0 -18
- package/dist/types/dto/index.d.ts +0 -25
- package/dist/types/helpers/index.d.ts +0 -17
- package/dist/types/types/index.d.ts +0 -27
- /package/dist/{types/constants → constants}/date.d.ts +0 -0
- /package/dist/{types/constants → constants}/email.d.ts +0 -0
- /package/dist/{types/constants → constants}/routing.d.ts +0 -0
- /package/dist/{types/constants → constants}/time.d.ts +0 -0
- /package/dist/{types/dto → dto}/image.d.ts +0 -0
- /package/dist/{types/dto → dto}/url.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/comments.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/date.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/file.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/interval.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/number.d.ts +0 -0
- /package/dist/{types/helpers → helpers}/object.d.ts +0 -0
- /package/dist/types/{types/account.d.ts → account.d.ts} +0 -0
- /package/dist/types/{types/comments.d.ts → comments.d.ts} +0 -0
- /package/dist/types/{types/entity.d.ts → entity.d.ts} +0 -0
- /package/dist/types/{types/notification.d.ts → notification.d.ts} +0 -0
- /package/dist/types/{types/organization.d.ts → organization.d.ts} +0 -0
- /package/dist/types/{types/scoreboard.d.ts → scoreboard.d.ts} +0 -0
- /package/dist/types/{types/submission.d.ts → submission.d.ts} +0 -0
- /package/dist/types/{types/system.d.ts → system.d.ts} +0 -0
- /package/dist/types/{types/virtual-user.d.ts → virtual-user.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export var EntityMembersRank;
|
|
2
|
+
(function (EntityMembersRank) {
|
|
3
|
+
EntityMembersRank["NONE"] = "NONE";
|
|
4
|
+
EntityMembersRank["CLOSE"] = "CLOSE";
|
|
5
|
+
EntityMembersRank["OPEN"] = "OPEN";
|
|
6
|
+
})(EntityMembersRank || (EntityMembersRank = {}));
|
|
7
|
+
export var EntityState;
|
|
8
|
+
(function (EntityState) {
|
|
9
|
+
EntityState["RELEASED"] = "RELEASED";
|
|
10
|
+
EntityState["ARCHIVED"] = "ARCHIVED";
|
|
11
|
+
})(EntityState || (EntityState = {}));
|
|
12
|
+
export var EntityCollection;
|
|
13
|
+
(function (EntityCollection) {
|
|
14
|
+
EntityCollection["ORGANIZATION"] = "ORGANIZATION";
|
|
15
|
+
EntityCollection["PROBLEM"] = "PROBLEM";
|
|
16
|
+
EntityCollection["CONTEST"] = "CONTEST";
|
|
17
|
+
EntityCollection["JUDGE"] = "JUDGE";
|
|
18
|
+
EntityCollection["USER"] = "USER";
|
|
19
|
+
EntityCollection["SUBMISSION"] = "SUBMISSION";
|
|
20
|
+
})(EntityCollection || (EntityCollection = {}));
|
|
21
|
+
export var CollectionKey;
|
|
22
|
+
(function (CollectionKey) {
|
|
23
|
+
CollectionKey["ORGANIZATION"] = "C";
|
|
24
|
+
CollectionKey["USER"] = "U";
|
|
25
|
+
CollectionKey["PROBLEM"] = "P";
|
|
26
|
+
CollectionKey["CLASS"] = "K";
|
|
27
|
+
CollectionKey["CLASS_ASSIGNMENT"] = "KA";
|
|
28
|
+
CollectionKey["CONTEST"] = "T";
|
|
29
|
+
CollectionKey["SCOREBOARD"] = "B";
|
|
30
|
+
CollectionKey["SCOREBOARD_EVENTS"] = "BE";
|
|
31
|
+
CollectionKey["COURSE"] = "R";
|
|
32
|
+
CollectionKey["FILE"] = "F";
|
|
33
|
+
CollectionKey["GROUP"] = "G";
|
|
34
|
+
CollectionKey["JUDGE"] = "J";
|
|
35
|
+
CollectionKey["WORKSHEET"] = "W";
|
|
36
|
+
CollectionKey["WORKSHEET_SUBMISSIONS"] = "WS";
|
|
37
|
+
CollectionKey["SUBMIT"] = "S";
|
|
38
|
+
CollectionKey["LOCALE"] = "L";
|
|
39
|
+
CollectionKey["COMMENT"] = "M";
|
|
40
|
+
CollectionKey["EXCALIDRAW"] = "E";
|
|
41
|
+
CollectionKey["MARKDOWN"] = "MD";
|
|
42
|
+
CollectionKey["DOCUMENT_TEMPLATE"] = "DT";
|
|
43
|
+
CollectionKey["MERMAID"] = "MM";
|
|
44
|
+
})(CollectionKey || (CollectionKey = {}));
|
|
45
|
+
export var LogOperation;
|
|
46
|
+
(function (LogOperation) {
|
|
47
|
+
LogOperation["REMOVE"] = "REMOVE";
|
|
48
|
+
LogOperation["ADD"] = "ADD";
|
|
49
|
+
LogOperation["UPDATE"] = "UPDATE";
|
|
50
|
+
})(LogOperation || (LogOperation = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { EntityState } from './entity';
|
|
2
|
-
import { Role } from './users';
|
|
1
|
+
import { EntityState } from './entity.js';
|
|
2
|
+
import { Role } from './users.js';
|
|
3
3
|
export type FileRole = Role.RESTRICTED | Role.GUEST | Role.REGULAR | Role.MASTER | Role.ADMIN | Role.SUPER_ADMIN;
|
|
4
4
|
export declare enum FileMemberRole {
|
|
5
5
|
VIEWER = "VIEWER",
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CollectionKey } from './entity.js';
|
|
2
|
+
export var FileMemberRole;
|
|
3
|
+
(function (FileMemberRole) {
|
|
4
|
+
FileMemberRole["VIEWER"] = "VIEWER";
|
|
5
|
+
FileMemberRole["EDITOR"] = "EDITOR";
|
|
6
|
+
})(FileMemberRole || (FileMemberRole = {}));
|
|
7
|
+
export var FileType;
|
|
8
|
+
(function (FileType) {
|
|
9
|
+
FileType["FOLDER"] = "FOLDER";
|
|
10
|
+
FileType["FILE"] = "FILE";
|
|
11
|
+
})(FileType || (FileType = {}));
|
|
12
|
+
export var FilesJukiPub;
|
|
13
|
+
(function (FilesJukiPub) {
|
|
14
|
+
FilesJukiPub["SHARED"] = "shared";
|
|
15
|
+
FilesJukiPub["SHARED_EXCALIDRAW"] = "shared/E";
|
|
16
|
+
FilesJukiPub["TEMP"] = "temp";
|
|
17
|
+
FilesJukiPub["PROBLEMS"] = "problems";
|
|
18
|
+
FilesJukiPub["CONTESTS"] = "contests";
|
|
19
|
+
})(FilesJukiPub || (FilesJukiPub = {}));
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,27 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
1
|
+
export * from './account.js';
|
|
2
|
+
export * from './class.js';
|
|
3
|
+
export * from './comments.js';
|
|
4
|
+
export * from './commons.js';
|
|
5
|
+
export * from './organization.js';
|
|
6
|
+
export * from './contest.js';
|
|
7
|
+
export * from './course.js';
|
|
8
|
+
export * from './entity.js';
|
|
9
|
+
export * from './excalidraw.js';
|
|
10
|
+
export * from './file.js';
|
|
11
|
+
export * from './group.js';
|
|
12
|
+
export * from './judge.js';
|
|
13
|
+
export * from './markdown.js';
|
|
14
|
+
export * from './mermaid.js';
|
|
15
|
+
export * from './notification.js';
|
|
16
|
+
export * from './prisma.js';
|
|
17
|
+
export * from './problems.js';
|
|
18
|
+
export * from './scoreboard.js';
|
|
19
|
+
export * from './services.js';
|
|
20
|
+
export * from './sheet.js';
|
|
21
|
+
export * from './socket.js';
|
|
22
|
+
export * from './submission.js';
|
|
23
|
+
export * from './system.js';
|
|
24
|
+
export * from './teams.js';
|
|
25
|
+
export * from './users.js';
|
|
26
|
+
export * from './virtual-user.js';
|
|
27
|
+
export * from './worksheet.js';
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export * from './account.js';
|
|
2
|
+
export * from './class.js';
|
|
3
|
+
export * from './comments.js';
|
|
4
|
+
export * from './commons.js';
|
|
5
|
+
export * from './organization.js';
|
|
6
|
+
export * from './contest.js';
|
|
7
|
+
export * from './course.js';
|
|
8
|
+
export * from './entity.js';
|
|
9
|
+
export * from './excalidraw.js';
|
|
10
|
+
export * from './file.js';
|
|
11
|
+
export * from './group.js';
|
|
12
|
+
export * from './judge.js';
|
|
13
|
+
export * from './markdown.js';
|
|
14
|
+
export * from './mermaid.js';
|
|
15
|
+
export * from './notification.js';
|
|
16
|
+
export * from './prisma.js';
|
|
17
|
+
export * from './problems.js';
|
|
18
|
+
export * from './scoreboard.js';
|
|
19
|
+
export * from './services.js';
|
|
20
|
+
export * from './sheet.js';
|
|
21
|
+
export * from './socket.js';
|
|
22
|
+
export * from './submission.js';
|
|
23
|
+
export * from './system.js';
|
|
24
|
+
export * from './teams.js';
|
|
25
|
+
export * from './users.js';
|
|
26
|
+
export * from './virtual-user.js';
|
|
27
|
+
export * from './worksheet.js';
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export var Judge;
|
|
2
|
+
(function (Judge) {
|
|
3
|
+
Judge["JUKI_JUDGE"] = "JUKI_JUDGE";
|
|
4
|
+
Judge["CODEFORCES"] = "CODEFORCES";
|
|
5
|
+
Judge["CODEFORCES_GYM"] = "CODEFORCES_GYM";
|
|
6
|
+
Judge["JV_UMSA"] = "JV_UMSA";
|
|
7
|
+
Judge["UVA_ONLINE_JUDGE"] = "UVA_ONLINE_JUDGE";
|
|
8
|
+
Judge["AT_CODER"] = "AT_CODER";
|
|
9
|
+
Judge["CODECHEF"] = "CODECHEF";
|
|
10
|
+
Judge["TOPCODER"] = "TOPCODER";
|
|
11
|
+
Judge["LEETCODE"] = "LEETCODE";
|
|
12
|
+
})(Judge || (Judge = {}));
|
|
13
|
+
export var ProblemVerdict;
|
|
14
|
+
(function (ProblemVerdict) {
|
|
15
|
+
ProblemVerdict["NONE"] = "NONE";
|
|
16
|
+
ProblemVerdict["PENDING"] = "PENDING";
|
|
17
|
+
ProblemVerdict["HIDDEN"] = "HIDDEN";
|
|
18
|
+
ProblemVerdict["CE"] = "CE";
|
|
19
|
+
ProblemVerdict["RE"] = "RE";
|
|
20
|
+
ProblemVerdict["TLE"] = "TLE";
|
|
21
|
+
ProblemVerdict["MLE"] = "MLE";
|
|
22
|
+
ProblemVerdict["WA"] = "WA";
|
|
23
|
+
ProblemVerdict["PE"] = "PE";
|
|
24
|
+
ProblemVerdict["PA"] = "PA";
|
|
25
|
+
ProblemVerdict["AC"] = "AC";
|
|
26
|
+
})(ProblemVerdict || (ProblemVerdict = {}));
|
|
27
|
+
export var SubmissionRunStatus;
|
|
28
|
+
(function (SubmissionRunStatus) {
|
|
29
|
+
SubmissionRunStatus["NONE"] = "NONE";
|
|
30
|
+
SubmissionRunStatus["RECEIVED"] = "RECEIVED";
|
|
31
|
+
SubmissionRunStatus["COMPILING"] = "COMPILING";
|
|
32
|
+
SubmissionRunStatus["COMPILED"] = "COMPILED";
|
|
33
|
+
SubmissionRunStatus["COMPILATION_ERROR"] = "COMPILATION_ERROR";
|
|
34
|
+
SubmissionRunStatus["FETCHING_TEST_CASES"] = "FETCHING_TEST_CASES";
|
|
35
|
+
SubmissionRunStatus["RUNNING_TEST_CASE"] = "RUNNING_TEST_CASE";
|
|
36
|
+
SubmissionRunStatus["RUNNING_TEST_CASES"] = "RUNNING_TEST_CASES";
|
|
37
|
+
SubmissionRunStatus["RUNNING_SAMPLE_TEST_CASES"] = "RUNNING_SAMPLE_TEST_CASES";
|
|
38
|
+
SubmissionRunStatus["EXECUTED_TEST_CASE"] = "EXECUTED_TEST_CASE";
|
|
39
|
+
SubmissionRunStatus["FAILED_TEST_CASE"] = "FAILED_TEST_CASE";
|
|
40
|
+
SubmissionRunStatus["JUDGING_TEST_CASE"] = "JUDGING_TEST_CASE";
|
|
41
|
+
SubmissionRunStatus["GRADING"] = "GRADING";
|
|
42
|
+
SubmissionRunStatus["FAILED"] = "FAILED";
|
|
43
|
+
SubmissionRunStatus["COMPLETED"] = "COMPLETED";
|
|
44
|
+
})(SubmissionRunStatus || (SubmissionRunStatus = {}));
|
|
45
|
+
export var RunnerType;
|
|
46
|
+
(function (RunnerType) {
|
|
47
|
+
RunnerType["HIGH_PERFORMANCE"] = "HIGH_PERFORMANCE";
|
|
48
|
+
RunnerType["LOW_PERFORMANCE"] = "LOW_PERFORMANCE";
|
|
49
|
+
})(RunnerType || (RunnerType = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var NotificationType;
|
|
2
|
+
(function (NotificationType) {
|
|
3
|
+
NotificationType["SUCCESS"] = "success";
|
|
4
|
+
NotificationType["INFO"] = "info";
|
|
5
|
+
NotificationType["WARNING"] = "warning";
|
|
6
|
+
NotificationType["ERROR"] = "error";
|
|
7
|
+
NotificationType["QUIET"] = "quiet";
|
|
8
|
+
})(NotificationType || (NotificationType = {}));
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export var OrganizationPlan;
|
|
2
|
+
(function (OrganizationPlan) {
|
|
3
|
+
OrganizationPlan["FREE"] = "FREE";
|
|
4
|
+
OrganizationPlan["STANDARD"] = "STANDARD";
|
|
5
|
+
OrganizationPlan["PREMIUM"] = "PREMIUM";
|
|
6
|
+
OrganizationPlan["CUSTOM"] = "CUSTOM";
|
|
7
|
+
})(OrganizationPlan || (OrganizationPlan = {}));
|
|
8
|
+
export var OrganizationLogoType;
|
|
9
|
+
(function (OrganizationLogoType) {
|
|
10
|
+
OrganizationLogoType["HORIZONTAL_WHITE"] = "horizontal-white";
|
|
11
|
+
OrganizationLogoType["HORIZONTAL_COLOR"] = "horizontal-color";
|
|
12
|
+
OrganizationLogoType["VERTICAL_WHITE"] = "vertical-white";
|
|
13
|
+
OrganizationLogoType["VERTICAL_COLOR"] = "vertical-color";
|
|
14
|
+
})(OrganizationLogoType || (OrganizationLogoType = {}));
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import { ProfileSetting } from './account.js';
|
|
2
|
+
/**
|
|
3
|
+
* Enums
|
|
4
|
+
*/
|
|
5
|
+
// Based on
|
|
6
|
+
// https://github.com/microsoft/TypeScript/issues/3192#issuecomment-261720275
|
|
7
|
+
export const CourseStatus = {
|
|
8
|
+
RELEASED: 'RELEASED',
|
|
9
|
+
IN_DRAFT: 'IN_DRAFT',
|
|
10
|
+
IN_REVIEW: 'IN_REVIEW',
|
|
11
|
+
ARCHIVED: 'ARCHIVED',
|
|
12
|
+
};
|
|
13
|
+
export const CourseType = {
|
|
14
|
+
PUBLIC: 'PUBLIC',
|
|
15
|
+
PRIVATE: 'PRIVATE',
|
|
16
|
+
CLOSED: 'CLOSED',
|
|
17
|
+
};
|
|
18
|
+
export const AssignmentType = {
|
|
19
|
+
READING_PDF: 'READING_PDF',
|
|
20
|
+
READING_WEB: 'READING_WEB',
|
|
21
|
+
SOLVE_JUKI_JUDGE_PROBLEM: 'SOLVE_JUKI_JUDGE_PROBLEM',
|
|
22
|
+
SOLVE_CODEFORCES_JUDGE_PROBLEM: 'SOLVE_CODEFORCES_JUDGE_PROBLEM',
|
|
23
|
+
};
|
|
24
|
+
export const AssignmentState = {
|
|
25
|
+
ASSIGNED: 'ASSIGNED',
|
|
26
|
+
IN_PROGRESS: 'IN_PROGRESS',
|
|
27
|
+
TO_REVIEW: 'TO_REVIEW',
|
|
28
|
+
RESOLVED: 'RESOLVED',
|
|
29
|
+
};
|
|
30
|
+
export const TeamStatus = {
|
|
31
|
+
ACTIVE: 'ACTIVE',
|
|
32
|
+
REPORTED: 'REPORTED',
|
|
33
|
+
ARCHIVED: 'ARCHIVED',
|
|
34
|
+
};
|
|
35
|
+
export const MemberRole = {
|
|
36
|
+
COACH: 'COACH',
|
|
37
|
+
CO_COACH: 'CO_COACH',
|
|
38
|
+
CONTESTANT: 'CONTESTANT',
|
|
39
|
+
ATTENDEE: 'ATTENDEE',
|
|
40
|
+
RESERVE: 'RESERVE',
|
|
41
|
+
STAFF: 'STAFF',
|
|
42
|
+
};
|
|
43
|
+
export const UserTeamStatus = {
|
|
44
|
+
PENDING: 'PENDING',
|
|
45
|
+
ACCEPTED: 'ACCEPTED',
|
|
46
|
+
REJECTED: 'REJECTED',
|
|
47
|
+
};
|
|
48
|
+
export const Language = {
|
|
49
|
+
ES: 'ES',
|
|
50
|
+
EN: 'EN',
|
|
51
|
+
};
|
|
52
|
+
export const Theme = {
|
|
53
|
+
LIGHT: 'LIGHT',
|
|
54
|
+
DARK: 'DARK',
|
|
55
|
+
};
|
|
56
|
+
export const EmailSubscription = {
|
|
57
|
+
NONE: 'NONE',
|
|
58
|
+
RANKED_CONTESTS: 'RANKED_CONTESTS',
|
|
59
|
+
WEEKLY_NEWS_SUBSCRIPTION: 'WEEKLY_NEWS_SUBSCRIPTION',
|
|
60
|
+
MONTHLY_NEWS_SUBSCRIPTION: 'MONTHLY_NEWS_SUBSCRIPTION',
|
|
61
|
+
};
|
|
62
|
+
export const EmailValidationState = {
|
|
63
|
+
PENDING: 'PENDING',
|
|
64
|
+
VALIDATED: 'VALIDATED',
|
|
65
|
+
};
|
|
66
|
+
export const UserStatus = {
|
|
67
|
+
ACTIVE: 'ACTIVE',
|
|
68
|
+
REPORTED: 'REPORTED',
|
|
69
|
+
ARCHIVED: 'ARCHIVED',
|
|
70
|
+
};
|
|
71
|
+
export const UserRole = {
|
|
72
|
+
RESTRICTED: 'RESTRICTED',
|
|
73
|
+
GUEST: 'GUEST',
|
|
74
|
+
LIMITED: 'LIMITED',
|
|
75
|
+
REGULAR: 'REGULAR',
|
|
76
|
+
MANAGER: 'MANAGER',
|
|
77
|
+
ADMIN: 'ADMIN',
|
|
78
|
+
SUPER_ADMIN: 'SUPER_ADMIN',
|
|
79
|
+
};
|
|
80
|
+
export const SystemRole = {
|
|
81
|
+
GUEST: 'GUEST',
|
|
82
|
+
REGULAR: 'REGULAR',
|
|
83
|
+
MANAGER: 'MANAGER',
|
|
84
|
+
MASTER: 'MASTER',
|
|
85
|
+
ADMIN: 'ADMIN',
|
|
86
|
+
SUPER_ADMIN: 'SUPER_ADMIN',
|
|
87
|
+
};
|
|
88
|
+
export const TeamRole = {
|
|
89
|
+
RESTRICTED: 'RESTRICTED',
|
|
90
|
+
GUEST: 'GUEST',
|
|
91
|
+
REGULAR: 'REGULAR',
|
|
92
|
+
MANAGER: 'MANAGER',
|
|
93
|
+
ADMIN: 'ADMIN',
|
|
94
|
+
SUPER_ADMIN: 'SUPER_ADMIN',
|
|
95
|
+
};
|
|
96
|
+
export const CourseRole = {
|
|
97
|
+
RESTRICTED: 'RESTRICTED',
|
|
98
|
+
GUEST: 'GUEST',
|
|
99
|
+
REGULAR: 'REGULAR',
|
|
100
|
+
CREATOR: 'CREATOR',
|
|
101
|
+
SUPER_CREATOR: 'SUPER_CREATOR',
|
|
102
|
+
MANAGER: 'MANAGER',
|
|
103
|
+
MASTER: 'MASTER',
|
|
104
|
+
ADMIN: 'ADMIN',
|
|
105
|
+
SUPER_ADMIN: 'SUPER_ADMIN',
|
|
106
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CodeLanguage, TextLanguage } from './commons';
|
|
2
|
-
import { EntityMembers } from './entity';
|
|
3
|
-
import { ProblemTestCase } from './services';
|
|
1
|
+
import { CodeLanguage, TextLanguage } from './commons.js';
|
|
2
|
+
import { EntityMembers } from './entity.js';
|
|
3
|
+
import { ProblemTestCase } from './services.js';
|
|
4
4
|
export interface TestCase {
|
|
5
5
|
id: string;
|
|
6
6
|
group: number;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export var TypeTestCase;
|
|
2
|
+
(function (TypeTestCase) {
|
|
3
|
+
TypeTestCase["INPUT"] = "INPUT";
|
|
4
|
+
TypeTestCase["OUTPUT"] = "OUTPUT";
|
|
5
|
+
})(TypeTestCase || (TypeTestCase = {}));
|
|
6
|
+
export var ProblemInput;
|
|
7
|
+
(function (ProblemInput) {
|
|
8
|
+
ProblemInput["STANDARD"] = "STANDARD";
|
|
9
|
+
ProblemInput["INTERACTIVE"] = "INTERACTIVE";
|
|
10
|
+
})(ProblemInput || (ProblemInput = {}));
|
|
11
|
+
export var ProblemOutput;
|
|
12
|
+
(function (ProblemOutput) {
|
|
13
|
+
ProblemOutput["STANDARD"] = "STANDARD";
|
|
14
|
+
ProblemOutput["DYNAMIC"] = "DYNAMIC";
|
|
15
|
+
ProblemOutput["INTERACTIVE"] = "INTERACTIVE";
|
|
16
|
+
})(ProblemOutput || (ProblemOutput = {}));
|
|
17
|
+
export var ProblemType;
|
|
18
|
+
(function (ProblemType) {
|
|
19
|
+
ProblemType["STANDARD"] = "STANDARD";
|
|
20
|
+
ProblemType["DYNAMIC"] = "DYNAMIC";
|
|
21
|
+
ProblemType["INTERACTIVE"] = "INTERACTIVE";
|
|
22
|
+
})(ProblemType || (ProblemType = {}));
|
|
23
|
+
export var ProblemScoringMode;
|
|
24
|
+
(function (ProblemScoringMode) {
|
|
25
|
+
ProblemScoringMode["SUBTASK"] = "SUBTASK";
|
|
26
|
+
ProblemScoringMode["TOTAL"] = "TOTAL";
|
|
27
|
+
ProblemScoringMode["PARTIAL"] = "PARTIAL";
|
|
28
|
+
})(ProblemScoringMode || (ProblemScoringMode = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
export var ErrorCode;
|
|
2
|
+
(function (ErrorCode) {
|
|
3
|
+
// General errors
|
|
4
|
+
ErrorCode["ERR400"] = "ERR400";
|
|
5
|
+
ErrorCode["ERR401"] = "ERR401";
|
|
6
|
+
ErrorCode["ERR403"] = "ERR403";
|
|
7
|
+
ErrorCode["ERR404"] = "ERR404";
|
|
8
|
+
ErrorCode["ERR405"] = "ERR405";
|
|
9
|
+
ErrorCode["ERR500"] = "ERR500";
|
|
10
|
+
// UI general errors
|
|
11
|
+
ErrorCode["ERR9997"] = "ERR9997";
|
|
12
|
+
ErrorCode["ERR9998"] = "ERR9998";
|
|
13
|
+
ErrorCode["ERR9999"] = "ERR9999";
|
|
14
|
+
// User errors // 'unable update nickname yet', 'User not active'
|
|
15
|
+
ErrorCode["ERR0000"] = "ERR0000";
|
|
16
|
+
ErrorCode["ERR0010"] = "ERR0010";
|
|
17
|
+
ErrorCode["ERR0011"] = "ERR0011";
|
|
18
|
+
ErrorCode["ERR0012"] = "ERR0012";
|
|
19
|
+
ErrorCode["ERR0013"] = "ERR0013";
|
|
20
|
+
ErrorCode["ERR0014"] = "ERR0014";
|
|
21
|
+
ErrorCode["ERR0015"] = "ERR0015";
|
|
22
|
+
ErrorCode["ERR0016"] = "ERR0016";
|
|
23
|
+
ErrorCode["ERR0017"] = "ERR0017";
|
|
24
|
+
ErrorCode["ERR0018"] = "ERR0018";
|
|
25
|
+
ErrorCode["ERR0019"] = "ERR0019";
|
|
26
|
+
ErrorCode["ERR0020"] = "ERR0020";
|
|
27
|
+
ErrorCode["ERR0021"] = "ERR0021";
|
|
28
|
+
ErrorCode["ERR0022"] = "ERR0022";
|
|
29
|
+
ErrorCode["ERR0023"] = "ERR0023";
|
|
30
|
+
ErrorCode["ERR0024"] = "ERR0024";
|
|
31
|
+
ErrorCode["ERR0050"] = "ERR0050";
|
|
32
|
+
ErrorCode["ERR0051"] = "ERR0051";
|
|
33
|
+
ErrorCode["ERR0052"] = "ERR0052";
|
|
34
|
+
ErrorCode["ERR0053"] = "ERR0053";
|
|
35
|
+
// Problem Errors ERR01XX',
|
|
36
|
+
ErrorCode["ERR0100"] = "ERR0100";
|
|
37
|
+
ErrorCode["ERR0110"] = "ERR0110";
|
|
38
|
+
ErrorCode["ERR0111"] = "ERR0111";
|
|
39
|
+
ErrorCode["ERR0112"] = " ERR0112";
|
|
40
|
+
ErrorCode["ERR0113"] = "ERR0113";
|
|
41
|
+
ErrorCode["ERR0114"] = "ERR0114";
|
|
42
|
+
ErrorCode["ERR0115"] = "ERR0115";
|
|
43
|
+
ErrorCode["ERR0116"] = "ERR0116";
|
|
44
|
+
ErrorCode["ERR0117"] = "ERR0117";
|
|
45
|
+
ErrorCode["ERR0118"] = "ERR0118";
|
|
46
|
+
ErrorCode["ERR0119"] = "ERR0119";
|
|
47
|
+
ErrorCode["ERR0120"] = "ERR0120";
|
|
48
|
+
ErrorCode["ERR0121"] = "ERR0121";
|
|
49
|
+
ErrorCode["ERR0122"] = "ERR0122";
|
|
50
|
+
// Contest Errors ERR02XX',
|
|
51
|
+
ErrorCode["ERR0200"] = "ERR0200";
|
|
52
|
+
// CRUD contest
|
|
53
|
+
ErrorCode["ERR0210"] = "ERR0210";
|
|
54
|
+
ErrorCode["ERR0211"] = "ERR0211";
|
|
55
|
+
ErrorCode["ERR0212"] = "ERR0212";
|
|
56
|
+
ErrorCode["ERR0213"] = "ERR0213";
|
|
57
|
+
// permissions contest
|
|
58
|
+
ErrorCode["ERR0214"] = "ERR0214";
|
|
59
|
+
ErrorCode["ERR0215"] = "ERR0215";
|
|
60
|
+
ErrorCode["ERR0216"] = "ERR0216";
|
|
61
|
+
ErrorCode["ERR0217"] = "ERR0217";
|
|
62
|
+
ErrorCode["ERR0218"] = "ERR0218";
|
|
63
|
+
ErrorCode["ERR0219"] = "ERR0219";
|
|
64
|
+
ErrorCode["ERR0220"] = "ERR0220";
|
|
65
|
+
// CRUD scoreboard
|
|
66
|
+
ErrorCode["ERR0230"] = "ERR0230";
|
|
67
|
+
ErrorCode["ERR0231"] = "ERR0231";
|
|
68
|
+
ErrorCode["ERR0232"] = "ERR0232";
|
|
69
|
+
ErrorCode["ERR0233"] = "ERR0233";
|
|
70
|
+
// permissions scoreboard
|
|
71
|
+
ErrorCode["ERR0234"] = "ERR0234";
|
|
72
|
+
ErrorCode["ERR0235"] = "ERR0235";
|
|
73
|
+
ErrorCode["ERR0236"] = "ERR0236";
|
|
74
|
+
ErrorCode["ERR0237"] = "ERR0237";
|
|
75
|
+
ErrorCode["ERR0240"] = "ERR0240";
|
|
76
|
+
ErrorCode["ERR0241"] = "ERR0241";
|
|
77
|
+
ErrorCode["ERR0242"] = "ERR0242";
|
|
78
|
+
ErrorCode["ERR0243"] = "ERR0243";
|
|
79
|
+
ErrorCode["ERR0244"] = "ERR0244";
|
|
80
|
+
ErrorCode["ERR0245"] = "ERR0245";
|
|
81
|
+
ErrorCode["ERR0246"] = "ERR0246";
|
|
82
|
+
ErrorCode["ERR0247"] = "ERR0247";
|
|
83
|
+
// Submission Errors ERR03XXX',
|
|
84
|
+
ErrorCode["ERR0300"] = "ERR0300";
|
|
85
|
+
ErrorCode["ERR0301"] = "ERR0301";
|
|
86
|
+
ErrorCode["ERR0302"] = "ERR0302";
|
|
87
|
+
ErrorCode["ERR0303"] = "ERR0303";
|
|
88
|
+
ErrorCode["ERR0310"] = "ERR0310";
|
|
89
|
+
ErrorCode["ERR0311"] = "ERR0311";
|
|
90
|
+
ErrorCode["ERR0321"] = "ERR0321";
|
|
91
|
+
ErrorCode["ERR0331"] = "ERR0331";
|
|
92
|
+
// Utils Errors ERR04XX
|
|
93
|
+
ErrorCode["ERR0400"] = "ERR0400";
|
|
94
|
+
ErrorCode["ERR0410"] = "ERR0410";
|
|
95
|
+
ErrorCode["ERR0420"] = "ERR0420";
|
|
96
|
+
ErrorCode["ERR0421"] = "ERR0421";
|
|
97
|
+
ErrorCode["ERR0430"] = "ERR0430";
|
|
98
|
+
ErrorCode["ERR0440"] = "ERR0440";
|
|
99
|
+
// Team Errors ERR06XX
|
|
100
|
+
ErrorCode["ERR0600"] = "ERR0600";
|
|
101
|
+
ErrorCode["ERR0610"] = "ERR0610";
|
|
102
|
+
ErrorCode["ERR0611"] = "ERR0611";
|
|
103
|
+
ErrorCode["ERR0612"] = "ERR0612";
|
|
104
|
+
ErrorCode["ERR0613"] = "ERR0613";
|
|
105
|
+
ErrorCode["ERR0614"] = "ERR0614";
|
|
106
|
+
ErrorCode["ERR0615"] = "ERR0615";
|
|
107
|
+
ErrorCode["ERR0616"] = "ERR0665";
|
|
108
|
+
ErrorCode["ERR0617"] = "ERR0617";
|
|
109
|
+
ErrorCode["ERR0618"] = "ERR0618";
|
|
110
|
+
ErrorCode["ERR0619"] = "ERR0619";
|
|
111
|
+
// Course Errors ERR07XXX',
|
|
112
|
+
// Sheets Errors ERR08XXX',
|
|
113
|
+
ErrorCode["ERR0800"] = "ERR0800";
|
|
114
|
+
ErrorCode["ERR0810"] = "ERR0810";
|
|
115
|
+
ErrorCode["ERR0811"] = "ERR0811";
|
|
116
|
+
ErrorCode["ERR0812"] = "ERR0812";
|
|
117
|
+
ErrorCode["ERR0813"] = "ERR0813";
|
|
118
|
+
ErrorCode["ERR0814"] = "ERR0814";
|
|
119
|
+
ErrorCode["ERR0815"] = "ERR0815";
|
|
120
|
+
ErrorCode["ERR0816"] = "ERR0865";
|
|
121
|
+
ErrorCode["ERR0817"] = "ERR0817";
|
|
122
|
+
ErrorCode["ERR0818"] = "ERR0818";
|
|
123
|
+
ErrorCode["ERR0819"] = "ERR0819";
|
|
124
|
+
ErrorCode["ERR0820"] = "ERR0820";
|
|
125
|
+
// Organization Errors ERR99XXX',
|
|
126
|
+
ErrorCode["ERR9900"] = "ERR9900";
|
|
127
|
+
ErrorCode["ERR9910"] = "ERR9910";
|
|
128
|
+
ErrorCode["ERR9911"] = "ERR9911";
|
|
129
|
+
ErrorCode["ERR9912"] = "ERR9912";
|
|
130
|
+
ErrorCode["ERR9913"] = "ERR9913";
|
|
131
|
+
ErrorCode["ERR9914"] = "ERR9914";
|
|
132
|
+
ErrorCode["ERR9915"] = "ERR9915";
|
|
133
|
+
ErrorCode["ERR9916"] = "ERR9916";
|
|
134
|
+
ErrorCode["ERR9917"] = "ERR9917";
|
|
135
|
+
})(ErrorCode || (ErrorCode = {}));
|
|
136
|
+
export var LogLevel;
|
|
137
|
+
(function (LogLevel) {
|
|
138
|
+
LogLevel["FATAL"] = "FATAL";
|
|
139
|
+
LogLevel["ERROR"] = "ERROR";
|
|
140
|
+
LogLevel["WARN"] = "WARN";
|
|
141
|
+
LogLevel["INFO"] = "INFO";
|
|
142
|
+
LogLevel["DEBUG"] = "DEBUG";
|
|
143
|
+
LogLevel["TRACE"] = "TRACE";
|
|
144
|
+
})(LogLevel || (LogLevel = {}));
|
|
145
|
+
export var HTTPMethod;
|
|
146
|
+
(function (HTTPMethod) {
|
|
147
|
+
HTTPMethod["POST"] = "POST";
|
|
148
|
+
HTTPMethod["GET"] = "GET";
|
|
149
|
+
HTTPMethod["PUT"] = "PUT";
|
|
150
|
+
HTTPMethod["PATCH"] = "PATCH";
|
|
151
|
+
HTTPMethod["DELETE"] = "DELETE";
|
|
152
|
+
})(HTTPMethod || (HTTPMethod = {}));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CodeLanguage } from './commons';
|
|
2
|
-
import { SubmissionRunStatus } from './judge';
|
|
1
|
+
import { CodeLanguage } from './commons.js';
|
|
2
|
+
import { SubmissionRunStatus } from './judge.js';
|
|
3
3
|
export declare enum WorksheetType {
|
|
4
4
|
JK_MD = "JK_MD",
|
|
5
5
|
CODE_EDITOR = "CODE_EDITOR",
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export var WorksheetType;
|
|
2
|
+
(function (WorksheetType) {
|
|
3
|
+
WorksheetType["JK_MD"] = "JK_MD";
|
|
4
|
+
WorksheetType["CODE_EDITOR"] = "CODE_EDITOR";
|
|
5
|
+
WorksheetType["LIST"] = "LIST";
|
|
6
|
+
WorksheetType["GRAPH"] = "GRAPH";
|
|
7
|
+
WorksheetType["QUIZ_PROBLEM"] = "QUIZ_PROBLEM";
|
|
8
|
+
WorksheetType["QUIZ_TEXT"] = "QUIZ_TEXT";
|
|
9
|
+
WorksheetType["QUIZ_OPTIONS"] = "QUIZ_OPTIONS";
|
|
10
|
+
WorksheetType["NEW_PAGE"] = "NEW_PAGE";
|
|
11
|
+
})(WorksheetType || (WorksheetType = {}));
|
|
12
|
+
export var QuizScoringMode;
|
|
13
|
+
(function (QuizScoringMode) {
|
|
14
|
+
QuizScoringMode["TOTAL"] = "TOTAL";
|
|
15
|
+
QuizScoringMode["PARTIAL"] = "PARTIAL";
|
|
16
|
+
})(QuizScoringMode || (QuizScoringMode = {}));
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { RecordId } from './commons';
|
|
1
|
+
import { RecordId } from './commons.js';
|
|
2
2
|
/**
|
|
3
3
|
* Subscriptions of the client. With the TOPIC channels they are not sent to the server anymore:
|
|
4
4
|
* they only say which channel the client attaches (`getChannelOfWebSocketSubscribeEvent`) and the dispatch key.
|
|
@@ -64,7 +64,8 @@ export declare enum ProblemChannelRole {
|
|
|
64
64
|
SPECTATORS = "spectators"
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Roles of the public channels of a user: `user:{
|
|
67
|
+
* Roles of the public channels of a user: `user:{userKey}:{role}` (see `CHANNEL_USER_ROLE`), by its public key
|
|
68
|
+
* (`getUserKey(nickname, organizationKey)`) like problems and contests.
|
|
68
69
|
* There are no per-user permissions: `spectators` is everyone who can list the submissions of the user.
|
|
69
70
|
* The private channel of the user is `user:{userId}` (see `CHANNEL_USER`).
|
|
70
71
|
*/
|