mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-17 12:42:54 -06:00
fix: Added description column on typebot, dify and openai
This commit is contained in:
parent
8438c442b4
commit
2aa0e08ae4
@ -7,6 +7,7 @@
|
|||||||
* Resolve issue with connecting to instance
|
* Resolve issue with connecting to instance
|
||||||
* Session is now individual per instance and remoteJid
|
* Session is now individual per instance and remoteJid
|
||||||
* Credentials verify on manager login
|
* Credentials verify on manager login
|
||||||
|
* Added description column on typebot, dify and openai
|
||||||
|
|
||||||
# 2.0.6-rc (2024-08-02 19:23)
|
# 2.0.6-rc (2024-08-02 19:23)
|
||||||
|
|
||||||
|
File diff suppressed because one or more lines are too long
2
manager/dist/index.html
vendored
2
manager/dist/index.html
vendored
@ -5,7 +5,7 @@
|
|||||||
<link rel="icon" type="image/png" href="/assets/images/evolution-logo.png" />
|
<link rel="icon" type="image/png" href="/assets/images/evolution-logo.png" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Evolution Manager</title>
|
<title>Evolution Manager</title>
|
||||||
<script type="module" crossorigin src="/assets/index-CiiVZ4Gt.js"></script>
|
<script type="module" crossorigin src="/assets/index-TzTbeCvz.js"></script>
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-DZ0gaAHg.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-DZ0gaAHg.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -0,0 +1,8 @@
|
|||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Dify" ADD COLUMN "description" VARCHAR(255);
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "OpenaiBot" ADD COLUMN "description" VARCHAR(255);
|
||||||
|
|
||||||
|
-- AlterTable
|
||||||
|
ALTER TABLE "Typebot" ADD COLUMN "description" VARCHAR(255);
|
@ -282,6 +282,7 @@ model Websocket {
|
|||||||
model Typebot {
|
model Typebot {
|
||||||
id String @id @default(cuid())
|
id String @id @default(cuid())
|
||||||
enabled Boolean @default(true) @db.Boolean
|
enabled Boolean @default(true) @db.Boolean
|
||||||
|
description String? @db.VarChar(255)
|
||||||
url String @db.VarChar(500)
|
url String @db.VarChar(500)
|
||||||
typebot String @db.VarChar(100)
|
typebot String @db.VarChar(100)
|
||||||
expire Int? @default(0) @db.Integer
|
expire Int? @default(0) @db.Integer
|
||||||
|
@ -10,6 +10,7 @@ export class Session {
|
|||||||
|
|
||||||
export class DifyDto {
|
export class DifyDto {
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
|
description?: string;
|
||||||
botType?: $Enums.DifyBotType;
|
botType?: $Enums.DifyBotType;
|
||||||
apiUrl?: string;
|
apiUrl?: string;
|
||||||
apiKey?: string;
|
apiKey?: string;
|
||||||
|
@ -118,6 +118,7 @@ export class DifyService {
|
|||||||
const dify = await this.prismaRepository.dify.create({
|
const dify = await this.prismaRepository.dify.create({
|
||||||
data: {
|
data: {
|
||||||
enabled: data.enabled,
|
enabled: data.enabled,
|
||||||
|
description: data.description,
|
||||||
botType: data.botType,
|
botType: data.botType,
|
||||||
apiUrl: data.apiUrl,
|
apiUrl: data.apiUrl,
|
||||||
apiKey: data.apiKey,
|
apiKey: data.apiKey,
|
||||||
|
@ -25,6 +25,7 @@ export const difySchema: JSONSchema7 = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
enabled: { type: 'boolean' },
|
enabled: { type: 'boolean' },
|
||||||
|
description: { type: 'string' },
|
||||||
botType: { type: 'string', enum: ['chatBot', 'textGenerator', 'agent', 'workflow'] },
|
botType: { type: 'string', enum: ['chatBot', 'textGenerator', 'agent', 'workflow'] },
|
||||||
apiUrl: { type: 'string' },
|
apiUrl: { type: 'string' },
|
||||||
apiKey: { type: 'string' },
|
apiKey: { type: 'string' },
|
||||||
|
@ -15,6 +15,7 @@ export class OpenaiCredsDto {
|
|||||||
|
|
||||||
export class OpenaiDto {
|
export class OpenaiDto {
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
|
description?: string;
|
||||||
openaiCredsId: string;
|
openaiCredsId: string;
|
||||||
botType?: string;
|
botType?: string;
|
||||||
assistantId?: string;
|
assistantId?: string;
|
||||||
|
@ -238,6 +238,7 @@ export class OpenaiService {
|
|||||||
const openaiBot = await this.prismaRepository.openaiBot.create({
|
const openaiBot = await this.prismaRepository.openaiBot.create({
|
||||||
data: {
|
data: {
|
||||||
enabled: data.enabled,
|
enabled: data.enabled,
|
||||||
|
description: data.description,
|
||||||
openaiCredsId: data.openaiCredsId,
|
openaiCredsId: data.openaiCredsId,
|
||||||
botType: data.botType,
|
botType: data.botType,
|
||||||
assistantId: data.assistantId,
|
assistantId: data.assistantId,
|
||||||
|
@ -25,6 +25,7 @@ export const openaiSchema: JSONSchema7 = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
enabled: { type: 'boolean' },
|
enabled: { type: 'boolean' },
|
||||||
|
description: { type: 'string' },
|
||||||
openaiCredsId: { type: 'string' },
|
openaiCredsId: { type: 'string' },
|
||||||
botType: { type: 'string', enum: ['assistant', 'chatCompletion'] },
|
botType: { type: 'string', enum: ['assistant', 'chatCompletion'] },
|
||||||
assistantId: { type: 'string' },
|
assistantId: { type: 'string' },
|
||||||
|
@ -18,6 +18,7 @@ export class PrefilledVariables {
|
|||||||
|
|
||||||
export class TypebotDto {
|
export class TypebotDto {
|
||||||
enabled?: boolean;
|
enabled?: boolean;
|
||||||
|
description?: string;
|
||||||
url: string;
|
url: string;
|
||||||
typebot?: string;
|
typebot?: string;
|
||||||
expire?: number;
|
expire?: number;
|
||||||
|
@ -118,6 +118,7 @@ export class TypebotService {
|
|||||||
const typebot = await this.prismaRepository.typebot.create({
|
const typebot = await this.prismaRepository.typebot.create({
|
||||||
data: {
|
data: {
|
||||||
enabled: data.enabled,
|
enabled: data.enabled,
|
||||||
|
description: data.description,
|
||||||
url: data.url,
|
url: data.url,
|
||||||
typebot: data.typebot,
|
typebot: data.typebot,
|
||||||
expire: data.expire,
|
expire: data.expire,
|
||||||
|
@ -25,6 +25,7 @@ export const typebotSchema: JSONSchema7 = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
properties: {
|
properties: {
|
||||||
enabled: { type: 'boolean' },
|
enabled: { type: 'boolean' },
|
||||||
|
description: { type: 'string' },
|
||||||
url: { type: 'string' },
|
url: { type: 'string' },
|
||||||
typebot: { type: 'string' },
|
typebot: { type: 'string' },
|
||||||
triggerType: { type: 'string', enum: ['all', 'keyword', 'none'] },
|
triggerType: { type: 'string', enum: ['all', 'keyword', 'none'] },
|
||||||
|
Loading…
Reference in New Issue
Block a user