@xcpcio/types 0.50.5 → 0.51.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 +2 -2
- package/dist/index.d.ts +8 -3
- package/dist/index.mjs +2 -2
- package/package.json +9 -9
- package/src/contest.ts +1 -0
- package/src/submission.ts +6 -0
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
|
+
const VERSION = "0.51.0";
|
|
6
6
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
7
|
-
const GITHUB_SHA = "
|
|
7
|
+
const GITHUB_SHA = "2ac5cc7fdc";
|
|
8
8
|
const XCPCIO_HOME = "https://xcpcio.com";
|
|
9
9
|
|
|
10
10
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
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.51.0";
|
|
91
91
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
92
|
+
declare const GITHUB_SHA = "2ac5cc7fdc";
|
|
93
93
|
declare const XCPCIO_HOME = "https://xcpcio.com";
|
|
94
94
|
|
|
95
95
|
interface ContestIndexConfig {
|
|
@@ -125,6 +125,7 @@ type CalculationOfPenalty = "in_minutes" | "in_seconds" | "accumulate_in_seconds
|
|
|
125
125
|
interface ContestOptions {
|
|
126
126
|
calculation_of_penalty?: CalculationOfPenalty;
|
|
127
127
|
submission_timestamp_unit?: TimeUnit;
|
|
128
|
+
submission_has_reaction?: boolean;
|
|
128
129
|
}
|
|
129
130
|
type MedalPreset = "ccpc" | "icpc";
|
|
130
131
|
type BannerMode = "ONLY_BANNER" | "ALL";
|
|
@@ -234,6 +235,9 @@ declare const SubmissionStatusToSimpleString: {
|
|
|
234
235
|
[key in SubmissionStatus]: string;
|
|
235
236
|
};
|
|
236
237
|
|
|
238
|
+
interface SubmissionReaction {
|
|
239
|
+
url: string;
|
|
240
|
+
}
|
|
237
241
|
interface Submission {
|
|
238
242
|
id?: string;
|
|
239
243
|
submission_id?: string;
|
|
@@ -244,6 +248,7 @@ interface Submission {
|
|
|
244
248
|
time?: number;
|
|
245
249
|
language?: string;
|
|
246
250
|
is_ignore?: boolean;
|
|
251
|
+
reaction?: SubmissionReaction;
|
|
247
252
|
}
|
|
248
253
|
type Submissions = Array<Submission> | Record<string, Submission>;
|
|
249
254
|
|
|
@@ -266,4 +271,4 @@ interface Team {
|
|
|
266
271
|
}
|
|
267
272
|
type Teams = Array<Team> | Record<string, Team>;
|
|
268
273
|
|
|
269
|
-
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, XCPCIO_HOME };
|
|
274
|
+
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, SubmissionReaction, SubmissionStatus, SubmissionStatusToSimpleString, SubmissionStatusToString, Submissions, Team, Teams, Text, ThemeColor, TimeUnit, VERSION, XCPCIO_HOME };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const VERSION = "0.
|
|
1
|
+
const VERSION = "0.51.0";
|
|
2
2
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
3
|
-
const GITHUB_SHA = "
|
|
3
|
+
const GITHUB_SHA = "2ac5cc7fdc";
|
|
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.51.0",
|
|
4
4
|
"description": "XCPCIO Types",
|
|
5
5
|
"author": "Dup4 <lyuzhi.pan@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,21 +40,21 @@
|
|
|
40
40
|
"dist"
|
|
41
41
|
],
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@babel/types": "^7.
|
|
43
|
+
"@babel/types": "^7.25.6",
|
|
44
44
|
"@types/node": "^17.0.45",
|
|
45
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
46
|
-
"@typescript-eslint/parser": "^5.
|
|
45
|
+
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
46
|
+
"@typescript-eslint/parser": "^5.62.0",
|
|
47
47
|
"bumpp": "^7.2.0",
|
|
48
|
-
"eslint": "^8.
|
|
48
|
+
"eslint": "^8.57.1",
|
|
49
49
|
"esmo": "^0.14.1",
|
|
50
50
|
"git-repo-info": "^2.1.1",
|
|
51
51
|
"npm-run-all": "^4.1.5",
|
|
52
|
-
"pnpm": "^7.33.
|
|
53
|
-
"taze": "^0.10.
|
|
52
|
+
"pnpm": "^7.33.7",
|
|
53
|
+
"taze": "^0.10.3",
|
|
54
54
|
"typescript": "^4.9.5",
|
|
55
55
|
"unbuild": "^0.7.6",
|
|
56
|
-
"vite": "^4.
|
|
57
|
-
"vitest": "^0.32.
|
|
56
|
+
"vite": "^4.5.5",
|
|
57
|
+
"vitest": "^0.32.4"
|
|
58
58
|
},
|
|
59
59
|
"scripts": {
|
|
60
60
|
"build": "unbuild",
|
package/src/contest.ts
CHANGED
|
@@ -16,6 +16,7 @@ export type CalculationOfPenalty = "in_minutes"
|
|
|
16
16
|
export interface ContestOptions {
|
|
17
17
|
calculation_of_penalty?: CalculationOfPenalty;
|
|
18
18
|
submission_timestamp_unit?: TimeUnit;
|
|
19
|
+
submission_has_reaction?: boolean;
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
export type MedalPreset = "ccpc" | "icpc";
|
package/src/submission.ts
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import type { SubmissionStatus } from "./submission-status";
|
|
2
2
|
|
|
3
|
+
export interface SubmissionReaction {
|
|
4
|
+
url: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
3
7
|
export interface Submission {
|
|
4
8
|
id?: string;
|
|
5
9
|
submission_id?: string;
|
|
@@ -13,6 +17,8 @@ export interface Submission {
|
|
|
13
17
|
language?: string;
|
|
14
18
|
|
|
15
19
|
is_ignore?: boolean;
|
|
20
|
+
|
|
21
|
+
reaction?: SubmissionReaction;
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
export type Submissions = Array<Submission> | Record<string, Submission>;
|