@rodrigobeber/patoai-dtos 4.5.1 → 4.5.3
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/webchat/crm/webchat-stage.dto.d.ts +1 -0
- package/dist/webchat/thread/index.d.ts +1 -0
- package/dist/webchat/thread/index.js +1 -0
- package/dist/webchat/thread/webchat-start-conversation.dto.d.ts +2 -0
- package/dist/webchat/thread/webchat-thread-siblings.dto.d.ts +22 -0
- package/dist/webchat/thread/webchat-thread-siblings.dto.js +2 -0
- package/dist/webchat/thread/webchat-thread.dto.d.ts +1 -0
- package/package.json +1 -1
|
@@ -35,3 +35,4 @@ __exportStar(require("./webchat-thread.dto"), exports);
|
|
|
35
35
|
__exportStar(require("./webchat-update-message.dto"), exports);
|
|
36
36
|
__exportStar(require("./webchat-start-conversation.dto"), exports);
|
|
37
37
|
__exportStar(require("./webchat-start-conversation-response.dto"), exports);
|
|
38
|
+
__exportStar(require("./webchat-thread-siblings.dto"), exports);
|
|
@@ -15,4 +15,6 @@ export interface WebChatStartConversationDto {
|
|
|
15
15
|
template?: string;
|
|
16
16
|
/** Free text message (allowed for non-WhatsApp channels or WhatsApp within 24h window) */
|
|
17
17
|
text?: string;
|
|
18
|
+
/** If true, send even if thread already exists (user confirmed) */
|
|
19
|
+
allowExisting?: boolean;
|
|
18
20
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a single thread (conversation) in the siblings list
|
|
3
|
+
*/
|
|
4
|
+
export interface WebChatThreadSiblingItemDto {
|
|
5
|
+
idThread: string;
|
|
6
|
+
finished: boolean;
|
|
7
|
+
createdAt: Date;
|
|
8
|
+
stageName?: string | null;
|
|
9
|
+
stageId?: number | null;
|
|
10
|
+
summary?: string | null;
|
|
11
|
+
title?: string | null;
|
|
12
|
+
paid?: number | null;
|
|
13
|
+
isCurrent: boolean;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Response for GET /webchat/thread/:id/siblings
|
|
17
|
+
* Returns all threads (active, finished) for the same user+crew
|
|
18
|
+
*/
|
|
19
|
+
export interface WebChatThreadSiblingsDto {
|
|
20
|
+
current: string;
|
|
21
|
+
threads: WebChatThreadSiblingItemDto[];
|
|
22
|
+
}
|