@ject-4-vs-team/api-client 2026.516.2 → 2026.521.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. package/dist/api/chat-api.d.ts +4 -4
  2. package/dist/api/chat-api.js +10 -10
  3. package/dist/api/default-api.d.ts +1118 -0
  4. package/dist/api/default-api.js +2165 -0
  5. package/dist/api.d.ts +1 -7
  6. package/dist/api.js +1 -7
  7. package/dist/models/emoji-response.d.ts +2 -4
  8. package/dist/models/emoji-summary.d.ts +18 -0
  9. package/dist/models/free-votes-response.d.ts +2 -1
  10. package/dist/models/gender-detail.d.ts +15 -0
  11. package/dist/models/gender-detail.js +15 -0
  12. package/dist/models/gender-distribution-response.d.ts +5 -2
  13. package/dist/models/home-hot-topic-response.d.ts +15 -0
  14. package/dist/models/home-hot-topic-response.js +15 -0
  15. package/dist/models/home-recommendation-response.d.ts +15 -0
  16. package/dist/models/home-recommendation-response.js +15 -0
  17. package/dist/models/home-vote-list-response.d.ts +17 -0
  18. package/dist/models/home-vote-list-response.js +15 -0
  19. package/dist/models/{feed-item.d.ts → hot-topic-item.d.ts} +5 -6
  20. package/dist/models/hot-topic-item.js +15 -0
  21. package/dist/models/immersive-feed-response.d.ts +2 -2
  22. package/dist/models/immersive-live-response.d.ts +3 -4
  23. package/dist/models/index.d.ts +19 -1
  24. package/dist/models/index.js +19 -1
  25. package/dist/models/message-response.d.ts +9 -2
  26. package/dist/models/message-response.js +7 -1
  27. package/dist/models/my-vote.d.ts +15 -0
  28. package/dist/models/my-vote.js +15 -0
  29. package/dist/models/notification-item.d.ts +25 -0
  30. package/dist/models/notification-item.js +19 -0
  31. package/dist/models/notification-list-response.d.ts +17 -0
  32. package/dist/models/notification-list-response.js +15 -0
  33. package/dist/models/notification-setting-response.d.ts +16 -0
  34. package/dist/models/notification-setting-response.js +15 -0
  35. package/dist/models/prompt-status-response.d.ts +15 -0
  36. package/dist/models/prompt-status-response.js +15 -0
  37. package/dist/models/read-all-response.d.ts +14 -0
  38. package/dist/models/read-all-response.js +15 -0
  39. package/dist/models/recommendation-item.d.ts +18 -0
  40. package/dist/models/recommendation-item.js +15 -0
  41. package/dist/models/register-push-token-request.d.ts +20 -0
  42. package/dist/models/register-push-token-request.js +20 -0
  43. package/dist/models/result-options.d.ts +15 -0
  44. package/dist/models/result-options.js +15 -0
  45. package/dist/models/share-link-response.d.ts +3 -1
  46. package/dist/models/unread-count-response.d.ts +14 -0
  47. package/dist/models/unread-count-response.js +15 -0
  48. package/dist/models/update-notification-setting-request.d.ts +14 -0
  49. package/dist/models/update-notification-setting-request.js +15 -0
  50. package/dist/models/vote-detail-response.d.ts +6 -6
  51. package/dist/models/vote-item.d.ts +27 -0
  52. package/dist/models/vote-item.js +15 -0
  53. package/dist/models/vote-list-item.d.ts +24 -0
  54. package/dist/models/vote-list-item.js +20 -0
  55. package/dist/models/vote-result-response.d.ts +7 -3
  56. package/package.json +1 -1
  57. package/dist/api/auth-controller-api.d.ts +0 -65
  58. package/dist/api/auth-controller-api.js +0 -118
  59. package/dist/api/guest-free-vote-controller-api.d.ts +0 -70
  60. package/dist/api/guest-free-vote-controller-api.js +0 -127
  61. package/dist/api/immersive-vote-controller-api.d.ts +0 -147
  62. package/dist/api/immersive-vote-controller-api.js +0 -282
  63. package/dist/api/user-controller-api.d.ts +0 -183
  64. package/dist/api/user-controller-api.js +0 -362
  65. package/dist/api/vote-controller-api.d.ts +0 -173
  66. package/dist/api/vote-controller-api.js +0 -338
  67. package/dist/api/vote-emoji-controller-api.d.ts +0 -116
  68. package/dist/api/vote-emoji-controller-api.js +0 -221
  69. package/dist/api/vote-result-controller-api.d.ts +0 -100
  70. package/dist/api/vote-result-controller-api.js +0 -187
  71. /package/dist/models/{feed-item.js → emoji-summary.js} +0 -0
