mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-20 04:12:23 -06:00
fix: Added description column on typebot, dify and openai
This commit is contained in:
@@ -10,6 +10,7 @@ export class Session {
|
||||
|
||||
export class DifyDto {
|
||||
enabled?: boolean;
|
||||
description?: string;
|
||||
botType?: $Enums.DifyBotType;
|
||||
apiUrl?: string;
|
||||
apiKey?: string;
|
||||
|
||||
@@ -118,6 +118,7 @@ export class DifyService {
|
||||
const dify = await this.prismaRepository.dify.create({
|
||||
data: {
|
||||
enabled: data.enabled,
|
||||
description: data.description,
|
||||
botType: data.botType,
|
||||
apiUrl: data.apiUrl,
|
||||
apiKey: data.apiKey,
|
||||
|
||||
@@ -25,6 +25,7 @@ export const difySchema: JSONSchema7 = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
enabled: { type: 'boolean' },
|
||||
description: { type: 'string' },
|
||||
botType: { type: 'string', enum: ['chatBot', 'textGenerator', 'agent', 'workflow'] },
|
||||
apiUrl: { type: 'string' },
|
||||
apiKey: { type: 'string' },
|
||||
|
||||
@@ -15,6 +15,7 @@ export class OpenaiCredsDto {
|
||||
|
||||
export class OpenaiDto {
|
||||
enabled?: boolean;
|
||||
description?: string;
|
||||
openaiCredsId: string;
|
||||
botType?: string;
|
||||
assistantId?: string;
|
||||
|
||||
@@ -238,6 +238,7 @@ export class OpenaiService {
|
||||
const openaiBot = await this.prismaRepository.openaiBot.create({
|
||||
data: {
|
||||
enabled: data.enabled,
|
||||
description: data.description,
|
||||
openaiCredsId: data.openaiCredsId,
|
||||
botType: data.botType,
|
||||
assistantId: data.assistantId,
|
||||
|
||||
@@ -25,6 +25,7 @@ export const openaiSchema: JSONSchema7 = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
enabled: { type: 'boolean' },
|
||||
description: { type: 'string' },
|
||||
openaiCredsId: { type: 'string' },
|
||||
botType: { type: 'string', enum: ['assistant', 'chatCompletion'] },
|
||||
assistantId: { type: 'string' },
|
||||
|
||||
@@ -18,6 +18,7 @@ export class PrefilledVariables {
|
||||
|
||||
export class TypebotDto {
|
||||
enabled?: boolean;
|
||||
description?: string;
|
||||
url: string;
|
||||
typebot?: string;
|
||||
expire?: number;
|
||||
|
||||
@@ -118,6 +118,7 @@ export class TypebotService {
|
||||
const typebot = await this.prismaRepository.typebot.create({
|
||||
data: {
|
||||
enabled: data.enabled,
|
||||
description: data.description,
|
||||
url: data.url,
|
||||
typebot: data.typebot,
|
||||
expire: data.expire,
|
||||
|
||||
@@ -25,6 +25,7 @@ export const typebotSchema: JSONSchema7 = {
|
||||
type: 'object',
|
||||
properties: {
|
||||
enabled: { type: 'boolean' },
|
||||
description: { type: 'string' },
|
||||
url: { type: 'string' },
|
||||
typebot: { type: 'string' },
|
||||
triggerType: { type: 'string', enum: ['all', 'keyword', 'none'] },
|
||||
|
||||
Reference in New Issue
Block a user