@skravets/eapi 0.0.8 → 0.0.9
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/api-types.d.cts +15 -3
- package/dist/api-types.d.ts +15 -3
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/api-types.d.cts
CHANGED
|
@@ -19,7 +19,7 @@ interface paths {
|
|
|
19
19
|
/** Get last channel message */
|
|
20
20
|
get: operations["channels.getLastMessage"];
|
|
21
21
|
};
|
|
22
|
-
"/chats/{chat}/
|
|
22
|
+
"/chats/{chat}/messages": {
|
|
23
23
|
/** Get chat messages */
|
|
24
24
|
post: operations["chats.getMessages"];
|
|
25
25
|
};
|
|
@@ -61,7 +61,7 @@ interface components {
|
|
|
61
61
|
channel_id: number;
|
|
62
62
|
/**
|
|
63
63
|
* Format: date-time
|
|
64
|
-
* @example 2025-08-
|
|
64
|
+
* @example 2025-08-13T15:12:55.159Z
|
|
65
65
|
*/
|
|
66
66
|
message_created_at: string;
|
|
67
67
|
/** @example 123 */
|
|
@@ -73,6 +73,18 @@ interface components {
|
|
|
73
73
|
/** @example testUsername */
|
|
74
74
|
username: string;
|
|
75
75
|
};
|
|
76
|
+
ICursor: {
|
|
77
|
+
/**
|
|
78
|
+
* @description Message id to get messages from
|
|
79
|
+
* @example 1
|
|
80
|
+
*/
|
|
81
|
+
from?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @description Message id to get messages to
|
|
84
|
+
* @example 10
|
|
85
|
+
*/
|
|
86
|
+
to?: number;
|
|
87
|
+
};
|
|
76
88
|
IGetChannelMessages: {
|
|
77
89
|
/**
|
|
78
90
|
* @description Cursor to get messages from id to id
|
|
@@ -81,7 +93,7 @@ interface components {
|
|
|
81
93
|
* "to": 10
|
|
82
94
|
* }
|
|
83
95
|
*/
|
|
84
|
-
cursor
|
|
96
|
+
cursor?: components["schemas"]["ICursor"];
|
|
85
97
|
};
|
|
86
98
|
IJoin: {
|
|
87
99
|
/**
|
package/dist/api-types.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ interface paths {
|
|
|
19
19
|
/** Get last channel message */
|
|
20
20
|
get: operations["channels.getLastMessage"];
|
|
21
21
|
};
|
|
22
|
-
"/chats/{chat}/
|
|
22
|
+
"/chats/{chat}/messages": {
|
|
23
23
|
/** Get chat messages */
|
|
24
24
|
post: operations["chats.getMessages"];
|
|
25
25
|
};
|
|
@@ -61,7 +61,7 @@ interface components {
|
|
|
61
61
|
channel_id: number;
|
|
62
62
|
/**
|
|
63
63
|
* Format: date-time
|
|
64
|
-
* @example 2025-08-
|
|
64
|
+
* @example 2025-08-13T15:12:55.159Z
|
|
65
65
|
*/
|
|
66
66
|
message_created_at: string;
|
|
67
67
|
/** @example 123 */
|
|
@@ -73,6 +73,18 @@ interface components {
|
|
|
73
73
|
/** @example testUsername */
|
|
74
74
|
username: string;
|
|
75
75
|
};
|
|
76
|
+
ICursor: {
|
|
77
|
+
/**
|
|
78
|
+
* @description Message id to get messages from
|
|
79
|
+
* @example 1
|
|
80
|
+
*/
|
|
81
|
+
from?: number;
|
|
82
|
+
/**
|
|
83
|
+
* @description Message id to get messages to
|
|
84
|
+
* @example 10
|
|
85
|
+
*/
|
|
86
|
+
to?: number;
|
|
87
|
+
};
|
|
76
88
|
IGetChannelMessages: {
|
|
77
89
|
/**
|
|
78
90
|
* @description Cursor to get messages from id to id
|
|
@@ -81,7 +93,7 @@ interface components {
|
|
|
81
93
|
* "to": 10
|
|
82
94
|
* }
|
|
83
95
|
*/
|
|
84
|
-
cursor
|
|
96
|
+
cursor?: components["schemas"]["ICursor"];
|
|
85
97
|
};
|
|
86
98
|
IJoin: {
|
|
87
99
|
/**
|
package/dist/index.cjs
CHANGED
|
@@ -146,7 +146,7 @@ class EApi {
|
|
|
146
146
|
* [Documentation](.../chats/operation/chats.getMessages)
|
|
147
147
|
*/
|
|
148
148
|
getMessages: (chat, body, options) => {
|
|
149
|
-
return this.request(`/chats/${chat}/
|
|
149
|
+
return this.request(`/chats/${chat}/messages`, body, {
|
|
150
150
|
method: "POST",
|
|
151
151
|
...options
|
|
152
152
|
});
|
package/dist/index.d.cts
CHANGED
|
@@ -224,7 +224,7 @@ declare class EApi {
|
|
|
224
224
|
*
|
|
225
225
|
* [Documentation](.../chats/operation/chats.getMessages)
|
|
226
226
|
*/
|
|
227
|
-
getMessages: (chat: paths["/chats/{chat}/
|
|
227
|
+
getMessages: (chat: paths["/chats/{chat}/messages"]["post"]["parameters"]["path"]["chat"], body: GetRequestBody<"/chats/{chat}/messages", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/messages", "post">>;
|
|
228
228
|
/**
|
|
229
229
|
*
|
|
230
230
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -224,7 +224,7 @@ declare class EApi {
|
|
|
224
224
|
*
|
|
225
225
|
* [Documentation](.../chats/operation/chats.getMessages)
|
|
226
226
|
*/
|
|
227
|
-
getMessages: (chat: paths["/chats/{chat}/
|
|
227
|
+
getMessages: (chat: paths["/chats/{chat}/messages"]["post"]["parameters"]["path"]["chat"], body: GetRequestBody<"/chats/{chat}/messages", "post">, options?: RequestOptions) => Promise<GetResponse<"/chats/{chat}/messages", "post">>;
|
|
228
228
|
/**
|
|
229
229
|
*
|
|
230
230
|
*
|
package/dist/index.js
CHANGED
|
@@ -144,7 +144,7 @@ class EApi {
|
|
|
144
144
|
* [Documentation](.../chats/operation/chats.getMessages)
|
|
145
145
|
*/
|
|
146
146
|
getMessages: (chat, body, options) => {
|
|
147
|
-
return this.request(`/chats/${chat}/
|
|
147
|
+
return this.request(`/chats/${chat}/messages`, body, {
|
|
148
148
|
method: "POST",
|
|
149
149
|
...options
|
|
150
150
|
});
|