@xcpcio/types 0.5.2 → 0.5.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.5.1";
5
+ const VERSION = "0.5.2";
6
6
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
7
- const GITHUB_SHA = "fb951e6fe1";
7
+ const GITHUB_SHA = "e69472bc86";
8
8
 
9
9
  var ContestState = /* @__PURE__ */ ((ContestState2) => {
10
10
  ContestState2["PENDING"] = "PENDING";
package/dist/index.d.ts CHANGED
@@ -85,9 +85,9 @@ interface StatusTimeDisplay {
85
85
  pending: boolean;
86
86
  }
87
87
 
88
- declare const VERSION = "0.5.1";
88
+ declare const VERSION = "0.5.2";
89
89
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
90
- declare const GITHUB_SHA = "fb951e6fe1";
90
+ declare const GITHUB_SHA = "e69472bc86";
91
91
 
92
92
  interface ContestIndexConfig {
93
93
  contest_name: string;
@@ -139,6 +139,8 @@ interface Contest {
139
139
  version?: string;
140
140
  }
141
141
 
142
+ type Lang = "en" | "zh-CN";
143
+
142
144
  declare enum SubmissionStatus {
143
145
  PENDING = "PENDING",
144
146
  WAITING = "WAITING",
@@ -196,4 +198,4 @@ interface Team {
196
198
  }
197
199
  type Teams = Array<Team> | Record<string, Team>;
198
200
 
199
- export { BalloonColor, Base64, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, Image, Link, LinkString, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, Submissions, Team, Teams, Text, ThemeColor, VERSION };
201
+ export { BalloonColor, Base64, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestState, Contributor, DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, I18NStringSet, Image, Lang, Link, LinkString, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionStatus, Submissions, Team, Teams, Text, ThemeColor, VERSION };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- const VERSION = "0.5.1";
1
+ const VERSION = "0.5.2";
2
2
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
3
- const GITHUB_SHA = "fb951e6fe1";
3
+ const GITHUB_SHA = "e69472bc86";
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.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "XCPCIO Types",
5
5
  "author": "Dup4 <lyuzhi.pan@gmail.com>",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./basic-types";
2
2
  export * from "./constant";
3
3
  export * from "./contest-index";
4
4
  export * from "./contest";
5
+ export * from "./lang";
5
6
  export * from "./problem";
6
7
  export * from "./submission-status";
7
8
  export * from "./submission";
package/src/lang.ts ADDED
@@ -0,0 +1 @@
1
+ export type Lang = "en" | "zh-CN";