@xcpcio/types 0.56.0 → 0.57.1
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 +2 -2
- package/dist/index.d.cts +6 -3
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.mjs +2 -2
- package/package.json +13 -13
- package/src/basic-types.ts +6 -6
- package/src/contest.ts +8 -0
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const VERSION = "0.
|
|
3
|
+
const VERSION = "0.57.1";
|
|
4
4
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
5
|
-
const GITHUB_SHA = "
|
|
5
|
+
const GITHUB_SHA = "0821a26e1e";
|
|
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.
|
|
90
|
+
declare const VERSION = "0.57.1";
|
|
91
91
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
92
|
+
declare const GITHUB_SHA = "0821a26e1e";
|
|
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 {
|
|
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.
|
|
90
|
+
declare const VERSION = "0.57.1";
|
|
91
91
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
92
|
+
declare const GITHUB_SHA = "0821a26e1e";
|
|
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 {
|
|
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.
|
|
90
|
+
declare const VERSION = "0.57.1";
|
|
91
91
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
92
|
+
declare const GITHUB_SHA = "0821a26e1e";
|
|
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 {
|
|
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.
|
|
1
|
+
const VERSION = "0.57.1";
|
|
2
2
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
3
|
-
const GITHUB_SHA = "
|
|
3
|
+
const GITHUB_SHA = "0821a26e1e";
|
|
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.
|
|
3
|
+
"version": "0.57.1",
|
|
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.
|
|
44
|
-
"@types/node": "^
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
46
|
-
"@typescript-eslint/parser": "^8.
|
|
47
|
-
"bumpp": "^10.
|
|
48
|
-
"eslint": "^9.
|
|
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.
|
|
53
|
-
"taze": "^19.0
|
|
54
|
-
"typescript": "^5.
|
|
55
|
-
"unbuild": "^3.
|
|
56
|
-
"vite": "^
|
|
57
|
-
"vitest": "^3.
|
|
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",
|
package/src/basic-types.ts
CHANGED
|
@@ -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
|
-
|
|
38
|
-
|
|
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";
|