App 应用
应用的根节点,包含应用的基本信息。
1. 结构声明
- TS Declaration
- JSON Schema
class App extends BaseNode {
id: string = '';
ideVersion: string;
name: string = '';
title: string;
icon: string;
desc: string;
dnsAddr: string;
hasUserCenter: boolean;
hasAuth: boolean;
dataSources: Array<DataSource>;
structures: Array<Structure>;
enums: Array<Enum>;
logics: Array<Logic>;
overriddenLogics: Array<OverriddenLogic>;
interfaces: Array<Interface>;
frontends: Array<Frontend>;
backend: Backend = new Backend();
processes: Array<Process>;
roles: Array<Role>;
configuration: Configuration = new Configuration();
dependencies: Array<Module | Connector>;
interfaceDependencies: Array<Module>;
integration: Integration;
authLogics: Array<AuthLogic>;
authLogicsForCallInterface: Array<AuthLogicForCallInterface>;
connections: Array<Connection>;
triggerLaunchers: Array<TriggerLauncher>;
metadataTypes: Array<MetadataType>;
}
{
"type": "object",
"properties": {
"id": {
"type": "string"
},
"ideVersion": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"icon": {
"type": "string"
},
"desc": {
"type": "string"
},
"dnsAddr": {
"type": "string"
},
"hasUserCenter": {
"type": "boolean"
},
"hasAuth": {
"type": "boolean"
},
"dataSources": {
"type": "array",
"items": {
"$ref": "#/definitions/DataSource"
}
},
"structures": {
"type": "array",
"items": {
"$ref": "#/definitions/Structure"
}
},
"enums": {
"type": "array",
"items": {
"$ref": "#/definitions/Enum"
}
},
"logics": {
"type": "array",
"items": {
"$ref": "#/definitions/Logic"
}
},
"overriddenLogics": {
"type": "array",
"items": {
"$ref": "#/definitions/OverriddenLogic"
}
},
"interfaces": {
"type": "array",
"items": {
"$ref": "#/definitions/Interface"
}
},
"frontends": {
"type": "array",
"items": {
"$ref": "#/definitions/Frontend"
}
},
"backend": {
"$ref": "#/definitions/Backend"
},
"processes": {
"type": "array",
"items": {
"$ref": "#/definitions/Process"
}
},
"roles": {
"type": "array",
"items": {
"$ref": "#/definitions/Role"
}
},
"configuration": {
"$ref": "#/definitions/Configuration"
},
"dependencies": {
"type": "array",
"items": {
"anyOf": [
{
"$ref": "#/definitions/Module"
},
{
"$ref": "#/definitions/Connector"
}
]
}
},
"interfaceDependencies": {
"type": "array",
"items": {
"$ref": "#/definitions/Module"
}
},
"integration": {
"$ref": "#/definitions/Integration"
},
"authLogics": {
"type": "array",
"items": {
"$ref": "#/definitions/AuthLogic"
}
},
"authLogicsForCallInterface": {
"type": "array",
"items": {
"$ref": "#/definitions/AuthLogicForCallInterface"
}
},
"connections": {
"type": "array",
"items": {
"$ref": "#/definitions/Connection"
}
},
"triggerLaunchers": {
"type": "array",
"items": {
"$ref": "#/definitions/TriggerLauncher"
}
},
"metadataTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/MetadataType"
}
}
},
"required": [
"id",
"ideVersion",
"name",
"title",
"icon",
"desc",
"dnsAddr",
"hasUserCenter",
"hasAuth",
"dataSources",
"structures",
"enums",
"logics",
"overriddenLogics",
"interfaces",
"frontends",
"backend",
"processes",
"roles",
"configuration",
"dependencies",
"interfaceDependencies",
"integration",
"authLogics",
"authLogicsForCallInterface",
"connections",
"triggerLaunchers",
"metadataTypes"
],
"additionalProperties": false
}