itd-api 0.9.2 → 0.10.0
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/README.md +9 -8
- package/dist/events/index.cjs +2 -2
- package/dist/events/index.d.cts +2 -2
- package/dist/events/index.d.ts +2 -2
- package/dist/events/index.js +2 -2
- package/dist/index.cjs +489 -92
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +186 -36
- package/dist/index.d.ts +186 -36
- package/dist/index.js +485 -94
- package/dist/index.js.map +1 -1
- package/dist/rest/index.cjs +2 -2
- package/dist/rest/index.d.cts +2 -2
- package/dist/rest/index.d.ts +2 -2
- package/dist/rest/index.js +2 -2
- package/dist/shared/{events-BIBO2Jif.js → events-B0Wtn4cF.js} +3 -3
- package/dist/shared/{events-BIBO2Jif.js.map → events-B0Wtn4cF.js.map} +1 -1
- package/dist/shared/{events-BsRm_Fba.cjs → events-BB791aPk.cjs} +8 -2
- package/dist/shared/{events-BsRm_Fba.cjs.map → events-BB791aPk.cjs.map} +1 -1
- package/dist/shared/{events-BCn5LRnT.d.cts → events-BNGjJVI3.d.cts} +2 -2
- package/dist/shared/{events-t1uGgpkf.d.ts → events-CJO6q93Z.d.ts} +2 -2
- package/dist/shared/{render-DqVzx68r.cjs → render-BimHjOhw.cjs} +2 -30
- package/dist/shared/render-BimHjOhw.cjs.map +1 -0
- package/dist/shared/{render-DA83gS0f.d.cts → render-C1A57W-5.d.cts} +2 -14
- package/dist/shared/{render--ZXmYEf-.js → render-CkhvH_yh.js} +2 -30
- package/dist/shared/render-CkhvH_yh.js.map +1 -0
- package/dist/shared/{render-BdnBV-aT.d.ts → render-DC5nvqcP.d.ts} +2 -14
- package/dist/shared/{url-i2f-X1hX.js → url-BA5hEwj2.js} +95 -16
- package/dist/shared/url-BA5hEwj2.js.map +1 -0
- package/dist/shared/{url-Doc0XXW_.cjs → url-CDVgMIq5.cjs} +130 -15
- package/dist/shared/url-CDVgMIq5.cjs.map +1 -0
- package/dist/shared/{url-Dbj6V6fk.d.cts → url-DkMueFAT.d.cts} +76 -17
- package/dist/shared/{url-Dbj6V6fk.d.ts → url-DkMueFAT.d.ts} +76 -17
- package/package.json +4 -3
- package/dist/shared/render--ZXmYEf-.js.map +0 -1
- package/dist/shared/render-DqVzx68r.cjs.map +0 -1
- package/dist/shared/url-Doc0XXW_.cjs.map +0 -1
- package/dist/shared/url-i2f-X1hX.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as RuntimeOptions, It as QueryParams, Vt as ItdClock, a as NotificationEvent,
|
|
1
|
+
import { Ft as RuntimeOptions, It as QueryParams, Vt as ItdClock, a as NotificationEvent, ct as Listener, dn as EventChannelStatus, lt as Unsubscribe, nt as AuthIdentity, rt as AuthProvider, s as Notification, tt as ClientConnection, vn as NotificationType, xt as Logger } from "./url-DkMueFAT.cjs";
|
|
2
2
|
//#region src/events/transports/transport.d.ts
|
|
3
3
|
/** Идентификаторы операций транспорта уведомлений. */
|
|
4
4
|
type EventOperationId = 'events.notifications.poll.updates' | 'events.notifications.poll.unread';
|
|
@@ -693,4 +693,4 @@ declare class WebSocketTransport implements EventTransport {
|
|
|
693
693
|
}
|
|
694
694
|
//#endregion
|
|
695
695
|
export { EventTransportContext as $, EventHandler as A, NotificationEventContext as B, EventChannelDeps as C, EventSession as D, EventEnqueueOptions as E, EventSequentializer as F, NotificationOfType as G, NotificationEventOfType as H, EventTypeGuard as I, NotificationUpdateOrigin as J, NotificationUpdate as K, runEventMiddleware as L, EventMiddlewareObject as M, EventNext as N, EventSyncReason as O, EventPredicate as P, EventTransport as Q, EventContext as R, EventChannel as S, EventChannelOptions as T, NotificationEventSelector as U, NotificationEventFilter as V, NotificationEventsUpdate as W, UnknownNotificationUpdate as X, NotificationUpdateType as Y, UnreadCountUpdate as Z, createNotificationEventsClient as _, WebSocketTransportOptions as a, NotificationEventsOptions as b, EventErrorContext as c, EventMiddlewareLike as d, EventTransportFrame as et, EventRouteTable as f, NotificationEventsClientOptions as g, NotificationEventsClient as h, WebSocketTransport as i, EventMiddleware as j, ReconnectOptions as k, EventFilter as l, EventRouter as m, WebSocketLike as n, EventComposer as o, EventRouteSelector as p, NotificationUpdateOfType as q, WebSocketOpenFailureClassifier as r, EventErrorBoundary as s, WebSocketImplementationOptions as t, UnauthorizedStreamError as tt, EventMiddlewareGroup as u, NotificationEvents as v, EventChannelEvents as w, NotificationEventsTransport as x, NotificationEventsMap as y, NotificationContext as z };
|
|
696
|
-
//# sourceMappingURL=events-
|
|
696
|
+
//# sourceMappingURL=events-BNGjJVI3.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ft as RuntimeOptions, It as QueryParams, Vt as ItdClock, a as NotificationEvent,
|
|
1
|
+
import { Ft as RuntimeOptions, It as QueryParams, Vt as ItdClock, a as NotificationEvent, ct as Listener, dn as EventChannelStatus, lt as Unsubscribe, nt as AuthIdentity, rt as AuthProvider, s as Notification, tt as ClientConnection, vn as NotificationType, xt as Logger } from "./url-DkMueFAT.js";
|
|
2
2
|
//#region src/events/transports/transport.d.ts
|
|
3
3
|
/** Идентификаторы операций транспорта уведомлений. */
|
|
4
4
|
type EventOperationId = 'events.notifications.poll.updates' | 'events.notifications.poll.unread';
|
|
@@ -693,4 +693,4 @@ declare class WebSocketTransport implements EventTransport {
|
|
|
693
693
|
}
|
|
694
694
|
//#endregion
|
|
695
695
|
export { EventTransportContext as $, EventHandler as A, NotificationEventContext as B, EventChannelDeps as C, EventSession as D, EventEnqueueOptions as E, EventSequentializer as F, NotificationOfType as G, NotificationEventOfType as H, EventTypeGuard as I, NotificationUpdateOrigin as J, NotificationUpdate as K, runEventMiddleware as L, EventMiddlewareObject as M, EventNext as N, EventSyncReason as O, EventPredicate as P, EventTransport as Q, EventContext as R, EventChannel as S, EventChannelOptions as T, NotificationEventSelector as U, NotificationEventFilter as V, NotificationEventsUpdate as W, UnknownNotificationUpdate as X, NotificationUpdateType as Y, UnreadCountUpdate as Z, createNotificationEventsClient as _, WebSocketTransportOptions as a, NotificationEventsOptions as b, EventErrorContext as c, EventMiddlewareLike as d, EventTransportFrame as et, EventRouteTable as f, NotificationEventsClientOptions as g, NotificationEventsClient as h, WebSocketTransport as i, EventMiddleware as j, ReconnectOptions as k, EventFilter as l, EventRouter as m, WebSocketLike as n, EventComposer as o, EventRouteSelector as p, NotificationUpdateOfType as q, WebSocketOpenFailureClassifier as r, EventErrorBoundary as s, WebSocketImplementationOptions as t, UnauthorizedStreamError as tt, EventMiddlewareGroup as u, NotificationEvents as v, EventChannelEvents as w, NotificationEventsTransport as x, NotificationEventsMap as y, NotificationContext as z };
|
|
696
|
-
//# sourceMappingURL=events-
|
|
696
|
+
//# sourceMappingURL=events-CJO6q93Z.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_url = require("./url-
|
|
1
|
+
const require_url = require("./url-CDVgMIq5.cjs");
|
|
2
2
|
const require_errors = require("./errors-BmP3TKoW.cjs");
|
|
3
3
|
const require_redact = require("./redact-lAmck1Z6.cjs");
|
|
4
4
|
const require_options = require("./options-DjEtbVaf.cjs");
|
|
@@ -1854,7 +1854,6 @@ var FilesResource = class extends BaseResource {
|
|
|
1854
1854
|
//#endregion
|
|
1855
1855
|
//#region src/resources/hashtags.ts
|
|
1856
1856
|
const HASHTAG_POSTS = pageOperation("hashtags.posts", (body) => readCursorPage(body, "posts"));
|
|
1857
|
-
const HASHTAGS_SEARCH = require_url.defineBuiltInOperation("hashtags.search", (body) => require_url.pickArray(body, "hashtags"));
|
|
1858
1857
|
const HASHTAGS_TRENDING = require_url.defineBuiltInOperation("hashtags.trending", (body) => require_url.pickArray(body, "hashtags"));
|
|
1859
1858
|
/**
|
|
1860
1859
|
* Хэштеги.
|
|
@@ -1870,21 +1869,6 @@ var HashtagsResource = class extends BaseResource {
|
|
|
1870
1869
|
start: (p) => p.cursor ? { cursor: p.cursor } : {},
|
|
1871
1870
|
mode: PaginationMode.Cursor
|
|
1872
1871
|
});
|
|
1873
|
-
/**
|
|
1874
|
-
* Ищет хэштеги.
|
|
1875
|
-
*
|
|
1876
|
-
* Без строки запроса возвращает общий список.
|
|
1877
|
-
*/
|
|
1878
|
-
search(query, params = {}, options = {}) {
|
|
1879
|
-
return this.http.execute(HASHTAGS_SEARCH, {
|
|
1880
|
-
path: "/api/hashtags",
|
|
1881
|
-
query: {
|
|
1882
|
-
q: query,
|
|
1883
|
-
limit: params.limit
|
|
1884
|
-
},
|
|
1885
|
-
...options
|
|
1886
|
-
});
|
|
1887
|
-
}
|
|
1888
1872
|
/** Загружает трендовые хэштеги. */
|
|
1889
1873
|
trending(params = {}, options = {}) {
|
|
1890
1874
|
return this.http.execute(HASHTAGS_TRENDING, {
|
|
@@ -4156,7 +4140,6 @@ const USER_LIST_OPERATIONS = {
|
|
|
4156
4140
|
"users.blocked": userListOperation("users.blocked")
|
|
4157
4141
|
};
|
|
4158
4142
|
const USERS_CHECK_USERNAME = require_url.defineBuiltInOperation("users.checkUsername", (body) => require_url.pickBoolean(body, "available"));
|
|
4159
|
-
const USERS_SEARCH = require_url.defineBuiltInOperation("users.search", (body) => require_url.pickArray(body, "users"));
|
|
4160
4143
|
const USERS_WHO_TO_FOLLOW = require_url.defineBuiltInOperation("users.whoToFollow", (body) => require_url.pickArray(body, "users"));
|
|
4161
4144
|
const USERS_TOP_CLANS = require_url.defineBuiltInOperation("users.topClans", (body) => require_url.pickArray(body, "clans"));
|
|
4162
4145
|
const USERS_PINS = require_url.defineBuiltInOperation("users.pins", (body) => ({
|
|
@@ -4285,17 +4268,6 @@ var UsersResource = class extends BaseResource {
|
|
|
4285
4268
|
...options
|
|
4286
4269
|
});
|
|
4287
4270
|
}
|
|
4288
|
-
/** Ищет пользователей по строке запроса. */
|
|
4289
|
-
search(query, params = {}, options = {}) {
|
|
4290
|
-
return this.http.execute(USERS_SEARCH, {
|
|
4291
|
-
path: "/api/users/search",
|
|
4292
|
-
query: {
|
|
4293
|
-
q: query,
|
|
4294
|
-
limit: params.limit
|
|
4295
|
-
},
|
|
4296
|
-
...options
|
|
4297
|
-
});
|
|
4298
|
-
}
|
|
4299
4271
|
/** Загружает рекомендации, на кого подписаться. */
|
|
4300
4272
|
whoToFollow(options = {}) {
|
|
4301
4273
|
return this.http.execute(USERS_WHO_TO_FOLLOW, {
|
|
@@ -5286,4 +5258,4 @@ Object.defineProperty(exports, "utcStampToIso", {
|
|
|
5286
5258
|
}
|
|
5287
5259
|
});
|
|
5288
5260
|
|
|
5289
|
-
//# sourceMappingURL=render-
|
|
5261
|
+
//# sourceMappingURL=render-BimHjOhw.cjs.map
|