@foru-ms/sdk 2.1.18 → 2.1.19
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/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/posts/client/Client.d.ts +25 -7
- package/dist/cjs/api/resources/posts/client/Client.js +70 -10
- package/dist/cjs/api/resources/posts/client/requests/{DeletePostPostsRequest.d.ts → DeletePostByIdPostsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/posts/client/requests/DeleteReactionByIdPostsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/posts/client/requests/DeleteReactionPostsRequest.d.ts +1 -4
- package/dist/cjs/api/resources/posts/client/requests/index.d.ts +2 -1
- package/dist/cjs/api/resources/privateMessages/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/privateMessages/client/Client.js +5 -5
- package/dist/{esm/api/resources/privateMessages/client/requests/DeleteReplyPrivateMessagesRequest.d.mts → cjs/api/resources/privateMessages/client/requests/DeleteReplyByIdPrivateMessagesRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/privateMessages/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/tags/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/tags/client/Client.js +5 -5
- package/dist/{esm/api/resources/tags/client/requests/DeleteSubscriberTagsRequest.d.mts → cjs/api/resources/tags/client/requests/DeleteSubscriberByIdTagsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/tags/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/threads/client/Client.d.ts +48 -11
- package/dist/cjs/api/resources/threads/client/Client.js +141 -15
- package/dist/cjs/api/resources/threads/client/requests/CreateSubscriberThreadsRequest.d.ts +12 -0
- package/dist/{esm/api/resources/threads/client/requests/DeletePostThreadsRequest.d.mts → cjs/api/resources/threads/client/requests/DeletePostByIdThreadsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/threads/client/requests/DeleteReactionByIdThreadsRequest.d.ts +13 -0
- package/dist/cjs/api/resources/threads/client/requests/DeleteReactionThreadsRequest.d.ts +1 -4
- package/dist/cjs/api/resources/threads/client/requests/{DeleteSubscriberThreadsRequest.d.ts → DeleteSubscriberByIdThreadsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +4 -2
- package/dist/cjs/api/resources/users/client/Client.d.ts +8 -8
- package/dist/cjs/api/resources/users/client/Client.js +10 -10
- package/dist/{esm/api/resources/users/client/requests/DeleteFollowerUsersRequest.d.mts → cjs/api/resources/users/client/requests/DeleteFollowerByIdUsersRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/users/client/requests/DeleteFollowerByIdUsersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/{DeleteFollowingUsersRequest.d.ts → DeleteFollowingByIdUsersRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/users/client/requests/DeleteFollowingByIdUsersRequest.js +3 -0
- package/dist/cjs/api/resources/users/client/requests/index.d.ts +2 -2
- package/dist/cjs/api/resources/webhooks/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/webhooks/client/Client.js +5 -5
- package/dist/cjs/api/resources/webhooks/client/requests/{DeleteDeliveryWebhooksRequest.d.ts → DeleteDeliveryByIdWebhooksRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/webhooks/client/requests/DeleteDeliveryByIdWebhooksRequest.js +3 -0
- package/dist/cjs/api/resources/webhooks/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/types/ThreadSubscriberCreate.d.ts +4 -0
- package/dist/cjs/api/types/ThreadSubscriberCreate.js +3 -0
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/posts/client/Client.d.mts +25 -7
- package/dist/esm/api/resources/posts/client/Client.mjs +70 -10
- package/dist/esm/api/resources/posts/client/requests/{DeletePostPostsRequest.d.mts → DeletePostByIdPostsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/posts/client/requests/DeleteReactionByIdPostsRequest.d.mts +13 -0
- package/dist/esm/api/resources/posts/client/requests/DeleteReactionPostsRequest.d.mts +1 -4
- package/dist/esm/api/resources/posts/client/requests/index.d.mts +2 -1
- package/dist/esm/api/resources/privateMessages/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/privateMessages/client/Client.mjs +5 -5
- package/dist/{cjs/api/resources/privateMessages/client/requests/DeleteReplyPrivateMessagesRequest.d.ts → esm/api/resources/privateMessages/client/requests/DeleteReplyByIdPrivateMessagesRequest.d.mts} +1 -1
- package/dist/esm/api/resources/privateMessages/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/tags/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/tags/client/Client.mjs +5 -5
- package/dist/{cjs/api/resources/tags/client/requests/DeleteSubscriberTagsRequest.d.ts → esm/api/resources/tags/client/requests/DeleteSubscriberByIdTagsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/tags/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/threads/client/Client.d.mts +48 -11
- package/dist/esm/api/resources/threads/client/Client.mjs +141 -15
- package/dist/esm/api/resources/threads/client/requests/CreateSubscriberThreadsRequest.d.mts +12 -0
- package/dist/{cjs/api/resources/threads/client/requests/DeletePostThreadsRequest.d.ts → esm/api/resources/threads/client/requests/DeletePostByIdThreadsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/threads/client/requests/DeleteReactionByIdThreadsRequest.d.mts +13 -0
- package/dist/esm/api/resources/threads/client/requests/DeleteReactionThreadsRequest.d.mts +1 -4
- package/dist/esm/api/resources/threads/client/requests/{DeleteSubscriberThreadsRequest.d.mts → DeleteSubscriberByIdThreadsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +4 -2
- package/dist/esm/api/resources/users/client/Client.d.mts +8 -8
- package/dist/esm/api/resources/users/client/Client.mjs +10 -10
- package/dist/{cjs/api/resources/users/client/requests/DeleteFollowerUsersRequest.d.ts → esm/api/resources/users/client/requests/DeleteFollowerByIdUsersRequest.d.mts} +1 -1
- package/dist/esm/api/resources/users/client/requests/DeleteFollowerByIdUsersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/{DeleteFollowingUsersRequest.d.mts → DeleteFollowingByIdUsersRequest.d.mts} +1 -1
- package/dist/esm/api/resources/users/client/requests/DeleteFollowingByIdUsersRequest.mjs +2 -0
- package/dist/esm/api/resources/users/client/requests/index.d.mts +2 -2
- package/dist/esm/api/resources/webhooks/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/webhooks/client/Client.mjs +5 -5
- package/dist/esm/api/resources/webhooks/client/requests/{DeleteDeliveryWebhooksRequest.d.mts → DeleteDeliveryByIdWebhooksRequest.d.mts} +1 -1
- package/dist/esm/api/resources/webhooks/client/requests/DeleteDeliveryByIdWebhooksRequest.mjs +2 -0
- package/dist/esm/api/resources/webhooks/client/requests/index.d.mts +1 -1
- package/dist/esm/api/types/ThreadSubscriberCreate.d.mts +4 -0
- package/dist/esm/api/types/ThreadSubscriberCreate.mjs +2 -0
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +225 -30
- /package/dist/cjs/api/resources/posts/client/requests/{DeletePostPostsRequest.js → DeletePostByIdPostsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{privateMessages/client/requests/DeleteReplyPrivateMessagesRequest.js → posts/client/requests/DeleteReactionByIdPostsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{tags/client/requests/DeleteSubscriberTagsRequest.js → privateMessages/client/requests/DeleteReplyByIdPrivateMessagesRequest.js} +0 -0
- /package/dist/cjs/api/resources/{threads/client/requests/DeletePostThreadsRequest.js → tags/client/requests/DeleteSubscriberByIdTagsRequest.js} +0 -0
- /package/dist/cjs/api/resources/threads/client/requests/{DeleteSubscriberThreadsRequest.js → CreateSubscriberThreadsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{users/client/requests/DeleteFollowerUsersRequest.js → threads/client/requests/DeletePostByIdThreadsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{users/client/requests/DeleteFollowingUsersRequest.js → threads/client/requests/DeleteReactionByIdThreadsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{webhooks/client/requests/DeleteDeliveryWebhooksRequest.js → threads/client/requests/DeleteSubscriberByIdThreadsRequest.js} +0 -0
- /package/dist/esm/api/resources/posts/client/requests/{DeletePostPostsRequest.mjs → DeletePostByIdPostsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{privateMessages/client/requests/DeleteReplyPrivateMessagesRequest.mjs → posts/client/requests/DeleteReactionByIdPostsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{tags/client/requests/DeleteSubscriberTagsRequest.mjs → privateMessages/client/requests/DeleteReplyByIdPrivateMessagesRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{threads/client/requests/DeletePostThreadsRequest.mjs → tags/client/requests/DeleteSubscriberByIdTagsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/threads/client/requests/{DeleteSubscriberThreadsRequest.mjs → CreateSubscriberThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{users/client/requests/DeleteFollowerUsersRequest.mjs → threads/client/requests/DeletePostByIdThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{users/client/requests/DeleteFollowingUsersRequest.mjs → threads/client/requests/DeleteReactionByIdThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{webhooks/client/requests/DeleteDeliveryWebhooksRequest.mjs → threads/client/requests/DeleteSubscriberByIdThreadsRequest.mjs} +0 -0
|
@@ -146,6 +146,8 @@ export declare class PostsClient {
|
|
|
146
146
|
createReaction(request: Forum.CreateReactionPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.PostReactionResponse>;
|
|
147
147
|
private __createReaction;
|
|
148
148
|
/**
|
|
149
|
+
* Removes the authenticated user's reaction. No subId needed.
|
|
150
|
+
*
|
|
149
151
|
* @param {Forum.DeleteReactionPostsRequest} request
|
|
150
152
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
151
153
|
*
|
|
@@ -156,11 +158,10 @@ export declare class PostsClient {
|
|
|
156
158
|
*
|
|
157
159
|
* @example
|
|
158
160
|
* await client.posts.deleteReaction({
|
|
159
|
-
* id: "id"
|
|
160
|
-
* subId: "subId"
|
|
161
|
+
* id: "id"
|
|
161
162
|
* })
|
|
162
163
|
*/
|
|
163
|
-
deleteReaction(request: Forum.DeleteReactionPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.
|
|
164
|
+
deleteReaction(request: Forum.DeleteReactionPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.DeleteReactionPostsResponse>;
|
|
164
165
|
private __deleteReaction;
|
|
165
166
|
/**
|
|
166
167
|
* @param {Forum.RetrieveReactionPostsRequest} request
|
|
@@ -179,6 +180,23 @@ export declare class PostsClient {
|
|
|
179
180
|
*/
|
|
180
181
|
retrieveReaction(request: Forum.RetrieveReactionPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.RetrieveReactionPostsResponse>;
|
|
181
182
|
private __retrieveReaction;
|
|
183
|
+
/**
|
|
184
|
+
* @param {Forum.DeleteReactionByIdPostsRequest} request
|
|
185
|
+
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
186
|
+
*
|
|
187
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
188
|
+
* @throws {@link Forum.NotFoundError}
|
|
189
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
190
|
+
* @throws {@link Forum.InternalServerError}
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* await client.posts.deleteReactionById({
|
|
194
|
+
* id: "id",
|
|
195
|
+
* subId: "subId"
|
|
196
|
+
* })
|
|
197
|
+
*/
|
|
198
|
+
deleteReactionById(request: Forum.DeleteReactionByIdPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
199
|
+
private __deleteReactionById;
|
|
182
200
|
/**
|
|
183
201
|
* Retrieve a paginated list of posts for Post.
|
|
184
202
|
*
|
|
@@ -215,7 +233,7 @@ export declare class PostsClient {
|
|
|
215
233
|
retrievePost(request: Forum.RetrievePostPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.RetrievePostPostsResponse>;
|
|
216
234
|
private __retrievePost;
|
|
217
235
|
/**
|
|
218
|
-
* @param {Forum.
|
|
236
|
+
* @param {Forum.DeletePostByIdPostsRequest} request
|
|
219
237
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
220
238
|
*
|
|
221
239
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -224,11 +242,11 @@ export declare class PostsClient {
|
|
|
224
242
|
* @throws {@link Forum.InternalServerError}
|
|
225
243
|
*
|
|
226
244
|
* @example
|
|
227
|
-
* await client.posts.
|
|
245
|
+
* await client.posts.deletePostById({
|
|
228
246
|
* id: "id",
|
|
229
247
|
* subId: "subId"
|
|
230
248
|
* })
|
|
231
249
|
*/
|
|
232
|
-
|
|
233
|
-
private
|
|
250
|
+
deletePostById(request: Forum.DeletePostByIdPostsRequest, requestOptions?: PostsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
251
|
+
private __deletePostById;
|
|
234
252
|
}
|
|
@@ -494,6 +494,8 @@ export class PostsClient {
|
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
496
|
/**
|
|
497
|
+
* Removes the authenticated user's reaction. No subId needed.
|
|
498
|
+
*
|
|
497
499
|
* @param {Forum.DeleteReactionPostsRequest} request
|
|
498
500
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
499
501
|
*
|
|
@@ -504,8 +506,7 @@ export class PostsClient {
|
|
|
504
506
|
*
|
|
505
507
|
* @example
|
|
506
508
|
* await client.posts.deleteReaction({
|
|
507
|
-
* id: "id"
|
|
508
|
-
* subId: "subId"
|
|
509
|
+
* id: "id"
|
|
509
510
|
* })
|
|
510
511
|
*/
|
|
511
512
|
deleteReaction(request, requestOptions) {
|
|
@@ -514,11 +515,11 @@ export class PostsClient {
|
|
|
514
515
|
__deleteReaction(request, requestOptions) {
|
|
515
516
|
return __awaiter(this, void 0, void 0, function* () {
|
|
516
517
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
517
|
-
const { id
|
|
518
|
+
const { id } = request;
|
|
518
519
|
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
519
520
|
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
520
521
|
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
521
|
-
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions
|
|
522
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions`),
|
|
522
523
|
method: "DELETE",
|
|
523
524
|
headers: _headers,
|
|
524
525
|
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
@@ -549,7 +550,7 @@ export class PostsClient {
|
|
|
549
550
|
});
|
|
550
551
|
}
|
|
551
552
|
}
|
|
552
|
-
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/posts/{id}/reactions
|
|
553
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/posts/{id}/reactions");
|
|
553
554
|
});
|
|
554
555
|
}
|
|
555
556
|
/**
|
|
@@ -611,6 +612,65 @@ export class PostsClient {
|
|
|
611
612
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/posts/{id}/reactions/{subId}");
|
|
612
613
|
});
|
|
613
614
|
}
|
|
615
|
+
/**
|
|
616
|
+
* @param {Forum.DeleteReactionByIdPostsRequest} request
|
|
617
|
+
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
618
|
+
*
|
|
619
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
620
|
+
* @throws {@link Forum.NotFoundError}
|
|
621
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
622
|
+
* @throws {@link Forum.InternalServerError}
|
|
623
|
+
*
|
|
624
|
+
* @example
|
|
625
|
+
* await client.posts.deleteReactionById({
|
|
626
|
+
* id: "id",
|
|
627
|
+
* subId: "subId"
|
|
628
|
+
* })
|
|
629
|
+
*/
|
|
630
|
+
deleteReactionById(request, requestOptions) {
|
|
631
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteReactionById(request, requestOptions));
|
|
632
|
+
}
|
|
633
|
+
__deleteReactionById(request, requestOptions) {
|
|
634
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
635
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
636
|
+
const { id, subId } = request;
|
|
637
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
638
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
639
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
640
|
+
url: core.url.join((_d = (_c = (yield core.Supplier.get(this._options.baseUrl))) !== null && _c !== void 0 ? _c : (yield core.Supplier.get(this._options.environment))) !== null && _d !== void 0 ? _d : environments.ForumEnvironment.Production, `posts/${core.url.encodePathParam(id)}/reactions/${core.url.encodePathParam(subId)}`),
|
|
641
|
+
method: "DELETE",
|
|
642
|
+
headers: _headers,
|
|
643
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
644
|
+
timeoutMs: ((_g = (_e = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _e !== void 0 ? _e : (_f = this._options) === null || _f === void 0 ? void 0 : _f.timeoutInSeconds) !== null && _g !== void 0 ? _g : 60) * 1000,
|
|
645
|
+
maxRetries: (_h = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _h !== void 0 ? _h : (_j = this._options) === null || _j === void 0 ? void 0 : _j.maxRetries,
|
|
646
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
647
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
648
|
+
logging: this._options.logging,
|
|
649
|
+
});
|
|
650
|
+
if (_response.ok) {
|
|
651
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
652
|
+
}
|
|
653
|
+
if (_response.error.reason === "status-code") {
|
|
654
|
+
switch (_response.error.statusCode) {
|
|
655
|
+
case 401:
|
|
656
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
657
|
+
case 404:
|
|
658
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
659
|
+
case 429:
|
|
660
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
661
|
+
case 500:
|
|
662
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
663
|
+
default:
|
|
664
|
+
throw new errors.ForumError({
|
|
665
|
+
statusCode: _response.error.statusCode,
|
|
666
|
+
body: _response.error.body,
|
|
667
|
+
rawResponse: _response.rawResponse,
|
|
668
|
+
});
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/posts/{id}/reactions/{subId}");
|
|
672
|
+
});
|
|
673
|
+
}
|
|
614
674
|
/**
|
|
615
675
|
* Retrieve a paginated list of posts for Post.
|
|
616
676
|
*
|
|
@@ -740,7 +800,7 @@ export class PostsClient {
|
|
|
740
800
|
});
|
|
741
801
|
}
|
|
742
802
|
/**
|
|
743
|
-
* @param {Forum.
|
|
803
|
+
* @param {Forum.DeletePostByIdPostsRequest} request
|
|
744
804
|
* @param {PostsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
745
805
|
*
|
|
746
806
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -749,15 +809,15 @@ export class PostsClient {
|
|
|
749
809
|
* @throws {@link Forum.InternalServerError}
|
|
750
810
|
*
|
|
751
811
|
* @example
|
|
752
|
-
* await client.posts.
|
|
812
|
+
* await client.posts.deletePostById({
|
|
753
813
|
* id: "id",
|
|
754
814
|
* subId: "subId"
|
|
755
815
|
* })
|
|
756
816
|
*/
|
|
757
|
-
|
|
758
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
817
|
+
deletePostById(request, requestOptions) {
|
|
818
|
+
return core.HttpResponsePromise.fromPromise(this.__deletePostById(request, requestOptions));
|
|
759
819
|
}
|
|
760
|
-
|
|
820
|
+
__deletePostById(request, requestOptions) {
|
|
761
821
|
return __awaiter(this, void 0, void 0, function* () {
|
|
762
822
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
763
823
|
const { id, subId } = request;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export type { CreatePostsRequest } from "./CreatePostsRequest.mjs";
|
|
2
2
|
export { CreateReactionPostsRequest } from "./CreateReactionPostsRequest.mjs";
|
|
3
|
-
export type {
|
|
3
|
+
export type { DeletePostByIdPostsRequest } from "./DeletePostByIdPostsRequest.mjs";
|
|
4
4
|
export type { DeletePostsRequest } from "./DeletePostsRequest.mjs";
|
|
5
|
+
export type { DeleteReactionByIdPostsRequest } from "./DeleteReactionByIdPostsRequest.mjs";
|
|
5
6
|
export type { DeleteReactionPostsRequest } from "./DeleteReactionPostsRequest.mjs";
|
|
6
7
|
export type { ListPostsPostsRequest } from "./ListPostsPostsRequest.mjs";
|
|
7
8
|
export type { ListPostsRequest } from "./ListPostsRequest.mjs";
|
|
@@ -164,7 +164,7 @@ export declare class PrivateMessagesClient {
|
|
|
164
164
|
retrieveReply(request: Forum.RetrieveReplyPrivateMessagesRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.RetrieveReplyPrivateMessagesResponse>;
|
|
165
165
|
private __retrieveReply;
|
|
166
166
|
/**
|
|
167
|
-
* @param {Forum.
|
|
167
|
+
* @param {Forum.DeleteReplyByIdPrivateMessagesRequest} request
|
|
168
168
|
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
169
169
|
*
|
|
170
170
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -173,11 +173,11 @@ export declare class PrivateMessagesClient {
|
|
|
173
173
|
* @throws {@link Forum.InternalServerError}
|
|
174
174
|
*
|
|
175
175
|
* @example
|
|
176
|
-
* await client.privateMessages.
|
|
176
|
+
* await client.privateMessages.deleteReplyById({
|
|
177
177
|
* id: "id",
|
|
178
178
|
* subId: "subId"
|
|
179
179
|
* })
|
|
180
180
|
*/
|
|
181
|
-
|
|
182
|
-
private
|
|
181
|
+
deleteReplyById(request: Forum.DeleteReplyByIdPrivateMessagesRequest, requestOptions?: PrivateMessagesClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
182
|
+
private __deleteReplyById;
|
|
183
183
|
}
|
|
@@ -555,7 +555,7 @@ export class PrivateMessagesClient {
|
|
|
555
555
|
});
|
|
556
556
|
}
|
|
557
557
|
/**
|
|
558
|
-
* @param {Forum.
|
|
558
|
+
* @param {Forum.DeleteReplyByIdPrivateMessagesRequest} request
|
|
559
559
|
* @param {PrivateMessagesClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
560
560
|
*
|
|
561
561
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -564,15 +564,15 @@ export class PrivateMessagesClient {
|
|
|
564
564
|
* @throws {@link Forum.InternalServerError}
|
|
565
565
|
*
|
|
566
566
|
* @example
|
|
567
|
-
* await client.privateMessages.
|
|
567
|
+
* await client.privateMessages.deleteReplyById({
|
|
568
568
|
* id: "id",
|
|
569
569
|
* subId: "subId"
|
|
570
570
|
* })
|
|
571
571
|
*/
|
|
572
|
-
|
|
573
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
572
|
+
deleteReplyById(request, requestOptions) {
|
|
573
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteReplyById(request, requestOptions));
|
|
574
574
|
}
|
|
575
|
-
|
|
575
|
+
__deleteReplyById(request, requestOptions) {
|
|
576
576
|
return __awaiter(this, void 0, void 0, function* () {
|
|
577
577
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
578
578
|
const { id, subId } = request;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type { CreatePrivateMessagesRequest } from "./CreatePrivateMessagesRequest.mjs";
|
|
2
2
|
export type { CreateReplyPrivateMessagesRequest } from "./CreateReplyPrivateMessagesRequest.mjs";
|
|
3
3
|
export type { DeletePrivateMessagesRequest } from "./DeletePrivateMessagesRequest.mjs";
|
|
4
|
-
export type {
|
|
4
|
+
export type { DeleteReplyByIdPrivateMessagesRequest } from "./DeleteReplyByIdPrivateMessagesRequest.mjs";
|
|
5
5
|
export type { ListPrivateMessagesRequest } from "./ListPrivateMessagesRequest.mjs";
|
|
6
6
|
export type { ListRepliesPrivateMessagesRequest } from "./ListRepliesPrivateMessagesRequest.mjs";
|
|
7
7
|
export type { RetrievePrivateMessagesRequest } from "./RetrievePrivateMessagesRequest.mjs";
|
|
@@ -179,7 +179,7 @@ export declare class TagsClient {
|
|
|
179
179
|
retrieveSubscriber(request: Forum.RetrieveSubscriberTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Forum.RetrieveSubscriberTagsResponse>;
|
|
180
180
|
private __retrieveSubscriber;
|
|
181
181
|
/**
|
|
182
|
-
* @param {Forum.
|
|
182
|
+
* @param {Forum.DeleteSubscriberByIdTagsRequest} request
|
|
183
183
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
184
184
|
*
|
|
185
185
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -188,11 +188,11 @@ export declare class TagsClient {
|
|
|
188
188
|
* @throws {@link Forum.InternalServerError}
|
|
189
189
|
*
|
|
190
190
|
* @example
|
|
191
|
-
* await client.tags.
|
|
191
|
+
* await client.tags.deleteSubscriberById({
|
|
192
192
|
* id: "id",
|
|
193
193
|
* subId: "subId"
|
|
194
194
|
* })
|
|
195
195
|
*/
|
|
196
|
-
|
|
197
|
-
private
|
|
196
|
+
deleteSubscriberById(request: Forum.DeleteSubscriberByIdTagsRequest, requestOptions?: TagsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
197
|
+
private __deleteSubscriberById;
|
|
198
198
|
}
|
|
@@ -606,7 +606,7 @@ export class TagsClient {
|
|
|
606
606
|
});
|
|
607
607
|
}
|
|
608
608
|
/**
|
|
609
|
-
* @param {Forum.
|
|
609
|
+
* @param {Forum.DeleteSubscriberByIdTagsRequest} request
|
|
610
610
|
* @param {TagsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
611
611
|
*
|
|
612
612
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -615,15 +615,15 @@ export class TagsClient {
|
|
|
615
615
|
* @throws {@link Forum.InternalServerError}
|
|
616
616
|
*
|
|
617
617
|
* @example
|
|
618
|
-
* await client.tags.
|
|
618
|
+
* await client.tags.deleteSubscriberById({
|
|
619
619
|
* id: "id",
|
|
620
620
|
* subId: "subId"
|
|
621
621
|
* })
|
|
622
622
|
*/
|
|
623
|
-
|
|
624
|
-
return core.HttpResponsePromise.fromPromise(this.
|
|
623
|
+
deleteSubscriberById(request, requestOptions) {
|
|
624
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteSubscriberById(request, requestOptions));
|
|
625
625
|
}
|
|
626
|
-
|
|
626
|
+
__deleteSubscriberById(request, requestOptions) {
|
|
627
627
|
return __awaiter(this, void 0, void 0, function* () {
|
|
628
628
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
629
629
|
const { id, subId } = request;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type { CreateSubscriberTagsRequest } from "./CreateSubscriberTagsRequest.mjs";
|
|
2
2
|
export type { CreateTagsRequest } from "./CreateTagsRequest.mjs";
|
|
3
|
-
export type {
|
|
3
|
+
export type { DeleteSubscriberByIdTagsRequest } from "./DeleteSubscriberByIdTagsRequest.mjs";
|
|
4
4
|
export type { DeleteTagsRequest } from "./DeleteTagsRequest.mjs";
|
|
5
5
|
export type { ListSubscribersTagsRequest } from "./ListSubscribersTagsRequest.mjs";
|
|
6
6
|
export type { ListTagsRequest } from "./ListTagsRequest.mjs";
|
|
@@ -143,7 +143,7 @@ export declare class ThreadsClient {
|
|
|
143
143
|
retrievePost(request: Forum.RetrievePostThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.RetrievePostThreadsResponse>;
|
|
144
144
|
private __retrievePost;
|
|
145
145
|
/**
|
|
146
|
-
* @param {Forum.
|
|
146
|
+
* @param {Forum.DeletePostByIdThreadsRequest} request
|
|
147
147
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
148
148
|
*
|
|
149
149
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -152,13 +152,13 @@ export declare class ThreadsClient {
|
|
|
152
152
|
* @throws {@link Forum.InternalServerError}
|
|
153
153
|
*
|
|
154
154
|
* @example
|
|
155
|
-
* await client.threads.
|
|
155
|
+
* await client.threads.deletePostById({
|
|
156
156
|
* id: "id",
|
|
157
157
|
* subId: "subId"
|
|
158
158
|
* })
|
|
159
159
|
*/
|
|
160
|
-
|
|
161
|
-
private
|
|
160
|
+
deletePostById(request: Forum.DeletePostByIdThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
161
|
+
private __deletePostById;
|
|
162
162
|
/**
|
|
163
163
|
* Retrieve a paginated list of reactions for Thread.
|
|
164
164
|
*
|
|
@@ -198,6 +198,8 @@ export declare class ThreadsClient {
|
|
|
198
198
|
createReaction(request: Forum.CreateReactionThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.ThreadReactionResponse>;
|
|
199
199
|
private __createReaction;
|
|
200
200
|
/**
|
|
201
|
+
* Removes the authenticated user's reaction. No subId needed.
|
|
202
|
+
*
|
|
201
203
|
* @param {Forum.DeleteReactionThreadsRequest} request
|
|
202
204
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
203
205
|
*
|
|
@@ -208,11 +210,10 @@ export declare class ThreadsClient {
|
|
|
208
210
|
*
|
|
209
211
|
* @example
|
|
210
212
|
* await client.threads.deleteReaction({
|
|
211
|
-
* id: "id"
|
|
212
|
-
* subId: "subId"
|
|
213
|
+
* id: "id"
|
|
213
214
|
* })
|
|
214
215
|
*/
|
|
215
|
-
deleteReaction(request: Forum.DeleteReactionThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.
|
|
216
|
+
deleteReaction(request: Forum.DeleteReactionThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.DeleteReactionThreadsResponse>;
|
|
216
217
|
private __deleteReaction;
|
|
217
218
|
/**
|
|
218
219
|
* @param {Forum.RetrieveReactionThreadsRequest} request
|
|
@@ -231,6 +232,23 @@ export declare class ThreadsClient {
|
|
|
231
232
|
*/
|
|
232
233
|
retrieveReaction(request: Forum.RetrieveReactionThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.RetrieveReactionThreadsResponse>;
|
|
233
234
|
private __retrieveReaction;
|
|
235
|
+
/**
|
|
236
|
+
* @param {Forum.DeleteReactionByIdThreadsRequest} request
|
|
237
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
238
|
+
*
|
|
239
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
240
|
+
* @throws {@link Forum.NotFoundError}
|
|
241
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
242
|
+
* @throws {@link Forum.InternalServerError}
|
|
243
|
+
*
|
|
244
|
+
* @example
|
|
245
|
+
* await client.threads.deleteReactionById({
|
|
246
|
+
* id: "id",
|
|
247
|
+
* subId: "subId"
|
|
248
|
+
* })
|
|
249
|
+
*/
|
|
250
|
+
deleteReactionById(request: Forum.DeleteReactionByIdThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
251
|
+
private __deleteReactionById;
|
|
234
252
|
/**
|
|
235
253
|
* Retrieve a paginated list of subscribers for Thread.
|
|
236
254
|
*
|
|
@@ -249,6 +267,25 @@ export declare class ThreadsClient {
|
|
|
249
267
|
*/
|
|
250
268
|
listSubscribers(request: Forum.ListSubscribersThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.ThreadSubscriberListResponse>;
|
|
251
269
|
private __listSubscribers;
|
|
270
|
+
/**
|
|
271
|
+
* Create a Subscriber in Thread.
|
|
272
|
+
*
|
|
273
|
+
* @param {Forum.CreateSubscriberThreadsRequest} request
|
|
274
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
275
|
+
*
|
|
276
|
+
* @throws {@link Forum.BadRequestError}
|
|
277
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
278
|
+
* @throws {@link Forum.NotFoundError}
|
|
279
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
280
|
+
* @throws {@link Forum.InternalServerError}
|
|
281
|
+
*
|
|
282
|
+
* @example
|
|
283
|
+
* await client.threads.createSubscriber({
|
|
284
|
+
* id: "id"
|
|
285
|
+
* })
|
|
286
|
+
*/
|
|
287
|
+
createSubscriber(request: Forum.CreateSubscriberThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.ThreadSubscriberResponse>;
|
|
288
|
+
private __createSubscriber;
|
|
252
289
|
/**
|
|
253
290
|
* Unsubscribe from this thread. Removes the authenticated user's subscription. No subId needed.
|
|
254
291
|
*
|
|
@@ -285,7 +322,7 @@ export declare class ThreadsClient {
|
|
|
285
322
|
retrieveSubscriber(request: Forum.RetrieveSubscriberThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.RetrieveSubscriberThreadsResponse>;
|
|
286
323
|
private __retrieveSubscriber;
|
|
287
324
|
/**
|
|
288
|
-
* @param {Forum.
|
|
325
|
+
* @param {Forum.DeleteSubscriberByIdThreadsRequest} request
|
|
289
326
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
290
327
|
*
|
|
291
328
|
* @throws {@link Forum.UnauthorizedError}
|
|
@@ -294,13 +331,13 @@ export declare class ThreadsClient {
|
|
|
294
331
|
* @throws {@link Forum.InternalServerError}
|
|
295
332
|
*
|
|
296
333
|
* @example
|
|
297
|
-
* await client.threads.
|
|
334
|
+
* await client.threads.deleteSubscriberById({
|
|
298
335
|
* id: "id",
|
|
299
336
|
* subId: "subId"
|
|
300
337
|
* })
|
|
301
338
|
*/
|
|
302
|
-
|
|
303
|
-
private
|
|
339
|
+
deleteSubscriberById(request: Forum.DeleteSubscriberByIdThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
340
|
+
private __deleteSubscriberById;
|
|
304
341
|
/**
|
|
305
342
|
* @param {Forum.RetrievePollThreadsRequest} request
|
|
306
343
|
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|