@skravets/eapi 0.0.12 → 0.0.13
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/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -111,13 +111,38 @@ interface PublishersStatusQueueInputSend {
|
|
|
111
111
|
interface PublishersStatusQueueInputSendResult extends PublishersStatusQueueInputSend {
|
|
112
112
|
type: "chat_send_result";
|
|
113
113
|
}
|
|
114
|
+
interface AgentMessage {
|
|
115
|
+
id: number;
|
|
116
|
+
text: string;
|
|
117
|
+
reply_message_id?: number;
|
|
118
|
+
created_at: string;
|
|
119
|
+
}
|
|
120
|
+
interface PublishersStatusQueueInputAgentPrivateMessage {
|
|
121
|
+
agent: {
|
|
122
|
+
id: number;
|
|
123
|
+
username?: string;
|
|
124
|
+
first_name?: string;
|
|
125
|
+
last_name?: string;
|
|
126
|
+
};
|
|
127
|
+
from: {
|
|
128
|
+
id: number;
|
|
129
|
+
username?: string;
|
|
130
|
+
first_name?: string;
|
|
131
|
+
last_name?: string;
|
|
132
|
+
};
|
|
133
|
+
message: AgentMessage;
|
|
134
|
+
}
|
|
135
|
+
interface PublishersStatusQueueInputAgentPrivateMessageResult extends PublishersStatusQueueInputAgentPrivateMessage {
|
|
136
|
+
type: "agent_private_message";
|
|
137
|
+
}
|
|
114
138
|
interface EventByType {
|
|
115
139
|
chat_parsed: ChatParsedTyped;
|
|
116
140
|
messages_parsed: MessagesParsedTyped;
|
|
117
141
|
chat_join_result: PublishersStatusQueueInputJoinResult;
|
|
118
142
|
chat_send_result: PublishersStatusQueueInputSendResult;
|
|
143
|
+
agent_private_message: PublishersStatusQueueInputAgentPrivateMessageResult;
|
|
119
144
|
}
|
|
120
|
-
type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult;
|
|
145
|
+
type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult | PublishersStatusQueueInputAgentPrivateMessageResult;
|
|
121
146
|
type WebhookBodyTypes = keyof EventByType;
|
|
122
147
|
|
|
123
148
|
declare const frameworks: {
|
package/dist/index.d.ts
CHANGED
|
@@ -111,13 +111,38 @@ interface PublishersStatusQueueInputSend {
|
|
|
111
111
|
interface PublishersStatusQueueInputSendResult extends PublishersStatusQueueInputSend {
|
|
112
112
|
type: "chat_send_result";
|
|
113
113
|
}
|
|
114
|
+
interface AgentMessage {
|
|
115
|
+
id: number;
|
|
116
|
+
text: string;
|
|
117
|
+
reply_message_id?: number;
|
|
118
|
+
created_at: string;
|
|
119
|
+
}
|
|
120
|
+
interface PublishersStatusQueueInputAgentPrivateMessage {
|
|
121
|
+
agent: {
|
|
122
|
+
id: number;
|
|
123
|
+
username?: string;
|
|
124
|
+
first_name?: string;
|
|
125
|
+
last_name?: string;
|
|
126
|
+
};
|
|
127
|
+
from: {
|
|
128
|
+
id: number;
|
|
129
|
+
username?: string;
|
|
130
|
+
first_name?: string;
|
|
131
|
+
last_name?: string;
|
|
132
|
+
};
|
|
133
|
+
message: AgentMessage;
|
|
134
|
+
}
|
|
135
|
+
interface PublishersStatusQueueInputAgentPrivateMessageResult extends PublishersStatusQueueInputAgentPrivateMessage {
|
|
136
|
+
type: "agent_private_message";
|
|
137
|
+
}
|
|
114
138
|
interface EventByType {
|
|
115
139
|
chat_parsed: ChatParsedTyped;
|
|
116
140
|
messages_parsed: MessagesParsedTyped;
|
|
117
141
|
chat_join_result: PublishersStatusQueueInputJoinResult;
|
|
118
142
|
chat_send_result: PublishersStatusQueueInputSendResult;
|
|
143
|
+
agent_private_message: PublishersStatusQueueInputAgentPrivateMessageResult;
|
|
119
144
|
}
|
|
120
|
-
type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult;
|
|
145
|
+
type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult | PublishersStatusQueueInputAgentPrivateMessageResult;
|
|
121
146
|
type WebhookBodyTypes = keyof EventByType;
|
|
122
147
|
|
|
123
148
|
declare const frameworks: {
|