itd-api 0.9.0 → 0.9.1

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.
Files changed (34) hide show
  1. package/README.md +4 -4
  2. package/dist/events/index.cjs +2 -2
  3. package/dist/events/index.d.cts +2 -2
  4. package/dist/events/index.d.ts +2 -2
  5. package/dist/events/index.js +2 -2
  6. package/dist/index.cjs +3 -3
  7. package/dist/index.d.cts +4 -4
  8. package/dist/index.d.ts +4 -4
  9. package/dist/index.js +3 -3
  10. package/dist/rest/index.cjs +2 -2
  11. package/dist/rest/index.d.cts +3 -3
  12. package/dist/rest/index.d.ts +3 -3
  13. package/dist/rest/index.js +2 -2
  14. package/dist/shared/{events-CqtkP65d.d.ts → events-BDdJyH2p.d.ts} +2 -2
  15. package/dist/shared/{events-DGAWlCaI.d.cts → events-BQyH5-S0.d.cts} +2 -2
  16. package/dist/shared/{events-FZfnEez0.cjs → events-BqFkwwTw.cjs} +2 -2
  17. package/dist/shared/{events-FZfnEez0.cjs.map → events-BqFkwwTw.cjs.map} +1 -1
  18. package/dist/shared/{events-C5wnTXPT.js → events-D6y0Hxyz.js} +2 -2
  19. package/dist/shared/{events-C5wnTXPT.js.map → events-D6y0Hxyz.js.map} +1 -1
  20. package/dist/shared/{render-DDwy2Ame.d.cts → render-BU1_wex8.d.cts} +33 -12
  21. package/dist/shared/{render-B4qis7Sb.d.ts → render-CZ_-F2Tl.d.ts} +33 -12
  22. package/dist/shared/{render-Dqi8Owqk.cjs → render-DAEeCMk9.cjs} +6 -6
  23. package/dist/shared/render-DAEeCMk9.cjs.map +1 -0
  24. package/dist/shared/{render-hiWFh2s4.js → render-sb1VJhUA.js} +6 -6
  25. package/dist/shared/render-sb1VJhUA.js.map +1 -0
  26. package/dist/shared/{url-XBsMdAcv.d.ts → url-CZZcyPI0.d.cts} +19 -5
  27. package/dist/shared/{url-XBsMdAcv.d.cts → url-CZZcyPI0.d.ts} +19 -5
  28. package/dist/shared/{url-Bsb3xE5U.cjs → url-CzHqE-Fg.cjs} +2 -2
  29. package/dist/shared/{url-Bsb3xE5U.cjs.map → url-CzHqE-Fg.cjs.map} +1 -1
  30. package/dist/shared/{url-DP33mp3s.js → url-Dsr4c5r5.js} +2 -2
  31. package/dist/shared/{url-DP33mp3s.js.map → url-Dsr4c5r5.js.map} +1 -1
  32. package/package.json +1 -1
  33. package/dist/shared/render-Dqi8Owqk.cjs.map +0 -1
  34. package/dist/shared/render-hiWFh2s4.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { B as isRecord, C as ReportReason, E as SpanType, G as pickString, H as pickBoolean, J as identityResult, K as RetrySafety, M as defineBuiltInOperation, U as pickNumber, V as pickArray, W as pickObject, X as mergeService, Y as voidResult, c as normalizeNotification, ct as createDeadline, nt as STATUS_SERVICE, o as passthroughOperation, q as defineOperation, s as voidOperation, tt as DEFAULT_STATUS_BASE_URL, w as ReportTargetType, y as InteractionType } from "./url-DP33mp3s.js";
1
+ import { B as isRecord, C as ReportReason, E as SpanType, G as pickString, H as pickBoolean, J as identityResult, K as RetrySafety, M as defineBuiltInOperation, U as pickNumber, V as pickArray, W as pickObject, X as mergeService, Y as voidResult, c as normalizeNotification, ct as createDeadline, nt as STATUS_SERVICE, o as passthroughOperation, q as defineOperation, s as voidOperation, tt as DEFAULT_STATUS_BASE_URL, w as ReportTargetType, y as InteractionType } from "./url-Dsr4c5r5.js";
2
2
  import { _ as ItdStateError, a as ItdConfigError, b as isItdApiError, l as ItdFileError, s as ItdError, t as ItdAbortError, u as ItdFileErrorReason } from "./errors-GI10kZxk.js";
