@fr-data-fabric/chatbot-api-nest 0.0.2 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chatbot-api.module.d.ts +12 -11
- package/dist/chatbot-api.module.js +7 -7
- package/dist/chatbot-api.module.js.map +1 -1
- package/dist/domain/entities/ChatEntity.d.ts +3 -3
- package/dist/domain/entities/ConversationEntity.d.ts +2 -2
- package/dist/domain/interfaces/ChatRepository.d.ts +1 -1
- package/dist/domain/interfaces/ConversationRepository.d.ts +1 -1
- package/dist/domain/use-cases/_common.d.ts +3 -3
- package/dist/domain/use-cases/chats/GetChatCompletionUC.d.ts +8 -8
- package/dist/domain/use-cases/chats/GetChatCompletionUC.js.map +1 -1
- package/dist/domain/use-cases/chats/SendChatUC.d.ts +16 -16
- package/dist/domain/use-cases/chats/SendChatUC.js +3 -0
- package/dist/domain/use-cases/chats/SendChatUC.js.map +1 -1
- package/dist/domain/use-cases/chats/chat.types.d.ts +1 -1
- package/dist/domain/use-cases/conversations/CreateConversationUC.d.ts +5 -4
- package/dist/domain/use-cases/conversations/CreateConversationUC.js.map +1 -1
- package/dist/domain/use-cases/conversations/DeleteConversationUC.d.ts +7 -6
- package/dist/domain/use-cases/conversations/DeleteConversationUC.js +2 -2
- package/dist/domain/use-cases/conversations/DeleteConversationUC.js.map +1 -1
- package/dist/domain/use-cases/conversations/GenerateConversationTitleUC.d.ts +9 -8
- package/dist/domain/use-cases/conversations/GenerateConversationTitleUC.js +4 -4
- package/dist/domain/use-cases/conversations/GenerateConversationTitleUC.js.map +1 -1
- package/dist/domain/use-cases/conversations/GetConversationUC.d.ts +5 -4
- package/dist/domain/use-cases/conversations/GetConversationUC.js.map +1 -1
- package/dist/domain/use-cases/conversations/GetConversationsUC.d.ts +5 -4
- package/dist/domain/use-cases/conversations/GetConversationsUC.js +1 -1
- package/dist/domain/use-cases/conversations/GetConversationsUC.js.map +1 -1
- package/dist/domain/use-cases/conversations/UpdateConversationUC.d.ts +7 -6
- package/dist/domain/use-cases/conversations/UpdateConversationUC.js +2 -2
- package/dist/domain/use-cases/conversations/UpdateConversationUC.js.map +1 -1
- package/dist/inputs/controllers/ChatsController.d.ts +3 -3
- package/dist/inputs/controllers/ChatsController.js +1 -1
- package/dist/inputs/controllers/ChatsController.js.map +1 -1
- package/dist/inputs/resolvers/ChatsResolver.d.ts +1 -1
- package/dist/inputs/resolvers/ConversationsResolver.d.ts +15 -15
- package/dist/inputs/resolvers/ConversationsResolver.js +7 -7
- package/dist/inputs/resolvers/ConversationsResolver.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -3
- package/src/chatbot-api.module.ts +9 -6
- package/src/domain/use-cases/_common.ts +2 -2
- package/src/domain/use-cases/chats/GetChatCompletionUC.ts +7 -3
- package/src/domain/use-cases/chats/SendChatUC.ts +14 -5
- package/src/domain/use-cases/conversations/CreateConversationUC.ts +3 -2
- package/src/domain/use-cases/conversations/DeleteConversationUC.ts +3 -2
- package/src/domain/use-cases/conversations/GenerateConversationTitleUC.ts +6 -2
- package/src/domain/use-cases/conversations/GetConversationUC.ts +5 -2
- package/src/domain/use-cases/conversations/GetConversationsUC.ts +3 -2
- package/src/domain/use-cases/conversations/UpdateConversationUC.ts +6 -2
- package/src/inputs/controllers/ChatsController.ts +1 -1
- package/src/inputs/resolvers/ConversationsResolver.ts +3 -3
|
@@ -1,16 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { UserEntity } from './domain/entities/UserEntity';
|
|
2
|
+
import { ConversationRepository } from './domain/interfaces/ConversationRepository';
|
|
3
|
+
import { SendChatUC } from './domain/use-cases/chats/SendChatUC';
|
|
4
|
+
import { ICreateConversationUC } from './domain/use-cases/conversations/CreateConversationUC';
|
|
5
|
+
import { IGetConversationsUC } from './domain/use-cases/conversations/GetConversationsUC';
|
|
6
|
+
import { IGetConversationUC } from './domain/use-cases/conversations/GetConversationUC';
|
|
6
7
|
import { DynamicModule, Type } from '@nestjs/common';
|
|
7
8
|
import { GqlTypeReference } from '@nestjs/graphql';
|
|
8
|
-
export type ChatbotApiModuleOptions = {
|
|
9
|
+
export type ChatbotApiModuleOptions<TUser extends UserEntity> = {
|
|
9
10
|
useCases: {
|
|
10
|
-
getConversation: Type<IGetConversationUC
|
|
11
|
-
getConversations: Type<IGetConversationsUC
|
|
12
|
-
createConversation: Type<ICreateConversationUC
|
|
13
|
-
sendChat: Type<SendChatUC<never>>;
|
|
11
|
+
getConversation: Type<IGetConversationUC<TUser>>;
|
|
12
|
+
getConversations: Type<IGetConversationsUC<TUser>>;
|
|
13
|
+
createConversation: Type<ICreateConversationUC<TUser>>;
|
|
14
|
+
sendChat: Type<SendChatUC<never, TUser>>;
|
|
14
15
|
};
|
|
15
16
|
conversationRepository: Type<ConversationRepository>;
|
|
16
17
|
gql: {
|
|
@@ -23,5 +24,5 @@ export type ChatbotApiModuleOptions = {
|
|
|
23
24
|
};
|
|
24
25
|
};
|
|
25
26
|
export declare class ChatbotApiModule {
|
|
26
|
-
static register(options: ChatbotApiModuleOptions): DynamicModule;
|
|
27
|
+
static register<TUser extends UserEntity>(options: ChatbotApiModuleOptions<TUser>): DynamicModule;
|
|
27
28
|
}
|
|
@@ -8,13 +8,13 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var ChatbotApiModule_1;
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
10
|
exports.ChatbotApiModule = void 0;
|
|
11
|
-
const ConversationRepository_1 = require("
|
|
12
|
-
const SendChatUC_1 = require("
|
|
13
|
-
const CreateConversationUC_1 = require("
|
|
14
|
-
const DeleteConversationUC_1 = require("
|
|
15
|
-
const GetConversationsUC_1 = require("
|
|
16
|
-
const GetConversationUC_1 = require("
|
|
17
|
-
const UpdateConversationUC_1 = require("
|
|
11
|
+
const ConversationRepository_1 = require("./domain/interfaces/ConversationRepository");
|
|
12
|
+
const SendChatUC_1 = require("./domain/use-cases/chats/SendChatUC");
|
|
13
|
+
const CreateConversationUC_1 = require("./domain/use-cases/conversations/CreateConversationUC");
|
|
14
|
+
const DeleteConversationUC_1 = require("./domain/use-cases/conversations/DeleteConversationUC");
|
|
15
|
+
const GetConversationsUC_1 = require("./domain/use-cases/conversations/GetConversationsUC");
|
|
16
|
+
const GetConversationUC_1 = require("./domain/use-cases/conversations/GetConversationUC");
|
|
17
|
+
const UpdateConversationUC_1 = require("./domain/use-cases/conversations/UpdateConversationUC");
|
|
18
18
|
const common_1 = require("@nestjs/common");
|
|
19
19
|
const ChatsController_1 = require("src/inputs/controllers/ChatsController");
|
|
20
20
|
const ChatsResolver_1 = require("src/inputs/resolvers/ChatsResolver");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chatbot-api.module.js","sourceRoot":"/","sources":["chatbot-api.module.ts"],"names":[],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"chatbot-api.module.js","sourceRoot":"/","sources":["chatbot-api.module.ts"],"names":[],"mappings":";;;;;;;;;;AACA,sFAGmD;AACnD,mEAA8E;AAC9E,+FAG8D;AAC9D,+FAA4F;AAC5F,2FAG4D;AAC5D,yFAG2D;AAC3D,+FAA4F;AAC5F,2CAA6D;AAE7D,4EAAyE;AACzE,sEAAsE;AACtE,sFAAsF;AAqB/E,IAAM,gBAAgB,wBAAtB,MAAM,gBAAgB;IAC3B,MAAM,CAAC,QAAQ,CACb,OAAuC;QAEvC,OAAO;YACL,MAAM,EAAE,kBAAgB;YACxB,SAAS,EAAE;gBACT,eAAe;gBACf;oBACE,OAAO,EAAE,gDAAuB;oBAChC,QAAQ,EAAE,OAAO,CAAC,sBAAsB;iBACzC;gBACD,YAAY;gBACZ;oBACE,OAAO,EAAE,uCAAmB;oBAC5B,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,eAAe;iBAC3C;gBACD;oBACE,OAAO,EAAE,yCAAoB;oBAC7B,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,gBAAgB;iBAC5C;gBACD;oBACE,OAAO,EAAE,6CAAsB;oBAC/B,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,kBAAkB;iBAC9C;gBACD,2CAAoB;gBACpB,2CAAoB;gBACpB;oBACE,OAAO,EAAE,yBAAY;oBACrB,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,QAAQ;iBACpC;gBACD,YAAY;gBACZ,IAAA,gDAAwB,EACtB,OAAO,CAAC,GAAG,CAAC,eAAe,EAC3B,OAAO,CAAC,GAAG,CAAC,OAAO,EACnB,OAAO,CAAC,GAAG,CAAC,OAAO,CACpB;gBACD,IAAA,gCAAgB,EACd,OAAO,CAAC,GAAG,CAAC,OAAO,EACnB,OAAO,CAAC,GAAG,CAAC,aAAa,EACzB,OAAO,CAAC,GAAG,CAAC,kBAAkB,EAC9B,OAAO,CAAC,GAAG,CAAC,UAAU,CACvB;aACF;YACD,WAAW,EAAE,CAAC,iCAAe,CAAC;SAC/B,CAAC;IACJ,CAAC;CACF,CAAA;AA/CY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,eAAM,EAAC,EAAE,CAAC;GACE,gBAAgB,CA+C5B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { ChatSourceEntity } from '
|
|
2
|
-
import { ChatTextContentEntity } from '
|
|
3
|
-
import { ToolUseEntity } from '
|
|
1
|
+
import { ChatSourceEntity } from '../entities/ChatSourceEntity';
|
|
2
|
+
import { ChatTextContentEntity } from '../entities/ChatTextContentEntity';
|
|
3
|
+
import { ToolUseEntity } from '../entities/ToolUseEntity';
|
|
4
4
|
export interface ChatEntity {
|
|
5
5
|
id: string;
|
|
6
6
|
createdAt: Date;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ChatEntity } from '
|
|
2
|
-
import { UserEntity } from '
|
|
1
|
+
import { ChatEntity } from '../entities/ChatEntity';
|
|
2
|
+
import { UserEntity } from '../entities/UserEntity';
|
|
3
3
|
export interface ConversationEntity {
|
|
4
4
|
id: string;
|
|
5
5
|
title: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
1
|
+
import { ConversationEntity } from '../entities/ConversationEntity';
|
|
2
2
|
export declare const CONVERSATION_REPOSITORY = "ConversationRepository";
|
|
3
3
|
export interface ConversationRepository {
|
|
4
4
|
save: (conversation: ConversationEntity) => Promise<ConversationEntity>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { UserEntity } from '
|
|
2
|
-
export type UCInput<Input> = {
|
|
1
|
+
import { UserEntity } from '../entities/UserEntity';
|
|
2
|
+
export type UCInput<Input, TUser extends UserEntity> = {
|
|
3
3
|
input: Input;
|
|
4
|
-
currentUser
|
|
4
|
+
currentUser?: TUser;
|
|
5
5
|
};
|
|
6
6
|
export declare class DeleteByIdInput {
|
|
7
7
|
id: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import { DocumentEntity } from '
|
|
3
|
-
import { UserEntity } from '
|
|
4
|
-
import { AvailableTool, StreamEvents, ToolOptions } from '
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { DocumentEntity } from '../../entities/DocumentEntity';
|
|
3
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
4
|
+
import { AvailableTool, StreamEvents, ToolOptions } from '../../use-cases/chats/chat.types';
|
|
5
5
|
import { BaseChatModel } from '@langchain/core/language_models/chat_models';
|
|
6
6
|
import { BaseMessage, DynamicStructuredTool } from 'langchain';
|
|
7
7
|
import { Observable } from 'rxjs';
|
|
8
|
-
export type GetChatCompletionInput<AvailableTools extends AvailableTool[]> = {
|
|
8
|
+
export type GetChatCompletionInput<AvailableTools extends AvailableTool[], TUser extends UserEntity> = {
|
|
9
9
|
message: string;
|
|
10
10
|
previousMessages: {
|
|
11
11
|
role: 'user' | 'assistant';
|
|
@@ -15,10 +15,10 @@ export type GetChatCompletionInput<AvailableTools extends AvailableTool[]> = {
|
|
|
15
15
|
runId: string;
|
|
16
16
|
tools?: AvailableTools;
|
|
17
17
|
documents: DocumentEntity[];
|
|
18
|
-
currentUser:
|
|
18
|
+
currentUser: TUser;
|
|
19
19
|
model?: string;
|
|
20
20
|
};
|
|
21
|
-
export declare abstract class GetChatCompletionUC<AvailableTools extends AvailableTool[]> {
|
|
21
|
+
export declare abstract class GetChatCompletionUC<AvailableTools extends AvailableTool[], TUser extends UserEntity> {
|
|
22
22
|
abstract getTools(toolOptions: ToolOptions, selectedTools: AvailableTools): DynamicStructuredTool[];
|
|
23
23
|
abstract getLLM(options: {
|
|
24
24
|
model?: string;
|
|
@@ -31,5 +31,5 @@ export declare abstract class GetChatCompletionUC<AvailableTools extends Availab
|
|
|
31
31
|
content: string;
|
|
32
32
|
id: string;
|
|
33
33
|
}[]>;
|
|
34
|
-
execute(input: GetChatCompletionInput<AvailableTools>): Observable<StreamEvents<AvailableTools>>;
|
|
34
|
+
execute(input: GetChatCompletionInput<AvailableTools, TUser>): Observable<StreamEvents<AvailableTools>>;
|
|
35
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetChatCompletionUC.js","sourceRoot":"/","sources":["domain/use-cases/chats/GetChatCompletionUC.ts"],"names":[],"mappings":";;;AAUA,yCAMmB;AACnB,+BAAkC;
|
|
1
|
+
{"version":3,"file":"GetChatCompletionUC.js","sourceRoot":"/","sources":["domain/use-cases/chats/GetChatCompletionUC.ts"],"names":[],"mappings":";;;AAUA,yCAMmB;AACnB,+BAAkC;AAgBlC,MAAsB,mBAAmB;IAyBvC,OAAO,CAAC,KAAoD;QAC1D,OAAO,IAAI,iBAAU,CAA+B,CAAC,QAAQ,EAAE,EAAE;YAC/D,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,CAAC;gBACxB,KAAK,EAAE,KAAK,CAAC,KAAK;aACnB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CAAC,IAAI;iCAC1B,CAAC,CAAC;4BACL,CAAC;wBACH,CAAC;6BAAM,IAAI,KAAK,CAAC,OAAO,EAAE,CAAC;4BACzB,QAAQ,CAAC,IAAI,CAAC;gCACZ,KAAK,EAAE,aAAa;gCACpB,OAAO,EAAE,KAAK,CAAC,OAAiB;6BACjC,CAAC,CAAC;wBACL,CAAC;oBACH,CAAC;gBACH,CAAC;gBACD,QAAQ,CAAC,QAAQ,EAAE,CAAC;YACtB,CAAC,CAAC,EAAE,CAAC;QACP,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAnHD,kDAmHC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { ChatEntity } from '
|
|
2
|
-
import { ChatSourceEntity } from '
|
|
3
|
-
import { ChatTextContentEntity } from '
|
|
4
|
-
import { ConversationEntity } from '
|
|
5
|
-
import { DocumentEntity } from '
|
|
6
|
-
import { ToolUseEntity } from '
|
|
7
|
-
import { UserEntity } from '
|
|
8
|
-
import type { ChatRepository } from '
|
|
9
|
-
import { UCInput } from '
|
|
10
|
-
import { AvailableTool, ChatStreamEvents } from '
|
|
11
|
-
import { GetChatCompletionUC } from '
|
|
12
|
-
import type { IGetConversationUC } from '
|
|
1
|
+
import { ChatEntity } from '../../entities/ChatEntity';
|
|
2
|
+
import { ChatSourceEntity } from '../../entities/ChatSourceEntity';
|
|
3
|
+
import { ChatTextContentEntity } from '../../entities/ChatTextContentEntity';
|
|
4
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
5
|
+
import { DocumentEntity } from '../../entities/DocumentEntity';
|
|
6
|
+
import { ToolUseEntity } from '../../entities/ToolUseEntity';
|
|
7
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
8
|
+
import type { ChatRepository } from '../../interfaces/ChatRepository';
|
|
9
|
+
import { UCInput } from '../../use-cases/_common';
|
|
10
|
+
import { AvailableTool, ChatStreamEvents } from '../../use-cases/chats/chat.types';
|
|
11
|
+
import { GetChatCompletionUC } from '../../use-cases/chats/GetChatCompletionUC';
|
|
12
|
+
import type { IGetConversationUC } from '../../use-cases/conversations/GetConversationUC';
|
|
13
13
|
import { EventEmitter2 } from '@nestjs/event-emitter';
|
|
14
14
|
import { Observable } from 'rxjs';
|
|
15
15
|
export declare class SendMessageInput<AvailableTools extends AvailableTool[]> {
|
|
@@ -20,15 +20,15 @@ export declare class SendMessageInput<AvailableTools extends AvailableTool[]> {
|
|
|
20
20
|
model?: string;
|
|
21
21
|
}
|
|
22
22
|
export declare const SEND_CHAT_UC = "SendChatUC";
|
|
23
|
-
export declare abstract class SendChatUC<AvailableTools extends AvailableTool[]> {
|
|
23
|
+
export declare abstract class SendChatUC<AvailableTools extends AvailableTool[], TUser extends UserEntity> {
|
|
24
24
|
private readonly getConversationUC;
|
|
25
25
|
private readonly chatRepository;
|
|
26
26
|
private readonly eventEmitter;
|
|
27
27
|
private readonly getChatCompletionUC;
|
|
28
|
-
constructor(getConversationUC: IGetConversationUC
|
|
29
|
-
abstract getDocuments(documentIds: string[], currentUser:
|
|
28
|
+
constructor(getConversationUC: IGetConversationUC<TUser>, chatRepository: ChatRepository, eventEmitter: EventEmitter2, getChatCompletionUC: GetChatCompletionUC<AvailableTools, TUser>);
|
|
29
|
+
abstract getDocuments(documentIds: string[], currentUser: TUser): Promise<DocumentEntity[]>;
|
|
30
30
|
abstract createChatEntity(role: 'user' | 'assistant', content: string, conversation: ConversationEntity, documents?: DocumentEntity[]): ChatEntity;
|
|
31
|
-
execute({ input, currentUser, }: UCInput<SendMessageInput<AvailableTools
|
|
31
|
+
execute({ input, currentUser, }: UCInput<SendMessageInput<AvailableTools>, TUser>): Promise<Observable<ChatStreamEvents<AvailableTools>>>;
|
|
32
32
|
abstract saveChatSources(sources: ChatSourceEntity[]): Promise<void>;
|
|
33
33
|
abstract saveChatTextContent(chatCompletion: ChatTextContentEntity[]): Promise<void>;
|
|
34
34
|
abstract saveToolUse(tools: ToolUseEntity[]): Promise<void>;
|
|
@@ -61,6 +61,9 @@ class SendChatUC {
|
|
|
61
61
|
this.getChatCompletionUC = getChatCompletionUC;
|
|
62
62
|
}
|
|
63
63
|
async execute({ input, currentUser, }) {
|
|
64
|
+
if (!currentUser) {
|
|
65
|
+
throw new Error('currentUser is required');
|
|
66
|
+
}
|
|
64
67
|
const { conversationId, content, selectedTools, documentIds, model } = input;
|
|
65
68
|
const conversation = await this.getConversationUC.execute({
|
|
66
69
|
input: { id: conversationId },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SendChatUC.js","sourceRoot":"/","sources":["domain/use-cases/chats/SendChatUC.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAMyB;AACzB,+BAAkC;AAElC,MAAa,gBAAgB;IAG3B,cAAc,CAAU;IAIxB,OAAO,CAAU;IAKjB,aAAa,CAAkB;IAK/B,WAAW,CAAY;IAKvB,KAAK,CAAU;CAChB;AAvBD,4CAuBC;AApBC;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;wDACW;AAIxB;IAFC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;iDACI;AAKjB;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,4BAAU,GAAE;;uDACkB;AAK/B;IAHC,IAAA,yBAAO,GAAE;IACT,IAAA,0BAAQ,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxB,IAAA,4BAAU,GAAE;;qDACU;AAKvB;IAHC,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;IACZ,IAAA,4BAAU,GAAE;;+CACE;AAGJ,QAAA,YAAY,GAAG,YAAY,CAAC;AAEzC,MAAsB,UAAU;
|
|
1
|
+
{"version":3,"file":"SendChatUC.js","sourceRoot":"/","sources":["domain/use-cases/chats/SendChatUC.ts"],"names":[],"mappings":";;;;;;;;;;;;AAgBA,qDAMyB;AACzB,+BAA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AY,CAAC,IAAI,CAAC,aAAa,EAAE,gBAAgB,CAAC,CAAC;wBAExD,QAAQ,CAAC,QAAQ,EAAE,CAAC;oBACtB,CAAC,CAAC,EAAE,CAAC;gBACP,CAAC;aACF,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CASF;AA9JD,gCA8JC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import {
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
3
|
+
import { UCInput } from '../../use-cases/_common';
|
|
3
4
|
export declare const CREATE_CONVERSATION_UC = "CreateConversationUC";
|
|
4
|
-
export interface ICreateConversationUC {
|
|
5
|
-
execute(input: UCInput<undefined>): Promise<ConversationEntity>;
|
|
5
|
+
export interface ICreateConversationUC<TUser extends UserEntity> {
|
|
6
|
+
execute(input: UCInput<undefined, TUser>): Promise<ConversationEntity>;
|
|
6
7
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CreateConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/CreateConversationUC.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"CreateConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/CreateConversationUC.ts"],"names":[],"mappings":";;;AAIa,QAAA,sBAAsB,GAAG,sBAAsB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
3
|
+
import type { ConversationRepository } from '../../interfaces/ConversationRepository';
|
|
4
|
+
import { DeleteByIdInput, UCInput } from '../../use-cases/_common';
|
|
5
|
+
import type { IGetConversationUC } from '../../use-cases/conversations/GetConversationUC';
|
|
5
6
|
export declare class DeleteConversationUC {
|
|
6
7
|
private readonly conversationRepository;
|
|
7
8
|
private readonly getConversationUC;
|
|
8
|
-
constructor(conversationRepository: ConversationRepository, getConversationUC: IGetConversationUC);
|
|
9
|
-
execute({ input, currentUser, }: UCInput<DeleteByIdInput>): Promise<ConversationEntity>;
|
|
9
|
+
constructor(conversationRepository: ConversationRepository, getConversationUC: IGetConversationUC<UserEntity>);
|
|
10
|
+
execute({ input, currentUser, }: UCInput<DeleteByIdInput, UserEntity>): Promise<ConversationEntity>;
|
|
10
11
|
}
|
|
@@ -13,8 +13,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DeleteConversationUC = void 0;
|
|
16
|
-
const ConversationRepository_1 = require("
|
|
17
|
-
const GetConversationUC_1 = require("
|
|
16
|
+
const ConversationRepository_1 = require("../../interfaces/ConversationRepository");
|
|
17
|
+
const GetConversationUC_1 = require("../../use-cases/conversations/GetConversationUC");
|
|
18
18
|
const common_1 = require("@nestjs/common");
|
|
19
19
|
let DeleteConversationUC = class DeleteConversationUC {
|
|
20
20
|
conversationRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/DeleteConversationUC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"DeleteConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/DeleteConversationUC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,sFAAoF;AAGpF,yFAAwF;AACxF,2CAAoD;AAG7C,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAGZ;IAEA;IAJnB,YAEmB,sBAA8C,EAE9C,iBAAiD;QAFjD,2BAAsB,GAAtB,sBAAsB,CAAwB;QAE9C,sBAAiB,GAAjB,iBAAiB,CAAgC;IACjE,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,EACZ,KAAK,EACL,WAAW,GAC0B;QACrC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;YACxD,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;YACvB,WAAW;SACZ,CAAC,CAAC;QAEH,OAAO,MAAM,IAAI,CAAC,sBAAsB,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;IAChE,CAAC;CACF,CAAA;AAnBY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,gDAAuB,CAAC,CAAA;IAE/B,WAAA,IAAA,eAAM,EAAC,uCAAmB,CAAC,CAAA;;GAJnB,oBAAoB,CAmBhC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import
|
|
3
|
-
import type {
|
|
4
|
-
import type {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
3
|
+
import type { ConversationRepository } from '../../interfaces/ConversationRepository';
|
|
4
|
+
import type { LLMService } from '../../interfaces/LLMService';
|
|
5
|
+
import type { PromptService } from '../../interfaces/PromptService';
|
|
6
|
+
import { UCInput } from '../../use-cases/_common';
|
|
7
|
+
import type { IGetConversationUC } from '../../use-cases/conversations/GetConversationUC';
|
|
7
8
|
export declare class GenerateConversationTitleInput {
|
|
8
9
|
conversationId: string;
|
|
9
10
|
firstMessage: string;
|
|
@@ -13,6 +14,6 @@ export declare class GenerateConversationTitleUC {
|
|
|
13
14
|
private readonly promptService;
|
|
14
15
|
private readonly getConversationUC;
|
|
15
16
|
private readonly conversationRepository;
|
|
16
|
-
constructor(llmService: LLMService, promptService: PromptService, getConversationUC: IGetConversationUC
|
|
17
|
-
execute({ input, currentUser, }: UCInput<GenerateConversationTitleInput>): Promise<ConversationEntity>;
|
|
17
|
+
constructor(llmService: LLMService, promptService: PromptService, getConversationUC: IGetConversationUC<UserEntity>, conversationRepository: ConversationRepository);
|
|
18
|
+
execute({ input, currentUser, }: UCInput<GenerateConversationTitleInput, UserEntity>): Promise<ConversationEntity>;
|
|
18
19
|
}
|
|
@@ -13,10 +13,10 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.GenerateConversationTitleUC = exports.GenerateConversationTitleInput = void 0;
|
|
16
|
-
const ConversationRepository_1 = require("
|
|
17
|
-
const LLMService_1 = require("
|
|
18
|
-
const PromptService_1 = require("
|
|
19
|
-
const GetConversationUC_1 = require("
|
|
16
|
+
const ConversationRepository_1 = require("../../interfaces/ConversationRepository");
|
|
17
|
+
const LLMService_1 = require("../../interfaces/LLMService");
|
|
18
|
+
const PromptService_1 = require("../../interfaces/PromptService");
|
|
19
|
+
const GetConversationUC_1 = require("../../use-cases/conversations/GetConversationUC");
|
|
20
20
|
const common_1 = require("@nestjs/common");
|
|
21
21
|
const graphql_1 = require("@nestjs/graphql");
|
|
22
22
|
let GenerateConversationTitleInput = class GenerateConversationTitleInput {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenerateConversationTitleUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/GenerateConversationTitleUC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GenerateConversationTitleUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/GenerateConversationTitleUC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,sFAAoF;AAEpF,8DAA4D;AAE5D,oEAAkE;AAGlE,yFAAwF;AACxF,2CAAoD;AACpD,6CAAuD;AAGhD,IAAM,8BAA8B,GAApC,MAAM,8BAA8B;IAEzC,cAAc,CAAU;IAGxB,YAAY,CAAU;C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CAAC,YAAY,CAAC,CAAC;QAErD,OAAO,YAAY,CAAC;IACtB,CAAC;CACF,CAAA;AAhDY,kEAA2B;sCAA3B,2BAA2B;IADvC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,wBAAW,CAAC,CAAA;IAEnB,WAAA,IAAA,eAAM,EAAC,8BAAc,CAAC,CAAA;IAEtB,WAAA,IAAA,eAAM,EAAC,uCAAmB,CAAC,CAAA;IAE3B,WAAA,IAAA,eAAM,EAAC,gDAAuB,CAAC,CAAA;;GARvB,2BAA2B,CAgDvC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import {
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
3
|
+
import { UCInput } from '../../use-cases/_common';
|
|
3
4
|
export declare class GetConversationInput {
|
|
4
5
|
id?: string;
|
|
5
6
|
shareId?: string;
|
|
6
7
|
}
|
|
7
8
|
export declare const GET_CONVERSATION_UC = "GetConversationUC";
|
|
8
|
-
export interface IGetConversationUC {
|
|
9
|
-
execute(input: UCInput<GetConversationInput>): Promise<ConversationEntity>;
|
|
9
|
+
export interface IGetConversationUC<TUser extends UserEntity> {
|
|
10
|
+
execute(input: UCInput<GetConversationInput, TUser>): Promise<ConversationEntity>;
|
|
10
11
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/GetConversationUC.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GetConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/GetConversationUC.ts"],"names":[],"mappings":";;;;;;;;;;;;AAGA,6CAAuD;AAGhD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAE/B,EAAE,CAAU;IAGZ,OAAO,CAAU;CAClB,CAAA;AANY,oDAAoB;AAE/B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACxB;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACvB;+BALN,oBAAoB;IADhC,IAAA,mBAAS,GAAE;GACC,oBAAoB,CAMhC;AAEY,QAAA,mBAAmB,GAAG,mBAAmB,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import {
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
3
|
+
import { PaginatedInput, PaginatedOutput, UCInput } from '../../use-cases/_common';
|
|
3
4
|
export declare class GetConversationsInput extends PaginatedInput {
|
|
4
5
|
title?: string;
|
|
5
6
|
}
|
|
6
7
|
export declare const GET_CONVERSATIONS_UC = "GetConversationsUC";
|
|
7
|
-
export interface IGetConversationsUC {
|
|
8
|
-
execute(input: UCInput<GetConversationsInput>): Promise<PaginatedOutput<ConversationEntity>>;
|
|
8
|
+
export interface IGetConversationsUC<TUser extends UserEntity> {
|
|
9
|
+
execute(input: UCInput<GetConversationsInput, TUser>): Promise<PaginatedOutput<ConversationEntity>>;
|
|
9
10
|
}
|
|
@@ -10,7 +10,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.GET_CONVERSATIONS_UC = exports.GetConversationsInput = void 0;
|
|
13
|
-
const _common_1 = require("
|
|
13
|
+
const _common_1 = require("../../use-cases/_common");
|
|
14
14
|
const graphql_1 = require("@nestjs/graphql");
|
|
15
15
|
let GetConversationsInput = class GetConversationsInput extends _common_1.PaginatedInput {
|
|
16
16
|
title;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GetConversationsUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/GetConversationsUC.ts"],"names":[],"mappings":";;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"GetConversationsUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/GetConversationsUC.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,uDAImC;AACnC,6CAAmD;AAG5C,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,wBAAc;IAEvD,KAAK,CAAU;CAChB,CAAA;AAHY,sDAAqB;AAEhC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDACzB;gCAFJ,qBAAqB;IADjC,IAAA,mBAAS,GAAE;GACC,qBAAqB,CAGjC;AAEY,QAAA,oBAAoB,GAAG,oBAAoB,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ConversationEntity } from '
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
1
|
+
import { ConversationEntity } from '../../entities/ConversationEntity';
|
|
2
|
+
import { UserEntity } from '../../entities/UserEntity';
|
|
3
|
+
import type { ConversationRepository } from '../../interfaces/ConversationRepository';
|
|
4
|
+
import { UCInput } from '../../use-cases/_common';
|
|
5
|
+
import type { IGetConversationUC } from '../../use-cases/conversations/GetConversationUC';
|
|
5
6
|
export declare class UpdateConversationInput {
|
|
6
7
|
id: string;
|
|
7
8
|
title?: string;
|
|
@@ -10,6 +11,6 @@ export declare class UpdateConversationInput {
|
|
|
10
11
|
export declare class UpdateConversationUC {
|
|
11
12
|
private readonly conversationRepository;
|
|
12
13
|
private readonly getConversationUC;
|
|
13
|
-
constructor(conversationRepository: ConversationRepository, getConversationUC: IGetConversationUC);
|
|
14
|
-
execute({ input, currentUser, }: UCInput<UpdateConversationInput>): Promise<ConversationEntity>;
|
|
14
|
+
constructor(conversationRepository: ConversationRepository, getConversationUC: IGetConversationUC<UserEntity>);
|
|
15
|
+
execute({ input, currentUser, }: UCInput<UpdateConversationInput, UserEntity>): Promise<ConversationEntity>;
|
|
15
16
|
}
|
|
@@ -13,8 +13,8 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.UpdateConversationUC = exports.UpdateConversationInput = void 0;
|
|
16
|
-
const ConversationRepository_1 = require("
|
|
17
|
-
const GetConversationUC_1 = require("
|
|
16
|
+
const ConversationRepository_1 = require("../../interfaces/ConversationRepository");
|
|
17
|
+
const GetConversationUC_1 = require("../../use-cases/conversations/GetConversationUC");
|
|
18
18
|
const common_1 = require("@nestjs/common");
|
|
19
19
|
const graphql_1 = require("@nestjs/graphql");
|
|
20
20
|
let UpdateConversationInput = class UpdateConversationInput {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UpdateConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/UpdateConversationUC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"UpdateConversationUC.js","sourceRoot":"/","sources":["domain/use-cases/conversations/UpdateConversationUC.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,sFAAoF;AAGpF,yFAAwF;AACxF,2CAAoD;AACpD,6CAAuD;AAGhD,IAAM,uBAAuB,GAA7B,MAAM,uBAAuB;IAElC,EAAE,CAAU;IAGZ,KAAK,CAAU;IAGf,MAAM,CAAW;CAClB,CAAA;AATY,0DAAuB;AAElC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,YAAE,CAAC;;mDACJ;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACT;kCARN,uBAAuB;IADnC,IAAA,mBAAS,GAAE;GACC,uBAAuB,CASnC;AAGM,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAGZ;IAEA;IAJnB,YAEmB,sBAA8C,EAE9C,iBAAiD;QAFjD,2BAAsB,GAAtB,sBAAsB,CAAwB;QAE9C,sBAAiB,GAAjB,iBAAiB,CAAgC;IACjE,CAAC;IAEJ,KAAK,CAAC,OAAO,CAAC,EACZ,KAAK,EACL,WAAW,GAIZ;QACC,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC;YACxD,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE;YACvB,WAAW;SACZ,CAAC,CAAC;QAEH,IAAI,OAAO,KAAK,CAAC,KAAK,KAAK,QAAQ,EAAE,CAAC;YACpC,YAAY,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;QACnC,CAAC;QAED,IAAI,OAAO,KAAK,CAAC,MAAM,KAAK,SAAS,EAAE,CAAC;YACtC,IAAI,KAAK,CAAC,MAAM,EAAE,CAAC;gBACjB,YAAY,CAAC,OAAO,GAAG,MAAM,CAAC,UAAU,EAAE,CAAC;YAC7C,CAAC;iBAAM,CAAC;gBACN,YAAY,CAAC,OAAO,GAAG,IAAI,CAAC;YAC9B,CAAC;QACH,CAAC;QAED,OAAO,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IACxD,CAAC;CACF,CAAA;AAlCY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,eAAM,EAAC,gDAAuB,CAAC,CAAA;IAE/B,WAAA,IAAA,eAAM,EAAC,uCAAmB,CAAC,CAAA;;GAJnB,oBAAoB,CAkChC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { UserEntity } from '
|
|
2
|
-
import { SendChatUC, type SendMessageInput } from '
|
|
1
|
+
import type { UserEntity } from '../../domain/entities/UserEntity';
|
|
2
|
+
import { SendChatUC, type SendMessageInput } from '../../domain/use-cases/chats/SendChatUC';
|
|
3
3
|
import type { Response } from 'express';
|
|
4
4
|
export declare class ChatsController {
|
|
5
5
|
private readonly sendChatUC;
|
|
6
|
-
constructor(sendChatUC: SendChatUC<never>);
|
|
6
|
+
constructor(sendChatUC: SendChatUC<never, UserEntity>);
|
|
7
7
|
sendMessage(res: Response, input: SendMessageInput<never>, currentUser: UserEntity): Promise<void>;
|
|
8
8
|
}
|
|
@@ -13,7 +13,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.ChatsController = void 0;
|
|
16
|
-
const SendChatUC_1 = require("
|
|
16
|
+
const SendChatUC_1 = require("../../domain/use-cases/chats/SendChatUC");
|
|
17
17
|
const common_1 = require("@nestjs/common");
|
|
18
18
|
const CurrentUserRest_1 = require("src/inputs/controllers/_common/CurrentUserRest");
|
|
19
19
|
let ChatsController = class ChatsController {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChatsController.js","sourceRoot":"/","sources":["inputs/controllers/ChatsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mEAI4C;AAC5C,2CAAqE;AAErE,oFAAiF;AAG1E,IAAM,eAAe,GAArB,MAAM,eAAe;IAGP;IAFnB,YAEmB,
|
|
1
|
+
{"version":3,"file":"ChatsController.js","sourceRoot":"/","sources":["inputs/controllers/ChatsController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AACA,mEAI4C;AAC5C,2CAAqE;AAErE,oFAAiF;AAG1E,IAAM,eAAe,GAArB,MAAM,eAAe;IAGP;IAFnB,YAEmB,UAAyC;QAAzC,eAAU,GAAV,UAAU,CAA+B;IACzD,CAAC;IAGE,AAAN,KAAK,CAAC,WAAW,CACR,GAAa,EACZ,KAA8B,EACnB,WAAuB;QAE1C,GAAG,CAAC,SAAS,CAAC,GAAG,EAAE;YACjB,cAAc,EAAE,mBAAmB;YACnC,eAAe,EAAE,UAAU;YAC3B,UAAU,EAAE,YAAY;SACzB,CAAC,CAAC;QAEH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC;YAC3C,KAAK;YACL,WAAW;SACZ,CAAC,CAAC;QAEH,MAAM,CAAC,SAAS,CAAC;YACf,IAAI,EAAE,CAAC,KAAK,EAAE,EAAE;gBACd,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;YACnC,CAAC;YACD,QAAQ,EAAE,GAAG,EAAE;gBACb,GAAG,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC;YACD,KAAK,EAAE,GAAG,EAAE;gBACV,GAAG,CAAC,GAAG,EAAE,CAAC;YACZ,CAAC;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAnCY,0CAAe;AAOpB;IADL,IAAA,aAAI,EAAC,GAAG,CAAC;IAEP,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,iCAAe,GAAE,CAAA;;;;kDAwBnB;0BAlCU,eAAe;IAD3B,IAAA,mBAAU,EAAC,MAAM,CAAC;IAGd,WAAA,IAAA,eAAM,EAAC,yBAAY,CAAC,CAAA;qCACQ,uBAAU;GAH9B,eAAe,CAmC3B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ChatEntity } from '
|
|
1
|
+
import type { ChatEntity } from '../../domain/entities/ChatEntity';
|
|
2
2
|
import { GqlTypeReference } from '@nestjs/graphql';
|
|
3
3
|
export declare function GetChatsResolver(GqlChat: GqlTypeReference, GqlChatSource: GqlTypeReference, GqlChatTextContent: GqlTypeReference, GqlToolUse: GqlTypeReference): {
|
|
4
4
|
new (): {
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import type { ConversationEntity } from '
|
|
2
|
-
import type { UserEntity } from '
|
|
3
|
-
import { DeleteByIdInput } from '
|
|
4
|
-
import type { ICreateConversationUC } from '
|
|
5
|
-
import { DeleteConversationUC } from '
|
|
6
|
-
import { GenerateConversationTitleInput, GenerateConversationTitleUC } from '
|
|
7
|
-
import type { IGetConversationsUC } from '
|
|
8
|
-
import { GetConversationsInput } from '
|
|
9
|
-
import type { IGetConversationUC } from '
|
|
10
|
-
import { GetConversationInput } from '
|
|
11
|
-
import { UpdateConversationInput, UpdateConversationUC } from '
|
|
1
|
+
import type { ConversationEntity } from '../../domain/entities/ConversationEntity';
|
|
2
|
+
import type { UserEntity } from '../../domain/entities/UserEntity';
|
|
3
|
+
import { DeleteByIdInput } from '../../domain/use-cases/_common';
|
|
4
|
+
import type { ICreateConversationUC } from '../../domain/use-cases/conversations/CreateConversationUC';
|
|
5
|
+
import { DeleteConversationUC } from '../../domain/use-cases/conversations/DeleteConversationUC';
|
|
6
|
+
import { GenerateConversationTitleInput, GenerateConversationTitleUC } from '../../domain/use-cases/conversations/GenerateConversationTitleUC';
|
|
7
|
+
import type { IGetConversationsUC } from '../../domain/use-cases/conversations/GetConversationsUC';
|
|
8
|
+
import { GetConversationsInput } from '../../domain/use-cases/conversations/GetConversationsUC';
|
|
9
|
+
import type { IGetConversationUC } from '../../domain/use-cases/conversations/GetConversationUC';
|
|
10
|
+
import { GetConversationInput } from '../../domain/use-cases/conversations/GetConversationUC';
|
|
11
|
+
import { UpdateConversationInput, UpdateConversationUC } from '../../domain/use-cases/conversations/UpdateConversationUC';
|
|
12
12
|
import { GqlTypeReference } from '@nestjs/graphql';
|
|
13
13
|
export declare function GetConversationsResolver(GqlConversation: GqlTypeReference, GqlChat: GqlTypeReference, GqlUser: GqlTypeReference): {
|
|
14
|
-
new (getConversationsUC: IGetConversationsUC
|
|
15
|
-
readonly getConversationsUC: IGetConversationsUC
|
|
16
|
-
readonly getConversationUC: IGetConversationUC
|
|
17
|
-
readonly createConversationUC: ICreateConversationUC
|
|
14
|
+
new (getConversationsUC: IGetConversationsUC<UserEntity>, getConversationUC: IGetConversationUC<UserEntity>, createConversationUC: ICreateConversationUC<UserEntity>, updateConversationUC: UpdateConversationUC, deleteConversationUC: DeleteConversationUC, generateConversationTitleUC: GenerateConversationTitleUC): {
|
|
15
|
+
readonly getConversationsUC: IGetConversationsUC<UserEntity>;
|
|
16
|
+
readonly getConversationUC: IGetConversationUC<UserEntity>;
|
|
17
|
+
readonly createConversationUC: ICreateConversationUC<UserEntity>;
|
|
18
18
|
readonly updateConversationUC: UpdateConversationUC;
|
|
19
19
|
readonly deleteConversationUC: DeleteConversationUC;
|
|
20
20
|
readonly generateConversationTitleUC: GenerateConversationTitleUC;
|
|
@@ -13,13 +13,13 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.GetConversationsResolver = GetConversationsResolver;
|
|
16
|
-
const _common_1 = require("
|
|
17
|
-
const CreateConversationUC_1 = require("
|
|
18
|
-
const DeleteConversationUC_1 = require("
|
|
19
|
-
const GenerateConversationTitleUC_1 = require("
|
|
20
|
-
const GetConversationsUC_1 = require("
|
|
21
|
-
const GetConversationUC_1 = require("
|
|
22
|
-
const UpdateConversationUC_1 = require("
|
|
16
|
+
const _common_1 = require("../../domain/use-cases/_common");
|
|
17
|
+
const CreateConversationUC_1 = require("../../domain/use-cases/conversations/CreateConversationUC");
|
|
18
|
+
const DeleteConversationUC_1 = require("../../domain/use-cases/conversations/DeleteConversationUC");
|
|
19
|
+
const GenerateConversationTitleUC_1 = require("../../domain/use-cases/conversations/GenerateConversationTitleUC");
|
|
20
|
+
const GetConversationsUC_1 = require("../../domain/use-cases/conversations/GetConversationsUC");
|
|
21
|
+
const GetConversationUC_1 = require("../../domain/use-cases/conversations/GetConversationUC");
|
|
22
|
+
const UpdateConversationUC_1 = require("../../domain/use-cases/conversations/UpdateConversationUC");
|
|
23
23
|
const common_1 = require("@nestjs/common");
|
|
24
24
|
const graphql_1 = require("@nestjs/graphql");
|
|
25
25
|
const CurrentUserGql_1 = require("src/inputs/resolvers/_common/CurrentUserGql");
|