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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/dist/api/chat-api.d.ts +4 -4
  2. package/dist/api/chat-api.js +10 -10
  3. package/dist/api/default-api.d.ts +1118 -0
  4. package/dist/api/default-api.js +2165 -0
  5. package/dist/api.d.ts +1 -7
  6. package/dist/api.js +1 -7
  7. package/dist/models/emoji-response.d.ts +2 -4
  8. package/dist/models/emoji-summary.d.ts +18 -0
  9. package/dist/models/free-votes-response.d.ts +2 -1
  10. package/dist/models/gender-detail.d.ts +15 -0
  11. package/dist/models/gender-detail.js +15 -0
  12. package/dist/models/gender-distribution-response.d.ts +5 -2
  13. package/dist/models/home-hot-topic-response.d.ts +15 -0
  14. package/dist/models/home-hot-topic-response.js +15 -0
  15. package/dist/models/home-recommendation-response.d.ts +15 -0
  16. package/dist/models/home-recommendation-response.js +15 -0
  17. package/dist/models/home-vote-list-response.d.ts +17 -0
  18. package/dist/models/home-vote-list-response.js +15 -0
  19. package/dist/models/{feed-item.d.ts → hot-topic-item.d.ts} +5 -6
  20. package/dist/models/hot-topic-item.js +15 -0
  21. package/dist/models/immersive-feed-response.d.ts +2 -2
  22. package/dist/models/immersive-live-response.d.ts +3 -4
  23. package/dist/models/index.d.ts +19 -1
  24. package/dist/models/index.js +19 -1
  25. package/dist/models/my-vote.d.ts +15 -0
  26. package/dist/models/my-vote.js +15 -0
  27. package/dist/models/notification-item.d.ts +25 -0
  28. package/dist/models/notification-item.js +19 -0
  29. package/dist/models/notification-list-response.d.ts +17 -0
  30. package/dist/models/notification-list-response.js +15 -0
  31. package/dist/models/notification-setting-response.d.ts +16 -0
  32. package/dist/models/notification-setting-response.js +15 -0
  33. package/dist/models/prompt-status-response.d.ts +15 -0
  34. package/dist/models/prompt-status-response.js +15 -0
  35. package/dist/models/read-all-response.d.ts +14 -0
  36. package/dist/models/read-all-response.js +15 -0
  37. package/dist/models/recommendation-item.d.ts +18 -0
  38. package/dist/models/recommendation-item.js +15 -0
  39. package/dist/models/register-push-token-request.d.ts +20 -0
  40. package/dist/models/register-push-token-request.js +20 -0
  41. package/dist/models/result-options.d.ts +15 -0
  42. package/dist/models/result-options.js +15 -0
  43. package/dist/models/share-link-response.d.ts +3 -1
  44. package/dist/models/unread-count-response.d.ts +14 -0
  45. package/dist/models/unread-count-response.js +15 -0
  46. package/dist/models/update-notification-setting-request.d.ts +14 -0
  47. package/dist/models/update-notification-setting-request.js +15 -0
  48. package/dist/models/vote-detail-response.d.ts +6 -6
  49. package/dist/models/vote-item.d.ts +27 -0
  50. package/dist/models/vote-item.js +15 -0
  51. package/dist/models/vote-list-item.d.ts +24 -0
  52. package/dist/models/vote-list-item.js +20 -0
  53. package/dist/models/vote-result-response.d.ts +7 -3
  54. package/package.json +1 -1
  55. package/dist/api/auth-controller-api.d.ts +0 -65
  56. package/dist/api/auth-controller-api.js +0 -118
  57. package/dist/api/guest-free-vote-controller-api.d.ts +0 -70
  58. package/dist/api/guest-free-vote-controller-api.js +0 -127
  59. package/dist/api/immersive-vote-controller-api.d.ts +0 -147
  60. package/dist/api/immersive-vote-controller-api.js +0 -282
  61. package/dist/api/user-controller-api.d.ts +0 -183
  62. package/dist/api/user-controller-api.js +0 -362
  63. package/dist/api/vote-controller-api.d.ts +0 -173
  64. package/dist/api/vote-controller-api.js +0 -338
  65. package/dist/api/vote-emoji-controller-api.d.ts +0 -116
  66. package/dist/api/vote-emoji-controller-api.js +0 -221
  67. package/dist/api/vote-result-controller-api.d.ts +0 -100
  68. package/dist/api/vote-result-controller-api.js +0 -187
  69. /package/dist/models/{feed-item.js → emoji-summary.js} +0 -0
