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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/api/chat-api.d.ts +4 -4
  2. package/dist/api/chat-api.js +10 -10
  3. package/dist/api/default-api.d.ts +1118 -0
  4. package/dist/api/default-api.js +2165 -0
  5. package/dist/api.d.ts +1 -7
  6. package/dist/api.js +1 -7
  7. package/dist/models/emoji-response.d.ts +2 -4
  8. package/dist/models/emoji-summary.d.ts +18 -0
  9. package/dist/models/free-votes-response.d.ts +2 -1
  10. package/dist/models/gender-detail.d.ts +15 -0
  11. package/dist/models/gender-detail.js +15 -0
  12. package/dist/models/gender-distribution-response.d.ts +5 -2
  13. package/dist/models/home-hot-topic-response.d.ts +15 -0
  14. package/dist/models/home-hot-topic-response.js +15 -0
  15. package/dist/models/home-recommendation-response.d.ts +15 -0
  16. package/dist/models/home-recommendation-response.js +15 -0
  17. package/dist/models/home-vote-list-response.d.ts +17 -0
  18. package/dist/models/home-vote-list-response.js +15 -0
  19. package/dist/models/{feed-item.d.ts → hot-topic-item.d.ts} +5 -6
  20. package/dist/models/hot-topic-item.js +15 -0
  21. package/dist/models/immersive-feed-response.d.ts +2 -2
  22. package/dist/models/immersive-live-response.d.ts +3 -4
  23. package/dist/models/index.d.ts +19 -1
  24. package/dist/models/index.js +19 -1
  25. package/dist/models/my-vote.d.ts +15 -0
  26. package/dist/models/my-vote.js +15 -0
  27. package/dist/models/notification-item.d.ts +25 -0
  28. package/dist/models/notification-item.js +19 -0
  29. package/dist/models/notification-list-response.d.ts +17 -0
  30. package/dist/models/notification-list-response.js +15 -0
  31. package/dist/models/notification-setting-response.d.ts +16 -0
  32. package/dist/models/notification-setting-response.js +15 -0
  33. package/dist/models/prompt-status-response.d.ts +15 -0
  34. package/dist/models/prompt-status-response.js +15 -0
  35. package/dist/models/read-all-response.d.ts +14 -0
  36. package/dist/models/read-all-response.js +15 -0
  37. package/dist/models/recommendation-item.d.ts +18 -0
  38. package/dist/models/recommendation-item.js +15 -0
  39. package/dist/models/register-push-token-request.d.ts +20 -0
  40. package/dist/models/register-push-token-request.js +20 -0
  41. package/dist/models/result-options.d.ts +15 -0
  42. package/dist/models/result-options.js +15 -0
  43. package/dist/models/share-link-response.d.ts +3 -1
  44. package/dist/models/unread-count-response.d.ts +14 -0
  45. package/dist/models/unread-count-response.js +15 -0
  46. package/dist/models/update-notification-setting-request.d.ts +14 -0
  47. package/dist/models/update-notification-setting-request.js +15 -0
  48. package/dist/models/vote-detail-response.d.ts +6 -6
  49. package/dist/models/vote-item.d.ts +27 -0
  50. package/dist/models/vote-item.js +15 -0
  51. package/dist/models/vote-list-item.d.ts +24 -0
  52. package/dist/models/vote-list-item.js +20 -0
  53. package/dist/models/vote-result-response.d.ts +7 -3
  54. package/package.json +1 -1
  55. package/dist/api/auth-controller-api.d.ts +0 -65
  56. package/dist/api/auth-controller-api.js +0 -118
  57. package/dist/api/guest-free-vote-controller-api.d.ts +0 -70
  58. package/dist/api/guest-free-vote-controller-api.js +0 -127
  59. package/dist/api/immersive-vote-controller-api.d.ts +0 -147
  60. package/dist/api/immersive-vote-controller-api.js +0 -282
  61. package/dist/api/user-controller-api.d.ts +0 -183
  62. package/dist/api/user-controller-api.js +0 -362
  63. package/dist/api/vote-controller-api.d.ts +0 -173
  64. package/dist/api/vote-controller-api.js +0 -338
  65. package/dist/api/vote-emoji-controller-api.d.ts +0 -116
  66. package/dist/api/vote-emoji-controller-api.js +0 -221
  67. package/dist/api/vote-result-controller-api.d.ts +0 -100
  68. package/dist/api/vote-result-controller-api.js +0 -187
  69. /package/dist/models/{feed-item.js → emoji-summary.js} +0 -0
