@ject-4-vs-team/api-client 2026.517.1 → 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 (69) 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/my-vote.d.ts +15 -0
  26. package/dist/models/my-vote.js +15 -0
  27. package/dist/models/notification-item.d.ts +25 -0
  28. package/dist/models/notification-item.js +19 -0
  29. package/dist/models/notification-list-response.d.ts +17 -0
  30. package/dist/models/notification-list-response.js +15 -0
  31. package/dist/models/notification-setting-response.d.ts +16 -0
  32. package/dist/models/notification-setting-response.js +15 -0
  33. package/dist/models/prompt-status-response.d.ts +15 -0
  34. package/dist/models/prompt-status-response.js +15 -0
  35. package/dist/models/read-all-response.d.ts +14 -0
  36. package/dist/models/read-all-response.js +15 -0
  37. package/dist/models/recommendation-item.d.ts +18 -0
  38. package/dist/models/recommendation-item.js +15 -0
  39. package/dist/models/register-push-token-request.d.ts +20 -0
  40. package/dist/models/register-push-token-request.js +20 -0
  41. package/dist/models/result-options.d.ts +15 -0
  42. package/dist/models/result-options.js +15 -0
  43. package/dist/models/share-link-response.d.ts +3 -1
  44. package/dist/models/unread-count-response.d.ts +14 -0
  45. package/dist/models/unread-count-response.js +15 -0
  46. package/dist/models/update-notification-setting-request.d.ts +14 -0
  47. package/dist/models/update-notification-setting-request.js +15 -0
  48. package/dist/models/vote-detail-response.d.ts +6 -6
  49. package/dist/models/vote-item.d.ts +27 -0
  50. package/dist/models/vote-item.js +15 -0
  51. package/dist/models/vote-list-item.d.ts +24 -0
  52. package/dist/models/vote-list-item.js +20 -0
  53. package/dist/models/vote-result-response.d.ts +7 -3
  54. package/package.json +1 -1
  55. package/dist/api/auth-controller-api.d.ts +0 -65
  56. package/dist/api/auth-controller-api.js +0 -118
  57. package/dist/api/guest-free-vote-controller-api.d.ts +0 -70
  58. package/dist/api/guest-free-vote-controller-api.js +0 -127
  59. package/dist/api/immersive-vote-controller-api.d.ts +0 -147
  60. package/dist/api/immersive-vote-controller-api.js +0 -282
  61. package/dist/api/user-controller-api.d.ts +0 -183
  62. package/dist/api/user-controller-api.js +0 -362
  63. package/dist/api/vote-controller-api.d.ts +0 -173
  64. package/dist/api/vote-controller-api.js +0 -338
  65. package/dist/api/vote-emoji-controller-api.d.ts +0 -116
  66. package/dist/api/vote-emoji-controller-api.js +0 -221
  67. package/dist/api/vote-result-controller-api.d.ts +0 -100
  68. package/dist/api/vote-result-controller-api.js +0 -187
  69. /package/dist/models/{feed-item.js → emoji-summary.js} +0 -0
