Skip to content

Commit

Permalink
Follow-up solvedac/unofficial-documentation (#22)
Browse files Browse the repository at this point in the history
Co-authored-by: RanolP <[email protected]>
  • Loading branch information
github-actions[bot] and RanolP authored Sep 20, 2021
1 parent aff8b4a commit a10e10b
Show file tree
Hide file tree
Showing 25 changed files with 1,546 additions and 764 deletions.
17 changes: 15 additions & 2 deletions dist/apis/AccountApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,27 @@
* Do not edit the class manually.
*/
import * as runtime from '../runtime.js';
import { InlineObject, InlineResponse200 } from '../models/index.js';
export interface UpdateAccountSettingsRequest {
import { InlineObject, InlineObject1, InlineResponse200 } from '../models/index.js';
export interface RedeemCodeRequest {
inlineObject: InlineObject;
}
export interface UpdateAccountSettingsRequest {
inlineObject1: InlineObject1;
}
/**
*
*/
export declare class AccountApi extends runtime.BaseAPI {
/**
* 리딤 코드와 배지, 배경 등을 교환합니다.
* 코드 교환하기
*/
redeemCodeRaw(requestParameters: RedeemCodeRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* 리딤 코드와 배지, 배경 등을 교환합니다.
* 코드 교환하기
*/
redeemCode(requestParameters: RedeemCodeRequest, initOverrides?: RequestInit): Promise<void>;
/**
* 계정의 설정을 변경합니다.
* 계정 설정 변경하기
Expand Down
33 changes: 30 additions & 3 deletions dist/apis/AccountApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,40 @@ import * as runtime from '../runtime.js';
*
*/
export class AccountApi extends runtime.BaseAPI {
/**
* 리딤 코드와 배지, 배경 등을 교환합니다.
* 코드 교환하기
*/
async redeemCodeRaw(requestParameters, initOverrides) {
if (requestParameters.inlineObject === null || requestParameters.inlineObject === undefined) {
throw new runtime.RequiredError('inlineObject', 'Required parameter requestParameters.inlineObject was null or undefined when calling redeemCode.');
}
const queryParameters = {};
const headerParameters = {};
headerParameters['Content-Type'] = 'application/json';
const response = await this.request({
path: `/account/redeem`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: requestParameters.inlineObject,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* 리딤 코드와 배지, 배경 등을 교환합니다.
* 코드 교환하기
*/
async redeemCode(requestParameters, initOverrides) {
await this.redeemCodeRaw(requestParameters, initOverrides);
}
/**
* 계정의 설정을 변경합니다.
* 계정 설정 변경하기
*/
async updateAccountSettingsRaw(requestParameters, initOverrides) {
if (requestParameters.inlineObject === null || requestParameters.inlineObject === undefined) {
throw new runtime.RequiredError('inlineObject', 'Required parameter requestParameters.inlineObject was null or undefined when calling updateAccountSettings.');
if (requestParameters.inlineObject1 === null || requestParameters.inlineObject1 === undefined) {
throw new runtime.RequiredError('inlineObject1', 'Required parameter requestParameters.inlineObject1 was null or undefined when calling updateAccountSettings.');
}
const queryParameters = {};
const headerParameters = {};
Expand All @@ -32,7 +59,7 @@ export class AccountApi extends runtime.BaseAPI {
method: 'PATCH',
headers: headerParameters,
query: queryParameters,
body: requestParameters.inlineObject,
body: requestParameters.inlineObject1,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
Expand Down
72 changes: 0 additions & 72 deletions dist/apis/DefaultApi.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ import * as runtime from '../runtime.js';
*
*/
export declare class DefaultApi extends runtime.BaseAPI {
/**
* TODO
*/
accountRedeemPostRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
accountRedeemPost(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
Expand All @@ -30,70 +22,6 @@ export declare class DefaultApi extends runtime.BaseAPI {
* TODO
*/
postShowGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
problemClassGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
problemClassGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingClassGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingClassGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingContributionGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingContributionGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingOrganizationGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingOrganizationGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingReverseRivalGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingReverseRivalGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingRivalGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingRivalGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingStreakGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingStreakGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
rankingTierGetRaw(initOverrides?: RequestInit): Promise<runtime.ApiResponse<void>>;
/**
* TODO
*/
rankingTierGet(initOverrides?: RequestInit): Promise<void>;
/**
* TODO
*/
Expand Down
180 changes: 0 additions & 180 deletions dist/apis/DefaultApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,6 @@ import * as runtime from '../runtime.js';
*
*/
export class DefaultApi extends runtime.BaseAPI {
/**
* TODO
*/
async accountRedeemPostRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/account/redeem`,
method: 'POST',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async accountRedeemPost(initOverrides) {
await this.accountRedeemPostRaw(initOverrides);
}
/**
* TODO
*/
Expand All @@ -56,166 +36,6 @@ export class DefaultApi extends runtime.BaseAPI {
async postShowGet(initOverrides) {
await this.postShowGetRaw(initOverrides);
}
/**
* TODO
*/
async problemClassGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/problem/class`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async problemClassGet(initOverrides) {
await this.problemClassGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingClassGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/class`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingClassGet(initOverrides) {
await this.rankingClassGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingContributionGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/contribution`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingContributionGet(initOverrides) {
await this.rankingContributionGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingOrganizationGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/organization`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingOrganizationGet(initOverrides) {
await this.rankingOrganizationGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingReverseRivalGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/reverse_rival`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingReverseRivalGet(initOverrides) {
await this.rankingReverseRivalGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingRivalGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/rival`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingRivalGet(initOverrides) {
await this.rankingRivalGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingStreakGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/streak`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingStreakGet(initOverrides) {
await this.rankingStreakGetRaw(initOverrides);
}
/**
* TODO
*/
async rankingTierGetRaw(initOverrides) {
const queryParameters = {};
const headerParameters = {};
const response = await this.request({
path: `/ranking/tier`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
}, initOverrides);
return new runtime.VoidApiResponse(response);
}
/**
* TODO
*/
async rankingTierGet(initOverrides) {
await this.rankingTierGetRaw(initOverrides);
}
/**
* TODO
*/
Expand Down
Loading

0 comments on commit a10e10b

Please sign in to comment.