diff --git a/src/shared/api.ts b/src/shared/api.ts index de3af73..1cec590 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -37,6 +37,8 @@ export const ADMIN_API_VRM_LOGIN = `${ADMIN_API}/${API_VRM_LOGIN}` export type VRMLoginMethod = "credentials" | "token" +export type VRMDeviceType = "discovered" | "configured" + export interface VRMBaseLoginRequest { method: VRMLoginMethod } diff --git a/src/shared/types.ts b/src/shared/types.ts index 5f94ee8..43ddec6 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -23,21 +23,29 @@ export type AppUPNPConfigKey = keyof AppUPNPConfig export interface AppVRMConfig { enabled: boolean enabledPortalIds: string[] + manualPortalIds: AppInstallationConfig[] hasToken: boolean } export type AppVRMConfigKey = keyof AppVRMConfig -export interface AppHostConfig { +export interface AppDeviceConfig { hostName: string enabled: boolean } -export type AppHostConfigKey = keyof AppHostConfig +export type AppDeviceConfigKey = keyof AppDeviceConfig + +export interface AppInstallationConfig { + portalId: string + enabled: boolean +} + +export type AppInstallationConfigKey = keyof AppInstallationConfig export interface AppManualConfig { enabled: boolean - hosts: AppHostConfig[] + hosts: AppDeviceConfig[] } export type AppManualConfigKey = keyof AppManualConfig @@ -87,6 +95,7 @@ const defaultAppConfigValues: AppConfig = { vrm: { enabled: false, enabledPortalIds: [], + manualPortalIds: [], hasToken: false, }, influxdb: {