@xcpcio/types 0.72.0 → 0.74.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 +14 -1
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -79,6 +79,7 @@ type Text = string | I18NStringSet;
|
|
|
79
79
|
type Contributor = string;
|
|
80
80
|
type Base64 = string;
|
|
81
81
|
type LinkString = string;
|
|
82
|
+
type UrlString = string;
|
|
82
83
|
type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
83
84
|
interface Link {
|
|
84
85
|
link: LinkString;
|
|
@@ -99,6 +100,16 @@ interface StatusTimeDisplay {
|
|
|
99
100
|
pending: boolean;
|
|
100
101
|
}
|
|
101
102
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
103
|
+
interface DataItem {
|
|
104
|
+
url: UrlString;
|
|
105
|
+
version?: string;
|
|
106
|
+
}
|
|
107
|
+
interface Organization {
|
|
108
|
+
id: string;
|
|
109
|
+
name: Text;
|
|
110
|
+
logo?: Image;
|
|
111
|
+
}
|
|
112
|
+
type Organizations = Array<Organization>;
|
|
102
113
|
|
|
103
114
|
interface Problem {
|
|
104
115
|
id: string;
|
|
@@ -150,6 +161,7 @@ interface Contest {
|
|
|
150
161
|
board_link?: string;
|
|
151
162
|
version?: string;
|
|
152
163
|
options?: ContestOptions;
|
|
164
|
+
organizations?: DataItem | Organizations;
|
|
153
165
|
}
|
|
154
166
|
|
|
155
167
|
interface ContestIndexConfig {
|
|
@@ -269,6 +281,7 @@ interface Team {
|
|
|
269
281
|
name?: Text;
|
|
270
282
|
team_name?: Text;
|
|
271
283
|
organization?: string;
|
|
284
|
+
organization_id?: string;
|
|
272
285
|
group?: Array<string>;
|
|
273
286
|
tag?: Array<string>;
|
|
274
287
|
coach?: Text | Array<Text> | Persons;
|
|
@@ -286,4 +299,4 @@ interface Team {
|
|
|
286
299
|
type Teams = Array<Team> | Record<string, Team>;
|
|
287
300
|
|
|
288
301
|
export { ContestState, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString };
|
|
289
|
-
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Person, Persons, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
|
|
302
|
+
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 };
|
package/dist/index.d.mts
CHANGED
|
@@ -79,6 +79,7 @@ type Text = string | I18NStringSet;
|
|
|
79
79
|
type Contributor = string;
|
|
80
80
|
type Base64 = string;
|
|
81
81
|
type LinkString = string;
|
|
82
|
+
type UrlString = string;
|
|
82
83
|
type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
83
84
|
interface Link {
|
|
84
85
|
link: LinkString;
|
|
@@ -99,6 +100,16 @@ interface StatusTimeDisplay {
|
|
|
99
100
|
pending: boolean;
|
|
100
101
|
}
|
|
101
102
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
103
|
+
interface DataItem {
|
|
104
|
+
url: UrlString;
|
|
105
|
+
version?: string;
|
|
106
|
+
}
|
|
107
|
+
interface Organization {
|
|
108
|
+
id: string;
|
|
109
|
+
name: Text;
|
|
110
|
+
logo?: Image;
|
|
111
|
+
}
|
|
112
|
+
type Organizations = Array<Organization>;
|
|
102
113
|
|
|
103
114
|
interface Problem {
|
|
104
115
|
id: string;
|
|
@@ -150,6 +161,7 @@ interface Contest {
|
|
|
150
161
|
board_link?: string;
|
|
151
162
|
version?: string;
|
|
152
163
|
options?: ContestOptions;
|
|
164
|
+
organizations?: DataItem | Organizations;
|
|
153
165
|
}
|
|
154
166
|
|
|
155
167
|
interface ContestIndexConfig {
|
|
@@ -269,6 +281,7 @@ interface Team {
|
|
|
269
281
|
name?: Text;
|
|
270
282
|
team_name?: Text;
|
|
271
283
|
organization?: string;
|
|
284
|
+
organization_id?: string;
|
|
272
285
|
group?: Array<string>;
|
|
273
286
|
tag?: Array<string>;
|
|
274
287
|
coach?: Text | Array<Text> | Persons;
|
|
@@ -286,4 +299,4 @@ interface Team {
|
|
|
286
299
|
type Teams = Array<Team> | Record<string, Team>;
|
|
287
300
|
|
|
288
301
|
export { ContestState, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString };
|
|
289
|
-
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Person, Persons, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
|
|
302
|
+
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 };
|
package/dist/index.d.ts
CHANGED
|
@@ -79,6 +79,7 @@ type Text = string | I18NStringSet;
|
|
|
79
79
|
type Contributor = string;
|
|
80
80
|
type Base64 = string;
|
|
81
81
|
type LinkString = string;
|
|
82
|
+
type UrlString = string;
|
|
82
83
|
type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
83
84
|
interface Link {
|
|
84
85
|
link: LinkString;
|
|
@@ -99,6 +100,16 @@ interface StatusTimeDisplay {
|
|
|
99
100
|
pending: boolean;
|
|
100
101
|
}
|
|
101
102
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
103
|
+
interface DataItem {
|
|
104
|
+
url: UrlString;
|
|
105
|
+
version?: string;
|
|
106
|
+
}
|
|
107
|
+
interface Organization {
|
|
108
|
+
id: string;
|
|
109
|
+
name: Text;
|
|
110
|
+
logo?: Image;
|
|
111
|
+
}
|
|
112
|
+
type Organizations = Array<Organization>;
|
|
102
113
|
|
|
103
114
|
interface Problem {
|
|
104
115
|
id: string;
|
|
@@ -150,6 +161,7 @@ interface Contest {
|
|
|
150
161
|
board_link?: string;
|
|
151
162
|
version?: string;
|
|
152
163
|
options?: ContestOptions;
|
|
164
|
+
organizations?: DataItem | Organizations;
|
|
153
165
|
}
|
|
154
166
|
|
|
155
167
|
interface ContestIndexConfig {
|
|
@@ -269,6 +281,7 @@ interface Team {
|
|
|
269
281
|
name?: Text;
|
|
270
282
|
team_name?: Text;
|
|
271
283
|
organization?: string;
|
|
284
|
+
organization_id?: string;
|
|
272
285
|
group?: Array<string>;
|
|
273
286
|
tag?: Array<string>;
|
|
274
287
|
coach?: Text | Array<Text> | Persons;
|
|
@@ -286,4 +299,4 @@ interface Team {
|
|
|
286
299
|
type Teams = Array<Team> | Record<string, Team>;
|
|
287
300
|
|
|
288
301
|
export { ContestState, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString };
|
|
289
|
-
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Person, Persons, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
|
|
302
|
+
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 };
|