@xcpcio/types 0.24.0 → 0.25.0
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/index.cjs +2 -2
- package/dist/index.d.ts +8 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/contest.ts +10 -0
package/dist/index.cjs
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const VERSION = "0.
|
|
5
|
+
const VERSION = "0.25.0";
|
|
6
6
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
7
|
-
const GITHUB_SHA = "
|
|
7
|
+
const GITHUB_SHA = "892990150a";
|
|
8
8
|
|
|
9
9
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
|
10
10
|
ContestState2["PENDING"] = "PENDING";
|
package/dist/index.d.ts
CHANGED
|
@@ -86,9 +86,9 @@ interface StatusTimeDisplay {
|
|
|
86
86
|
pending: boolean;
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
declare const VERSION = "0.
|
|
89
|
+
declare const VERSION = "0.25.0";
|
|
90
90
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
91
|
-
declare const GITHUB_SHA = "
|
|
91
|
+
declare const GITHUB_SHA = "892990150a";
|
|
92
92
|
|
|
93
93
|
interface ContestIndexConfig {
|
|
94
94
|
contest_name: string;
|
|
@@ -119,6 +119,10 @@ declare enum ContestState {
|
|
|
119
119
|
FINISHED = "FINISHED",
|
|
120
120
|
PAUSED = "PAUSED"
|
|
121
121
|
}
|
|
122
|
+
type CalculationOfPenalty = "in_minutes" | "in_seconds" | "accumulate_in_seconds_and_finally_to_the_minute";
|
|
123
|
+
interface ContestOptions {
|
|
124
|
+
calculation_of_penalty?: CalculationOfPenalty;
|
|
125
|
+
}
|
|
122
126
|
interface Contest {
|
|
123
127
|
contest_name: string;
|
|
124
128
|
start_time: number | DateTimeISO8601String;
|
|
@@ -139,6 +143,7 @@ interface Contest {
|
|
|
139
143
|
banner?: Image;
|
|
140
144
|
board_link?: string;
|
|
141
145
|
version?: string;
|
|
146
|
+
options?: ContestOptions;
|
|
142
147
|
}
|
|
143
148
|
|
|
144
149
|
type Lang = "en" | "zh-CN";
|
|
@@ -208,4 +213,4 @@ interface Team {
|
|
|
208
213
|
}
|
|
209
214
|
type Teams = Array<Team> | Record<string, Team>;
|
|
210
215
|
|
|
211
|
-
export { BalloonColor, Base64, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, Image, Lang, Link, LinkString, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, SubmissionStatusToString, Submissions, Team, Teams, Text, ThemeColor, VERSION };
|
|
216
|
+
export { BalloonColor, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, Image, Lang, Link, LinkString, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, SubmissionStatusToString, Submissions, Team, Teams, Text, ThemeColor, VERSION };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const VERSION = "0.
|
|
1
|
+
const VERSION = "0.25.0";
|
|
2
2
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
3
|
-
const GITHUB_SHA = "
|
|
3
|
+
const GITHUB_SHA = "892990150a";
|
|
4
4
|
|
|
5
5
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
|
6
6
|
ContestState2["PENDING"] = "PENDING";
|
package/package.json
CHANGED
package/src/contest.ts
CHANGED
|
@@ -9,6 +9,14 @@ export enum ContestState {
|
|
|
9
9
|
PAUSED = "PAUSED",
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
+
export type CalculationOfPenalty = "in_minutes"
|
|
13
|
+
| "in_seconds"
|
|
14
|
+
| "accumulate_in_seconds_and_finally_to_the_minute";
|
|
15
|
+
|
|
16
|
+
export interface ContestOptions {
|
|
17
|
+
calculation_of_penalty?: CalculationOfPenalty;
|
|
18
|
+
}
|
|
19
|
+
|
|
12
20
|
export interface Contest {
|
|
13
21
|
contest_name: string;
|
|
14
22
|
|
|
@@ -37,4 +45,6 @@ export interface Contest {
|
|
|
37
45
|
board_link?: string;
|
|
38
46
|
|
|
39
47
|
version?: string;
|
|
48
|
+
|
|
49
|
+
options?: ContestOptions;
|
|
40
50
|
}
|