@ject-4-vs-team/api-client 2026.517.1 → 2026.525.1

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