@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.
Files changed (286) hide show
  1. package/dist/constants/commons.d.ts +2 -2
  2. package/dist/constants/commons.js +2 -2
  3. package/dist/constants/company.d.ts +1 -1
  4. package/dist/constants/company.js +1 -1
  5. package/dist/constants/contest.d.ts +1 -1
  6. package/dist/constants/contest.js +1 -2
  7. package/dist/constants/course.d.ts +1 -1
  8. package/dist/constants/course.js +1 -1
  9. package/dist/constants/entity.js +1 -1
  10. package/dist/constants/file.d.ts +1 -2
  11. package/dist/constants/file.js +1 -2
  12. package/dist/constants/index.d.ts +1 -1
  13. package/dist/constants/index.js +1 -1
  14. package/dist/constants/judge.d.ts +1 -2
  15. package/dist/constants/judge.js +1 -2
  16. package/dist/constants/problem.d.ts +3 -4
  17. package/dist/constants/problem.js +1 -2
  18. package/dist/constants/services.d.ts +1 -1
  19. package/dist/constants/services.js +1 -1
  20. package/dist/constants/system.d.ts +1 -1
  21. package/dist/constants/system.js +1 -1
  22. package/dist/constants/teams.d.ts +1 -2
  23. package/dist/constants/teams.js +1 -2
  24. package/dist/constants/user.d.ts +1 -1
  25. package/dist/constants/user.js +1 -1
  26. package/dist/constants/worksheet.d.ts +2 -1
  27. package/dist/constants/worksheet.js +1 -1
  28. package/dist/dto/class.d.ts +9 -8
  29. package/dist/dto/contest.d.ts +2 -8
  30. package/dist/dto/contest.js +1 -7
  31. package/dist/dto/entity.d.ts +1 -5
  32. package/dist/dto/entity.js +1 -5
  33. package/dist/dto/file.d.ts +2 -1
  34. package/dist/dto/index.d.ts +2 -1
  35. package/dist/dto/index.js +2 -1
  36. package/dist/dto/organization.d.ts +1 -2
  37. package/dist/dto/problem.d.ts +2 -2
  38. package/dist/dto/socket.d.ts +41 -41
  39. package/dist/dto/submission.d.ts +2 -2
  40. package/dist/dto/user.d.ts +1 -1
  41. package/dist/dto/{virtual-user.d.ts → virtualUser.d.ts} +1 -2
  42. package/dist/dto/{worksheet-submissions.d.ts → worksheetSubmission.d.ts} +2 -1
  43. package/dist/dto/worksheetSubmission.js +1 -0
  44. package/dist/enums/index.d.ts +2 -0
  45. package/dist/enums/index.js +2 -0
  46. package/dist/enums/manual/AspectRatio.d.ts +11 -0
  47. package/dist/enums/manual/AspectRatio.js +10 -0
  48. package/dist/enums/manual/AssignmentClass.d.ts +7 -0
  49. package/dist/enums/manual/AssignmentClass.js +6 -0
  50. package/dist/enums/manual/AssignmentType.d.ts +7 -0
  51. package/dist/enums/manual/AssignmentType.js +6 -0
  52. package/dist/enums/manual/CodeLanguage.d.ts +40 -0
  53. package/dist/enums/manual/CodeLanguage.js +40 -0
  54. package/dist/enums/manual/CollectionKey.d.ts +24 -0
  55. package/dist/enums/manual/CollectionKey.js +23 -0
  56. package/dist/enums/manual/ContestProblemBlockedByType.d.ts +7 -0
  57. package/dist/enums/manual/ContestProblemBlockedByType.js +6 -0
  58. package/dist/enums/manual/ContestTimeStatus.d.ts +6 -0
  59. package/dist/enums/manual/ContestTimeStatus.js +5 -0
  60. package/dist/enums/manual/DataViewMode.d.ts +5 -0
  61. package/dist/enums/manual/DataViewMode.js +4 -0
  62. package/dist/enums/manual/EntityAccess.d.ts +7 -0
  63. package/dist/enums/manual/EntityAccess.js +6 -0
  64. package/dist/enums/manual/EntityCollection.d.ts +9 -0
  65. package/dist/enums/manual/EntityCollection.js +8 -0
  66. package/dist/enums/manual/EntityMembersRank.d.ts +6 -0
  67. package/dist/enums/manual/EntityMembersRank.js +5 -0
  68. package/dist/enums/manual/EntityState.d.ts +5 -0
  69. package/dist/enums/manual/EntityState.js +4 -0
  70. package/dist/enums/manual/EntityStatus.d.ts +7 -0
  71. package/dist/enums/manual/EntityStatus.js +6 -0
  72. package/dist/enums/manual/ErrorCode.d.ts +120 -0
  73. package/dist/enums/manual/ErrorCode.js +129 -0
  74. package/dist/enums/manual/FileMemberRole.d.ts +5 -0
  75. package/dist/enums/manual/FileMemberRole.js +4 -0
  76. package/dist/enums/manual/FilesJukiPub.d.ts +8 -0
  77. package/dist/enums/manual/FilesJukiPub.js +7 -0
  78. package/dist/enums/manual/HTTPMethod.d.ts +8 -0
  79. package/dist/enums/manual/HTTPMethod.js +7 -0
  80. package/dist/enums/manual/Judge.d.ts +12 -0
  81. package/dist/enums/manual/Judge.js +11 -0
  82. package/dist/enums/manual/Language.d.ts +5 -0
  83. package/dist/enums/manual/Language.js +4 -0
  84. package/dist/enums/manual/LogLevel.d.ts +9 -0
  85. package/dist/enums/manual/LogLevel.js +8 -0
  86. package/dist/enums/manual/LogOperation.d.ts +6 -0
  87. package/dist/enums/manual/LogOperation.js +5 -0
  88. package/dist/enums/manual/MemberRole.d.ts +9 -0
  89. package/dist/enums/manual/MemberRole.js +8 -0
  90. package/dist/enums/manual/MemberType.d.ts +5 -0
  91. package/dist/enums/manual/MemberType.js +4 -0
  92. package/dist/enums/manual/MenuViewMode.d.ts +5 -0
  93. package/dist/enums/manual/MenuViewMode.js +4 -0
  94. package/dist/enums/manual/NotificationType.d.ts +8 -0
  95. package/dist/enums/manual/NotificationType.js +7 -0
  96. package/dist/enums/manual/OrganizationLogoType.d.ts +7 -0
  97. package/dist/enums/manual/OrganizationLogoType.js +6 -0
  98. package/dist/enums/manual/ProblemInput.d.ts +5 -0
  99. package/dist/enums/manual/ProblemInput.js +4 -0
  100. package/dist/enums/manual/ProblemOutput.d.ts +6 -0
  101. package/dist/enums/manual/ProblemOutput.js +5 -0
  102. package/dist/enums/manual/ProfileSetting.d.ts +10 -0
  103. package/dist/enums/manual/ProfileSetting.js +9 -0
  104. package/dist/enums/manual/QuizScoringMode.d.ts +5 -0
  105. package/dist/enums/manual/QuizScoringMode.js +4 -0
  106. package/dist/enums/manual/Role.d.ts +12 -0
  107. package/dist/enums/manual/Role.js +11 -0
  108. package/dist/enums/manual/RunnerType.d.ts +5 -0
  109. package/dist/enums/manual/RunnerType.js +4 -0
  110. package/dist/enums/manual/ScopeData.d.ts +7 -0
  111. package/dist/enums/manual/ScopeData.js +6 -0
  112. package/dist/enums/manual/Status.d.ts +7 -0
  113. package/dist/enums/manual/Status.js +6 -0
  114. package/dist/enums/manual/TeamStatus.d.ts +6 -0
  115. package/dist/enums/manual/TeamStatus.js +5 -0
  116. package/dist/enums/manual/Theme.d.ts +5 -0
  117. package/dist/enums/manual/Theme.js +4 -0
  118. package/dist/enums/manual/TypeTestCase.d.ts +5 -0
  119. package/dist/enums/manual/TypeTestCase.js +4 -0
  120. package/dist/enums/manual/UserTeamStatus.d.ts +6 -0
  121. package/dist/enums/manual/UserTeamStatus.js +5 -0
  122. package/dist/enums/manual/WebSocketMessageEvent.d.ts +8 -0
  123. package/dist/enums/manual/WebSocketMessageEvent.js +7 -0
  124. package/dist/enums/manual/WebSocketResponseEvent.d.ts +22 -0
  125. package/dist/enums/manual/WebSocketResponseEvent.js +21 -0
  126. package/dist/enums/manual/WebSocketSubscriptionEvent.d.ts +19 -0
  127. package/dist/enums/manual/WebSocketSubscriptionEvent.js +18 -0
  128. package/dist/enums/manual/WorksheetType.d.ts +11 -0
  129. package/dist/enums/manual/WorksheetType.js +10 -0
  130. package/dist/enums/manual/index.d.ts +42 -0
  131. package/dist/enums/manual/index.js +42 -0
  132. package/dist/helpers/array.d.ts +3 -0
  133. package/dist/helpers/array.js +28 -0
  134. package/dist/helpers/{class.js → assignment.js} +1 -1
  135. package/dist/helpers/console.d.ts +3 -0
  136. package/dist/helpers/console.js +9 -0
  137. package/dist/{date/index.d.ts → helpers/date.d.ts} +11 -0
  138. package/dist/{date/index.js → helpers/date.js} +24 -0
  139. package/dist/helpers/document.d.ts +2 -11
  140. package/dist/helpers/document.js +1 -21
  141. package/dist/helpers/duration.d.ts +2 -0
  142. package/dist/helpers/duration.js +57 -0
  143. package/dist/helpers/entity.d.ts +11 -0
  144. package/dist/helpers/entity.js +20 -0
  145. package/dist/{errors/index.d.ts → helpers/errors.d.ts} +1 -1
  146. package/dist/helpers/file.d.ts +6 -1
  147. package/dist/helpers/file.js +23 -2
  148. package/dist/helpers/http.d.ts +1 -0
  149. package/dist/helpers/http.js +8 -0
  150. package/dist/helpers/index.d.ts +12 -3
  151. package/dist/helpers/index.js +12 -3
  152. package/dist/helpers/json.d.ts +3 -0
  153. package/dist/helpers/json.js +31 -0
  154. package/dist/helpers/judging.d.ts +1 -1
  155. package/dist/helpers/judging.js +1 -1
  156. package/dist/helpers/object.d.ts +2 -0
  157. package/dist/helpers/object.js +28 -0
  158. package/dist/helpers/problem.d.ts +2 -0
  159. package/dist/helpers/problem.js +1 -0
  160. package/dist/helpers/responses.d.ts +2 -2
  161. package/dist/helpers/responses.js +4 -3
  162. package/dist/helpers/socket.d.ts +2 -1
  163. package/dist/helpers/socket.js +4 -5
  164. package/dist/helpers/string.d.ts +7 -0
  165. package/dist/helpers/string.js +52 -0
  166. package/dist/helpers/worksheet.d.ts +1 -1
  167. package/dist/helpers/worksheet.js +1 -1
  168. package/dist/index.d.ts +1 -4
  169. package/dist/index.js +1 -4
  170. package/dist/types/assignment.d.ts +22 -0
  171. package/dist/types/assignment.js +1 -0
  172. package/dist/types/class.d.ts +3 -28
  173. package/dist/types/class.js +1 -7
  174. package/dist/types/contest.d.ts +3 -9
  175. package/dist/types/contest.js +1 -6
  176. package/dist/types/course.d.ts +2 -1
  177. package/dist/types/device.d.ts +7 -0
  178. package/dist/types/device.js +1 -0
  179. package/dist/types/duration.d.ts +7 -0
  180. package/dist/types/duration.js +1 -0
  181. package/dist/types/entity.d.ts +1 -45
  182. package/dist/types/entity.js +1 -50
  183. package/dist/types/file.d.ts +1 -12
  184. package/dist/types/file.js +1 -13
  185. package/dist/types/group.d.ts +2 -2
  186. package/dist/types/id.d.ts +3 -0
  187. package/dist/types/id.js +1 -0
  188. package/dist/types/index.d.ts +23 -23
  189. package/dist/types/index.js +1 -23
  190. package/dist/types/judge.d.ts +1 -17
  191. package/dist/types/judge.js +1 -17
  192. package/dist/types/markdown.d.ts +3 -2
  193. package/dist/types/mermaid.d.ts +3 -2
  194. package/dist/types/{problems.d.ts → problem.d.ts} +2 -15
  195. package/dist/types/problem.js +1 -0
  196. package/dist/types/services.d.ts +1 -135
  197. package/dist/types/services.js +1 -147
  198. package/dist/types/socket.d.ts +2 -47
  199. package/dist/types/socket.js +1 -49
  200. package/dist/types/teams.d.ts +2 -25
  201. package/dist/types/teams.js +1 -28
  202. package/dist/types/text.d.ts +4 -0
  203. package/dist/types/text.js +1 -0
  204. package/dist/types/{users.d.ts → user.d.ts} +1 -29
  205. package/dist/types/user.js +1 -0
  206. package/dist/types/worksheet.d.ts +88 -11
  207. package/dist/types/worksheet.js +1 -11
  208. package/package.json +8 -21
  209. package/dist/dto/worksheet-submissions.js +0 -1
  210. package/dist/helpers/commons.d.ts +0 -33
  211. package/dist/helpers/commons.js +0 -191
  212. package/dist/helpers/time.d.ts +0 -13
  213. package/dist/helpers/time.js +0 -101
  214. package/dist/types/account.d.ts +0 -9
  215. package/dist/types/account.js +0 -10
  216. package/dist/types/commons.d.ts +0 -84
  217. package/dist/types/commons.js +0 -69
  218. package/dist/types/company.d.ts +0 -6
  219. package/dist/types/company.js +0 -7
  220. package/dist/types/notification.d.ts +0 -7
  221. package/dist/types/notification.js +0 -8
  222. package/dist/types/problems.js +0 -16
  223. package/dist/types/sheet.d.ts +0 -104
  224. package/dist/types/sheet.js +0 -16
  225. package/dist/types/users.js +0 -33
  226. package/dist/constants/{time.d.ts → duration.d.ts} +0 -0
  227. package/dist/constants/{time.js → duration.js} +0 -0
  228. package/dist/dto/{virtual-user.js → virtualUser.js} +0 -0
  229. package/dist/{prisma/enums → enums/prisma}/AssignmentClassType.d.ts +0 -0
  230. package/dist/{prisma/enums → enums/prisma}/AssignmentClassType.js +0 -0
  231. package/dist/{prisma/enums → enums/prisma}/ContestEventAction.d.ts +0 -0
  232. package/dist/{prisma/enums → enums/prisma}/ContestEventAction.js +0 -0
  233. package/dist/{prisma/enums → enums/prisma}/ContestProblemPrerequisiteType.d.ts +0 -0
  234. package/dist/{prisma/enums → enums/prisma}/ContestProblemPrerequisiteType.js +0 -0
  235. package/dist/{prisma/enums → enums/prisma}/ContestRole.d.ts +0 -0
  236. package/dist/{prisma/enums → enums/prisma}/ContestRole.js +0 -0
  237. package/dist/{prisma/enums → enums/prisma}/ContestStatus.d.ts +0 -0
  238. package/dist/{prisma/enums → enums/prisma}/ContestStatus.js +0 -0
  239. package/dist/{prisma/enums → enums/prisma}/CourseRole.d.ts +0 -0
  240. package/dist/{prisma/enums → enums/prisma}/CourseRole.js +0 -0
  241. package/dist/{prisma/enums → enums/prisma}/EntityObjectType.d.ts +0 -0
  242. package/dist/{prisma/enums → enums/prisma}/EntityObjectType.js +0 -0
  243. package/dist/{prisma/enums → enums/prisma}/EntityRole.d.ts +0 -0
  244. package/dist/{prisma/enums → enums/prisma}/EntityRole.js +0 -0
  245. package/dist/{prisma/enums → enums/prisma}/EntitySubjectType.d.ts +0 -0
  246. package/dist/{prisma/enums → enums/prisma}/EntitySubjectType.js +0 -0
  247. package/dist/{prisma/enums → enums/prisma}/FileRole.d.ts +0 -0
  248. package/dist/{prisma/enums → enums/prisma}/FileRole.js +0 -0
  249. package/dist/{prisma/enums → enums/prisma}/FileType.d.ts +0 -0
  250. package/dist/{prisma/enums → enums/prisma}/FileType.js +0 -0
  251. package/dist/{prisma/enums → enums/prisma}/GroupType.d.ts +0 -0
  252. package/dist/{prisma/enums → enums/prisma}/GroupType.js +0 -0
  253. package/dist/{prisma/enums → enums/prisma}/JudgeType.d.ts +0 -0
  254. package/dist/{prisma/enums → enums/prisma}/JudgeType.js +0 -0
  255. package/dist/{prisma/enums → enums/prisma}/OrganizationPlan.d.ts +0 -0
  256. package/dist/{prisma/enums → enums/prisma}/OrganizationPlan.js +0 -0
  257. package/dist/{prisma/enums → enums/prisma}/ProblemRole.d.ts +0 -0
  258. package/dist/{prisma/enums → enums/prisma}/ProblemRole.js +0 -0
  259. package/dist/{prisma/enums → enums/prisma}/ProblemScoringMode.d.ts +0 -0
  260. package/dist/{prisma/enums → enums/prisma}/ProblemScoringMode.js +0 -0
  261. package/dist/{prisma/enums → enums/prisma}/ProblemType.d.ts +0 -0
  262. package/dist/{prisma/enums → enums/prisma}/ProblemType.js +0 -0
  263. package/dist/{prisma/enums → enums/prisma}/ProblemVerdict.d.ts +0 -0
  264. package/dist/{prisma/enums → enums/prisma}/ProblemVerdict.js +0 -0
  265. package/dist/{prisma/enums → enums/prisma}/ShareLinkVisibility.d.ts +0 -0
  266. package/dist/{prisma/enums → enums/prisma}/ShareLinkVisibility.js +0 -0
  267. package/dist/{prisma/enums → enums/prisma}/SubmissionRunStatus.d.ts +0 -0
  268. package/dist/{prisma/enums → enums/prisma}/SubmissionRunStatus.js +0 -0
  269. package/dist/{prisma/enums → enums/prisma}/SystemRole.d.ts +0 -0
  270. package/dist/{prisma/enums → enums/prisma}/SystemRole.js +0 -0
  271. package/dist/{prisma/enums → enums/prisma}/TeamRole.d.ts +0 -0
  272. package/dist/{prisma/enums → enums/prisma}/TeamRole.js +0 -0
  273. package/dist/{prisma/enums → enums/prisma}/TelemetryType.d.ts +0 -0
  274. package/dist/{prisma/enums → enums/prisma}/TelemetryType.js +0 -0
  275. package/dist/{prisma/enums → enums/prisma}/UserRole.d.ts +0 -0
  276. package/dist/{prisma/enums → enums/prisma}/UserRole.js +0 -0
  277. package/dist/{prisma/enums → enums/prisma}/WorkingIn.d.ts +0 -0
  278. package/dist/{prisma/enums → enums/prisma}/WorkingIn.js +0 -0
  279. package/dist/{prisma/enums → enums/prisma}/WorksheetContentType.d.ts +0 -0
  280. package/dist/{prisma/enums → enums/prisma}/WorksheetContentType.js +0 -0
  281. package/dist/{prisma/enums → enums/prisma}/index.d.ts +11 -11
  282. package/dist/{prisma/enums → enums/prisma}/index.js +11 -11
  283. /package/dist/helpers/{class.d.ts → assignment.d.ts} +0 -0
  284. /package/dist/{errors/index.js → helpers/errors.js} +0 -0
  285. /package/dist/{number/index.d.ts → helpers/number.d.ts} +0 -0
  286. /package/dist/{number/index.js → helpers/number.js} +0 -0
