@foru-ms/sdk 2.1.15 → 2.1.17
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/Client.d.ts +0 -3
- package/dist/cjs/Client.js +22 -27
- package/dist/cjs/api/resources/index.d.ts +0 -3
- package/dist/cjs/api/resources/index.js +1 -4
- package/dist/cjs/api/resources/threads/client/Client.d.ts +73 -0
- package/dist/cjs/api/resources/threads/client/Client.js +254 -0
- package/dist/cjs/api/resources/{pollVotes/client/requests/CreatevotePollVotesRequest.d.ts → threads/client/requests/CreatePollVoteThreadsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{pollVotes/client/requests/DeleteOwnvotePollVotesRequest.d.ts → threads/client/requests/DeleteOwnPollVoteThreadsRequest.d.ts} +1 -1
- package/dist/cjs/api/resources/{pollVotes/client/requests/DeletevotePollVotesRequest.d.ts → threads/client/requests/DeletePollVoteThreadsRequest.d.ts} +2 -2
- package/dist/cjs/api/resources/threads/client/requests/ListPollVotesThreadsRequest.d.ts +16 -0
- package/dist/cjs/api/resources/threads/client/requests/index.d.ts +4 -0
- package/dist/cjs/api/resources/threads/types/DeleteOwnPollVoteThreadsResponse.d.ts +8 -0
- package/dist/cjs/api/resources/threads/types/index.d.ts +1 -0
- package/dist/cjs/api/resources/threads/types/index.js +1 -0
- package/dist/cjs/api/types/{PollVotesResponse.d.ts → PollVoteResponse.d.ts} +3 -3
- package/dist/cjs/api/types/PollVoteResponse.js +3 -0
- package/dist/cjs/api/types/PollVotesListResponse.d.ts +22 -0
- package/dist/cjs/api/types/PollVotesListResponse.js +3 -0
- package/dist/cjs/api/types/ThreadPoll.d.ts +5 -0
- package/dist/cjs/api/types/ThreadPollListResponse.d.ts +5 -0
- package/dist/cjs/api/types/ThreadPollResponse.d.ts +5 -0
- package/dist/cjs/api/types/index.d.ts +2 -1
- package/dist/cjs/api/types/index.js +2 -1
- 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/Client.d.mts +0 -3
- package/dist/esm/Client.mjs +0 -5
- package/dist/esm/api/resources/index.d.mts +0 -3
- package/dist/esm/api/resources/index.mjs +0 -3
- package/dist/esm/api/resources/threads/client/Client.d.mts +73 -0
- package/dist/esm/api/resources/threads/client/Client.mjs +254 -0
- package/dist/esm/api/resources/{pollVotes/client/requests/CreatevotePollVotesRequest.d.mts → threads/client/requests/CreatePollVoteThreadsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{pollVotes/client/requests/DeleteOwnvotePollVotesRequest.d.mts → threads/client/requests/DeleteOwnPollVoteThreadsRequest.d.mts} +1 -1
- package/dist/esm/api/resources/{pollVotes/client/requests/DeletevotePollVotesRequest.d.mts → threads/client/requests/DeletePollVoteThreadsRequest.d.mts} +2 -2
- package/dist/esm/api/resources/threads/client/requests/ListPollVotesThreadsRequest.d.mts +16 -0
- package/dist/esm/api/resources/threads/client/requests/index.d.mts +4 -0
- package/dist/esm/api/resources/threads/types/DeleteOwnPollVoteThreadsResponse.d.mts +8 -0
- package/dist/esm/api/resources/threads/types/index.d.mts +1 -0
- package/dist/esm/api/resources/threads/types/index.mjs +1 -0
- package/dist/esm/api/types/{PollVotesResponse.d.mts → PollVoteResponse.d.mts} +3 -3
- package/dist/esm/api/types/PollVoteResponse.mjs +2 -0
- package/dist/esm/api/types/PollVotesListResponse.d.mts +22 -0
- package/dist/esm/api/types/PollVotesListResponse.mjs +2 -0
- package/dist/esm/api/types/ThreadPoll.d.mts +5 -0
- package/dist/esm/api/types/ThreadPollListResponse.d.mts +5 -0
- package/dist/esm/api/types/ThreadPollResponse.d.mts +5 -0
- package/dist/esm/api/types/index.d.mts +2 -1
- package/dist/esm/api/types/index.mjs +2 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +79 -15
- package/dist/cjs/api/resources/pollVotes/client/Client.d.ts +0 -68
- package/dist/cjs/api/resources/pollVotes/client/Client.js +0 -256
- package/dist/cjs/api/resources/pollVotes/client/index.d.ts +0 -1
- package/dist/cjs/api/resources/pollVotes/client/index.js +0 -17
- package/dist/cjs/api/resources/pollVotes/client/requests/index.d.ts +0 -3
- package/dist/cjs/api/resources/pollVotes/client/requests/index.js +0 -2
- package/dist/cjs/api/resources/pollVotes/index.d.ts +0 -2
- package/dist/cjs/api/resources/pollVotes/index.js +0 -18
- package/dist/cjs/api/resources/pollVotes/types/DeleteOwnvotePollVotesResponse.d.ts +0 -8
- package/dist/cjs/api/resources/pollVotes/types/index.d.ts +0 -1
- package/dist/cjs/api/resources/pollVotes/types/index.js +0 -17
- package/dist/esm/api/resources/pollVotes/client/Client.d.mts +0 -68
- package/dist/esm/api/resources/pollVotes/client/Client.mjs +0 -219
- package/dist/esm/api/resources/pollVotes/client/index.d.mts +0 -1
- package/dist/esm/api/resources/pollVotes/client/index.mjs +0 -1
- package/dist/esm/api/resources/pollVotes/client/requests/index.d.mts +0 -3
- package/dist/esm/api/resources/pollVotes/client/requests/index.mjs +0 -1
- package/dist/esm/api/resources/pollVotes/index.d.mts +0 -2
- package/dist/esm/api/resources/pollVotes/index.mjs +0 -2
- package/dist/esm/api/resources/pollVotes/types/DeleteOwnvotePollVotesResponse.d.mts +0 -8
- package/dist/esm/api/resources/pollVotes/types/index.d.mts +0 -1
- package/dist/esm/api/resources/pollVotes/types/index.mjs +0 -1
- /package/dist/cjs/api/resources/{pollVotes/client/requests/CreatevotePollVotesRequest.js → threads/client/requests/CreatePollVoteThreadsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{pollVotes/client/requests/DeleteOwnvotePollVotesRequest.js → threads/client/requests/DeleteOwnPollVoteThreadsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{pollVotes/client/requests/DeletevotePollVotesRequest.js → threads/client/requests/DeletePollVoteThreadsRequest.js} +0 -0
- /package/dist/cjs/api/resources/{pollVotes/types/DeleteOwnvotePollVotesResponse.js → threads/client/requests/ListPollVotesThreadsRequest.js} +0 -0
- /package/dist/cjs/api/{types/PollVotesResponse.js → resources/threads/types/DeleteOwnPollVoteThreadsResponse.js} +0 -0
- /package/dist/esm/api/resources/{pollVotes/client/requests/CreatevotePollVotesRequest.mjs → threads/client/requests/CreatePollVoteThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{pollVotes/client/requests/DeleteOwnvotePollVotesRequest.mjs → threads/client/requests/DeleteOwnPollVoteThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{pollVotes/client/requests/DeletevotePollVotesRequest.mjs → threads/client/requests/DeletePollVoteThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/resources/{pollVotes/types/DeleteOwnvotePollVotesResponse.mjs → threads/client/requests/ListPollVotesThreadsRequest.mjs} +0 -0
- /package/dist/esm/api/{types/PollVotesResponse.mjs → resources/threads/types/DeleteOwnPollVoteThreadsResponse.mjs} +0 -0
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@foru-ms/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "2.1.
|
|
47
|
-
"User-Agent": "@foru-ms/sdk/2.1.
|
|
46
|
+
"X-Fern-SDK-Version": "2.1.17",
|
|
47
|
+
"User-Agent": "@foru-ms/sdk/2.1.17",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
}, options === null || options === void 0 ? void 0 : options.headers);
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AuthClient } from "./api/resources/auth/client/Client.js";
|
|
2
2
|
import { IntegrationsClient } from "./api/resources/integrations/client/Client.js";
|
|
3
3
|
import { NotificationsClient } from "./api/resources/notifications/client/Client.js";
|
|
4
|
-
import { PollVotesClient } from "./api/resources/pollVotes/client/Client.js";
|
|
5
4
|
import { PostsClient } from "./api/resources/posts/client/Client.js";
|
|
6
5
|
import { PrivateMessagesClient } from "./api/resources/privateMessages/client/Client.js";
|
|
7
6
|
import { ProvisioningClient } from "./api/resources/provisioning/client/Client.js";
|
|
@@ -26,7 +25,6 @@ export declare class ForumClient {
|
|
|
26
25
|
protected _search: SearchClient | undefined;
|
|
27
26
|
protected _tags: TagsClient | undefined;
|
|
28
27
|
protected _threads: ThreadsClient | undefined;
|
|
29
|
-
protected _pollVotes: PollVotesClient | undefined;
|
|
30
28
|
protected _posts: PostsClient | undefined;
|
|
31
29
|
protected _privateMessages: PrivateMessagesClient | undefined;
|
|
32
30
|
protected _users: UsersClient | undefined;
|
|
@@ -42,7 +40,6 @@ export declare class ForumClient {
|
|
|
42
40
|
get search(): SearchClient;
|
|
43
41
|
get tags(): TagsClient;
|
|
44
42
|
get threads(): ThreadsClient;
|
|
45
|
-
get pollVotes(): PollVotesClient;
|
|
46
43
|
get posts(): PostsClient;
|
|
47
44
|
get privateMessages(): PrivateMessagesClient;
|
|
48
45
|
get users(): UsersClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -5,18 +5,17 @@ exports.ForumClient = void 0;
|
|
|
5
5
|
const Client_js_1 = require("./api/resources/auth/client/Client.js");
|
|
6
6
|
const Client_js_2 = require("./api/resources/integrations/client/Client.js");
|
|
7
7
|
const Client_js_3 = require("./api/resources/notifications/client/Client.js");
|
|
8
|
-
const Client_js_4 = require("./api/resources/
|
|
9
|
-
const Client_js_5 = require("./api/resources/
|
|
10
|
-
const Client_js_6 = require("./api/resources/
|
|
11
|
-
const Client_js_7 = require("./api/resources/
|
|
12
|
-
const Client_js_8 = require("./api/resources/
|
|
13
|
-
const Client_js_9 = require("./api/resources/
|
|
14
|
-
const Client_js_10 = require("./api/resources/
|
|
15
|
-
const Client_js_11 = require("./api/resources/
|
|
16
|
-
const Client_js_12 = require("./api/resources/
|
|
17
|
-
const Client_js_13 = require("./api/resources/
|
|
18
|
-
const Client_js_14 = require("./api/resources/
|
|
19
|
-
const Client_js_15 = require("./api/resources/webhooks/client/Client.js");
|
|
8
|
+
const Client_js_4 = require("./api/resources/posts/client/Client.js");
|
|
9
|
+
const Client_js_5 = require("./api/resources/privateMessages/client/Client.js");
|
|
10
|
+
const Client_js_6 = require("./api/resources/provisioning/client/Client.js");
|
|
11
|
+
const Client_js_7 = require("./api/resources/reports/client/Client.js");
|
|
12
|
+
const Client_js_8 = require("./api/resources/roles/client/Client.js");
|
|
13
|
+
const Client_js_9 = require("./api/resources/search/client/Client.js");
|
|
14
|
+
const Client_js_10 = require("./api/resources/ssOs/client/Client.js");
|
|
15
|
+
const Client_js_11 = require("./api/resources/tags/client/Client.js");
|
|
16
|
+
const Client_js_12 = require("./api/resources/threads/client/Client.js");
|
|
17
|
+
const Client_js_13 = require("./api/resources/users/client/Client.js");
|
|
18
|
+
const Client_js_14 = require("./api/resources/webhooks/client/Client.js");
|
|
20
19
|
const BaseClient_js_1 = require("./BaseClient.js");
|
|
21
20
|
class ForumClient {
|
|
22
21
|
constructor(options = {}) {
|
|
@@ -28,39 +27,35 @@ class ForumClient {
|
|
|
28
27
|
}
|
|
29
28
|
get search() {
|
|
30
29
|
var _a;
|
|
31
|
-
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new
|
|
30
|
+
return ((_a = this._search) !== null && _a !== void 0 ? _a : (this._search = new Client_js_9.SearchClient(this._options)));
|
|
32
31
|
}
|
|
33
32
|
get tags() {
|
|
34
33
|
var _a;
|
|
35
|
-
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new
|
|
34
|
+
return ((_a = this._tags) !== null && _a !== void 0 ? _a : (this._tags = new Client_js_11.TagsClient(this._options)));
|
|
36
35
|
}
|
|
37
36
|
get threads() {
|
|
38
37
|
var _a;
|
|
39
|
-
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new
|
|
40
|
-
}
|
|
41
|
-
get pollVotes() {
|
|
42
|
-
var _a;
|
|
43
|
-
return ((_a = this._pollVotes) !== null && _a !== void 0 ? _a : (this._pollVotes = new Client_js_4.PollVotesClient(this._options)));
|
|
38
|
+
return ((_a = this._threads) !== null && _a !== void 0 ? _a : (this._threads = new Client_js_12.ThreadsClient(this._options)));
|
|
44
39
|
}
|
|
45
40
|
get posts() {
|
|
46
41
|
var _a;
|
|
47
|
-
return ((_a = this._posts) !== null && _a !== void 0 ? _a : (this._posts = new
|
|
42
|
+
return ((_a = this._posts) !== null && _a !== void 0 ? _a : (this._posts = new Client_js_4.PostsClient(this._options)));
|
|
48
43
|
}
|
|
49
44
|
get privateMessages() {
|
|
50
45
|
var _a;
|
|
51
|
-
return ((_a = this._privateMessages) !== null && _a !== void 0 ? _a : (this._privateMessages = new
|
|
46
|
+
return ((_a = this._privateMessages) !== null && _a !== void 0 ? _a : (this._privateMessages = new Client_js_5.PrivateMessagesClient(this._options)));
|
|
52
47
|
}
|
|
53
48
|
get users() {
|
|
54
49
|
var _a;
|
|
55
|
-
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new
|
|
50
|
+
return ((_a = this._users) !== null && _a !== void 0 ? _a : (this._users = new Client_js_13.UsersClient(this._options)));
|
|
56
51
|
}
|
|
57
52
|
get roles() {
|
|
58
53
|
var _a;
|
|
59
|
-
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new
|
|
54
|
+
return ((_a = this._roles) !== null && _a !== void 0 ? _a : (this._roles = new Client_js_8.RolesClient(this._options)));
|
|
60
55
|
}
|
|
61
56
|
get reports() {
|
|
62
57
|
var _a;
|
|
63
|
-
return ((_a = this._reports) !== null && _a !== void 0 ? _a : (this._reports = new
|
|
58
|
+
return ((_a = this._reports) !== null && _a !== void 0 ? _a : (this._reports = new Client_js_7.ReportsClient(this._options)));
|
|
64
59
|
}
|
|
65
60
|
get notifications() {
|
|
66
61
|
var _a;
|
|
@@ -68,7 +63,7 @@ class ForumClient {
|
|
|
68
63
|
}
|
|
69
64
|
get webhooks() {
|
|
70
65
|
var _a;
|
|
71
|
-
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new
|
|
66
|
+
return ((_a = this._webhooks) !== null && _a !== void 0 ? _a : (this._webhooks = new Client_js_14.WebhooksClient(this._options)));
|
|
72
67
|
}
|
|
73
68
|
get integrations() {
|
|
74
69
|
var _a;
|
|
@@ -76,11 +71,11 @@ class ForumClient {
|
|
|
76
71
|
}
|
|
77
72
|
get ssOs() {
|
|
78
73
|
var _a;
|
|
79
|
-
return ((_a = this._ssOs) !== null && _a !== void 0 ? _a : (this._ssOs = new
|
|
74
|
+
return ((_a = this._ssOs) !== null && _a !== void 0 ? _a : (this._ssOs = new Client_js_10.SsOsClient(this._options)));
|
|
80
75
|
}
|
|
81
76
|
get provisioning() {
|
|
82
77
|
var _a;
|
|
83
|
-
return ((_a = this._provisioning) !== null && _a !== void 0 ? _a : (this._provisioning = new
|
|
78
|
+
return ((_a = this._provisioning) !== null && _a !== void 0 ? _a : (this._provisioning = new Client_js_6.ProvisioningClient(this._options)));
|
|
84
79
|
}
|
|
85
80
|
}
|
|
86
81
|
exports.ForumClient = ForumClient;
|
|
@@ -6,9 +6,6 @@ export * from "./integrations/types/index.js";
|
|
|
6
6
|
export * from "./notifications/client/requests/index.js";
|
|
7
7
|
export * as notifications from "./notifications/index.js";
|
|
8
8
|
export * from "./notifications/types/index.js";
|
|
9
|
-
export * from "./pollVotes/client/requests/index.js";
|
|
10
|
-
export * as pollVotes from "./pollVotes/index.js";
|
|
11
|
-
export * from "./pollVotes/types/index.js";
|
|
12
9
|
export * from "./posts/client/requests/index.js";
|
|
13
10
|
export * as posts from "./posts/index.js";
|
|
14
11
|
export * from "./posts/types/index.js";
|
|
@@ -36,7 +36,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.webhooks = exports.users = exports.threads = exports.tags = exports.ssOs = exports.search = exports.roles = exports.reports = exports.provisioning = exports.privateMessages = exports.posts = exports.
|
|
39
|
+
exports.webhooks = exports.users = exports.threads = exports.tags = exports.ssOs = exports.search = exports.roles = exports.reports = exports.provisioning = exports.privateMessages = exports.posts = exports.notifications = exports.integrations = exports.auth = void 0;
|
|
40
40
|
__exportStar(require("./auth/client/requests/index.js"), exports);
|
|
41
41
|
exports.auth = __importStar(require("./auth/index.js"));
|
|
42
42
|
__exportStar(require("./integrations/client/requests/index.js"), exports);
|
|
@@ -45,9 +45,6 @@ __exportStar(require("./integrations/types/index.js"), exports);
|
|
|
45
45
|
__exportStar(require("./notifications/client/requests/index.js"), exports);
|
|
46
46
|
exports.notifications = __importStar(require("./notifications/index.js"));
|
|
47
47
|
__exportStar(require("./notifications/types/index.js"), exports);
|
|
48
|
-
__exportStar(require("./pollVotes/client/requests/index.js"), exports);
|
|
49
|
-
exports.pollVotes = __importStar(require("./pollVotes/index.js"));
|
|
50
|
-
__exportStar(require("./pollVotes/types/index.js"), exports);
|
|
51
48
|
__exportStar(require("./posts/client/requests/index.js"), exports);
|
|
52
49
|
exports.posts = __importStar(require("./posts/index.js"));
|
|
53
50
|
__exportStar(require("./posts/types/index.js"), exports);
|
|
@@ -355,4 +355,77 @@ export declare class ThreadsClient {
|
|
|
355
355
|
*/
|
|
356
356
|
updatePoll(request: Forum.UpdatePollThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.ThreadPollResponse>;
|
|
357
357
|
private __updatePoll;
|
|
358
|
+
/**
|
|
359
|
+
* List all votes in the Thread's Poll.
|
|
360
|
+
*
|
|
361
|
+
* @param {Forum.ListPollVotesThreadsRequest} request
|
|
362
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
363
|
+
*
|
|
364
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
365
|
+
* @throws {@link Forum.NotFoundError}
|
|
366
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
367
|
+
* @throws {@link Forum.InternalServerError}
|
|
368
|
+
*
|
|
369
|
+
* @example
|
|
370
|
+
* await client.threads.listPollVotes({
|
|
371
|
+
* id: "id"
|
|
372
|
+
* })
|
|
373
|
+
*/
|
|
374
|
+
listPollVotes(request: Forum.ListPollVotesThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.PollVotesListResponse>;
|
|
375
|
+
private __listPollVotes;
|
|
376
|
+
/**
|
|
377
|
+
* Create a Vote in the Thread's Poll.
|
|
378
|
+
*
|
|
379
|
+
* @param {Forum.CreatePollVoteThreadsRequest} request
|
|
380
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
381
|
+
*
|
|
382
|
+
* @throws {@link Forum.BadRequestError}
|
|
383
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
384
|
+
* @throws {@link Forum.NotFoundError}
|
|
385
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
386
|
+
* @throws {@link Forum.InternalServerError}
|
|
387
|
+
*
|
|
388
|
+
* @example
|
|
389
|
+
* await client.threads.createPollVote({
|
|
390
|
+
* id: "id",
|
|
391
|
+
* optionId: "optionId"
|
|
392
|
+
* })
|
|
393
|
+
*/
|
|
394
|
+
createPollVote(request: Forum.CreatePollVoteThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.PollVoteResponse>;
|
|
395
|
+
private __createPollVote;
|
|
396
|
+
/**
|
|
397
|
+
* Removes the authenticated user's Vote. No ID needed.
|
|
398
|
+
*
|
|
399
|
+
* @param {Forum.DeleteOwnPollVoteThreadsRequest} request
|
|
400
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
401
|
+
*
|
|
402
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
403
|
+
* @throws {@link Forum.NotFoundError}
|
|
404
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
405
|
+
* @throws {@link Forum.InternalServerError}
|
|
406
|
+
*
|
|
407
|
+
* @example
|
|
408
|
+
* await client.threads.deleteOwnPollVote({
|
|
409
|
+
* id: "id"
|
|
410
|
+
* })
|
|
411
|
+
*/
|
|
412
|
+
deleteOwnPollVote(request: Forum.DeleteOwnPollVoteThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.DeleteOwnPollVoteThreadsResponse>;
|
|
413
|
+
private __deleteOwnPollVote;
|
|
414
|
+
/**
|
|
415
|
+
* @param {Forum.DeletePollVoteThreadsRequest} request
|
|
416
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
417
|
+
*
|
|
418
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
419
|
+
* @throws {@link Forum.NotFoundError}
|
|
420
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
421
|
+
* @throws {@link Forum.InternalServerError}
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* await client.threads.deletePollVote({
|
|
425
|
+
* id: "id",
|
|
426
|
+
* nestedId: "nestedId"
|
|
427
|
+
* })
|
|
428
|
+
*/
|
|
429
|
+
deletePollVote(request: Forum.DeletePollVoteThreadsRequest, requestOptions?: ThreadsClient.RequestOptions): core.HttpResponsePromise<Forum.SuccessResponse>;
|
|
430
|
+
private __deletePollVote;
|
|
358
431
|
}
|
|
@@ -1270,5 +1270,259 @@ class ThreadsClient {
|
|
|
1270
1270
|
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "PATCH", "/threads/{id}/poll");
|
|
1271
1271
|
});
|
|
1272
1272
|
}
|
|
1273
|
+
/**
|
|
1274
|
+
* List all votes in the Thread's Poll.
|
|
1275
|
+
*
|
|
1276
|
+
* @param {Forum.ListPollVotesThreadsRequest} request
|
|
1277
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1278
|
+
*
|
|
1279
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1280
|
+
* @throws {@link Forum.NotFoundError}
|
|
1281
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1282
|
+
* @throws {@link Forum.InternalServerError}
|
|
1283
|
+
*
|
|
1284
|
+
* @example
|
|
1285
|
+
* await client.threads.listPollVotes({
|
|
1286
|
+
* id: "id"
|
|
1287
|
+
* })
|
|
1288
|
+
*/
|
|
1289
|
+
listPollVotes(request, requestOptions) {
|
|
1290
|
+
return core.HttpResponsePromise.fromPromise(this.__listPollVotes(request, requestOptions));
|
|
1291
|
+
}
|
|
1292
|
+
__listPollVotes(request, requestOptions) {
|
|
1293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1294
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1295
|
+
const { id, limit, cursor, optionId } = request;
|
|
1296
|
+
const _queryParams = {
|
|
1297
|
+
limit,
|
|
1298
|
+
cursor,
|
|
1299
|
+
optionId,
|
|
1300
|
+
};
|
|
1301
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1302
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1303
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1304
|
+
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, `threads/${core.url.encodePathParam(id)}/poll/votes`),
|
|
1305
|
+
method: "GET",
|
|
1306
|
+
headers: _headers,
|
|
1307
|
+
queryParameters: Object.assign(Object.assign({}, _queryParams), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams),
|
|
1308
|
+
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,
|
|
1309
|
+
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,
|
|
1310
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1311
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1312
|
+
logging: this._options.logging,
|
|
1313
|
+
});
|
|
1314
|
+
if (_response.ok) {
|
|
1315
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1316
|
+
}
|
|
1317
|
+
if (_response.error.reason === "status-code") {
|
|
1318
|
+
switch (_response.error.statusCode) {
|
|
1319
|
+
case 401:
|
|
1320
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1321
|
+
case 404:
|
|
1322
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1323
|
+
case 429:
|
|
1324
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1325
|
+
case 500:
|
|
1326
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1327
|
+
default:
|
|
1328
|
+
throw new errors.ForumError({
|
|
1329
|
+
statusCode: _response.error.statusCode,
|
|
1330
|
+
body: _response.error.body,
|
|
1331
|
+
rawResponse: _response.rawResponse,
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
}
|
|
1335
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "GET", "/threads/{id}/poll/votes");
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Create a Vote in the Thread's Poll.
|
|
1340
|
+
*
|
|
1341
|
+
* @param {Forum.CreatePollVoteThreadsRequest} request
|
|
1342
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1343
|
+
*
|
|
1344
|
+
* @throws {@link Forum.BadRequestError}
|
|
1345
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1346
|
+
* @throws {@link Forum.NotFoundError}
|
|
1347
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1348
|
+
* @throws {@link Forum.InternalServerError}
|
|
1349
|
+
*
|
|
1350
|
+
* @example
|
|
1351
|
+
* await client.threads.createPollVote({
|
|
1352
|
+
* id: "id",
|
|
1353
|
+
* optionId: "optionId"
|
|
1354
|
+
* })
|
|
1355
|
+
*/
|
|
1356
|
+
createPollVote(request, requestOptions) {
|
|
1357
|
+
return core.HttpResponsePromise.fromPromise(this.__createPollVote(request, requestOptions));
|
|
1358
|
+
}
|
|
1359
|
+
__createPollVote(request, requestOptions) {
|
|
1360
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1361
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1362
|
+
const { id } = request, _body = __rest(request, ["id"]);
|
|
1363
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1364
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1365
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1366
|
+
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, `threads/${core.url.encodePathParam(id)}/poll/votes`),
|
|
1367
|
+
method: "POST",
|
|
1368
|
+
headers: _headers,
|
|
1369
|
+
contentType: "application/json",
|
|
1370
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1371
|
+
requestType: "json",
|
|
1372
|
+
body: _body,
|
|
1373
|
+
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,
|
|
1374
|
+
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,
|
|
1375
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1376
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1377
|
+
logging: this._options.logging,
|
|
1378
|
+
});
|
|
1379
|
+
if (_response.ok) {
|
|
1380
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1381
|
+
}
|
|
1382
|
+
if (_response.error.reason === "status-code") {
|
|
1383
|
+
switch (_response.error.statusCode) {
|
|
1384
|
+
case 400:
|
|
1385
|
+
throw new Forum.BadRequestError(_response.error.body, _response.rawResponse);
|
|
1386
|
+
case 401:
|
|
1387
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1388
|
+
case 404:
|
|
1389
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1390
|
+
case 429:
|
|
1391
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1392
|
+
case 500:
|
|
1393
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1394
|
+
default:
|
|
1395
|
+
throw new errors.ForumError({
|
|
1396
|
+
statusCode: _response.error.statusCode,
|
|
1397
|
+
body: _response.error.body,
|
|
1398
|
+
rawResponse: _response.rawResponse,
|
|
1399
|
+
});
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "POST", "/threads/{id}/poll/votes");
|
|
1403
|
+
});
|
|
1404
|
+
}
|
|
1405
|
+
/**
|
|
1406
|
+
* Removes the authenticated user's Vote. No ID needed.
|
|
1407
|
+
*
|
|
1408
|
+
* @param {Forum.DeleteOwnPollVoteThreadsRequest} request
|
|
1409
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1410
|
+
*
|
|
1411
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1412
|
+
* @throws {@link Forum.NotFoundError}
|
|
1413
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1414
|
+
* @throws {@link Forum.InternalServerError}
|
|
1415
|
+
*
|
|
1416
|
+
* @example
|
|
1417
|
+
* await client.threads.deleteOwnPollVote({
|
|
1418
|
+
* id: "id"
|
|
1419
|
+
* })
|
|
1420
|
+
*/
|
|
1421
|
+
deleteOwnPollVote(request, requestOptions) {
|
|
1422
|
+
return core.HttpResponsePromise.fromPromise(this.__deleteOwnPollVote(request, requestOptions));
|
|
1423
|
+
}
|
|
1424
|
+
__deleteOwnPollVote(request, requestOptions) {
|
|
1425
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1426
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1427
|
+
const { id } = request;
|
|
1428
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1429
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1430
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1431
|
+
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, `threads/${core.url.encodePathParam(id)}/poll/votes`),
|
|
1432
|
+
method: "DELETE",
|
|
1433
|
+
headers: _headers,
|
|
1434
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1435
|
+
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,
|
|
1436
|
+
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,
|
|
1437
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1438
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1439
|
+
logging: this._options.logging,
|
|
1440
|
+
});
|
|
1441
|
+
if (_response.ok) {
|
|
1442
|
+
return {
|
|
1443
|
+
data: _response.body,
|
|
1444
|
+
rawResponse: _response.rawResponse,
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
if (_response.error.reason === "status-code") {
|
|
1448
|
+
switch (_response.error.statusCode) {
|
|
1449
|
+
case 401:
|
|
1450
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1451
|
+
case 404:
|
|
1452
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1453
|
+
case 429:
|
|
1454
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1455
|
+
case 500:
|
|
1456
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1457
|
+
default:
|
|
1458
|
+
throw new errors.ForumError({
|
|
1459
|
+
statusCode: _response.error.statusCode,
|
|
1460
|
+
body: _response.error.body,
|
|
1461
|
+
rawResponse: _response.rawResponse,
|
|
1462
|
+
});
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/poll/votes");
|
|
1466
|
+
});
|
|
1467
|
+
}
|
|
1468
|
+
/**
|
|
1469
|
+
* @param {Forum.DeletePollVoteThreadsRequest} request
|
|
1470
|
+
* @param {ThreadsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
1471
|
+
*
|
|
1472
|
+
* @throws {@link Forum.UnauthorizedError}
|
|
1473
|
+
* @throws {@link Forum.NotFoundError}
|
|
1474
|
+
* @throws {@link Forum.TooManyRequestsError}
|
|
1475
|
+
* @throws {@link Forum.InternalServerError}
|
|
1476
|
+
*
|
|
1477
|
+
* @example
|
|
1478
|
+
* await client.threads.deletePollVote({
|
|
1479
|
+
* id: "id",
|
|
1480
|
+
* nestedId: "nestedId"
|
|
1481
|
+
* })
|
|
1482
|
+
*/
|
|
1483
|
+
deletePollVote(request, requestOptions) {
|
|
1484
|
+
return core.HttpResponsePromise.fromPromise(this.__deletePollVote(request, requestOptions));
|
|
1485
|
+
}
|
|
1486
|
+
__deletePollVote(request, requestOptions) {
|
|
1487
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1488
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
1489
|
+
const { id, nestedId } = request;
|
|
1490
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
1491
|
+
const _headers = (0, headers_js_1.mergeHeaders)(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
1492
|
+
const _response = yield ((_b = this._options.fetcher) !== null && _b !== void 0 ? _b : core.fetcher)({
|
|
1493
|
+
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, `threads/${core.url.encodePathParam(id)}/poll/votes/${core.url.encodePathParam(nestedId)}`),
|
|
1494
|
+
method: "DELETE",
|
|
1495
|
+
headers: _headers,
|
|
1496
|
+
queryParameters: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams,
|
|
1497
|
+
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,
|
|
1498
|
+
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,
|
|
1499
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
1500
|
+
fetchFn: (_k = this._options) === null || _k === void 0 ? void 0 : _k.fetch,
|
|
1501
|
+
logging: this._options.logging,
|
|
1502
|
+
});
|
|
1503
|
+
if (_response.ok) {
|
|
1504
|
+
return { data: _response.body, rawResponse: _response.rawResponse };
|
|
1505
|
+
}
|
|
1506
|
+
if (_response.error.reason === "status-code") {
|
|
1507
|
+
switch (_response.error.statusCode) {
|
|
1508
|
+
case 401:
|
|
1509
|
+
throw new Forum.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
1510
|
+
case 404:
|
|
1511
|
+
throw new Forum.NotFoundError(_response.error.body, _response.rawResponse);
|
|
1512
|
+
case 429:
|
|
1513
|
+
throw new Forum.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
1514
|
+
case 500:
|
|
1515
|
+
throw new Forum.InternalServerError(_response.error.body, _response.rawResponse);
|
|
1516
|
+
default:
|
|
1517
|
+
throw new errors.ForumError({
|
|
1518
|
+
statusCode: _response.error.statusCode,
|
|
1519
|
+
body: _response.error.body,
|
|
1520
|
+
rawResponse: _response.rawResponse,
|
|
1521
|
+
});
|
|
1522
|
+
}
|
|
1523
|
+
}
|
|
1524
|
+
return (0, handleNonStatusCodeError_js_1.handleNonStatusCodeError)(_response.error, _response.rawResponse, "DELETE", "/threads/{id}/poll/votes/{nestedId}");
|
|
1525
|
+
});
|
|
1526
|
+
}
|
|
1273
1527
|
}
|
|
1274
1528
|
exports.ThreadsClient = ThreadsClient;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* id: "id"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface ListPollVotesThreadsRequest {
|
|
8
|
+
/** Thread ID */
|
|
9
|
+
id: string;
|
|
10
|
+
/** Items per page (max 75) */
|
|
11
|
+
limit?: number;
|
|
12
|
+
/** Cursor for pagination */
|
|
13
|
+
cursor?: string;
|
|
14
|
+
/** Filter by option ID */
|
|
15
|
+
optionId?: string;
|
|
16
|
+
}
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export type { CreatePollThreadsRequest } from "./CreatePollThreadsRequest.js";
|
|
2
|
+
export type { CreatePollVoteThreadsRequest } from "./CreatePollVoteThreadsRequest.js";
|
|
2
3
|
export { CreateReactionThreadsRequest } from "./CreateReactionThreadsRequest.js";
|
|
3
4
|
export type { CreateThreadsRequest } from "./CreateThreadsRequest.js";
|
|
5
|
+
export type { DeleteOwnPollVoteThreadsRequest } from "./DeleteOwnPollVoteThreadsRequest.js";
|
|
6
|
+
export type { DeletePollVoteThreadsRequest } from "./DeletePollVoteThreadsRequest.js";
|
|
4
7
|
export type { DeletePostThreadsRequest } from "./DeletePostThreadsRequest.js";
|
|
5
8
|
export type { DeleteReactionThreadsRequest } from "./DeleteReactionThreadsRequest.js";
|
|
6
9
|
export type { DeleteSubscriberThreadsRequest } from "./DeleteSubscriberThreadsRequest.js";
|
|
7
10
|
export type { DeleteThreadsRequest } from "./DeleteThreadsRequest.js";
|
|
11
|
+
export type { ListPollVotesThreadsRequest } from "./ListPollVotesThreadsRequest.js";
|
|
8
12
|
export type { ListPostsThreadsRequest } from "./ListPostsThreadsRequest.js";
|
|
9
13
|
export type { ListReactionsThreadsRequest } from "./ListReactionsThreadsRequest.js";
|
|
10
14
|
export type { ListSubscribersThreadsRequest } from "./ListSubscribersThreadsRequest.js";
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./DeleteOwnPollVoteThreadsResponse.js"), exports);
|
|
17
18
|
__exportStar(require("./DeleteReactionThreadsResponse.js"), exports);
|
|
18
19
|
__exportStar(require("./ListPostsThreadsRequestSort.js"), exports);
|
|
19
20
|
__exportStar(require("./ListPostsThreadsRequestType.js"), exports);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export interface
|
|
2
|
-
data:
|
|
1
|
+
export interface PollVoteResponse {
|
|
2
|
+
data: PollVoteResponse.Data;
|
|
3
3
|
}
|
|
4
|
-
export declare namespace
|
|
4
|
+
export declare namespace PollVoteResponse {
|
|
5
5
|
interface Data {
|
|
6
6
|
id: string;
|
|
7
7
|
pollId: string;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface PollVotesListResponse {
|
|
2
|
+
data: PollVotesListResponse.Data;
|
|
3
|
+
}
|
|
4
|
+
export declare namespace PollVotesListResponse {
|
|
5
|
+
interface Data {
|
|
6
|
+
items: Data.Items.Item[];
|
|
7
|
+
nextCursor?: string;
|
|
8
|
+
count: number;
|
|
9
|
+
}
|
|
10
|
+
namespace Data {
|
|
11
|
+
type Items = Items.Item[];
|
|
12
|
+
namespace Items {
|
|
13
|
+
interface Item {
|
|
14
|
+
id: string;
|
|
15
|
+
pollId: string;
|
|
16
|
+
optionId: string;
|
|
17
|
+
userId: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|