@skravets/eapi 0.0.15 → 0.0.16

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 CHANGED
@@ -149,14 +149,27 @@ interface PublishersStatusQueueInputAgentPrivateMessage {
149
149
  interface PublishersStatusQueueInputAgentPrivateMessageResult extends PublishersStatusQueueInputAgentPrivateMessage {
150
150
  type: "agent_private_message";
151
151
  }
152
+ interface PublishersStatusQueueParsingError {
153
+ metadata?: {
154
+ externalId?: string;
155
+ };
156
+ reason: "USERNAME_NOT_OCCUPIED";
157
+ entity: {
158
+ username: string;
159
+ };
160
+ }
161
+ interface PublishersStatusQueueParsingErrorResult extends PublishersStatusQueueParsingError {
162
+ type: "parsing_error";
163
+ }
152
164
  interface EventByType {
153
165
  chat_parsed: ChatParsedTyped;
154
166
  messages_parsed: MessagesParsedTyped;
155
167
  chat_join_result: PublishersStatusQueueInputJoinResult;
156
168
  chat_send_result: PublishersStatusQueueInputSendResult;
157
169
  agent_private_message: PublishersStatusQueueInputAgentPrivateMessageResult;
170
+ parsing_error: PublishersStatusQueueParsingErrorResult;
158
171
  }
159
- type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult | PublishersStatusQueueInputAgentPrivateMessageResult;
172
+ type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult | PublishersStatusQueueInputAgentPrivateMessageResult | PublishersStatusQueueParsingErrorResult;
160
173
  type WebhookBodyTypes = keyof EventByType;
161
174
 
162
175
  declare const frameworks: {
package/dist/index.d.ts CHANGED
@@ -149,14 +149,27 @@ interface PublishersStatusQueueInputAgentPrivateMessage {
149
149
  interface PublishersStatusQueueInputAgentPrivateMessageResult extends PublishersStatusQueueInputAgentPrivateMessage {
150
150
  type: "agent_private_message";
151
151
  }
152
+ interface PublishersStatusQueueParsingError {
153
+ metadata?: {
154
+ externalId?: string;
155
+ };
156
+ reason: "USERNAME_NOT_OCCUPIED";
157
+ entity: {
158
+ username: string;
159
+ };
160
+ }
161
+ interface PublishersStatusQueueParsingErrorResult extends PublishersStatusQueueParsingError {
162
+ type: "parsing_error";
163
+ }
152
164
  interface EventByType {
153
165
  chat_parsed: ChatParsedTyped;
154
166
  messages_parsed: MessagesParsedTyped;
155
167
  chat_join_result: PublishersStatusQueueInputJoinResult;
156
168
  chat_send_result: PublishersStatusQueueInputSendResult;
157
169
  agent_private_message: PublishersStatusQueueInputAgentPrivateMessageResult;
170
+ parsing_error: PublishersStatusQueueParsingErrorResult;
158
171
  }
159
- type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult | PublishersStatusQueueInputAgentPrivateMessageResult;
172
+ type WebhookBody = ChatParsedTyped | MessagesParsedTyped | PublishersStatusQueueInputJoinResult | PublishersStatusQueueInputSendResult | PublishersStatusQueueInputAgentPrivateMessageResult | PublishersStatusQueueParsingErrorResult;
160
173
  type WebhookBodyTypes = keyof EventByType;
161
174
 
162
175
  declare const frameworks: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.15",
3
+ "version": "0.0.16",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",