-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feishu app release (#85) * Revert "lafAccount add pat & re request when token invalid (#76)" (#77) This reverts commit 83d85dfe37adcaef4833385ea52ee79fd84720be. * perf: workflow ux * system config * feat: feishu app release * chore: sovle the conflicts files; fix the feishu entry * fix: rename Feishu interface to FeishuType * fix: fix type problem in app.ts * fix: type problem * fix: style problem --------- Co-authored-by: Archer <[email protected]> * perf: publish channel code * change system variable position (#94) * perf: workflow context * perf: variable select * hide publish * perf: simple edit auto refresh * perf: simple edit data refresh * fix: target handle --------- Co-authored-by: Finley Ge <[email protected]> Co-authored-by: heheer <[email protected]>
- Loading branch information
1 parent
5ca4049
commit a0c1320
Showing
89 changed files
with
1,786 additions
and
1,039 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
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,5 +1,6 @@ | ||
export enum OutLinkTypeEnum { | ||
export enum PublishChannelEnum { | ||
share = 'share', | ||
iframe = 'iframe', | ||
apikey = 'apikey' | ||
apikey = 'apikey', | ||
feishu = 'feishu' | ||
} |
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,31 +1,79 @@ | ||
import { AppSchema } from 'core/app/type'; | ||
import { OutLinkTypeEnum } from './constant'; | ||
import { PublishChannelEnum } from './constant'; | ||
|
||
export type OutLinkSchema = { | ||
// Feishu Config interface | ||
export interface FeishuType { | ||
appId: string; | ||
appSecret: string; | ||
// Encrypt config | ||
// refer to: https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/configure-encrypt-key | ||
encryptKey?: string; // no secret if null | ||
// Token Verification | ||
// refer to: https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/encrypt-key-encryption-configuration-case | ||
verificationToken: string; | ||
} | ||
|
||
// TODO: Unused | ||
export interface WecomType { | ||
ReplyLimit: Boolean; | ||
defaultResponse: string; | ||
immediateResponse: boolean; | ||
WXWORK_TOKEN: string; | ||
WXWORK_AESKEY: string; | ||
WXWORK_SECRET: string; | ||
WXWORD_ID: string; | ||
} | ||
|
||
export type OutLinkSchema<T = void> = { | ||
_id: string; | ||
shareId: string; | ||
teamId: string; | ||
tmbId: string; | ||
appId: string; | ||
// teamId: Schema.Types.ObjectId; | ||
// tmbId: Schema.Types.ObjectId; | ||
// appId: Schema.Types.ObjectId; | ||
name: string; | ||
usagePoints: number; | ||
lastTime: Date; | ||
type: `${OutLinkTypeEnum}`; | ||
type: PublishChannelEnum; | ||
|
||
// whether the response content is detailed | ||
responseDetail: boolean; | ||
|
||
// response when request | ||
immediateResponse?: string; | ||
// response when error or other situation | ||
defaultResponse?: string; | ||
|
||
limit?: { | ||
expiredTime?: Date; | ||
// Questions per minute | ||
QPM: number; | ||
maxUsagePoints: number; | ||
// Verification message hook url | ||
hookUrl?: string; | ||
}; | ||
|
||
app?: T; | ||
}; | ||
|
||
// to handle MongoDB querying | ||
export type OutLinkWithAppType = Omit<OutLinkSchema, 'appId'> & { | ||
appId: AppSchema; | ||
}; | ||
|
||
export type OutLinkEditType = { | ||
// Edit the Outlink | ||
export type OutLinkEditType<T = void> = { | ||
_id?: string; | ||
name: string; | ||
responseDetail: OutLinkSchema['responseDetail']; | ||
limit: OutLinkSchema['limit']; | ||
responseDetail: OutLinkSchema<T>['responseDetail']; | ||
// response when request | ||
immediateResponse?: string; | ||
// response when error or other situation | ||
defaultResponse?: string; | ||
limit?: OutLinkSchema<T>['limit']; | ||
|
||
// config for specific platform | ||
app?: T; | ||
}; |
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
12 changes: 12 additions & 0 deletions
12
packages/web/components/common/Icon/icons/core/app/publish/lark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions
3
packages/web/components/common/Textarea/PromptEditor/type.d.ts
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,5 +1,8 @@ | ||
import { WorkflowIOValueTypeEnum } from '@fastgpt/global/core/workflow/constants'; | ||
|
||
export type EditorVariablePickerType = { | ||
key: string; | ||
label: string; | ||
icon?: string; | ||
valueType?: WorkflowIOValueTypeEnum; | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
Oops, something went wrong.