@rodrigobeber/patoai-dtos 4.2.12 → 4.3.0
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/thread/index.d.ts +2 -0
- package/dist/webchat/thread/index.js +2 -0
- package/dist/webchat/thread/webchat-start-conversation-response.dto.d.ts +11 -0
- package/dist/webchat/thread/webchat-start-conversation-response.dto.js +2 -0
- package/dist/webchat/thread/webchat-start-conversation.dto.d.ts +18 -0
- package/dist/webchat/thread/webchat-start-conversation.dto.js +2 -0
- package/package.json +1 -1
|
@@ -17,3 +17,5 @@ export * from './webchat-set-thread-manual.dto';
|
|
|
17
17
|
export * from './webchat-set-user-name.dto';
|
|
18
18
|
export * from './webchat-thread.dto';
|
|
19
19
|
export * from './webchat-update-message.dto';
|
|
20
|
+
export * from './webchat-start-conversation.dto';
|
|
21
|
+
export * from './webchat-start-conversation-response.dto';
|
|
@@ -33,3 +33,5 @@ __exportStar(require("./webchat-set-thread-manual.dto"), exports);
|
|
|
33
33
|
__exportStar(require("./webchat-set-user-name.dto"), exports);
|
|
34
34
|
__exportStar(require("./webchat-thread.dto"), exports);
|
|
35
35
|
__exportStar(require("./webchat-update-message.dto"), exports);
|
|
36
|
+
__exportStar(require("./webchat-start-conversation.dto"), exports);
|
|
37
|
+
__exportStar(require("./webchat-start-conversation-response.dto"), exports);
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response DTO for starting a new conversation.
|
|
3
|
+
*/
|
|
4
|
+
export interface WebChatStartConversationResponseDto {
|
|
5
|
+
/** The thread ID (new or existing) */
|
|
6
|
+
idThread: string;
|
|
7
|
+
/** Whether a new thread was created */
|
|
8
|
+
isNew: boolean;
|
|
9
|
+
/** Whether a template is required (for frontend to know) */
|
|
10
|
+
requiresTemplate: boolean;
|
|
11
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DTO for starting a new conversation from the frontend.
|
|
3
|
+
* Used to initiate contact with a user by phone/identifier.
|
|
4
|
+
*/
|
|
5
|
+
export interface WebChatStartConversationDto {
|
|
6
|
+
/** Phone number or identifier of the recipient */
|
|
7
|
+
userId: string;
|
|
8
|
+
/** Optional name of the recipient */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Channel ID to use for the conversation */
|
|
11
|
+
idChannel: number;
|
|
12
|
+
/** Optional unit ID (when channel has no unit and crew has multiple units) */
|
|
13
|
+
idUnit?: number;
|
|
14
|
+
/** Template name (required for WhatsApp when outside 24h window) */
|
|
15
|
+
template?: string;
|
|
16
|
+
/** Free text message (allowed for non-WhatsApp channels or WhatsApp within 24h window) */
|
|
17
|
+
text?: string;
|
|
18
|
+
}
|