@ject-4-vs-team/api-client 2026.501.2 → 2026.501.3

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.
@@ -0,0 +1,245 @@
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 { ChatListResponse } from '../models';
16
+ import type { ChatRoomResponse } from '../models';
17
+ import type { GaugeResponse } from '../models';
18
+ import type { MarkAsReadRequest } from '../models';
19
+ import type { MessagePageResponse } from '../models';
20
+ import type { MessageResponse } from '../models';
21
+ import type { SendMessageRequest } from '../models';
22
+ /**
23
+ * ChatControllerApi - axios parameter creator
24
+ * @export
25
+ */
26
+ export declare const ChatControllerApiAxiosParamCreator: (configuration?: Configuration) => {
27
+ /**
28
+ *
29
+ * @param {GetChatListStatusEnum} status
30
+ * @param {*} [options] Override http request option.
31
+ * @throws {RequiredError}
32
+ */
33
+ getChatList: (status: GetChatListStatusEnum, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
34
+ /**
35
+ *
36
+ * @param {number} voteId
37
+ * @param {*} [options] Override http request option.
38
+ * @throws {RequiredError}
39
+ */
40
+ getChatRoom: (voteId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
41
+ /**
42
+ *
43
+ * @param {number} voteId
44
+ * @param {*} [options] Override http request option.
45
+ * @throws {RequiredError}
46
+ */
47
+ getGauge: (voteId: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
48
+ /**
49
+ *
50
+ * @param {number} voteId
51
+ * @param {number} [cursor]
52
+ * @param {number} [size]
53
+ * @param {*} [options] Override http request option.
54
+ * @throws {RequiredError}
55
+ */
56
+ getMessages: (voteId: number, cursor?: number, size?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
57
+ /**
58
+ *
59
+ * @param {number} voteId
60
+ * @param {MarkAsReadRequest} markAsReadRequest
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ */
64
+ markAsRead: (voteId: number, markAsReadRequest: MarkAsReadRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
65
+ /**
66
+ *
67
+ * @param {number} voteId
68
+ * @param {SendMessageRequest} sendMessageRequest
69
+ * @param {*} [options] Override http request option.
70
+ * @throws {RequiredError}
71
+ */
72
+ sendMessage: (voteId: number, sendMessageRequest: SendMessageRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
73
+ };
74
+ /**
75
+ * ChatControllerApi - functional programming interface
76
+ * @export
77
+ */
78
+ export declare const ChatControllerApiFp: (configuration?: Configuration) => {
79
+ /**
80
+ *
81
+ * @param {GetChatListStatusEnum} status
82
+ * @param {*} [options] Override http request option.
83
+ * @throws {RequiredError}
84
+ */
85
+ getChatList(status: GetChatListStatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatListResponse>>;
86
+ /**
87
+ *
88
+ * @param {number} voteId
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ getChatRoom(voteId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ChatRoomResponse>>;
93
+ /**
94
+ *
95
+ * @param {number} voteId
96
+ * @param {*} [options] Override http request option.
97
+ * @throws {RequiredError}
98
+ */
99
+ getGauge(voteId: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GaugeResponse>>;
100
+ /**
101
+ *
102
+ * @param {number} voteId
103
+ * @param {number} [cursor]
104
+ * @param {number} [size]
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ getMessages(voteId: number, cursor?: number, size?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessagePageResponse>>;
109
+ /**
110
+ *
111
+ * @param {number} voteId
112
+ * @param {MarkAsReadRequest} markAsReadRequest
113
+ * @param {*} [options] Override http request option.
114
+ * @throws {RequiredError}
115
+ */
116
+ markAsRead(voteId: number, markAsReadRequest: MarkAsReadRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
117
+ /**
118
+ *
119
+ * @param {number} voteId
120
+ * @param {SendMessageRequest} sendMessageRequest
121
+ * @param {*} [options] Override http request option.
122
+ * @throws {RequiredError}
123
+ */
124
+ sendMessage(voteId: number, sendMessageRequest: SendMessageRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageResponse>>;
125
+ };
126
+ /**
127
+ * ChatControllerApi - factory interface
128
+ * @export
129
+ */
130
+ export declare const ChatControllerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
131
+ /**
132
+ *
133
+ * @param {GetChatListStatusEnum} status
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ getChatList(status: GetChatListStatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ChatListResponse>;
138
+ /**
139
+ *
140
+ * @param {number} voteId
141
+ * @param {*} [options] Override http request option.
142
+ * @throws {RequiredError}
143
+ */
144
+ getChatRoom(voteId: number, options?: RawAxiosRequestConfig): AxiosPromise<ChatRoomResponse>;
145
+ /**
146
+ *
147
+ * @param {number} voteId
148
+ * @param {*} [options] Override http request option.
149
+ * @throws {RequiredError}
150
+ */
151
+ getGauge(voteId: number, options?: RawAxiosRequestConfig): AxiosPromise<GaugeResponse>;
152
+ /**
153
+ *
154
+ * @param {number} voteId
155
+ * @param {number} [cursor]
156
+ * @param {number} [size]
157
+ * @param {*} [options] Override http request option.
158
+ * @throws {RequiredError}
159
+ */
160
+ getMessages(voteId: number, cursor?: number, size?: number, options?: RawAxiosRequestConfig): AxiosPromise<MessagePageResponse>;
161
+ /**
162
+ *
163
+ * @param {number} voteId
164
+ * @param {MarkAsReadRequest} markAsReadRequest
165
+ * @param {*} [options] Override http request option.
166
+ * @throws {RequiredError}
167
+ */
168
+ markAsRead(voteId: number, markAsReadRequest: MarkAsReadRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
169
+ /**
170
+ *
171
+ * @param {number} voteId
172
+ * @param {SendMessageRequest} sendMessageRequest
173
+ * @param {*} [options] Override http request option.
174
+ * @throws {RequiredError}
175
+ */
176
+ sendMessage(voteId: number, sendMessageRequest: SendMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise<MessageResponse>;
177
+ };
178
+ /**
179
+ * ChatControllerApi - object-oriented interface
180
+ * @export
181
+ * @class ChatControllerApi
182
+ * @extends {BaseAPI}
183
+ */
184
+ export declare class ChatControllerApi extends BaseAPI {
185
+ /**
186
+ *
187
+ * @param {GetChatListStatusEnum} status
188
+ * @param {*} [options] Override http request option.
189
+ * @throws {RequiredError}
190
+ * @memberof ChatControllerApi
191
+ */
192
+ getChatList(status: GetChatListStatusEnum, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatListResponse, any, {}>>;
193
+ /**
194
+ *
195
+ * @param {number} voteId
196
+ * @param {*} [options] Override http request option.
197
+ * @throws {RequiredError}
198
+ * @memberof ChatControllerApi
199
+ */
200
+ getChatRoom(voteId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ChatRoomResponse, any, {}>>;
201
+ /**
202
+ *
203
+ * @param {number} voteId
204
+ * @param {*} [options] Override http request option.
205
+ * @throws {RequiredError}
206
+ * @memberof ChatControllerApi
207
+ */
208
+ getGauge(voteId: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<GaugeResponse, any, {}>>;
209
+ /**
210
+ *
211
+ * @param {number} voteId
212
+ * @param {number} [cursor]
213
+ * @param {number} [size]
214
+ * @param {*} [options] Override http request option.
215
+ * @throws {RequiredError}
216
+ * @memberof ChatControllerApi
217
+ */
218
+ getMessages(voteId: number, cursor?: number, size?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessagePageResponse, any, {}>>;
219
+ /**
220
+ *
221
+ * @param {number} voteId
222
+ * @param {MarkAsReadRequest} markAsReadRequest
223
+ * @param {*} [options] Override http request option.
224
+ * @throws {RequiredError}
225
+ * @memberof ChatControllerApi
226
+ */
227
+ markAsRead(voteId: number, markAsReadRequest: MarkAsReadRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
228
+ /**
229
+ *
230
+ * @param {number} voteId
231
+ * @param {SendMessageRequest} sendMessageRequest
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ * @memberof ChatControllerApi
235
+ */
236
+ sendMessage(voteId: number, sendMessageRequest: SendMessageRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<MessageResponse, any, {}>>;
237
+ }
238
+ /**
239
+ * @export
240
+ */
241
+ export declare const GetChatListStatusEnum: {
242
+ readonly Ongoing: "ONGOING";
243
+ readonly Ended: "ENDED";
244
+ };
245
+ export type GetChatListStatusEnum = typeof GetChatListStatusEnum[keyof typeof GetChatListStatusEnum];
@@ -0,0 +1,474 @@
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.GetChatListStatusEnum = exports.ChatControllerApi = exports.ChatControllerApiFactory = exports.ChatControllerApiFp = exports.ChatControllerApiAxiosParamCreator = 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
+ * ChatControllerApi - axios parameter creator
28
+ * @export
29
+ */
30
+ const ChatControllerApiAxiosParamCreator = function (configuration) {
31
+ return {
32
+ /**
33
+ *
34
+ * @param {GetChatListStatusEnum} status
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ getChatList: async (status, options = {}) => {
39
+ // verify required parameter 'status' is not null or undefined
40
+ (0, common_1.assertParamExists)('getChatList', 'status', status);
41
+ const localVarPath = `/api/chats`;
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 (status !== undefined) {
55
+ localVarQueryParameter['status'] = status;
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
+ * @param {number} voteId
68
+ * @param {*} [options] Override http request option.
69
+ * @throws {RequiredError}
70
+ */
71
+ getChatRoom: async (voteId, options = {}) => {
72
+ // verify required parameter 'voteId' is not null or undefined
73
+ (0, common_1.assertParamExists)('getChatRoom', 'voteId', voteId);
74
+ const localVarPath = `/api/chats/{voteId}`
75
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
76
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
77
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
78
+ let baseOptions;
79
+ if (configuration) {
80
+ baseOptions = configuration.baseOptions;
81
+ }
82
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
83
+ const localVarHeaderParameter = {};
84
+ const localVarQueryParameter = {};
85
+ // authentication bearerAuth required
86
+ // http bearer authentication required
87
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
88
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
89
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
90
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
91
+ return {
92
+ url: (0, common_1.toPathString)(localVarUrlObj),
93
+ options: localVarRequestOptions,
94
+ };
95
+ },
96
+ /**
97
+ *
98
+ * @param {number} voteId
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ getGauge: async (voteId, options = {}) => {
103
+ // verify required parameter 'voteId' is not null or undefined
104
+ (0, common_1.assertParamExists)('getGauge', 'voteId', voteId);
105
+ const localVarPath = `/api/chats/{voteId}/gauge`
106
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
107
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
108
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
109
+ let baseOptions;
110
+ if (configuration) {
111
+ baseOptions = configuration.baseOptions;
112
+ }
113
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
114
+ const localVarHeaderParameter = {};
115
+ const localVarQueryParameter = {};
116
+ // authentication bearerAuth required
117
+ // http bearer authentication required
118
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
119
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
120
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
121
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
122
+ return {
123
+ url: (0, common_1.toPathString)(localVarUrlObj),
124
+ options: localVarRequestOptions,
125
+ };
126
+ },
127
+ /**
128
+ *
129
+ * @param {number} voteId
130
+ * @param {number} [cursor]
131
+ * @param {number} [size]
132
+ * @param {*} [options] Override http request option.
133
+ * @throws {RequiredError}
134
+ */
135
+ getMessages: async (voteId, cursor, size, options = {}) => {
136
+ // verify required parameter 'voteId' is not null or undefined
137
+ (0, common_1.assertParamExists)('getMessages', 'voteId', voteId);
138
+ const localVarPath = `/api/chats/{voteId}/messages`
139
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
140
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
141
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
142
+ let baseOptions;
143
+ if (configuration) {
144
+ baseOptions = configuration.baseOptions;
145
+ }
146
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
147
+ const localVarHeaderParameter = {};
148
+ const localVarQueryParameter = {};
149
+ // authentication bearerAuth required
150
+ // http bearer authentication required
151
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
152
+ if (cursor !== undefined) {
153
+ localVarQueryParameter['cursor'] = cursor;
154
+ }
155
+ if (size !== undefined) {
156
+ localVarQueryParameter['size'] = size;
157
+ }
158
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
159
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
160
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
161
+ return {
162
+ url: (0, common_1.toPathString)(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ },
166
+ /**
167
+ *
168
+ * @param {number} voteId
169
+ * @param {MarkAsReadRequest} markAsReadRequest
170
+ * @param {*} [options] Override http request option.
171
+ * @throws {RequiredError}
172
+ */
173
+ markAsRead: async (voteId, markAsReadRequest, options = {}) => {
174
+ // verify required parameter 'voteId' is not null or undefined
175
+ (0, common_1.assertParamExists)('markAsRead', 'voteId', voteId);
176
+ // verify required parameter 'markAsReadRequest' is not null or undefined
177
+ (0, common_1.assertParamExists)('markAsRead', 'markAsReadRequest', markAsReadRequest);
178
+ const localVarPath = `/api/chats/{voteId}/read`
179
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
180
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
181
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
182
+ let baseOptions;
183
+ if (configuration) {
184
+ baseOptions = configuration.baseOptions;
185
+ }
186
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
187
+ const localVarHeaderParameter = {};
188
+ const localVarQueryParameter = {};
189
+ // authentication bearerAuth required
190
+ // http bearer authentication required
191
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
192
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
194
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
195
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
196
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(markAsReadRequest, localVarRequestOptions, configuration);
197
+ return {
198
+ url: (0, common_1.toPathString)(localVarUrlObj),
199
+ options: localVarRequestOptions,
200
+ };
201
+ },
202
+ /**
203
+ *
204
+ * @param {number} voteId
205
+ * @param {SendMessageRequest} sendMessageRequest
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ sendMessage: async (voteId, sendMessageRequest, options = {}) => {
210
+ // verify required parameter 'voteId' is not null or undefined
211
+ (0, common_1.assertParamExists)('sendMessage', 'voteId', voteId);
212
+ // verify required parameter 'sendMessageRequest' is not null or undefined
213
+ (0, common_1.assertParamExists)('sendMessage', 'sendMessageRequest', sendMessageRequest);
214
+ const localVarPath = `/api/chats/{voteId}/messages`
215
+ .replace(`{${"voteId"}}`, encodeURIComponent(String(voteId)));
216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
218
+ let baseOptions;
219
+ if (configuration) {
220
+ baseOptions = configuration.baseOptions;
221
+ }
222
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
223
+ const localVarHeaderParameter = {};
224
+ const localVarQueryParameter = {};
225
+ // authentication bearerAuth required
226
+ // http bearer authentication required
227
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
228
+ localVarHeaderParameter['Content-Type'] = 'application/json';
229
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
230
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
231
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
232
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(sendMessageRequest, localVarRequestOptions, configuration);
233
+ return {
234
+ url: (0, common_1.toPathString)(localVarUrlObj),
235
+ options: localVarRequestOptions,
236
+ };
237
+ },
238
+ };
239
+ };
240
+ exports.ChatControllerApiAxiosParamCreator = ChatControllerApiAxiosParamCreator;
241
+ /**
242
+ * ChatControllerApi - functional programming interface
243
+ * @export
244
+ */
245
+ const ChatControllerApiFp = function (configuration) {
246
+ const localVarAxiosParamCreator = (0, exports.ChatControllerApiAxiosParamCreator)(configuration);
247
+ return {
248
+ /**
249
+ *
250
+ * @param {GetChatListStatusEnum} status
251
+ * @param {*} [options] Override http request option.
252
+ * @throws {RequiredError}
253
+ */
254
+ async getChatList(status, options) {
255
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChatList(status, options);
256
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
257
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChatControllerApi.getChatList']?.[localVarOperationServerIndex]?.url;
258
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
259
+ },
260
+ /**
261
+ *
262
+ * @param {number} voteId
263
+ * @param {*} [options] Override http request option.
264
+ * @throws {RequiredError}
265
+ */
266
+ async getChatRoom(voteId, options) {
267
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getChatRoom(voteId, options);
268
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
269
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChatControllerApi.getChatRoom']?.[localVarOperationServerIndex]?.url;
270
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
271
+ },
272
+ /**
273
+ *
274
+ * @param {number} voteId
275
+ * @param {*} [options] Override http request option.
276
+ * @throws {RequiredError}
277
+ */
278
+ async getGauge(voteId, options) {
279
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getGauge(voteId, options);
280
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
281
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChatControllerApi.getGauge']?.[localVarOperationServerIndex]?.url;
282
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
283
+ },
284
+ /**
285
+ *
286
+ * @param {number} voteId
287
+ * @param {number} [cursor]
288
+ * @param {number} [size]
289
+ * @param {*} [options] Override http request option.
290
+ * @throws {RequiredError}
291
+ */
292
+ async getMessages(voteId, cursor, size, options) {
293
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getMessages(voteId, cursor, size, options);
294
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
295
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChatControllerApi.getMessages']?.[localVarOperationServerIndex]?.url;
296
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
297
+ },
298
+ /**
299
+ *
300
+ * @param {number} voteId
301
+ * @param {MarkAsReadRequest} markAsReadRequest
302
+ * @param {*} [options] Override http request option.
303
+ * @throws {RequiredError}
304
+ */
305
+ async markAsRead(voteId, markAsReadRequest, options) {
306
+ const localVarAxiosArgs = await localVarAxiosParamCreator.markAsRead(voteId, markAsReadRequest, options);
307
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
308
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChatControllerApi.markAsRead']?.[localVarOperationServerIndex]?.url;
309
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
310
+ },
311
+ /**
312
+ *
313
+ * @param {number} voteId
314
+ * @param {SendMessageRequest} sendMessageRequest
315
+ * @param {*} [options] Override http request option.
316
+ * @throws {RequiredError}
317
+ */
318
+ async sendMessage(voteId, sendMessageRequest, options) {
319
+ const localVarAxiosArgs = await localVarAxiosParamCreator.sendMessage(voteId, sendMessageRequest, options);
320
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
321
+ const localVarOperationServerBasePath = base_1.operationServerMap['ChatControllerApi.sendMessage']?.[localVarOperationServerIndex]?.url;
322
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
323
+ },
324
+ };
325
+ };
326
+ exports.ChatControllerApiFp = ChatControllerApiFp;
327
+ /**
328
+ * ChatControllerApi - factory interface
329
+ * @export
330
+ */
331
+ const ChatControllerApiFactory = function (configuration, basePath, axios) {
332
+ const localVarFp = (0, exports.ChatControllerApiFp)(configuration);
333
+ return {
334
+ /**
335
+ *
336
+ * @param {GetChatListStatusEnum} status
337
+ * @param {*} [options] Override http request option.
338
+ * @throws {RequiredError}
339
+ */
340
+ getChatList(status, options) {
341
+ return localVarFp.getChatList(status, options).then((request) => request(axios, basePath));
342
+ },
343
+ /**
344
+ *
345
+ * @param {number} voteId
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ getChatRoom(voteId, options) {
350
+ return localVarFp.getChatRoom(voteId, options).then((request) => request(axios, basePath));
351
+ },
352
+ /**
353
+ *
354
+ * @param {number} voteId
355
+ * @param {*} [options] Override http request option.
356
+ * @throws {RequiredError}
357
+ */
358
+ getGauge(voteId, options) {
359
+ return localVarFp.getGauge(voteId, options).then((request) => request(axios, basePath));
360
+ },
361
+ /**
362
+ *
363
+ * @param {number} voteId
364
+ * @param {number} [cursor]
365
+ * @param {number} [size]
366
+ * @param {*} [options] Override http request option.
367
+ * @throws {RequiredError}
368
+ */
369
+ getMessages(voteId, cursor, size, options) {
370
+ return localVarFp.getMessages(voteId, cursor, size, options).then((request) => request(axios, basePath));
371
+ },
372
+ /**
373
+ *
374
+ * @param {number} voteId
375
+ * @param {MarkAsReadRequest} markAsReadRequest
376
+ * @param {*} [options] Override http request option.
377
+ * @throws {RequiredError}
378
+ */
379
+ markAsRead(voteId, markAsReadRequest, options) {
380
+ return localVarFp.markAsRead(voteId, markAsReadRequest, options).then((request) => request(axios, basePath));
381
+ },
382
+ /**
383
+ *
384
+ * @param {number} voteId
385
+ * @param {SendMessageRequest} sendMessageRequest
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ sendMessage(voteId, sendMessageRequest, options) {
390
+ return localVarFp.sendMessage(voteId, sendMessageRequest, options).then((request) => request(axios, basePath));
391
+ },
392
+ };
393
+ };
394
+ exports.ChatControllerApiFactory = ChatControllerApiFactory;
395
+ /**
396
+ * ChatControllerApi - object-oriented interface
397
+ * @export
398
+ * @class ChatControllerApi
399
+ * @extends {BaseAPI}
400
+ */
401
+ class ChatControllerApi extends base_1.BaseAPI {
402
+ /**
403
+ *
404
+ * @param {GetChatListStatusEnum} status
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ * @memberof ChatControllerApi
408
+ */
409
+ getChatList(status, options) {
410
+ return (0, exports.ChatControllerApiFp)(this.configuration).getChatList(status, options).then((request) => request(this.axios, this.basePath));
411
+ }
412
+ /**
413
+ *
414
+ * @param {number} voteId
415
+ * @param {*} [options] Override http request option.
416
+ * @throws {RequiredError}
417
+ * @memberof ChatControllerApi
418
+ */
419
+ getChatRoom(voteId, options) {
420
+ return (0, exports.ChatControllerApiFp)(this.configuration).getChatRoom(voteId, options).then((request) => request(this.axios, this.basePath));
421
+ }
422
+ /**
423
+ *
424
+ * @param {number} voteId
425
+ * @param {*} [options] Override http request option.
426
+ * @throws {RequiredError}
427
+ * @memberof ChatControllerApi
428
+ */
429
+ getGauge(voteId, options) {
430
+ return (0, exports.ChatControllerApiFp)(this.configuration).getGauge(voteId, options).then((request) => request(this.axios, this.basePath));
431
+ }
432
+ /**
433
+ *
434
+ * @param {number} voteId
435
+ * @param {number} [cursor]
436
+ * @param {number} [size]
437
+ * @param {*} [options] Override http request option.
438
+ * @throws {RequiredError}
439
+ * @memberof ChatControllerApi
440
+ */
441
+ getMessages(voteId, cursor, size, options) {
442
+ return (0, exports.ChatControllerApiFp)(this.configuration).getMessages(voteId, cursor, size, options).then((request) => request(this.axios, this.basePath));
443
+ }
444
+ /**
445
+ *
446
+ * @param {number} voteId
447
+ * @param {MarkAsReadRequest} markAsReadRequest
448
+ * @param {*} [options] Override http request option.
449
+ * @throws {RequiredError}
450
+ * @memberof ChatControllerApi
451
+ */
452
+ markAsRead(voteId, markAsReadRequest, options) {
453
+ return (0, exports.ChatControllerApiFp)(this.configuration).markAsRead(voteId, markAsReadRequest, options).then((request) => request(this.axios, this.basePath));
454
+ }
455
+ /**
456
+ *
457
+ * @param {number} voteId
458
+ * @param {SendMessageRequest} sendMessageRequest
459
+ * @param {*} [options] Override http request option.
460
+ * @throws {RequiredError}
461
+ * @memberof ChatControllerApi
462
+ */
463
+ sendMessage(voteId, sendMessageRequest, options) {
464
+ return (0, exports.ChatControllerApiFp)(this.configuration).sendMessage(voteId, sendMessageRequest, options).then((request) => request(this.axios, this.basePath));
465
+ }
466
+ }
467
+ exports.ChatControllerApi = ChatControllerApi;
468
+ /**
469
+ * @export
470
+ */
471
+ exports.GetChatListStatusEnum = {
472
+ Ongoing: 'ONGOING',
473
+ Ended: 'ENDED'
474
+ };
package/dist/api.d.ts CHANGED
@@ -10,4 +10,5 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  export * from './api/auth-controller-api';
13
+ export * from './api/chat-controller-api';
13
14
  export * from './api/hello-controller-api';
package/dist/api.js CHANGED
@@ -28,4 +28,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
30
  __exportStar(require("./api/auth-controller-api"), exports);
31
+ __exportStar(require("./api/chat-controller-api"), exports);
31
32
  __exportStar(require("./api/hello-controller-api"), exports);
@@ -0,0 +1,23 @@
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 ChatListItemResponse {
13
+ voteId?: number;
14
+ title?: string;
15
+ thumbnailUrl?: string;
16
+ optionA?: string;
17
+ optionB?: string;
18
+ participantCount?: number;
19
+ lastMessage?: string;
20
+ lastMessageAt?: string;
21
+ endAt?: string;
22
+ unreadCount?: number;
23
+ }
@@ -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,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 { ChatListItemResponse } from './chat-list-item-response';
13
+ export interface ChatListResponse {
14
+ chats?: Array<ChatListItemResponse>;
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 });
@@ -0,0 +1,25 @@
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 ChatRoomResponse {
13
+ voteId?: number;
14
+ title?: string;
15
+ status?: ChatRoomResponseStatusEnum;
16
+ participantCount?: number;
17
+ optionA?: string;
18
+ optionB?: string;
19
+ endAt?: string;
20
+ }
21
+ export declare const ChatRoomResponseStatusEnum: {
22
+ readonly Ongoing: "ONGOING";
23
+ readonly Ended: "ENDED";
24
+ };
25
+ export type ChatRoomResponseStatusEnum = typeof ChatRoomResponseStatusEnum[keyof typeof ChatRoomResponseStatusEnum];
@@ -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.ChatRoomResponseStatusEnum = void 0;
17
+ exports.ChatRoomResponseStatusEnum = {
18
+ Ongoing: 'ONGOING',
19
+ Ended: 'ENDED'
20
+ };
@@ -0,0 +1,16 @@
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 GaugeResponse {
13
+ optionARatio?: number;
14
+ optionBRatio?: number;
15
+ participantCount?: number;
16
+ }
@@ -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 });
@@ -1 +1,9 @@
1
+ export * from './chat-list-item-response';
2
+ export * from './chat-list-response';
3
+ export * from './chat-room-response';
4
+ export * from './gauge-response';
1
5
  export * from './hello-response';
6
+ export * from './mark-as-read-request';
7
+ export * from './message-page-response';
8
+ export * from './message-response';
9
+ export * from './send-message-request';
@@ -14,4 +14,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./chat-list-item-response"), exports);
18
+ __exportStar(require("./chat-list-response"), exports);
19
+ __exportStar(require("./chat-room-response"), exports);
20
+ __exportStar(require("./gauge-response"), exports);
17
21
  __exportStar(require("./hello-response"), exports);
22
+ __exportStar(require("./mark-as-read-request"), exports);
23
+ __exportStar(require("./message-page-response"), exports);
24
+ __exportStar(require("./message-response"), exports);
25
+ __exportStar(require("./send-message-request"), exports);
@@ -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 MarkAsReadRequest {
13
+ lastReadMessageId: 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,17 @@
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 { MessageResponse } from './message-response';
13
+ export interface MessagePageResponse {
14
+ messages?: Array<MessageResponse>;
15
+ nextCursor?: number;
16
+ hasNext?: boolean;
17
+ }
@@ -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,20 @@
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 MessageResponse {
13
+ messageId?: number;
14
+ content?: string;
15
+ sentAt?: string;
16
+ senderNickname?: string;
17
+ senderProfileIcon?: string;
18
+ senderVoteOption?: string;
19
+ isMine?: boolean;
20
+ }
@@ -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 SendMessageRequest {
13
+ content?: string;
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 });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ject-4-vs-team/api-client",
3
- "version": "2026.0501.2",
3
+ "version": "2026.0501.3",
4
4
  "description": "VS Server API client generated from OpenAPI spec",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",