@xcpcio/types 0.83.1 → 0.84.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.d.cts +16 -1
- package/dist/index.d.mts +16 -1
- package/dist/index.d.ts +16 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -122,6 +122,15 @@ interface Problem {
|
|
|
122
122
|
}
|
|
123
123
|
type Problems = Array<Problem>;
|
|
124
124
|
|
|
125
|
+
interface SeatMapSection {
|
|
126
|
+
title?: Text;
|
|
127
|
+
rowLabels?: Array<string | null>;
|
|
128
|
+
grid: Array<Array<string | null>>;
|
|
129
|
+
}
|
|
130
|
+
interface SeatMap {
|
|
131
|
+
sections: Array<SeatMapSection>;
|
|
132
|
+
}
|
|
133
|
+
|
|
125
134
|
declare enum ContestState {
|
|
126
135
|
PENDING = "PENDING",
|
|
127
136
|
RUNNING = "RUNNING",
|
|
@@ -146,6 +155,10 @@ interface ContestOptions {
|
|
|
146
155
|
}
|
|
147
156
|
type MedalPreset = "ccpc" | "icpc";
|
|
148
157
|
type BannerMode = "ONLY_BANNER" | "ALL";
|
|
158
|
+
interface SocialMedia {
|
|
159
|
+
bilibili?: string;
|
|
160
|
+
youtube?: string;
|
|
161
|
+
}
|
|
149
162
|
interface Contest {
|
|
150
163
|
contest_name: Text;
|
|
151
164
|
description?: Text;
|
|
@@ -167,8 +180,10 @@ interface Contest {
|
|
|
167
180
|
banner_mode?: BannerMode;
|
|
168
181
|
options?: ContestOptions;
|
|
169
182
|
organizations?: DataItem | Organizations;
|
|
183
|
+
seat_map?: DataItem | SeatMap;
|
|
170
184
|
board_link?: string;
|
|
171
185
|
version?: string;
|
|
186
|
+
social_media?: SocialMedia;
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
interface ContestIndexConfig {
|
|
@@ -308,4 +323,4 @@ interface Team {
|
|
|
308
323
|
type Teams = Array<Team> | Record<string, Team>;
|
|
309
324
|
|
|
310
325
|
export { ContestState, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString };
|
|
311
|
-
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DataItem, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Organization, Organizations, Person, Persons, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, UrlString };
|
|
326
|
+
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DataItem, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Organization, Organizations, Person, Persons, Problem, Problems, SeatMap, SeatMapSection, SocialMedia, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, UrlString };
|
package/dist/index.d.mts
CHANGED
|
@@ -122,6 +122,15 @@ interface Problem {
|
|
|
122
122
|
}
|
|
123
123
|
type Problems = Array<Problem>;
|
|
124
124
|
|
|
125
|
+
interface SeatMapSection {
|
|
126
|
+
title?: Text;
|
|
127
|
+
rowLabels?: Array<string | null>;
|
|
128
|
+
grid: Array<Array<string | null>>;
|
|
129
|
+
}
|
|
130
|
+
interface SeatMap {
|
|
131
|
+
sections: Array<SeatMapSection>;
|
|
132
|
+
}
|
|
133
|
+
|
|
125
134
|
declare enum ContestState {
|
|
126
135
|
PENDING = "PENDING",
|
|
127
136
|
RUNNING = "RUNNING",
|
|
@@ -146,6 +155,10 @@ interface ContestOptions {
|
|
|
146
155
|
}
|
|
147
156
|
type MedalPreset = "ccpc" | "icpc";
|
|
148
157
|
type BannerMode = "ONLY_BANNER" | "ALL";
|
|
158
|
+
interface SocialMedia {
|
|
159
|
+
bilibili?: string;
|
|
160
|
+
youtube?: string;
|
|
161
|
+
}
|
|
149
162
|
interface Contest {
|
|
150
163
|
contest_name: Text;
|
|
151
164
|
description?: Text;
|
|
@@ -167,8 +180,10 @@ interface Contest {
|
|
|
167
180
|
banner_mode?: BannerMode;
|
|
168
181
|
options?: ContestOptions;
|
|
169
182
|
organizations?: DataItem | Organizations;
|
|
183
|
+
seat_map?: DataItem | SeatMap;
|
|
170
184
|
board_link?: string;
|
|
171
185
|
version?: string;
|
|
186
|
+
social_media?: SocialMedia;
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
interface ContestIndexConfig {
|
|
@@ -308,4 +323,4 @@ interface Team {
|
|
|
308
323
|
type Teams = Array<Team> | Record<string, Team>;
|
|
309
324
|
|
|
310
325
|
export { ContestState, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString };
|
|
311
|
-
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DataItem, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Organization, Organizations, Person, Persons, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, UrlString };
|
|
326
|
+
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DataItem, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Organization, Organizations, Person, Persons, Problem, Problems, SeatMap, SeatMapSection, SocialMedia, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, UrlString };
|
package/dist/index.d.ts
CHANGED
|
@@ -122,6 +122,15 @@ interface Problem {
|
|
|
122
122
|
}
|
|
123
123
|
type Problems = Array<Problem>;
|
|
124
124
|
|
|
125
|
+
interface SeatMapSection {
|
|
126
|
+
title?: Text;
|
|
127
|
+
rowLabels?: Array<string | null>;
|
|
128
|
+
grid: Array<Array<string | null>>;
|
|
129
|
+
}
|
|
130
|
+
interface SeatMap {
|
|
131
|
+
sections: Array<SeatMapSection>;
|
|
132
|
+
}
|
|
133
|
+
|
|
125
134
|
declare enum ContestState {
|
|
126
135
|
PENDING = "PENDING",
|
|
127
136
|
RUNNING = "RUNNING",
|
|
@@ -146,6 +155,10 @@ interface ContestOptions {
|
|
|
146
155
|
}
|
|
147
156
|
type MedalPreset = "ccpc" | "icpc";
|
|
148
157
|
type BannerMode = "ONLY_BANNER" | "ALL";
|
|
158
|
+
interface SocialMedia {
|
|
159
|
+
bilibili?: string;
|
|
160
|
+
youtube?: string;
|
|
161
|
+
}
|
|
149
162
|
interface Contest {
|
|
150
163
|
contest_name: Text;
|
|
151
164
|
description?: Text;
|
|
@@ -167,8 +180,10 @@ interface Contest {
|
|
|
167
180
|
banner_mode?: BannerMode;
|
|
168
181
|
options?: ContestOptions;
|
|
169
182
|
organizations?: DataItem | Organizations;
|
|
183
|
+
seat_map?: DataItem | SeatMap;
|
|
170
184
|
board_link?: string;
|
|
171
185
|
version?: string;
|
|
186
|
+
social_media?: SocialMedia;
|
|
172
187
|
}
|
|
173
188
|
|
|
174
189
|
interface ContestIndexConfig {
|
|
@@ -308,4 +323,4 @@ interface Team {
|
|
|
308
323
|
type Teams = Array<Team> | Record<string, Team>;
|
|
309
324
|
|
|
310
325
|
export { ContestState, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString };
|
|
311
|
-
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DataItem, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Organization, Organizations, Person, Persons, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, UrlString };
|
|
326
|
+
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DataItem, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Organization, Organizations, Person, Persons, Problem, Problems, SeatMap, SeatMapSection, SocialMedia, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, UrlString };
|