@juki-team/commons 0.2.0 → 0.2.2
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/constants/commons.d.ts +2 -2
- package/dist/constants/commons.js +2 -2
- package/dist/constants/company.d.ts +1 -1
- package/dist/constants/company.js +1 -1
- package/dist/constants/contest.d.ts +1 -1
- package/dist/constants/contest.js +1 -2
- package/dist/constants/course.d.ts +1 -1
- package/dist/constants/course.js +1 -1
- package/dist/constants/entity.js +1 -1
- package/dist/constants/file.d.ts +1 -2
- package/dist/constants/file.js +1 -2
- package/dist/constants/index.d.ts +1 -1
- package/dist/constants/index.js +1 -1
- package/dist/constants/judge.d.ts +1 -2
- package/dist/constants/judge.js +1 -2
- package/dist/constants/problem.d.ts +3 -4
- package/dist/constants/problem.js +1 -2
- package/dist/constants/services.d.ts +1 -1
- package/dist/constants/services.js +1 -1
- package/dist/constants/system.d.ts +1 -1
- package/dist/constants/system.js +1 -1
- package/dist/constants/teams.d.ts +1 -2
- package/dist/constants/teams.js +1 -2
- package/dist/constants/user.d.ts +1 -1
- package/dist/constants/user.js +1 -1
- package/dist/constants/worksheet.d.ts +2 -1
- package/dist/constants/worksheet.js +1 -1
- package/dist/dto/class.d.ts +9 -8
- package/dist/dto/contest.d.ts +2 -8
- package/dist/dto/contest.js +1 -7
- package/dist/dto/entity.d.ts +1 -5
- package/dist/dto/entity.js +1 -5
- package/dist/dto/file.d.ts +2 -1
- package/dist/dto/index.d.ts +2 -1
- package/dist/dto/index.js +2 -1
- package/dist/dto/organization.d.ts +1 -2
- package/dist/dto/problem.d.ts +2 -2
- package/dist/dto/socket.d.ts +41 -41
- package/dist/dto/submission.d.ts +2 -2
- package/dist/dto/user.d.ts +1 -1
- package/dist/dto/{virtual-user.d.ts → virtualUser.d.ts} +1 -2
- package/dist/dto/{worksheet-submissions.d.ts → worksheetSubmission.d.ts} +2 -1
- package/dist/dto/worksheetSubmission.js +1 -0
- package/dist/enums/index.d.ts +2 -0
- package/dist/enums/index.js +2 -0
- package/dist/enums/manual/AspectRatio.d.ts +11 -0
- package/dist/enums/manual/AspectRatio.js +10 -0
- package/dist/enums/manual/AssignmentClass.d.ts +7 -0
- package/dist/enums/manual/AssignmentClass.js +6 -0
- package/dist/enums/manual/AssignmentType.d.ts +7 -0
- package/dist/enums/manual/AssignmentType.js +6 -0
- package/dist/enums/manual/CodeLanguage.d.ts +40 -0
- package/dist/enums/manual/CodeLanguage.js +40 -0
- package/dist/enums/manual/CollectionKey.d.ts +24 -0
- package/dist/enums/manual/CollectionKey.js +23 -0
- package/dist/enums/manual/ContestProblemBlockedByType.d.ts +7 -0
- package/dist/enums/manual/ContestProblemBlockedByType.js +6 -0
- package/dist/enums/manual/ContestTimeStatus.d.ts +6 -0
- package/dist/enums/manual/ContestTimeStatus.js +5 -0
- package/dist/enums/manual/DataViewMode.d.ts +5 -0
- package/dist/enums/manual/DataViewMode.js +4 -0
- package/dist/enums/manual/EntityAccess.d.ts +7 -0
- package/dist/enums/manual/EntityAccess.js +6 -0
- package/dist/enums/manual/EntityCollection.d.ts +9 -0
- package/dist/enums/manual/EntityCollection.js +8 -0
- package/dist/enums/manual/EntityMembersRank.d.ts +6 -0
- package/dist/enums/manual/EntityMembersRank.js +5 -0
- package/dist/enums/manual/EntityState.d.ts +5 -0
- package/dist/enums/manual/EntityState.js +4 -0
- package/dist/enums/manual/EntityStatus.d.ts +7 -0
- package/dist/enums/manual/EntityStatus.js +6 -0
- package/dist/enums/manual/ErrorCode.d.ts +120 -0
- package/dist/enums/manual/ErrorCode.js +129 -0
- package/dist/enums/manual/FileMemberRole.d.ts +5 -0
- package/dist/enums/manual/FileMemberRole.js +4 -0
- package/dist/enums/manual/FilesJukiPub.d.ts +8 -0
- package/dist/enums/manual/FilesJukiPub.js +7 -0
- package/dist/enums/manual/HTTPMethod.d.ts +8 -0
- package/dist/enums/manual/HTTPMethod.js +7 -0
- package/dist/enums/manual/Judge.d.ts +12 -0
- package/dist/enums/manual/Judge.js +11 -0
- package/dist/enums/manual/Language.d.ts +5 -0
- package/dist/enums/manual/Language.js +4 -0
- package/dist/enums/manual/LogLevel.d.ts +9 -0
- package/dist/enums/manual/LogLevel.js +8 -0
- package/dist/enums/manual/LogOperation.d.ts +6 -0
- package/dist/enums/manual/LogOperation.js +5 -0
- package/dist/enums/manual/MemberRole.d.ts +9 -0
- package/dist/enums/manual/MemberRole.js +8 -0
- package/dist/enums/manual/MemberType.d.ts +5 -0
- package/dist/enums/manual/MemberType.js +4 -0
- package/dist/enums/manual/MenuViewMode.d.ts +5 -0
- package/dist/enums/manual/MenuViewMode.js +4 -0
- package/dist/enums/manual/NotificationType.d.ts +8 -0
- package/dist/enums/manual/NotificationType.js +7 -0
- package/dist/enums/manual/OrganizationLogoType.d.ts +7 -0
- package/dist/enums/manual/OrganizationLogoType.js +6 -0
- package/dist/enums/manual/ProblemInput.d.ts +5 -0
- package/dist/enums/manual/ProblemInput.js +4 -0
- package/dist/enums/manual/ProblemOutput.d.ts +6 -0
- package/dist/enums/manual/ProblemOutput.js +5 -0
- package/dist/enums/manual/ProfileSetting.d.ts +10 -0
- package/dist/enums/manual/ProfileSetting.js +9 -0
- package/dist/enums/manual/QuizScoringMode.d.ts +5 -0
- package/dist/enums/manual/QuizScoringMode.js +4 -0
- package/dist/enums/manual/Role.d.ts +12 -0
- package/dist/enums/manual/Role.js +11 -0
- package/dist/enums/manual/RunnerType.d.ts +5 -0
- package/dist/enums/manual/RunnerType.js +4 -0
- package/dist/enums/manual/ScopeData.d.ts +7 -0
- package/dist/enums/manual/ScopeData.js +6 -0
- package/dist/enums/manual/Status.d.ts +7 -0
- package/dist/enums/manual/Status.js +6 -0
- package/dist/enums/manual/TeamStatus.d.ts +6 -0
- package/dist/enums/manual/TeamStatus.js +5 -0
- package/dist/enums/manual/Theme.d.ts +5 -0
- package/dist/enums/manual/Theme.js +4 -0
- package/dist/enums/manual/TypeTestCase.d.ts +5 -0
- package/dist/enums/manual/TypeTestCase.js +4 -0
- package/dist/enums/manual/UserTeamStatus.d.ts +6 -0
- package/dist/enums/manual/UserTeamStatus.js +5 -0
- package/dist/enums/manual/WebSocketMessageEvent.d.ts +8 -0
- package/dist/enums/manual/WebSocketMessageEvent.js +7 -0
- package/dist/enums/manual/WebSocketResponseEvent.d.ts +22 -0
- package/dist/enums/manual/WebSocketResponseEvent.js +21 -0
- package/dist/enums/manual/WebSocketSubscriptionEvent.d.ts +19 -0
- package/dist/enums/manual/WebSocketSubscriptionEvent.js +18 -0
- package/dist/enums/manual/WorksheetType.d.ts +11 -0
- package/dist/enums/manual/WorksheetType.js +10 -0
- package/dist/enums/manual/index.d.ts +42 -0
- package/dist/enums/manual/index.js +42 -0
- package/dist/helpers/array.d.ts +3 -0
- package/dist/helpers/array.js +28 -0
- package/dist/helpers/{class.js → assignment.js} +1 -1
- package/dist/helpers/console.d.ts +3 -0
- package/dist/helpers/console.js +9 -0
- package/dist/{date/index.d.ts → helpers/date.d.ts} +11 -0
- package/dist/{date/index.js → helpers/date.js} +24 -0
- package/dist/helpers/document.d.ts +2 -11
- package/dist/helpers/document.js +1 -21
- package/dist/helpers/duration.d.ts +2 -0
- package/dist/helpers/duration.js +57 -0
- package/dist/helpers/entity.d.ts +11 -0
- package/dist/helpers/entity.js +20 -0
- package/dist/{errors/index.d.ts → helpers/errors.d.ts} +1 -1
- package/dist/helpers/file.d.ts +6 -1
- package/dist/helpers/file.js +23 -2
- package/dist/helpers/http.d.ts +1 -0
- package/dist/helpers/http.js +8 -0
- package/dist/helpers/index.d.ts +12 -3
- package/dist/helpers/index.js +12 -3
- package/dist/helpers/json.d.ts +3 -0
- package/dist/helpers/json.js +31 -0
- package/dist/helpers/judging.d.ts +1 -1
- package/dist/helpers/judging.js +1 -1
- package/dist/helpers/object.d.ts +2 -0
- package/dist/helpers/object.js +28 -0
- package/dist/helpers/problem.d.ts +2 -0
- package/dist/helpers/problem.js +1 -0
- package/dist/helpers/responses.d.ts +2 -2
- package/dist/helpers/responses.js +4 -3
- package/dist/helpers/socket.d.ts +2 -1
- package/dist/helpers/socket.js +4 -5
- package/dist/helpers/string.d.ts +7 -0
- package/dist/helpers/string.js +52 -0
- package/dist/helpers/worksheet.d.ts +1 -1
- package/dist/helpers/worksheet.js +1 -1
- package/dist/index.d.ts +1 -4
- package/dist/index.js +1 -4
- package/dist/types/assignment.d.ts +22 -0
- package/dist/types/assignment.js +1 -0
- package/dist/types/class.d.ts +3 -28
- package/dist/types/class.js +1 -7
- package/dist/types/contest.d.ts +3 -9
- package/dist/types/contest.js +1 -6
- package/dist/types/course.d.ts +2 -1
- package/dist/types/device.d.ts +7 -0
- package/dist/types/device.js +1 -0
- package/dist/types/duration.d.ts +7 -0
- package/dist/types/duration.js +1 -0
- package/dist/types/entity.d.ts +1 -45
- package/dist/types/entity.js +1 -50
- package/dist/types/file.d.ts +1 -12
- package/dist/types/file.js +1 -13
- package/dist/types/group.d.ts +2 -2
- package/dist/types/id.d.ts +3 -0
- package/dist/types/id.js +1 -0
- package/dist/types/index.d.ts +23 -23
- package/dist/types/index.js +1 -23
- package/dist/types/judge.d.ts +1 -17
- package/dist/types/judge.js +1 -17
- package/dist/types/markdown.d.ts +3 -2
- package/dist/types/mermaid.d.ts +3 -2
- package/dist/types/{problems.d.ts → problem.d.ts} +2 -15
- package/dist/types/problem.js +1 -0
- package/dist/types/services.d.ts +1 -135
- package/dist/types/services.js +1 -147
- package/dist/types/socket.d.ts +2 -47
- package/dist/types/socket.js +1 -49
- package/dist/types/teams.d.ts +2 -25
- package/dist/types/teams.js +1 -28
- package/dist/types/text.d.ts +4 -0
- package/dist/types/text.js +1 -0
- package/dist/types/{users.d.ts → user.d.ts} +1 -29
- package/dist/types/user.js +1 -0
- package/dist/types/worksheet.d.ts +88 -11
- package/dist/types/worksheet.js +1 -11
- package/package.json +8 -21
- package/dist/dto/worksheet-submissions.js +0 -1
- package/dist/helpers/commons.d.ts +0 -33
- package/dist/helpers/commons.js +0 -191
- package/dist/helpers/time.d.ts +0 -13
- package/dist/helpers/time.js +0 -101
- package/dist/types/account.d.ts +0 -9
- package/dist/types/account.js +0 -10
- package/dist/types/commons.d.ts +0 -84
- 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/notification.d.ts +0 -7
- package/dist/types/notification.js +0 -8
- package/dist/types/problems.js +0 -16
- package/dist/types/sheet.d.ts +0 -104
- package/dist/types/sheet.js +0 -16
- package/dist/types/users.js +0 -33
- package/dist/constants/{time.d.ts → duration.d.ts} +0 -0
- package/dist/constants/{time.js → duration.js} +0 -0
- package/dist/dto/{virtual-user.js → virtualUser.js} +0 -0
- package/dist/{prisma/enums → enums/prisma}/AssignmentClassType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/AssignmentClassType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestEventAction.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestEventAction.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestProblemPrerequisiteType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestProblemPrerequisiteType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestStatus.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ContestStatus.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/CourseRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/CourseRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/EntityObjectType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/EntityObjectType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/EntityRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/EntityRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/EntitySubjectType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/EntitySubjectType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/FileRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/FileRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/FileType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/FileType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/GroupType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/GroupType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/JudgeType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/JudgeType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/OrganizationPlan.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/OrganizationPlan.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemScoringMode.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemScoringMode.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemVerdict.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ProblemVerdict.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/ShareLinkVisibility.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/ShareLinkVisibility.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/SubmissionRunStatus.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/SubmissionRunStatus.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/SystemRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/SystemRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/TeamRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/TeamRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/TelemetryType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/TelemetryType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/UserRole.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/UserRole.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/WorkingIn.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/WorkingIn.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/WorksheetContentType.d.ts +0 -0
- package/dist/{prisma/enums → enums/prisma}/WorksheetContentType.js +0 -0
- package/dist/{prisma/enums → enums/prisma}/index.d.ts +11 -11
- package/dist/{prisma/enums → enums/prisma}/index.js +11 -11
- /package/dist/helpers/{class.d.ts → assignment.d.ts} +0 -0
- /package/dist/{errors/index.js → helpers/errors.js} +0 -0
- /package/dist/{number/index.d.ts → helpers/number.d.ts} +0 -0
- /package/dist/{number/index.js → helpers/number.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CodeLanguage, Language, Theme } from '../
|
|
1
|
+
import { CodeLanguage, Language, Theme } from '../enums/index.js';
|
|
2
2
|
export declare const LANGUAGE: {
|
|
3
3
|
[Key in Language]: {
|
|
4
4
|
value: Language;
|
|
@@ -31,7 +31,7 @@ export declare const CODE_LANGUAGE: {
|
|
|
31
31
|
[Key in CodeLanguage]: CodeLanguageMeta;
|
|
32
32
|
};
|
|
33
33
|
export declare const PAGE_SIZES: string[];
|
|
34
|
-
export declare const
|
|
34
|
+
export declare const PALETTE: {
|
|
35
35
|
vivos: {
|
|
36
36
|
color: string;
|
|
37
37
|
title: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CodeLanguage, Language, Theme } from '../
|
|
1
|
+
import { CodeLanguage, Language, Theme } from '../enums/index.js';
|
|
2
2
|
export const LANGUAGE = {
|
|
3
3
|
[Language.EN]: { value: Language.EN, label: 'english' },
|
|
4
4
|
[Language.ES]: { value: Language.ES, label: 'español' },
|
|
@@ -579,7 +579,7 @@ export const CODE_LANGUAGE = {
|
|
|
579
579
|
},
|
|
580
580
|
};
|
|
581
581
|
export const PAGE_SIZES = ['32', '64', '128', '256', '512'];
|
|
582
|
-
export const
|
|
582
|
+
export const PALETTE = {
|
|
583
583
|
vivos: [
|
|
584
584
|
{ color: '#FF0000', title: 'Rojo' },
|
|
585
585
|
{ color: '#FF5900', title: 'Rojo - Naranja' },
|
package/dist/constants/course.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CourseRole } from '../
|
|
1
|
+
import { CourseRole } from '../enums/index.js';
|
|
2
2
|
export const COURSE_ROLE = {
|
|
3
3
|
[CourseRole.RESTRICTED]: { value: CourseRole.RESTRICTED, label: 'restricted', level: 8 },
|
|
4
4
|
[CourseRole.GUEST]: { value: CourseRole.GUEST, label: 'guest', level: 7 },
|
package/dist/constants/entity.js
CHANGED
package/dist/constants/file.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type FileRole, FileType } from '../
|
|
2
|
-
import { EntityAccess, EntityState } from '../types/index.js';
|
|
1
|
+
import { EntityAccess, EntityState, type FileRole, FileType } from '../enums/index.js';
|
|
3
2
|
export declare const FILE_TYPE: {
|
|
4
3
|
[Key in FileType]: {
|
|
5
4
|
value: FileType;
|
package/dist/constants/file.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { FileType } from '../
|
|
2
|
-
import { EntityAccess, EntityState, Role } from '../types/index.js';
|
|
1
|
+
import { EntityAccess, EntityState, FileType, Role } from '../enums/index.js';
|
|
3
2
|
export const FILE_TYPE = {
|
|
4
3
|
[FileType.FILE]: { value: FileType.FILE, label: 'file' },
|
|
5
4
|
[FileType.FOLDER]: { value: FileType.FOLDER, label: 'folder' },
|
|
@@ -3,6 +3,7 @@ export * from './company.js';
|
|
|
3
3
|
export * from './contest.js';
|
|
4
4
|
export * from './course.js';
|
|
5
5
|
export * from './date.js';
|
|
6
|
+
export * from './duration.js';
|
|
6
7
|
export * from './email.js';
|
|
7
8
|
export * from './entity.js';
|
|
8
9
|
export * from './file.js';
|
|
@@ -12,7 +13,6 @@ export * from './routing.js';
|
|
|
12
13
|
export * from './services.js';
|
|
13
14
|
export * from './system.js';
|
|
14
15
|
export * from './teams.js';
|
|
15
|
-
export * from './time.js';
|
|
16
16
|
export * from './user.js';
|
|
17
17
|
export * from './websocket.js';
|
|
18
18
|
export * from './worksheet.js';
|
package/dist/constants/index.js
CHANGED
|
@@ -3,6 +3,7 @@ export * from './company.js';
|
|
|
3
3
|
export * from './contest.js';
|
|
4
4
|
export * from './course.js';
|
|
5
5
|
export * from './date.js';
|
|
6
|
+
export * from './duration.js';
|
|
6
7
|
export * from './email.js';
|
|
7
8
|
export * from './entity.js';
|
|
8
9
|
export * from './file.js';
|
|
@@ -12,7 +13,6 @@ export * from './routing.js';
|
|
|
12
13
|
export * from './services.js';
|
|
13
14
|
export * from './system.js';
|
|
14
15
|
export * from './teams.js';
|
|
15
|
-
export * from './time.js';
|
|
16
16
|
export * from './user.js';
|
|
17
17
|
export * from './websocket.js';
|
|
18
18
|
export * from './worksheet.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JudgeType, ProblemScoringMode, ProblemType, ProblemVerdict, SubmissionRunStatus } from '../
|
|
2
|
-
import { CodeLanguage, RunnerType } from '../types/index.js';
|
|
1
|
+
import { CodeLanguage, JudgeType, ProblemScoringMode, ProblemType, ProblemVerdict, RunnerType, SubmissionRunStatus } from '../enums/index.js';
|
|
3
2
|
type Judge = {
|
|
4
3
|
[Key in JudgeType]: {
|
|
5
4
|
value: JudgeType;
|
package/dist/constants/judge.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { JudgeType, ProblemScoringMode, ProblemType, ProblemVerdict, SubmissionRunStatus } from '../
|
|
2
|
-
import { CodeLanguage, RunnerType } from '../types/index.js';
|
|
1
|
+
import { CodeLanguage, JudgeType, ProblemScoringMode, ProblemType, ProblemVerdict, RunnerType, SubmissionRunStatus, } from '../enums/index.js';
|
|
3
2
|
export const JUDGE = {
|
|
4
3
|
// [Judge.CUSTOMER]: {
|
|
5
4
|
// value: Judge.CUSTOMER,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { type ProblemRole, ProblemScoringMode, ProblemType } from '../
|
|
2
|
-
import { ProblemInput, ProblemOutput } from '../types/index.js';
|
|
1
|
+
import { ProblemInput, ProblemOutput, type ProblemRole, ProblemScoringMode, ProblemType } from '../enums/index.js';
|
|
3
2
|
export declare const PROBLEM_INPUT: {
|
|
4
3
|
[Key in ProblemInput]: {
|
|
5
4
|
value: ProblemInput;
|
|
@@ -12,7 +11,7 @@ export declare const PROBLEM_OUTPUT: {
|
|
|
12
11
|
label: string;
|
|
13
12
|
};
|
|
14
13
|
};
|
|
15
|
-
export declare const PROBLEM_MODES: ("
|
|
14
|
+
export declare const PROBLEM_MODES: ("TOTAL" | "PARTIAL" | "SUBTASK")[];
|
|
16
15
|
export declare const PROBLEM_MODE: {
|
|
17
16
|
[Key in ProblemScoringMode]: {
|
|
18
17
|
value: ProblemScoringMode;
|
|
@@ -20,7 +19,7 @@ export declare const PROBLEM_MODE: {
|
|
|
20
19
|
description: string;
|
|
21
20
|
};
|
|
22
21
|
};
|
|
23
|
-
export declare const PROBLEM_TYPES: ("STANDARD" | "
|
|
22
|
+
export declare const PROBLEM_TYPES: ("STANDARD" | "INTERACTIVE" | "DYNAMIC")[];
|
|
24
23
|
export declare const PROBLEM_TYPE: {
|
|
25
24
|
[Key in ProblemType]: {
|
|
26
25
|
value: ProblemType;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { ProblemScoringMode, ProblemType } from '../
|
|
2
|
-
import { ProblemInput, ProblemOutput, Role } from '../types/index.js';
|
|
1
|
+
import { ProblemInput, ProblemOutput, ProblemScoringMode, ProblemType, Role } from '../enums/index.js';
|
|
3
2
|
export const PROBLEM_INPUT = {
|
|
4
3
|
[ProblemInput.STANDARD]: { value: ProblemInput.STANDARD, label: 'standard' },
|
|
5
4
|
[ProblemInput.INTERACTIVE]: { value: ProblemInput.INTERACTIVE, label: 'interactive' },
|
package/dist/constants/system.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SystemRole } from '../
|
|
1
|
+
import { SystemRole } from '../enums/index.js';
|
|
2
2
|
export const SYSTEM_ROLE = {
|
|
3
3
|
[SystemRole.GUEST]: { value: SystemRole.GUEST, label: 'guest', level: 5 },
|
|
4
4
|
[SystemRole.REGULAR]: { value: SystemRole.REGULAR, label: 'regular', level: 4 },
|
package/dist/constants/teams.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { TeamRole } from '../
|
|
2
|
-
import { MemberRole } from '../types/index.js';
|
|
1
|
+
import { MemberRole, TeamRole } from '../enums/index.js';
|
|
3
2
|
export const MEMBER_ROLE = {
|
|
4
3
|
[MemberRole.COACH]: { value: MemberRole.COACH, label: 'coach' },
|
|
5
4
|
[MemberRole.CO_COACH]: { value: MemberRole.CO_COACH, label: 'co-coach' },
|
package/dist/constants/user.d.ts
CHANGED
package/dist/constants/user.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UserRole } from '../
|
|
1
|
+
import { UserRole } from '../enums/index.js';
|
|
2
2
|
export const USER_ROLE = {
|
|
3
3
|
[UserRole.RESTRICTED]: { value: UserRole.RESTRICTED, label: 'restricted', level: 6 },
|
|
4
4
|
[UserRole.GUEST]: { value: UserRole.GUEST, label: 'guest', level: 5 },
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { AspectRatio
|
|
1
|
+
import { AspectRatio } from '../enums/index.js';
|
|
2
|
+
import type { NewPageSheet } from '../types/index.js';
|
|
2
3
|
export declare const NEW_PAGE_SHEET: () => NewPageSheet;
|
|
3
4
|
export declare const ASPECT_RATIO: {
|
|
4
5
|
[Key in AspectRatio]: {
|
package/dist/dto/class.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { AssignmentClass, EntityState } from '../enums/index.js';
|
|
2
|
+
import type { AssignmentBasicInfo, ClassBaseDocument, ClassCycleTag } from '../types/index.js';
|
|
2
3
|
import type { EntityMembersDTO, EntityMembersResponseDTO } from './entity.js';
|
|
3
4
|
import type { UserOrganizationBasicInfoResponseDTO, UserSummaryListResponseDTO } from './user.js';
|
|
4
5
|
interface ClassUserResponseDTO {
|
|
@@ -17,22 +18,22 @@ export interface ClassSummaryListResponseDTO {
|
|
|
17
18
|
user: ClassUserResponseDTO;
|
|
18
19
|
}
|
|
19
20
|
export interface ContestAssignmentSessionCycleClassDataResponseDTO extends AssignmentBasicInfo {
|
|
20
|
-
type: AssignmentClass.CONTEST;
|
|
21
|
+
type: typeof AssignmentClass.CONTEST;
|
|
21
22
|
contestKey: string;
|
|
22
23
|
numberProblems: number;
|
|
23
24
|
}
|
|
24
25
|
export interface CourseAssignmentSessionCycleClassDataResponseDTO extends AssignmentBasicInfo {
|
|
25
|
-
type: AssignmentClass.COURSE;
|
|
26
|
+
type: typeof AssignmentClass.COURSE;
|
|
26
27
|
courseKey: string;
|
|
27
28
|
numberLessons: number;
|
|
28
29
|
}
|
|
29
30
|
export interface WorksheetAssignmentSessionCycleClassDataResponseDTO extends AssignmentBasicInfo {
|
|
30
|
-
type: AssignmentClass.WORKSHEET;
|
|
31
|
+
type: typeof AssignmentClass.WORKSHEET;
|
|
31
32
|
worksheetKey: string;
|
|
32
33
|
numberPages: number;
|
|
33
34
|
}
|
|
34
35
|
export interface NoneAssignmentSessionCycleClassDataResponseDTO extends AssignmentBasicInfo {
|
|
35
|
-
type: AssignmentClass.NONE;
|
|
36
|
+
type: typeof AssignmentClass.NONE;
|
|
36
37
|
}
|
|
37
38
|
export type AssignmentSessionCycleClassDataResponseDTO = ContestAssignmentSessionCycleClassDataResponseDTO | CourseAssignmentSessionCycleClassDataResponseDTO | WorksheetAssignmentSessionCycleClassDataResponseDTO | NoneAssignmentSessionCycleClassDataResponseDTO;
|
|
38
39
|
export interface SessionCycleClassDataResponseDTO {
|
|
@@ -81,15 +82,15 @@ export interface ClassCyclesDataResponseDTO extends ClassSummaryListResponseDTO
|
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
export interface AssignmentContestUpsert extends AssignmentBasicInfo {
|
|
84
|
-
type: AssignmentClass.CONTEST;
|
|
85
|
+
type: typeof AssignmentClass.CONTEST;
|
|
85
86
|
contestKey: string;
|
|
86
87
|
}
|
|
87
88
|
export interface AssignmentCourseUpsert extends AssignmentBasicInfo {
|
|
88
|
-
type: AssignmentClass.COURSE;
|
|
89
|
+
type: typeof AssignmentClass.COURSE;
|
|
89
90
|
courseKey: string;
|
|
90
91
|
}
|
|
91
92
|
export interface AssignmentWorksheetUpsert extends AssignmentBasicInfo {
|
|
92
|
-
type: AssignmentClass.WORKSHEET;
|
|
93
|
+
type: typeof AssignmentClass.WORKSHEET;
|
|
93
94
|
worksheetKey: string;
|
|
94
95
|
}
|
|
95
96
|
export interface UpsertClassDTO extends Omit<ClassBaseDocument, 'members' | 'key' | 'cycles'> {
|
package/dist/dto/contest.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ContestEventAction } from '../
|
|
2
|
-
import type { ContestBaseDocument, ContestClarification, ContestProblem, ContestProblemPrerequisite, ContestSettings, ContestUser,
|
|
1
|
+
import type { ContestEventAction, ContestProblemBlockedByType, EntityState } from '../enums/index.js';
|
|
2
|
+
import type { ContestBaseDocument, ContestClarification, ContestProblem, ContestProblemPrerequisite, ContestSettings, ContestUser, ProblemSettings, ProblemStatement, TextLanguage } from '../types/index.js';
|
|
3
3
|
import type { EntityMembersDTO, EntityMembersWithTimestampsResponseDTO } from './entity.js';
|
|
4
4
|
import type { EntityCompanySummaryListResponseDTO, EntityCompanySystemSummaryListResponseDTO, ProblemJudgeSummaryListResponseDTO, ProblemSummaryListResponseDTO } from './problem.js';
|
|
5
5
|
import type { EntityOwnerSystemSummaryListResponseDTO, UserOrganizationBasicInfoResponseDTO } from './user.js';
|
|
@@ -55,12 +55,6 @@ export interface ContestContestProblemDataResponseDTO extends Omit<ProblemSummar
|
|
|
55
55
|
settings: ProblemSettings;
|
|
56
56
|
ownerNickname: string;
|
|
57
57
|
}
|
|
58
|
-
export declare enum ContestProblemBlockedByType {
|
|
59
|
-
UNMET_PREREQUISITES = "UNMET_PREREQUISITES",
|
|
60
|
-
MAX_ACCEPTED_SUBMISSIONS_ACHIEVED = "MAX_ACCEPTED_SUBMISSIONS_ACHIEVED",
|
|
61
|
-
START_TIME_IN_THE_FUTURE = "START_TIME_IN_THE_FUTURE",
|
|
62
|
-
END_TIME_IN_THE_PAST = "END_TIME_IN_THE_PAST"
|
|
63
|
-
}
|
|
64
58
|
export type ContestProblemDataResponseDTO = ContestProblemBasicDataResponseDTO & ContestContestProblemDataResponseDTO & {
|
|
65
59
|
blockedBy: {
|
|
66
60
|
type: ContestProblemBlockedByType;
|
package/dist/dto/contest.js
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
export
|
|
2
|
-
(function (ContestProblemBlockedByType) {
|
|
3
|
-
ContestProblemBlockedByType["UNMET_PREREQUISITES"] = "UNMET_PREREQUISITES";
|
|
4
|
-
ContestProblemBlockedByType["MAX_ACCEPTED_SUBMISSIONS_ACHIEVED"] = "MAX_ACCEPTED_SUBMISSIONS_ACHIEVED";
|
|
5
|
-
ContestProblemBlockedByType["START_TIME_IN_THE_FUTURE"] = "START_TIME_IN_THE_FUTURE";
|
|
6
|
-
ContestProblemBlockedByType["END_TIME_IN_THE_PAST"] = "END_TIME_IN_THE_PAST";
|
|
7
|
-
})(ContestProblemBlockedByType || (ContestProblemBlockedByType = {}));
|
|
1
|
+
export {};
|
package/dist/dto/entity.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { EntityAccess, EntityMembersRank } from '../
|
|
1
|
+
import type { EntityAccess, EntityMembersRank, MemberType } from '../enums/index.js';
|
|
2
2
|
import type { UserOrganizationBasicInfoResponseDTO } from './user.js';
|
|
3
3
|
export interface EntityMembersDTO {
|
|
4
4
|
rankAdministrators: EntityMembersRank;
|
|
@@ -39,10 +39,6 @@ export interface DocumentUserResponseDTO {
|
|
|
39
39
|
isManager: boolean;
|
|
40
40
|
isSpectator: boolean;
|
|
41
41
|
}
|
|
42
|
-
export declare enum MemberType {
|
|
43
|
-
USER = "USER",
|
|
44
|
-
TEAM = "TEAM"
|
|
45
|
-
}
|
|
46
42
|
export interface DocumentMemberResponseDTO extends UserOrganizationBasicInfoResponseDTO {
|
|
47
43
|
type: MemberType;
|
|
48
44
|
}
|
package/dist/dto/entity.js
CHANGED
package/dist/dto/file.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EntityState,
|
|
1
|
+
import type { EntityState, FileMemberRole } from '../enums/index.js';
|
|
2
|
+
import type { FileContent, SummaryFileContent, UserBasic } from '../types/index.js';
|
|
2
3
|
import type { DocumentMembersResponseDTO, DocumentUserResponseDTO } from './entity.js';
|
|
3
4
|
export interface FileBasic {
|
|
4
5
|
name: string;
|
package/dist/dto/index.d.ts
CHANGED
|
@@ -20,5 +20,6 @@ export * from './submission.js';
|
|
|
20
20
|
export * from './system.js';
|
|
21
21
|
export * from './url.js';
|
|
22
22
|
export * from './user.js';
|
|
23
|
+
export * from './virtualUser.js';
|
|
23
24
|
export * from './worksheet.js';
|
|
24
|
-
export * from './
|
|
25
|
+
export * from './worksheetSubmission.js';
|
package/dist/dto/index.js
CHANGED
|
@@ -20,5 +20,6 @@ export * from './submission.js';
|
|
|
20
20
|
export * from './system.js';
|
|
21
21
|
export * from './url.js';
|
|
22
22
|
export * from './user.js';
|
|
23
|
+
export * from './virtualUser.js';
|
|
23
24
|
export * from './worksheet.js';
|
|
24
|
-
export * from './
|
|
25
|
+
export * from './worksheetSubmission.js';
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { OrganizationPlan } from '../
|
|
2
|
-
import type { Theme } from '../types/index.js';
|
|
1
|
+
import type { OrganizationPlan, Theme } from '../enums/index.js';
|
|
3
2
|
import type { EmailDataResponseDTO } from './system.js';
|
|
4
3
|
import type { UserOrganizationBasicInfoResponseDTO, UserPermissionsResponseDTO } from './user.js';
|
|
5
4
|
export interface OrganizationJudgeResponseDTO {
|
package/dist/dto/problem.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ProblemScoringMode, ProblemType } from '../
|
|
2
|
-
import type {
|
|
1
|
+
import type { EntityState, ProblemScoringMode, ProblemType } from '../enums/index.js';
|
|
2
|
+
import type { JudgeBaseDocument, ProblemBaseDocument, ProblemSettings, ProblemStatement, ProblemUser, TextLanguage } from '../types/index.js';
|
|
3
3
|
import type { EntityMembersDTO, EntityMembersResponseDTO } from './entity.js';
|
|
4
4
|
import type { EntityOwnerSystemSummaryListResponseDTO, UserOrganizationBasicInfoResponseDTO } from './user.js';
|
|
5
5
|
export interface ProblemJudgeSummaryListResponseDTO extends Pick<JudgeBaseDocument, 'isExternal' | 'isSubmitSupported' | 'name' | 'key'> {
|