Skip to content

Commit 8c68885

Browse files
Follow-up solvedac/unofficial-documentation (#8)
Co-authored-by: RanolP <RanolP@users.noreply.github.com>
1 parent 11a693e commit 8c68885

27 files changed

+1213
-12
lines changed

dist/apis/AccountApi.d.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @solvedac/unofficial-documentation
3+
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
4+
*
5+
* The version of the OpenAPI document: 3.2021.09+b2
6+
* Contact: public.ranolp@gmail.com
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 * as runtime from '../runtime';
13+
import { InlineObject, InlineResponse200 } from '../models';
14+
export interface UpdateAccountSettingsRequest {
15+
inlineObject: InlineObject;
16+
}
17+
/**
18+
*
19+
*/
20+
export declare class AccountApi extends runtime.BaseAPI {
21+
/**
22+
* 계정의 설정을 변경합니다.
23+
* 계정 설정 변경하기
24+
*/
25+
updateAccountSettingsRaw(requestParameters: UpdateAccountSettingsRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
26+
/**
27+
* 계정의 설정을 변경합니다.
28+
* 계정 설정 변경하기
29+
*/
30+
updateAccountSettings(requestParameters: UpdateAccountSettingsRequest, initOverrides?: RequestInit): Promise<void>;
31+
/**
32+
* 현재 로그인한 계정 정보를 가져옵니다.
33+
* 로그인 정보 가져오기
34+
*/
35+
verifyAccountCredentialsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<InlineResponse200>>;
36+
/**
37+
* 현재 로그인한 계정 정보를 가져옵니다.
38+
* 로그인 정보 가져오기
39+
*/
40+
verifyAccountCredentials(initOverrides?: RequestInit): Promise<InlineResponse200>;
41+
}

dist/apis/AccountApi.js

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* @solvedac/unofficial-documentation
5+
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
6+
*
7+
* The version of the OpenAPI document: 3.2021.09+b2
8+
* Contact: public.ranolp@gmail.com
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
import * as runtime from '../runtime';
15+
/**
16+
*
17+
*/
18+
export class AccountApi extends runtime.BaseAPI {
19+
/**
20+
* 계정의 설정을 변경합니다.
21+
* 계정 설정 변경하기
22+
*/
23+
async updateAccountSettingsRaw(requestParameters, initOverrides) {
24+
if (requestParameters.inlineObject === null || requestParameters.inlineObject === undefined) {
25+
throw new runtime.RequiredError('inlineObject', 'Required parameter requestParameters.inlineObject was null or undefined when calling updateAccountSettings.');
26+
}
27+
const queryParameters = {};
28+
const headerParameters = {};
29+
headerParameters['Content-Type'] = 'application/json';
30+
const response = await this.request({
31+
path: `/account/update_settings`,
32+
method: 'PATCH',
33+
headers: headerParameters,
34+
query: queryParameters,
35+
body: requestParameters.inlineObject,
36+
}, initOverrides);
37+
return new runtime.VoidApiResponse(response);
38+
}
39+
/**
40+
* 계정의 설정을 변경합니다.
41+
* 계정 설정 변경하기
42+
*/
43+
async updateAccountSettings(requestParameters, initOverrides) {
44+
await this.updateAccountSettingsRaw(requestParameters, initOverrides);
45+
}
46+
/**
47+
* 현재 로그인한 계정 정보를 가져옵니다.
48+
* 로그인 정보 가져오기
49+
*/
50+
async verifyAccountCredentialsRaw(initOverrides) {
51+
const queryParameters = {};
52+
const headerParameters = {};
53+
const response = await this.request({
54+
path: `/account/verify_credentials`,
55+
method: 'GET',
56+
headers: headerParameters,
57+
query: queryParameters,
58+
}, initOverrides);
59+
return new runtime.JSONApiResponse(response);
60+
}
61+
/**
62+
* 현재 로그인한 계정 정보를 가져옵니다.
63+
* 로그인 정보 가져오기
64+
*/
65+
async verifyAccountCredentials(initOverrides) {
66+
const response = await this.verifyAccountCredentialsRaw(initOverrides);
67+
return await response.value();
68+
}
69+
}

dist/apis/DefaultApi.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @solvedac/unofficial-documentation
33
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
44
*
5-
* The version of the OpenAPI document: 3.2021.09+b1
5+
* The version of the OpenAPI document: 3.2021.09+b2
66
* Contact: public.ranolp@gmail.com
77
*
88
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

dist/apis/DefaultApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @solvedac/unofficial-documentation
55
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
66
*
7-
* The version of the OpenAPI document: 3.2021.09+b1
7+
* The version of the OpenAPI document: 3.2021.09+b2
88
* Contact: public.ranolp@gmail.com
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

dist/apis/OtherApi.d.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/**
2+
* @solvedac/unofficial-documentation
3+
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
4+
*
5+
* The version of the OpenAPI document: 3.2021.09+b2
6+
* Contact: public.ranolp@gmail.com
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 * as runtime from '../runtime';
13+
import { Schema7 } from '../models';
14+
/**
15+
*
16+
*/
17+
export declare class OtherApi extends runtime.BaseAPI {
18+
/**
19+
* solved.ac 통계를 가져옵니다.
20+
* solved.ac 통계 가져오기
21+
*/
22+
getSiteStatsRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Schema7>>;
23+
/**
24+
* solved.ac 통계를 가져옵니다.
25+
* solved.ac 통계 가져오기
26+
*/
27+
getSiteStats(initOverrides?: RequestInit): Promise<Schema7>;
28+
}

dist/apis/OtherApi.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* @solvedac/unofficial-documentation
5+
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
6+
*
7+
* The version of the OpenAPI document: 3.2021.09+b2
8+
* Contact: public.ranolp@gmail.com
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
import * as runtime from '../runtime';
15+
/**
16+
*
17+
*/
18+
export class OtherApi extends runtime.BaseAPI {
19+
/**
20+
* solved.ac 통계를 가져옵니다.
21+
* solved.ac 통계 가져오기
22+
*/
23+
async getSiteStatsRaw(initOverrides) {
24+
const queryParameters = {};
25+
const headerParameters = {};
26+
const response = await this.request({
27+
path: `/site/stats`,
28+
method: 'GET',
29+
headers: headerParameters,
30+
query: queryParameters,
31+
}, initOverrides);
32+
return new runtime.JSONApiResponse(response);
33+
}
34+
/**
35+
* solved.ac 통계를 가져옵니다.
36+
* solved.ac 통계 가져오기
37+
*/
38+
async getSiteStats(initOverrides) {
39+
const response = await this.getSiteStatsRaw(initOverrides);
40+
return await response.value();
41+
}
42+
}

dist/apis/ProblemApi.d.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* @solvedac/unofficial-documentation
3+
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
4+
*
5+
* The version of the OpenAPI document: 3.2021.09+b2
6+
* Contact: public.ranolp@gmail.com
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 * as runtime from '../runtime';
13+
import { InlineResponse2001, Schema2 } from '../models';
14+
export interface GetProblemByIdRequest {
15+
problemId: number;
16+
}
17+
/**
18+
*
19+
*/
20+
export declare class ProblemApi extends runtime.BaseAPI {
21+
/**
22+
* 해당하는 ID의 문제를 가져옵니다.
23+
* ID로 문제 가져오기
24+
*/
25+
getProblemByIdRaw(requestParameters: GetProblemByIdRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<Schema2>>;
26+
/**
27+
* 해당하는 ID의 문제를 가져옵니다.
28+
* ID로 문제 가져오기
29+
*/
30+
getProblemById(requestParameters: GetProblemByIdRequest, initOverrides?: RequestInit): Promise<Schema2>;
31+
/**
32+
* 문제 개수를 문제 수준별로 가져옵니다.
33+
* 수준별 문제 수 가져오기
34+
*/
35+
getProblemLevelRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<Array<InlineResponse2001>>>;
36+
/**
37+
* 문제 개수를 문제 수준별로 가져옵니다.
38+
* 수준별 문제 수 가져오기
39+
*/
40+
getProblemLevel(initOverrides?: RequestInit): Promise<Array<InlineResponse2001>>;
41+
}

dist/apis/ProblemApi.js

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* @solvedac/unofficial-documentation
5+
* 이 프로젝트는 [solved.ac](https://solved.ac/) API를 문서화하는 커뮤니티 프로젝트입니다. 이 저장소는 원작자의 요청에 따라 언제든 지워질 수 있으며, 현재 API와 일치하지 않을 수도 있는 점 양해 부탁드립니다. <sup> solved.ac 서비스는 shiftpsh가 기획·개발·디자인·운영하는 프로젝트로, 이 저장소와는 solved.ac의 API를 문서화해둔 것 이외에는 아무런 관련이 없습니다. </sup> [GitHub에서 보기](https://github.com/solvedac/unofficial-documentation) ![@solvedac/unofficial-documentation banner](./assets/solvedac-ud-compact.png)
6+
*
7+
* The version of the OpenAPI document: 3.2021.09+b2
8+
* Contact: public.ranolp@gmail.com
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
import * as runtime from '../runtime';
15+
/**
16+
*
17+
*/
18+
export class ProblemApi extends runtime.BaseAPI {
19+
/**
20+
* 해당하는 ID의 문제를 가져옵니다.
21+
* ID로 문제 가져오기
22+
*/
23+
async getProblemByIdRaw(requestParameters, initOverrides) {
24+
if (requestParameters.problemId === null || requestParameters.problemId === undefined) {
25+
throw new runtime.RequiredError('problemId', 'Required parameter requestParameters.problemId was null or undefined when calling getProblemById.');
26+
}
27+
const queryParameters = {};
28+
if (requestParameters.problemId !== undefined) {
29+
queryParameters['problemId'] = requestParameters.problemId;
30+
}
31+
const headerParameters = {};
32+
const response = await this.request({
33+
path: `/problem/show`,
34+
method: 'GET',
35+
headers: headerParameters,
36+
query: queryParameters,
37+
}, initOverrides);
38+
return new runtime.JSONApiResponse(response);
39+
}
40+
/**
41+
* 해당하는 ID의 문제를 가져옵니다.
42+
* ID로 문제 가져오기
43+
*/
44+
async getProblemById(requestParameters, initOverrides) {
45+
const response = await this.getProblemByIdRaw(requestParameters, initOverrides);
46+
return await response.value();
47+
}
48+
/**
49+
* 문제 개수를 문제 수준별로 가져옵니다.
50+
* 수준별 문제 수 가져오기
51+
*/
52+
async getProblemLevelRaw(initOverrides) {
53+
const queryParameters = {};
54+
const headerParameters = {};
55+
const response = await this.request({
56+
path: `/problem/level`,
57+
method: 'GET',
58+
headers: headerParameters,
59+
query: queryParameters,
60+
}, initOverrides);
61+
return new runtime.JSONApiResponse(response);
62+
}
63+
/**
64+
* 문제 개수를 문제 수준별로 가져옵니다.
65+
* 수준별 문제 수 가져오기
66+
*/
67+
async getProblemLevel(initOverrides) {
68+
const response = await this.getProblemLevelRaw(initOverrides);
69+
return await response.value();
70+
}
71+
}

0 commit comments

Comments
 (0)