-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
90 lines (88 loc) · 1.87 KB
/
types.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
/* eslint-disable @typescript-eslint/no-explicit-any */
declare global {
type pt_instance = {
id: number;
external_id: any;
uuid: string;
identifier: string;
name: string;
description: string;
status: string;
suspended: true;
limits: {
memory: number;
swap: number;
disk: number;
io: number;
cpu: number;
threads: any;
oom_disabled: true;
};
feature_limits: {
databases: number;
allocations: number;
backups: number;
proxies: number;
};
user: number;
node: number;
allocation: number;
nest: number;
egg: number;
container: {
startup_command: string;
image: string;
installed: number;
environment: {
SERVER_JARFILE: string;
VANILLA_VERSION: string;
STARTUP: string;
P_SERVER_LOCATION: string;
P_SERVER_UUID: string;
P_SERVER_ALLOCATION_LIMIT: number;
};
};
updated_at: string;
created_at: string;
}
type pteroServer = {
object: string;
attributes: pt_instance;
};
type customWhitelistLine = {
uuid: string;
name: string;
dcid: string;
active?: boolean;
};
type serverHolder = {
object: string;
data: Array<pteroServer>;
meta: {
pagination: {
total: number,
count: number,
per_page: number,
current_page: number,
total_pages: number,
links: object;
}
}
}
type serverconfig = {
"create_channel": false,
"channel_name": string,
"modpack_name": string,
"channel_title": string,
"channel_description": string,
"modpack_type": string,
"modpack_url": string,
"additional_info": string,
"link_1": string,
"link_1_text" : string,
"link_2": string,
"link_2_text" : string,
"footer": string,
"server_address" : string
}
}