global.d.ts 1.1 KB
Newer Older
R
Rongfeng Fu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
declare namespace API {
  interface TableComponentInfo {
    key: string;
    name?: string | Element;
    showComponentName?: string;
    desc?: string;
    version?: string;
    doc?: string;
    onlyAll?: boolean;
  }

  interface DBConfig {
    id: string;
    name: string;
    rootservice: string;
    servers: string[];
  }

  interface Components {
    oceanbase?: any;
    obproxy?: any;
    ocpexpress?: any;
    obagent?: any;
  }

  interface MoreParameter extends API.Parameter {
    description: string;
    auto: boolean;
  }

  interface ParameterValue {
    adaptive?: boolean;
    value?: string;
    auto?: boolean;
    require?: boolean;
  }

  interface NewConfigParameter extends API.ConfigParameter {
    parameterValue: ParameterValue;
  }

  interface NewParameterMeta extends API.ParameterMeta {
    label: string;
    componentKey: string;
    configParameter: NewConfigParameter[];
  }

  interface ComponentsVersionInfo {
    oceanbase?: any;
    obproxy?: any;
    ocpexpress?: any;
    obagent?: any;
  }
R
Rongfeng Fu 已提交
54 55 56 57 58

  interface ErrorInfo {
    title: string;
    desc?: string;
  }
R
Rongfeng Fu 已提交
59
}