@@ -1,5 +1,5 @@
1
- import type { ProblemVerdict, SubmissionRunStatus } from '../prisma/enums/index.js';
2
- import type { ClientId, Device, WebSocketMessageEvent, WebSocketResponseEvent, WebSocketResponseEventKey, WebSocketSubscriptionEvent } from '../types/index.js';
1
+ import type { ProblemVerdict, SubmissionRunStatus, WebSocketMessageEvent, WebSocketResponseEvent, WebSocketSubscriptionEvent } from '../enums/index.js';
2
+ import type { ClientId, Device, WebSocketResponseEventKey } from '../types/index.js';
3
3
  import type { Ec2Instance, EcsTaskDefinitionSystemSummaryListResponseDTO, EcsTaskSystemSummaryListResponseDTO, SsmSession } from './system.js';
4
4
  import type { PingResponseDTO, UserOrganizationBasicInfoResponseDTO } from './user.js';
5
5
  interface WebsocketMessage {
@@ -7,22 +7,22 @@ interface WebsocketMessage {
7
7
  clientId: ClientId;
8
8
  }
9
9
  export interface PingWebSocketEventDTO extends WebsocketMessage {
10
- event: WebSocketMessageEvent.PING;
10
+ event: typeof WebSocketMessageEvent.PING;
11
11
  }
12
12
  export interface ClientTrackLocationWebSocketEventDTO extends WebsocketMessage {
13
- event: WebSocketMessageEvent.CLIENT_TRACK_LOCATION;
13
+ event: typeof WebSocketMessageEvent.CLIENT_TRACK_LOCATION;
14
14
  href: string;
15
15
  }
16
16
  export interface ClientTrackScreenshotWebSocketEventDTO extends WebsocketMessage {
17
- event: WebSocketMessageEvent.CLIENT_TRACK_SCREENSHOT;
17
+ event: typeof WebSocketMessageEvent.CLIENT_TRACK_SCREENSHOT;
18
18
  screenshot: string;
19
19
  }
20
20
  export interface ClientTrackDeviceWebSocketEventDTO extends WebsocketMessage {
21
- event: WebSocketMessageEvent.CLIENT_TRACK_DEVICE;
21
+ event: typeof WebSocketMessageEvent.CLIENT_TRACK_DEVICE;
22
22
  device: Device;
23
23
  }
24
24
  export interface ChatCompletionsWebSocketEventDTO extends WebsocketMessage {
25
- event: WebSocketMessageEvent.CHAT_COMPLETIONS;
25
+ event: typeof WebSocketMessageEvent.CHAT_COMPLETIONS;
26
26
  chatAiId: string;
27
27
  content: string;
28
28
  }
@@ -32,67 +32,67 @@ export interface WebsocketSubscription {
32
32
  clientId: ClientId;
33
33
  }
34
34
  export interface SubscribeCodeRunStatusWebSocketEventDTO extends WebsocketSubscription {
35
- event: WebSocketSubscriptionEvent.SUBSCRIBE_CODE_RUN_STATUS;
35
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_CODE_RUN_STATUS;
36
36
  runId: string;
37
37
  }
38
38
  export interface UnsubscribeCodeRunStatusWebSocketEventDTO extends WebsocketSubscription {
39
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_CODE_RUN_STATUS;
39
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_CODE_RUN_STATUS;
40
40
  runId: string;
41
41
  }
42
42
  export interface SubscribeSubmissionRunStatusWebSocketEventDTO extends WebsocketSubscription {
43
- event: WebSocketSubscriptionEvent.SUBSCRIBE_SUBMISSION_RUN_STATUS;
43
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_SUBMISSION_RUN_STATUS;
44
44
  submitId: string;
45
45
  }
46
46
  export interface UnsubscribeSubmissionRunStatusWebSocketEventDTO extends WebsocketSubscription {
47
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_SUBMISSION_RUN_STATUS;
47
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_SUBMISSION_RUN_STATUS;
48
48
  submitId: string;
49
49
  }
50
50
  export interface SubscribeGetDataWebSocketEventDTO extends WebsocketSubscription {
51
51
  dataId: string;
52
- event: WebSocketSubscriptionEvent.SUBSCRIBE_GET_DATA;
52
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_GET_DATA;
53
53
  }
54
54
  export interface UnsubscribeGetDataWebSocketEventDTO extends WebsocketSubscription {
55
55
  dataId: string;
56
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_GET_DATA;
56
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_GET_DATA;
57
57
  }
58
58
  export interface SubscribeProblemCrawledWebSocketEventDTO extends WebsocketSubscription {
59
- event: WebSocketSubscriptionEvent.SUBSCRIBE_PROBLEM_CRAWLED;
59
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_PROBLEM_CRAWLED;
60
60
  problemKey: string;
61
61
  }
62
62
  export interface UnsubscribeProblemCrawledWebSocketEventDTO extends WebsocketSubscription {
63
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_PROBLEM_CRAWLED;
63
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_PROBLEM_CRAWLED;
64
64
  problemKey: string;
65
65
  }
66
66
  export interface SubscribeSubmissionsCrawlWebSocketEventDTO extends WebsocketSubscription {
67
- event: WebSocketSubscriptionEvent.SUBSCRIBE_SUBMISSIONS_CRAWL;
67
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_SUBMISSIONS_CRAWL;
68
68
  contestKey: string;
69
69
  problemKeys: string;
70
70
  }
71
71
  export interface UnsubscribeSubmissionsCrawlWebSocketEventDTO extends WebsocketSubscription {
72
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_SUBMISSIONS_CRAWL;
72
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_SUBMISSIONS_CRAWL;
73
73
  contestKey: string;
74
74
  problemKeys: string;
75
75
  }
76
76
  export interface SubscribeContestChangesWebSocketEventDTO extends WebsocketSubscription {
77
- event: WebSocketSubscriptionEvent.SUBSCRIBE_CONTEST_CHANGES;
77
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_CONTEST_CHANGES;
78
78
  contestKey: string;
79
79
  }
80
80
  export interface UnsubscribeContestChangesWebSocketEventDTO extends WebsocketSubscription {
81
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_CONTEST_CHANGES;
81
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_CONTEST_CHANGES;
82
82
  contestKey: string;
83
83
  }
84
84
  export interface SubscribeClientTrackWebSocketEventDTO extends WebsocketSubscription {
85
- event: WebSocketSubscriptionEvent.SUBSCRIBE_CLIENT_TRACK;
85
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_CLIENT_TRACK;
86
86
  }
87
87
  export interface UnsubscribeClientTrackWebSocketEventDTO extends WebsocketSubscription {
88
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_CLIENT_TRACK;
88
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_CLIENT_TRACK;
89
89
  }
90
90
  export interface SubscribeUserNotificationWebsocketEventDTO extends WebsocketSubscription {
91
- event: WebSocketSubscriptionEvent.SUBSCRIBE_USER_NOTIFICATION;
91
+ event: typeof WebSocketSubscriptionEvent.SUBSCRIBE_USER_NOTIFICATION;
92
92
  userKey: string;
93
93
  }
94
94
  export interface UnsubscribeUserNotificationWebSocketEventDTO extends WebsocketSubscription {
95
- event: WebSocketSubscriptionEvent.UNSUBSCRIBE_USER_NOTIFICATION;
95
+ event: typeof WebSocketSubscriptionEvent.UNSUBSCRIBE_USER_NOTIFICATION;
96
96
  userKey: string;
97
97
  }
98
98
  export type WebSocketSubscribeEventDTO = SubscribeCodeRunStatusWebSocketEventDTO | SubscribeSubmissionRunStatusWebSocketEventDTO | SubscribeGetDataWebSocketEventDTO | SubscribeProblemCrawledWebSocketEventDTO | SubscribeSubmissionsCrawlWebSocketEventDTO | SubscribeContestChangesWebSocketEventDTO | SubscribeClientTrackWebSocketEventDTO | SubscribeUserNotificationWebsocketEventDTO;
@@ -104,7 +104,7 @@ export interface WebSocketResponse {
104
104
  messageTimestamp: number;
105
105
  }
106
106
  export interface PongWebSocketResponseEventDTO extends WebSocketResponse {
107
- event: WebSocketResponseEvent.PONG;
107
+ event: typeof WebSocketResponseEvent.PONG;
108
108
  data: PingResponseDTO;
109
109
  }
110
110
  export type InfoLogCaseStatus = {
@@ -114,7 +114,7 @@ export type InfoLogCaseStatus = {
114
114
  log: string;
115
115
  };
116
116
  export interface CodeRunStatusWebSocketResponseEventDTO extends WebSocketResponse {
117
- event: WebSocketResponseEvent.CODE_RUN_STATUS;
117
+ event: typeof WebSocketResponseEvent.CODE_RUN_STATUS;
118
118
  runId: string;
119
119
  status: SubmissionRunStatus;
120
120
  log: InfoLogCaseStatus;
@@ -125,7 +125,7 @@ export type TestInfo = {
125
125
  caseResultsTotal: number;
126
126
  };
127
127
  export interface SubmissionRunStatusWebSocketResponseEventDTO extends WebSocketResponse {
128
- event: WebSocketResponseEvent.SUBMISSION_RUN_STATUS;
128
+ event: typeof WebSocketResponseEvent.SUBMISSION_RUN_STATUS;
129
129
  submitId: string;
130
130
  status: SubmissionRunStatus;
131
131
  verdict: ProblemVerdict;
@@ -134,7 +134,7 @@ export interface SubmissionRunStatusWebSocketResponseEventDTO extends WebSocketR
134
134
  shouldValidateContest: boolean;
135
135
  }
136
136
  export interface UserMessageWebSocketResponseEventDTO extends WebSocketResponse {
137
- event: WebSocketResponseEvent.USER_MESSAGE;
137
+ event: typeof WebSocketResponseEvent.USER_MESSAGE;
138
138
  user: UserOrganizationBasicInfoResponseDTO;
139
139
  content: {
140
140
  type: 'SUBMISSION_VERDICT';
@@ -149,23 +149,23 @@ export interface SendDataWebSocketResponseEventDTO extends WebSocketResponse {
149
149
  content: unknown;
150
150
  }
151
151
  export interface SendDataEcsTaskDefinitionListWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
152
- event: WebSocketResponseEvent.SEND_DATA_ECS_TASK_DEFINITIONS_LIST;
152
+ event: typeof WebSocketResponseEvent.SEND_DATA_ECS_TASK_DEFINITIONS_LIST;
153
153
  content: EcsTaskDefinitionSystemSummaryListResponseDTO[];
154
154
  }
155
155
  export interface SendDataEcsTasksListWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
156
- event: WebSocketResponseEvent.SEND_DATA_ECS_TASKS_LIST;
156
+ event: typeof WebSocketResponseEvent.SEND_DATA_ECS_TASKS_LIST;
157
157
  content: EcsTaskSystemSummaryListResponseDTO[];
158
158
  }
159
159
  export interface SendDataEc2InstancesListWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
160
- event: WebSocketResponseEvent.SEND_DATA_EC2_INSTANCES_LIST;
160
+ event: typeof WebSocketResponseEvent.SEND_DATA_EC2_INSTANCES_LIST;
161
161
  content: Ec2Instance[];
162
162
  }
163
163
  export interface SendDataSsmSessionsListWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
164
- event: WebSocketResponseEvent.SEND_DATA_SSM_SESSIONS_LIST;
164
+ event: typeof WebSocketResponseEvent.SEND_DATA_SSM_SESSIONS_LIST;
165
165
  content: SsmSession[];
166
166
  }
167
167
  export interface SendDataRunCommandWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
168
- event: WebSocketResponseEvent.SEND_DATA_RUN_COMMAND;
168
+ event: typeof WebSocketResponseEvent.SEND_DATA_RUN_COMMAND;
169
169
  content: {
170
170
  testCaseOutContent: string;
171
171
  testCaseErrorContent: string;
@@ -173,7 +173,7 @@ export interface SendDataRunCommandWebSocketResponseEventDTO extends SendDataWeb
173
173
  };
174
174
  }
