aboutsummaryrefslogtreecommitdiffstats
path: root/apps/settings/src/app-types.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings/src/app-types.ts')
-rw-r--r--apps/settings/src/app-types.ts68
1 files changed, 66 insertions, 2 deletions
diff --git a/apps/settings/src/app-types.ts b/apps/settings/src/app-types.ts
index 604e250df3d..0c448ca907c 100644
--- a/apps/settings/src/app-types.ts
+++ b/apps/settings/src/app-types.ts
@@ -41,14 +41,78 @@ export interface IAppstoreApp {
preview?: string
screenshot?: string
+ app_api: boolean
active: boolean
internal: boolean
- removeable: boolean
+ removable: boolean
installed: boolean
canInstall: boolean
- canUninstall: boolean
+ canUnInstall: boolean
isCompatible: boolean
+ needsDownload: boolean
+ update?: string
appstoreData: Record<string, never>
releases?: IAppstoreAppRelease[]
}
+
+export interface IComputeDevice {
+ id: string,
+ label: string,
+}
+
+export interface IDeployConfig {
+ computeDevice: IComputeDevice,
+ net: string,
+ nextcloud_url: string,
+}
+
+export interface IDeployDaemon {
+ accepts_deploy_id: string,
+ deploy_config: IDeployConfig,
+ display_name: string,
+ host: string,
+ id: number,
+ name: string,
+ protocol: string,
+ exAppsCount: number,
+}
+
+export interface IExAppStatus {
+ action: string
+ deploy: number
+ deploy_start_time: number
+ error: string
+ init: number
+ init_start_time: number
+ type: string
+}
+
+export interface IDeployEnv {
+ envName: string
+ displayName: string
+ description: string
+ default?: string
+}
+
+export interface IDeployMount {
+ hostPath: string
+ containerPath: string
+ readOnly: boolean
+}
+
+export interface IDeployOptions {
+ environment_variables: IDeployEnv[]
+ mounts: IDeployMount[]
+}
+
+export interface IAppstoreExAppRelease extends IAppstoreAppRelease {
+ environmentVariables?: IDeployEnv[]
+}
+
+export interface IAppstoreExApp extends IAppstoreApp {
+ daemon: IDeployDaemon | null | undefined
+ status: IExAppStatus | Record<string, never>
+ error: string
+ releases: IAppstoreExAppRelease[]
+}