track-cli 3.1.0 → 4.0.0-rc0

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.
@@ -1,211 +0,0 @@
1
- export declare const ApplicantExamStatus: {
2
- readonly Unread: 1;
3
- readonly InProgress: 2;
4
- readonly Submitted: 3;
5
- readonly Expired: 4;
6
- readonly Canceled: 5;
7
- readonly Reviewed: 6;
8
- };
9
- export type ApplicantExamStatus = (typeof ApplicantExamStatus)[keyof typeof ApplicantExamStatus];
10
- export declare const ChallengeStyle: {
11
- readonly Quiz: 1;
12
- readonly Development: 2;
13
- readonly Algorithm: 3;
14
- readonly Ai: 4;
15
- };
16
- export type ChallengeStyle = (typeof ChallengeStyle)[keyof typeof ChallengeStyle];
17
- export declare const ChallengeResultStatus: {
18
- readonly Prepared: 0;
19
- readonly Started: 1;
20
- readonly InProgress: 2;
21
- readonly Finished: 3;
22
- readonly NotModified: 4;
23
- readonly CanRestart: 5;
24
- readonly ScoringWaiting: 6;
25
- };
26
- export type ChallengeResultStatus = (typeof ChallengeResultStatus)[keyof typeof ChallengeResultStatus];
27
- export declare const SpokenLanguage: {
28
- readonly English: "en";
29
- readonly Japanese: "ja";
30
- };
31
- export type SpokenLanguage = (typeof SpokenLanguage)[keyof typeof SpokenLanguage];
32
- export type ProgrammingLanguage = number;
33
- export interface ProgrammingLanguageInfo {
34
- value: ProgrammingLanguage;
35
- displayOrder: number;
36
- messageKey: string;
37
- displayString: string;
38
- }
39
- export interface ApplicantExamForNoAuth {
40
- id: number;
41
- applicantId: number;
42
- examId: number;
43
- organizationId: number;
44
- organizationImageUrl?: string;
45
- organizationName: string;
46
- examName: string;
47
- urlToken: string;
48
- status: ApplicantExamStatus;
49
- openedAt?: string;
50
- }
51
- export interface ApplicantExam {
52
- id: number;
53
- applicantId: number;
54
- examId: number;
55
- deliveryId: number;
56
- deadline: string;
57
- urlToken: string;
58
- status: ApplicantExamStatus;
59
- isTest: boolean;
60
- createdAt: string;
61
- updatedAt: string;
62
- }
63
- export interface Applicant {
64
- id: number;
65
- organizationId: number;
66
- userId?: number;
67
- email: string;
68
- fullName?: string;
69
- createdAt: string;
70
- updatedAt: string;
71
- }
72
- export interface ChallengesSet {
73
- challenges: ExamSessionChallenge[];
74
- }
75
- export interface ExamSession {
76
- id: number;
77
- deadline: string;
78
- urlToken: string;
79
- status: ApplicantExamStatus;
80
- applicant: Applicant;
81
- challengesSets: ChallengesSet[];
82
- results: ChallengeResult[];
83
- }
84
- export interface ExamSessionChallenge {
85
- id: number;
86
- challengeVersionId: number;
87
- style: ChallengeStyle;
88
- title: string;
89
- description?: string;
90
- timeLimitMinutes?: number;
91
- displayOrder: number;
92
- weight: number;
93
- localExamEnabled: boolean;
94
- openTestcases?: number;
95
- programmingLanguages: ProgrammingLanguage[];
96
- }
97
- export interface ChallengeResult {
98
- id: number;
99
- challengeId: number;
100
- challengeVersionId: number;
101
- applicantId: number;
102
- applicantExamId: number;
103
- dueDate?: string;
104
- storageId: string;
105
- status: ChallengeResultStatus;
106
- openedAt?: string;
107
- finishedAt?: string;
108
- totalTestcases?: number;
109
- successfulTestcases?: number;
110
- editorScore?: number;
111
- testOutput?: string;
112
- lastScoredAt?: string;
113
- programmingLanguage?: ProgrammingLanguage;
114
- appealComment?: string;
115
- createdAt: string;
116
- updatedAt: string;
117
- style?: ChallengeStyle;
118
- weight?: number;
119
- score?: number;
120
- }
121
- export interface CodingContext {
122
- challengeId: number;
123
- challengeVersionId: number;
124
- challengeResultId: number;
125
- title: string;
126
- urlForPresign: string;
127
- urlForOrcaToken?: string;
128
- methodForPresign: string;
129
- urlForSave?: string;
130
- tarballUrl: string;
131
- tarballUrls: string[];
132
- allowSave: boolean;
133
- allowEdit: boolean;
134
- programmingLanguages: ProgrammingLanguage[];
135
- selectedLanguage?: ProgrammingLanguage;
136
- challengeLanguage: SpokenLanguage;
137
- settings: ChallengeSettings;
138
- answers: CodingAnswers;
139
- orcaHost?: string;
140
- }
141
- export declare const FileListType: {
142
- readonly All: 0;
143
- readonly ReadOnlyChallengeFiles: 1;
144
- readonly EditableChallengeFiles: 2;
145
- readonly UserAddedFiles: 3;
146
- readonly Editable: 4;
147
- };
148
- export type FileListType = (typeof FileListType)[keyof typeof FileListType];
149
- export interface ChallengeSettings {
150
- files: FileTree;
151
- hiddenFiles: string[];
152
- testExcludes: string[];
153
- images: string[];
154
- build: string[];
155
- test: string;
156
- mainFile?: string;
157
- allowNewFile: boolean;
158
- languages: string[];
159
- sample?: string;
160
- envConfig?: EnvSettings;
161
- initialize: string[];
162
- }
163
- export type FileTree = {
164
- [key: string]: FileTree | boolean;
165
- };
166
- export interface EnvSettings {
167
- imageName: string;
168
- workingDir?: string;
169
- baseDir?: string;
170
- username?: string;
171
- variables?: Record<string, string>;
172
- cacheDirs: string[];
173
- }
174
- export declare const EnvSettings: {
175
- default: EnvSettings;
176
- };
177
- export interface TestCases {
178
- open: number;
179
- secret: number;
180
- }
181
- export interface CodingAnswers {
182
- build?: string[];
183
- appCommand?: string;
184
- mainFile?: string;
185
- addedFiles?: string[];
186
- fileVersions: object;
187
- envConfig?: EnvSettings;
188
- }
189
- export interface SaveFilesRequest {
190
- versionId: number;
191
- addedFiles: string[];
192
- updatedFiles: Record<string, string>;
193
- }
194
- export interface ProgrammingLanguageInfo {
195
- value: ProgrammingLanguage;
196
- displayOrder: number;
197
- messageKey: string;
198
- displayString: string;
199
- }
200
- export interface ApplicationExamForNoAuth {
201
- id: number;
202
- applicantId: number;
203
- examId: number;
204
- organizationId: number;
205
- organizationImageUrl?: string;
206
- organizationName: string;
207
- examName: string;
208
- urlToken: string;
209
- status: ApplicantExamStatus;
210
- openedAt?: string;
211
- }
@@ -1,40 +0,0 @@
1
- export const ApplicantExamStatus = {
2
- Unread: 1,
3
- InProgress: 2,
4
- Submitted: 3,
5
- Expired: 4,
6
- Canceled: 5,
7
- Reviewed: 6,
8
- };
9
- export const ChallengeStyle = {
10
- Quiz: 1,
11
- Development: 2,
12
- Algorithm: 3,
13
- Ai: 4,
14
- };
15
- export const ChallengeResultStatus = {
16
- Prepared: 0,
17
- Started: 1,
18
- InProgress: 2,
19
- Finished: 3,
20
- NotModified: 4,
21
- CanRestart: 5,
22
- ScoringWaiting: 6,
23
- };
24
- export const SpokenLanguage = {
25
- English: "en",
26
- Japanese: "ja",
27
- };
28
- export const FileListType = {
29
- All: 0,
30
- ReadOnlyChallengeFiles: 1,
31
- EditableChallengeFiles: 2,
32
- UserAddedFiles: 3,
33
- Editable: 4,
34
- };
35
- export const EnvSettings = {
36
- default: {
37
- imageName: "givery/codecheck:latest",
38
- cacheDirs: [],
39
- },
40
- };