2022-09-23 16:33:55 +08:00
|
|
|
import { ReqPage, CommonModel } from '.';
|
2022-09-22 16:16:04 +08:00
|
|
|
|
|
|
|
export namespace App {
|
2022-09-23 16:33:55 +08:00
|
|
|
export interface App extends CommonModel {
|
2022-09-22 16:16:04 +08:00
|
|
|
name: string;
|
|
|
|
icon: string;
|
|
|
|
key: string;
|
|
|
|
tags: Tag[];
|
|
|
|
shortDesc: string;
|
|
|
|
author: string;
|
|
|
|
source: string;
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
2022-09-23 16:33:55 +08:00
|
|
|
export interface AppDTO extends App {
|
|
|
|
versions: string[];
|
|
|
|
}
|
|
|
|
|
2022-09-22 16:16:04 +08:00
|
|
|
export interface Tag {
|
|
|
|
key: string;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AppResPage {
|
|
|
|
total: number;
|
|
|
|
canUpdate: boolean;
|
|
|
|
version: string;
|
|
|
|
items: App.App[];
|
|
|
|
tags: App.Tag[];
|
|
|
|
}
|
|
|
|
|
2022-09-23 16:33:55 +08:00
|
|
|
export interface AppDetail extends CommonModel {
|
|
|
|
appId: string;
|
2022-09-22 16:16:04 +08:00
|
|
|
icon: string;
|
2022-09-23 16:33:55 +08:00
|
|
|
version: string;
|
2022-09-22 16:16:04 +08:00
|
|
|
readme: string;
|
2022-09-26 16:32:40 +08:00
|
|
|
params: AppParams;
|
2022-09-23 16:33:55 +08:00
|
|
|
dockerCompose: string;
|
2022-12-01 16:45:00 +08:00
|
|
|
enbale: boolean;
|
2022-09-22 16:16:04 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface AppReq extends ReqPage {
|
2022-11-02 15:19:14 +08:00
|
|
|
name?: string;
|
|
|
|
tags?: string[];
|
|
|
|
type?: string;
|
2022-09-22 16:16:04 +08:00
|
|
|
}
|
2022-09-26 16:32:40 +08:00
|
|
|
|
|
|
|
export interface AppParams {
|
|
|
|
formFields: FromField[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface FromField {
|
|
|
|
type: string;
|
|
|
|
labelZh: string;
|
|
|
|
labelEn: string;
|
|
|
|
required: boolean;
|
|
|
|
default: any;
|
|
|
|
envKey: string;
|
2022-10-07 15:49:39 +08:00
|
|
|
key?: string;
|
2022-09-26 16:32:40 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface AppInstall {
|
|
|
|
appDetailId: number;
|
|
|
|
params: any;
|
|
|
|
}
|
|
|
|
|
2022-11-28 13:50:53 +08:00
|
|
|
export interface AppInstallSearch extends ReqPage {
|
|
|
|
name?: string;
|
|
|
|
}
|
2022-11-08 14:34:41 +08:00
|
|
|
export interface ChangePort {
|
|
|
|
key: string;
|
|
|
|
name: string;
|
|
|
|
port: number;
|
|
|
|
}
|
|
|
|
|
2022-09-26 16:32:40 +08:00
|
|
|
export interface AppInstalled extends CommonModel {
|
2022-09-26 18:20:21 +08:00
|
|
|
name: string;
|
2022-09-26 16:32:40 +08:00
|
|
|
appId: string;
|
|
|
|
appDetailId: string;
|
2022-10-12 18:57:22 +08:00
|
|
|
env: string;
|
2022-09-26 16:32:40 +08:00
|
|
|
status: string;
|
|
|
|
description: string;
|
|
|
|
message: string;
|
|
|
|
icon: string;
|
2022-10-12 18:57:22 +08:00
|
|
|
canUpdate: boolean;
|
2022-10-11 16:27:58 +08:00
|
|
|
app: App;
|
2022-09-26 16:32:40 +08:00
|
|
|
}
|
2022-09-26 18:20:21 +08:00
|
|
|
|
2022-11-18 16:14:23 +08:00
|
|
|
export interface CheckInstalled {
|
|
|
|
name: string;
|
|
|
|
version: string;
|
|
|
|
isExist: boolean;
|
2022-11-22 22:47:38 +08:00
|
|
|
app: string;
|
|
|
|
status: string;
|
|
|
|
createdAt: string;
|
|
|
|
lastBackupAt: string;
|
|
|
|
appInstallId: number;
|
2022-11-23 16:59:06 +08:00
|
|
|
containerName: string;
|
2022-11-18 16:14:23 +08:00
|
|
|
}
|
|
|
|
|
2022-12-01 19:25:02 +08:00
|
|
|
export interface AppInstallResource {
|
|
|
|
type: string;
|
|
|
|
name: string;
|
|
|
|
}
|
|
|
|
|
2022-09-26 18:20:21 +08:00
|
|
|
export interface AppInstalledOp {
|
|
|
|
installId: number;
|
|
|
|
operate: string;
|
2022-10-13 16:46:38 +08:00
|
|
|
backupId?: number;
|
2022-10-13 18:56:53 +08:00
|
|
|
detailId?: number;
|
2022-09-26 18:20:21 +08:00
|
|
|
}
|
2022-10-07 15:49:39 +08:00
|
|
|
|
2022-10-28 17:04:57 +08:00
|
|
|
export interface AppInstalledSearch {
|
|
|
|
type: string;
|
|
|
|
}
|
|
|
|
|
2022-10-07 15:49:39 +08:00
|
|
|
export interface AppService {
|
|
|
|
label: string;
|
|
|
|
value: string;
|
2022-12-02 10:31:07 +08:00
|
|
|
config?: Object;
|
2022-10-07 15:49:39 +08:00
|
|
|
}
|
2022-10-12 18:57:22 +08:00
|
|
|
|
|
|
|
export interface AppBackupReq extends ReqPage {
|
|
|
|
appInstallId: number;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AppBackupDelReq {
|
|
|
|
ids: number[];
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AppBackup extends CommonModel {
|
|
|
|
name: string;
|
|
|
|
path: string;
|
|
|
|
appInstallId: string;
|
|
|
|
appDetail: AppDetail;
|
|
|
|
}
|
2022-10-13 18:56:53 +08:00
|
|
|
|
|
|
|
export interface VersionDetail {
|
|
|
|
version: string;
|
|
|
|
detailId: number;
|
|
|
|
}
|
2022-09-22 16:16:04 +08:00
|
|
|
}
|