@skravets/eapi 0.0.24 → 0.0.25

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.
@@ -48,8 +48,8 @@ interface paths {
48
48
  post: operations["chats.deleteMessages"];
49
49
  };
50
50
  "/chats/search": {
51
- /** Get rank chats */
52
- post: operations["chats.rankChats"];
51
+ /** search chats */
52
+ post: operations["chats.search"];
53
53
  };
54
54
  "/subscriptions": {
55
55
  /** Upsert subscription */
@@ -133,7 +133,7 @@ interface components {
133
133
  channel_id: number;
134
134
  /**
135
135
  * Format: date-time
136
- * @example 2025-10-23T19:43:32.038Z
136
+ * @example 2025-10-23T19:53:25.898Z
137
137
  */
138
138
  message_created_at: string;
139
139
  /** @example 123 */
@@ -250,7 +250,7 @@ interface components {
250
250
  */
251
251
  accountId: number;
252
252
  };
253
- IRankChatsReq: {
253
+ ISearchChatsReq: {
254
254
  /** @description chats usernames to rank */
255
255
  chats?: string[];
256
256
  /** @description search query */
@@ -667,7 +667,7 @@ interface operations {
667
667
  };
668
668
  };
669
669
  };
670
- "chats.rankChats": {
670
+ "chats.search": {
671
671
  parameters: {
672
672
  header: {
673
673
  /** @description `Basic token`, where token is `id:secret` base64 encoded */
@@ -676,7 +676,7 @@ interface operations {
676
676
  };
677
677
  requestBody: {
678
678
  content: {
679
- "application/json": components["schemas"]["IRankChatsReq"];
679
+ "application/json": components["schemas"]["ISearchChatsReq"];
680
680
  };
681
681
  };
682
682
  responses: {
@@ -48,8 +48,8 @@ interface paths {
48
48
  post: operations["chats.deleteMessages"];
49
49
  };
50
50
  "/chats/search": {
51
- /** Get rank chats */
52
- post: operations["chats.rankChats"];
51
+ /** search chats */
52
+ post: operations["chats.search"];
53
53
  };
54
54
  "/subscriptions": {
55
55
  /** Upsert subscription */
@@ -133,7 +133,7 @@ interface components {
133
133
  channel_id: number;
134
134
  /**
135
135
  * Format: date-time
136
- * @example 2025-10-23T19:43:32.038Z
136
+ * @example 2025-10-23T19:53:25.898Z
137
137
  */
138
138
  message_created_at: string;
139
139
  /** @example 123 */
@@ -250,7 +250,7 @@ interface components {
250
250
  */
251
251
  accountId: number;
252
252
  };
253
- IRankChatsReq: {
253
+ ISearchChatsReq: {
254
254
  /** @description chats usernames to rank */
255
255
  chats?: string[];
256
256
  /** @description search query */
@@ -667,7 +667,7 @@ interface operations {
667
667
  };
668
668
  };
669
669
  };
670
- "chats.rankChats": {
670
+ "chats.search": {
671
671
  parameters: {
672
672
  header: {
673
673
  /** @description `Basic token`, where token is `id:secret` base64 encoded */
@@ -676,7 +676,7 @@ interface operations {
676
676
  };
677
677
  requestBody: {
678
678
  content: {
679
- "application/json": components["schemas"]["IRankChatsReq"];
679
+ "application/json": components["schemas"]["ISearchChatsReq"];
680
680
  };
681
681
  };
682
682
  responses: {
package/dist/index.cjs CHANGED
@@ -244,11 +244,11 @@ class EApi {
244
244
  *
245
245
  *
246
246
  * @tags chats
247
- * @summary Get rank chats
247
+ * @summary search chats
248
248
  *
249
- * [Documentation](.../chats/operation/chats.rankChats)
249
+ * [Documentation](.../chats/operation/chats.search)
250
250
  */
251
- rankChats: (body, options) => {
251
+ search: (body, options) => {
252
252
  return this.request("/chats/search", body, {
253
253
  method: "POST",
254
254
  ...options
package/dist/index.d.cts CHANGED
@@ -379,11 +379,11 @@ declare class EApi {
379
379
  *
380
380
  *
381
381
  * @tags chats
382
- * @summary Get rank chats
382
+ * @summary search chats
383
383
  *
384
- * [Documentation](.../chats/operation/chats.rankChats)
384
+ * [Documentation](.../chats/operation/chats.search)
385
385
  */
386
- rankChats: (body: GetRequestBody<"/chats/search", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/search", "post">>;
386
+ search: (body: GetRequestBody<"/chats/search", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/search", "post">>;
387
387
  };
388
388
  /**
389
389
  * @tags subscriptions
package/dist/index.d.ts CHANGED
@@ -379,11 +379,11 @@ declare class EApi {
379
379
  *
380
380
  *
381
381
  * @tags chats
382
- * @summary Get rank chats
382
+ * @summary search chats
383
383
  *
384
- * [Documentation](.../chats/operation/chats.rankChats)
384
+ * [Documentation](.../chats/operation/chats.search)
385
385
  */
386
- rankChats: (body: GetRequestBody<"/chats/search", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/search", "post">>;
386
+ search: (body: GetRequestBody<"/chats/search", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/search", "post">>;
387
387
  };
388
388
  /**
389
389
  * @tags subscriptions
package/dist/index.js CHANGED
@@ -242,11 +242,11 @@ class EApi {
242
242
  *
243
243
  *
244
244
  * @tags chats
245
- * @summary Get rank chats
245
+ * @summary search chats
246
246
  *
247
- * [Documentation](.../chats/operation/chats.rankChats)
247
+ * [Documentation](.../chats/operation/chats.search)
248
248
  */
249
- rankChats: (body, options) => {
249
+ search: (body, options) => {
250
250
  return this.request("/chats/search", body, {
251
251
  method: "POST",
252
252
  ...options
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skravets/eapi",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "module": "./dist/index.js",
5
5
  "main": "./dist/index.cjs",
6
6
  "types": "./dist/index.d.ts",