From 0f3bebf859aa4ca6ca59fd58a7f97ca33b348027 Mon Sep 17 00:00:00 2001 From: Pujit Mehrotra Date: Fri, 22 Nov 2024 10:39:15 -0500 Subject: [PATCH] chore(api): update dynamix config types --- api/src/core/types/ini.ts | 116 +++++++++++++++++++------------------- 1 file changed, 58 insertions(+), 58 deletions(-) diff --git a/api/src/core/types/ini.ts b/api/src/core/types/ini.ts index b17f8b80c..5cf62e28b 100644 --- a/api/src/core/types/ini.ts +++ b/api/src/core/types/ini.ts @@ -6,31 +6,31 @@ export type IniStringBooleanOrAuto = 'auto' | 'no' | 'yes'; type Unit = 'C' | 'F'; interface Display { - align: string; - banner: string; - critical: string; - custom: string; - dashapps: string; - date: string; - time: string; - hot: string; - max: string; - number: string; - refresh: string; - resize: string; - scale: string; - tabs: string; - text: string; - theme: string; - total: string; - unit: Unit; - usage: string; - warning: string; - wwn: string; - locale: string; + align: string; + banner: string; + critical: string; + custom: string; + dashapps: string; + date: string; + time?: string; + hot: string; + max: string; + number: string; + refresh: string; + resize: string; + scale: string; + tabs: string; + text: string; + theme: string; + total: string; + unit: Unit; + usage: string; + warning: string; + wwn: string; + locale: string; } -/** +/** * Represents [Notification Settings](http://tower.local/Settings/Notifications), * which live in `/boot/config/plugins/dynamix/dynamix.cfg` under the `[notify]` section. */ @@ -42,22 +42,22 @@ interface Notify { plugin: string; docker_notify: string; report: string; - /** Date format: DD-MM-YYYY, MM-DD-YYY, or YYYY-MM-DD */ + /** Date format: DD-MM-YYYY, MM-DD-YYY, or YYYY-MM-DD */ date: 'd-m-Y' | 'm-d-Y' | 'Y-m-d'; - /** - * Time format: - * - `hi: A` => 12 hr - * - `H:i` => 24 hr (default) - */ + /** + * Time format: + * - `hi: A` => 12 hr + * - `H:i` => 24 hr (default) + */ time: 'h:i A' | 'H:i'; position: string; /** path for notifications (defaults to '/tmp/notifications') */ path: string; - /** - * The 'Notifications Display' field: - * - 0 => Detailed (default) - * - 1 => Summarized - */ + /** + * The 'Notifications Display' field: + * - 0 => Detailed (default) + * - 1 => Summarized + */ display: '0' | '1'; system: string; version: string; @@ -65,37 +65,37 @@ interface Notify { } interface Ssmtp { - service: string; - root: string; - rcptTo: string; - setEmailPriority: string; - subject: string; - server: string; - port: string; - useTls: string; - useStarttls: string; - useTlsCert: string; - authMethod: string; - authUser: string; - authPass: string; + service: string; + root: string; + rcptTo: string; + setEmailPriority: string; + subject: string; + server: string; + port: string; + useTls: string; + useStarttls: string; + useTlsCert: string; + authMethod: string; + authUser: string; + authPass: string; } interface Parity { - mode: string; - dotm: string; - hour: string; + mode: string; + dotm: string; + hour: string; } interface Remote { - wanaccess: string; - wanport: string; - apikey: string; + wanaccess: string; + wanport: string; + apikey: string; } export interface DynamixConfig extends Record { - display: Display; - notify: Notify; - ssmtp: Ssmtp; - parity: Parity; - remote: Remote; + display: Display; + notify: Notify; + ssmtp: Ssmtp; + parity: Parity; + remote: Remote; }