@xcpcio/types 0.33.0 → 0.34.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 +5 -4
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/contest.ts +3 -1
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.34.0";
|
|
6
6
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
7
|
-
const GITHUB_SHA = "
|
|
7
|
+
const GITHUB_SHA = "41efe3b0ff";
|
|
8
8
|
|
|
9
9
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
|
10
10
|
ContestState2["PENDING"] = "PENDING";
|
package/dist/index.d.ts
CHANGED
|
@@ -87,9 +87,9 @@ interface StatusTimeDisplay {
|
|
|
87
87
|
}
|
|
88
88
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
89
89
|
|
|
90
|
-
declare const VERSION = "0.
|
|
90
|
+
declare const VERSION = "0.34.0";
|
|
91
91
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
92
|
+
declare const GITHUB_SHA = "41efe3b0ff";
|
|
93
93
|
|
|
94
94
|
interface ContestIndexConfig {
|
|
95
95
|
contest_name: string;
|
|
@@ -125,6 +125,7 @@ interface ContestOptions {
|
|
|
125
125
|
calculation_of_penalty?: CalculationOfPenalty;
|
|
126
126
|
submission_timestamp_unit?: TimeUnit;
|
|
127
127
|
}
|
|
128
|
+
type MedalPreset = "ccpc" | "icpc";
|
|
128
129
|
interface Contest {
|
|
129
130
|
contest_name: string;
|
|
130
131
|
start_time: number | DateTimeISO8601String;
|
|
@@ -137,7 +138,7 @@ interface Contest {
|
|
|
137
138
|
organization?: string;
|
|
138
139
|
status_time_display?: Record<string, boolean>;
|
|
139
140
|
badge?: string;
|
|
140
|
-
medal?: Record<string, Record<string, number
|
|
141
|
+
medal?: Record<string, Record<string, number>> | MedalPreset;
|
|
141
142
|
balloon_color?: Array<BalloonColor>;
|
|
142
143
|
group?: Record<string, string>;
|
|
143
144
|
tag?: Record<string, string>;
|
|
@@ -220,4 +221,4 @@ interface Team {
|
|
|
220
221
|
}
|
|
221
222
|
type Teams = Array<Team> | Record<string, Team>;
|
|
222
223
|
|
|
223
|
-
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, SubmissionStatusToSimpleString, SubmissionStatusToString, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, VERSION };
|
|
224
|
+
export { BalloonColor, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, Image, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, VERSION };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const VERSION = "0.
|
|
1
|
+
const VERSION = "0.34.0";
|
|
2
2
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
3
|
-
const GITHUB_SHA = "
|
|
3
|
+
const GITHUB_SHA = "41efe3b0ff";
|
|
4
4
|
|
|
5
5
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
|
6
6
|
ContestState2["PENDING"] = "PENDING";
|
package/package.json
CHANGED
package/src/contest.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface ContestOptions {
|
|
|
18
18
|
submission_timestamp_unit?: TimeUnit;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
+
export type MedalPreset = "ccpc" | "icpc";
|
|
22
|
+
|
|
21
23
|
export interface Contest {
|
|
22
24
|
contest_name: string;
|
|
23
25
|
|
|
@@ -35,7 +37,7 @@ export interface Contest {
|
|
|
35
37
|
status_time_display?: Record<string, boolean>;
|
|
36
38
|
|
|
37
39
|
badge?: string;
|
|
38
|
-
medal?: Record<string, Record<string, number
|
|
40
|
+
medal?: Record<string, Record<string, number>> | MedalPreset;
|
|
39
41
|
balloon_color?: Array<BalloonColor>;
|
|
40
42
|
|
|
41
43
|
group?: Record<string, string>;
|