@@ -0,0 +1,20 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.RegisterPushTokenRequestPlatformEnum = void 0;
17
+ exports.RegisterPushTokenRequestPlatformEnum = {
18
+ Ios: 'IOS',
19
+ Android: 'ANDROID'
20
+ };
@@ -0,0 +1,15 @@
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 { OptionItem } from './option-item';
13
+ export interface ResultOptions {
14
+ options?: Array<OptionItem>;
15
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -10,5 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export interface ShareLinkResponse {
13
- url?: string;
13
+ shareUrl?: string;
14
+ title?: string;
15
+ thumbnailUrl?: string;
14
16
  }
@@ -0,0 +1,14 @@
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
+ export interface UnreadCountResponse {
13
+ unreadCount?: number;
14
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
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
+ export interface UpdateNotificationSettingRequest {
13
+ pushEnabled: boolean;
14
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,21 +9,21 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { EmojiSummary } from './emoji-summary';
13
+ import type { MyVote } from './my-vote';
12
14
  import type { OptionItem } from './option-item';
13
15
  export interface VoteDetailResponse {
14
16
  voteId?: number;
15
- type?: string;
16
17
  title?: string;
18
+ createdAt?: string;
17
19
  content?: string;
18
20
  thumbnailUrl?: string;
19
- imageUrl?: string;
20
21
  status?: string;
21
22
  endAt?: string;
22
23
  participantCount?: number;
23
24
  options?: Array<OptionItem>;
24
- mySelectedOptionId?: number;
25
- emojiSummary?: {
26
- [key: string]: number;
27
- };
25
+ myVote?: MyVote;
26
+ emojiSummary?: EmojiSummary;
28
27
  myEmoji?: string;
28
+ commentCount?: number;
29
29
  }
@@ -0,0 +1,27 @@
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 { EmojiSummary } from './emoji-summary';
13
+ import type { MyVote } from './my-vote';
14
+ import type { OptionItem } from './option-item';
15
+ export interface VoteItem {
16
+ voteId?: number;
17
+ title?: string;
18
+ content?: string;
19
+ imageUrl?: string;
20
+ endAt?: string;
21
+ options?: Array<OptionItem>;
22
+ myVote?: MyVote;
23
+ emojiSummary?: EmojiSummary;
24
+ myEmoji?: string;
25
+ commentCount?: number;
26
+ currentViewerCount?: number;
27
+ }
@@ -0,0 +1,15 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,24 @@
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
+ export interface VoteListItem {
13
+ voteId?: number;
14
+ thumbnailUrl?: string;
15
+ status?: VoteListItemStatusEnum;
16
+ title?: string;
17
+ content?: string;
18
+ endAt?: string;
19
+ }
20
+ export declare const VoteListItemStatusEnum: {
21
+ readonly Ongoing: "ONGOING";
22
+ readonly Ended: "ENDED";
23
+ };
24
+ export type VoteListItemStatusEnum = typeof VoteListItemStatusEnum[keyof typeof VoteListItemStatusEnum];
@@ -0,0 +1,20 @@
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
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.VoteListItemStatusEnum = void 0;
17
+ exports.VoteListItemStatusEnum = {
18
+ Ongoing: 'ONGOING',
19
+ Ended: 'ENDED'
20
+ };
@@ -11,15 +11,19 @@
11
11
  */
12
12
  import type { AiInsightResponse } from './ai-insight-response';
13
13
  import type { InsightResponse } from './insight-response';
14
- import type { OptionItem } from './option-item';
14
+ import type { MyVote } from './my-vote';
15
+ import type { ResultOptions } from './result-options';
15
16
  export interface VoteResultResponse {
16
17
  voteId?: number;
17
18
  title?: string;
19
+ createdAt?: string;
20
+ content?: string;
21
+ thumbnailUrl?: string;
18
22
  status?: string;
19
23
  endAt?: string;
20
24
  participantCount?: number;
21
- options?: Array<OptionItem>;
22
- mySelectedOptionId?: number;
25
+ result?: ResultOptions;
26
+ myVote?: MyVote;
23
27
  insight?: InsightResponse;
24
28
  aiInsight?: AiInsightResponse;
25
29
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ject-4-vs-team/api-client",
3
- "version": "2026.0517.1",
3
+ "version": "2026.0521.2",
4
4
  "description": "VS Server API client generated from OpenAPI spec",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,65 +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
- /**
16
- * AuthControllerApi - axios parameter creator
17
- * @export
18
- */
19
- export declare const AuthControllerApiAxiosParamCreator: (configuration?: Configuration) => {
20
- /**
21
- *
22
- * @param {*} [options] Override http request option.
23
- * @throws {RequiredError}
24
- */
25
- reissue: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
26
- };
27
- /**
28
- * AuthControllerApi - functional programming interface
29
- * @export
30
- */
31
- export declare const AuthControllerApiFp: (configuration?: Configuration) => {
32
- /**
33
- *
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- reissue(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
38
- };
39
- /**
40
- * AuthControllerApi - factory interface
41
- * @export
42
- */
43
- export declare const AuthControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
44
- /**
45
- *
46
- * @param {*} [options] Override http request option.
47
- * @throws {RequiredError}
48
- */
49
- reissue(options?: RawAxiosRequestConfig): AxiosPromise<void>;
50
- };
51
- /**
52
- * AuthControllerApi - object-oriented interface
53
- * @export
54
- * @class AuthControllerApi
55
- * @extends {BaseAPI}
56
- */
57
- export declare class AuthControllerApi extends BaseAPI {
58
- /**
59
- *
60
- * @param {*} [options] Override http request option.
61
- * @throws {RequiredError}
62
- * @memberof AuthControllerApi
63
- */
64
- reissue(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
65
- }
@@ -1,118 +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.AuthControllerApi = exports.AuthControllerApiFactory = exports.AuthControllerApiFp = exports.AuthControllerApiAxiosParamCreator = 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
- * AuthControllerApi - axios parameter creator
28
- * @export
29
- */
30
- const AuthControllerApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- *
34
- * @param {*} [options] Override http request option.
35
- * @throws {RequiredError}
36
- */
37
- reissue: async (options = {}) => {
38
- const localVarPath = `/auth/reissue`;
39
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
40
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
41
- let baseOptions;
42
- if (configuration) {
43
- baseOptions = configuration.baseOptions;
44
- }
45
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
46
- const localVarHeaderParameter = {};
47
- const localVarQueryParameter = {};
48
- // authentication bearerAuth required
49
- // http bearer authentication required
50
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
51
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
52
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
53
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
54
- return {
55
- url: (0, common_1.toPathString)(localVarUrlObj),
56
- options: localVarRequestOptions,
57
- };
58
- },
59
- };
60
- };
61
- exports.AuthControllerApiAxiosParamCreator = AuthControllerApiAxiosParamCreator;
62
- /**
63
- * AuthControllerApi - functional programming interface
64
- * @export
65
- */
66
- const AuthControllerApiFp = function (configuration) {
67
- const localVarAxiosParamCreator = (0, exports.AuthControllerApiAxiosParamCreator)(configuration);
68
- return {
69
- /**
70
- *
71
- * @param {*} [options] Override http request option.
72
- * @throws {RequiredError}
73
- */
74
- async reissue(options) {
75
- const localVarAxiosArgs = await localVarAxiosParamCreator.reissue(options);
76
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
77
- const localVarOperationServerBasePath = base_1.operationServerMap['AuthControllerApi.reissue']?.[localVarOperationServerIndex]?.url;
78
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
79
- },
80
- };
81
- };
82
- exports.AuthControllerApiFp = AuthControllerApiFp;
83
- /**
84
- * AuthControllerApi - factory interface
85
- * @export
86
- */
87
- const AuthControllerApiFactory = function (configuration, basePath, axios) {
88
- const localVarFp = (0, exports.AuthControllerApiFp)(configuration);
89
- return {
90
- /**
91
- *
92
- * @param {*} [options] Override http request option.
93
- * @throws {RequiredError}
94
- */
95
- reissue(options) {
96
- return localVarFp.reissue(options).then((request) => request(axios, basePath));
97
- },
98
- };
99
- };
100
- exports.AuthControllerApiFactory = AuthControllerApiFactory;
101
- /**
102
- * AuthControllerApi - object-oriented interface
103
- * @export
104
- * @class AuthControllerApi
105
- * @extends {BaseAPI}
106
- */
107
- class AuthControllerApi extends base_1.BaseAPI {
108
- /**
109
- *
110
- * @param {*} [options] Override http request option.
111
- * @throws {RequiredError}
112
- * @memberof AuthControllerApi
113
- */
114
- reissue(options) {
115
- return (0, exports.AuthControllerApiFp)(this.configuration).reissue(options).then((request) => request(this.axios, this.basePath));
116
- }
117
- }
118
- exports.AuthControllerApi = AuthControllerApi;
@@ -1,70 +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 { FreeVotesResponse } from '../models';
16
- /**
17
- * GuestFreeVoteControllerApi - axios parameter creator
18
- * @export
19
- */
20
- export declare const GuestFreeVoteControllerApiAxiosParamCreator: (configuration?: Configuration) => {
21
- /**
22
- *
23
- * @param {string} anonymousId
24
- * @param {*} [options] Override http request option.
25
- * @throws {RequiredError}
26
- */
27
- getFreeVotes: (anonymousId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
28
- };
29
- /**
30
- * GuestFreeVoteControllerApi - functional programming interface
31
- * @export
32
- */
33
- export declare const GuestFreeVoteControllerApiFp: (configuration?: Configuration) => {
34
- /**
35
- *
36
- * @param {string} anonymousId
37
- * @param {*} [options] Override http request option.
38
- * @throws {RequiredError}
39
- */
40
- getFreeVotes(anonymousId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FreeVotesResponse>>;
41
- };
42
- /**
43
- * GuestFreeVoteControllerApi - factory interface
44
- * @export
45
- */
46
- export declare const GuestFreeVoteControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
47
- /**
48
- *
49
- * @param {string} anonymousId
50
- * @param {*} [options] Override http request option.
51
- * @throws {RequiredError}
52
- */
53
- getFreeVotes(anonymousId: string, options?: RawAxiosRequestConfig): AxiosPromise<FreeVotesResponse>;
54
- };
55
- /**
56
- * GuestFreeVoteControllerApi - object-oriented interface
57
- * @export
58
- * @class GuestFreeVoteControllerApi
59
- * @extends {BaseAPI}
60
- */
61
- export declare class GuestFreeVoteControllerApi extends BaseAPI {
62
- /**
63
- *
64
- * @param {string} anonymousId
65
- * @param {*} [options] Override http request option.
66
- * @throws {RequiredError}
67
- * @memberof GuestFreeVoteControllerApi
68
- */
69
- getFreeVotes(anonymousId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<FreeVotesResponse, any, {}>>;
70
- }
@@ -1,127 +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.GuestFreeVoteControllerApi = exports.GuestFreeVoteControllerApiFactory = exports.GuestFreeVoteControllerApiFp = exports.GuestFreeVoteControllerApiAxiosParamCreator = 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
- * GuestFreeVoteControllerApi - axios parameter creator
28
- * @export
29
- */
30
- const GuestFreeVoteControllerApiAxiosParamCreator = function (configuration) {
31
- return {
32
- /**
33
- *
34
- * @param {string} anonymousId
35
- * @param {*} [options] Override http request option.
36
- * @throws {RequiredError}
37
- */
38
- getFreeVotes: async (anonymousId, options = {}) => {
39
- // verify required parameter 'anonymousId' is not null or undefined
40
- (0, common_1.assertParamExists)('getFreeVotes', 'anonymousId', anonymousId);
41
- const localVarPath = `/api/me/free-votes`;
42
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
43
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
44
- let baseOptions;
45
- if (configuration) {
46
- baseOptions = configuration.baseOptions;
47
- }
48
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
49
- const localVarHeaderParameter = {};
50
- const localVarQueryParameter = {};
51
- // authentication bearerAuth required
52
- // http bearer authentication required
53
- await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
54
- if (anonymousId !== undefined) {
55
- localVarQueryParameter['anonymousId'] = anonymousId;
56
- }
57
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
58
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
59
- localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
60
- return {
61
- url: (0, common_1.toPathString)(localVarUrlObj),
62
- options: localVarRequestOptions,
63
- };
64
- },
65
- };
66
- };
67
- exports.GuestFreeVoteControllerApiAxiosParamCreator = GuestFreeVoteControllerApiAxiosParamCreator;
68
- /**
69
- * GuestFreeVoteControllerApi - functional programming interface
70
- * @export
71
- */
72
- const GuestFreeVoteControllerApiFp = function (configuration) {
73
- const localVarAxiosParamCreator = (0, exports.GuestFreeVoteControllerApiAxiosParamCreator)(configuration);
74
- return {
75
- /**
76
- *
77
- * @param {string} anonymousId
78
- * @param {*} [options] Override http request option.
79
- * @throws {RequiredError}
80
- */
81
- async getFreeVotes(anonymousId, options) {
82
- const localVarAxiosArgs = await localVarAxiosParamCreator.getFreeVotes(anonymousId, options);
83
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
84
- const localVarOperationServerBasePath = base_1.operationServerMap['GuestFreeVoteControllerApi.getFreeVotes']?.[localVarOperationServerIndex]?.url;
85
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
86
- },
87
- };
88
- };
89
- exports.GuestFreeVoteControllerApiFp = GuestFreeVoteControllerApiFp;
90
- /**
91
- * GuestFreeVoteControllerApi - factory interface
92
- * @export
93
- */
94
- const GuestFreeVoteControllerApiFactory = function (configuration, basePath, axios) {
95
- const localVarFp = (0, exports.GuestFreeVoteControllerApiFp)(configuration);
96
- return {
97
- /**
98
- *
99
- * @param {string} anonymousId
100
- * @param {*} [options] Override http request option.
101
- * @throws {RequiredError}
102
- */
103
- getFreeVotes(anonymousId, options) {
104
- return localVarFp.getFreeVotes(anonymousId, options).then((request) => request(axios, basePath));
105
- },
106
- };
107
- };
108
- exports.GuestFreeVoteControllerApiFactory = GuestFreeVoteControllerApiFactory;
109
- /**
110
- * GuestFreeVoteControllerApi - object-oriented interface
111
- * @export
112
- * @class GuestFreeVoteControllerApi
113
- * @extends {BaseAPI}
114
- */
115
- class GuestFreeVoteControllerApi extends base_1.BaseAPI {
116
- /**
117
- *
118
- * @param {string} anonymousId
119
- * @param {*} [options] Override http request option.
120
- * @throws {RequiredError}
121
- * @memberof GuestFreeVoteControllerApi
122
- */
123
- getFreeVotes(anonymousId, options) {
124
- return (0, exports.GuestFreeVoteControllerApiFp)(this.configuration).getFreeVotes(anonymousId, options).then((request) => request(this.axios, this.basePath));
125
- }
126
- }
127
- exports.GuestFreeVoteControllerApi = GuestFreeVoteControllerApi;