@skravets/eapi 0.0.15 → 0.0.17
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/LICENSE +21 -21
- package/README.md +9 -3
- package/dist/api-types.d.cts +1 -1
- package/dist/api-types.d.ts +1 -1
- package/dist/index.cjs +0 -0
- package/dist/index.d.cts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +0 -0
- package/package.json +2 -1
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024 Kravets
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Kravets
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
package/dist/api-types.d.cts
CHANGED
package/dist/api-types.d.ts
CHANGED
package/dist/index.cjs
CHANGED
|
File without changes
|
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/dist/index.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skravets/eapi",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.17",
|
|
4
4
|
"module": "./dist/index.js",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
|
+
"generate": "bun scripts/generate.ts",
|
|
8
9
|
"build": "bunx pkgroll",
|
|
9
10
|
"prepublishOnly": "bunx pkgroll"
|
|
10
11
|
},
|