-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdata.ts
109 lines (105 loc) · 2.78 KB
/
data.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
import { APIEvent } from "./event";
import { APIStage } from "./stage";
export interface APICommonDataTeam {
id: number;
khl_id: number;
name: string;
image: string;
tickets_site: string | null;
about_team: string | null;
}
export interface APIVideoType {
id: string;
title: string;
}
export interface APIGeoError {
// serial_version_uid: bigint;
country: string;
licensee_url: string;
text_error: string;
}
export interface APICommonData {
/** Unknown, but a client can default to `20` when this is `null`. */
safe_live_shift: number;
/** All available stages */
stages_v2: APIStage[];
// about_khl: null;
/** The currently ongoing stage */
current_stage_id: number;
/** The team in the current user's 1st "favorite" slot */
favorite_team_slot_1_id?: number | null;
/** The team in the current user's 2nd "favorite" slot */
favorite_team_slot_2_id?: number | null;
/** The team in the current user's 3rd "favorite" slot */
favorite_team_slot_3_id?: number | null;
/** The current latest Android app version */
android_app_version: string;
/** The current latest iOS app version */
ios_app_version: string;
server_time: number;
remote_ip: string;
/** All currently-playing teams */
teams: APICommonDataTeam[];
/**
* Same as `teams`, but also includes divisions as pseudo-teams with
* an `about_team` of `null`. Most use cases want `teams` instead.
*
* Always empty for WHL and MHL.
*/
teams_for_filter: APICommonDataTeam[];
current_customer: null;
push_notification_subscriptions: Array<unknown>;
transaction_types: {
id: number;
android_app_product_id?: string;
ios_app_product_id?: string;
season: boolean;
events_filter_rule: string;
event_ids?: string;
teams_filter_rule: string;
team_ids?: string;
stages_filter_rule: string;
stage_ids?: string;
description?: string;
custom_data: null;
amount: number;
name: string;
}[];
transactions: Array<unknown>;
mqtt_broker: {
host: string;
port: number;
secure: boolean;
event_topic: string;
};
/** API base for Mastercard-related queries */
mastercard_api: string;
/**
* An array of stage IDs in which, presumably, a user is able to purchase
* content with Mastercard.
*/
mastercard_enabled_stage_ids: number[];
/**
* An array of stage names, up to the 2017-18 regular season.
*
* @deprecated Use `stages_v2` instead.
*/
stages?: string[];
sms_data: unknown;
server_day: number;
test_event: APIEvent;
stat_url: string;
exchange_rate_usd: number;
video_types: APIVideoType[];
selections: {
url: string;
name: string;
}[];
balance_payment_services: {
id: string;
title: string;
desc: string;
}[];
geo_error: APIGeoError | null;
country: string;
}