Connector 连接器
1. 结构声明
- TS Declaration
- JSON Schema
class Connector extends Module {
connectorKind: string;
properties: Array<Param>;
triggers: Array<ConnectorTrigger>;
previewImg: string;
namespaces: Array<Namespace>;
}
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"extension",
"interface",
"component",
"connector",
"customInterface"
]
},
"version": {
"type": "string"
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"provider": {
"type": "string"
},
"externalDependencyMap": {
"type": "object",
"properties": {
"maven": {
"type": "array",
"items": {
"type": "object",
"properties": {
"groupId": {
"type": "string"
},
"artifactId": {
"type": "string"
},
"version": {
"type": "string"
}
},
"required": [
"groupId",
"artifactId",
"version"
],
"additionalProperties": false
}
}
},
"additionalProperties": false
},
"compilerInfoMap": {
"type": "object",
"properties": {
"java": {
"type": "array",
"items": {
"type": "object",
"properties": {
"packageName": {
"type": "string"
},
"className": {
"type": "string"
},
"naslName": {
"type": "string"
},
"type": {
"type": "string"
},
"javaTypes": {
"type": "object",
"properties": {
"size": {
"type": "number"
}
},
"required": [
"size"
],
"additionalProperties": false
}
},
"required": [
"packageName",
"className",
"naslName",
"type",
"javaTypes"
],
"additionalProperties": false
}
},
"js": {
"type": "object",
"properties": {
"prefix": {
"type": "string"
}
},
"required": [
"prefix"
],
"additionalProperties": false
}
},
"additionalProperties": false
},
"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"
}
},
"interfaces": {
"type": "array",
"items": {
"$ref": "#/definitions/Interface"
}
},
"views": {
"type": "array",
"items": {
"$ref": "#/definitions/View"
}
},
"frontendVariables": {
"type": "array",
"items": {
"$ref": "#/definitions/Variable"
}
},
"processes": {
"type": "array",
"items": {
"$ref": "#/definitions/Process"
}
},
"frontends": {
"type": "array",
"items": {
"$ref": "#/definitions/FrontendLibrary"
}
},
"configuration": {
"$ref": "#/definitions/Configuration"
},
"authLogics": {
"type": "array",
"items": {
"$ref": "#/definitions/AuthLogic"
}
},
"authLogicsForCallInterface": {
"type": "array",
"items": {
"$ref": "#/definitions/AuthLogicForCallInterface"
}
},
"triggerLaunchers": {
"type": "array",
"items": {
"$ref": "#/definitions/TriggerLauncher"
}
},
"connections": {
"type": "array",
"items": {
"$ref": "#/definitions/Connection"
}
},
"metadataTypes": {
"type": "array",
"items": {
"$ref": "#/definitions/MetadataType"
}
},
"connectorKind": {
"type": "string"
},
"properties": {
"type": "array",
"items": {
"$ref": "#/definitions/Param"
}
},
"triggers": {
"type": "array",
"items": {
"$ref": "#/definitions/ConnectorTrigger"
}
},
"previewImg": {
"type": "string"
},
"namespaces": {
"type": "array",
"items": {
"$ref": "#/definitions/Namespace"
}
}
},
"required": [
"authLogics",
"authLogicsForCallInterface",
"compilerInfoMap",
"configuration",
"connections",
"connectorKind",
"dataSources",
"description",
"enums",
"externalDependencyMap",
"frontendVariables",
"frontends",
"interfaces",
"logics",
"metadataTypes",
"name",
"namespaces",
"previewImg",
"processes",
"properties",
"provider",
"structures",
"title",
"triggerLaunchers",
"triggers",
"type",
"version",
"views"
],
"additionalProperties": false
}