@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.
- package/dist/api/chat-api.d.ts +4 -4
- package/dist/api/chat-api.js +10 -10
- package/dist/api/default-api.d.ts +1280 -0
- package/dist/api/default-api.js +2490 -0
- package/dist/api.d.ts +1 -7
- package/dist/api.js +1 -7
- package/dist/models/emoji-response.d.ts +2 -4
- package/dist/models/emoji-summary.d.ts +18 -0
- package/dist/models/free-votes-response.d.ts +2 -1
- package/dist/models/gender-detail.d.ts +15 -0
- package/dist/models/gender-detail.js +15 -0
- package/dist/models/gender-distribution-response.d.ts +5 -2
- package/dist/models/home-hot-topic-response.d.ts +15 -0
- package/dist/models/home-hot-topic-response.js +15 -0
- package/dist/models/home-recommendation-response.d.ts +15 -0
- package/dist/models/home-recommendation-response.js +15 -0
- package/dist/models/home-vote-list-response.d.ts +17 -0
- package/dist/models/home-vote-list-response.js +15 -0
- package/dist/models/{feed-item.d.ts → hot-topic-item.d.ts} +5 -6
- package/dist/models/hot-topic-item.js +15 -0
- package/dist/models/immersive-feed-response.d.ts +2 -2
- package/dist/models/immersive-live-response.d.ts +3 -4
- package/dist/models/index.d.ts +23 -1
- package/dist/models/index.js +23 -1
- package/dist/models/my-participated-vote-response.d.ts +16 -0
- package/dist/models/my-participated-vote-response.js +15 -0
- package/dist/models/my-vote.d.ts +15 -0
- package/dist/models/my-vote.js +15 -0
- package/dist/models/notification-item.d.ts +25 -0
- package/dist/models/notification-item.js +19 -0
- package/dist/models/notification-list-response.d.ts +17 -0
- package/dist/models/notification-list-response.js +15 -0
- package/dist/models/notification-setting-response.d.ts +16 -0
- package/dist/models/notification-setting-response.js +15 -0
- package/dist/models/prompt-status-response.d.ts +15 -0
- package/dist/models/prompt-status-response.js +15 -0
- package/dist/models/read-all-response.d.ts +14 -0
- package/dist/models/read-all-response.js +15 -0
- package/dist/models/recommendation-item.d.ts +18 -0
- package/dist/models/recommendation-item.js +15 -0
- package/dist/models/register-push-token-request.d.ts +20 -0
- package/dist/models/register-push-token-request.js +20 -0
- package/dist/models/result-options.d.ts +15 -0
- package/dist/models/result-options.js +15 -0
- package/dist/models/share-link-response.d.ts +3 -1
- package/dist/models/unread-count-response.d.ts +14 -0
- package/dist/models/unread-count-response.js +15 -0
- package/dist/models/update-notification-setting-request.d.ts +14 -0
- package/dist/models/update-notification-setting-request.js +15 -0
- package/dist/models/user-delete-req.d.ts +15 -0
- package/dist/models/user-delete-req.js +15 -0
- package/dist/models/user-modify-info-request.d.ts +22 -0
- package/dist/models/user-modify-info-request.js +22 -0
- package/dist/models/vote-detail-response.d.ts +6 -6
- package/dist/models/vote-element.d.ts +19 -0
- package/dist/models/vote-element.js +15 -0
- package/dist/models/vote-item.d.ts +27 -0
- package/dist/models/vote-item.js +15 -0
- package/dist/models/vote-list-item.d.ts +24 -0
- package/dist/models/vote-list-item.js +20 -0
- package/dist/models/vote-result-response.d.ts +7 -3
- package/package.json +1 -1
- package/dist/api/auth-controller-api.d.ts +0 -65
- package/dist/api/auth-controller-api.js +0 -118
- package/dist/api/guest-free-vote-controller-api.d.ts +0 -70
- package/dist/api/guest-free-vote-controller-api.js +0 -127
- package/dist/api/immersive-vote-controller-api.d.ts +0 -147
- package/dist/api/immersive-vote-controller-api.js +0 -282
- package/dist/api/user-controller-api.d.ts +0 -183
- package/dist/api/user-controller-api.js +0 -362
- package/dist/api/vote-controller-api.d.ts +0 -173
- package/dist/api/vote-controller-api.js +0 -338
- package/dist/api/vote-emoji-controller-api.d.ts +0 -116
- package/dist/api/vote-emoji-controller-api.js +0 -221
- package/dist/api/vote-result-controller-api.d.ts +0 -100
- package/dist/api/vote-result-controller-api.js +0 -187
- /package/dist/models/{feed-item.js → emoji-summary.js} +0 -0
|
@@ -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;
|
|
@@ -1,147 +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 { ImmersiveFeedResponse } from '../models';
|
|
16
|
-
import type { ImmersiveLiveResponse } from '../models';
|
|
17
|
-
import type { ImmersiveParticipateResponse } from '../models';
|
|
18
|
-
import type { ParticipateRequest } from '../models';
|
|
19
|
-
/**
|
|
20
|
-
* ImmersiveVoteControllerApi - axios parameter creator
|
|
21
|
-
* @export
|
|
22
|
-
*/
|
|
23
|
-
export declare const ImmersiveVoteControllerApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
24
|
-
/**
|
|
25
|
-
*
|
|
26
|
-
* @param {string} anonymousId
|
|
27
|
-
* @param {number} [cursor]
|
|
28
|
-
* @param {number} [size]
|
|
29
|
-
* @param {*} [options] Override http request option.
|
|
30
|
-
* @throws {RequiredError}
|
|
31
|
-
*/
|
|
32
|
-
getFeed: (anonymousId: string, cursor?: number, size?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @param {number} voteId
|
|
36
|
-
* @param {*} [options] Override http request option.
|
|
37
|
-
* @throws {RequiredError}
|
|
38
|
-
*/
|
|
39
|
-
getLive: (voteId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @param {number} voteId
|
|
43
|
-
* @param {string} anonymousId
|
|
44
|
-
* @param {ParticipateRequest} participateRequest
|
|
45
|
-
* @param {*} [options] Override http request option.
|
|
46
|
-
* @throws {RequiredError}
|
|
47
|
-
*/
|
|
48
|
-
participateOrCancel: (voteId: number, anonymousId: string, participateRequest: ParticipateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
49
|
-
};
|
|
50
|
-
/**
|
|
51
|
-
* ImmersiveVoteControllerApi - functional programming interface
|
|
52
|
-
* @export
|
|
53
|
-
*/
|
|
54
|
-
export declare const ImmersiveVoteControllerApiFp: (configuration?: Configuration) => {
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @param {string} anonymousId
|
|
58
|
-
* @param {number} [cursor]
|
|
59
|
-
* @param {number} [size]
|
|
60
|
-
* @param {*} [options] Override http request option.
|
|
61
|
-
* @throws {RequiredError}
|
|
62
|
-
*/
|
|
63
|
-
getFeed(anonymousId: string, cursor?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImmersiveFeedResponse>>;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @param {number} voteId
|
|
67
|
-
* @param {*} [options] Override http request option.
|
|
68
|
-
* @throws {RequiredError}
|
|
69
|
-
*/
|
|
70
|
-
getLive(voteId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImmersiveLiveResponse>>;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @param {number} voteId
|
|
74
|
-
* @param {string} anonymousId
|
|
75
|
-
* @param {ParticipateRequest} participateRequest
|
|
76
|
-
* @param {*} [options] Override http request option.
|
|
77
|
-
* @throws {RequiredError}
|
|
78
|
-
*/
|
|
79
|
-
participateOrCancel(voteId: number, anonymousId: string, participateRequest: ParticipateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ImmersiveParticipateResponse>>;
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* ImmersiveVoteControllerApi - factory interface
|
|
83
|
-
* @export
|
|
84
|
-
*/
|
|
85
|
-
export declare const ImmersiveVoteControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
86
|
-
/**
|
|
87
|
-
*
|
|
88
|
-
* @param {string} anonymousId
|
|
89
|
-
* @param {number} [cursor]
|
|
90
|
-
* @param {number} [size]
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
getFeed(anonymousId: string, cursor?: number, size?: number, options?: RawAxiosRequestConfig): AxiosPromise<ImmersiveFeedResponse>;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @param {number} voteId
|
|
98
|
-
* @param {*} [options] Override http request option.
|
|
99
|
-
* @throws {RequiredError}
|
|
100
|
-
*/
|
|
101
|
-
getLive(voteId: number, options?: RawAxiosRequestConfig): AxiosPromise<ImmersiveLiveResponse>;
|
|
102
|
-
/**
|
|
103
|
-
*
|
|
104
|
-
* @param {number} voteId
|
|
105
|
-
* @param {string} anonymousId
|
|
106
|
-
* @param {ParticipateRequest} participateRequest
|
|
107
|
-
* @param {*} [options] Override http request option.
|
|
108
|
-
* @throws {RequiredError}
|
|
109
|
-
*/
|
|
110
|
-
participateOrCancel(voteId: number, anonymousId: string, participateRequest: ParticipateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ImmersiveParticipateResponse>;
|
|
111
|
-
};
|
|
112
|
-
/**
|
|
113
|
-
* ImmersiveVoteControllerApi - object-oriented interface
|
|
114
|
-
* @export
|
|
115
|
-
* @class ImmersiveVoteControllerApi
|
|
116
|
-
* @extends {BaseAPI}
|
|
117
|
-
*/
|
|
118
|
-
export declare class ImmersiveVoteControllerApi extends BaseAPI {
|
|
119
|
-
/**
|
|
120
|
-
*
|
|
121
|
-
* @param {string} anonymousId
|
|
122
|
-
* @param {number} [cursor]
|
|
123
|
-
* @param {number} [size]
|
|
124
|
-
* @param {*} [options] Override http request option.
|
|
125
|
-
* @throws {RequiredError}
|
|
126
|
-
* @memberof ImmersiveVoteControllerApi
|
|
127
|
-
*/
|
|
128
|
-
getFeed(anonymousId: string, cursor?: number, size?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImmersiveFeedResponse, any, {}>>;
|
|
129
|
-
/**
|
|
130
|
-
*
|
|
131
|
-
* @param {number} voteId
|
|
132
|
-
* @param {*} [options] Override http request option.
|
|
133
|
-
* @throws {RequiredError}
|
|
134
|
-
* @memberof ImmersiveVoteControllerApi
|
|
135
|
-
*/
|
|
136
|
-
getLive(voteId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImmersiveLiveResponse, any, {}>>;
|
|
137
|
-
/**
|
|
138
|
-
*
|
|
139
|
-
* @param {number} voteId
|
|
140
|
-
* @param {string} anonymousId
|
|
141
|
-
* @param {ParticipateRequest} participateRequest
|
|
142
|
-
* @param {*} [options] Override http request option.
|
|
143
|
-
* @throws {RequiredError}
|
|
144
|
-
* @memberof ImmersiveVoteControllerApi
|
|
145
|
-
*/
|
|
146
|
-
participateOrCancel(voteId: number, anonymousId: string, participateRequest: ParticipateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ImmersiveParticipateResponse, any, {}>>;
|
|
147
|
-
}
|
|
@@ -1,282 +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.ImmersiveVoteControllerApi = exports.ImmersiveVoteControllerApiFactory = exports.ImmersiveVoteControllerApiFp = exports.ImmersiveVoteControllerApiAxiosParamCreator = 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
|
-
* ImmersiveVoteControllerApi - axios parameter creator
|
|
28
|
-
* @export
|
|
29
|
-
*/
|
|
30
|
-
const ImmersiveVoteControllerApiAxiosParamCreator = function (configuration) {
|
|
31
|
-
return {
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @param {string} anonymousId
|
|
35
|
-
* @param {number} [cursor]
|
|
36
|
-
* @param {number} [size]
|
|
37
|
-
* @param {*} [options] Override http request option.
|
|
38
|
-
* @throws {RequiredError}
|
|
39
|
-
*/
|
|
40
|
-
getFeed: async (anonymousId, cursor, size, options = {}) => {
|
|
41
|
-
// verify required parameter 'anonymousId' is not null or undefined
|
|
42
|
-
(0, common_1.assertParamExists)('getFeed', 'anonymousId', anonymousId);
|
|
43
|
-
const localVarPath = `/api/immersive-votes`;
|
|
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: 'GET', ...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
|
-
if (cursor !== undefined) {
|
|
57
|
-
localVarQueryParameter['cursor'] = cursor;
|
|
58
|
-
}
|
|
59
|
-
if (size !== undefined) {
|
|
60
|
-
localVarQueryParameter['size'] = size;
|
|
61
|
-
}
|
|
62
|
-
if (anonymousId !== undefined) {
|
|
63
|
-
localVarQueryParameter['anonymousId'] = anonymousId;
|
|
64
|
-
}
|
|
65
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
66
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
67
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
68
|
-
return {
|
|
69
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
70
|
-
options: localVarRequestOptions,
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
/**
|
|
74
|
-
*
|
|
75
|
-
* @param {number} voteId
|
|
76
|
-
* @param {*} [options] Override http request option.
|
|
77
|
-
* @throws {RequiredError}
|
|
78
|
-
*/
|
|
79
|
-
getLive: async (voteId, options = {}) => {
|
|
80
|
-
// verify required parameter 'voteId' is not null or undefined
|
|
81
|
-
(0, common_1.assertParamExists)('getLive', 'voteId', voteId);
|
|
82
|
-
const localVarPath = `/api/immersive-votes/{voteId}/live`
|
|
83
|
-
.replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
|
|
84
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
86
|
-
let baseOptions;
|
|
87
|
-
if (configuration) {
|
|
88
|
-
baseOptions = configuration.baseOptions;
|
|
89
|
-
}
|
|
90
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
91
|
-
const localVarHeaderParameter = {};
|
|
92
|
-
const localVarQueryParameter = {};
|
|
93
|
-
// authentication bearerAuth required
|
|
94
|
-
// http bearer authentication required
|
|
95
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
96
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
97
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
99
|
-
return {
|
|
100
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
101
|
-
options: localVarRequestOptions,
|
|
102
|
-
};
|
|
103
|
-
},
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @param {number} voteId
|
|
107
|
-
* @param {string} anonymousId
|
|
108
|
-
* @param {ParticipateRequest} participateRequest
|
|
109
|
-
* @param {*} [options] Override http request option.
|
|
110
|
-
* @throws {RequiredError}
|
|
111
|
-
*/
|
|
112
|
-
participateOrCancel: async (voteId, anonymousId, participateRequest, options = {}) => {
|
|
113
|
-
// verify required parameter 'voteId' is not null or undefined
|
|
114
|
-
(0, common_1.assertParamExists)('participateOrCancel', 'voteId', voteId);
|
|
115
|
-
// verify required parameter 'anonymousId' is not null or undefined
|
|
116
|
-
(0, common_1.assertParamExists)('participateOrCancel', 'anonymousId', anonymousId);
|
|
117
|
-
// verify required parameter 'participateRequest' is not null or undefined
|
|
118
|
-
(0, common_1.assertParamExists)('participateOrCancel', 'participateRequest', participateRequest);
|
|
119
|
-
const localVarPath = `/api/immersive-votes/{voteId}/participate`
|
|
120
|
-
.replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
|
|
121
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
122
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
123
|
-
let baseOptions;
|
|
124
|
-
if (configuration) {
|
|
125
|
-
baseOptions = configuration.baseOptions;
|
|
126
|
-
}
|
|
127
|
-
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options };
|
|
128
|
-
const localVarHeaderParameter = {};
|
|
129
|
-
const localVarQueryParameter = {};
|
|
130
|
-
// authentication bearerAuth required
|
|
131
|
-
// http bearer authentication required
|
|
132
|
-
await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
133
|
-
if (anonymousId !== undefined) {
|
|
134
|
-
localVarQueryParameter['anonymousId'] = anonymousId;
|
|
135
|
-
}
|
|
136
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
137
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
138
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
139
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
140
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(participateRequest, localVarRequestOptions, configuration);
|
|
141
|
-
return {
|
|
142
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
143
|
-
options: localVarRequestOptions,
|
|
144
|
-
};
|
|
145
|
-
},
|
|
146
|
-
};
|
|
147
|
-
};
|
|
148
|
-
exports.ImmersiveVoteControllerApiAxiosParamCreator = ImmersiveVoteControllerApiAxiosParamCreator;
|
|
149
|
-
/**
|
|
150
|
-
* ImmersiveVoteControllerApi - functional programming interface
|
|
151
|
-
* @export
|
|
152
|
-
*/
|
|
153
|
-
const ImmersiveVoteControllerApiFp = function (configuration) {
|
|
154
|
-
const localVarAxiosParamCreator = (0, exports.ImmersiveVoteControllerApiAxiosParamCreator)(configuration);
|
|
155
|
-
return {
|
|
156
|
-
/**
|
|
157
|
-
*
|
|
158
|
-
* @param {string} anonymousId
|
|
159
|
-
* @param {number} [cursor]
|
|
160
|
-
* @param {number} [size]
|
|
161
|
-
* @param {*} [options] Override http request option.
|
|
162
|
-
* @throws {RequiredError}
|
|
163
|
-
*/
|
|
164
|
-
async getFeed(anonymousId, cursor, size, options) {
|
|
165
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getFeed(anonymousId, cursor, size, options);
|
|
166
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
167
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['ImmersiveVoteControllerApi.getFeed']?.[localVarOperationServerIndex]?.url;
|
|
168
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
169
|
-
},
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
* @param {number} voteId
|
|
173
|
-
* @param {*} [options] Override http request option.
|
|
174
|
-
* @throws {RequiredError}
|
|
175
|
-
*/
|
|
176
|
-
async getLive(voteId, options) {
|
|
177
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.getLive(voteId, options);
|
|
178
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
179
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['ImmersiveVoteControllerApi.getLive']?.[localVarOperationServerIndex]?.url;
|
|
180
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
181
|
-
},
|
|
182
|
-
/**
|
|
183
|
-
*
|
|
184
|
-
* @param {number} voteId
|
|
185
|
-
* @param {string} anonymousId
|
|
186
|
-
* @param {ParticipateRequest} participateRequest
|
|
187
|
-
* @param {*} [options] Override http request option.
|
|
188
|
-
* @throws {RequiredError}
|
|
189
|
-
*/
|
|
190
|
-
async participateOrCancel(voteId, anonymousId, participateRequest, options) {
|
|
191
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.participateOrCancel(voteId, anonymousId, participateRequest, options);
|
|
192
|
-
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
193
|
-
const localVarOperationServerBasePath = base_1.operationServerMap['ImmersiveVoteControllerApi.participateOrCancel']?.[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
|
-
exports.ImmersiveVoteControllerApiFp = ImmersiveVoteControllerApiFp;
|
|
199
|
-
/**
|
|
200
|
-
* ImmersiveVoteControllerApi - factory interface
|
|
201
|
-
* @export
|
|
202
|
-
*/
|
|
203
|
-
const ImmersiveVoteControllerApiFactory = function (configuration, basePath, axios) {
|
|
204
|
-
const localVarFp = (0, exports.ImmersiveVoteControllerApiFp)(configuration);
|
|
205
|
-
return {
|
|
206
|
-
/**
|
|
207
|
-
*
|
|
208
|
-
* @param {string} anonymousId
|
|
209
|
-
* @param {number} [cursor]
|
|
210
|
-
* @param {number} [size]
|
|
211
|
-
* @param {*} [options] Override http request option.
|
|
212
|
-
* @throws {RequiredError}
|
|
213
|
-
*/
|
|
214
|
-
getFeed(anonymousId, cursor, size, options) {
|
|
215
|
-
return localVarFp.getFeed(anonymousId, cursor, size, options).then((request) => request(axios, basePath));
|
|
216
|
-
},
|
|
217
|
-
/**
|
|
218
|
-
*
|
|
219
|
-
* @param {number} voteId
|
|
220
|
-
* @param {*} [options] Override http request option.
|
|
221
|
-
* @throws {RequiredError}
|
|
222
|
-
*/
|
|
223
|
-
getLive(voteId, options) {
|
|
224
|
-
return localVarFp.getLive(voteId, options).then((request) => request(axios, basePath));
|
|
225
|
-
},
|
|
226
|
-
/**
|
|
227
|
-
*
|
|
228
|
-
* @param {number} voteId
|
|
229
|
-
* @param {string} anonymousId
|
|
230
|
-
* @param {ParticipateRequest} participateRequest
|
|
231
|
-
* @param {*} [options] Override http request option.
|
|
232
|
-
* @throws {RequiredError}
|
|
233
|
-
*/
|
|
234
|
-
participateOrCancel(voteId, anonymousId, participateRequest, options) {
|
|
235
|
-
return localVarFp.participateOrCancel(voteId, anonymousId, participateRequest, options).then((request) => request(axios, basePath));
|
|
236
|
-
},
|
|
237
|
-
};
|
|
238
|
-
};
|
|
239
|
-
exports.ImmersiveVoteControllerApiFactory = ImmersiveVoteControllerApiFactory;
|
|
240
|
-
/**
|
|
241
|
-
* ImmersiveVoteControllerApi - object-oriented interface
|
|
242
|
-
* @export
|
|
243
|
-
* @class ImmersiveVoteControllerApi
|
|
244
|
-
* @extends {BaseAPI}
|
|
245
|
-
*/
|
|
246
|
-
class ImmersiveVoteControllerApi extends base_1.BaseAPI {
|
|
247
|
-
/**
|
|
248
|
-
*
|
|
249
|
-
* @param {string} anonymousId
|
|
250
|
-
* @param {number} [cursor]
|
|
251
|
-
* @param {number} [size]
|
|
252
|
-
* @param {*} [options] Override http request option.
|
|
253
|
-
* @throws {RequiredError}
|
|
254
|
-
* @memberof ImmersiveVoteControllerApi
|
|
255
|
-
*/
|
|
256
|
-
getFeed(anonymousId, cursor, size, options) {
|
|
257
|
-
return (0, exports.ImmersiveVoteControllerApiFp)(this.configuration).getFeed(anonymousId, cursor, size, options).then((request) => request(this.axios, this.basePath));
|
|
258
|
-
}
|
|
259
|
-
/**
|
|
260
|
-
*
|
|
261
|
-
* @param {number} voteId
|
|
262
|
-
* @param {*} [options] Override http request option.
|
|
263
|
-
* @throws {RequiredError}
|
|
264
|
-
* @memberof ImmersiveVoteControllerApi
|
|
265
|
-
*/
|
|
266
|
-
getLive(voteId, options) {
|
|
267
|
-
return (0, exports.ImmersiveVoteControllerApiFp)(this.configuration).getLive(voteId, options).then((request) => request(this.axios, this.basePath));
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
*
|
|
271
|
-
* @param {number} voteId
|
|
272
|
-
* @param {string} anonymousId
|
|
273
|
-
* @param {ParticipateRequest} participateRequest
|
|
274
|
-
* @param {*} [options] Override http request option.
|
|
275
|
-
* @throws {RequiredError}
|
|
276
|
-
* @memberof ImmersiveVoteControllerApi
|
|
277
|
-
*/
|
|
278
|
-
participateOrCancel(voteId, anonymousId, participateRequest, options) {
|
|
279
|
-
return (0, exports.ImmersiveVoteControllerApiFp)(this.configuration).participateOrCancel(voteId, anonymousId, participateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
exports.ImmersiveVoteControllerApi = ImmersiveVoteControllerApi;
|