3
3
  import { a as redactUrl, b as isFile, d as encodePathSegment, r as redactErrorCause, v as createDeviceId, y as isBlob } from "./redact-Ba5iSVYZ.js";
4
4
  import { a as fileTooLarge, c as FileTransferMode, i as isReadableByteStream, n as boundedFileStream, o as optionalBytes, r as isBoundedFileStream, s as DEFAULT_URL_FILE_MAX_BYTES, t as resolveFileStreamOptions } from "./options-DhgGg7Ms.js";
@@ -1461,7 +1461,7 @@ function resolveComment(input, allowReplyTo = false) {
1461
1461
  const COMMENTS_REPLIES = pageOperation("comments.replies", (body) => readPagedPage(body, "replies"));
1462
1462
  const COMMENTS_REPLY = passthroughOperation("comments.reply");
1463
1463
  const COMMENTS_UPDATE = passthroughOperation("comments.update");
1464
- const COMMENTS_RESTORE = passthroughOperation("comments.restore");
1464
+ const COMMENTS_RESTORE = voidOperation("comments.restore");
1465
1465
  const COMMENTS_LIKE = passthroughOperation("comments.like");
1466
1466
  const COMMENTS_UNLIKE = passthroughOperation("comments.unlike");
1467
1467
  const COMMENTS_REMOVE = voidOperation("comments.remove");
@@ -1544,7 +1544,7 @@ var CommentsResource = class extends BaseResource {
1544
1544
  }
1545
1545
  /** Восстанавливает удалённый комментарий. */
1546
1546
  restore(commentId, options = {}) {
1547
- return this.http.execute(COMMENTS_RESTORE, {
1547
+ return this.voidOperation(COMMENTS_RESTORE, {
1548
1548
  path: `/api/comments/${encodePathSegment(commentId, "commentId")}/restore`,
1549
1549
  ...options
1550
1550
  });
@@ -3056,7 +3056,7 @@ const POSTS_STATS = defineBuiltInOperation("posts.stats", (body) => pickArray(bo
3056
3056
  const POSTS_CREATE = passthroughOperation("posts.create");
3057
3057
  const POSTS_GET = passthroughOperation("posts.get");
3058
3058
  const POSTS_UPDATE = passthroughOperation("posts.update");
3059
- const POSTS_RESTORE = passthroughOperation("posts.restore");
3059
+ const POSTS_RESTORE = voidOperation("posts.restore");
3060
3060
  const POSTS_LIKE = passthroughOperation("posts.like");
3061
3061
  const POSTS_UNLIKE = passthroughOperation("posts.unlike");
3062
3062
  const POSTS_REPOST = passthroughOperation("posts.repost");
@@ -3213,7 +3213,7 @@ var PostsResource = class extends BaseResource {
3213
3213
  }
3214
3214
  /** Восстанавливает удалённый пост. */
3215
3215
  restore(postId, options = {}) {
3216
- return this.http.execute(POSTS_RESTORE, {
3216
+ return this.voidOperation(POSTS_RESTORE, {
3217
3217
  path: `/api/posts/${encodePathSegment(postId, "postId")}/restore`,
3218
3218
  ...options
3219
3219
  });
@@ -5034,4 +5034,4 @@ function renderSpans(content, spans = [], options = {}) {
5034
5034
  //#endregion
5035
5035
  export { toDate as A, ALLOWED_MIME_TYPES as C, comment as D, VIDEO_MIME_TYPES as E, Paginator as F, mapPage as I, createFeatureHost as L, NotificationsResource as M, BaseResource as N, isBuilder as O, PaginationMode as P, ExtensibleOperationCatalog as R, parseMarkdown as S, IMAGE_MIME_TYPES as T, post as _, createMemoryShopOrderAccessStorage as a, markup as b, ShopConsentKind as c, ShopProductStatus as d, isMyProfile as f, report as g, createResources as h, MemoryShopOrderAccessStorage as i, utcStampToIso as j, createStatusFeature as k, ShopOrderStatus as l, fromUrl as m, renderSpans as n, createShopOrderAccessStorage as o, fromStream as p, createShopFeature as r, statusDays as s, SpanRenderFormat as t, ShopProductCategory as u, poll as v, AUDIO_MIME_TYPES as w, parseHtml as x, autoSpans as y };
5036
5036
 
5037
- //# sourceMappingURL=render-hiWFh2s4.js.map
5037
+ //# sourceMappingURL=render-sb1VJhUA.js.map