@skravets/eapi 0.0.45 → 0.0.46

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
@@ -320,19 +320,30 @@ interface PublishersStatusQueueInputClickHouseMessagesResult {
320
320
  error: string;
321
321
  };
322
322
  }
323
- interface PublishersStatusQueueInputGetCommonChatsResult {
324
- type: "get_common_chats_result";
323
+ interface PublishersStatusQueueInputCommonChats {
325
324
  metadata: Metadata;
326
325
  user: {
327
326
  id: number;
328
- username: string;
327
+ username?: string;
329
328
  };
330
- chats: {
329
+ account: {
330
+ id: number;
331
+ username?: string;
332
+ firstName?: string;
333
+ lastName?: string;
334
+ };
335
+ status: "SUCCESS" | "ERROR" | "ACCOUNT_NOT_FOUND" | "TIMEOUT" | "USERNAME_RESOLVE_ERROR" | "FLOOD_WAIT";
336
+ chats?: Array<{
331
337
  id: number;
332
338
  username?: string;
333
339
  title?: string;
334
340
  type: "chat" | "channel";
335
- }[];
341
+ }>;
342
+ error?: string;
343
+ seconds?: number;
344
+ }
345
+ interface PublishersStatusQueueInputGetCommonChatsResult extends PublishersStatusQueueInputCommonChats {
346
+ type: "get_common_chats_result";
336
347
  }
337
348
  interface EventByType {
338
349
  chat_parsed: ChatParsedTyped;
package/dist/index.d.ts CHANGED
@@ -320,19 +320,30 @@ interface PublishersStatusQueueInputClickHouseMessagesResult {
320
320
  error: string;
321
321
  };
322
322
  }
323
- interface PublishersStatusQueueInputGetCommonChatsResult {
324
- type: "get_common_chats_result";
323
+ interface PublishersStatusQueueInputCommonChats {
325
324
  metadata: Metadata;
326
325
  user: {
327
326
  id: number;
328
- username: string;
327
+ username?: string;
329
328
  };
330
- chats: {
329
+ account: {
330
+ id: number;
331
+ username?: string;
332
+ firstName?: string;
333
+ lastName?: string;
334
+ };
335
+ status: "SUCCESS" | "ERROR" | "ACCOUNT_NOT_FOUND" | "TIMEOUT" | "USERNAME_RESOLVE_ERROR" | "FLOOD_WAIT";
336
+ chats?: Array<{
331
337
  id: number;
332
338
  username?: string;
333
339
  title?: string;
334
340
  type: "chat" | "channel";
335
- }[];
341
+ }>;
342
+ error?: string;
343
+ seconds?: number;
344
+ }
345
+ interface PublishersStatusQueueInputGetCommonChatsResult extends PublishersStatusQueueInputCommonChats {
346
+ type: "get_common_chats_result";
336
347
  }
337
348
  interface EventByType {
338
349
  chat_parsed: ChatParsedTyped;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.45",
3
+ "version": "0.0.46",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",