@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 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
@@ -1,3 +1,9 @@
1
- # EAPI
2
-
3
- MVP
1
+ # EAPI
2
+
3
+ ## Публикация
4
+
5
+ 1. Задеплоить на Staging новые версии контракта. Нужно указывать tags в OpenAPI чтобы они попали в группу.
6
+
7
+ 2. Обновить в `package.json` версию.
8
+
9
+ 3. Запустить workflow `Publish package`.
@@ -65,7 +65,7 @@ interface components {
65
65
  channel_id: number;
66
66
  /**
67
67
  * Format: date-time
68
- * @example 2025-09-02T10:14:42.472Z
68
+ * @example 2025-09-29T13:14:15.618Z
69
69
  */
70
70
  message_created_at: string;
71
71
  /** @example 123 */
@@ -65,7 +65,7 @@ interface components {
65
65
  channel_id: number;
66
66
  /**
67
67
  * Format: date-time
68
- * @example 2025-09-02T10:14:42.472Z
68
+ * @example 2025-09-29T13:14:15.618Z
69
69
  */
70
70
  message_created_at: string;
71
71
  /** @example 123 */
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.15",
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
  },