@juki-team/commons 0.1.32 → 0.1.41
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/cjs/index.cjs +3567 -0
- package/dist/esm/index.js +3347 -0
- package/dist/{constants → types/constants}/commons.d.ts +8 -8
- package/dist/{constants → types/constants}/company.d.ts +3 -3
- package/dist/{constants → types/constants}/contest.d.ts +3 -3
- package/dist/{constants → types/constants}/course.d.ts +2 -2
- package/dist/{constants → types/constants}/entity.d.ts +1 -1
- package/dist/{constants → types/constants}/file.d.ts +5 -6
- package/dist/types/constants/index.d.ts +18 -0
- package/dist/{constants → types/constants}/judge.d.ts +9 -11
- package/dist/{constants → types/constants}/problem.d.ts +8 -9
- package/dist/types/constants/services.d.ts +8 -0
- package/dist/{constants → types/constants}/system.d.ts +2 -2
- package/dist/{constants → types/constants}/teams.d.ts +3 -4
- package/dist/types/constants/user.d.ts +16 -0
- package/dist/{constants → types/constants}/websocket.d.ts +1 -1
- package/dist/{constants → types/constants}/worksheet.d.ts +2 -2
- package/dist/{dto → types/dto}/class.d.ts +4 -4
- package/dist/{dto → types/dto}/code.d.ts +1 -1
- package/dist/{dto → types/dto}/comments.d.ts +3 -3
- package/dist/types/dto/company.d.ts +67 -0
- package/dist/{dto → types/dto}/contest.d.ts +8 -9
- package/dist/{dto → types/dto}/course.d.ts +5 -5
- package/dist/{dto → types/dto}/entity.d.ts +3 -3
- package/dist/{dto → types/dto}/excalidraw.d.ts +4 -4
- package/dist/{dto → types/dto}/file.d.ts +2 -2
- package/dist/types/dto/index.d.ts +25 -0
- package/dist/{dto → types/dto}/judge.d.ts +1 -1
- package/dist/{dto → types/dto}/markdown.d.ts +4 -4
- package/dist/{dto → types/dto}/mermaid.d.ts +4 -4
- package/dist/{dto → types/dto}/problem.d.ts +4 -5
- package/dist/{dto → types/dto}/scoreboard.d.ts +1 -1
- package/dist/{dto → types/dto}/session.d.ts +2 -2
- package/dist/{dto → types/dto}/socket.d.ts +7 -8
- package/dist/{dto → types/dto}/statistics.d.ts +2 -2
- package/dist/{dto → types/dto}/submission.d.ts +4 -5
- package/dist/{dto → types/dto}/system.d.ts +18 -18
- package/dist/{dto → types/dto}/user.d.ts +14 -14
- package/dist/{dto → types/dto}/virtual-user.d.ts +1 -2
- package/dist/{dto → types/dto}/worksheet-submissions.d.ts +4 -4
- package/dist/{dto → types/dto}/worksheet.d.ts +4 -4
- package/dist/{helpers → types/helpers}/class.d.ts +1 -1
- package/dist/{helpers → types/helpers}/commons.d.ts +11 -9
- package/dist/{helpers → types/helpers}/contest.d.ts +1 -1
- package/dist/{helpers → types/helpers}/document.d.ts +2 -2
- package/dist/types/helpers/index.d.ts +14 -0
- package/dist/types/helpers/interval.d.ts +2 -0
- package/dist/{helpers → types/helpers}/judging.d.ts +2 -3
- package/dist/types/helpers/object.d.ts +1 -0
- package/dist/types/helpers/responses.d.ts +8 -0
- package/dist/types/helpers/socket.d.ts +45 -0
- package/dist/{helpers → types/helpers}/time.d.ts +1 -1
- package/dist/{helpers → types/helpers}/user.d.ts +1 -1
- package/dist/types/helpers/worksheet.d.ts +10 -0
- package/dist/types/index.d.ts +5 -23
- package/dist/{prototypes → types/prototypes}/Error.d.ts +3 -3
- package/dist/types/prototypes/Number.d.ts +7 -0
- package/dist/types/prototypes/index.d.ts +3 -0
- package/dist/types/{class.d.ts → types/class.d.ts} +2 -2
- package/dist/types/{commons.d.ts → types/commons.d.ts} +3 -3
- package/dist/types/types/company.d.ts +29 -0
- package/dist/types/{contest.d.ts → types/contest.d.ts} +26 -9
- package/dist/types/{course.d.ts → types/course.d.ts} +1 -1
- package/dist/types/{entity.d.ts → types/entity.d.ts} +4 -4
- package/dist/types/{excalidraw.d.ts → types/excalidraw.d.ts} +3 -3
- package/dist/types/{file.d.ts → types/file.d.ts} +9 -4
- package/dist/types/{group.d.ts → types/group.d.ts} +5 -2
- package/dist/types/types/index.d.ts +25 -0
- package/dist/types/{judge.d.ts → types/judge.d.ts} +32 -3
- package/dist/types/{markdown.d.ts → types/markdown.d.ts} +1 -1
- package/dist/types/{mermaid.d.ts → types/mermaid.d.ts} +1 -1
- package/dist/types/types/prisma.d.ts +284 -0
- package/dist/types/{problems.d.ts → types/problems.d.ts} +13 -4
- package/dist/types/types/services.d.ts +213 -0
- package/dist/types/{sheet.d.ts → types/sheet.d.ts} +2 -3
- package/dist/types/{socket.d.ts → types/socket.d.ts} +3 -3
- package/dist/types/{teams.d.ts → types/teams.d.ts} +2 -25
- package/dist/types/{users.d.ts → types/users.d.ts} +4 -10
- package/dist/types/types/virtual-user.d.ts +7 -0
- package/dist/types/{worksheet.d.ts → types/worksheet.d.ts} +3 -3
- package/package.json +27 -22
- package/biome.shared.json +0 -102
- package/dist/constants/commons.js +0 -658
- package/dist/constants/company.js +0 -24
- package/dist/constants/contest.js +0 -29
- package/dist/constants/course.js +0 -12
- package/dist/constants/date.js +0 -23
- package/dist/constants/email.js +0 -34
- package/dist/constants/entity.js +0 -18
- package/dist/constants/file.js +0 -46
- package/dist/constants/index.d.ts +0 -18
- package/dist/constants/index.js +0 -18
- package/dist/constants/judge.js +0 -221
- package/dist/constants/problem.js +0 -72
- package/dist/constants/routing.js +0 -7
- package/dist/constants/services.d.ts +0 -5
- package/dist/constants/services.js +0 -131
- package/dist/constants/system.js +0 -9
- package/dist/constants/teams.js +0 -18
- package/dist/constants/time.js +0 -9
- package/dist/constants/user.d.ts +0 -10
- package/dist/constants/user.js +0 -35
- package/dist/constants/websocket.js +0 -5
- package/dist/constants/worksheet.js +0 -66
- package/dist/dto/class.js +0 -1
- package/dist/dto/code.js +0 -1
- package/dist/dto/comments.js +0 -1
- package/dist/dto/contest.js +0 -7
- package/dist/dto/course.js +0 -1
- package/dist/dto/entity.js +0 -5
- package/dist/dto/excalidraw.js +0 -1
- package/dist/dto/file.js +0 -1
- package/dist/dto/image.js +0 -1
- package/dist/dto/index.d.ts +0 -24
- package/dist/dto/index.js +0 -24
- package/dist/dto/judge.js +0 -1
- package/dist/dto/markdown.js +0 -1
- package/dist/dto/mermaid.js +0 -1
- package/dist/dto/organization.d.ts +0 -102
- package/dist/dto/organization.js +0 -1
- package/dist/dto/problem.js +0 -1
- package/dist/dto/scoreboard.js +0 -1
- package/dist/dto/session.js +0 -1
- package/dist/dto/socket.js +0 -1
- package/dist/dto/statistics.js +0 -1
- package/dist/dto/submission.js +0 -1
- package/dist/dto/system.js +0 -1
- package/dist/dto/url.js +0 -1
- package/dist/dto/user.js +0 -1
- package/dist/dto/virtual-user.js +0 -1
- package/dist/dto/worksheet-submissions.js +0 -1
- package/dist/dto/worksheet.js +0 -1
- package/dist/helpers/class.js +0 -10
- package/dist/helpers/comments.js +0 -4
- package/dist/helpers/commons.js +0 -191
- package/dist/helpers/contest.js +0 -21
- package/dist/helpers/document.js +0 -38
- package/dist/helpers/file.js +0 -4
- package/dist/helpers/index.d.ts +0 -14
- package/dist/helpers/index.js +0 -14
- package/dist/helpers/interval.d.ts +0 -2
- package/dist/helpers/interval.js +0 -22
- package/dist/helpers/judging.js +0 -107
- package/dist/helpers/object.d.ts +0 -1
- package/dist/helpers/object.js +0 -32
- package/dist/helpers/responses.d.ts +0 -8
- package/dist/helpers/responses.js +0 -78
- package/dist/helpers/socket.d.ts +0 -45
- package/dist/helpers/socket.js +0 -238
- package/dist/helpers/time.js +0 -101
- package/dist/helpers/user.js +0 -14
- package/dist/helpers/worksheet.d.ts +0 -10
- package/dist/helpers/worksheet.js +0 -131
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -6
- package/dist/prisma/enums/AssignmentClassType.d.ts +0 -7
- package/dist/prisma/enums/AssignmentClassType.js +0 -6
- package/dist/prisma/enums/ContestEventAction.d.ts +0 -10
- package/dist/prisma/enums/ContestEventAction.js +0 -9
- package/dist/prisma/enums/ContestProblemPrerequisiteType.d.ts +0 -5
- package/dist/prisma/enums/ContestProblemPrerequisiteType.js +0 -4
- package/dist/prisma/enums/ContestRole.d.ts +0 -11
- package/dist/prisma/enums/ContestRole.js +0 -10
- package/dist/prisma/enums/ContestStatus.d.ts +0 -6
- package/dist/prisma/enums/ContestStatus.js +0 -5
- package/dist/prisma/enums/CourseRole.d.ts +0 -12
- package/dist/prisma/enums/CourseRole.js +0 -11
- package/dist/prisma/enums/EntityObjectType.d.ts +0 -13
- package/dist/prisma/enums/EntityObjectType.js +0 -12
- package/dist/prisma/enums/EntityRole.d.ts +0 -8
- package/dist/prisma/enums/EntityRole.js +0 -7
- package/dist/prisma/enums/EntitySubjectType.d.ts +0 -7
- package/dist/prisma/enums/EntitySubjectType.js +0 -6
- package/dist/prisma/enums/FileRole.d.ts +0 -9
- package/dist/prisma/enums/FileRole.js +0 -8
- package/dist/prisma/enums/FileType.d.ts +0 -5
- package/dist/prisma/enums/FileType.js +0 -4
- package/dist/prisma/enums/GroupType.d.ts +0 -5
- package/dist/prisma/enums/GroupType.js +0 -4
- package/dist/prisma/enums/JudgeType.d.ts +0 -12
- package/dist/prisma/enums/JudgeType.js +0 -11
- package/dist/prisma/enums/OrganizationPlan.d.ts +0 -7
- package/dist/prisma/enums/OrganizationPlan.js +0 -6
- package/dist/prisma/enums/ProblemRole.d.ts +0 -11
- package/dist/prisma/enums/ProblemRole.js +0 -10
- package/dist/prisma/enums/ProblemScoringMode.d.ts +0 -6
- package/dist/prisma/enums/ProblemScoringMode.js +0 -5
- package/dist/prisma/enums/ProblemType.d.ts +0 -6
- package/dist/prisma/enums/ProblemType.js +0 -5
- package/dist/prisma/enums/ProblemVerdict.d.ts +0 -14
- package/dist/prisma/enums/ProblemVerdict.js +0 -13
- package/dist/prisma/enums/ShareLinkVisibility.d.ts +0 -5
- package/dist/prisma/enums/ShareLinkVisibility.js +0 -4
- package/dist/prisma/enums/SubmissionRunStatus.d.ts +0 -18
- package/dist/prisma/enums/SubmissionRunStatus.js +0 -17
- package/dist/prisma/enums/SystemRole.d.ts +0 -9
- package/dist/prisma/enums/SystemRole.js +0 -8
- package/dist/prisma/enums/TeamRole.d.ts +0 -9
- package/dist/prisma/enums/TeamRole.js +0 -8
- package/dist/prisma/enums/TelemetryType.d.ts +0 -9
- package/dist/prisma/enums/TelemetryType.js +0 -8
- package/dist/prisma/enums/UserRole.d.ts +0 -10
- package/dist/prisma/enums/UserRole.js +0 -9
- package/dist/prisma/enums/WorkingIn.d.ts +0 -8
- package/dist/prisma/enums/WorkingIn.js +0 -7
- package/dist/prisma/enums/WorksheetContentType.d.ts +0 -10
- package/dist/prisma/enums/WorksheetContentType.js +0 -9
- package/dist/prisma/enums/index.d.ts +0 -26
- package/dist/prisma/enums/index.js +0 -26
- package/dist/prototypes/Date.js +0 -218
- package/dist/prototypes/Error.js +0 -17
- package/dist/prototypes/Number.d.ts +0 -7
- package/dist/prototypes/Number.js +0 -8
- package/dist/prototypes/index.d.ts +0 -3
- package/dist/prototypes/index.js +0 -3
- package/dist/types/account.js +0 -10
- package/dist/types/class.js +0 -7
- package/dist/types/comments.js +0 -1
- package/dist/types/commons.js +0 -69
- package/dist/types/company.d.ts +0 -6
- package/dist/types/company.js +0 -7
- package/dist/types/contest.js +0 -6
- package/dist/types/course.js +0 -1
- package/dist/types/entity.js +0 -50
- package/dist/types/excalidraw.js +0 -1
- package/dist/types/file.js +0 -13
- package/dist/types/group.js +0 -1
- package/dist/types/index.js +0 -23
- package/dist/types/judge.js +0 -17
- package/dist/types/markdown.js +0 -1
- package/dist/types/mermaid.js +0 -1
- package/dist/types/notification.js +0 -8
- package/dist/types/problems.js +0 -16
- package/dist/types/services.d.ts +0 -214
- package/dist/types/services.js +0 -147
- package/dist/types/sheet.js +0 -16
- package/dist/types/socket.js +0 -49
- package/dist/types/submission.js +0 -1
- package/dist/types/teams.js +0 -28
- package/dist/types/users.js +0 -33
- package/dist/types/worksheet.js +0 -11
- /package/dist/{constants → types/constants}/date.d.ts +0 -0
- /package/dist/{constants → types/constants}/email.d.ts +0 -0
- /package/dist/{constants → types/constants}/routing.d.ts +0 -0
- /package/dist/{constants → types/constants}/time.d.ts +0 -0
- /package/dist/{dto → types/dto}/image.d.ts +0 -0
- /package/dist/{dto → types/dto}/url.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/comments.d.ts +0 -0
- /package/dist/{helpers → types/helpers}/file.d.ts +0 -0
- /package/dist/{prototypes → types/prototypes}/Date.d.ts +0 -0
- /package/dist/types/{account.d.ts → types/account.d.ts} +0 -0
- /package/dist/types/{comments.d.ts → types/comments.d.ts} +0 -0
- /package/dist/types/{notification.d.ts → types/notification.d.ts} +0 -0
- /package/dist/types/{submission.d.ts → types/submission.d.ts} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { CodeLanguage, Language, Theme } from '../types
|
|
1
|
+
import { CodeLanguage, Language, Theme } from '../types';
|
|
2
2
|
export declare const LANGUAGE: {
|
|
3
|
-
[
|
|
3
|
+
[key in Language]: {
|
|
4
4
|
value: Language;
|
|
5
5
|
label: string;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
export declare const THEME: {
|
|
9
|
-
[
|
|
9
|
+
[key in Theme]: {
|
|
10
10
|
value: Theme;
|
|
11
11
|
label: string;
|
|
12
12
|
};
|
|
@@ -28,23 +28,23 @@ export type CodeLanguageMeta = {
|
|
|
28
28
|
highlightJsKey: string;
|
|
29
29
|
};
|
|
30
30
|
export declare const CODE_LANGUAGE: {
|
|
31
|
-
[
|
|
31
|
+
[key in CodeLanguage]: CodeLanguageMeta;
|
|
32
32
|
};
|
|
33
33
|
export declare const PAGE_SIZES: string[];
|
|
34
34
|
export declare const PALLETE: {
|
|
35
|
-
|
|
35
|
+
VIVOS: {
|
|
36
36
|
color: string;
|
|
37
37
|
title: string;
|
|
38
38
|
}[];
|
|
39
|
-
|
|
39
|
+
OSCUROS: {
|
|
40
40
|
color: string;
|
|
41
41
|
title: string;
|
|
42
42
|
}[];
|
|
43
|
-
|
|
43
|
+
AGRISADOS: {
|
|
44
44
|
color: string;
|
|
45
45
|
title: string;
|
|
46
46
|
}[];
|
|
47
|
-
|
|
47
|
+
CLAROS: {
|
|
48
48
|
color: string;
|
|
49
49
|
title: string;
|
|
50
50
|
}[];
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CompanyPlan } from '../types/company';
|
|
2
2
|
export declare const JUKI_APP_COMPANY_KEY = "juki-app";
|
|
3
3
|
export declare const COMPANY_PLAN: {
|
|
4
|
-
[
|
|
5
|
-
value:
|
|
4
|
+
[key in CompanyPlan]: {
|
|
5
|
+
value: CompanyPlan;
|
|
6
6
|
label: string;
|
|
7
7
|
description: string;
|
|
8
8
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ContestRole, ContestStatus } from '../types';
|
|
2
2
|
export declare const CONTEST_STATUS: {
|
|
3
|
-
[
|
|
3
|
+
[key in ContestStatus]: {
|
|
4
4
|
value: ContestStatus;
|
|
5
5
|
label: string;
|
|
6
6
|
description: string;
|
|
7
7
|
};
|
|
8
8
|
};
|
|
9
9
|
export declare const CONTEST_ROLE: {
|
|
10
|
-
[
|
|
10
|
+
[key in ContestRole]: {
|
|
11
11
|
value: ContestRole;
|
|
12
12
|
label: string;
|
|
13
13
|
level: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DocumentMembersResponseDTO, EntityMembersResponseDTO } from '../dto';
|
|
2
2
|
export declare const EMPTY_DOCUMENT_MEMBERS: () => DocumentMembersResponseDTO;
|
|
3
3
|
export declare const EMPTY_ENTITY_MEMBERS: () => EntityMembersResponseDTO;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { EntityAccess, EntityState } from '../types/index.js';
|
|
1
|
+
import { EntityAccess, EntityState, FileRole, FileType } from '../types';
|
|
3
2
|
export declare const FILE_TYPE: {
|
|
4
|
-
[
|
|
3
|
+
[key in FileType]: {
|
|
5
4
|
value: FileType;
|
|
6
5
|
label: string;
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
export declare const FILE_ROLE: {
|
|
10
|
-
[
|
|
9
|
+
[key in FileRole]: {
|
|
11
10
|
value: FileRole;
|
|
12
11
|
label: string;
|
|
13
12
|
level: number;
|
|
14
13
|
};
|
|
15
14
|
};
|
|
16
15
|
export declare const ENTITY_STATE: {
|
|
17
|
-
[
|
|
16
|
+
[key in EntityState]: {
|
|
18
17
|
value: EntityState;
|
|
19
18
|
label: string;
|
|
20
19
|
};
|
|
21
20
|
};
|
|
22
21
|
export declare const ENTITY_ACCESS: {
|
|
23
|
-
[
|
|
22
|
+
[key in EntityAccess]: {
|
|
24
23
|
value: EntityAccess;
|
|
25
24
|
label: string;
|
|
26
25
|
description: string;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export * from './commons';
|
|
2
|
+
export * from './company';
|
|
3
|
+
export * from './contest';
|
|
4
|
+
export * from './course';
|
|
5
|
+
export * from './date';
|
|
6
|
+
export * from './email';
|
|
7
|
+
export * from './entity';
|
|
8
|
+
export * from './judge';
|
|
9
|
+
export * from './problem';
|
|
10
|
+
export * from './routing';
|
|
11
|
+
export * from './services';
|
|
12
|
+
export * from './file';
|
|
13
|
+
export * from './system';
|
|
14
|
+
export * from './teams';
|
|
15
|
+
export * from './time';
|
|
16
|
+
export * from './user';
|
|
17
|
+
export * from './websocket';
|
|
18
|
+
export * from './worksheet';
|
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
value: JudgeType;
|
|
1
|
+
import { CodeLanguage, Judge, ProblemScoringMode, ProblemType, ProblemVerdict, RunnerType, SubmissionRunStatus } from '../types';
|
|
2
|
+
export type JudgeType = {
|
|
3
|
+
[key in Judge]: {
|
|
4
|
+
value: Judge;
|
|
6
5
|
label: string;
|
|
7
6
|
logo: string;
|
|
8
7
|
logoSize: [number, number];
|
|
9
8
|
url: string;
|
|
10
9
|
};
|
|
11
10
|
};
|
|
12
|
-
export declare const JUDGE:
|
|
11
|
+
export declare const JUDGE: JudgeType;
|
|
13
12
|
export declare const RUNNER_ACCEPTED_PROBLEM_MODES: ProblemScoringMode[];
|
|
14
13
|
export declare const RUNNER_ACCEPTED_PROBLEM_TYPES: ProblemType[];
|
|
15
14
|
export declare const RUNNER_ACCEPTED_PROGRAMMING_LANGUAGES: CodeLanguage[];
|
|
16
15
|
export declare const ACCEPTED_PROGRAMMING_LANGUAGES: CodeLanguage[];
|
|
17
16
|
export declare const PROBLEM_VERDICT: {
|
|
18
|
-
[
|
|
17
|
+
[key in ProblemVerdict]: {
|
|
19
18
|
value: ProblemVerdict;
|
|
20
19
|
label: string;
|
|
21
20
|
color: string;
|
|
22
21
|
};
|
|
23
22
|
};
|
|
24
|
-
export declare const PROBLEM_VERDICTS:
|
|
23
|
+
export declare const PROBLEM_VERDICTS: ProblemVerdict[];
|
|
25
24
|
export declare const SUBMISSION_RUN_STATUS: {
|
|
26
|
-
[
|
|
25
|
+
[key in SubmissionRunStatus]: {
|
|
27
26
|
value: SubmissionRunStatus;
|
|
28
27
|
label: string;
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
30
|
export declare const RUNNER_TYPE: {
|
|
32
|
-
[
|
|
31
|
+
[key in RunnerType]: {
|
|
33
32
|
value: RunnerType;
|
|
34
33
|
label: string;
|
|
35
34
|
};
|
|
36
35
|
};
|
|
37
|
-
export {};
|
|
@@ -1,35 +1,34 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ProblemInput, ProblemOutput } from '../types/index.js';
|
|
1
|
+
import { ProblemInput, ProblemOutput, ProblemRole, ProblemScoringMode, ProblemType } from '../types';
|
|
3
2
|
export declare const PROBLEM_INPUT: {
|
|
4
|
-
[
|
|
3
|
+
[key in ProblemInput]: {
|
|
5
4
|
value: ProblemInput;
|
|
6
5
|
label: string;
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
export declare const PROBLEM_OUTPUT: {
|
|
10
|
-
[
|
|
9
|
+
[key in ProblemOutput]: {
|
|
11
10
|
value: ProblemOutput;
|
|
12
11
|
label: string;
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
|
-
export declare const PROBLEM_MODES:
|
|
14
|
+
export declare const PROBLEM_MODES: ProblemScoringMode[];
|
|
16
15
|
export declare const PROBLEM_MODE: {
|
|
17
|
-
[
|
|
16
|
+
[key in ProblemScoringMode]: {
|
|
18
17
|
value: ProblemScoringMode;
|
|
19
18
|
label: string;
|
|
20
19
|
description: string;
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
|
-
export declare const PROBLEM_TYPES:
|
|
22
|
+
export declare const PROBLEM_TYPES: ProblemType[];
|
|
24
23
|
export declare const PROBLEM_TYPE: {
|
|
25
|
-
[
|
|
24
|
+
[key in ProblemType]: {
|
|
26
25
|
value: ProblemType;
|
|
27
26
|
label: string;
|
|
28
27
|
description: string;
|
|
29
28
|
};
|
|
30
29
|
};
|
|
31
30
|
export declare const PROBLEM_ROLE: {
|
|
32
|
-
[
|
|
31
|
+
[key in ProblemRole]: {
|
|
33
32
|
value: ProblemRole;
|
|
34
33
|
label: string;
|
|
35
34
|
level: number;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { TeamRole } from '../
|
|
2
|
-
import { MemberRole } from '../types/index.js';
|
|
1
|
+
import { MemberRole, TeamRole } from '../types';
|
|
3
2
|
export declare const MEMBER_ROLE: {
|
|
4
|
-
[
|
|
3
|
+
[key in MemberRole]: {
|
|
5
4
|
value: MemberRole;
|
|
6
5
|
label: string;
|
|
7
6
|
};
|
|
8
7
|
};
|
|
9
8
|
export declare const TEAM_ROLE: {
|
|
10
|
-
[
|
|
9
|
+
[key in TeamRole]: {
|
|
11
10
|
value: TeamRole;
|
|
12
11
|
label: string;
|
|
13
12
|
level: number;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { UserPermissions } from '../dto';
|
|
2
|
+
import { UserRole, UserStatus } from '../types';
|
|
3
|
+
export declare const USER_STATUS: {
|
|
4
|
+
[key in UserStatus]: {
|
|
5
|
+
value: UserStatus;
|
|
6
|
+
label: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const USER_ROLE: {
|
|
10
|
+
[key in UserRole]: {
|
|
11
|
+
value: UserRole;
|
|
12
|
+
label: string;
|
|
13
|
+
level: number;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const EMPTY_USER_PERMISSIONS: UserPermissions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ClientId } from '../types';
|
|
2
2
|
export declare const CHANNEL_PUBLISH_SUBSCRIPTIONS = "pub:subscriptions";
|
|
3
3
|
export declare const CHANNEL_SUBSCRIBE_NOTIFICATIONS = "sub:notifications";
|
|
4
4
|
export declare const CHANNEL_SUBSCRIBE_CLIENT: (clientId: ClientId) => string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { AspectRatio,
|
|
1
|
+
import { AspectRatio, NewPageSheet } from '../types';
|
|
2
2
|
export declare const NEW_PAGE_SHEET: () => NewPageSheet;
|
|
3
3
|
export declare const ASPECT_RATIO: {
|
|
4
|
-
[
|
|
4
|
+
[key in AspectRatio]: {
|
|
5
5
|
aspectRatio: AspectRatio;
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { AssignmentBasicInfo, AssignmentClass, ClassBaseDocument, ClassCycleTag, EntityState } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersResponseDTO } from './entity';
|
|
3
|
+
import { UserCompanyBasicInfoResponseDTO, UserSummaryListResponseDTO } from './user';
|
|
4
4
|
interface ClassUserResponseDTO {
|
|
5
5
|
isOwner: boolean;
|
|
6
6
|
isManager: boolean;
|
|
@@ -13,7 +13,7 @@ export interface ClassSummaryListResponseDTO {
|
|
|
13
13
|
name: string;
|
|
14
14
|
description: string;
|
|
15
15
|
state: EntityState;
|
|
16
|
-
owner:
|
|
16
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
17
17
|
user: ClassUserResponseDTO;
|
|
18
18
|
}
|
|
19
19
|
export interface ContestAssignmentSessionCycleClassDataResponseDTO extends AssignmentBasicInfo {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { UserCompanyBasicInfoResponseDTO } from './user';
|
|
2
2
|
export type ReactionUserResponseData = {
|
|
3
3
|
key: string;
|
|
4
|
-
user:
|
|
4
|
+
user: UserCompanyBasicInfoResponseDTO;
|
|
5
5
|
createdTimestamp: number;
|
|
6
6
|
updatedTimestamp: number;
|
|
7
7
|
};
|
|
8
8
|
export interface CommentDataResponseDTO {
|
|
9
9
|
id: string;
|
|
10
10
|
content: string;
|
|
11
|
-
user:
|
|
11
|
+
user: UserCompanyBasicInfoResponseDTO;
|
|
12
12
|
hidden: boolean;
|
|
13
13
|
reactions: {
|
|
14
14
|
[key: string]: {
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { CompanyPlan, ResourceInstance, ResourceLogger, Theme } from '../types';
|
|
2
|
+
import { EmailDataResponseDTO } from './system';
|
|
3
|
+
import { UserCompanyBasicInfoResponseDTO, UserPermissions } from './user';
|
|
4
|
+
export interface CompanyJudgeResponseDTO {
|
|
5
|
+
key: string;
|
|
6
|
+
name: string;
|
|
7
|
+
keyPrefix: string;
|
|
8
|
+
}
|
|
9
|
+
export interface CompanyTrustedCompanyResponseDTO {
|
|
10
|
+
key: string;
|
|
11
|
+
name: string;
|
|
12
|
+
}
|
|
13
|
+
export interface CompanyResponseDTO extends EmailDataResponseDTO {
|
|
14
|
+
name: string;
|
|
15
|
+
key: string;
|
|
16
|
+
hosts: string[];
|
|
17
|
+
imageUrl: string;
|
|
18
|
+
managerUser: UserCompanyBasicInfoResponseDTO;
|
|
19
|
+
systemAdminUser: UserCompanyBasicInfoResponseDTO;
|
|
20
|
+
plan: CompanyPlan;
|
|
21
|
+
startTimestamp: number;
|
|
22
|
+
judges: CompanyJudgeResponseDTO[];
|
|
23
|
+
trustedCompanies: CompanyTrustedCompanyResponseDTO[];
|
|
24
|
+
styles: CompanyStyles;
|
|
25
|
+
}
|
|
26
|
+
export interface CompanyUserPermissionsResponseDTO extends CompanyResponseDTO {
|
|
27
|
+
userPermissions: UserPermissions;
|
|
28
|
+
contactEmail: string;
|
|
29
|
+
contactCellPhoneNumber: string;
|
|
30
|
+
contactTelegram: string;
|
|
31
|
+
}
|
|
32
|
+
export interface CompanyResourceSpecificationsResponseDTO {
|
|
33
|
+
logger: ResourceLogger;
|
|
34
|
+
runnerInstance: ResourceInstance;
|
|
35
|
+
runnerListener: {
|
|
36
|
+
taskDefinition: string;
|
|
37
|
+
minimum: number;
|
|
38
|
+
maximum: number;
|
|
39
|
+
};
|
|
40
|
+
highPerformanceRunner: {
|
|
41
|
+
taskDefinition: string;
|
|
42
|
+
minimum: number;
|
|
43
|
+
maximum: number;
|
|
44
|
+
};
|
|
45
|
+
lowPerformanceRunner: {
|
|
46
|
+
taskDefinition: string;
|
|
47
|
+
minimum: number;
|
|
48
|
+
maximum: number;
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
export type CompanyStyles = Record<Theme, {
|
|
52
|
+
body: {
|
|
53
|
+
backgroundColor: string;
|
|
54
|
+
backgroundColorHighlight: string;
|
|
55
|
+
textColor: string;
|
|
56
|
+
textColorHighlight: string;
|
|
57
|
+
textColorHighlightInset: string;
|
|
58
|
+
accentColor: string;
|
|
59
|
+
accentColorInset: string;
|
|
60
|
+
};
|
|
61
|
+
navbar: {
|
|
62
|
+
textColor: string;
|
|
63
|
+
backgroundColor: string;
|
|
64
|
+
logoTheme: Theme;
|
|
65
|
+
accentColor: string;
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import type { EntityOwnerSystemSummaryListResponseDTO, UserOrganizationBasicInfoResponseDTO } from './user.js';
|
|
1
|
+
import { ContestBaseDocument, ContestClarification, ContestEventAction, ContestProblemPrerequisite, ContestProblem, ContestSettings, ContestUser, EntityState, ProblemSettings, ProblemStatement, TextLanguage } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersWithTimestampsResponseDTO } from './entity';
|
|
3
|
+
import { EntityCompanySummaryListResponseDTO, EntityCompanySystemSummaryListResponseDTO, ProblemJudgeSummaryListResponseDTO, ProblemSummaryListResponseDTO } from './problem';
|
|
4
|
+
import { EntityOwnerSystemSummaryListResponseDTO, UserCompanyBasicInfoResponseDTO } from './user';
|
|
6
5
|
export type UpsertContestProblemPrerequisiteDTO = (Omit<ContestProblemPrerequisite, 'problemId'> & {
|
|
7
6
|
problemIndex: string;
|
|
8
7
|
})[];
|
|
@@ -19,7 +18,7 @@ export interface UpsertContestDTO extends Omit<ContestBaseDocument, 'key' | 'mem
|
|
|
19
18
|
}
|
|
20
19
|
export interface ContestSummaryListResponseDTO extends Pick<ContestBaseDocument, 'key' | 'name' | 'tags'> {
|
|
21
20
|
user: ContestUser;
|
|
22
|
-
owner:
|
|
21
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
23
22
|
company: EntityCompanySummaryListResponseDTO;
|
|
24
23
|
settings: Pick<ContestSettings, 'startTimestamp' | 'endTimestamp' | 'frozenTimestamp' | 'quietTimestamp' | 'penalty' | 'upsolvingEnabled'>;
|
|
25
24
|
totalContestants: number;
|
|
@@ -64,7 +63,7 @@ export declare enum ContestProblemBlockedByType {
|
|
|
64
63
|
export type ContestProblemDataResponseDTO = ContestProblemBasicDataResponseDTO & ContestContestProblemDataResponseDTO & {
|
|
65
64
|
blockedBy: {
|
|
66
65
|
type: ContestProblemBlockedByType;
|
|
67
|
-
details: Record<string,
|
|
66
|
+
details: Record<string, any>;
|
|
68
67
|
}[];
|
|
69
68
|
totalSuccess: number;
|
|
70
69
|
totalAttempts: number;
|
|
@@ -76,9 +75,9 @@ export type ContestProblemDataResponseDTO = ContestProblemBasicDataResponseDTO &
|
|
|
76
75
|
};
|
|
77
76
|
export interface ContestEventResponseDTO {
|
|
78
77
|
action: ContestEventAction;
|
|
79
|
-
user:
|
|
78
|
+
user: UserCompanyBasicInfoResponseDTO;
|
|
80
79
|
timestamp: number;
|
|
81
|
-
details: Record<string,
|
|
80
|
+
details: Record<string, any>;
|
|
82
81
|
}
|
|
83
82
|
export interface ContestDataResponseDTO extends Omit<ContestSummaryListResponseDTO, 'settings'>, Pick<ContestBaseDocument, 'settings' | 'description' | 'groups'> {
|
|
84
83
|
problems: Record<string, ContestProblemDataResponseDTO>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { CourseBaseDocument } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersResponseDTO } from './entity';
|
|
3
|
+
import { UserCompanyBasicInfoResponseDTO } from './user';
|
|
4
|
+
import { WorksheetSummaryListResponseDTO } from './worksheet';
|
|
5
5
|
export type CourseUserResponseDTO = {
|
|
6
6
|
isOwner: boolean;
|
|
7
7
|
isManager: boolean;
|
|
@@ -15,7 +15,7 @@ export interface CourseSummaryListResponseDTO {
|
|
|
15
15
|
abstract: string;
|
|
16
16
|
description: string;
|
|
17
17
|
coverImageUrl: string;
|
|
18
|
-
owner:
|
|
18
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
19
19
|
user: CourseUserResponseDTO;
|
|
20
20
|
}
|
|
21
21
|
export interface CourseLessonsWorksheetDataResponseDTO extends Pick<WorksheetSummaryListResponseDTO, 'key' | 'name' | 'content'> {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { EntityAccess, EntityMembersRank } from '../types';
|
|
2
|
+
import { UserCompanyBasicInfoResponseDTO } from './user';
|
|
3
3
|
export interface EntityMembersDTO {
|
|
4
4
|
rankAdministrators: EntityMembersRank;
|
|
5
5
|
administrators: string[];
|
|
@@ -43,7 +43,7 @@ export declare enum MemberType {
|
|
|
43
43
|
USER = "USER",
|
|
44
44
|
TEAM = "TEAM"
|
|
45
45
|
}
|
|
46
|
-
export interface DocumentMemberResponseDTO extends
|
|
46
|
+
export interface DocumentMemberResponseDTO extends UserCompanyBasicInfoResponseDTO {
|
|
47
47
|
type: MemberType;
|
|
48
48
|
}
|
|
49
49
|
export interface DocumentMemberWithTimestampsResponseDTO extends DocumentMemberResponseDTO {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { ExcalidrawBaseDocument } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersResponseDTO } from './entity';
|
|
3
|
+
import { UserCompanyBasicInfoResponseDTO } from './user';
|
|
4
4
|
export interface ExcalidrawResponseDTO extends Omit<ExcalidrawBaseDocument, 'members'> {
|
|
5
|
-
owner:
|
|
5
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
6
6
|
members: EntityMembersResponseDTO;
|
|
7
7
|
updatedAt: number;
|
|
8
8
|
createdAt: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { EntityState, FileContent, FileMemberRole, SummaryFileContent, UserBasic } from '../types';
|
|
2
|
+
import { DocumentMembersResponseDTO, DocumentUserResponseDTO } from './entity';
|
|
3
3
|
export interface FileBasic {
|
|
4
4
|
name: string;
|
|
5
5
|
description: string;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export * from './class';
|
|
2
|
+
export * from './code';
|
|
3
|
+
export * from './comments';
|
|
4
|
+
export * from './company';
|
|
5
|
+
export * from './contest';
|
|
6
|
+
export * from './course';
|
|
7
|
+
export * from './entity';
|
|
8
|
+
export * from './excalidraw';
|
|
9
|
+
export * from './file';
|
|
10
|
+
export * from './image';
|
|
11
|
+
export * from './judge';
|
|
12
|
+
export * from './problem';
|
|
13
|
+
export * from './markdown';
|
|
14
|
+
export * from './mermaid';
|
|
15
|
+
export * from './scoreboard';
|
|
16
|
+
export * from './session';
|
|
17
|
+
export * from './socket';
|
|
18
|
+
export * from './statistics';
|
|
19
|
+
export * from './submission';
|
|
20
|
+
export * from './system';
|
|
21
|
+
export * from './url';
|
|
22
|
+
export * from './user';
|
|
23
|
+
export * from './virtual-user';
|
|
24
|
+
export * from './worksheet';
|
|
25
|
+
export * from './worksheet-submissions';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JudgeBaseDocument } from '../types';
|
|
2
2
|
export interface JudgeDataResponseDTO extends Omit<JudgeBaseDocument, 'getProblemUrl' | 'getUserSubmissionsUrl' | 'getLoginUrl' | 'getSubmitUrl'> {
|
|
3
3
|
}
|
|
4
4
|
export interface JudgeSummaryListResponseDTO extends Omit<JudgeBaseDocument, 'getProblemUrl' | 'getUserSubmissionsUrl' | 'getSubmissionUrl' | 'getLoginUrl' | 'getProfileUrl' | 'getSubmitUrl'> {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { MarkdownBaseDocument } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersResponseDTO } from './entity';
|
|
3
|
+
import { UserCompanyBasicInfoResponseDTO } from './user';
|
|
4
4
|
export interface MarkdownResponseDTO extends Omit<MarkdownBaseDocument, 'members'> {
|
|
5
|
-
owner:
|
|
5
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
6
6
|
members: EntityMembersResponseDTO;
|
|
7
7
|
updatedAt: number;
|
|
8
8
|
createdAt: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { MermaidBaseDocument } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersResponseDTO } from './entity';
|
|
3
|
+
import { UserCompanyBasicInfoResponseDTO } from './user';
|
|
4
4
|
export interface MermaidResponseDTO extends Omit<MermaidBaseDocument, 'members'> {
|
|
5
|
-
owner:
|
|
5
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
6
6
|
members: EntityMembersResponseDTO;
|
|
7
7
|
updatedAt: number;
|
|
8
8
|
createdAt: number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import type { EntityOwnerSystemSummaryListResponseDTO, UserOrganizationBasicInfoResponseDTO } from './user.js';
|
|
1
|
+
import { EntityState, JudgeBaseDocument, ProblemBaseDocument, ProblemScoringMode, ProblemSettings, ProblemStatement, ProblemType, ProblemUser, TextLanguage } from '../types';
|
|
2
|
+
import { EntityMembersDTO, EntityMembersResponseDTO } from './entity';
|
|
3
|
+
import { EntityOwnerSystemSummaryListResponseDTO, UserCompanyBasicInfoResponseDTO } from './user';
|
|
5
4
|
export interface ProblemJudgeSummaryListResponseDTO extends Pick<JudgeBaseDocument, 'isExternal' | 'isSubmitSupported' | 'name' | 'key'> {
|
|
6
5
|
isCustom: boolean;
|
|
7
6
|
isMain: boolean;
|
|
@@ -25,7 +24,7 @@ export interface ProblemBasicSummaryListResponseDTO {
|
|
|
25
24
|
}
|
|
26
25
|
export interface ProblemSummaryListResponseDTO extends ProblemBasicSummaryListResponseDTO {
|
|
27
26
|
user: ProblemUser;
|
|
28
|
-
owner:
|
|
27
|
+
owner: UserCompanyBasicInfoResponseDTO;
|
|
29
28
|
}
|
|
30
29
|
export interface ProblemDataResponseDTO extends ProblemSummaryListResponseDTO {
|
|
31
30
|
author: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { EntityCompanySystemSummaryListResponseDTO } from './problem';
|
|
2
|
+
import { UserBasicResponseDTO } from './user';
|
|
3
3
|
export interface SessionBasicResponseDTO {
|
|
4
4
|
id: string;
|
|
5
5
|
deviceName: string;
|