@@ -0,0 +1,2165 @@
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.GetVoteListSortEnum = exports.DefaultApi = exports.DefaultApiFactory = exports.DefaultApiFp = exports.DefaultApiAxiosParamCreator = 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
+ * DefaultApi - axios parameter creator
28
+ * @export
29
+ */
30
+ const DefaultApiAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
33
+ * 투표를 취소합니다. 회원만 가능합니다.
34
+ * @summary 다시 투표하기
35
+ * @param {number} voteId
36
+ * @param {*} [options] Override http request option.
37
+ * @throws {RequiredError}
38
+ */
39
+ cancel: async (voteId, options = {}) => {
40
+ // verify required parameter 'voteId' is not null or undefined
41
+ (0, common_1.assertParamExists)('cancel', 'voteId', voteId);
42
+ const localVarPath = `/api/votes/{voteId}/participate`
43
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
44
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
45
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
46
+ let baseOptions;
47
+ if (configuration) {
48
+ baseOptions = configuration.baseOptions;
49
+ }
50
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
51
+ const localVarHeaderParameter = {};
52
+ const localVarQueryParameter = {};
53
+ // authentication bearerAuth required
54
+ // http bearer authentication required
55
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
56
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
57
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
58
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
59
+ return {
60
+ url: (0, common_1.toPathString)(localVarUrlObj),
61
+ options: localVarRequestOptions,
62
+ };
63
+ },
64
+ /**
65
+ * 새로운 투표를 생성합니다. 회원만 가능합니다.
66
+ * @summary 투표 생성
67
+ * @param {VoteCreateRequest} voteCreateRequest
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ create: async (voteCreateRequest, options = {}) => {
72
+ // verify required parameter 'voteCreateRequest' is not null or undefined
73
+ (0, common_1.assertParamExists)('create', 'voteCreateRequest', voteCreateRequest);
74
+ const localVarPath = `/api/votes`;
75
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
76
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
77
+ let baseOptions;
78
+ if (configuration) {
79
+ baseOptions = configuration.baseOptions;
80
+ }
81
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
82
+ const localVarHeaderParameter = {};
83
+ const localVarQueryParameter = {};
84
+ // authentication bearerAuth required
85
+ // http bearer authentication required
86
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
87
+ localVarHeaderParameter['Content-Type'] = 'application/json';
88
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
91
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(voteCreateRequest, localVarRequestOptions, configuration);
92
+ return {
93
+ url: (0, common_1.toPathString)(localVarUrlObj),
94
+ options: localVarRequestOptions,
95
+ };
96
+ },
97
+ /**
98
+ * 현재 알림 설정 상태를 조회합니다.
99
+ * @summary 알림 설정 조회
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ get: async (options = {}) => {
104
+ const localVarPath = `/api/me/notification-setting`;
105
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
106
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
107
+ let baseOptions;
108
+ if (configuration) {
109
+ baseOptions = configuration.baseOptions;
110
+ }
111
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
112
+ const localVarHeaderParameter = {};
113
+ const localVarQueryParameter = {};
114
+ // authentication bearerAuth required
115
+ // http bearer authentication required
116
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
117
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
118
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
119
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
120
+ return {
121
+ url: (0, common_1.toPathString)(localVarUrlObj),
122
+ options: localVarRequestOptions,
123
+ };
124
+ },
125
+ /**
126
+ * 투표 상세 정보를 조회합니다. 투표 전에는 결과(voteCount/ratio)가 null로 응답됩니다.
127
+ * @summary 투표 상세 조회
128
+ * @param {number} voteId
129
+ * @param {*} [options] Override http request option.
130
+ * @throws {RequiredError}
131
+ */
132
+ getDetail: async (voteId, options = {}) => {
133
+ // verify required parameter 'voteId' is not null or undefined
134
+ (0, common_1.assertParamExists)('getDetail', 'voteId', voteId);
135
+ const localVarPath = `/api/votes/{voteId}`
136
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
137
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
138
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
139
+ let baseOptions;
140
+ if (configuration) {
141
+ baseOptions = configuration.baseOptions;
142
+ }
143
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
144
+ const localVarHeaderParameter = {};
145
+ const localVarQueryParameter = {};
146
+ // authentication bearerAuth required
147
+ // http bearer authentication required
148
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
149
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
150
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
151
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
152
+ return {
153
+ url: (0, common_1.toPathString)(localVarUrlObj),
154
+ options: localVarRequestOptions,
155
+ };
156
+ },
157
+ /**
158
+ * 스와이프 형식의 몰입형 투표 피드를 조회합니다. 커서 기반 페이지네이션을 지원합니다.
159
+ * @summary 몰입형 투표 피드 조회
160
+ * @param {number} [cursor]
161
+ * @param {number} [size]
162
+ * @param {*} [options] Override http request option.
163
+ * @throws {RequiredError}
164
+ */
165
+ getFeed: async (cursor, size, options = {}) => {
166
+ const localVarPath = `/api/immersive-votes`;
167
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
168
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
169
+ let baseOptions;
170
+ if (configuration) {
171
+ baseOptions = configuration.baseOptions;
172
+ }
173
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
174
+ const localVarHeaderParameter = {};
175
+ const localVarQueryParameter = {};
176
+ // authentication bearerAuth required
177
+ // http bearer authentication required
178
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
179
+ if (cursor !== undefined) {
180
+ localVarQueryParameter['cursor'] = cursor;
181
+ }
182
+ if (size !== undefined) {
183
+ localVarQueryParameter['size'] = size;
184
+ }
185
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
186
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
187
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
188
+ return {
189
+ url: (0, common_1.toPathString)(localVarUrlObj),
190
+ options: localVarRequestOptions,
191
+ };
192
+ },
193
+ /**
194
+ * 비회원의 잔여 무료 투표권 수를 조회합니다. 회원은 remainingFreeVotes가 null로 응답됩니다.
195
+ * @summary 잔여 무료 투표권 조회
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ */
199
+ getFreeVotes: async (options = {}) => {
200
+ const localVarPath = `/api/me/free-votes`;
201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
203
+ let baseOptions;
204
+ if (configuration) {
205
+ baseOptions = configuration.baseOptions;
206
+ }
207
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
208
+ const localVarHeaderParameter = {};
209
+ const localVarQueryParameter = {};
210
+ // authentication bearerAuth required
211
+ // http bearer authentication required
212
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
213
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
214
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
215
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
216
+ return {
217
+ url: (0, common_1.toPathString)(localVarUrlObj),
218
+ options: localVarRequestOptions,
219
+ };
220
+ },
221
+ /**
222
+ * 인기 점수 기준 상위 3개 투표를 조회합니다. 인기 점수 = (참여 수 × 0.7) + (조회 수 × 0.3)
223
+ * @summary 핫토픽 TOP 3 조회
224
+ * @param {*} [options] Override http request option.
225
+ * @throws {RequiredError}
226
+ */
227
+ getHotTopics: async (options = {}) => {
228
+ const localVarPath = `/api/home/hot-topics`;
229
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
230
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
231
+ let baseOptions;
232
+ if (configuration) {
233
+ baseOptions = configuration.baseOptions;
234
+ }
235
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
236
+ const localVarHeaderParameter = {};
237
+ const localVarQueryParameter = {};
238
+ // authentication bearerAuth required
239
+ // http bearer authentication required
240
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
241
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
242
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
244
+ return {
245
+ url: (0, common_1.toPathString)(localVarUrlObj),
246
+ options: localVarRequestOptions,
247
+ };
248
+ },
249
+ /**
250
+ * 알림 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
251
+ * @summary 알림 목록 조회
252
+ * @param {number} [cursor]
253
+ * @param {number} [size]
254
+ * @param {*} [options] Override http request option.
255
+ * @throws {RequiredError}
256
+ */
257
+ getList: async (cursor, size, options = {}) => {
258
+ const localVarPath = `/api/notifications`;
259
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
260
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ let baseOptions;
262
+ if (configuration) {
263
+ baseOptions = configuration.baseOptions;
264
+ }
265
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
266
+ const localVarHeaderParameter = {};
267
+ const localVarQueryParameter = {};
268
+ // authentication bearerAuth required
269
+ // http bearer authentication required
270
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
271
+ if (cursor !== undefined) {
272
+ localVarQueryParameter['cursor'] = cursor;
273
+ }
274
+ if (size !== undefined) {
275
+ localVarQueryParameter['size'] = size;
276
+ }
277
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
279
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
280
+ return {
281
+ url: (0, common_1.toPathString)(localVarUrlObj),
282
+ options: localVarRequestOptions,
283
+ };
284
+ },
285
+ /**
286
+ * 투표 후 실시간 비율 갱신을 위한 폴링 API입니다.
287
+ * @summary 실시간 투표 현황 조회
288
+ * @param {number} voteId
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ getLive: async (voteId, options = {}) => {
293
+ // verify required parameter 'voteId' is not null or undefined
294
+ (0, common_1.assertParamExists)('getLive', 'voteId', voteId);
295
+ const localVarPath = `/api/immersive-votes/{voteId}/live`
296
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
298
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
299
+ let baseOptions;
300
+ if (configuration) {
301
+ baseOptions = configuration.baseOptions;
302
+ }
303
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
304
+ const localVarHeaderParameter = {};
305
+ const localVarQueryParameter = {};
306
+ // authentication bearerAuth required
307
+ // http bearer authentication required
308
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
309
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
310
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
311
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
312
+ return {
313
+ url: (0, common_1.toPathString)(localVarUrlObj),
314
+ options: localVarRequestOptions,
315
+ };
316
+ },
317
+ /**
318
+ * 로그인한 사용자의 프로필 정보를 조회합니다.
319
+ * @summary 내 프로필 조회
320
+ * @param {*} [options] Override http request option.
321
+ * @throws {RequiredError}
322
+ */
323
+ getMyProfile: async (options = {}) => {
324
+ const localVarPath = `/api/users/me`;
325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
326
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
327
+ let baseOptions;
328
+ if (configuration) {
329
+ baseOptions = configuration.baseOptions;
330
+ }
331
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
332
+ const localVarHeaderParameter = {};
333
+ const localVarQueryParameter = {};
334
+ // authentication bearerAuth required
335
+ // http bearer authentication required
336
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
337
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
338
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
339
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
340
+ return {
341
+ url: (0, common_1.toPathString)(localVarUrlObj),
342
+ options: localVarRequestOptions,
343
+ };
344
+ },
345
+ /**
346
+ * 운영진이 선정한 오늘의 추천 투표 목록을 조회합니다.
347
+ * @summary 오늘의 추천 조회
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ getRecommendations: async (options = {}) => {
352
+ const localVarPath = `/api/home/recommendations`;
353
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
354
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
355
+ let baseOptions;
356
+ if (configuration) {
357
+ baseOptions = configuration.baseOptions;
358
+ }
359
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
360
+ const localVarHeaderParameter = {};
361
+ const localVarQueryParameter = {};
362
+ // authentication bearerAuth required
363
+ // http bearer authentication required
364
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
365
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
367
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
368
+ return {
369
+ url: (0, common_1.toPathString)(localVarUrlObj),
370
+ options: localVarRequestOptions,
371
+ };
372
+ },
373
+ /**
374
+ * 마감된 투표의 결과를 조회합니다. 진행 중 투표는 403 응답합니다. 비회원은 insight가 잠금 상태로 응답됩니다.
375
+ * @summary 투표 결과 조회
376
+ * @param {number} voteId
377
+ * @param {*} [options] Override http request option.
378
+ * @throws {RequiredError}
379
+ */
380
+ getResult: async (voteId, options = {}) => {
381
+ // verify required parameter 'voteId' is not null or undefined
382
+ (0, common_1.assertParamExists)('getResult', 'voteId', voteId);
383
+ const localVarPath = `/api/votes/{voteId}/result`
384
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
385
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
386
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
387
+ let baseOptions;
388
+ if (configuration) {
389
+ baseOptions = configuration.baseOptions;
390
+ }
391
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
392
+ const localVarHeaderParameter = {};
393
+ const localVarQueryParameter = {};
394
+ // authentication bearerAuth required
395
+ // http bearer authentication required
396
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
397
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
398
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
399
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
400
+ return {
401
+ url: (0, common_1.toPathString)(localVarUrlObj),
402
+ options: localVarRequestOptions,
403
+ };
404
+ },
405
+ /**
406
+ * 투표 공유를 위한 링크를 생성합니다.
407
+ * @summary 공유 링크 생성
408
+ * @param {number} voteId
409
+ * @param {*} [options] Override http request option.
410
+ * @throws {RequiredError}
411
+ */
412
+ getShareLink: async (voteId, options = {}) => {
413
+ // verify required parameter 'voteId' is not null or undefined
414
+ (0, common_1.assertParamExists)('getShareLink', 'voteId', voteId);
415
+ const localVarPath = `/api/votes/{voteId}/share`
416
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
417
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
418
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
419
+ let baseOptions;
420
+ if (configuration) {
421
+ baseOptions = configuration.baseOptions;
422
+ }
423
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
424
+ const localVarHeaderParameter = {};
425
+ const localVarQueryParameter = {};
426
+ // authentication bearerAuth required
427
+ // http bearer authentication required
428
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
429
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
430
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
431
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
432
+ return {
433
+ url: (0, common_1.toPathString)(localVarUrlObj),
434
+ options: localVarRequestOptions,
435
+ };
436
+ },
437
+ /**
438
+ * 투표 공유를 위한 링크를 생성합니다.
439
+ * @summary 공유 링크 생성
440
+ * @param {number} voteId
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ */
444
+ getShareLink1: async (voteId, options = {}) => {
445
+ // verify required parameter 'voteId' is not null or undefined
446
+ (0, common_1.assertParamExists)('getShareLink1', 'voteId', voteId);
447
+ const localVarPath = `/api/immersive-votes/{voteId}/share`
448
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
449
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
450
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
451
+ let baseOptions;
452
+ if (configuration) {
453
+ baseOptions = configuration.baseOptions;
454
+ }
455
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
456
+ const localVarHeaderParameter = {};
457
+ const localVarQueryParameter = {};
458
+ // authentication bearerAuth required
459
+ // http bearer authentication required
460
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
461
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
462
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
463
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
464
+ return {
465
+ url: (0, common_1.toPathString)(localVarUrlObj),
466
+ options: localVarRequestOptions,
467
+ };
468
+ },
469
+ /**
470
+ * 알림 권한 요청 프롬프트를 표시해야 하는지 여부를 조회합니다.
471
+ * @summary 프롬프트 표시 여부 조회
472
+ * @param {*} [options] Override http request option.
473
+ * @throws {RequiredError}
474
+ */
475
+ getStatus: async (options = {}) => {
476
+ const localVarPath = `/api/me/notification-prompt/status`;
477
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
478
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
479
+ let baseOptions;
480
+ if (configuration) {
481
+ baseOptions = configuration.baseOptions;
482
+ }
483
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
484
+ const localVarHeaderParameter = {};
485
+ const localVarQueryParameter = {};
486
+ // authentication bearerAuth required
487
+ // http bearer authentication required
488
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
489
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
490
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
491
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
492
+ return {
493
+ url: (0, common_1.toPathString)(localVarUrlObj),
494
+ options: localVarRequestOptions,
495
+ };
496
+ },
497
+ /**
498
+ * 읽지 않은 알림의 개수를 조회합니다.
499
+ * @summary 읽지 않은 알림 수 조회
500
+ * @param {*} [options] Override http request option.
501
+ * @throws {RequiredError}
502
+ */
503
+ getUnreadCount: async (options = {}) => {
504
+ const localVarPath = `/api/notifications/unread-count`;
505
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
506
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
507
+ let baseOptions;
508
+ if (configuration) {
509
+ baseOptions = configuration.baseOptions;
510
+ }
511
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
512
+ const localVarHeaderParameter = {};
513
+ const localVarQueryParameter = {};
514
+ // authentication bearerAuth required
515
+ // http bearer authentication required
516
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
517
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
518
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
519
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
520
+ return {
521
+ url: (0, common_1.toPathString)(localVarUrlObj),
522
+ options: localVarRequestOptions,
523
+ };
524
+ },
525
+ /**
526
+ * 전체 투표 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
527
+ * @summary 전체 투표 목록 조회
528
+ * @param {number} [cursor] 다음 페이지 조회를 위한 커서 (이전 응답의 nextCursor)
529
+ * @param {number} [size] 페이지 크기
530
+ * @param {GetVoteListSortEnum} [sort] 정렬 기준: LATEST(최신순), POPULAR(인기순), ENDING_SOON(종료임박순)
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ getVoteList: async (cursor, size, sort, options = {}) => {
535
+ const localVarPath = `/api/home/votes`;
536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
537
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
538
+ let baseOptions;
539
+ if (configuration) {
540
+ baseOptions = configuration.baseOptions;
541
+ }
542
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
543
+ const localVarHeaderParameter = {};
544
+ const localVarQueryParameter = {};
545
+ // authentication bearerAuth required
546
+ // http bearer authentication required
547
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
548
+ if (cursor !== undefined) {
549
+ localVarQueryParameter['cursor'] = cursor;
550
+ }
551
+ if (size !== undefined) {
552
+ localVarQueryParameter['size'] = size;
553
+ }
554
+ if (sort !== undefined) {
555
+ localVarQueryParameter['sort'] = sort;
556
+ }
557
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
558
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
559
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
560
+ return {
561
+ url: (0, common_1.toPathString)(localVarUrlObj),
562
+ options: localVarRequestOptions,
563
+ };
564
+ },
565
+ /**
566
+ * 사용자 기본 프로필 정보를 초기화합니다.
567
+ * @summary 기본 프로필 초기화
568
+ * @param {UserProfileRequest} userProfileRequest
569
+ * @param {*} [options] Override http request option.
570
+ * @throws {RequiredError}
571
+ */
572
+ initializeDefaultProfile: async (userProfileRequest, options = {}) => {
573
+ // verify required parameter 'userProfileRequest' is not null or undefined
574
+ (0, common_1.assertParamExists)('initializeDefaultProfile', 'userProfileRequest', userProfileRequest);
575
+ const localVarPath = `/api/users/info`;
576
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
577
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
578
+ let baseOptions;
579
+ if (configuration) {
580
+ baseOptions = configuration.baseOptions;
581
+ }
582
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
583
+ const localVarHeaderParameter = {};
584
+ const localVarQueryParameter = {};
585
+ // authentication bearerAuth required
586
+ // http bearer authentication required
587
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
588
+ localVarHeaderParameter['Content-Type'] = 'application/json';
589
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
590
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
591
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
592
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userProfileRequest, localVarRequestOptions, configuration);
593
+ return {
594
+ url: (0, common_1.toPathString)(localVarUrlObj),
595
+ options: localVarRequestOptions,
596
+ };
597
+ },
598
+ /**
599
+ * 닉네임 사용 가능 여부를 확인합니다.
600
+ * @summary 닉네임 중복 확인
601
+ * @param {UserNicknameRec} userNicknameRec
602
+ * @param {*} [options] Override http request option.
603
+ * @throws {RequiredError}
604
+ */
605
+ isUniqueNickname: async (userNicknameRec, options = {}) => {
606
+ // verify required parameter 'userNicknameRec' is not null or undefined
607
+ (0, common_1.assertParamExists)('isUniqueNickname', 'userNicknameRec', userNicknameRec);
608
+ const localVarPath = `/api/users/nickname/check`;
609
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
610
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
611
+ let baseOptions;
612
+ if (configuration) {
613
+ baseOptions = configuration.baseOptions;
614
+ }
615
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
616
+ const localVarHeaderParameter = {};
617
+ const localVarQueryParameter = {};
618
+ // authentication bearerAuth required
619
+ // http bearer authentication required
620
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
621
+ localVarHeaderParameter['Content-Type'] = 'application/json';
622
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
623
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
624
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
625
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userNicknameRec, localVarRequestOptions, configuration);
626
+ return {
627
+ url: (0, common_1.toPathString)(localVarUrlObj),
628
+ options: localVarRequestOptions,
629
+ };
630
+ },
631
+ /**
632
+ * 모든 알림을 읽음 처리합니다.
633
+ * @summary 모든 알림 읽음 처리
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ */
637
+ markAllAsRead: async (options = {}) => {
638
+ const localVarPath = `/api/notifications/read-all`;
639
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
640
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
641
+ let baseOptions;
642
+ if (configuration) {
643
+ baseOptions = configuration.baseOptions;
644
+ }
645
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
646
+ const localVarHeaderParameter = {};
647
+ const localVarQueryParameter = {};
648
+ // authentication bearerAuth required
649
+ // http bearer authentication required
650
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
651
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
652
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
653
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
654
+ return {
655
+ url: (0, common_1.toPathString)(localVarUrlObj),
656
+ options: localVarRequestOptions,
657
+ };
658
+ },
659
+ /**
660
+ * 특정 알림을 읽음 처리합니다.
661
+ * @summary 알림 읽음 처리
662
+ * @param {number} notificationId
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ markAsRead: async (notificationId, options = {}) => {
667
+ // verify required parameter 'notificationId' is not null or undefined
668
+ (0, common_1.assertParamExists)('markAsRead', 'notificationId', notificationId);
669
+ const localVarPath = `/api/notifications/{notificationId}/read`
670
+ .replace(`{${"notificationId"}}`, encodeURIComponent(String(notificationId)));
671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
672
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
673
+ let baseOptions;
674
+ if (configuration) {
675
+ baseOptions = configuration.baseOptions;
676
+ }
677
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
678
+ const localVarHeaderParameter = {};
679
+ const localVarQueryParameter = {};
680
+ // authentication bearerAuth required
681
+ // http bearer authentication required
682
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
683
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
685
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
686
+ return {
687
+ url: (0, common_1.toPathString)(localVarUrlObj),
688
+ options: localVarRequestOptions,
689
+ };
690
+ },
691
+ /**
692
+ * 투표에 참여합니다. 비회원은 5회까지 무료 투표 가능합니다.
693
+ * @summary 투표 참여
694
+ * @param {number} voteId
695
+ * @param {ParticipateRequest} participateRequest
696
+ * @param {*} [options] Override http request option.
697
+ * @throws {RequiredError}
698
+ */
699
+ participate: async (voteId, participateRequest, options = {}) => {
700
+ // verify required parameter 'voteId' is not null or undefined
701
+ (0, common_1.assertParamExists)('participate', 'voteId', voteId);
702
+ // verify required parameter 'participateRequest' is not null or undefined
703
+ (0, common_1.assertParamExists)('participate', 'participateRequest', participateRequest);
704
+ const localVarPath = `/api/votes/{voteId}/participate`
705
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
706
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
707
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
708
+ let baseOptions;
709
+ if (configuration) {
710
+ baseOptions = configuration.baseOptions;
711
+ }
712
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
713
+ const localVarHeaderParameter = {};
714
+ const localVarQueryParameter = {};
715
+ // authentication bearerAuth required
716
+ // http bearer authentication required
717
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
718
+ localVarHeaderParameter['Content-Type'] = 'application/json';
719
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
720
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
721
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
722
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(participateRequest, localVarRequestOptions, configuration);
723
+ return {
724
+ url: (0, common_1.toPathString)(localVarUrlObj),
725
+ options: localVarRequestOptions,
726
+ };
727
+ },
728
+ /**
729
+ * 투표에 참여하거나 같은 옵션 재클릭 시 취소합니다. 비회원은 5회까지 무료 투표 가능합니다.
730
+ * @summary 투표 참여/취소
731
+ * @param {number} voteId
732
+ * @param {ParticipateRequest} participateRequest
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ */
736
+ participateOrCancel: async (voteId, participateRequest, options = {}) => {
737
+ // verify required parameter 'voteId' is not null or undefined
738
+ (0, common_1.assertParamExists)('participateOrCancel', 'voteId', voteId);
739
+ // verify required parameter 'participateRequest' is not null or undefined
740
+ (0, common_1.assertParamExists)('participateOrCancel', 'participateRequest', participateRequest);
741
+ const localVarPath = `/api/immersive-votes/{voteId}/participate`
742
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
743
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
744
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
745
+ let baseOptions;
746
+ if (configuration) {
747
+ baseOptions = configuration.baseOptions;
748
+ }
749
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
750
+ const localVarHeaderParameter = {};
751
+ const localVarQueryParameter = {};
752
+ // authentication bearerAuth required
753
+ // http bearer authentication required
754
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
755
+ localVarHeaderParameter['Content-Type'] = 'application/json';
756
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
757
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
758
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
759
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(participateRequest, localVarRequestOptions, configuration);
760
+ return {
761
+ url: (0, common_1.toPathString)(localVarUrlObj),
762
+ options: localVarRequestOptions,
763
+ };
764
+ },
765
+ /**
766
+ * 이모지 반응을 추가/변경/취소합니다. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
767
+ * @summary 몰입형 투표 이모지 반응
768
+ * @param {number} voteId
769
+ * @param {EmojiRequest} emojiRequest
770
+ * @param {*} [options] Override http request option.
771
+ * @throws {RequiredError}
772
+ */
773
+ reactOnImmersiveVote: async (voteId, emojiRequest, options = {}) => {
774
+ // verify required parameter 'voteId' is not null or undefined
775
+ (0, common_1.assertParamExists)('reactOnImmersiveVote', 'voteId', voteId);
776
+ // verify required parameter 'emojiRequest' is not null or undefined
777
+ (0, common_1.assertParamExists)('reactOnImmersiveVote', 'emojiRequest', emojiRequest);
778
+ const localVarPath = `/api/immersive-votes/{voteId}/emoji`
779
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
780
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
781
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
782
+ let baseOptions;
783
+ if (configuration) {
784
+ baseOptions = configuration.baseOptions;
785
+ }
786
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
787
+ const localVarHeaderParameter = {};
788
+ const localVarQueryParameter = {};
789
+ // authentication bearerAuth required
790
+ // http bearer authentication required
791
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
792
+ localVarHeaderParameter['Content-Type'] = 'application/json';
793
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
794
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
795
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
796
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emojiRequest, localVarRequestOptions, configuration);
797
+ return {
798
+ url: (0, common_1.toPathString)(localVarUrlObj),
799
+ options: localVarRequestOptions,
800
+ };
801
+ },
802
+ /**
803
+ * 이모지 반응을 추가/변경/취소합니��. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
804
+ * @summary 일반형 투표 이모지 반응
805
+ * @param {number} voteId
806
+ * @param {EmojiRequest} emojiRequest
807
+ * @param {*} [options] Override http request option.
808
+ * @throws {RequiredError}
809
+ */
810
+ reactOnVote: async (voteId, emojiRequest, options = {}) => {
811
+ // verify required parameter 'voteId' is not null or undefined
812
+ (0, common_1.assertParamExists)('reactOnVote', 'voteId', voteId);
813
+ // verify required parameter 'emojiRequest' is not null or undefined
814
+ (0, common_1.assertParamExists)('reactOnVote', 'emojiRequest', emojiRequest);
815
+ const localVarPath = `/api/votes/{voteId}/emoji`
816
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
817
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
818
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
819
+ let baseOptions;
820
+ if (configuration) {
821
+ baseOptions = configuration.baseOptions;
822
+ }
823
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
824
+ const localVarHeaderParameter = {};
825
+ const localVarQueryParameter = {};
826
+ // authentication bearerAuth required
827
+ // http bearer authentication required
828
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
829
+ localVarHeaderParameter['Content-Type'] = 'application/json';
830
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
831
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
832
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
833
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emojiRequest, localVarRequestOptions, configuration);
834
+ return {
835
+ url: (0, common_1.toPathString)(localVarUrlObj),
836
+ options: localVarRequestOptions,
837
+ };
838
+ },
839
+ /**
840
+ * 사용자가 알림 권한 프롬프트를 거절했음을 기록합니다.
841
+ * @summary 프롬프트 거절 기록
842
+ * @param {*} [options] Override http request option.
843
+ * @throws {RequiredError}
844
+ */
845
+ recordDismissed: async (options = {}) => {
846
+ const localVarPath = `/api/me/notification-prompt/dismissed`;
847
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
848
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
849
+ let baseOptions;
850
+ if (configuration) {
851
+ baseOptions = configuration.baseOptions;
852
+ }
853
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
854
+ const localVarHeaderParameter = {};
855
+ const localVarQueryParameter = {};
856
+ // authentication bearerAuth required
857
+ // http bearer authentication required
858
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
859
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
860
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
861
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
862
+ return {
863
+ url: (0, common_1.toPathString)(localVarUrlObj),
864
+ options: localVarRequestOptions,
865
+ };
866
+ },
867
+ /**
868
+ * FCM/APNs 디바이스 토큰을 등록합니다. 투표 종료 시 푸시 알림 발송에 사용됩니다.
869
+ * @summary 푸시 토큰 등록
870
+ * @param {RegisterPushTokenRequest} registerPushTokenRequest
871
+ * @param {*} [options] Override http request option.
872
+ * @throws {RequiredError}
873
+ */
874
+ register: async (registerPushTokenRequest, options = {}) => {
875
+ // verify required parameter 'registerPushTokenRequest' is not null or undefined
876
+ (0, common_1.assertParamExists)('register', 'registerPushTokenRequest', registerPushTokenRequest);
877
+ const localVarPath = `/api/devices/push-token`;
878
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
879
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
880
+ let baseOptions;
881
+ if (configuration) {
882
+ baseOptions = configuration.baseOptions;
883
+ }
884
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
885
+ const localVarHeaderParameter = {};
886
+ const localVarQueryParameter = {};
887
+ // authentication bearerAuth required
888
+ // http bearer authentication required
889
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
890
+ localVarHeaderParameter['Content-Type'] = 'application/json';
891
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
892
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
893
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
894
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerPushTokenRequest, localVarRequestOptions, configuration);
895
+ return {
896
+ url: (0, common_1.toPathString)(localVarUrlObj),
897
+ options: localVarRequestOptions,
898
+ };
899
+ },
900
+ /**
901
+ * Refresh Token으로 Access Token을 재발급합니다.
902
+ * @summary 토큰 재발급
903
+ * @param {*} [options] Override http request option.
904
+ * @throws {RequiredError}
905
+ */
906
+ reissue: async (options = {}) => {
907
+ const localVarPath = `/auth/reissue`;
908
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
909
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
910
+ let baseOptions;
911
+ if (configuration) {
912
+ baseOptions = configuration.baseOptions;
913
+ }
914
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
915
+ const localVarHeaderParameter = {};
916
+ const localVarQueryParameter = {};
917
+ // authentication bearerAuth required
918
+ // http bearer authentication required
919
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
920
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
921
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
922
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
923
+ return {
924
+ url: (0, common_1.toPathString)(localVarUrlObj),
925
+ options: localVarRequestOptions,
926
+ };
927
+ },
928
+ /**
929
+ * 사용자 추가 정보(닉네임, 성별, 생년월일)를 설정합니다.
930
+ * @summary 추가 정보 설정
931
+ * @param {UserExtraInfo} userExtraInfo
932
+ * @param {*} [options] Override http request option.
933
+ * @throws {RequiredError}
934
+ */
935
+ setupInfo: async (userExtraInfo, options = {}) => {
936
+ // verify required parameter 'userExtraInfo' is not null or undefined
937
+ (0, common_1.assertParamExists)('setupInfo', 'userExtraInfo', userExtraInfo);
938
+ const localVarPath = `/api/users/me/profile`;
939
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
940
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
941
+ let baseOptions;
942
+ if (configuration) {
943
+ baseOptions = configuration.baseOptions;
944
+ }
945
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
946
+ const localVarHeaderParameter = {};
947
+ const localVarQueryParameter = {};
948
+ // authentication bearerAuth required
949
+ // http bearer authentication required
950
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
951
+ localVarHeaderParameter['Content-Type'] = 'application/json';
952
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
953
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
954
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
955
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(userExtraInfo, localVarRequestOptions, configuration);
956
+ return {
957
+ url: (0, common_1.toPathString)(localVarUrlObj),
958
+ options: localVarRequestOptions,
959
+ };
960
+ },
961
+ /**
962
+ * 사용 가능한 랜덤 닉네임을 추천합니다.
963
+ * @summary 닉네임 추천
964
+ * @param {*} [options] Override http request option.
965
+ * @throws {RequiredError}
966
+ */
967
+ suggestNickname: async (options = {}) => {
968
+ const localVarPath = `/api/users/nickname/suggest`;
969
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
970
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
971
+ let baseOptions;
972
+ if (configuration) {
973
+ baseOptions = configuration.baseOptions;
974
+ }
975
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
976
+ const localVarHeaderParameter = {};
977
+ const localVarQueryParameter = {};
978
+ // authentication bearerAuth required
979
+ // http bearer authentication required
980
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
981
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
982
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
983
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
984
+ return {
985
+ url: (0, common_1.toPathString)(localVarUrlObj),
986
+ options: localVarRequestOptions,
987
+ };
988
+ },
989
+ /**
990
+ * 등록된 모든 푸시 토큰을 해제합니다.
991
+ * @summary 푸시 토큰 해제
992
+ * @param {*} [options] Override http request option.
993
+ * @throws {RequiredError}
994
+ */
995
+ unregisterAll: async (options = {}) => {
996
+ const localVarPath = `/api/devices/push-token`;
997
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
998
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
999
+ let baseOptions;
1000
+ if (configuration) {
1001
+ baseOptions = configuration.baseOptions;
1002
+ }
1003
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
1004
+ const localVarHeaderParameter = {};
1005
+ const localVarQueryParameter = {};
1006
+ // authentication bearerAuth required
1007
+ // http bearer authentication required
1008
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1009
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1010
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1011
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1012
+ return {
1013
+ url: (0, common_1.toPathString)(localVarUrlObj),
1014
+ options: localVarRequestOptions,
1015
+ };
1016
+ },
1017
+ /**
1018
+ * 푸시 알림 ON/OFF 설정을 변경합니다.
1019
+ * @summary 알림 설정 변경
1020
+ * @param {UpdateNotificationSettingRequest} updateNotificationSettingRequest
1021
+ * @param {*} [options] Override http request option.
1022
+ * @throws {RequiredError}
1023
+ */
1024
+ update: async (updateNotificationSettingRequest, options = {}) => {
1025
+ // verify required parameter 'updateNotificationSettingRequest' is not null or undefined
1026
+ (0, common_1.assertParamExists)('update', 'updateNotificationSettingRequest', updateNotificationSettingRequest);
1027
+ const localVarPath = `/api/me/notification-setting`;
1028
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1029
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1030
+ let baseOptions;
1031
+ if (configuration) {
1032
+ baseOptions = configuration.baseOptions;
1033
+ }
1034
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
1035
+ const localVarHeaderParameter = {};
1036
+ const localVarQueryParameter = {};
1037
+ // authentication bearerAuth required
1038
+ // http bearer authentication required
1039
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
1040
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1041
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1042
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1043
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1044
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateNotificationSettingRequest, localVarRequestOptions, configuration);
1045
+ return {
1046
+ url: (0, common_1.toPathString)(localVarUrlObj),
1047
+ options: localVarRequestOptions,
1048
+ };
1049
+ },
1050
+ };
1051
+ };
1052
+ exports.DefaultApiAxiosParamCreator = DefaultApiAxiosParamCreator;
1053
+ /**
1054
+ * DefaultApi - functional programming interface
1055
+ * @export
1056
+ */
1057
+ const DefaultApiFp = function (configuration) {
1058
+ const localVarAxiosParamCreator = (0, exports.DefaultApiAxiosParamCreator)(configuration);
1059
+ return {
1060
+ /**
1061
+ * 투표를 취소합니다. 회원만 가능합니다.
1062
+ * @summary 다시 투표하기
1063
+ * @param {number} voteId
1064
+ * @param {*} [options] Override http request option.
1065
+ * @throws {RequiredError}
1066
+ */
1067
+ async cancel(voteId, options) {
1068
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancel(voteId, options);
1069
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1070
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.cancel']?.[localVarOperationServerIndex]?.url;
1071
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1072
+ },
1073
+ /**
1074
+ * 새로운 투표를 생성합니다. 회원만 가능합니다.
1075
+ * @summary 투표 생성
1076
+ * @param {VoteCreateRequest} voteCreateRequest
1077
+ * @param {*} [options] Override http request option.
1078
+ * @throws {RequiredError}
1079
+ */
1080
+ async create(voteCreateRequest, options) {
1081
+ const localVarAxiosArgs = await localVarAxiosParamCreator.create(voteCreateRequest, options);
1082
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1083
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.create']?.[localVarOperationServerIndex]?.url;
1084
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1085
+ },
1086
+ /**
1087
+ * 현재 알림 설정 상태를 조회합니다.
1088
+ * @summary 알림 설정 조회
1089
+ * @param {*} [options] Override http request option.
1090
+ * @throws {RequiredError}
1091
+ */
1092
+ async get(options) {
1093
+ const localVarAxiosArgs = await localVarAxiosParamCreator.get(options);
1094
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1095
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.get']?.[localVarOperationServerIndex]?.url;
1096
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1097
+ },
1098
+ /**
1099
+ * 투표 상세 정보를 조회합니다. 투표 전에는 결과(voteCount/ratio)가 null로 응답됩니다.
1100
+ * @summary 투표 상세 조회
1101
+ * @param {number} voteId
1102
+ * @param {*} [options] Override http request option.
1103
+ * @throws {RequiredError}
1104
+ */
1105
+ async getDetail(voteId, options) {
1106
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDetail(voteId, options);
1107
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1108
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getDetail']?.[localVarOperationServerIndex]?.url;
1109
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1110
+ },
1111
+ /**
1112
+ * 스와이프 형식의 몰입형 투표 피드를 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1113
+ * @summary 몰입형 투표 피드 조회
1114
+ * @param {number} [cursor]
1115
+ * @param {number} [size]
1116
+ * @param {*} [options] Override http request option.
1117
+ * @throws {RequiredError}
1118
+ */
1119
+ async getFeed(cursor, size, options) {
1120
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFeed(cursor, size, options);
1121
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1122
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getFeed']?.[localVarOperationServerIndex]?.url;
1123
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1124
+ },
1125
+ /**
1126
+ * 비회원의 잔여 무료 투표권 수를 조회합니다. 회원은 remainingFreeVotes가 null로 응답됩니다.
1127
+ * @summary 잔여 무료 투표권 조회
1128
+ * @param {*} [options] Override http request option.
1129
+ * @throws {RequiredError}
1130
+ */
1131
+ async getFreeVotes(options) {
1132
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getFreeVotes(options);
1133
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1134
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getFreeVotes']?.[localVarOperationServerIndex]?.url;
1135
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1136
+ },
1137
+ /**
1138
+ * 인기 점수 기준 상위 3개 투표를 조회합니다. 인기 점수 = (참여 수 × 0.7) + (조회 수 × 0.3)
1139
+ * @summary 핫토픽 TOP 3 조회
1140
+ * @param {*} [options] Override http request option.
1141
+ * @throws {RequiredError}
1142
+ */
1143
+ async getHotTopics(options) {
1144
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getHotTopics(options);
1145
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1146
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getHotTopics']?.[localVarOperationServerIndex]?.url;
1147
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1148
+ },
1149
+ /**
1150
+ * 알림 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1151
+ * @summary 알림 목록 조회
1152
+ * @param {number} [cursor]
1153
+ * @param {number} [size]
1154
+ * @param {*} [options] Override http request option.
1155
+ * @throws {RequiredError}
1156
+ */
1157
+ async getList(cursor, size, options) {
1158
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getList(cursor, size, options);
1159
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1160
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getList']?.[localVarOperationServerIndex]?.url;
1161
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1162
+ },
1163
+ /**
1164
+ * 투표 후 실시간 비율 갱신을 위한 폴링 API입니다.
1165
+ * @summary 실시간 투표 현황 조회
1166
+ * @param {number} voteId
1167
+ * @param {*} [options] Override http request option.
1168
+ * @throws {RequiredError}
1169
+ */
1170
+ async getLive(voteId, options) {
1171
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLive(voteId, options);
1172
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1173
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getLive']?.[localVarOperationServerIndex]?.url;
1174
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1175
+ },
1176
+ /**
1177
+ * 로그인한 사용자의 프로필 정보를 조회합니다.
1178
+ * @summary 내 프로필 조회
1179
+ * @param {*} [options] Override http request option.
1180
+ * @throws {RequiredError}
1181
+ */
1182
+ async getMyProfile(options) {
1183
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMyProfile(options);
1184
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1185
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getMyProfile']?.[localVarOperationServerIndex]?.url;
1186
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1187
+ },
1188
+ /**
1189
+ * 운영진이 선정한 오늘의 추천 투표 목록을 조회합니다.
1190
+ * @summary 오늘의 추천 조회
1191
+ * @param {*} [options] Override http request option.
1192
+ * @throws {RequiredError}
1193
+ */
1194
+ async getRecommendations(options) {
1195
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRecommendations(options);
1196
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1197
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getRecommendations']?.[localVarOperationServerIndex]?.url;
1198
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1199
+ },
1200
+ /**
1201
+ * 마감된 투표의 결과를 조회합니다. 진행 중 투표는 403 응답합니다. 비회원은 insight가 잠금 상태로 응답됩니다.
1202
+ * @summary 투표 결과 조회
1203
+ * @param {number} voteId
1204
+ * @param {*} [options] Override http request option.
1205
+ * @throws {RequiredError}
1206
+ */
1207
+ async getResult(voteId, options) {
1208
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getResult(voteId, options);
1209
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1210
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getResult']?.[localVarOperationServerIndex]?.url;
1211
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1212
+ },
1213
+ /**
1214
+ * 투표 공유를 위한 링크를 생성합니다.
1215
+ * @summary 공유 링크 생성
1216
+ * @param {number} voteId
1217
+ * @param {*} [options] Override http request option.
1218
+ * @throws {RequiredError}
1219
+ */
1220
+ async getShareLink(voteId, options) {
1221
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShareLink(voteId, options);
1222
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1223
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getShareLink']?.[localVarOperationServerIndex]?.url;
1224
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1225
+ },
1226
+ /**
1227
+ * 투표 공유를 위한 링크를 생성합니다.
1228
+ * @summary 공유 링크 생성
1229
+ * @param {number} voteId
1230
+ * @param {*} [options] Override http request option.
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ async getShareLink1(voteId, options) {
1234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getShareLink1(voteId, options);
1235
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1236
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getShareLink1']?.[localVarOperationServerIndex]?.url;
1237
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1238
+ },
1239
+ /**
1240
+ * 알림 권한 요청 프롬프트를 표시해야 하는지 여부를 조회합니다.
1241
+ * @summary 프롬프트 표시 여부 조회
1242
+ * @param {*} [options] Override http request option.
1243
+ * @throws {RequiredError}
1244
+ */
1245
+ async getStatus(options) {
1246
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getStatus(options);
1247
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1248
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getStatus']?.[localVarOperationServerIndex]?.url;
1249
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1250
+ },
1251
+ /**
1252
+ * 읽지 않은 알림의 개수를 조회합니다.
1253
+ * @summary 읽지 않은 알림 수 조회
1254
+ * @param {*} [options] Override http request option.
1255
+ * @throws {RequiredError}
1256
+ */
1257
+ async getUnreadCount(options) {
1258
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getUnreadCount(options);
1259
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1260
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getUnreadCount']?.[localVarOperationServerIndex]?.url;
1261
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1262
+ },
1263
+ /**
1264
+ * 전체 투표 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1265
+ * @summary 전체 투표 목록 조회
1266
+ * @param {number} [cursor] 다음 페이지 조회를 위한 커서 (이전 응답의 nextCursor)
1267
+ * @param {number} [size] 페이지 크기
1268
+ * @param {GetVoteListSortEnum} [sort] 정렬 기준: LATEST(최신순), POPULAR(인기순), ENDING_SOON(종료임박순)
1269
+ * @param {*} [options] Override http request option.
1270
+ * @throws {RequiredError}
1271
+ */
1272
+ async getVoteList(cursor, size, sort, options) {
1273
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getVoteList(cursor, size, sort, options);
1274
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1275
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.getVoteList']?.[localVarOperationServerIndex]?.url;
1276
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1277
+ },
1278
+ /**
1279
+ * 사용자 기본 프로필 정보를 초기화합니다.
1280
+ * @summary 기본 프로필 초기화
1281
+ * @param {UserProfileRequest} userProfileRequest
1282
+ * @param {*} [options] Override http request option.
1283
+ * @throws {RequiredError}
1284
+ */
1285
+ async initializeDefaultProfile(userProfileRequest, options) {
1286
+ const localVarAxiosArgs = await localVarAxiosParamCreator.initializeDefaultProfile(userProfileRequest, options);
1287
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1288
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.initializeDefaultProfile']?.[localVarOperationServerIndex]?.url;
1289
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1290
+ },
1291
+ /**
1292
+ * 닉네임 사용 가능 여부를 확인합니다.
1293
+ * @summary 닉네임 중복 확인
1294
+ * @param {UserNicknameRec} userNicknameRec
1295
+ * @param {*} [options] Override http request option.
1296
+ * @throws {RequiredError}
1297
+ */
1298
+ async isUniqueNickname(userNicknameRec, options) {
1299
+ const localVarAxiosArgs = await localVarAxiosParamCreator.isUniqueNickname(userNicknameRec, options);
1300
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1301
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.isUniqueNickname']?.[localVarOperationServerIndex]?.url;
1302
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1303
+ },
1304
+ /**
1305
+ * 모든 알림을 읽음 처리합니다.
1306
+ * @summary 모든 알림 읽음 처리
1307
+ * @param {*} [options] Override http request option.
1308
+ * @throws {RequiredError}
1309
+ */
1310
+ async markAllAsRead(options) {
1311
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markAllAsRead(options);
1312
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1313
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.markAllAsRead']?.[localVarOperationServerIndex]?.url;
1314
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1315
+ },
1316
+ /**
1317
+ * 특정 알림을 읽음 처리합니다.
1318
+ * @summary 알림 읽음 처리
1319
+ * @param {number} notificationId
1320
+ * @param {*} [options] Override http request option.
1321
+ * @throws {RequiredError}
1322
+ */
1323
+ async markAsRead(notificationId, options) {
1324
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markAsRead(notificationId, options);
1325
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1326
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.markAsRead']?.[localVarOperationServerIndex]?.url;
1327
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1328
+ },
1329
+ /**
1330
+ * 투표에 참여합니다. 비회원은 5회까지 무료 투표 가능합니다.
1331
+ * @summary 투표 참여
1332
+ * @param {number} voteId
1333
+ * @param {ParticipateRequest} participateRequest
1334
+ * @param {*} [options] Override http request option.
1335
+ * @throws {RequiredError}
1336
+ */
1337
+ async participate(voteId, participateRequest, options) {
1338
+ const localVarAxiosArgs = await localVarAxiosParamCreator.participate(voteId, participateRequest, options);
1339
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1340
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.participate']?.[localVarOperationServerIndex]?.url;
1341
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1342
+ },
1343
+ /**
1344
+ * 투표에 참여하거나 같은 옵션 재클릭 시 취소합니다. 비회원은 5회까지 무료 투표 가능합니다.
1345
+ * @summary 투표 참여/취소
1346
+ * @param {number} voteId
1347
+ * @param {ParticipateRequest} participateRequest
1348
+ * @param {*} [options] Override http request option.
1349
+ * @throws {RequiredError}
1350
+ */
1351
+ async participateOrCancel(voteId, participateRequest, options) {
1352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.participateOrCancel(voteId, participateRequest, options);
1353
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1354
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.participateOrCancel']?.[localVarOperationServerIndex]?.url;
1355
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1356
+ },
1357
+ /**
1358
+ * 이모지 반응을 추가/변경/취소합니다. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
1359
+ * @summary 몰입형 투표 이모지 반응
1360
+ * @param {number} voteId
1361
+ * @param {EmojiRequest} emojiRequest
1362
+ * @param {*} [options] Override http request option.
1363
+ * @throws {RequiredError}
1364
+ */
1365
+ async reactOnImmersiveVote(voteId, emojiRequest, options) {
1366
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reactOnImmersiveVote(voteId, emojiRequest, options);
1367
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1368
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.reactOnImmersiveVote']?.[localVarOperationServerIndex]?.url;
1369
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1370
+ },
1371
+ /**
1372
+ * 이모지 반응을 추가/변경/취소합니��. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
1373
+ * @summary 일반형 투표 이모지 반응
1374
+ * @param {number} voteId
1375
+ * @param {EmojiRequest} emojiRequest
1376
+ * @param {*} [options] Override http request option.
1377
+ * @throws {RequiredError}
1378
+ */
1379
+ async reactOnVote(voteId, emojiRequest, options) {
1380
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reactOnVote(voteId, emojiRequest, options);
1381
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1382
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.reactOnVote']?.[localVarOperationServerIndex]?.url;
1383
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1384
+ },
1385
+ /**
1386
+ * 사용자가 알림 권한 프롬프트를 거절했음을 기록합니다.
1387
+ * @summary 프롬프트 거절 기록
1388
+ * @param {*} [options] Override http request option.
1389
+ * @throws {RequiredError}
1390
+ */
1391
+ async recordDismissed(options) {
1392
+ const localVarAxiosArgs = await localVarAxiosParamCreator.recordDismissed(options);
1393
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1394
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.recordDismissed']?.[localVarOperationServerIndex]?.url;
1395
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1396
+ },
1397
+ /**
1398
+ * FCM/APNs 디바이스 토큰을 등록합니다. 투표 종료 시 푸시 알림 발송에 사용됩니다.
1399
+ * @summary 푸시 토큰 등록
1400
+ * @param {RegisterPushTokenRequest} registerPushTokenRequest
1401
+ * @param {*} [options] Override http request option.
1402
+ * @throws {RequiredError}
1403
+ */
1404
+ async register(registerPushTokenRequest, options) {
1405
+ const localVarAxiosArgs = await localVarAxiosParamCreator.register(registerPushTokenRequest, options);
1406
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1407
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.register']?.[localVarOperationServerIndex]?.url;
1408
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1409
+ },
1410
+ /**
1411
+ * Refresh Token으로 Access Token을 재발급합니다.
1412
+ * @summary 토큰 재발급
1413
+ * @param {*} [options] Override http request option.
1414
+ * @throws {RequiredError}
1415
+ */
1416
+ async reissue(options) {
1417
+ const localVarAxiosArgs = await localVarAxiosParamCreator.reissue(options);
1418
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1419
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.reissue']?.[localVarOperationServerIndex]?.url;
1420
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1421
+ },
1422
+ /**
1423
+ * 사용자 추가 정보(닉네임, 성별, 생년월일)를 설정합니다.
1424
+ * @summary 추가 정보 설정
1425
+ * @param {UserExtraInfo} userExtraInfo
1426
+ * @param {*} [options] Override http request option.
1427
+ * @throws {RequiredError}
1428
+ */
1429
+ async setupInfo(userExtraInfo, options) {
1430
+ const localVarAxiosArgs = await localVarAxiosParamCreator.setupInfo(userExtraInfo, options);
1431
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1432
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.setupInfo']?.[localVarOperationServerIndex]?.url;
1433
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1434
+ },
1435
+ /**
1436
+ * 사용 가능한 랜덤 닉네임을 추천합니다.
1437
+ * @summary 닉네임 추천
1438
+ * @param {*} [options] Override http request option.
1439
+ * @throws {RequiredError}
1440
+ */
1441
+ async suggestNickname(options) {
1442
+ const localVarAxiosArgs = await localVarAxiosParamCreator.suggestNickname(options);
1443
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1444
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.suggestNickname']?.[localVarOperationServerIndex]?.url;
1445
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1446
+ },
1447
+ /**
1448
+ * 등록된 모든 푸시 토큰을 해제합니다.
1449
+ * @summary 푸시 토큰 해제
1450
+ * @param {*} [options] Override http request option.
1451
+ * @throws {RequiredError}
1452
+ */
1453
+ async unregisterAll(options) {
1454
+ const localVarAxiosArgs = await localVarAxiosParamCreator.unregisterAll(options);
1455
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1456
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.unregisterAll']?.[localVarOperationServerIndex]?.url;
1457
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1458
+ },
1459
+ /**
1460
+ * 푸시 알림 ON/OFF 설정을 변경합니다.
1461
+ * @summary 알림 설정 변경
1462
+ * @param {UpdateNotificationSettingRequest} updateNotificationSettingRequest
1463
+ * @param {*} [options] Override http request option.
1464
+ * @throws {RequiredError}
1465
+ */
1466
+ async update(updateNotificationSettingRequest, options) {
1467
+ const localVarAxiosArgs = await localVarAxiosParamCreator.update(updateNotificationSettingRequest, options);
1468
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1469
+ const localVarOperationServerBasePath = base_1.operationServerMap['DefaultApi.update']?.[localVarOperationServerIndex]?.url;
1470
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1471
+ },
1472
+ };
1473
+ };
1474
+ exports.DefaultApiFp = DefaultApiFp;
1475
+ /**
1476
+ * DefaultApi - factory interface
1477
+ * @export
1478
+ */
1479
+ const DefaultApiFactory = function (configuration, basePath, axios) {
1480
+ const localVarFp = (0, exports.DefaultApiFp)(configuration);
1481
+ return {
1482
+ /**
1483
+ * 투표를 취소합니다. 회원만 가능합니다.
1484
+ * @summary 다시 투표하기
1485
+ * @param {number} voteId
1486
+ * @param {*} [options] Override http request option.
1487
+ * @throws {RequiredError}
1488
+ */
1489
+ cancel(voteId, options) {
1490
+ return localVarFp.cancel(voteId, options).then((request) => request(axios, basePath));
1491
+ },
1492
+ /**
1493
+ * 새로운 투표를 생성합니다. 회원만 가능합니다.
1494
+ * @summary 투표 생성
1495
+ * @param {VoteCreateRequest} voteCreateRequest
1496
+ * @param {*} [options] Override http request option.
1497
+ * @throws {RequiredError}
1498
+ */
1499
+ create(voteCreateRequest, options) {
1500
+ return localVarFp.create(voteCreateRequest, options).then((request) => request(axios, basePath));
1501
+ },
1502
+ /**
1503
+ * 현재 알림 설정 상태를 조회합니다.
1504
+ * @summary 알림 설정 조회
1505
+ * @param {*} [options] Override http request option.
1506
+ * @throws {RequiredError}
1507
+ */
1508
+ get(options) {
1509
+ return localVarFp.get(options).then((request) => request(axios, basePath));
1510
+ },
1511
+ /**
1512
+ * 투표 상세 정보를 조회합니다. 투표 전에는 결과(voteCount/ratio)가 null로 응답됩니다.
1513
+ * @summary 투표 상세 조회
1514
+ * @param {number} voteId
1515
+ * @param {*} [options] Override http request option.
1516
+ * @throws {RequiredError}
1517
+ */
1518
+ getDetail(voteId, options) {
1519
+ return localVarFp.getDetail(voteId, options).then((request) => request(axios, basePath));
1520
+ },
1521
+ /**
1522
+ * 스와이프 형식의 몰입형 투표 피드를 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1523
+ * @summary 몰입형 투표 피드 조회
1524
+ * @param {number} [cursor]
1525
+ * @param {number} [size]
1526
+ * @param {*} [options] Override http request option.
1527
+ * @throws {RequiredError}
1528
+ */
1529
+ getFeed(cursor, size, options) {
1530
+ return localVarFp.getFeed(cursor, size, options).then((request) => request(axios, basePath));
1531
+ },
1532
+ /**
1533
+ * 비회원의 잔여 무료 투표권 수를 조회합니다. 회원은 remainingFreeVotes가 null로 응답됩니다.
1534
+ * @summary 잔여 무료 투표권 조회
1535
+ * @param {*} [options] Override http request option.
1536
+ * @throws {RequiredError}
1537
+ */
1538
+ getFreeVotes(options) {
1539
+ return localVarFp.getFreeVotes(options).then((request) => request(axios, basePath));
1540
+ },
1541
+ /**
1542
+ * 인기 점수 기준 상위 3개 투표를 조회합니다. 인기 점수 = (참여 수 × 0.7) + (조회 수 × 0.3)
1543
+ * @summary 핫토픽 TOP 3 조회
1544
+ * @param {*} [options] Override http request option.
1545
+ * @throws {RequiredError}
1546
+ */
1547
+ getHotTopics(options) {
1548
+ return localVarFp.getHotTopics(options).then((request) => request(axios, basePath));
1549
+ },
1550
+ /**
1551
+ * 알림 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1552
+ * @summary 알림 목록 조회
1553
+ * @param {number} [cursor]
1554
+ * @param {number} [size]
1555
+ * @param {*} [options] Override http request option.
1556
+ * @throws {RequiredError}
1557
+ */
1558
+ getList(cursor, size, options) {
1559
+ return localVarFp.getList(cursor, size, options).then((request) => request(axios, basePath));
1560
+ },
1561
+ /**
1562
+ * 투표 후 실시간 비율 갱신을 위한 폴링 API입니다.
1563
+ * @summary 실시간 투표 현황 조회
1564
+ * @param {number} voteId
1565
+ * @param {*} [options] Override http request option.
1566
+ * @throws {RequiredError}
1567
+ */
1568
+ getLive(voteId, options) {
1569
+ return localVarFp.getLive(voteId, options).then((request) => request(axios, basePath));
1570
+ },
1571
+ /**
1572
+ * 로그인한 사용자의 프로필 정보를 조회합니다.
1573
+ * @summary 내 프로필 조회
1574
+ * @param {*} [options] Override http request option.
1575
+ * @throws {RequiredError}
1576
+ */
1577
+ getMyProfile(options) {
1578
+ return localVarFp.getMyProfile(options).then((request) => request(axios, basePath));
1579
+ },
1580
+ /**
1581
+ * 운영진이 선정한 오늘의 추천 투표 목록을 조회합니다.
1582
+ * @summary 오늘의 추천 조회
1583
+ * @param {*} [options] Override http request option.
1584
+ * @throws {RequiredError}
1585
+ */
1586
+ getRecommendations(options) {
1587
+ return localVarFp.getRecommendations(options).then((request) => request(axios, basePath));
1588
+ },
1589
+ /**
1590
+ * 마감된 투표의 결과를 조회합니다. 진행 중 투표는 403 응답합니다. 비회원은 insight가 잠금 상태로 응답됩니다.
1591
+ * @summary 투표 결과 조회
1592
+ * @param {number} voteId
1593
+ * @param {*} [options] Override http request option.
1594
+ * @throws {RequiredError}
1595
+ */
1596
+ getResult(voteId, options) {
1597
+ return localVarFp.getResult(voteId, options).then((request) => request(axios, basePath));
1598
+ },
1599
+ /**
1600
+ * 투표 공유를 위한 링크를 생성합니다.
1601
+ * @summary 공유 링크 생성
1602
+ * @param {number} voteId
1603
+ * @param {*} [options] Override http request option.
1604
+ * @throws {RequiredError}
1605
+ */
1606
+ getShareLink(voteId, options) {
1607
+ return localVarFp.getShareLink(voteId, options).then((request) => request(axios, basePath));
1608
+ },
1609
+ /**
1610
+ * 투표 공유를 위한 링크를 생성합니다.
1611
+ * @summary 공유 링크 생성
1612
+ * @param {number} voteId
1613
+ * @param {*} [options] Override http request option.
1614
+ * @throws {RequiredError}
1615
+ */
1616
+ getShareLink1(voteId, options) {
1617
+ return localVarFp.getShareLink1(voteId, options).then((request) => request(axios, basePath));
1618
+ },
1619
+ /**
1620
+ * 알림 권한 요청 프롬프트를 표시해야 하는지 여부를 조회합니다.
1621
+ * @summary 프롬프트 표시 여부 조회
1622
+ * @param {*} [options] Override http request option.
1623
+ * @throws {RequiredError}
1624
+ */
1625
+ getStatus(options) {
1626
+ return localVarFp.getStatus(options).then((request) => request(axios, basePath));
1627
+ },
1628
+ /**
1629
+ * 읽지 않은 알림의 개수를 조회합니다.
1630
+ * @summary 읽지 않은 알림 수 조회
1631
+ * @param {*} [options] Override http request option.
1632
+ * @throws {RequiredError}
1633
+ */
1634
+ getUnreadCount(options) {
1635
+ return localVarFp.getUnreadCount(options).then((request) => request(axios, basePath));
1636
+ },
1637
+ /**
1638
+ * 전체 투표 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1639
+ * @summary 전체 투표 목록 조회
1640
+ * @param {number} [cursor] 다음 페이지 조회를 위한 커서 (이전 응답의 nextCursor)
1641
+ * @param {number} [size] 페이지 크기
1642
+ * @param {GetVoteListSortEnum} [sort] 정렬 기준: LATEST(최신순), POPULAR(인기순), ENDING_SOON(종료임박순)
1643
+ * @param {*} [options] Override http request option.
1644
+ * @throws {RequiredError}
1645
+ */
1646
+ getVoteList(cursor, size, sort, options) {
1647
+ return localVarFp.getVoteList(cursor, size, sort, options).then((request) => request(axios, basePath));
1648
+ },
1649
+ /**
1650
+ * 사용자 기본 프로필 정보를 초기화합니다.
1651
+ * @summary 기본 프로필 초기화
1652
+ * @param {UserProfileRequest} userProfileRequest
1653
+ * @param {*} [options] Override http request option.
1654
+ * @throws {RequiredError}
1655
+ */
1656
+ initializeDefaultProfile(userProfileRequest, options) {
1657
+ return localVarFp.initializeDefaultProfile(userProfileRequest, options).then((request) => request(axios, basePath));
1658
+ },
1659
+ /**
1660
+ * 닉네임 사용 가능 여부를 확인합니다.
1661
+ * @summary 닉네임 중복 확인
1662
+ * @param {UserNicknameRec} userNicknameRec
1663
+ * @param {*} [options] Override http request option.
1664
+ * @throws {RequiredError}
1665
+ */
1666
+ isUniqueNickname(userNicknameRec, options) {
1667
+ return localVarFp.isUniqueNickname(userNicknameRec, options).then((request) => request(axios, basePath));
1668
+ },
1669
+ /**
1670
+ * 모든 알림을 읽음 처리합니다.
1671
+ * @summary 모든 알림 읽음 처리
1672
+ * @param {*} [options] Override http request option.
1673
+ * @throws {RequiredError}
1674
+ */
1675
+ markAllAsRead(options) {
1676
+ return localVarFp.markAllAsRead(options).then((request) => request(axios, basePath));
1677
+ },
1678
+ /**
1679
+ * 특정 알림을 읽음 처리합니다.
1680
+ * @summary 알림 읽음 처리
1681
+ * @param {number} notificationId
1682
+ * @param {*} [options] Override http request option.
1683
+ * @throws {RequiredError}
1684
+ */
1685
+ markAsRead(notificationId, options) {
1686
+ return localVarFp.markAsRead(notificationId, options).then((request) => request(axios, basePath));
1687
+ },
1688
+ /**
1689
+ * 투표에 참여합니다. 비회원은 5회까지 무료 투표 가능합니다.
1690
+ * @summary 투표 참여
1691
+ * @param {number} voteId
1692
+ * @param {ParticipateRequest} participateRequest
1693
+ * @param {*} [options] Override http request option.
1694
+ * @throws {RequiredError}
1695
+ */
1696
+ participate(voteId, participateRequest, options) {
1697
+ return localVarFp.participate(voteId, participateRequest, options).then((request) => request(axios, basePath));
1698
+ },
1699
+ /**
1700
+ * 투표에 참여하거나 같은 옵션 재클릭 시 취소합니다. 비회원은 5회까지 무료 투표 가능합니다.
1701
+ * @summary 투표 참여/취소
1702
+ * @param {number} voteId
1703
+ * @param {ParticipateRequest} participateRequest
1704
+ * @param {*} [options] Override http request option.
1705
+ * @throws {RequiredError}
1706
+ */
1707
+ participateOrCancel(voteId, participateRequest, options) {
1708
+ return localVarFp.participateOrCancel(voteId, participateRequest, options).then((request) => request(axios, basePath));
1709
+ },
1710
+ /**
1711
+ * 이모지 반응을 추가/변경/취소합니다. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
1712
+ * @summary 몰입형 투표 이모지 반응
1713
+ * @param {number} voteId
1714
+ * @param {EmojiRequest} emojiRequest
1715
+ * @param {*} [options] Override http request option.
1716
+ * @throws {RequiredError}
1717
+ */
1718
+ reactOnImmersiveVote(voteId, emojiRequest, options) {
1719
+ return localVarFp.reactOnImmersiveVote(voteId, emojiRequest, options).then((request) => request(axios, basePath));
1720
+ },
1721
+ /**
1722
+ * 이모지 반응을 추가/변경/취소합니��. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
1723
+ * @summary 일반형 투표 이모지 반응
1724
+ * @param {number} voteId
1725
+ * @param {EmojiRequest} emojiRequest
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ */
1729
+ reactOnVote(voteId, emojiRequest, options) {
1730
+ return localVarFp.reactOnVote(voteId, emojiRequest, options).then((request) => request(axios, basePath));
1731
+ },
1732
+ /**
1733
+ * 사용자가 알림 권한 프롬프트를 거절했음을 기록합니다.
1734
+ * @summary 프롬프트 거절 기록
1735
+ * @param {*} [options] Override http request option.
1736
+ * @throws {RequiredError}
1737
+ */
1738
+ recordDismissed(options) {
1739
+ return localVarFp.recordDismissed(options).then((request) => request(axios, basePath));
1740
+ },
1741
+ /**
1742
+ * FCM/APNs 디바이스 토큰을 등록합니다. 투표 종료 시 푸시 알림 발송에 사용됩니다.
1743
+ * @summary 푸시 토큰 등록
1744
+ * @param {RegisterPushTokenRequest} registerPushTokenRequest
1745
+ * @param {*} [options] Override http request option.
1746
+ * @throws {RequiredError}
1747
+ */
1748
+ register(registerPushTokenRequest, options) {
1749
+ return localVarFp.register(registerPushTokenRequest, options).then((request) => request(axios, basePath));
1750
+ },
1751
+ /**
1752
+ * Refresh Token으로 Access Token을 재발급합니다.
1753
+ * @summary 토큰 재발급
1754
+ * @param {*} [options] Override http request option.
1755
+ * @throws {RequiredError}
1756
+ */
1757
+ reissue(options) {
1758
+ return localVarFp.reissue(options).then((request) => request(axios, basePath));
1759
+ },
1760
+ /**
1761
+ * 사용자 추가 정보(닉네임, 성별, 생년월일)를 설정합니다.
1762
+ * @summary 추가 정보 설정
1763
+ * @param {UserExtraInfo} userExtraInfo
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ setupInfo(userExtraInfo, options) {
1768
+ return localVarFp.setupInfo(userExtraInfo, options).then((request) => request(axios, basePath));
1769
+ },
1770
+ /**
1771
+ * 사용 가능한 랜덤 닉네임을 추천합니다.
1772
+ * @summary 닉네임 추천
1773
+ * @param {*} [options] Override http request option.
1774
+ * @throws {RequiredError}
1775
+ */
1776
+ suggestNickname(options) {
1777
+ return localVarFp.suggestNickname(options).then((request) => request(axios, basePath));
1778
+ },
1779
+ /**
1780
+ * 등록된 모든 푸시 토큰을 해제합니다.
1781
+ * @summary 푸시 토큰 해제
1782
+ * @param {*} [options] Override http request option.
1783
+ * @throws {RequiredError}
1784
+ */
1785
+ unregisterAll(options) {
1786
+ return localVarFp.unregisterAll(options).then((request) => request(axios, basePath));
1787
+ },
1788
+ /**
1789
+ * 푸시 알림 ON/OFF 설정을 변경합니다.
1790
+ * @summary 알림 설정 변경
1791
+ * @param {UpdateNotificationSettingRequest} updateNotificationSettingRequest
1792
+ * @param {*} [options] Override http request option.
1793
+ * @throws {RequiredError}
1794
+ */
1795
+ update(updateNotificationSettingRequest, options) {
1796
+ return localVarFp.update(updateNotificationSettingRequest, options).then((request) => request(axios, basePath));
1797
+ },
1798
+ };
1799
+ };
1800
+ exports.DefaultApiFactory = DefaultApiFactory;
1801
+ /**
1802
+ * DefaultApi - object-oriented interface
1803
+ * @export
1804
+ * @class DefaultApi
1805
+ * @extends {BaseAPI}
1806
+ */
1807
+ class DefaultApi extends base_1.BaseAPI {
1808
+ /**
1809
+ * 투표를 취소합니다. 회원만 가능합니다.
1810
+ * @summary 다시 투표하기
1811
+ * @param {number} voteId
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ * @memberof DefaultApi
1815
+ */
1816
+ cancel(voteId, options) {
1817
+ return (0, exports.DefaultApiFp)(this.configuration).cancel(voteId, options).then((request) => request(this.axios, this.basePath));
1818
+ }
1819
+ /**
1820
+ * 새로운 투표를 생성합니다. 회원만 가능합니다.
1821
+ * @summary 투표 생성
1822
+ * @param {VoteCreateRequest} voteCreateRequest
1823
+ * @param {*} [options] Override http request option.
1824
+ * @throws {RequiredError}
1825
+ * @memberof DefaultApi
1826
+ */
1827
+ create(voteCreateRequest, options) {
1828
+ return (0, exports.DefaultApiFp)(this.configuration).create(voteCreateRequest, options).then((request) => request(this.axios, this.basePath));
1829
+ }
1830
+ /**
1831
+ * 현재 알림 설정 상태를 조회합니다.
1832
+ * @summary 알림 설정 조회
1833
+ * @param {*} [options] Override http request option.
1834
+ * @throws {RequiredError}
1835
+ * @memberof DefaultApi
1836
+ */
1837
+ get(options) {
1838
+ return (0, exports.DefaultApiFp)(this.configuration).get(options).then((request) => request(this.axios, this.basePath));
1839
+ }
1840
+ /**
1841
+ * 투표 상세 정보를 조회합니다. 투표 전에는 결과(voteCount/ratio)가 null로 응답됩니다.
1842
+ * @summary 투표 상세 조회
1843
+ * @param {number} voteId
1844
+ * @param {*} [options] Override http request option.
1845
+ * @throws {RequiredError}
1846
+ * @memberof DefaultApi
1847
+ */
1848
+ getDetail(voteId, options) {
1849
+ return (0, exports.DefaultApiFp)(this.configuration).getDetail(voteId, options).then((request) => request(this.axios, this.basePath));
1850
+ }
1851
+ /**
1852
+ * 스와이프 형식의 몰입형 투표 피드를 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1853
+ * @summary 몰입형 투표 피드 조회
1854
+ * @param {number} [cursor]
1855
+ * @param {number} [size]
1856
+ * @param {*} [options] Override http request option.
1857
+ * @throws {RequiredError}
1858
+ * @memberof DefaultApi
1859
+ */
1860
+ getFeed(cursor, size, options) {
1861
+ return (0, exports.DefaultApiFp)(this.configuration).getFeed(cursor, size, options).then((request) => request(this.axios, this.basePath));
1862
+ }
1863
+ /**
1864
+ * 비회원의 잔여 무료 투표권 수를 조회합니다. 회원은 remainingFreeVotes가 null로 응답됩니다.
1865
+ * @summary 잔여 무료 투표권 조회
1866
+ * @param {*} [options] Override http request option.
1867
+ * @throws {RequiredError}
1868
+ * @memberof DefaultApi
1869
+ */
1870
+ getFreeVotes(options) {
1871
+ return (0, exports.DefaultApiFp)(this.configuration).getFreeVotes(options).then((request) => request(this.axios, this.basePath));
1872
+ }
1873
+ /**
1874
+ * 인기 점수 기준 상위 3개 투표를 조회합니다. 인기 점수 = (참여 수 × 0.7) + (조회 수 × 0.3)
1875
+ * @summary 핫토픽 TOP 3 조회
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ * @memberof DefaultApi
1879
+ */
1880
+ getHotTopics(options) {
1881
+ return (0, exports.DefaultApiFp)(this.configuration).getHotTopics(options).then((request) => request(this.axios, this.basePath));
1882
+ }
1883
+ /**
1884
+ * 알림 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1885
+ * @summary 알림 목록 조회
1886
+ * @param {number} [cursor]
1887
+ * @param {number} [size]
1888
+ * @param {*} [options] Override http request option.
1889
+ * @throws {RequiredError}
1890
+ * @memberof DefaultApi
1891
+ */
1892
+ getList(cursor, size, options) {
1893
+ return (0, exports.DefaultApiFp)(this.configuration).getList(cursor, size, options).then((request) => request(this.axios, this.basePath));
1894
+ }
1895
+ /**
1896
+ * 투표 후 실시간 비율 갱신을 위한 폴링 API입니다.
1897
+ * @summary 실시간 투표 현황 조회
1898
+ * @param {number} voteId
1899
+ * @param {*} [options] Override http request option.
1900
+ * @throws {RequiredError}
1901
+ * @memberof DefaultApi
1902
+ */
1903
+ getLive(voteId, options) {
1904
+ return (0, exports.DefaultApiFp)(this.configuration).getLive(voteId, options).then((request) => request(this.axios, this.basePath));
1905
+ }
1906
+ /**
1907
+ * 로그인한 사용자의 프로필 정보를 조회합니다.
1908
+ * @summary 내 프로필 조회
1909
+ * @param {*} [options] Override http request option.
1910
+ * @throws {RequiredError}
1911
+ * @memberof DefaultApi
1912
+ */
1913
+ getMyProfile(options) {
1914
+ return (0, exports.DefaultApiFp)(this.configuration).getMyProfile(options).then((request) => request(this.axios, this.basePath));
1915
+ }
1916
+ /**
1917
+ * 운영진이 선정한 오늘의 추천 투표 목록을 조회합니다.
1918
+ * @summary 오늘의 추천 조회
1919
+ * @param {*} [options] Override http request option.
1920
+ * @throws {RequiredError}
1921
+ * @memberof DefaultApi
1922
+ */
1923
+ getRecommendations(options) {
1924
+ return (0, exports.DefaultApiFp)(this.configuration).getRecommendations(options).then((request) => request(this.axios, this.basePath));
1925
+ }
1926
+ /**
1927
+ * 마감된 투표의 결과를 조회합니다. 진행 중 투표는 403 응답합니다. 비회원은 insight가 잠금 상태로 응답됩니다.
1928
+ * @summary 투표 결과 조회
1929
+ * @param {number} voteId
1930
+ * @param {*} [options] Override http request option.
1931
+ * @throws {RequiredError}
1932
+ * @memberof DefaultApi
1933
+ */
1934
+ getResult(voteId, options) {
1935
+ return (0, exports.DefaultApiFp)(this.configuration).getResult(voteId, options).then((request) => request(this.axios, this.basePath));
1936
+ }
1937
+ /**
1938
+ * 투표 공유를 위한 링크를 생성합니다.
1939
+ * @summary 공유 링크 생성
1940
+ * @param {number} voteId
1941
+ * @param {*} [options] Override http request option.
1942
+ * @throws {RequiredError}
1943
+ * @memberof DefaultApi
1944
+ */
1945
+ getShareLink(voteId, options) {
1946
+ return (0, exports.DefaultApiFp)(this.configuration).getShareLink(voteId, options).then((request) => request(this.axios, this.basePath));
1947
+ }
1948
+ /**
1949
+ * 투표 공유를 위한 링크를 생성합니다.
1950
+ * @summary 공유 링크 생성
1951
+ * @param {number} voteId
1952
+ * @param {*} [options] Override http request option.
1953
+ * @throws {RequiredError}
1954
+ * @memberof DefaultApi
1955
+ */
1956
+ getShareLink1(voteId, options) {
1957
+ return (0, exports.DefaultApiFp)(this.configuration).getShareLink1(voteId, options).then((request) => request(this.axios, this.basePath));
1958
+ }
1959
+ /**
1960
+ * 알림 권한 요청 프롬프트를 표시해야 하는지 여부를 조회합니다.
1961
+ * @summary 프롬프트 표시 여부 조회
1962
+ * @param {*} [options] Override http request option.
1963
+ * @throws {RequiredError}
1964
+ * @memberof DefaultApi
1965
+ */
1966
+ getStatus(options) {
1967
+ return (0, exports.DefaultApiFp)(this.configuration).getStatus(options).then((request) => request(this.axios, this.basePath));
1968
+ }
1969
+ /**
1970
+ * 읽지 않은 알림의 개수를 조회합니다.
1971
+ * @summary 읽지 않은 알림 수 조회
1972
+ * @param {*} [options] Override http request option.
1973
+ * @throws {RequiredError}
1974
+ * @memberof DefaultApi
1975
+ */
1976
+ getUnreadCount(options) {
1977
+ return (0, exports.DefaultApiFp)(this.configuration).getUnreadCount(options).then((request) => request(this.axios, this.basePath));
1978
+ }
1979
+ /**
1980
+ * 전체 투표 목록을 조회합니다. 커서 기반 페이지네이션을 지원합니다.
1981
+ * @summary 전체 투표 목록 조회
1982
+ * @param {number} [cursor] 다음 페이지 조회를 위한 커서 (이전 응답의 nextCursor)
1983
+ * @param {number} [size] 페이지 크기
1984
+ * @param {GetVoteListSortEnum} [sort] 정렬 기준: LATEST(최신순), POPULAR(인기순), ENDING_SOON(종료임박순)
1985
+ * @param {*} [options] Override http request option.
1986
+ * @throws {RequiredError}
1987
+ * @memberof DefaultApi
1988
+ */
1989
+ getVoteList(cursor, size, sort, options) {
1990
+ return (0, exports.DefaultApiFp)(this.configuration).getVoteList(cursor, size, sort, options).then((request) => request(this.axios, this.basePath));
1991
+ }
1992
+ /**
1993
+ * 사용자 기본 프로필 정보를 초기화합니다.
1994
+ * @summary 기본 프로필 초기화
1995
+ * @param {UserProfileRequest} userProfileRequest
1996
+ * @param {*} [options] Override http request option.
1997
+ * @throws {RequiredError}
1998
+ * @memberof DefaultApi
1999
+ */
2000
+ initializeDefaultProfile(userProfileRequest, options) {
2001
+ return (0, exports.DefaultApiFp)(this.configuration).initializeDefaultProfile(userProfileRequest, options).then((request) => request(this.axios, this.basePath));
2002
+ }
2003
+ /**
2004
+ * 닉네임 사용 가능 여부를 확인합니다.
2005
+ * @summary 닉네임 중복 확인
2006
+ * @param {UserNicknameRec} userNicknameRec
2007
+ * @param {*} [options] Override http request option.
2008
+ * @throws {RequiredError}
2009
+ * @memberof DefaultApi
2010
+ */
2011
+ isUniqueNickname(userNicknameRec, options) {
2012
+ return (0, exports.DefaultApiFp)(this.configuration).isUniqueNickname(userNicknameRec, options).then((request) => request(this.axios, this.basePath));
2013
+ }
2014
+ /**
2015
+ * 모든 알림을 읽음 처리합니다.
2016
+ * @summary 모든 알림 읽음 처리
2017
+ * @param {*} [options] Override http request option.
2018
+ * @throws {RequiredError}
2019
+ * @memberof DefaultApi
2020
+ */
2021
+ markAllAsRead(options) {
2022
+ return (0, exports.DefaultApiFp)(this.configuration).markAllAsRead(options).then((request) => request(this.axios, this.basePath));
2023
+ }
2024
+ /**
2025
+ * 특정 알림을 읽음 처리합니다.
2026
+ * @summary 알림 읽음 처리
2027
+ * @param {number} notificationId
2028
+ * @param {*} [options] Override http request option.
2029
+ * @throws {RequiredError}
2030
+ * @memberof DefaultApi
2031
+ */
2032
+ markAsRead(notificationId, options) {
2033
+ return (0, exports.DefaultApiFp)(this.configuration).markAsRead(notificationId, options).then((request) => request(this.axios, this.basePath));
2034
+ }
2035
+ /**
2036
+ * 투표에 참여합니다. 비회원은 5회까지 무료 투표 가능합니다.
2037
+ * @summary 투표 참여
2038
+ * @param {number} voteId
2039
+ * @param {ParticipateRequest} participateRequest
2040
+ * @param {*} [options] Override http request option.
2041
+ * @throws {RequiredError}
2042
+ * @memberof DefaultApi
2043
+ */
2044
+ participate(voteId, participateRequest, options) {
2045
+ return (0, exports.DefaultApiFp)(this.configuration).participate(voteId, participateRequest, options).then((request) => request(this.axios, this.basePath));
2046
+ }
2047
+ /**
2048
+ * 투표에 참여하거나 같은 옵션 재클릭 시 취소합니다. 비회원은 5회까지 무료 투표 가능합니다.
2049
+ * @summary 투표 참여/취소
2050
+ * @param {number} voteId
2051
+ * @param {ParticipateRequest} participateRequest
2052
+ * @param {*} [options] Override http request option.
2053
+ * @throws {RequiredError}
2054
+ * @memberof DefaultApi
2055
+ */
2056
+ participateOrCancel(voteId, participateRequest, options) {
2057
+ return (0, exports.DefaultApiFp)(this.configuration).participateOrCancel(voteId, participateRequest, options).then((request) => request(this.axios, this.basePath));
2058
+ }
2059
+ /**
2060
+ * 이모지 반응을 추가/변경/취소합니다. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
2061
+ * @summary 몰입형 투표 이모지 반응
2062
+ * @param {number} voteId
2063
+ * @param {EmojiRequest} emojiRequest
2064
+ * @param {*} [options] Override http request option.
2065
+ * @throws {RequiredError}
2066
+ * @memberof DefaultApi
2067
+ */
2068
+ reactOnImmersiveVote(voteId, emojiRequest, options) {
2069
+ return (0, exports.DefaultApiFp)(this.configuration).reactOnImmersiveVote(voteId, emojiRequest, options).then((request) => request(this.axios, this.basePath));
2070
+ }
2071
+ /**
2072
+ * 이모지 반응을 추가/변경/취소합니��. 같은 이모지 재선택 또는 null 전송 시 취소됩니다.
2073
+ * @summary 일반형 투표 이모지 반응
2074
+ * @param {number} voteId
2075
+ * @param {EmojiRequest} emojiRequest
2076
+ * @param {*} [options] Override http request option.
2077
+ * @throws {RequiredError}
2078
+ * @memberof DefaultApi
2079
+ */
2080
+ reactOnVote(voteId, emojiRequest, options) {
2081
+ return (0, exports.DefaultApiFp)(this.configuration).reactOnVote(voteId, emojiRequest, options).then((request) => request(this.axios, this.basePath));
2082
+ }
2083
+ /**
2084
+ * 사용자가 알림 권한 프롬프트를 거절했음을 기록합니다.
2085
+ * @summary 프롬프트 거절 기록
2086
+ * @param {*} [options] Override http request option.
2087
+ * @throws {RequiredError}
2088
+ * @memberof DefaultApi
2089
+ */
2090
+ recordDismissed(options) {
2091
+ return (0, exports.DefaultApiFp)(this.configuration).recordDismissed(options).then((request) => request(this.axios, this.basePath));
2092
+ }
2093
+ /**
2094
+ * FCM/APNs 디바이스 토큰을 등록합니다. 투표 종료 시 푸시 알림 발송에 사용됩니다.
2095
+ * @summary 푸시 토큰 등록
2096
+ * @param {RegisterPushTokenRequest} registerPushTokenRequest
2097
+ * @param {*} [options] Override http request option.
2098
+ * @throws {RequiredError}
2099
+ * @memberof DefaultApi
2100
+ */
2101
+ register(registerPushTokenRequest, options) {
2102
+ return (0, exports.DefaultApiFp)(this.configuration).register(registerPushTokenRequest, options).then((request) => request(this.axios, this.basePath));
2103
+ }
2104
+ /**
2105
+ * Refresh Token으로 Access Token을 재발급합니다.
2106
+ * @summary 토큰 재발급
2107
+ * @param {*} [options] Override http request option.
2108
+ * @throws {RequiredError}
2109
+ * @memberof DefaultApi
2110
+ */
2111
+ reissue(options) {
2112
+ return (0, exports.DefaultApiFp)(this.configuration).reissue(options).then((request) => request(this.axios, this.basePath));
2113
+ }
2114
+ /**
2115
+ * 사용자 추가 정보(닉네임, 성별, 생년월일)를 설정합니다.
2116
+ * @summary 추가 정보 설정
2117
+ * @param {UserExtraInfo} userExtraInfo
2118
+ * @param {*} [options] Override http request option.
2119
+ * @throws {RequiredError}
2120
+ * @memberof DefaultApi
2121
+ */
2122
+ setupInfo(userExtraInfo, options) {
2123
+ return (0, exports.DefaultApiFp)(this.configuration).setupInfo(userExtraInfo, options).then((request) => request(this.axios, this.basePath));
2124
+ }
2125
+ /**
2126
+ * 사용 가능한 랜덤 닉네임을 추천합니다.
2127
+ * @summary 닉네임 추천
2128
+ * @param {*} [options] Override http request option.
2129
+ * @throws {RequiredError}
2130
+ * @memberof DefaultApi
2131
+ */
2132
+ suggestNickname(options) {
2133
+ return (0, exports.DefaultApiFp)(this.configuration).suggestNickname(options).then((request) => request(this.axios, this.basePath));
2134
+ }
2135
+ /**
2136
+ * 등록된 모든 푸시 토큰을 해제합니다.
2137
+ * @summary 푸시 토큰 해제
2138
+ * @param {*} [options] Override http request option.
2139
+ * @throws {RequiredError}
2140
+ * @memberof DefaultApi
2141
+ */
2142
+ unregisterAll(options) {
2143
+ return (0, exports.DefaultApiFp)(this.configuration).unregisterAll(options).then((request) => request(this.axios, this.basePath));
2144
+ }
2145
+ /**
2146
+ * 푸시 알림 ON/OFF 설정을 변경합니다.
2147
+ * @summary 알림 설정 변경
2148
+ * @param {UpdateNotificationSettingRequest} updateNotificationSettingRequest
2149
+ * @param {*} [options] Override http request option.
2150
+ * @throws {RequiredError}
2151
+ * @memberof DefaultApi
2152
+ */
2153
+ update(updateNotificationSettingRequest, options) {
2154
+ return (0, exports.DefaultApiFp)(this.configuration).update(updateNotificationSettingRequest, options).then((request) => request(this.axios, this.basePath));
2155
+ }
2156
+ }
2157
+ exports.DefaultApi = DefaultApi;
2158
+ /**
2159
+ * @export
2160
+ */
2161
+ exports.GetVoteListSortEnum = {
2162
+ Latest: 'LATEST',
2163
+ Popular: 'POPULAR',
2164
+ EndingSoon: 'ENDING_SOON'
2165
+ };