forked from ruiii/plugin-Hairstrength
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtype.ts
91 lines (78 loc) · 1.88 KB
/
type.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
import { APIMstShip } from "kcsapi/api_start2/getData/response"
export type SenkaHistory = Record<number, number>
export type ExQuestHistory = Record<number, number[]>
export type MstShipMap = Record<number, APIMstShip>
export interface UserData {
api_itbrdpdbkynm: string, // comment
api_itslcqtmrxtf: number, //
api_mtjmdcwtvhdr: string, // nickname
api_mxltvkpyuklh: number, // rank
api_pbgkfylkbjuy: number,
api_pcumlrymlujh: number,
api_wuhnhojjxmke: number, // encrypted senka
}
export interface RankingAPIData {
api_count: number,
api_disp_page: number,
api_list: UserData[],
api_page_count: number,
}
export interface RankingAPIPayload {
api_token: string,
api_verno: number,
api_ranking: number,
}
export interface SenkaAPIResponse {
api_data: RankingAPIData,
api_result: number,
api_result_msg: string,
}
export interface Archive {
experienceHistory: SenkaHistory,
rank5: SenkaHistory,
rank20: SenkaHistory,
rank100: SenkaHistory,
rank501: SenkaHistory,
rankUser: SenkaHistory,
currentRank: number,
targetSenka: number,
exHistory: ExQuestHistory,
questHistory: ExQuestHistory,
excludedQuests: number[],
magic: number,
date: string,
}
export interface LegacyArchive {
lastmonth: number,
// Experience record
exphis: SenkaHistory,
// Senka record
r5his: SenkaHistory,
r20his: SenkaHistory,
r100his: SenkaHistory,
r501his: SenkaHistory,
myhis: SenkaHistory,
mylastno:0,
mylastranktime:0,
mymagic: number,
tmpexp: 0,
tmpno: 0, // last update time no
reviseType: 0, /* revise */
targetsenka: 3600,
fensureexp: 0,
fensurets: 0,
fensuresenka: 0,
tensureexp:0,
tensurets:0,
extraSenkalist: number[], // quest
rankuex: string[], // ex operation
senkaType: 'calendar',
chartType: 'mon',
}
export interface SenkaQuestT {
id: number,
senka: number,
name: string,
shortname: string,
code: string,
}