.
This commit is contained in:
1 parent
d2c03d155d
commit
db60190e19
13 files changed
+505
-38
No files matched your search
+19
-1
@@ -60,6 +60,11 @@ export interface ReservationResult {
|
||||
transport?: ReservationTransport
|
||||
}
|
||||
|
||||
export interface CaptchaResult {
|
||||
token: string
|
||||
solvedAtMs: number
|
||||
}
|
||||
|
||||
export interface ReservationTransport {
|
||||
sentAtMs: number
|
||||
receivedAtMs: number
|
||||
@@ -67,6 +72,8 @@ export interface ReservationTransport {
|
||||
httpStatus: number
|
||||
remoteIp: string
|
||||
reusedSocket: boolean
|
||||
protocol?: 'http/1.1' | 'h2'
|
||||
connectionId?: string
|
||||
observedServerDateMs?: number
|
||||
}
|
||||
|
||||
@@ -82,11 +89,14 @@ export interface ClockSample {
|
||||
offsetMaxMs: number
|
||||
remoteIp: string
|
||||
reusedSocket: boolean
|
||||
protocol?: 'http/1.1' | 'h2'
|
||||
connectionId?: string
|
||||
accepted: boolean
|
||||
rejectionReason?: string
|
||||
}
|
||||
|
||||
export interface ClockCalibrationSettings {
|
||||
transportMode: 'http1' | 'http2'
|
||||
enabled: boolean
|
||||
autoApply: boolean
|
||||
scanWindowMs: number
|
||||
@@ -101,6 +111,7 @@ export interface ClockCalibrationSettings {
|
||||
}
|
||||
|
||||
export const CLOCK_CALIBRATION_DEFAULTS: ClockCalibrationSettings = {
|
||||
transportMode: 'http1',
|
||||
enabled: true,
|
||||
autoApply: true,
|
||||
scanWindowMs: 250,
|
||||
@@ -137,6 +148,9 @@ export interface ClockEstimate {
|
||||
calibrationApplied: boolean
|
||||
calibrationSettings: ClockCalibrationSettings
|
||||
remoteIp: string
|
||||
protocol?: 'http/1.1' | 'h2'
|
||||
connectionId?: string
|
||||
connectionReused?: boolean
|
||||
quality: 'good' | 'fair' | 'poor' | 'unavailable'
|
||||
warning?: string
|
||||
samples: ClockSample[]
|
||||
@@ -158,6 +172,8 @@ export interface TimingTestResult {
|
||||
uncertaintyMs: number
|
||||
remoteIp: string
|
||||
reusedSocket: boolean
|
||||
protocol?: 'http/1.1' | 'h2'
|
||||
connectionId?: string
|
||||
}
|
||||
|
||||
export interface AutoReservationConfig {
|
||||
@@ -188,6 +204,8 @@ export interface AutoReservationTimeline {
|
||||
httpStatus?: number
|
||||
remoteIp?: string
|
||||
reusedSocket?: boolean
|
||||
protocol?: 'http/1.1' | 'h2'
|
||||
connectionId?: string
|
||||
}
|
||||
|
||||
export interface AutoReservationState {
|
||||
@@ -210,7 +228,7 @@ export interface ReservationApi {
|
||||
getThemeDetail(themeInfoNum: number): Promise<ThemeDetail>
|
||||
getTimes(selection: Pick<ReservationSelection, 'date' | 'branchNum' | 'themeNum'>): Promise<TimeSlot[]>
|
||||
prepare(selection: ReservationSelection): Promise<PriceOption[]>
|
||||
openCaptcha(selection: Pick<ReservationSelection, 'branchNum' | 'themeNum' | 'themeInfoNum'>): Promise<void>
|
||||
openCaptcha(selection: ReservationSelection): Promise<CaptchaResult>
|
||||
submit(request: ReservationRequest): Promise<ReservationResult>
|
||||
startClockMonitor(): Promise<ClockEstimate>
|
||||
stopClockMonitor(): Promise<ClockEstimate>
|
||||
|
||||
Reference in new issue
Block a user