175
175
  export interface SendDataClientTrackWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
176
- event: WebSocketResponseEvent.SEND_DATA_CLIENT_TRACK;
176
+ event: typeof WebSocketResponseEvent.SEND_DATA_CLIENT_TRACK;
177
177
  content: {
178
178
  location?: string;
179
179
  screenshot?: string;
@@ -181,7 +181,7 @@ export interface SendDataClientTrackWebSocketResponseEventDTO extends SendDataWe
181
181
  };
182
182
  }
183
183
  export interface SendDataChatCompletionsWebSocketResponseEventDTO extends SendDataWebSocketResponseEventDTO {
184
- event: WebSocketResponseEvent.SEND_DATA_CHAT_COMPLETIONS;
184
+ event: typeof WebSocketResponseEvent.SEND_DATA_CHAT_COMPLETIONS;
185
185
  content: {
186
186
  choices: [{
187
187
  index: number;
@@ -194,13 +194,13 @@ export interface SendDataChatCompletionsWebSocketResponseEventDTO extends SendDa
194
194
  };
195
195
  }
196
196
  export interface ProblemCrawledWebSocketResponseEventDTO extends WebSocketResponse {
197
- event: WebSocketResponseEvent.PROBLEM_CRAWLED;
197
+ event: typeof WebSocketResponseEvent.PROBLEM_CRAWLED;
198
198
  content: {
199
199
  problemKey: string;
200
200
  };
201
201
  }
202
202
  export interface SubmissionsCrawlWebSocketResponseEventDTO extends WebSocketResponse {
203
- event: WebSocketResponseEvent.SUBMISSIONS_CRAWL;
203
+ event: typeof WebSocketResponseEvent.SUBMISSIONS_CRAWL;
204
204
  content: {
205
205
  contestKey: string;
206
206
  problemKeys: string;
@@ -212,23 +212,23 @@ export interface SubmissionsCrawlWebSocketResponseEventDTO extends WebSocketResp
212
212
  };
213
213
  }
214
214
  export interface ContestChangesWebSocketResponseEventDTO extends WebSocketResponse {
215
- event: WebSocketResponseEvent.CONTEST_CHANGES;
215
+ event: typeof WebSocketResponseEvent.CONTEST_CHANGES;
216
216
  content: {
217
217
  contestKey: string;
218
218
  };
219
219
  }
220
220
  export interface ClientTrackWebSocketResponseEventDTO extends WebSocketResponse {
221
- event: WebSocketResponseEvent.CLIENT_TRACK;
221
+ event: typeof WebSocketResponseEvent.CLIENT_TRACK;
222
222
  location: boolean;
223
223
  screenshot: boolean;
224
224
  device: boolean;
225
225
  }
226
226
  export interface UserNotificationWebSocketResponseEventDTO extends WebSocketResponse {
227
- event: WebSocketResponseEvent.USER_NOTIFICATION_SUBMISSION | WebSocketResponseEvent.USER_NOTIFICATION_CONTEST_CLARIFICATION;
227
+ event: typeof WebSocketResponseEvent.USER_NOTIFICATION_SUBMISSION | typeof WebSocketResponseEvent.USER_NOTIFICATION_CONTEST_CLARIFICATION;
228
228
  content: unknown;
229
229
  }
230
230
  export interface UserNotificationSubmissionWebSocketResponseEventDTO extends UserNotificationWebSocketResponseEventDTO {
231
- event: WebSocketResponseEvent.USER_NOTIFICATION_SUBMISSION;
231
+ event: typeof WebSocketResponseEvent.USER_NOTIFICATION_SUBMISSION;
232
232
  content: {
233
233
  contest: {
234
234
  key: string;
@@ -248,7 +248,7 @@ export interface UserNotificationSubmissionWebSocketResponseEventDTO extends Use
248
248
  };
249
249
  }
250
250
  export interface UserNotificationContestClarificationWebSocketResponseEventDTO extends UserNotificationWebSocketResponseEventDTO {
251
- event: WebSocketResponseEvent.USER_NOTIFICATION_CONTEST_CLARIFICATION;
251
+ event: typeof WebSocketResponseEvent.USER_NOTIFICATION_CONTEST_CLARIFICATION;
252
252
  content: {
253
253
  contestKey: string;
254
254
  };
@@ -1,5 +1,5 @@
1
- import type { ProblemScoringMode, ProblemType, ProblemVerdict, SubmissionRunStatus } from '../prisma/enums/index.js';
2
- import type { CodeLanguage, ContestUser, DataLog, EntityState } from '../types/index.js';
1
+ import type { CodeLanguage, EntityState, ProblemScoringMode, ProblemType, ProblemVerdict, SubmissionRunStatus } from '../enums/index.js';
2
+ import type { ContestUser, DataLog } from '../types/index.js';
3
3
  import type { EntityCompanySummaryListResponseDTO, EntityCompanySystemSummaryListResponseDTO, ProblemJudgeSummaryListResponseDTO } from './problem.js';
4
4
  import type { UserOrganizationBasicInfoResponseDTO } from './user.js';
5
5
  export interface SubmissionProblemSummaryListResponseDTO {
@@ -1,4 +1,4 @@
1
- import type { ContestRole, CourseRole, FileRole, ProblemRole, SystemRole, TeamRole, UserRole } from '../prisma/enums/index.js';
1
+ import type { ContestRole, CourseRole, FileRole, ProblemRole, SystemRole, TeamRole, UserRole } from '../enums/index.js';
2
2
  import type { RecordId, UserBasicInfo, UserHandles, UserSettings } from '../types/index.js';
3
3
  import type { OrganizationStylesResponseDTO } from './organization.js';
4
4
  import type { EntityCompanySummaryListResponseDTO, EntityCompanySystemSummaryListResponseDTO } from './problem.js';
@@ -1,5 +1,4 @@
1
- import type { WorkingIn } from '../prisma/enums/index.js';
2
- import type { Judge } from '../types/index.js';
1
+ import type { Judge, WorkingIn } from '../enums/index.js';
3
2
  export type CookieSameSite = 'Strict' | 'Lax' | 'None';
4
3
  export type CookiePriority = 'Low' | 'Medium' | 'High';
5
4
  export interface CookiePartitionKey {
@@ -1,4 +1,5 @@
1
- import { type CodeEditorSheet, type CodeLanguage, type JkmdSheet, type QuizOptionsSheet, type QuizProblemSheet, type QuizTextSheet, type UserBasic, WorksheetType } from '../types/index.js';
1
+ import type { CodeLanguage, WorksheetType } from '../enums/index.js';
2
+ import type { CodeEditorSheet, JkmdSheet, QuizOptionsSheet, QuizProblemSheet, QuizTextSheet, UserBasic } from '../types/index.js';
2
3
  import type { SubmissionSummaryListResponseDTO } from './submission.js';
3
4
  import type { UserOrganizationBasicInfoResponseDTO } from './user.js';
4
5
  export type WorksheetResponseBasicInfoProcessed = {
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export * from './manual/index.js';
2
+ export * from './prisma/index.js';
@@ -0,0 +1,2 @@
1
+ export * from './manual/index.js';
2
+ export * from './prisma/index.js';
@@ -0,0 +1,11 @@
1
+ export declare const AspectRatio: {
2
+ readonly RATIO_21_9: "21:9";
3
+ readonly RATIO_20_9: "20:9";
4
+ readonly RATIO_16_9: "16:9";
5
+ readonly RATIO_16_10: "16:10";
6
+ readonly RATIO_3_2: "3:2";
7
+ readonly RATIO_4_3: "4:3";
8
+ readonly RATIO_5_4: "5:4";
9
+ readonly RATIO_1_1: "1:1";
10
+ };
11
+ export type AspectRatio = (typeof AspectRatio)[keyof typeof AspectRatio];
@@ -0,0 +1,10 @@
1
+ export const AspectRatio = {
2
+ RATIO_21_9: '21:9',
3
+ RATIO_20_9: '20:9',
4
+ RATIO_16_9: '16:9',
5
+ RATIO_16_10: '16:10',
6
+ RATIO_3_2: '3:2',
7
+ RATIO_4_3: '4:3',
8
+ RATIO_5_4: '5:4',
9
+ RATIO_1_1: '1:1',
10
+ };
@@ -0,0 +1,7 @@
1
+ export declare const AssignmentClass: {
2
+ readonly NONE: "NONE";
3
+ readonly COURSE: "COURSE";
4
+ readonly WORKSHEET: "WORKSHEET";
5
+ readonly CONTEST: "CONTEST";
6
+ };
7
+ export type AssignmentClass = (typeof AssignmentClass)[keyof typeof AssignmentClass];
@@ -0,0 +1,6 @@
1
+ export const AssignmentClass = {
2
+ NONE: 'NONE',
3
+ COURSE: 'COURSE',
4
+ WORKSHEET: 'WORKSHEET',
5
+ CONTEST: 'CONTEST',
6
+ };
@@ -0,0 +1,7 @@
1
+ export declare const AssignmentType: {
2
+ readonly READING_PDF: "READING_PDF";
3
+ readonly READING_WEB: "READING_WEB";
4
+ readonly SOLVE_JUKI_JUDGE_PROBLEM: "SOLVE_JUKI_JUDGE_PROBLEM";
5
+ readonly SOLVE_CODEFORCES_JUDGE_PROBLEM: "SOLVE_CODEFORCES_JUDGE_PROBLEM";
6
+ };
7
+ export type AssignmentType = (typeof AssignmentType)[keyof typeof AssignmentType];
@@ -0,0 +1,6 @@
1
+ export const AssignmentType = {
2
+ READING_PDF: 'READING_PDF',
3
+ READING_WEB: 'READING_WEB',
4
+ SOLVE_JUKI_JUDGE_PROBLEM: 'SOLVE_JUKI_JUDGE_PROBLEM',
5
+ SOLVE_CODEFORCES_JUDGE_PROBLEM: 'SOLVE_CODEFORCES_JUDGE_PROBLEM',
6
+ };
@@ -0,0 +1,40 @@
1
+ export declare const CodeLanguage: {
2
+ readonly C_11: "c11";
3
+ readonly CPP_11: "cpp11";
4
+ readonly CPP_20: "cpp20";
5
+ readonly JAVA_21: "java21";
6
+ readonly PYTHON_3: "python3";
7
+ readonly PYTHON_PYPY_3: "pypy3";
8
+ readonly JAVASCRIPT_NODE_JS_22: "nodejs22";
9
+ readonly PYTHON_2: "python2";
10
+ readonly PYTHON_PYPY_2: "pypy2";
11
+ readonly ICPC_C: "ICPC_C";
12
+ readonly C: "C";
13
+ readonly CPP: "CPP";
14
+ readonly ICPC_CPP: "ICPC_CPP";
15
+ readonly CPP11: "CPP11";
16
+ readonly CPP14: "CPP14";
17
+ readonly CPP17: "CPP17";
18
+ readonly JAVA: "JAVA";
19
+ readonly ICPC_PYTHON: "ICPC_PYTHON";
20
+ readonly PYTHON: "PYTHON";
21
+ readonly PYTHON2: "PYTHON2";
22
+ readonly PYTHON3: "PYTHON3";
23
+ readonly JAVASCRIPT: "JAVASCRIPT";
24
+ readonly TYPESCRIPT: "TYPESCRIPT";
25
+ readonly JSX: "JSX";
26
+ readonly TSX: "TSX";
27
+ readonly MDX: "MDX";
28
+ readonly PSEUDOCODE_PSEINT: "PSEUDOCODE_PSEINT";
29
+ readonly LATEX: "LATEX";
30
+ readonly JSON: "JSON";
31
+ readonly HTML: "HTML";
32
+ readonly TEXT: "TEXT";
33
+ readonly DIFF: "DIFF";
34
+ readonly MARKDOWN: "MARKDOWN";
35
+ readonly ARDUINO: "ARDUINO";
36
+ readonly DOT: "DOT";
37
+ readonly MERMAID: "MERMAID";
38
+ readonly BASH: "BASH";
39
+ };
40
+ export type CodeLanguage = (typeof CodeLanguage)[keyof typeof CodeLanguage];
@@ -0,0 +1,40 @@
1
+ export const CodeLanguage = {
2
+ C_11: 'c11',
3
+ CPP_11: 'cpp11',
4
+ CPP_20: 'cpp20',
5
+ JAVA_21: 'java21',
6
+ PYTHON_3: 'python3',
7
+ PYTHON_PYPY_3: 'pypy3',
8
+ JAVASCRIPT_NODE_JS_22: 'nodejs22',
9
+ // DEPRECATED
10
+ PYTHON_2: 'python2',
11
+ PYTHON_PYPY_2: 'pypy2',
12
+ ICPC_C: 'ICPC_C',
13
+ C: 'C',
14
+ CPP: 'CPP',
15
+ ICPC_CPP: 'ICPC_CPP',
16
+ CPP11: 'CPP11',
17
+ CPP14: 'CPP14',
18
+ CPP17: 'CPP17',
19
+ JAVA: 'JAVA',
20
+ ICPC_PYTHON: 'ICPC_PYTHON',
21
+ PYTHON: 'PYTHON',
22
+ PYTHON2: 'PYTHON2',
23
+ PYTHON3: 'PYTHON3',
24
+ JAVASCRIPT: 'JAVASCRIPT',
25
+ TYPESCRIPT: 'TYPESCRIPT',
26
+ JSX: 'JSX',
27
+ TSX: 'TSX',
28
+ MDX: 'MDX',
29
+ PSEUDOCODE_PSEINT: 'PSEUDOCODE_PSEINT',
30
+ LATEX: 'LATEX',
31
+ JSON: 'JSON',
32
+ HTML: 'HTML',
33
+ TEXT: 'TEXT',
34
+ DIFF: 'DIFF',
35
+ MARKDOWN: 'MARKDOWN',
36
+ ARDUINO: 'ARDUINO',
37
+ DOT: 'DOT',
38
+ MERMAID: 'MERMAID',
39
+ BASH: 'BASH',
40
+ };
@@ -0,0 +1,24 @@
1
+ export declare const CollectionKey: {
2
+ readonly COMPANY: "C";
3
+ readonly USER: "U";
4
+ readonly PROBLEM: "P";
5
+ readonly CLASS: "K";
6
+ readonly CLASS_ASSIGNMENT: "KA";
7
+ readonly CONTEST: "T";
8
+ readonly SCOREBOARD: "B";
9
+ readonly SCOREBOARD_EVENTS: "BE";
10
+ readonly COURSE: "R";
11
+ readonly FILE: "F";
12
+ readonly GROUP: "G";
13
+ readonly JUDGE: "J";
14
+ readonly WORKSHEET: "W";
15
+ readonly WORKSHEET_SUBMISSIONS: "WS";
16
+ readonly SUBMIT: "S";
17
+ readonly LOCALE: "L";
18
+ readonly COMMENT: "M";
19
+ readonly EXCALIDRAW: "E";
20
+ readonly MARKDOWN: "MD";
21
+ readonly DOCUMENT_TEMPLATE: "DT";
22
+ readonly MERMAID: "MM";
23
+ };
24
+ export type CollectionKey = (typeof CollectionKey)[keyof typeof CollectionKey];
@@ -0,0 +1,23 @@
1
+ export const CollectionKey = {
2
+ COMPANY: 'C',
3
+ USER: 'U',
4
+ PROBLEM: 'P',
5
+ CLASS: 'K',
6
+ CLASS_ASSIGNMENT: 'KA',
7
+ CONTEST: 'T',
8
+ SCOREBOARD: 'B',
9
+ SCOREBOARD_EVENTS: 'BE',
10
+ COURSE: 'R',
11
+ FILE: 'F',
12
+ GROUP: 'G',
13
+ JUDGE: 'J',
14
+ WORKSHEET: 'W',
15
+ WORKSHEET_SUBMISSIONS: 'WS',
16
+ SUBMIT: 'S',
17
+ LOCALE: 'L',
18
+ COMMENT: 'M',
19
+ EXCALIDRAW: 'E',
20
+ MARKDOWN: 'MD',
21
+ DOCUMENT_TEMPLATE: 'DT',
22
+ MERMAID: 'MM',
23
+ };
@@ -0,0 +1,7 @@
1
+ export declare const ContestProblemBlockedByType: {
2
+ readonly UNMET_PREREQUISITES: "UNMET_PREREQUISITES";
3
+ readonly MAX_ACCEPTED_SUBMISSIONS_ACHIEVED: "MAX_ACCEPTED_SUBMISSIONS_ACHIEVED";
4
+ readonly START_TIME_IN_THE_FUTURE: "START_TIME_IN_THE_FUTURE";
5
+ readonly END_TIME_IN_THE_PAST: "END_TIME_IN_THE_PAST";
6
+ };
7
+ export type ContestProblemBlockedByType = (typeof ContestProblemBlockedByType)[keyof typeof ContestProblemBlockedByType];
@@ -0,0 +1,6 @@
1
+ export const ContestProblemBlockedByType = {
2
+ UNMET_PREREQUISITES: 'UNMET_PREREQUISITES',
3
+ MAX_ACCEPTED_SUBMISSIONS_ACHIEVED: 'MAX_ACCEPTED_SUBMISSIONS_ACHIEVED',
4
+ START_TIME_IN_THE_FUTURE: 'START_TIME_IN_THE_FUTURE',
5
+ END_TIME_IN_THE_PAST: 'END_TIME_IN_THE_PAST',
6
+ };
@@ -0,0 +1,6 @@
1
+ export declare const ContestTimeStatus: {
2
+ readonly UPCOMING: "upcoming";
3
+ readonly LIVE: "live";
4
+ readonly PAST: "past";
5
+ };
6
+ export type ContestTimeStatus = (typeof ContestTimeStatus)[keyof typeof ContestTimeStatus];
@@ -0,0 +1,5 @@
1
+ export const ContestTimeStatus = {
2
+ UPCOMING: 'upcoming',
3
+ LIVE: 'live',
4
+ PAST: 'past',
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const DataViewMode: {
2
+ readonly CARDS: "CARDS";
3
+ readonly ROWS: "ROWS";
4
+ };
5
+ export type DataViewMode = (typeof DataViewMode)[keyof typeof DataViewMode];
@@ -0,0 +1,4 @@
1
+ export const DataViewMode = {
2
+ CARDS: 'CARDS',
3
+ ROWS: 'ROWS',
4
+ };
@@ -0,0 +1,7 @@
1
+ export declare const EntityAccess: {
2
+ readonly PRIVATE: "PRIVATE";
3
+ readonly RESTRICTED: "RESTRICTED";
4
+ readonly PUBLIC: "PUBLIC";
5
+ readonly EXPOSED: "EXPOSED";
6
+ };
7
+ export type EntityAccess = (typeof EntityAccess)[keyof typeof EntityAccess];
@@ -0,0 +1,6 @@
1
+ export const EntityAccess = {
2
+ PRIVATE: 'PRIVATE',
3
+ RESTRICTED: 'RESTRICTED',
4
+ PUBLIC: 'PUBLIC',
5
+ EXPOSED: 'EXPOSED',
6
+ };
@@ -0,0 +1,9 @@
1
+ export declare const EntityCollection: {
2
+ readonly COMPANY: "COMPANY";
3
+ readonly PROBLEM: "PROBLEM";
4
+ readonly CONTEST: "CONTEST";
5
+ readonly JUDGE: "JUDGE";
6
+ readonly USER: "USER";
7
+ readonly SUBMISSION: "SUBMISSION";
8
+ };
9
+ export type EntityCollection = (typeof EntityCollection)[keyof typeof EntityCollection];
@@ -0,0 +1,8 @@
1
+ export const EntityCollection = {
2
+ COMPANY: 'COMPANY',
3
+ PROBLEM: 'PROBLEM',
4
+ CONTEST: 'CONTEST',
5
+ JUDGE: 'JUDGE',
6
+ USER: 'USER',
7
+ SUBMISSION: 'SUBMISSION',
8
+ };
@@ -0,0 +1,6 @@
1
+ export declare const EntityMembersRank: {
2
+ readonly NONE: "NONE";
3
+ readonly CLOSE: "CLOSE";
4
+ readonly OPEN: "OPEN";
5
+ };
6
+ export type EntityMembersRank = (typeof EntityMembersRank)[keyof typeof EntityMembersRank];
@@ -0,0 +1,5 @@
1
+ export const EntityMembersRank = {
2
+ NONE: 'NONE',
3
+ CLOSE: 'CLOSE',
4
+ OPEN: 'OPEN',
5
+ };
@@ -0,0 +1,5 @@
1
+ export declare const EntityState: {
2
+ readonly RELEASED: "RELEASED";
3
+ readonly ARCHIVED: "ARCHIVED";
4
+ };
5
+ export type EntityState = (typeof EntityState)[keyof typeof EntityState];
@@ -0,0 +1,4 @@
1
+ export const EntityState = {
2
+ RELEASED: 'RELEASED',
3
+ ARCHIVED: 'ARCHIVED',
4
+ };
@@ -0,0 +1,7 @@
1
+ export declare const EntityStatus: {
2
+ readonly PUBLIC: "PUBLIC";
3
+ readonly RESERVED: "RESERVED";
4
+ readonly PRIVATE: "PRIVATE";
5
+ readonly ARCHIVED: "ARCHIVED";
6
+ };
7
+ export type EntityStatus = (typeof EntityStatus)[keyof typeof EntityStatus];
@@ -0,0 +1,6 @@
1
+ export const EntityStatus = {
2
+ PUBLIC: 'PUBLIC',
3
+ RESERVED: 'RESERVED',
4
+ PRIVATE: 'PRIVATE',
5
+ ARCHIVED: 'ARCHIVED',
6
+ };