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.
- package/README.md +4 -4
- 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 +3 -3
- package/dist/index.d.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +3 -3
- package/dist/rest/index.cjs +2 -2
- package/dist/rest/index.d.cts +3 -3
- package/dist/rest/index.d.ts +3 -3
- package/dist/rest/index.js +2 -2
- package/dist/shared/{events-CqtkP65d.d.ts → events-BDdJyH2p.d.ts} +2 -2
- package/dist/shared/{events-DGAWlCaI.d.cts → events-BQyH5-S0.d.cts} +2 -2
- package/dist/shared/{events-FZfnEez0.cjs → events-BqFkwwTw.cjs} +2 -2
- package/dist/shared/{events-FZfnEez0.cjs.map → events-BqFkwwTw.cjs.map} +1 -1
- package/dist/shared/{events-C5wnTXPT.js → events-D6y0Hxyz.js} +2 -2
- package/dist/shared/{events-C5wnTXPT.js.map → events-D6y0Hxyz.js.map} +1 -1
- package/dist/shared/{render-DDwy2Ame.d.cts → render-BU1_wex8.d.cts} +33 -12
- package/dist/shared/{render-B4qis7Sb.d.ts → render-CZ_-F2Tl.d.ts} +33 -12
- package/dist/shared/{render-Dqi8Owqk.cjs → render-DAEeCMk9.cjs} +6 -6
- package/dist/shared/render-DAEeCMk9.cjs.map +1 -0
- package/dist/shared/{render-hiWFh2s4.js → render-sb1VJhUA.js} +6 -6
- package/dist/shared/render-sb1VJhUA.js.map +1 -0
- package/dist/shared/{url-XBsMdAcv.d.ts → url-CZZcyPI0.d.cts} +19 -5
- package/dist/shared/{url-XBsMdAcv.d.cts → url-CZZcyPI0.d.ts} +19 -5
- package/dist/shared/{url-Bsb3xE5U.cjs → url-CzHqE-Fg.cjs} +2 -2
- package/dist/shared/{url-Bsb3xE5U.cjs.map → url-CzHqE-Fg.cjs.map} +1 -1
- package/dist/shared/{url-DP33mp3s.js → url-Dsr4c5r5.js} +2 -2
- package/dist/shared/{url-DP33mp3s.js.map → url-Dsr4c5r5.js.map} +1 -1
- package/package.json +1 -1
- package/dist/shared/render-Dqi8Owqk.cjs.map +0 -1
- package/dist/shared/render-hiWFh2s4.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as RequestOptions, Ct as PaginationOptions, Dt as RawRequestOptions, It as QueryParams, Rt as ServiceDefinition, St as OperationRequestOptions, Tt as RateLimitBucketOverride, Ut as BuiltInOperationId, Vt as ItdClock, _ as PrivacySettings, _n as ReportTargetType, _t as OperationMethod, bn as ViewReason, c as NotificationSettings, dn as InteractionType, f as Author, g as PinsResult, gn as ReportReason, gt as OperationMetadata, ht as OperationContract, in as UserRef, ln as FeedTab, lt as Unsubscribe, m as MyProfile, mn as Loose, mt as OperationAnnotations, nn as Span, nt as AuthIdentity, on as AttachmentType, p as FollowResult, qt as OperationId, rn as UserId, s as Notification, sn as CommentSort, tn as IsoDate, tt as ClientConnection, un as IncidentKind, v as Profile, vn as ServiceState, vt as RetrySafety, x as UserSummary, xn as ViewSource, xt as Logger, y as PublicProfile } from "./url-CZZcyPI0.cjs";
|
|
2
2
|
import { c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions } from "./contracts-BoT7msmq.cjs";
|
|
3
3
|
import { r as KeyValueStore } from "./key-value-store-COZaNHZS.cjs";
|
|
4
4
|
//#region src/core/plugins/contracts.d.ts
|
|
@@ -949,7 +949,8 @@ interface Attachment {
|
|
|
949
949
|
width?: number;
|
|
950
950
|
/** Высота изображения или видео в пикселях. */
|
|
951
951
|
height?: number;
|
|
952
|
-
|
|
952
|
+
/** MIME-тип. Может отсутствовать в `GET /api/posts/{id}`. */
|
|
953
|
+
mimeType?: string;
|
|
953
954
|
/** Исходное имя файла. Приходит не всегда. */
|
|
954
955
|
filename?: string;
|
|
955
956
|
/** Размер в байтах. Приходит не всегда. */
|
|
@@ -1005,7 +1006,7 @@ interface Post {
|
|
|
1005
1006
|
/** Делали ли вы репост. */
|
|
1006
1007
|
isReposted: boolean;
|
|
1007
1008
|
/** Засчитан ли просмотр. */
|
|
1008
|
-
isViewed
|
|
1009
|
+
isViewed?: boolean;
|
|
1009
1010
|
/** Ваш ли это пост. */
|
|
1010
1011
|
isOwner: boolean;
|
|
1011
1012
|
/** Исходный пост, если это репост. */
|
|
@@ -1014,7 +1015,7 @@ interface Post {
|
|
|
1014
1015
|
/** Преобладающая реакция — эмодзи либо `null`. */
|
|
1015
1016
|
dominantEmoji?: string | null;
|
|
1016
1017
|
/** Когда пост отредактировали. `null`, если не редактировали. */
|
|
1017
|
-
editedAt
|
|
1018
|
+
editedAt?: IsoDate | null;
|
|
1018
1019
|
createdAt: IsoDate;
|
|
1019
1020
|
/**
|
|
1020
1021
|
* Служебная метка показа для телеметрии.
|
|
@@ -1050,7 +1051,8 @@ interface Comment {
|
|
|
1050
1051
|
spans?: Span[];
|
|
1051
1052
|
author: Author;
|
|
1052
1053
|
likesCount: number;
|
|
1053
|
-
|
|
1054
|
+
/** Может отсутствовать у ответа, созданного через `comments.reply()`. */
|
|
1055
|
+
repliesCount?: number;
|
|
1054
1056
|
isLiked: boolean;
|
|
1055
1057
|
createdAt: IsoDate;
|
|
1056
1058
|
/** Вложения. У голосового — одно аудио с `mimeType: 'audio/ogg'`. */
|
|
@@ -1058,7 +1060,20 @@ interface Comment {
|
|
|
1058
1060
|
/** Вложенные ответы. В списках приходит превью, полный список — через `itd.comments.replies()`. */
|
|
1059
1061
|
replies?: Comment[];
|
|
1060
1062
|
/** Заполнено только у ответов. */
|
|
1061
|
-
replyTo?: CommentReplyTo;
|
|
1063
|
+
replyTo?: CommentReplyTo | null;
|
|
1064
|
+
}
|
|
1065
|
+
/** Компактный ответ редактирования поста. */
|
|
1066
|
+
interface PostUpdateResult {
|
|
1067
|
+
id: string;
|
|
1068
|
+
content: string;
|
|
1069
|
+
spans: Span[];
|
|
1070
|
+
updatedAt: IsoDate;
|
|
1071
|
+
}
|
|
1072
|
+
/** Компактный ответ редактирования комментария. */
|
|
1073
|
+
interface CommentUpdateResult {
|
|
1074
|
+
id: string;
|
|
1075
|
+
content: string;
|
|
1076
|
+
editedAt: IsoDate;
|
|
1062
1077
|
}
|
|
1063
1078
|
/** Хэштег. */
|
|
1064
1079
|
interface Hashtag {
|
|
@@ -1125,11 +1140,11 @@ declare class CommentsResource extends BaseResource {
|
|
|
1125
1140
|
*/
|
|
1126
1141
|
reply(commentId: string, input: CommentInput | string, options?: RequestOptions): Promise<Comment>;
|
|
1127
1142
|
/** Редактирует текст комментария. */
|
|
1128
|
-
update(commentId: string, content: string, options?: RequestOptions): Promise<
|
|
1143
|
+
update(commentId: string, content: string, options?: RequestOptions): Promise<CommentUpdateResult>;
|
|
1129
1144
|
/** Удаляет комментарий. Восстановить его можно через {@link restore}. */
|
|
1130
1145
|
remove(commentId: string, options?: RequestOptions): Promise<void>;
|
|
1131
1146
|
/** Восстанавливает удалённый комментарий. */
|
|
1132
|
-
restore(commentId: string, options?: RequestOptions): Promise<
|
|
1147
|
+
restore(commentId: string, options?: RequestOptions): Promise<void>;
|
|
1133
1148
|
/** Ставит реакцию на комментарий. */
|
|
1134
1149
|
like(commentId: string, options?: RequestOptions): Promise<LikeResult>;
|
|
1135
1150
|
/** Убирает реакцию с комментария. */
|
|
@@ -1143,6 +1158,12 @@ interface UploadedFile {
|
|
|
1143
1158
|
id: string;
|
|
1144
1159
|
/** Адрес файла на CDN. */
|
|
1145
1160
|
url: string;
|
|
1161
|
+
/** Исходное имя файла, если сервер его вернул. */
|
|
1162
|
+
filename?: string;
|
|
1163
|
+
/** Определённый сервером MIME-тип. */
|
|
1164
|
+
mimeType?: string;
|
|
1165
|
+
/** Размер файла в байтах. */
|
|
1166
|
+
size?: number;
|
|
1146
1167
|
}
|
|
1147
1168
|
/** Настройки загрузки. */
|
|
1148
1169
|
interface UploadOptions {
|
|
@@ -1777,11 +1798,11 @@ declare class PostsResource extends BaseResource {
|
|
|
1777
1798
|
* функцию-настройщик. Поля создания поста, которые update endpoint не поддерживает
|
|
1778
1799
|
* (вложения, опрос и стена), отвергаются до запроса.
|
|
1779
1800
|
*/
|
|
1780
|
-
update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<
|
|
1801
|
+
update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<PostUpdateResult>;
|
|
1781
1802
|
/** Удаляет пост. Восстановить его можно через {@link restore}. */
|
|
1782
1803
|
remove(postId: string, options?: RequestOptions): Promise<void>;
|
|
1783
1804
|
/** Восстанавливает удалённый пост. */
|
|
1784
|
-
restore(postId: string, options?: RequestOptions): Promise<
|
|
1805
|
+
restore(postId: string, options?: RequestOptions): Promise<void>;
|
|
1785
1806
|
/** Ставит реакцию на пост. */
|
|
1786
1807
|
like(postId: string, options?: RequestOptions): Promise<LikeResult>;
|
|
1787
1808
|
/** Убирает реакцию с поста. */
|
|
@@ -2769,5 +2790,5 @@ interface RenderSpansOptions {
|
|
|
2769
2790
|
*/
|
|
2770
2791
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
2771
2792
|
//#endregion
|
|
2772
|
-
export { ShopConsent as $,
|
|
2773
|
-
//# sourceMappingURL=render-
|
|
2793
|
+
export { ShopConsent as $, PageState as $n, autoSpans as $t, UsersResource as A, PollOption as An, ReportInput as At, ViewTracker as B, CreateCommentInput as Bn, post as Bt, VideoMimeType as C, Comment as Cn, ClientPlugin as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, LikeResult as Dn, PluginTeardown as Dr, SearchResult as Dt, VerificationResource as E, Hashtag as En, PluginApi as Er, SearchResource as Et, TelemetryBatchOptions as F, CommentInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, PaymentMethod as Gn, parseHtml as Gt, ViewTrackerOptions as H, CreatePostData as Hn, PollInput as Ht, TelemetryClock as I, comment as In, CreatePostInput as It, ShopOrderRequestOptions as J, NotificationListParams as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, Session as Kn, parseMarkdown as Kt, TelemetryOptions as L, BuilderInput as Ln, PostBuilder as Lt, InteractionEntry as M, PostStats as Mn, CommentsParams as Mt, PhotoOpenInput as N, PostUpdateResult as Nn, FeedParams as Nt, UpdateProfileInput as O, PinPostResult as On, ReportsResource as Ot, TelemetryBatch as P, CommentBuilder as Pn, PostsResource as Pt, CreateShopOrderInput as Q, Page as Qn, TextMarkup as Qt, TelemetryResource as R, ItdBuilder as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, AttemptNext as Sr, ShopProductStatus as St, fromUrl as T, CommentUpdateResult as Tn, OperationTransformer as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, CreateReportInput as Un, poll as Ut, ViewTrackerInput as V, CreatePollInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, UpdatePostInput as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, UpdateNotificationSettingsInput as Xn, MarkupInput as Xt, ShopOrdersResource as Y, NotificationsResource as Yn, MarkupContent as Yt, ShopResource as Z, BaseResource as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, ResolveFileOptions as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, ClientFeature as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptExtensions as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureInstallation as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, ManagedClientResource as dr, ShopOrderDelivery as dt, markup as en, PaginationMode as er, ShopConsentContext as et, statusDays as f, Portal as fn, FileResolver as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, ResolveFileContext as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, PreparedStreamSource as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, RateLimitBucketState as ir, ShopDeliveryCity as it, DwellEntry as j, Post as jn, report as jt, UserListParams as k, Poll as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, FeatureOperationDefinition as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, PreparedFileSource as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, PaginatorOptions as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureBucketDefinition as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedBufferSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, Subscription as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, mapPage as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureContext as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, Paginator as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FeatureRequestOptions as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, HttpClient as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, OperationExtensions as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, AttemptInterceptor as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptContext as yr, ShopProductCategory as yt, VideoProgressInput as z, isBuilder as zn, PostUpdateInput as zt };
|
|
2794
|
+
//# sourceMappingURL=render-BU1_wex8.d.cts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { At as RequestOptions, Ct as PaginationOptions, Dt as RawRequestOptions, It as QueryParams, Rt as ServiceDefinition, St as OperationRequestOptions, Tt as RateLimitBucketOverride, Ut as BuiltInOperationId, Vt as ItdClock, _ as PrivacySettings, _n as ReportTargetType, _t as OperationMethod, bn as ViewReason, c as NotificationSettings, dn as InteractionType, f as Author, g as PinsResult, gn as ReportReason, gt as OperationMetadata, ht as OperationContract, in as UserRef, ln as FeedTab, lt as Unsubscribe, m as MyProfile, mn as Loose, mt as OperationAnnotations, nn as Span, nt as AuthIdentity, on as AttachmentType, p as FollowResult, qt as OperationId, rn as UserId, s as Notification, sn as CommentSort, tn as IsoDate, tt as ClientConnection, un as IncidentKind, v as Profile, vn as ServiceState, vt as RetrySafety, x as UserSummary, xn as ViewSource, xt as Logger, y as PublicProfile } from "./url-CZZcyPI0.js";
|
|
2
2
|
import { c as LazyFile, d as UrlFileOptions, i as FileStreamContent, l as StreamFile, n as FileContext, o as FileTransferMode, r as FileInput, s as FromStreamOptions } from "./contracts-BoT7msmq.js";
|
|
3
3
|
import { r as KeyValueStore } from "./key-value-store-COZaNHZS.js";
|
|
4
4
|
//#region src/core/plugins/contracts.d.ts
|
|
@@ -949,7 +949,8 @@ interface Attachment {
|
|
|
949
949
|
width?: number;
|
|
950
950
|
/** Высота изображения или видео в пикселях. */
|
|
951
951
|
height?: number;
|
|
952
|
-
|
|
952
|
+
/** MIME-тип. Может отсутствовать в `GET /api/posts/{id}`. */
|
|
953
|
+
mimeType?: string;
|
|
953
954
|
/** Исходное имя файла. Приходит не всегда. */
|
|
954
955
|
filename?: string;
|
|
955
956
|
/** Размер в байтах. Приходит не всегда. */
|
|
@@ -1005,7 +1006,7 @@ interface Post {
|
|
|
1005
1006
|
/** Делали ли вы репост. */
|
|
1006
1007
|
isReposted: boolean;
|
|
1007
1008
|
/** Засчитан ли просмотр. */
|
|
1008
|
-
isViewed
|
|
1009
|
+
isViewed?: boolean;
|
|
1009
1010
|
/** Ваш ли это пост. */
|
|
1010
1011
|
isOwner: boolean;
|
|
1011
1012
|
/** Исходный пост, если это репост. */
|
|
@@ -1014,7 +1015,7 @@ interface Post {
|
|
|
1014
1015
|
/** Преобладающая реакция — эмодзи либо `null`. */
|
|
1015
1016
|
dominantEmoji?: string | null;
|
|
1016
1017
|
/** Когда пост отредактировали. `null`, если не редактировали. */
|
|
1017
|
-
editedAt
|
|
1018
|
+
editedAt?: IsoDate | null;
|
|
1018
1019
|
createdAt: IsoDate;
|
|
1019
1020
|
/**
|
|
1020
1021
|
* Служебная метка показа для телеметрии.
|
|
@@ -1050,7 +1051,8 @@ interface Comment {
|
|
|
1050
1051
|
spans?: Span[];
|
|
1051
1052
|
author: Author;
|
|
1052
1053
|
likesCount: number;
|
|
1053
|
-
|
|
1054
|
+
/** Может отсутствовать у ответа, созданного через `comments.reply()`. */
|
|
1055
|
+
repliesCount?: number;
|
|
1054
1056
|
isLiked: boolean;
|
|
1055
1057
|
createdAt: IsoDate;
|
|
1056
1058
|
/** Вложения. У голосового — одно аудио с `mimeType: 'audio/ogg'`. */
|
|
@@ -1058,7 +1060,20 @@ interface Comment {
|
|
|
1058
1060
|
/** Вложенные ответы. В списках приходит превью, полный список — через `itd.comments.replies()`. */
|
|
1059
1061
|
replies?: Comment[];
|
|
1060
1062
|
/** Заполнено только у ответов. */
|
|
1061
|
-
replyTo?: CommentReplyTo;
|
|
1063
|
+
replyTo?: CommentReplyTo | null;
|
|
1064
|
+
}
|
|
1065
|
+
/** Компактный ответ редактирования поста. */
|
|
1066
|
+
interface PostUpdateResult {
|
|
1067
|
+
id: string;
|
|
1068
|
+
content: string;
|
|
1069
|
+
spans: Span[];
|
|
1070
|
+
updatedAt: IsoDate;
|
|
1071
|
+
}
|
|
1072
|
+
/** Компактный ответ редактирования комментария. */
|
|
1073
|
+
interface CommentUpdateResult {
|
|
1074
|
+
id: string;
|
|
1075
|
+
content: string;
|
|
1076
|
+
editedAt: IsoDate;
|
|
1062
1077
|
}
|
|
1063
1078
|
/** Хэштег. */
|
|
1064
1079
|
interface Hashtag {
|
|
@@ -1125,11 +1140,11 @@ declare class CommentsResource extends BaseResource {
|
|
|
1125
1140
|
*/
|
|
1126
1141
|
reply(commentId: string, input: CommentInput | string, options?: RequestOptions): Promise<Comment>;
|
|
1127
1142
|
/** Редактирует текст комментария. */
|
|
1128
|
-
update(commentId: string, content: string, options?: RequestOptions): Promise<
|
|
1143
|
+
update(commentId: string, content: string, options?: RequestOptions): Promise<CommentUpdateResult>;
|
|
1129
1144
|
/** Удаляет комментарий. Восстановить его можно через {@link restore}. */
|
|
1130
1145
|
remove(commentId: string, options?: RequestOptions): Promise<void>;
|
|
1131
1146
|
/** Восстанавливает удалённый комментарий. */
|
|
1132
|
-
restore(commentId: string, options?: RequestOptions): Promise<
|
|
1147
|
+
restore(commentId: string, options?: RequestOptions): Promise<void>;
|
|
1133
1148
|
/** Ставит реакцию на комментарий. */
|
|
1134
1149
|
like(commentId: string, options?: RequestOptions): Promise<LikeResult>;
|
|
1135
1150
|
/** Убирает реакцию с комментария. */
|
|
@@ -1143,6 +1158,12 @@ interface UploadedFile {
|
|
|
1143
1158
|
id: string;
|
|
1144
1159
|
/** Адрес файла на CDN. */
|
|
1145
1160
|
url: string;
|
|
1161
|
+
/** Исходное имя файла, если сервер его вернул. */
|
|
1162
|
+
filename?: string;
|
|
1163
|
+
/** Определённый сервером MIME-тип. */
|
|
1164
|
+
mimeType?: string;
|
|
1165
|
+
/** Размер файла в байтах. */
|
|
1166
|
+
size?: number;
|
|
1146
1167
|
}
|
|
1147
1168
|
/** Настройки загрузки. */
|
|
1148
1169
|
interface UploadOptions {
|
|
@@ -1777,11 +1798,11 @@ declare class PostsResource extends BaseResource {
|
|
|
1777
1798
|
* функцию-настройщик. Поля создания поста, которые update endpoint не поддерживает
|
|
1778
1799
|
* (вложения, опрос и стена), отвергаются до запроса.
|
|
1779
1800
|
*/
|
|
1780
|
-
update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<
|
|
1801
|
+
update(postId: string, input: PostUpdateInput, options?: RequestOptions): Promise<PostUpdateResult>;
|
|
1781
1802
|
/** Удаляет пост. Восстановить его можно через {@link restore}. */
|
|
1782
1803
|
remove(postId: string, options?: RequestOptions): Promise<void>;
|
|
1783
1804
|
/** Восстанавливает удалённый пост. */
|
|
1784
|
-
restore(postId: string, options?: RequestOptions): Promise<
|
|
1805
|
+
restore(postId: string, options?: RequestOptions): Promise<void>;
|
|
1785
1806
|
/** Ставит реакцию на пост. */
|
|
1786
1807
|
like(postId: string, options?: RequestOptions): Promise<LikeResult>;
|
|
1787
1808
|
/** Убирает реакцию с поста. */
|
|
@@ -2769,5 +2790,5 @@ interface RenderSpansOptions {
|
|
|
2769
2790
|
*/
|
|
2770
2791
|
declare function renderSpans(content: string, spans?: readonly Span[] | null | undefined, options?: RenderSpansOptions): string;
|
|
2771
2792
|
//#endregion
|
|
2772
|
-
export { ShopConsent as $,
|
|
2773
|
-
//# sourceMappingURL=render-
|
|
2793
|
+
export { ShopConsent as $, PageState as $n, autoSpans as $t, UsersResource as A, PollOption as An, ReportInput as At, ViewTracker as B, CreateCommentInput as Bn, post as Bt, VideoMimeType as C, Comment as Cn, ClientPlugin as Cr, ShopRecipient as Ct, UpdatePrivacyInput as D, LikeResult as Dn, PluginTeardown as Dr, SearchResult as Dt, VerificationResource as E, Hashtag as En, PluginApi as Er, SearchResource as Et, TelemetryBatchOptions as F, CommentInput as Fn, UserPostsParams as Ft, PayShopOrderOptions as G, PaymentMethod as Gn, parseHtml as Gt, ViewTrackerOptions as H, CreatePostData as Hn, PollInput as Ht, TelemetryClock as I, comment as In, CreatePostInput as It, ShopOrderRequestOptions as J, NotificationListParams as Jn, MarkupBuilder as Jt, ShopConsentsResource as K, Session as Kn, parseMarkdown as Kt, TelemetryOptions as L, BuilderInput as Ln, PostBuilder as Lt, InteractionEntry as M, PostStats as Mn, CommentsParams as Mt, PhotoOpenInput as N, PostUpdateResult as Nn, FeedParams as Nt, UpdateProfileInput as O, PinPostResult as On, ReportsResource as Ot, TelemetryBatch as P, CommentBuilder as Pn, PostsResource as Pt, CreateShopOrderInput as Q, Page as Qn, TextMarkup as Qt, TelemetryResource as R, ItdBuilder as Rn, PostInput as Rt, VIDEO_MIME_TYPES as S, Attachment as Sn, AttemptNext as Sr, ShopProductStatus as St, fromUrl as T, CommentUpdateResult as Tn, OperationTransformer as Tr, ShopSizeChartRow as Tt, SubscriptionResource as U, CreateReportInput as Un, poll as Ut, ViewTrackerInput as V, CreatePollInput as Vn, PollBuilder as Vt, CreateShopOrderOptions as W, UpdatePostInput as Wn, ParseMarkupOptions as Wt, ShopProductsResource as X, UpdateNotificationSettingsInput as Xn, MarkupInput as Xt, ShopOrdersResource as Y, NotificationsResource as Yn, MarkupContent as Yt, ShopResource as Z, BaseResource as Zn, MarkupSpan as Zt, AUDIO_MIME_TYPES as _, FilesResource as _n, ResolveFileOptions as _r, ShopPayment as _t, ShopFeatureOptions as a, ServiceStatus as an, ClientFeature as ar, ShopDeliveryCountry as at, IMAGE_MIME_TYPES as b, CommentsResource as bn, AttemptExtensions as br, ShopProductColor as bt, ShopOrderAccessStorage as c, Announcement as cn, FeatureInstallation as cr, ShopOrder as ct, createShopOrderAccessStorage as d, Clan as dn, ManagedClientResource as dr, ShopOrderDelivery as dt, markup as en, PaginationMode as er, ShopConsentContext as et, statusDays as f, Portal as fn, FileResolver as fr, ShopOrderItem as ft, ALLOWED_MIME_TYPES as g, HashtagsResource as gn, ResolveFileContext as gr, ShopOrderSupport as gt, utcStampToIso as h, HashtagPostsParams as hn, PreparedStreamSource as hr, ShopOrderSummary as ht, ShopFeatureApi as i, PlatformStatus as in, RateLimitBucketState as ir, ShopDeliveryCity as it, DwellEntry as j, Post as jn, report as jt, UserListParams as k, Poll as kn, ReportBuilder as kt, ShopOrderAccessStorageAdapterOptions as l, AnnouncementButton as ln, FeatureOperationDefinition as lr, ShopOrderAccessSession as lt, toDate as m, VerificationStatus as mn, PreparedFileSource as mr, ShopOrderStatus as mt, SpanRenderFormat as n, PlatformResource as nn, PaginatorOptions as nr, ShopCreatedOrder as nt, createShopFeature as o, StatusDay as on, FeatureBucketDefinition as or, ShopDeliveryDestination as ot, isMyProfile as p, Report as pn, PreparedBufferSource as pr, ShopOrderItemInput as pt, ShopDeliveryResource as q, Subscription as qn, AutoSpansOptions as qt, renderSpans as r, PlatformVersions as rn, mapPage as rr, ShopDeliveryCalculation as rt, MemoryShopOrderAccessStorage as s, StatusIncidentLine as sn, FeatureContext as sr, ShopDeliveryPoint as st, RenderSpansOptions as t, PlatformClientVersion as tn, Paginator as tr, ShopConsentKind as tt, createMemoryShopOrderAccessStorage as u, ChangelogEntry as un, FeatureRequestOptions as ur, ShopOrderAccessVerification as ut, AllowedMimeType as v, UploadOptions as vn, HttpClient as vr, ShopProduct as vt, fromStream as w, CommentReplyTo as wn, OperationExtensions as wr, ShopSizeChart as wt, ImageMimeType as x, RepliesParams as xn, AttemptInterceptor as xr, ShopProductSpec as xt, AudioMimeType as y, UploadedFile as yn, AttemptContext as yr, ShopProductCategory as yt, VideoProgressInput as z, isBuilder as zn, PostUpdateInput as zt };
|
|
2794
|
+
//# sourceMappingURL=render-CZ_-F2Tl.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const require_url = require("./url-
|
|
1
|
+
const require_url = require("./url-CzHqE-Fg.cjs");
|
|
2
2
|
const require_errors = require("./errors-BmP3TKoW.cjs");
|
|
3
3
|
const require_redact = require("./redact-BP00URmQ.cjs");
|
|
4
4
|
const require_options = require("./options-DOJYtoti.cjs");
|
|
@@ -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 = require_url.passthroughOperation("comments.reply");
|
|
1463
1463
|
const COMMENTS_UPDATE = require_url.passthroughOperation("comments.update");
|
|
1464
|
-
const COMMENTS_RESTORE = require_url.
|
|
1464
|
+
const COMMENTS_RESTORE = require_url.voidOperation("comments.restore");
|
|
1465
1465
|
const COMMENTS_LIKE = require_url.passthroughOperation("comments.like");
|
|
1466
1466
|
const COMMENTS_UNLIKE = require_url.passthroughOperation("comments.unlike");
|
|
1467
1467
|
const COMMENTS_REMOVE = require_url.voidOperation("comments.remove");
|
|
@@ -1544,7 +1544,7 @@ var CommentsResource = class extends BaseResource {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
/** Восстанавливает удалённый комментарий. */
|
|
1546
1546
|
restore(commentId, options = {}) {
|
|
1547
|
-
return this.
|
|
1547
|
+
return this.voidOperation(COMMENTS_RESTORE, {
|
|
1548
1548
|
path: `/api/comments/${require_redact.encodePathSegment(commentId, "commentId")}/restore`,
|
|
1549
1549
|
...options
|
|
1550
1550
|
});
|
|
@@ -3056,7 +3056,7 @@ const POSTS_STATS = require_url.defineBuiltInOperation("posts.stats", (body) =>
|
|
|
3056
3056
|
const POSTS_CREATE = require_url.passthroughOperation("posts.create");
|
|
3057
3057
|
const POSTS_GET = require_url.passthroughOperation("posts.get");
|
|
3058
3058
|
const POSTS_UPDATE = require_url.passthroughOperation("posts.update");
|
|
3059
|
-
const POSTS_RESTORE = require_url.
|
|
3059
|
+
const POSTS_RESTORE = require_url.voidOperation("posts.restore");
|
|
3060
3060
|
const POSTS_LIKE = require_url.passthroughOperation("posts.like");
|
|
3061
3061
|
const POSTS_UNLIKE = require_url.passthroughOperation("posts.unlike");
|
|
3062
3062
|
const POSTS_REPOST = require_url.passthroughOperation("posts.repost");
|
|
@@ -3213,7 +3213,7 @@ var PostsResource = class extends BaseResource {
|
|
|
3213
3213
|
}
|
|
3214
3214
|
/** Восстанавливает удалённый пост. */
|
|
3215
3215
|
restore(postId, options = {}) {
|
|
3216
|
-
return this.
|
|
3216
|
+
return this.voidOperation(POSTS_RESTORE, {
|
|
3217
3217
|
path: `/api/posts/${require_redact.encodePathSegment(postId, "postId")}/restore`,
|
|
3218
3218
|
...options
|
|
3219
3219
|
});
|
|
@@ -5261,4 +5261,4 @@ Object.defineProperty(exports, "utcStampToIso", {
|
|
|
5261
5261
|
}
|
|
5262
5262
|
});
|
|
5263
5263
|
|
|
5264
|
-
//# sourceMappingURL=render-
|
|
5264
|
+
//# sourceMappingURL=render-DAEeCMk9.cjs.map
|