@xcpcio/types 0.55.2 → 0.57.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.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const VERSION = "0.55.2";
3
+ const VERSION = "0.57.0";
4
4
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
5
- const GITHUB_SHA = "3c3d35cfc0";
5
+ const GITHUB_SHA = "fe202d4847";
6
6
  const XCPCIO_HOME = "https://xcpcio.com";
7
7
 
8
8
  var ContestState = /* @__PURE__ */ ((ContestState2) => {
package/dist/index.d.cts CHANGED
@@ -87,9 +87,9 @@ interface StatusTimeDisplay {
87
87
  }
88
88
  type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
89
89
 
90
- declare const VERSION = "0.55.2";
90
+ declare const VERSION = "0.57.0";
91
91
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "3c3d35cfc0";
92
+ declare const GITHUB_SHA = "fe202d4847";
93
93
  declare const XCPCIO_HOME = "https://xcpcio.com";
94
94
 
95
95
  interface Problem {
@@ -114,6 +114,8 @@ interface ContestOptions {
114
114
  calculation_of_penalty?: CalculationOfPenalty;
115
115
  submission_timestamp_unit?: TimeUnit;
116
116
  submission_has_reaction?: boolean;
117
+ has_reaction_videos?: boolean;
118
+ reaction_video_url_template?: string;
117
119
  }
118
120
  type MedalPreset = "ccpc" | "icpc";
119
121
  type BannerMode = "ONLY_BANNER" | "ALL";
@@ -271,4 +273,5 @@ interface Team {
271
273
  }
272
274
  type Teams = Array<Team> | Record<string, Team>;
273
275
 
274
- export { type BalloonColor, type BannerMode, type Base64, type CalculationOfPenalty, type Color, type ColorHEX, type ColorRGB, type ColorRGBA, type Contest, type ContestIndex, type ContestIndexConfig, type ContestOptions, ContestState, type Contributor, type DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, type I18NStringSet, type IPerson, type IPersons, type IRating, type IRatingHistory, type IRatingIndex, type IRatingUser, type Image, type Lang, type Link, type LinkString, type MedalPreset, type Problem, type Problems, type StatusTimeDisplay, type Style, type Submission, type SubmissionReaction, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, type Submissions, type Team, type Teams, type Text, type ThemeColor, type TimeUnit, VERSION, XCPCIO_HOME };
276
+ export { ContestState, GITHUB_SHA, GITHUB_URL, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, VERSION, XCPCIO_HOME };
277
+ export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
package/dist/index.d.mts CHANGED
@@ -87,9 +87,9 @@ interface StatusTimeDisplay {
87
87
  }
88
88
  type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
89
89
 
90
- declare const VERSION = "0.55.2";
90
+ declare const VERSION = "0.57.0";
91
91
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "3c3d35cfc0";
92
+ declare const GITHUB_SHA = "fe202d4847";
93
93
  declare const XCPCIO_HOME = "https://xcpcio.com";
94
94
 
95
95
  interface Problem {
@@ -114,6 +114,8 @@ interface ContestOptions {
114
114
  calculation_of_penalty?: CalculationOfPenalty;
115
115
  submission_timestamp_unit?: TimeUnit;
116
116
  submission_has_reaction?: boolean;
117
+ has_reaction_videos?: boolean;
118
+ reaction_video_url_template?: string;
117
119
  }
118
120
  type MedalPreset = "ccpc" | "icpc";
119
121
  type BannerMode = "ONLY_BANNER" | "ALL";
@@ -271,4 +273,5 @@ interface Team {
271
273
  }
272
274
  type Teams = Array<Team> | Record<string, Team>;
273
275
 
274
- export { type BalloonColor, type BannerMode, type Base64, type CalculationOfPenalty, type Color, type ColorHEX, type ColorRGB, type ColorRGBA, type Contest, type ContestIndex, type ContestIndexConfig, type ContestOptions, ContestState, type Contributor, type DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, type I18NStringSet, type IPerson, type IPersons, type IRating, type IRatingHistory, type IRatingIndex, type IRatingUser, type Image, type Lang, type Link, type LinkString, type MedalPreset, type Problem, type Problems, type StatusTimeDisplay, type Style, type Submission, type SubmissionReaction, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, type Submissions, type Team, type Teams, type Text, type ThemeColor, type TimeUnit, VERSION, XCPCIO_HOME };
276
+ export { ContestState, GITHUB_SHA, GITHUB_URL, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, VERSION, XCPCIO_HOME };
277
+ export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
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.55.2";
90
+ declare const VERSION = "0.57.0";
91
91
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "3c3d35cfc0";
92
+ declare const GITHUB_SHA = "fe202d4847";
93
93
  declare const XCPCIO_HOME = "https://xcpcio.com";
94
94
 
95
95
  interface Problem {
@@ -114,6 +114,8 @@ interface ContestOptions {
114
114
  calculation_of_penalty?: CalculationOfPenalty;
115
115
  submission_timestamp_unit?: TimeUnit;
116
116
  submission_has_reaction?: boolean;
117
+ has_reaction_videos?: boolean;
118
+ reaction_video_url_template?: string;
117
119
  }
118
120
  type MedalPreset = "ccpc" | "icpc";
119
121
  type BannerMode = "ONLY_BANNER" | "ALL";
@@ -271,4 +273,5 @@ interface Team {
271
273
  }
272
274
  type Teams = Array<Team> | Record<string, Team>;
273
275
 
274
- export { type BalloonColor, type BannerMode, type Base64, type CalculationOfPenalty, type Color, type ColorHEX, type ColorRGB, type ColorRGBA, type Contest, type ContestIndex, type ContestIndexConfig, type ContestOptions, ContestState, type Contributor, type DateTimeISO8601String, GITHUB_SHA, GITHUB_URL, type I18NStringSet, type IPerson, type IPersons, type IRating, type IRatingHistory, type IRatingIndex, type IRatingUser, type Image, type Lang, type Link, type LinkString, type MedalPreset, type Problem, type Problems, type StatusTimeDisplay, type Style, type Submission, type SubmissionReaction, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, type Submissions, type Team, type Teams, type Text, type ThemeColor, type TimeUnit, VERSION, XCPCIO_HOME };
276
+ export { ContestState, GITHUB_SHA, GITHUB_URL, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, VERSION, XCPCIO_HOME };
277
+ export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
- const VERSION = "0.55.2";
1
+ const VERSION = "0.57.0";
2
2
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
3
- const GITHUB_SHA = "3c3d35cfc0";
3
+ const GITHUB_SHA = "fe202d4847";
4
4
  const XCPCIO_HOME = "https://xcpcio.com";
5
5
 
6
6
  var ContestState = /* @__PURE__ */ ((ContestState2) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xcpcio/types",
3
- "version": "0.55.2",
3
+ "version": "0.57.0",
4
4
  "description": "XCPCIO Types",
5
5
  "author": "Dup4 <lyuzhi.pan@gmail.com>",
6
6
  "license": "MIT",
@@ -40,21 +40,21 @@
40
40
  "src"
41
41
  ],
42
42
  "devDependencies": {
43
- "@babel/types": "^7.27.0",
44
- "@types/node": "^18.19.86",
45
- "@typescript-eslint/eslint-plugin": "^8.29.1",
46
- "@typescript-eslint/parser": "^8.29.1",
47
- "bumpp": "^10.1.0",
48
- "eslint": "^9.24.0",
43
+ "@babel/types": "^7.28.4",
44
+ "@types/node": "^20.19.13",
45
+ "@typescript-eslint/eslint-plugin": "^8.42.0",
46
+ "@typescript-eslint/parser": "^8.42.0",
47
+ "bumpp": "^10.2.3",
48
+ "eslint": "^9.35.0",
49
49
  "esmo": "^4.8.0",
50
50
  "git-repo-info": "^2.1.1",
51
51
  "npm-run-all": "^4.1.5",
52
- "pnpm": "^10.8.0",
53
- "taze": "^19.0.4",
54
- "typescript": "^5.8.3",
55
- "unbuild": "^3.5.0",
56
- "vite": "^6.2.6",
57
- "vitest": "^3.1.1"
52
+ "pnpm": "^10.15.1",
53
+ "taze": "^19.5.0",
54
+ "typescript": "^5.9.2",
55
+ "unbuild": "^3.6.1",
56
+ "vite": "^7.1.4",
57
+ "vitest": "^3.2.4"
58
58
  },
59
59
  "scripts": {
60
60
  "build": "unbuild",
@@ -31,12 +31,12 @@ export type ColorRGBA = string;
31
31
  /** General color format. */
32
32
  export type Color = ColorHEX | ColorRGB | ColorRGBA;
33
33
 
34
- export type ThemeColor =
35
- | Color
36
- | {
37
- light: Color;
38
- dark: Color;
39
- };
34
+ export type ThemeColor
35
+ = | Color
36
+ | {
37
+ light: Color;
38
+ dark: Color;
39
+ };
40
40
 
41
41
  export interface Style {
42
42
  /**
package/src/contest.ts CHANGED
@@ -16,7 +16,15 @@ export type CalculationOfPenalty = "in_minutes"
16
16
  export interface ContestOptions {
17
17
  calculation_of_penalty?: CalculationOfPenalty;
18
18
  submission_timestamp_unit?: TimeUnit;
19
+
20
+ // deprecated, please use has_reaction_videos instead
19
21
  submission_has_reaction?: boolean;
22
+
23
+ has_reaction_videos?: boolean;
24
+
25
+ // example: https://your.video.cdn/wf/2025/${submission_id}.mp4
26
+ // ${submission_id} will be replaced with the submission id
27
+ reaction_video_url_template?: string;
20
28
  }
21
29
 
22
30
  export type MedalPreset = "ccpc" | "icpc";