@xcpcio/types 0.46.0 → 0.46.2

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 CHANGED
@@ -2,9 +2,9 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const VERSION = "0.46.0";
5
+ const VERSION = "0.46.2";
6
6
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
7
- const GITHUB_SHA = "44c592d1a3";
7
+ const GITHUB_SHA = "bf697d5b4b";
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.46.0";
90
+ declare const VERSION = "0.46.2";
91
91
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "44c592d1a3";
92
+ declare const GITHUB_SHA = "bf697d5b4b";
93
93
 
94
94
  interface ContestIndexConfig {
95
95
  contest_name: string;
@@ -153,9 +153,18 @@ interface Contest {
153
153
 
154
154
  type Lang = "en" | "zh-CN";
155
155
 
156
+ interface IPerson {
157
+ name: string;
158
+ }
159
+ type IPersons = Array<IPerson>;
160
+
156
161
  interface IRatingHistory {
157
162
  rank: number;
158
163
  rating: number;
164
+ teamName: string;
165
+ organization: string;
166
+ members: IPersons;
167
+ coaches: IPersons;
159
168
  contestID: string;
160
169
  contestName: string;
161
170
  contestLink: string;
@@ -164,6 +173,9 @@ interface IRatingHistory {
164
173
  interface IRatingUser {
165
174
  id: string;
166
175
  name: string;
176
+ organization: string;
177
+ members: IPersons;
178
+ coaches: IPersons;
167
179
  rating: number;
168
180
  minRating: number;
169
181
  maxRating: number;
@@ -249,4 +261,4 @@ interface Team {
249
261
  }
250
262
  type Teams = Array<Team> | Record<string, Team>;
251
263
 
252
- export { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, IRating, IRatingHistory, IRatingUser, Image, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, VERSION };
264
+ export { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingUser, 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.46.0";
1
+ const VERSION = "0.46.2";
2
2
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
3
- const GITHUB_SHA = "44c592d1a3";
3
+ const GITHUB_SHA = "bf697d5b4b";
4
4
 
5
5
  var ContestState = /* @__PURE__ */ ((ContestState2) => {
6
6
  ContestState2["PENDING"] = "PENDING";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcpcio/types",
3
- "version": "0.46.0",
3
+ "version": "0.46.2",
4
4
  "description": "XCPCIO Types",
5
5
  "author": "Dup4 <lyuzhi.pan@gmail.com>",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -3,6 +3,7 @@ export * from "./constant";
3
3
  export * from "./contest-index";
4
4
  export * from "./contest";
5
5
  export * from "./lang";
6
+ export * from "./person";
6
7
  export * from "./problem";
7
8
  export * from "./rating";
8
9
  export * from "./submission-status";
package/src/person.ts ADDED
@@ -0,0 +1,5 @@
1
+ export interface IPerson {
2
+ name: string;
3
+ }
4
+
5
+ export type IPersons = Array<IPerson>;
package/src/rating.ts CHANGED
@@ -1,7 +1,15 @@
1
+ import type { IPersons } from "./person";
2
+
1
3
  export interface IRatingHistory {
2
4
  rank: number;
3
5
  rating: number;
4
6
 
7
+ teamName: string;
8
+ organization: string;
9
+
10
+ members: IPersons;
11
+ coaches: IPersons;
12
+
5
13
  contestID: string;
6
14
  contestName: string;
7
15
  contestLink: string;
@@ -11,6 +19,10 @@ export interface IRatingHistory {
11
19
  export interface IRatingUser {
12
20
  id: string;
13
21
  name: string;
22
+ organization: string;
23
+
24
+ members: IPersons;
25
+ coaches: IPersons;
14
26
 
15
27
  rating: number;
16
28
  minRating: number;