@xcpcio/types 0.58.0 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2020 - PRESENT XCPCIO
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/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const VERSION = "0.58.0";
3
+ const VERSION = "0.58.3";
4
4
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
5
- const GITHUB_SHA = "fc7b50c5bf";
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?: string;
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.58.0";
91
+ declare const VERSION = "0.58.3";
91
92
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "fc7b50c5bf";
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?: string;
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.58.0";
91
+ declare const VERSION = "0.58.3";
91
92
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "fc7b50c5bf";
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?: string;
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.58.0";
91
+ declare const VERSION = "0.58.3";
91
92
  declare const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
92
- declare const GITHUB_SHA = "fc7b50c5bf";
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.58.0";
1
+ const VERSION = "0.58.3";
2
2
  const GITHUB_URL = "https://github.com/xcpcio/xcpcio";
3
- const GITHUB_SHA = "fc7b50c5bf";
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.58.0",
3
+ "version": "0.58.3",
4
4
  "description": "XCPCIO Types",
5
- "author": "Dup4 <lyuzhi.pan@gmail.com>",
5
+ "author": "Dup4 <hi@dup4.com>",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/xcpcio/xcpcio",
8
8
  "repository": {
@@ -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?: string;
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
- freeze_time?: number | DateTimeISO8601String;
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>;