@@ -1,338 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * VS Server API
6
- * JECT 4기 2팀 VS Server API
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.VoteControllerApi = exports.VoteControllerApiFactory = exports.VoteControllerApiFp = exports.VoteControllerApiAxiosParamCreator = 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
- * VoteControllerApi - axios parameter creator
28
- * @export
29
- */
30
- const VoteControllerApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- *
34
- * @param {number} voteId
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- cancel: async (voteId, options = {}) => {
39
- // verify required parameter 'voteId' is not null or undefined
40
- (0, common_1.assertParamExists)('cancel', 'voteId', voteId);
41
- const localVarPath = `/api/votes/{voteId}/participate`
42
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
43
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
44
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
45
- let baseOptions;
46
- if (configuration) {
47
- baseOptions = configuration.baseOptions;
48
- }
49
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options };
50
- const localVarHeaderParameter = {};
51
- const localVarQueryParameter = {};
52
- // authentication bearerAuth required
53
- // http bearer authentication required
54
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
55
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
56
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
58
- return {
59
- url: (0, common_1.toPathString)(localVarUrlObj),
60
- options: localVarRequestOptions,
61
- };
62
- },
63
- /**
64
- *
65
- * @param {VoteCreateRequest} voteCreateRequest
66
- * @param {*} [options] Override http request option.
67
- * @throws {RequiredError}
68
- */
69
- create: async (voteCreateRequest, options = {}) => {
70
- // verify required parameter 'voteCreateRequest' is not null or undefined
71
- (0, common_1.assertParamExists)('create', 'voteCreateRequest', voteCreateRequest);
72
- const localVarPath = `/api/votes`;
73
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
74
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
75
- let baseOptions;
76
- if (configuration) {
77
- baseOptions = configuration.baseOptions;
78
- }
79
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
80
- const localVarHeaderParameter = {};
81
- const localVarQueryParameter = {};
82
- // authentication bearerAuth required
83
- // http bearer authentication required
84
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
85
- localVarHeaderParameter['Content-Type'] = 'application/json';
86
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
87
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
88
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
89
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(voteCreateRequest, localVarRequestOptions, configuration);
90
- return {
91
- url: (0, common_1.toPathString)(localVarUrlObj),
92
- options: localVarRequestOptions,
93
- };
94
- },
95
- /**
96
- *
97
- * @param {number} voteId
98
- * @param {string} anonymousId
99
- * @param {*} [options] Override http request option.
100
- * @throws {RequiredError}
101
- */
102
- getDetail: async (voteId, anonymousId, options = {}) => {
103
- // verify required parameter 'voteId' is not null or undefined
104
- (0, common_1.assertParamExists)('getDetail', 'voteId', voteId);
105
- // verify required parameter 'anonymousId' is not null or undefined
106
- (0, common_1.assertParamExists)('getDetail', 'anonymousId', anonymousId);
107
- const localVarPath = `/api/votes/{voteId}`
108
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
109
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
110
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
111
- let baseOptions;
112
- if (configuration) {
113
- baseOptions = configuration.baseOptions;
114
- }
115
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
116
- const localVarHeaderParameter = {};
117
- const localVarQueryParameter = {};
118
- // authentication bearerAuth required
119
- // http bearer authentication required
120
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
121
- if (anonymousId !== undefined) {
122
- localVarQueryParameter['anonymousId'] = anonymousId;
123
- }
124
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
125
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
126
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
127
- return {
128
- url: (0, common_1.toPathString)(localVarUrlObj),
129
- options: localVarRequestOptions,
130
- };
131
- },
132
- /**
133
- *
134
- * @param {number} voteId
135
- * @param {string} anonymousId
136
- * @param {ParticipateRequest} participateRequest
137
- * @param {*} [options] Override http request option.
138
- * @throws {RequiredError}
139
- */
140
- participate: async (voteId, anonymousId, participateRequest, options = {}) => {
141
- // verify required parameter 'voteId' is not null or undefined
142
- (0, common_1.assertParamExists)('participate', 'voteId', voteId);
143
- // verify required parameter 'anonymousId' is not null or undefined
144
- (0, common_1.assertParamExists)('participate', 'anonymousId', anonymousId);
145
- // verify required parameter 'participateRequest' is not null or undefined
146
- (0, common_1.assertParamExists)('participate', 'participateRequest', participateRequest);
147
- const localVarPath = `/api/votes/{voteId}/participate`
148
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
149
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
150
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
151
- let baseOptions;
152
- if (configuration) {
153
- baseOptions = configuration.baseOptions;
154
- }
155
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
156
- const localVarHeaderParameter = {};
157
- const localVarQueryParameter = {};
158
- // authentication bearerAuth required
159
- // http bearer authentication required
160
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
161
- if (anonymousId !== undefined) {
162
- localVarQueryParameter['anonymousId'] = anonymousId;
163
- }
164
- localVarHeaderParameter['Content-Type'] = 'application/json';
165
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
166
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
167
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
168
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(participateRequest, localVarRequestOptions, configuration);
169
- return {
170
- url: (0, common_1.toPathString)(localVarUrlObj),
171
- options: localVarRequestOptions,
172
- };
173
- },
174
- };
175
- };
176
- exports.VoteControllerApiAxiosParamCreator = VoteControllerApiAxiosParamCreator;
177
- /**
178
- * VoteControllerApi - functional programming interface
179
- * @export
180
- */
181
- const VoteControllerApiFp = function (configuration) {
182
- const localVarAxiosParamCreator = (0, exports.VoteControllerApiAxiosParamCreator)(configuration);
183
- return {
184
- /**
185
- *
186
- * @param {number} voteId
187
- * @param {*} [options] Override http request option.
188
- * @throws {RequiredError}
189
- */
190
- async cancel(voteId, options) {
191
- const localVarAxiosArgs = await localVarAxiosParamCreator.cancel(voteId, options);
192
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
193
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteControllerApi.cancel']?.[localVarOperationServerIndex]?.url;
194
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
195
- },
196
- /**
197
- *
198
- * @param {VoteCreateRequest} voteCreateRequest
199
- * @param {*} [options] Override http request option.
200
- * @throws {RequiredError}
201
- */
202
- async create(voteCreateRequest, options) {
203
- const localVarAxiosArgs = await localVarAxiosParamCreator.create(voteCreateRequest, options);
204
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
205
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteControllerApi.create']?.[localVarOperationServerIndex]?.url;
206
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
207
- },
208
- /**
209
- *
210
- * @param {number} voteId
211
- * @param {string} anonymousId
212
- * @param {*} [options] Override http request option.
213
- * @throws {RequiredError}
214
- */
215
- async getDetail(voteId, anonymousId, options) {
216
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDetail(voteId, anonymousId, options);
217
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
218
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteControllerApi.getDetail']?.[localVarOperationServerIndex]?.url;
219
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
220
- },
221
- /**
222
- *
223
- * @param {number} voteId
224
- * @param {string} anonymousId
225
- * @param {ParticipateRequest} participateRequest
226
- * @param {*} [options] Override http request option.
227
- * @throws {RequiredError}
228
- */
229
- async participate(voteId, anonymousId, participateRequest, options) {
230
- const localVarAxiosArgs = await localVarAxiosParamCreator.participate(voteId, anonymousId, participateRequest, options);
231
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
232
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteControllerApi.participate']?.[localVarOperationServerIndex]?.url;
233
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
234
- },
235
- };
236
- };
237
- exports.VoteControllerApiFp = VoteControllerApiFp;
238
- /**
239
- * VoteControllerApi - factory interface
240
- * @export
241
- */
242
- const VoteControllerApiFactory = function (configuration, basePath, axios) {
243
- const localVarFp = (0, exports.VoteControllerApiFp)(configuration);
244
- return {
245
- /**
246
- *
247
- * @param {number} voteId
248
- * @param {*} [options] Override http request option.
249
- * @throws {RequiredError}
250
- */
251
- cancel(voteId, options) {
252
- return localVarFp.cancel(voteId, options).then((request) => request(axios, basePath));
253
- },
254
- /**
255
- *
256
- * @param {VoteCreateRequest} voteCreateRequest
257
- * @param {*} [options] Override http request option.
258
- * @throws {RequiredError}
259
- */
260
- create(voteCreateRequest, options) {
261
- return localVarFp.create(voteCreateRequest, options).then((request) => request(axios, basePath));
262
- },
263
- /**
264
- *
265
- * @param {number} voteId
266
- * @param {string} anonymousId
267
- * @param {*} [options] Override http request option.
268
- * @throws {RequiredError}
269
- */
270
- getDetail(voteId, anonymousId, options) {
271
- return localVarFp.getDetail(voteId, anonymousId, options).then((request) => request(axios, basePath));
272
- },
273
- /**
274
- *
275
- * @param {number} voteId
276
- * @param {string} anonymousId
277
- * @param {ParticipateRequest} participateRequest
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- */
281
- participate(voteId, anonymousId, participateRequest, options) {
282
- return localVarFp.participate(voteId, anonymousId, participateRequest, options).then((request) => request(axios, basePath));
283
- },
284
- };
285
- };
286
- exports.VoteControllerApiFactory = VoteControllerApiFactory;
287
- /**
288
- * VoteControllerApi - object-oriented interface
289
- * @export
290
- * @class VoteControllerApi
291
- * @extends {BaseAPI}
292
- */
293
- class VoteControllerApi extends base_1.BaseAPI {
294
- /**
295
- *
296
- * @param {number} voteId
297
- * @param {*} [options] Override http request option.
298
- * @throws {RequiredError}
299
- * @memberof VoteControllerApi
300
- */
301
- cancel(voteId, options) {
302
- return (0, exports.VoteControllerApiFp)(this.configuration).cancel(voteId, options).then((request) => request(this.axios, this.basePath));
303
- }
304
- /**
305
- *
306
- * @param {VoteCreateRequest} voteCreateRequest
307
- * @param {*} [options] Override http request option.
308
- * @throws {RequiredError}
309
- * @memberof VoteControllerApi
310
- */
311
- create(voteCreateRequest, options) {
312
- return (0, exports.VoteControllerApiFp)(this.configuration).create(voteCreateRequest, options).then((request) => request(this.axios, this.basePath));
313
- }
314
- /**
315
- *
316
- * @param {number} voteId
317
- * @param {string} anonymousId
318
- * @param {*} [options] Override http request option.
319
- * @throws {RequiredError}
320
- * @memberof VoteControllerApi
321
- */
322
- getDetail(voteId, anonymousId, options) {
323
- return (0, exports.VoteControllerApiFp)(this.configuration).getDetail(voteId, anonymousId, options).then((request) => request(this.axios, this.basePath));
324
- }
325
- /**
326
- *
327
- * @param {number} voteId
328
- * @param {string} anonymousId
329
- * @param {ParticipateRequest} participateRequest
330
- * @param {*} [options] Override http request option.
331
- * @throws {RequiredError}
332
- * @memberof VoteControllerApi
333
- */
334
- participate(voteId, anonymousId, participateRequest, options) {
335
- return (0, exports.VoteControllerApiFp)(this.configuration).participate(voteId, anonymousId, participateRequest, options).then((request) => request(this.axios, this.basePath));
336
- }
337
- }
338
- exports.VoteControllerApi = VoteControllerApi;
@@ -1,116 +0,0 @@
1
- /**
2
- * VS Server API
3
- * JECT 4기 2팀 VS Server API
4
- *
5
- * The version of the OpenAPI document: 1.0.0
6
- *
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- import type { Configuration } from '../configuration';
13
- import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
14
- import { type RequestArgs, BaseAPI } from '../base';
15
- import type { EmojiRequest } from '../models';
16
- import type { EmojiResponse } from '../models';
17
- /**
18
- * VoteEmojiControllerApi - axios parameter creator
19
- * @export
20
- */
21
- export declare const VoteEmojiControllerApiAxiosParamCreator: (configuration?: Configuration) => {
22
- /**
23
- *
24
- * @param {number} voteId
25
- * @param {string} anonymousId
26
- * @param {EmojiRequest} emojiRequest
27
- * @param {*} [options] Override http request option.
28
- * @throws {RequiredError}
29
- */
30
- reactOnImmersiveVote: (voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
31
- /**
32
- *
33
- * @param {number} voteId
34
- * @param {string} anonymousId
35
- * @param {EmojiRequest} emojiRequest
36
- * @param {*} [options] Override http request option.
37
- * @throws {RequiredError}
38
- */
39
- reactOnVote: (voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
40
- };
41
- /**
42
- * VoteEmojiControllerApi - functional programming interface
43
- * @export
44
- */
45
- export declare const VoteEmojiControllerApiFp: (configuration?: Configuration) => {
46
- /**
47
- *
48
- * @param {number} voteId
49
- * @param {string} anonymousId
50
- * @param {EmojiRequest} emojiRequest
51
- * @param {*} [options] Override http request option.
52
- * @throws {RequiredError}
53
- */
54
- reactOnImmersiveVote(voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmojiResponse>>;
55
- /**
56
- *
57
- * @param {number} voteId
58
- * @param {string} anonymousId
59
- * @param {EmojiRequest} emojiRequest
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- */
63
- reactOnVote(voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EmojiResponse>>;
64
- };
65
- /**
66
- * VoteEmojiControllerApi - factory interface
67
- * @export
68
- */
69
- export declare const VoteEmojiControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
70
- /**
71
- *
72
- * @param {number} voteId
73
- * @param {string} anonymousId
74
- * @param {EmojiRequest} emojiRequest
75
- * @param {*} [options] Override http request option.
76
- * @throws {RequiredError}
77
- */
78
- reactOnImmersiveVote(voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmojiResponse>;
79
- /**
80
- *
81
- * @param {number} voteId
82
- * @param {string} anonymousId
83
- * @param {EmojiRequest} emojiRequest
84
- * @param {*} [options] Override http request option.
85
- * @throws {RequiredError}
86
- */
87
- reactOnVote(voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig): AxiosPromise<EmojiResponse>;
88
- };
89
- /**
90
- * VoteEmojiControllerApi - object-oriented interface
91
- * @export
92
- * @class VoteEmojiControllerApi
93
- * @extends {BaseAPI}
94
- */
95
- export declare class VoteEmojiControllerApi extends BaseAPI {
96
- /**
97
- *
98
- * @param {number} voteId
99
- * @param {string} anonymousId
100
- * @param {EmojiRequest} emojiRequest
101
- * @param {*} [options] Override http request option.
102
- * @throws {RequiredError}
103
- * @memberof VoteEmojiControllerApi
104
- */
105
- reactOnImmersiveVote(voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EmojiResponse, any, {}>>;
106
- /**
107
- *
108
- * @param {number} voteId
109
- * @param {string} anonymousId
110
- * @param {EmojiRequest} emojiRequest
111
- * @param {*} [options] Override http request option.
112
- * @throws {RequiredError}
113
- * @memberof VoteEmojiControllerApi
114
- */
115
- reactOnVote(voteId: number, anonymousId: string, emojiRequest: EmojiRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EmojiResponse, any, {}>>;
116
- }
@@ -1,221 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * VS Server API
6
- * JECT 4기 2팀 VS Server API
7
- *
8
- * The version of the OpenAPI document: 1.0.0
9
- *
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- var __importDefault = (this && this.__importDefault) || function (mod) {
16
- return (mod && mod.__esModule) ? mod : { "default": mod };
17
- };
18
- Object.defineProperty(exports, "__esModule", { value: true });
19
- exports.VoteEmojiControllerApi = exports.VoteEmojiControllerApiFactory = exports.VoteEmojiControllerApiFp = exports.VoteEmojiControllerApiAxiosParamCreator = void 0;
20
- const axios_1 = __importDefault(require("axios"));
21
- // Some imports not used depending on template conditions
22
- // @ts-ignore
23
- const common_1 = require("../common");
24
- // @ts-ignore
25
- const base_1 = require("../base");
26
- /**
27
- * VoteEmojiControllerApi - axios parameter creator
28
- * @export
29
- */
30
- const VoteEmojiControllerApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- *
34
- * @param {number} voteId
35
- * @param {string} anonymousId
36
- * @param {EmojiRequest} emojiRequest
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- reactOnImmersiveVote: async (voteId, anonymousId, emojiRequest, options = {}) => {
41
- // verify required parameter 'voteId' is not null or undefined
42
- (0, common_1.assertParamExists)('reactOnImmersiveVote', 'voteId', voteId);
43
- // verify required parameter 'anonymousId' is not null or undefined
44
- (0, common_1.assertParamExists)('reactOnImmersiveVote', 'anonymousId', anonymousId);
45
- // verify required parameter 'emojiRequest' is not null or undefined
46
- (0, common_1.assertParamExists)('reactOnImmersiveVote', 'emojiRequest', emojiRequest);
47
- const localVarPath = `/api/immersive-votes/{voteId}/emoji`
48
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
49
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
50
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
51
- let baseOptions;
52
- if (configuration) {
53
- baseOptions = configuration.baseOptions;
54
- }
55
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
56
- const localVarHeaderParameter = {};
57
- const localVarQueryParameter = {};
58
- // authentication bearerAuth required
59
- // http bearer authentication required
60
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
61
- if (anonymousId !== undefined) {
62
- localVarQueryParameter['anonymousId'] = anonymousId;
63
- }
64
- localVarHeaderParameter['Content-Type'] = 'application/json';
65
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
66
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
67
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
68
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emojiRequest, localVarRequestOptions, configuration);
69
- return {
70
- url: (0, common_1.toPathString)(localVarUrlObj),
71
- options: localVarRequestOptions,
72
- };
73
- },
74
- /**
75
- *
76
- * @param {number} voteId
77
- * @param {string} anonymousId
78
- * @param {EmojiRequest} emojiRequest
79
- * @param {*} [options] Override http request option.
80
- * @throws {RequiredError}
81
- */
82
- reactOnVote: async (voteId, anonymousId, emojiRequest, options = {}) => {
83
- // verify required parameter 'voteId' is not null or undefined
84
- (0, common_1.assertParamExists)('reactOnVote', 'voteId', voteId);
85
- // verify required parameter 'anonymousId' is not null or undefined
86
- (0, common_1.assertParamExists)('reactOnVote', 'anonymousId', anonymousId);
87
- // verify required parameter 'emojiRequest' is not null or undefined
88
- (0, common_1.assertParamExists)('reactOnVote', 'emojiRequest', emojiRequest);
89
- const localVarPath = `/api/votes/{voteId}/emoji`
90
- .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
91
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
92
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
93
- let baseOptions;
94
- if (configuration) {
95
- baseOptions = configuration.baseOptions;
96
- }
97
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
98
- const localVarHeaderParameter = {};
99
- const localVarQueryParameter = {};
100
- // authentication bearerAuth required
101
- // http bearer authentication required
102
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
103
- if (anonymousId !== undefined) {
104
- localVarQueryParameter['anonymousId'] = anonymousId;
105
- }
106
- localVarHeaderParameter['Content-Type'] = 'application/json';
107
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
108
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
109
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
110
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(emojiRequest, localVarRequestOptions, configuration);
111
- return {
112
- url: (0, common_1.toPathString)(localVarUrlObj),
113
- options: localVarRequestOptions,
114
- };
115
- },
116
- };
117
- };
118
- exports.VoteEmojiControllerApiAxiosParamCreator = VoteEmojiControllerApiAxiosParamCreator;
119
- /**
120
- * VoteEmojiControllerApi - functional programming interface
121
- * @export
122
- */
123
- const VoteEmojiControllerApiFp = function (configuration) {
124
- const localVarAxiosParamCreator = (0, exports.VoteEmojiControllerApiAxiosParamCreator)(configuration);
125
- return {
126
- /**
127
- *
128
- * @param {number} voteId
129
- * @param {string} anonymousId
130
- * @param {EmojiRequest} emojiRequest
131
- * @param {*} [options] Override http request option.
132
- * @throws {RequiredError}
133
- */
134
- async reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options) {
135
- const localVarAxiosArgs = await localVarAxiosParamCreator.reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options);
136
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
137
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteEmojiControllerApi.reactOnImmersiveVote']?.[localVarOperationServerIndex]?.url;
138
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
139
- },
140
- /**
141
- *
142
- * @param {number} voteId
143
- * @param {string} anonymousId
144
- * @param {EmojiRequest} emojiRequest
145
- * @param {*} [options] Override http request option.
146
- * @throws {RequiredError}
147
- */
148
- async reactOnVote(voteId, anonymousId, emojiRequest, options) {
149
- const localVarAxiosArgs = await localVarAxiosParamCreator.reactOnVote(voteId, anonymousId, emojiRequest, options);
150
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
151
- const localVarOperationServerBasePath = base_1.operationServerMap['VoteEmojiControllerApi.reactOnVote']?.[localVarOperationServerIndex]?.url;
152
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
153
- },
154
- };
155
- };
156
- exports.VoteEmojiControllerApiFp = VoteEmojiControllerApiFp;
157
- /**
158
- * VoteEmojiControllerApi - factory interface
159
- * @export
160
- */
161
- const VoteEmojiControllerApiFactory = function (configuration, basePath, axios) {
162
- const localVarFp = (0, exports.VoteEmojiControllerApiFp)(configuration);
163
- return {
164
- /**
165
- *
166
- * @param {number} voteId
167
- * @param {string} anonymousId
168
- * @param {EmojiRequest} emojiRequest
169
- * @param {*} [options] Override http request option.
170
- * @throws {RequiredError}
171
- */
172
- reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options) {
173
- return localVarFp.reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options).then((request) => request(axios, basePath));
174
- },
175
- /**
176
- *
177
- * @param {number} voteId
178
- * @param {string} anonymousId
179
- * @param {EmojiRequest} emojiRequest
180
- * @param {*} [options] Override http request option.
181
- * @throws {RequiredError}
182
- */
183
- reactOnVote(voteId, anonymousId, emojiRequest, options) {
184
- return localVarFp.reactOnVote(voteId, anonymousId, emojiRequest, options).then((request) => request(axios, basePath));
185
- },
186
- };
187
- };
188
- exports.VoteEmojiControllerApiFactory = VoteEmojiControllerApiFactory;
189
- /**
190
- * VoteEmojiControllerApi - object-oriented interface
191
- * @export
192
- * @class VoteEmojiControllerApi
193
- * @extends {BaseAPI}
194
- */
195
- class VoteEmojiControllerApi extends base_1.BaseAPI {
196
- /**
197
- *
198
- * @param {number} voteId
199
- * @param {string} anonymousId
200
- * @param {EmojiRequest} emojiRequest
201
- * @param {*} [options] Override http request option.
202
- * @throws {RequiredError}
203
- * @memberof VoteEmojiControllerApi
204
- */
205
- reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options) {
206
- return (0, exports.VoteEmojiControllerApiFp)(this.configuration).reactOnImmersiveVote(voteId, anonymousId, emojiRequest, options).then((request) => request(this.axios, this.basePath));
207
- }
208
- /**
209
- *
210
- * @param {number} voteId
211
- * @param {string} anonymousId
212
- * @param {EmojiRequest} emojiRequest
213
- * @param {*} [options] Override http request option.
214
- * @throws {RequiredError}
215
- * @memberof VoteEmojiControllerApi
216
- */
217
- reactOnVote(voteId, anonymousId, emojiRequest, options) {
218
- return (0, exports.VoteEmojiControllerApiFp)(this.configuration).reactOnVote(voteId, anonymousId, emojiRequest, options).then((request) => request(this.axios, this.basePath));
219
- }
220
- }
221
- exports.VoteEmojiControllerApi = VoteEmojiControllerApi;