forked from labring/FastGPT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: http plugin import (labring#53)
* perf: plugin http import * chatBox ui * perf: name
- Loading branch information
Showing
27 changed files
with
1,210 additions
and
1,401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
import type { ModuleItemType } from '../module/type.d'; | ||
import { PluginTypeEnum } from './constants'; | ||
import { HttpAuthMethodType } from './httpPlugin/type'; | ||
|
||
export type CreateOnePluginParams = { | ||
name: string; | ||
avatar: string; | ||
intro: string; | ||
modules?: ModuleItemType[]; | ||
modules: ModuleItemType[]; | ||
parentId: string | null; | ||
type: string; | ||
schema?: string | null; | ||
authMethod?: MethodType | null; | ||
type: `${PluginTypeEnum}`; | ||
metadata?: { | ||
apiSchemaStr?: string; | ||
customHeaders?: string; | ||
}; | ||
}; | ||
export type UpdatePluginParams = { | ||
id: string; | ||
parentId?: string | null; | ||
name?: string; | ||
avatar?: string; | ||
intro?: string; | ||
modules?: ModuleItemType[]; | ||
metadata?: { | ||
apiSchemaStr?: string; | ||
customHeaders?: string; | ||
}; | ||
}; | ||
export type PluginListItemType = { | ||
parentId: string; | ||
type: string; | ||
_id: string; | ||
parentId: string; | ||
type: `${PluginTypeEnum}`; | ||
name: string; | ||
avatar: string; | ||
intro: string; | ||
schema: string; | ||
authMethod: MethodType | null; | ||
}; | ||
export type MethodType = { | ||
name: string; | ||
prefix: string; | ||
key: string; | ||
value: string; | ||
metadata?: { | ||
apiSchemaStr?: string; | ||
customHeaders?: string; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
export type PathDataType = { | ||
name: string; | ||
description: string; | ||
method: string; | ||
path: string; | ||
params: any[]; | ||
request: any; | ||
}; | ||
|
||
export type OpenApiJsonSchema = { | ||
pathData: PathDataType[]; | ||
serverPath: string; | ||
}; |
Oops, something went wrong.