Skip to content

Commit ba159be

Browse files
committed
chore(api): update dynamix config types
1 parent 984b0f6 commit ba159be

File tree

1 file changed

+58
-58
lines changed

1 file changed

+58
-58
lines changed

api/src/core/types/ini.ts

Lines changed: 58 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,31 @@ export type IniStringBooleanOrAuto = 'auto' | 'no' | 'yes';
66
type Unit = 'C' | 'F';
77

88
interface Display {
9-
align: string;
10-
banner: string;
11-
critical: string;
12-
custom: string;
13-
dashapps: string;
14-
date: string;
15-
time: string;
16-
hot: string;
17-
max: string;
18-
number: string;
19-
refresh: string;
20-
resize: string;
21-
scale: string;
22-
tabs: string;
23-
text: string;
24-
theme: string;
25-
total: string;
26-
unit: Unit;
27-
usage: string;
28-
warning: string;
29-
wwn: string;
30-
locale: string;
9+
align: string;
10+
banner: string;
11+
critical: string;
12+
custom: string;
13+
dashapps: string;
14+
date: string;
15+
time?: string;
16+
hot: string;
17+
max: string;
18+
number: string;
19+
refresh: string;
20+
resize: string;
21+
scale: string;
22+
tabs: string;
23+
text: string;
24+
theme: string;
25+
total: string;
26+
unit: Unit;
27+
usage: string;
28+
warning: string;
29+
wwn: string;
30+
locale: string;
3131
}
3232

33-
/**
33+
/**
3434
* Represents [Notification Settings](http://tower.local/Settings/Notifications),
3535
* which live in `/boot/config/plugins/dynamix/dynamix.cfg` under the `[notify]` section.
3636
*/
@@ -42,60 +42,60 @@ interface Notify {
4242
plugin: string;
4343
docker_notify: string;
4444
report: string;
45-
/** Date format: DD-MM-YYYY, MM-DD-YYY, or YYYY-MM-DD */
45+
/** Date format: DD-MM-YYYY, MM-DD-YYY, or YYYY-MM-DD */
4646
date: 'd-m-Y' | 'm-d-Y' | 'Y-m-d';
47-
/**
48-
* Time format:
49-
* - `hi: A` => 12 hr
50-
* - `H:i` => 24 hr (default)
51-
*/
47+
/**
48+
* Time format:
49+
* - `hi: A` => 12 hr
50+
* - `H:i` => 24 hr (default)
51+
*/
5252
time: 'h:i A' | 'H:i';
5353
position: string;
5454
/** path for notifications (defaults to '/tmp/notifications') */
5555
path: string;
56-
/**
57-
* The 'Notifications Display' field:
58-
* - 0 => Detailed (default)
59-
* - 1 => Summarized
60-
*/
56+
/**
57+
* The 'Notifications Display' field:
58+
* - 0 => Detailed (default)
59+
* - 1 => Summarized
60+
*/
6161
display: '0' | '1';
6262
system: string;
6363
version: string;
6464
docker_update: string;
6565
}
6666

6767
interface Ssmtp {
68-
service: string;
69-
root: string;
70-
rcptTo: string;
71-
setEmailPriority: string;
72-
subject: string;
73-
server: string;
74-
port: string;
75-
useTls: string;
76-
useStarttls: string;
77-
useTlsCert: string;
78-
authMethod: string;
79-
authUser: string;
80-
authPass: string;
68+
service: string;
69+
root: string;
70+
rcptTo: string;
71+
setEmailPriority: string;
72+
subject: string;
73+
server: string;
74+
port: string;
75+
useTls: string;
76+
useStarttls: string;
77+
useTlsCert: string;
78+
authMethod: string;
79+
authUser: string;
80+
authPass: string;
8181
}
8282

8383
interface Parity {
84-
mode: string;
85-
dotm: string;
86-
hour: string;
84+
mode: string;
85+
dotm: string;
86+
hour: string;
8787
}
8888

8989
interface Remote {
90-
wanaccess: string;
91-
wanport: string;
92-
apikey: string;
90+
wanaccess: string;
91+
wanport: string;
92+
apikey: string;
9393
}
9494

9595
export interface DynamixConfig extends Record<string, unknown> {
96-
display: Display;
97-
notify: Notify;
98-
ssmtp: Ssmtp;
99-
parity: Parity;
100-
remote: Remote;
96+
display: Display;
97+
notify: Notify;
98+
ssmtp: Ssmtp;
99+
parity: Parity;
100+
remote: Remote;
101101
}

0 commit comments

Comments
 (0)