@@ -1,221 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * VS Server API
6
- * JECT 4기 2팀 VS Server API
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.VoteEmojiControllerApi = exports.VoteEmojiControllerApiFactory = exports.VoteEmojiControllerApiFp = exports.VoteEmojiControllerApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * VoteEmojiControllerApi - axios parameter creator
28
- * @export
29
- */
30
- const VoteEmojiControllerApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- *
34
- * @param {number} voteId
35
- * @param {string} anonymousId
36
- * @param {EmojiRequest} emojiRequest
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- reactOnImmersiveVote: async (voteId, anonymousId, emojiRequest, options = {}) => {
41
- // verify required parameter 'voteId' is not null or undefined
42
- (0, common_1.assertParamExists)('reactOnImmersiveVote', 'voteId', voteId);
43
- // verify required parameter 'anonymousId' is not null or undefined
44
- (0, common_1.assertParamExists)('reactOnImmersiveVote', 'anonymousId', anonymousId);
45
- // verify required parameter 'emojiRequest' is not null or undefined
46
- (0, common_1.assertParamExists)('reactOnImmersiveVote', 'emojiRequest', emojiRequest);
47
- const localVarPath = `/api/immersive-votes/{voteId}/emoji`
48
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
- let baseOptions;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- }
55
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
56
- const localVarHeaderParameter = {};
57
- const localVarQueryParameter = {};
58
- // authentication bearerAuth required
59
- // http bearer authentication required
60
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
- if (anonymousId !== undefined) {
62
- localVarQueryParameter['anonymousId'] = anonymousId;
63
- }
64
- localVarHeaderParameter['Content-Type'] = 'application/json';
65
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
66
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
68
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emojiRequest, localVarRequestOptions, configuration);
69
- return {
70
- url: (0, common_1.toPathString)(localVarUrlObj),
71
- options: localVarRequestOptions,
72
- };
73
- },
74
- /**
75
- *
76
- * @param {number} voteId
77
- * @param {string} anonymousId
78
- * @param {EmojiRequest} emojiRequest
79
- * @param {*} [options] Override http request option.
80
- * @throws {RequiredError}
81
- */
82
- reactOnVote: async (voteId, anonymousId, emojiRequest, options = {}) => {
83
- // verify required parameter 'voteId' is not null or undefined
84
- (0, common_1.assertParamExists)('reactOnVote', 'voteId', voteId);
85
- // verify required parameter 'anonymousId' is not null or undefined
86
- (0, common_1.assertParamExists)('reactOnVote', 'anonymousId', anonymousId);
87
- // verify required parameter 'emojiRequest' is not null or undefined
88
- (0, common_1.assertParamExists)('reactOnVote', 'emojiRequest', emojiRequest);
89
- const localVarPath = `/api/votes/{voteId}/emoji`
90
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
91
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
92
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
93
- let baseOptions;
94
- if (configuration) {
95
- baseOptions = configuration.baseOptions;
96
- }
97
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
98
- const localVarHeaderParameter = {};
99
- const localVarQueryParameter = {};
100
- // authentication bearerAuth required
101
- // http bearer authentication required
102
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
103
- if (anonymousId !== undefined) {
104
- localVarQueryParameter['anonymousId'] = anonymousId;
105
- }
106
- localVarHeaderParameter['Content-Type'] = 'application/json';
107
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
108
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
110
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emojiRequest, localVarRequestOptions, configuration);
111
- return {
112
- url: (0, common_1.toPathString)(localVarUrlObj),
113
- options: localVarRequestOptions,
114
- };
115
- },
116
- };
117
- };
118
- exports.VoteEmojiControllerApiAxiosParamCreator = VoteEmojiControllerApiAxiosParamCreator;
119
- /**
120
- * VoteEmojiControllerApi - functional programming interface
121
- * @export
122
- */
123
- const VoteEmojiControllerApiFp = function (configuration) {
124
- const localVarAxiosParamCreator = (0, exports.VoteEmojiControllerApiAxiosParamCreator)(configuration);
125
- return {
126
- /**
127
- *
128
- * @param {number} voteId
129
- * @param {string} anonymousId
130
- * @param {EmojiRequest} emojiRequest
131
- * @param {*} [options] Override http request option.
132
- * @throws {RequiredError}
133
- */
134
- async reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options) {
135
- const localVarAxiosArgs = await localVarAxiosParamCreator.reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options);
136
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
137
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteEmojiControllerApi.reactOnImmersiveVote']?.[localVarOperationServerIndex]?.url;
138
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
139
- },
140
- /**
141
- *
142
- * @param {number} voteId
143
- * @param {string} anonymousId
144
- * @param {EmojiRequest} emojiRequest
145
- * @param {*} [options] Override http request option.
146
- * @throws {RequiredError}
147
- */
148
- async reactOnVote(voteId, anonymousId, emojiRequest, options) {
149
- const localVarAxiosArgs = await localVarAxiosParamCreator.reactOnVote(voteId, anonymousId, emojiRequest, options);
150
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
151
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteEmojiControllerApi.reactOnVote']?.[localVarOperationServerIndex]?.url;
152
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153
- },
154
- };
155
- };
156
- exports.VoteEmojiControllerApiFp = VoteEmojiControllerApiFp;
157
- /**
158
- * VoteEmojiControllerApi - factory interface
159
- * @export
160
- */
161
- const VoteEmojiControllerApiFactory = function (configuration, basePath, axios) {
162
- const localVarFp = (0, exports.VoteEmojiControllerApiFp)(configuration);
163
- return {
164
- /**
165
- *
166
- * @param {number} voteId
167
- * @param {string} anonymousId
168
- * @param {EmojiRequest} emojiRequest
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- */
172
- reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options) {
173
- return localVarFp.reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options).then((request) => request(axios, basePath));
174
- },
175
- /**
176
- *
177
- * @param {number} voteId
178
- * @param {string} anonymousId
179
- * @param {EmojiRequest} emojiRequest
180
- * @param {*} [options] Override http request option.
181
- * @throws {RequiredError}
182
- */
183
- reactOnVote(voteId, anonymousId, emojiRequest, options) {
184
- return localVarFp.reactOnVote(voteId, anonymousId, emojiRequest, options).then((request) => request(axios, basePath));
185
- },
186
- };
187
- };
188
- exports.VoteEmojiControllerApiFactory = VoteEmojiControllerApiFactory;
189
- /**
190
- * VoteEmojiControllerApi - object-oriented interface
191
- * @export
192
- * @class VoteEmojiControllerApi
193
- * @extends {BaseAPI}
194
- */
195
- class VoteEmojiControllerApi extends base_1.BaseAPI {
196
- /**
197
- *
198
- * @param {number} voteId
199
- * @param {string} anonymousId
200
- * @param {EmojiRequest} emojiRequest
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- * @memberof VoteEmojiControllerApi
204
- */
205
- reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options) {
206
- return (0, exports.VoteEmojiControllerApiFp)(this.configuration).reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options).then((request) => request(this.axios, this.basePath));
207
- }
208
- /**
209
- *
210
- * @param {number} voteId
211
- * @param {string} anonymousId
212
- * @param {EmojiRequest} emojiRequest
213
- * @param {*} [options] Override http request option.
214
- * @throws {RequiredError}
215
- * @memberof VoteEmojiControllerApi
216
- */
217
- reactOnVote(voteId, anonymousId, emojiRequest, options) {
218
- return (0, exports.VoteEmojiControllerApiFp)(this.configuration).reactOnVote(voteId, anonymousId, emojiRequest, options).then((request) => request(this.axios, this.basePath));
219
- }
220
- }
221
- exports.VoteEmojiControllerApi = VoteEmojiControllerApi;
@@ -1,100 +0,0 @@
1
- /**
2
- * VS Server API
3
- * JECT 4기 2팀 VS Server API
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import { type RequestArgs, BaseAPI } from '../base';
15
- import type { ShareLinkResponse } from '../models';
16
- import type { VoteResultResponse } from '../models';
17
- /**
18
- * VoteResultControllerApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const VoteResultControllerApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- *
24
- * @param {number} voteId
25
- * @param {*} [options] Override http request option.
26
- * @throws {RequiredError}
27
- */
28
- getResult: (voteId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
29
- /**
30
- *
31
- * @param {number} voteId
32
- * @param {*} [options] Override http request option.
33
- * @throws {RequiredError}
34
- */
35
- getShareLink: (voteId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
36
- };
37
- /**
38
- * VoteResultControllerApi - functional programming interface
39
- * @export
40
- */
41
- export declare const VoteResultControllerApiFp: (configuration?: Configuration) => {
42
- /**
43
- *
44
- * @param {number} voteId
45
- * @param {*} [options] Override http request option.
46
- * @throws {RequiredError}
47
- */
48
- getResult(voteId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<VoteResultResponse>>;
49
- /**
50
- *
51
- * @param {number} voteId
52
- * @param {*} [options] Override http request option.
53
- * @throws {RequiredError}
54
- */
55
- getShareLink(voteId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ShareLinkResponse>>;
56
- };
57
- /**
58
- * VoteResultControllerApi - factory interface
59
- * @export
60
- */
61
- export declare const VoteResultControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
62
- /**
63
- *
64
- * @param {number} voteId
65
- * @param {*} [options] Override http request option.
66
- * @throws {RequiredError}
67
- */
68
- getResult(voteId: number, options?: RawAxiosRequestConfig): AxiosPromise<VoteResultResponse>;
69
- /**
70
- *
71
- * @param {number} voteId
72
- * @param {*} [options] Override http request option.
73
- * @throws {RequiredError}
74
- */
75
- getShareLink(voteId: number, options?: RawAxiosRequestConfig): AxiosPromise<ShareLinkResponse>;
76
- };
77
- /**
78
- * VoteResultControllerApi - object-oriented interface
79
- * @export
80
- * @class VoteResultControllerApi
81
- * @extends {BaseAPI}
82
- */
83
- export declare class VoteResultControllerApi extends BaseAPI {
84
- /**
85
- *
86
- * @param {number} voteId
87
- * @param {*} [options] Override http request option.
88
- * @throws {RequiredError}
89
- * @memberof VoteResultControllerApi
90
- */
91
- getResult(voteId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<VoteResultResponse, any, {}>>;
92
- /**
93
- *
94
- * @param {number} voteId
95
- * @param {*} [options] Override http request option.
96
- * @throws {RequiredError}
97
- * @memberof VoteResultControllerApi
98
- */
99
- getShareLink(voteId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ShareLinkResponse, any, {}>>;
100
- }
@@ -1,187 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * VS Server API
6
- * JECT 4기 2팀 VS Server API
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.VoteResultControllerApi = exports.VoteResultControllerApiFactory = exports.VoteResultControllerApiFp = exports.VoteResultControllerApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * VoteResultControllerApi - axios parameter creator
28
- * @export
29
- */
30
- const VoteResultControllerApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- *
34
- * @param {number} voteId
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- getResult: async (voteId, options = {}) => {
39
- // verify required parameter 'voteId' is not null or undefined
40
- (0, common_1.assertParamExists)('getResult', 'voteId', voteId);
41
- const localVarPath = `/api/votes/{voteId}/result`
42
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
43
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
45
- let baseOptions;
46
- if (configuration) {
47
- baseOptions = configuration.baseOptions;
48
- }
49
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
50
- const localVarHeaderParameter = {};
51
- const localVarQueryParameter = {};
52
- // authentication bearerAuth required
53
- // http bearer authentication required
54
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
55
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
58
- return {
59
- url: (0, common_1.toPathString)(localVarUrlObj),
60
- options: localVarRequestOptions,
61
- };
62
- },
63
- /**
64
- *
65
- * @param {number} voteId
66
- * @param {*} [options] Override http request option.
67
- * @throws {RequiredError}
68
- */
69
- getShareLink: async (voteId, options = {}) => {
70
- // verify required parameter 'voteId' is not null or undefined
71
- (0, common_1.assertParamExists)('getShareLink', 'voteId', voteId);
72
- const localVarPath = `/api/votes/{voteId}/share`
73
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
74
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
75
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
76
- let baseOptions;
77
- if (configuration) {
78
- baseOptions = configuration.baseOptions;
79
- }
80
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
81
- const localVarHeaderParameter = {};
82
- const localVarQueryParameter = {};
83
- // authentication bearerAuth required
84
- // http bearer authentication required
85
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
86
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
87
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
89
- return {
90
- url: (0, common_1.toPathString)(localVarUrlObj),
91
- options: localVarRequestOptions,
92
- };
93
- },
94
- };
95
- };
96
- exports.VoteResultControllerApiAxiosParamCreator = VoteResultControllerApiAxiosParamCreator;
97
- /**
98
- * VoteResultControllerApi - functional programming interface
99
- * @export
100
- */
101
- const VoteResultControllerApiFp = function (configuration) {
102
- const localVarAxiosParamCreator = (0, exports.VoteResultControllerApiAxiosParamCreator)(configuration);
103
- return {
104
- /**
105
- *
106
- * @param {number} voteId
107
- * @param {*} [options] Override http request option.
108
- * @throws {RequiredError}
109
- */
110
- async getResult(voteId, options) {
111
- const localVarAxiosArgs = await localVarAxiosParamCreator.getResult(voteId, options);
112
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
113
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteResultControllerApi.getResult']?.[localVarOperationServerIndex]?.url;
114
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
115
- },
116
- /**
117
- *
118
- * @param {number} voteId
119
- * @param {*} [options] Override http request option.
120
- * @throws {RequiredError}
121
- */
122
- async getShareLink(voteId, options) {
123
- const localVarAxiosArgs = await localVarAxiosParamCreator.getShareLink(voteId, options);
124
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
125
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteResultControllerApi.getShareLink']?.[localVarOperationServerIndex]?.url;
126
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
127
- },
128
- };
129
- };
130
- exports.VoteResultControllerApiFp = VoteResultControllerApiFp;
131
- /**
132
- * VoteResultControllerApi - factory interface
133
- * @export
134
- */
135
- const VoteResultControllerApiFactory = function (configuration, basePath, axios) {
136
- const localVarFp = (0, exports.VoteResultControllerApiFp)(configuration);
137
- return {
138
- /**
139
- *
140
- * @param {number} voteId
141
- * @param {*} [options] Override http request option.
142
- * @throws {RequiredError}
143
- */
144
- getResult(voteId, options) {
145
- return localVarFp.getResult(voteId, options).then((request) => request(axios, basePath));
146
- },
147
- /**
148
- *
149
- * @param {number} voteId
150
- * @param {*} [options] Override http request option.
151
- * @throws {RequiredError}
152
- */
153
- getShareLink(voteId, options) {
154
- return localVarFp.getShareLink(voteId, options).then((request) => request(axios, basePath));
155
- },
156
- };
157
- };
158
- exports.VoteResultControllerApiFactory = VoteResultControllerApiFactory;
159
- /**
160
- * VoteResultControllerApi - object-oriented interface
161
- * @export
162
- * @class VoteResultControllerApi
163
- * @extends {BaseAPI}
164
- */
165
- class VoteResultControllerApi extends base_1.BaseAPI {
166
- /**
167
- *
168
- * @param {number} voteId
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- * @memberof VoteResultControllerApi
172
- */
173
- getResult(voteId, options) {
174
- return (0, exports.VoteResultControllerApiFp)(this.configuration).getResult(voteId, options).then((request) => request(this.axios, this.basePath));
175
- }
176
- /**
177
- *
178
- * @param {number} voteId
179
- * @param {*} [options] Override http request option.
180
- * @throws {RequiredError}
181
- * @memberof VoteResultControllerApi
182
- */
183
- getShareLink(voteId, options) {
184
- return (0, exports.VoteResultControllerApiFp)(this.configuration).getShareLink(voteId, options).then((request) => request(this.axios, this.basePath));
185
- }
186
- }
187
- exports.VoteResultControllerApi = VoteResultControllerApi;
File without changes