@juki-team/commons 0.1.47 → 0.1.49
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 +1 -1
- 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 +3 -3
- 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 +2 -2
- 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} +1 -1
- 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 -3700
- package/dist/esm/index.js +0 -3420
- 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,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.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Subscriptions of the client. With the TOPIC channels they are not sent to the server anymore:
|
|
3
|
+
* they only say which channel the client attaches (`getChannelOfWebSocketSubscribeEvent`) and the dispatch key.
|
|
4
|
+
*/
|
|
5
|
+
export var WebSocketSubscriptionEvent;
|
|
6
|
+
(function (WebSocketSubscriptionEvent) {
|
|
7
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_CODE_RUN_STATUS"] = "SUBSCRIBE_CODE_RUN_STATUS";
|
|
8
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_CODE_RUN_STATUS"] = "UNSUBSCRIBE_CODE_RUN_STATUS";
|
|
9
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_SUBMISSION_RUN_STATUS"] = "SUBSCRIBE_SUBMISSION_RUN_STATUS";
|
|
10
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_SUBMISSION_RUN_STATUS"] = "UNSUBSCRIBE_SUBMISSION_RUN_STATUS";
|
|
11
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_GET_DATA"] = "SUBSCRIBE_GET_DATA";
|
|
12
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_GET_DATA"] = "SUBSCRIBE_GET_DATA";
|
|
13
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_PROBLEM_CRAWLED"] = "SUBSCRIBE_PROBLEM_CRAWLED";
|
|
14
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_PROBLEM_CRAWLED"] = "UNSUBSCRIBE_PROBLEM_CRAWLED";
|
|
15
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_SUBMISSIONS_CRAWL"] = "SUBSCRIBE_SUBMISSIONS_CRAWL";
|
|
16
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_SUBMISSIONS_CRAWL"] = "UNSUBSCRIBE_SUBMISSIONS_CRAWL";
|
|
17
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_CONTEST_CHANGES"] = "SUBSCRIBE_CONTEST_CHANGES";
|
|
18
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_CONTEST_CHANGES"] = "UNSUBSCRIBE_CONTEST_CHANGES";
|
|
19
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_USER_NOTIFICATION"] = "SUBSCRIBE_USER_NOTIFICATION";
|
|
20
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_USER_NOTIFICATION"] = "UNSUBSCRIBE_USER_NOTIFICATION";
|
|
21
|
+
WebSocketSubscriptionEvent["SUBSCRIBE_SUBMISSIONS_JUDGING"] = "SUBSCRIBE_SUBMISSIONS_JUDGING";
|
|
22
|
+
WebSocketSubscriptionEvent["UNSUBSCRIBE_SUBMISSIONS_JUDGING"] = "UNSUBSCRIBE_SUBMISSIONS_JUDGING";
|
|
23
|
+
})(WebSocketSubscriptionEvent || (WebSocketSubscriptionEvent = {}));
|
|
24
|
+
export var WebSocketResponseEvent;
|
|
25
|
+
(function (WebSocketResponseEvent) {
|
|
26
|
+
WebSocketResponseEvent["CODE_RUN_STATUS"] = "CODE_RUN_STATUS";
|
|
27
|
+
WebSocketResponseEvent["SUBMISSION_RUN_STATUS"] = "SUBMISSION_RUN_STATUS";
|
|
28
|
+
WebSocketResponseEvent["USER_MESSAGE"] = "USER_MESSAGE";
|
|
29
|
+
WebSocketResponseEvent["SEND_DATA_"] = "SEND_DATA_";
|
|
30
|
+
WebSocketResponseEvent["SEND_DATA_ECS_TASK_DEFINITIONS_LIST"] = "SEND_DATA_ECS_TASK_DEFINITIONS_LIST";
|
|
31
|
+
WebSocketResponseEvent["SEND_DATA_ECS_TASKS_LIST"] = "SEND_DATA_ECS_TASKS_LIST";
|
|
32
|
+
WebSocketResponseEvent["SEND_DATA_EC2_INSTANCES_LIST"] = "SEND_DATA_EC2_INSTANCES_LIST";
|
|
33
|
+
WebSocketResponseEvent["SEND_DATA_SSM_SESSIONS_LIST"] = "SEND_DATA_SSM_SESSIONS_LIST";
|
|
34
|
+
WebSocketResponseEvent["SEND_DATA_RUN_COMMAND"] = "SEND_DATA_RUN_COMMAND";
|
|
35
|
+
WebSocketResponseEvent["PROBLEM_CRAWLED"] = "PROBLEM_CRAWLED";
|
|
36
|
+
WebSocketResponseEvent["SUBMISSIONS_CRAWL"] = "SUBMISSIONS_CRAWL";
|
|
37
|
+
WebSocketResponseEvent["CONTEST_CHANGES"] = "CONTEST_CHANGES";
|
|
38
|
+
WebSocketResponseEvent["USER_NOTIFICATION_"] = "USER_NOTIFICATION_";
|
|
39
|
+
WebSocketResponseEvent["USER_NOTIFICATION_SUBMISSION"] = "USER_NOTIFICATION_SUBMISSION";
|
|
40
|
+
WebSocketResponseEvent["USER_NOTIFICATION_CONTEST_CLARIFICATION"] = "USER_NOTIFICATION_CONTEST_CLARIFICATION";
|
|
41
|
+
WebSocketResponseEvent["SUBMISSION_JUDGING"] = "SUBMISSION_JUDGING";
|
|
42
|
+
})(WebSocketResponseEvent || (WebSocketResponseEvent = {}));
|
|
43
|
+
/**
|
|
44
|
+
* Roles of a contest, with the same names as the contest members in the DB.
|
|
45
|
+
* Each role has its own Ably channel: `contest:{contestKey}:{role}` (see `CHANNEL_CONTEST`).
|
|
46
|
+
* The inclusions follow `getContestAccessPermissions`:
|
|
47
|
+
* spectators ⊇ managers ⊇ administrators, spectators ⊇ participants, spectators ⊇ guests
|
|
48
|
+
*/
|
|
49
|
+
export var ContestChannelRole;
|
|
50
|
+
(function (ContestChannelRole) {
|
|
51
|
+
ContestChannelRole["ADMINISTRATORS"] = "administrators";
|
|
52
|
+
ContestChannelRole["MANAGERS"] = "managers";
|
|
53
|
+
ContestChannelRole["PARTICIPANTS"] = "participants";
|
|
54
|
+
ContestChannelRole["GUESTS"] = "guests";
|
|
55
|
+
ContestChannelRole["SPECTATORS"] = "spectators";
|
|
56
|
+
})(ContestChannelRole || (ContestChannelRole = {}));
|
|
57
|
+
/**
|
|
58
|
+
* Roles of a problem, the ones computed by `getProblemAccessPermissions` (backend).
|
|
59
|
+
* Each role has its own Ably channel: `problem:{problemKey}:{role}` (see `CHANNEL_PROBLEM`).
|
|
60
|
+
*/
|
|
61
|
+
export var ProblemChannelRole;
|
|
62
|
+
(function (ProblemChannelRole) {
|
|
63
|
+
ProblemChannelRole["ADMINISTRATORS"] = "administrators";
|
|
64
|
+
ProblemChannelRole["MANAGERS"] = "managers";
|
|
65
|
+
ProblemChannelRole["SPECTATORS"] = "spectators";
|
|
66
|
+
})(ProblemChannelRole || (ProblemChannelRole = {}));
|
|
67
|
+
/**
|
|
68
|
+
* Roles of the public channels of a user: `user:{userKey}:{role}` (see `CHANNEL_USER_ROLE`), by its public key
|
|
69
|
+
* (`getUserKey(nickname, organizationKey)`) like problems and contests.
|
|
70
|
+
* There are no per-user permissions: `spectators` is everyone who can list the submissions of the user.
|
|
71
|
+
* The private channel of the user is `user:{userId}` (see `CHANNEL_USER`).
|
|
72
|
+
*/
|
|
73
|
+
export var UserChannelRole;
|
|
74
|
+
(function (UserChannelRole) {
|
|
75
|
+
UserChannelRole["SPECTATORS"] = "spectators";
|
|
76
|
+
})(UserChannelRole || (UserChannelRole = {}));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MemberRole, AssignmentType, TeamStatus, UserTeamStatus } from './prisma';
|
|
2
|
-
import { UserBasic, UserProfile } from './users';
|
|
1
|
+
import { MemberRole, AssignmentType, TeamStatus, UserTeamStatus } from './prisma.js';
|
|
2
|
+
import { UserBasic, UserProfile } from './users.js';
|
|
3
3
|
export interface TeamMember {
|
|
4
4
|
user: UserProfile;
|
|
5
5
|
role: MemberRole;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ProfileSetting } from './account';
|
|
2
|
-
import { CourseRole, Language, SystemRole, TeamRole, Theme, UserRole } from './prisma';
|
|
1
|
+
import { ProfileSetting } from './account.js';
|
|
2
|
+
import { CourseRole, Language, SystemRole, TeamRole, Theme, UserRole } from './prisma.js';
|
|
3
3
|
export interface UserBasicInfo {
|
|
4
4
|
nickname: string;
|
|
5
5
|
imageUrl: string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ProfileSetting } from './account.js';
|
|
2
|
+
export var DataViewMode;
|
|
3
|
+
(function (DataViewMode) {
|
|
4
|
+
DataViewMode["CARDS"] = "CARDS";
|
|
5
|
+
DataViewMode["ROWS"] = "ROWS";
|
|
6
|
+
})(DataViewMode || (DataViewMode = {}));
|
|
7
|
+
export var MenuViewMode;
|
|
8
|
+
(function (MenuViewMode) {
|
|
9
|
+
MenuViewMode["HORIZONTAL"] = "HORIZONTAL";
|
|
10
|
+
MenuViewMode["VERTICAL"] = "VERTICAL";
|
|
11
|
+
})(MenuViewMode || (MenuViewMode = {}));
|
|
12
|
+
export var Role;
|
|
13
|
+
(function (Role) {
|
|
14
|
+
Role["SUPER_ADMIN"] = "SUPER_ADMIN";
|
|
15
|
+
Role["ADMIN"] = "ADMIN";
|
|
16
|
+
Role["MASTER"] = "MASTER";
|
|
17
|
+
Role["MANAGER"] = "MANAGER";
|
|
18
|
+
Role["CREATOR"] = "CREATOR";
|
|
19
|
+
Role["REGULAR"] = "REGULAR";
|
|
20
|
+
Role["LIMITED"] = "LIMITED";
|
|
21
|
+
Role["GUEST"] = "GUEST";
|
|
22
|
+
Role["RESTRICTED"] = "RESTRICTED";
|
|
23
|
+
})(Role || (Role = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export var WorkingIn;
|
|
2
|
+
(function (WorkingIn) {
|
|
3
|
+
WorkingIn["NOTHING"] = "NOTHING";
|
|
4
|
+
WorkingIn["SEND_SUBMISSION"] = "SEND_SUBMISSION";
|
|
5
|
+
WorkingIn["TRACKING_SUBMISSION"] = "TRACKING_SUBMISSION";
|
|
6
|
+
WorkingIn["CRAWLING_LANGUAGES"] = "CRAWLING_LANGUAGES";
|
|
7
|
+
WorkingIn["CRAWLING_PROBLEM_DATA"] = "CRAWLING_PROBLEM_DATA";
|
|
8
|
+
})(WorkingIn || (WorkingIn = {}));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { EntityMembers } from './entity';
|
|
2
|
-
import { Theme } from './prisma';
|
|
3
|
-
import { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet';
|
|
1
|
+
import { EntityMembers } from './entity.js';
|
|
2
|
+
import { Theme } from './prisma.js';
|
|
3
|
+
import { BasicWorksheet, BodyWorksheet, NewPageSheet } from './sheet.js';
|
|
4
4
|
export declare enum AspectRatio {
|
|
5
5
|
RATIO_21_9 = "21:9",
|
|
6
6
|
RATIO_20_9 = "20:9",
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export var AspectRatio;
|
|
2
|
+
(function (AspectRatio) {
|
|
3
|
+
AspectRatio["RATIO_21_9"] = "21:9";
|
|
4
|
+
AspectRatio["RATIO_20_9"] = "20:9";
|
|
5
|
+
AspectRatio["RATIO_16_9"] = "16:9";
|
|
6
|
+
AspectRatio["RATIO_16_10"] = "16:10";
|
|
7
|
+
AspectRatio["RATIO_3_2"] = "3:2";
|
|
8
|
+
AspectRatio["RATIO_4_3"] = "4:3";
|
|
9
|
+
AspectRatio["RATIO_5_4"] = "5:4";
|
|
10
|
+
AspectRatio["RATIO_1_1"] = "1:1";
|
|
11
|
+
})(AspectRatio || (AspectRatio = {}));
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@juki-team/commons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.49",
|
|
4
4
|
"author": "juki-team",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "dist/
|
|
8
|
-
"
|
|
9
|
-
"
|
|
7
|
+
"main": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"types": "./dist/
|
|
13
|
-
"import": "./dist/
|
|
14
|
-
"require": "./dist/cjs/index.cjs"
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"import": "./dist/index.js"
|
|
15
14
|
}
|
|
16
15
|
},
|
|
17
16
|
"files": [
|
|
@@ -27,8 +26,6 @@
|
|
|
27
26
|
},
|
|
28
27
|
"devDependencies": {
|
|
29
28
|
"prettier": "^3.8.1",
|
|
30
|
-
"rollup": "^4.57.1",
|
|
31
|
-
"rollup-plugin-typescript2": "^0.36.0",
|
|
32
29
|
"typedoc": "^0.28.16",
|
|
33
30
|
"typescript": "^6.0.3"
|
|
34
31
|
},
|
|
@@ -37,8 +34,8 @@
|
|
|
37
34
|
},
|
|
38
35
|
"scripts": {
|
|
39
36
|
"docs": "typedoc src/index.ts",
|
|
40
|
-
"watch": "
|
|
41
|
-
"build": "rm -rf docs && rm -rf dist &&
|
|
37
|
+
"watch": "tsc --watch",
|
|
38
|
+
"build": "rm -rf docs && rm -rf dist && tsc && pnpm run docs",
|
|
42
39
|
"push-commit": "f() { git add -A && git commit -m \"${1:-chore}\" && pnpm push; }; f",
|
|
43
40
|
"push": "f() { pnpm version patch --no-git-tag-version --no-git-checks && pnpm build && pnpm publish --tag release-0.1 --no-git-checks && version=\"v$(node -p \"require('./package.json').version\")\" && git add -A && git commit -m $version && git tag -a $version -m $version && git push origin v0.1.x --follow-tags; }; f"
|
|
44
41
|
}
|