@xcpcio/types 0.44.4 → 0.45.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 -3
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/src/contest.ts +2 -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.45.0";
|
|
6
6
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
7
|
-
const GITHUB_SHA = "
|
|
7
|
+
const GITHUB_SHA = "00de6c6e5c";
|
|
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.45.0";
|
|
91
91
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
92
|
+
declare const GITHUB_SHA = "00de6c6e5c";
|
|
93
93
|
|
|
94
94
|
interface ContestIndexConfig {
|
|
95
95
|
contest_name: string;
|
|
@@ -126,6 +126,7 @@ interface ContestOptions {
|
|
|
126
126
|
submission_timestamp_unit?: TimeUnit;
|
|
127
127
|
}
|
|
128
128
|
type MedalPreset = "ccpc" | "icpc";
|
|
129
|
+
type BannerMode = "ONLY_BANNER" | "ALL";
|
|
129
130
|
interface Contest {
|
|
130
131
|
contest_name: string;
|
|
131
132
|
start_time: number | DateTimeISO8601String;
|
|
@@ -144,6 +145,7 @@ interface Contest {
|
|
|
144
145
|
tag?: Record<string, string>;
|
|
145
146
|
logo?: Image;
|
|
146
147
|
banner?: Image;
|
|
148
|
+
banner_mode?: BannerMode;
|
|
147
149
|
board_link?: string;
|
|
148
150
|
version?: string;
|
|
149
151
|
options?: ContestOptions;
|
|
@@ -223,4 +225,4 @@ interface Team {
|
|
|
223
225
|
}
|
|
224
226
|
type Teams = Array<Team> | Record<string, Team>;
|
|
225
227
|
|
|
226
|
-
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 };
|
|
228
|
+
export { BalloonColor, BannerMode, 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.45.0";
|
|
2
2
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
3
|
-
const GITHUB_SHA = "
|
|
3
|
+
const GITHUB_SHA = "00de6c6e5c";
|
|
4
4
|
|
|
5
5
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
|
6
6
|
ContestState2["PENDING"] = "PENDING";
|
package/package.json
CHANGED
package/src/contest.ts
CHANGED
|
@@ -19,6 +19,7 @@ export interface ContestOptions {
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export type MedalPreset = "ccpc" | "icpc";
|
|
22
|
+
export type BannerMode = "ONLY_BANNER" | "ALL";
|
|
22
23
|
|
|
23
24
|
export interface Contest {
|
|
24
25
|
contest_name: string;
|
|
@@ -45,6 +46,7 @@ export interface Contest {
|
|
|
45
46
|
|
|
46
47
|
logo?: Image;
|
|
47
48
|
banner?: Image;
|
|
49
|
+
banner_mode?: BannerMode;
|
|
48
50
|
board_link?: string;
|
|
49
51
|
|
|
50
52
|
version?: string;
|