@xcpcio/types 0.57.2 → 0.58.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/LICENSE +1 -1
- package/README.md +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +6 -5
- package/dist/index.d.mts +6 -5
- package/dist/index.d.ts +6 -5
- package/dist/index.mjs +2 -2
- package/package.json +3 -3
- package/src/basic-types.ts +3 -1
- package/src/contest.ts +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2020 - PRESENT
|
|
3
|
+
Copyright (c) 2020 - PRESENT Dup4 <https://github.com/Dup4>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const VERSION = "0.
|
|
3
|
+
const VERSION = "0.58.3";
|
|
4
4
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
5
|
-
const GITHUB_SHA = "
|
|
5
|
+
const GITHUB_SHA = "bc7554078e";
|
|
6
6
|
const XCPCIO_HOME = "https://xcpcio.com";
|
|
7
7
|
|
|
8
8
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
package/dist/index.d.cts
CHANGED
|
@@ -69,6 +69,7 @@ type Text = string | I18NStringSet;
|
|
|
69
69
|
type Contributor = string;
|
|
70
70
|
type Base64 = string;
|
|
71
71
|
type LinkString = string;
|
|
72
|
+
type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
72
73
|
interface Link {
|
|
73
74
|
link: LinkString;
|
|
74
75
|
title?: string;
|
|
@@ -77,7 +78,7 @@ interface Image {
|
|
|
77
78
|
url?: string;
|
|
78
79
|
base64?: Base64;
|
|
79
80
|
type?: "png" | "svg" | "jpg" | "jpeg";
|
|
80
|
-
preset?:
|
|
81
|
+
preset?: ImagePreset;
|
|
81
82
|
[key: string]: string | undefined;
|
|
82
83
|
}
|
|
83
84
|
interface StatusTimeDisplay {
|
|
@@ -87,9 +88,9 @@ interface StatusTimeDisplay {
|
|
|
87
88
|
}
|
|
88
89
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
89
90
|
|
|
90
|
-
declare const VERSION = "0.
|
|
91
|
+
declare const VERSION = "0.58.3";
|
|
91
92
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
93
|
+
declare const GITHUB_SHA = "bc7554078e";
|
|
93
94
|
declare const XCPCIO_HOME = "https://xcpcio.com";
|
|
94
95
|
|
|
95
96
|
interface Problem {
|
|
@@ -123,9 +124,9 @@ interface Contest {
|
|
|
123
124
|
contest_name: string;
|
|
124
125
|
start_time: number | DateTimeISO8601String;
|
|
125
126
|
end_time: number | DateTimeISO8601String;
|
|
127
|
+
penalty: number;
|
|
126
128
|
freeze_time?: number | DateTimeISO8601String;
|
|
127
129
|
frozen_time?: number;
|
|
128
|
-
penalty: number;
|
|
129
130
|
problems?: Array<Problem>;
|
|
130
131
|
problem_id?: Array<string>;
|
|
131
132
|
organization?: string;
|
|
@@ -274,4 +275,4 @@ interface Team {
|
|
|
274
275
|
type Teams = Array<Team> | Record<string, Team>;
|
|
275
276
|
|
|
276
277
|
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 };
|
|
278
|
+
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
|
package/dist/index.d.mts
CHANGED
|
@@ -69,6 +69,7 @@ type Text = string | I18NStringSet;
|
|
|
69
69
|
type Contributor = string;
|
|
70
70
|
type Base64 = string;
|
|
71
71
|
type LinkString = string;
|
|
72
|
+
type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
72
73
|
interface Link {
|
|
73
74
|
link: LinkString;
|
|
74
75
|
title?: string;
|
|
@@ -77,7 +78,7 @@ interface Image {
|
|
|
77
78
|
url?: string;
|
|
78
79
|
base64?: Base64;
|
|
79
80
|
type?: "png" | "svg" | "jpg" | "jpeg";
|
|
80
|
-
preset?:
|
|
81
|
+
preset?: ImagePreset;
|
|
81
82
|
[key: string]: string | undefined;
|
|
82
83
|
}
|
|
83
84
|
interface StatusTimeDisplay {
|
|
@@ -87,9 +88,9 @@ interface StatusTimeDisplay {
|
|
|
87
88
|
}
|
|
88
89
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
89
90
|
|
|
90
|
-
declare const VERSION = "0.
|
|
91
|
+
declare const VERSION = "0.58.3";
|
|
91
92
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
93
|
+
declare const GITHUB_SHA = "bc7554078e";
|
|
93
94
|
declare const XCPCIO_HOME = "https://xcpcio.com";
|
|
94
95
|
|
|
95
96
|
interface Problem {
|
|
@@ -123,9 +124,9 @@ interface Contest {
|
|
|
123
124
|
contest_name: string;
|
|
124
125
|
start_time: number | DateTimeISO8601String;
|
|
125
126
|
end_time: number | DateTimeISO8601String;
|
|
127
|
+
penalty: number;
|
|
126
128
|
freeze_time?: number | DateTimeISO8601String;
|
|
127
129
|
frozen_time?: number;
|
|
128
|
-
penalty: number;
|
|
129
130
|
problems?: Array<Problem>;
|
|
130
131
|
problem_id?: Array<string>;
|
|
131
132
|
organization?: string;
|
|
@@ -274,4 +275,4 @@ interface Team {
|
|
|
274
275
|
type Teams = Array<Team> | Record<string, Team>;
|
|
275
276
|
|
|
276
277
|
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 };
|
|
278
|
+
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, Lang, Link, LinkString, MedalPreset, Problem, Problems, StatusTimeDisplay, Style, Submission, SubmissionReaction, Submissions, Team, Teams, Text, ThemeColor, TimeUnit };
|
package/dist/index.d.ts
CHANGED
|
@@ -69,6 +69,7 @@ type Text = string | I18NStringSet;
|
|
|
69
69
|
type Contributor = string;
|
|
70
70
|
type Base64 = string;
|
|
71
71
|
type LinkString = string;
|
|
72
|
+
type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
72
73
|
interface Link {
|
|
73
74
|
link: LinkString;
|
|
74
75
|
title?: string;
|
|
@@ -77,7 +78,7 @@ interface Image {
|
|
|
77
78
|
url?: string;
|
|
78
79
|
base64?: Base64;
|
|
79
80
|
type?: "png" | "svg" | "jpg" | "jpeg";
|
|
80
|
-
preset?:
|
|
81
|
+
preset?: ImagePreset;
|
|
81
82
|
[key: string]: string | undefined;
|
|
82
83
|
}
|
|
83
84
|
interface StatusTimeDisplay {
|
|
@@ -87,9 +88,9 @@ interface StatusTimeDisplay {
|
|
|
87
88
|
}
|
|
88
89
|
type TimeUnit = "second" | "millisecond" | "microsecond" | "nanosecond";
|
|
89
90
|
|
|
90
|
-
declare const VERSION = "0.
|
|
91
|
+
declare const VERSION = "0.58.3";
|
|
91
92
|
declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
92
|
-
declare const GITHUB_SHA = "
|
|
93
|
+
declare const GITHUB_SHA = "bc7554078e";
|
|
93
94
|
declare const XCPCIO_HOME = "https://xcpcio.com";
|
|
94
95
|
|
|
95
96
|
interface Problem {
|
|
@@ -123,9 +124,9 @@ interface Contest {
|
|
|
123
124
|
contest_name: string;
|
|
124
125
|
start_time: number | DateTimeISO8601String;
|
|
125
126
|
end_time: number | DateTimeISO8601String;
|
|
127
|
+
penalty: number;
|
|
126
128
|
freeze_time?: number | DateTimeISO8601String;
|
|
127
129
|
frozen_time?: number;
|
|
128
|
-
penalty: number;
|
|
129
130
|
problems?: Array<Problem>;
|
|
130
131
|
problem_id?: Array<string>;
|
|
131
132
|
organization?: string;
|
|
@@ -274,4 +275,4 @@ interface Team {
|
|
|
274
275
|
type Teams = Array<Team> | Record<string, Team>;
|
|
275
276
|
|
|
276
277
|
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 };
|
|
278
|
+
export type { BalloonColor, BannerMode, Base64, CalculationOfPenalty, Color, ColorHEX, ColorRGB, ColorRGBA, Contest, ContestIndex, ContestIndexConfig, ContestOptions, Contributor, DateTimeISO8601String, I18NStringSet, IPerson, IPersons, IRating, IRatingHistory, IRatingIndex, IRatingUser, Image, ImagePreset, 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.58.3";
|
|
2
2
|
const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
|
|
3
|
-
const GITHUB_SHA = "
|
|
3
|
+
const GITHUB_SHA = "bc7554078e";
|
|
4
4
|
const XCPCIO_HOME = "https://xcpcio.com";
|
|
5
5
|
|
|
6
6
|
var ContestState = /* @__PURE__ */ ((ContestState2) => {
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xcpcio/types",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.58.3",
|
|
4
4
|
"description": "XCPCIO Types",
|
|
5
|
-
"author": "Dup4 <
|
|
5
|
+
"author": "Dup4 <hi@dup4.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/xcpcio/xcpcio",
|
|
8
8
|
"repository": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
],
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@babel/types": "^7.28.4",
|
|
44
|
-
"@types/node": "^
|
|
44
|
+
"@types/node": "^24.3.1",
|
|
45
45
|
"@typescript-eslint/eslint-plugin": "^8.42.0",
|
|
46
46
|
"@typescript-eslint/parser": "^8.42.0",
|
|
47
47
|
"bumpp": "^10.2.3",
|
package/src/basic-types.ts
CHANGED
|
@@ -85,6 +85,8 @@ export type Base64 = string;
|
|
|
85
85
|
|
|
86
86
|
export type LinkString = string;
|
|
87
87
|
|
|
88
|
+
export type ImagePreset = "ICPC" | "CCPC" | "HUNAN_CPC";
|
|
89
|
+
|
|
88
90
|
export interface Link {
|
|
89
91
|
link: LinkString;
|
|
90
92
|
title?: string;
|
|
@@ -94,7 +96,7 @@ export interface Image {
|
|
|
94
96
|
url?: string;
|
|
95
97
|
base64?: Base64;
|
|
96
98
|
type?: "png" | "svg" | "jpg" | "jpeg";
|
|
97
|
-
preset?:
|
|
99
|
+
preset?: ImagePreset;
|
|
98
100
|
[key: string]: string | undefined;
|
|
99
101
|
}
|
|
100
102
|
|
package/src/contest.ts
CHANGED
|
@@ -35,10 +35,10 @@ export interface Contest {
|
|
|
35
35
|
|
|
36
36
|
start_time: number | DateTimeISO8601String;
|
|
37
37
|
end_time: number | DateTimeISO8601String;
|
|
38
|
-
|
|
38
|
+
penalty: number; // unit: seconds
|
|
39
39
|
|
|
40
|
+
freeze_time?: number | DateTimeISO8601String;
|
|
40
41
|
frozen_time?: number; // unit: seconds
|
|
41
|
-
penalty: number; // unit: seconds
|
|
42
42
|
|
|
43
43
|
problems?: Array<Problem>;
|
|
44
44
|
problem_id?: Array<string>;
|