@xcpcio/types 0.46.1 → 0.46.3

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.1";
5
+ const VERSION = "0.46.3";
6
6
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
7
- const GITHUB_SHA = "07b4378eff";
7
+ const GITHUB_SHA = "95e64095c1";
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.1";
90
+ declare const VERSION = "0.46.3";
91
91
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "07b4378eff";
92
+ declare const GITHUB_SHA = "95e64095c1";
93
93
 
94
94
  interface ContestIndexConfig {
95
95
  contest_name: string;
@@ -158,6 +158,10 @@ interface IPerson {
158
158
  }
159
159
  type IPersons = Array<IPerson>;
160
160
 
161
+ interface IRatingIndex {
162
+ id: string;
163
+ name: string;
164
+ }
161
165
  interface IRatingHistory {
162
166
  rank: number;
163
167
  rating: number;
@@ -261,4 +265,4 @@ interface Team {
261
265
  }
262
266
  type Teams = Array<Team> | Record<string, Team>;
263
267
 
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 };
268
+ 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, IRatingIndex, 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.1";
1
+ const VERSION = "0.46.3";
2
2
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
3
- const GITHUB_SHA = "07b4378eff";
3
+ const GITHUB_SHA = "95e64095c1";
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.1",
3
+ "version": "0.46.3",
4
4
  "description": "XCPCIO Types",
5
5
  "author": "Dup4 <lyuzhi.pan@gmail.com>",
6
6
  "license": "MIT",
package/src/rating.ts CHANGED
@@ -1,5 +1,10 @@
1
1
  import type { IPersons } from "./person";
2
2
 
3
+ export interface IRatingIndex {
4
+ id: string;
5
+ name: string;
6
+ }
7
+
3
8
  export interface IRatingHistory {
4
9
  rank: number;
5
10
  rating: number;