@cpany/types
Advanced tools
Comparing version 0.1.10 to 0.1.11
@@ -212,2 +212,37 @@ declare enum Verdict { | ||
} | ||
interface UserDiffLog { | ||
name: string; | ||
newSubmissions: Array<{ | ||
platform: string; | ||
id: number; | ||
verdict: Verdict; | ||
creationTime: number; | ||
pid: number | string; | ||
name: string; | ||
}>; | ||
newContests: Array<{ | ||
platform: string; | ||
name: string; | ||
participantTime: number; | ||
}>; | ||
} | ||
interface DiffLog { | ||
user?: UserDiffLog[]; | ||
contest?: Array<{ | ||
platform: string; | ||
name: string; | ||
startTime: number; | ||
duration: number; | ||
participant: string[]; | ||
}>; | ||
} | ||
interface FetchLog { | ||
/** | ||
* CLI version running fetch | ||
*/ | ||
version: string; | ||
updateTime: number; | ||
ref?: string; | ||
history?: DiffLog; | ||
} | ||
declare type Key<T> = T & { | ||
@@ -244,2 +279,2 @@ key: string; | ||
export { AppOption, CPanyOption, CompressHandleList, IAuthor, ICPanyPluginConfig, IContest, IContestOverview, IContestProblem, IContestStanding, IContestSubmission, IHandle, IProblem, IRouteUser, ISubmission, IUser, IUserOverview, Key, LogLevel, ParticipantType, ResolvedCPanyOption, ResolvedCPanyUserOption, RouteKey, Verdict, isAtCoder, isCodeforces, isHdu, isLuogu, isNowCoder, isPintia }; | ||
export { AppOption, CPanyOption, CompressHandleList, DiffLog, FetchLog, IAuthor, ICPanyPluginConfig, IContest, IContestOverview, IContestProblem, IContestStanding, IContestSubmission, IHandle, IProblem, IRouteUser, ISubmission, IUser, IUserOverview, Key, LogLevel, ParticipantType, ResolvedCPanyOption, ResolvedCPanyUserOption, RouteKey, UserDiffLog, Verdict, isAtCoder, isCodeforces, isHdu, isLuogu, isNowCoder, isPintia }; |
{ | ||
"name": "@cpany/types", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"description": "CPany types package", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -1,3 +0,4 @@ | ||
import { IHandle, IAuthor } from './handle'; | ||
import { IContest } from './contest'; | ||
import type { IHandle, IAuthor } from './handle'; | ||
import type { IContest } from './contest'; | ||
import type { Verdict } from './enum'; | ||
@@ -111,2 +112,46 @@ export interface IUser { | ||
export interface UserDiffLog { | ||
name: string; | ||
newSubmissions: Array<{ | ||
platform: string; | ||
id: number; | ||
verdict: Verdict; | ||
creationTime: number; | ||
pid: number | string; | ||
name: string; | ||
}>; | ||
newContests: Array<{ | ||
platform: string; | ||
name: string; | ||
participantTime: number; | ||
}>; | ||
} | ||
export interface DiffLog { | ||
user?: UserDiffLog[]; | ||
contest?: Array<{ | ||
platform: string; | ||
name: string; | ||
startTime: number; | ||
duration: number; | ||
participant: string[]; | ||
}>; | ||
} | ||
export interface FetchLog { | ||
/** | ||
* CLI version running fetch | ||
*/ | ||
version: string; | ||
updateTime: number; | ||
ref?: string; | ||
history?: DiffLog; | ||
} | ||
export type Key<T> = T & { key: string }; | ||
@@ -113,0 +158,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23375
818