Skip to content

Commit

Permalink
chore: update apiClient
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Oct 25, 2024
1 parent 56bd60e commit 5f3f82f
Show file tree
Hide file tree
Showing 133 changed files with 5,125 additions and 4,767 deletions.
142 changes: 71 additions & 71 deletions ui/packages/api-client/src/apis/AlbumApi.ts

Large diffs are not rendered by default.

32 changes: 16 additions & 16 deletions ui/packages/api-client/src/apis/AuthApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@

import * as runtime from '../runtime';
import type {
IoSakurasouControllerRequestUserInsertRequest,
IoSakurasouControllerRequestUserLoginRequest,
UserInsertRequest,
UserLoginRequest,
} from '../models/index';
import {
IoSakurasouControllerRequestUserInsertRequestFromJSON,
IoSakurasouControllerRequestUserInsertRequestToJSON,
IoSakurasouControllerRequestUserLoginRequestFromJSON,
IoSakurasouControllerRequestUserLoginRequestToJSON,
UserInsertRequestFromJSON,
UserInsertRequestToJSON,
UserLoginRequestFromJSON,
UserLoginRequestToJSON,
} from '../models/index';

export interface ApiUserLoginPostRequest {
ioSakurasouControllerRequestUserLoginRequest: IoSakurasouControllerRequestUserLoginRequest;
userLoginRequest: UserLoginRequest;
}

export interface ApiUserSignupPostRequest {
ioSakurasouControllerRequestUserInsertRequest: IoSakurasouControllerRequestUserInsertRequest;
userInsertRequest: UserInsertRequest;
}

/**
Expand All @@ -41,10 +41,10 @@ export class AuthApi extends runtime.BaseAPI {
/**
*/
async apiUserLoginPostRaw(requestParameters: ApiUserLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
if (requestParameters['ioSakurasouControllerRequestUserLoginRequest'] == null) {
if (requestParameters['userLoginRequest'] == null) {
throw new runtime.RequiredError(
'ioSakurasouControllerRequestUserLoginRequest',
'Required parameter "ioSakurasouControllerRequestUserLoginRequest" was null or undefined when calling apiUserLoginPost().'
'userLoginRequest',
'Required parameter "userLoginRequest" was null or undefined when calling apiUserLoginPost().'
);
}

Expand All @@ -59,7 +59,7 @@ export class AuthApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: IoSakurasouControllerRequestUserLoginRequestToJSON(requestParameters['ioSakurasouControllerRequestUserLoginRequest']),
body: UserLoginRequestToJSON(requestParameters['userLoginRequest']),
}, initOverrides);

return new runtime.VoidApiResponse(response);
Expand All @@ -74,10 +74,10 @@ export class AuthApi extends runtime.BaseAPI {
/**
*/
async apiUserSignupPostRaw(requestParameters: ApiUserSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
if (requestParameters['ioSakurasouControllerRequestUserInsertRequest'] == null) {
if (requestParameters['userInsertRequest'] == null) {
throw new runtime.RequiredError(
'ioSakurasouControllerRequestUserInsertRequest',
'Required parameter "ioSakurasouControllerRequestUserInsertRequest" was null or undefined when calling apiUserSignupPost().'
'userInsertRequest',
'Required parameter "userInsertRequest" was null or undefined when calling apiUserSignupPost().'
);
}

Expand All @@ -92,7 +92,7 @@ export class AuthApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: IoSakurasouControllerRequestUserInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestUserInsertRequest']),
body: UserInsertRequestToJSON(requestParameters['userInsertRequest']),
}, initOverrides);

return new runtime.VoidApiResponse(response);
Expand Down
66 changes: 33 additions & 33 deletions ui/packages/api-client/src/apis/DefaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,23 @@

import * as runtime from '../runtime';
import type {
IoSakurasouControllerRequestSiteInitRequest,
SiteInitRequest,
} from '../models/index';
import {
IoSakurasouControllerRequestSiteInitRequestFromJSON,
IoSakurasouControllerRequestSiteInitRequestToJSON,
SiteInitRequestFromJSON,
SiteInitRequestToJSON,
} from '../models/index';

export interface ApiComUcasoftKtorSimpleCacheCacheOutputSelector21a9a705RandomGetRequest {
id?: string;
export interface ApiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGetRequest {
imageUniqueId: string;
}

export interface ApiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGetRequest {
imageUniqueId: string;
export interface ApiComUcasoftKtorSimpleCacheCacheOutputSelector343fddd9RandomGetRequest {
id?: string;
}

export interface ApiSiteInitPostRequest {
ioSakurasouControllerRequestSiteInitRequest: IoSakurasouControllerRequestSiteInitRequest;
siteInitRequest: SiteInitRequest;
}

/**
Expand All @@ -40,19 +40,21 @@ export interface ApiSiteInitPostRequest {
export class DefaultApi extends runtime.BaseAPI {

/**
* return random image if setting allow
*/
async apiComUcasoftKtorSimpleCacheCacheOutputSelector21a9a705RandomGetRaw(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector21a9a705RandomGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
const queryParameters: any = {};

if (requestParameters['id'] != null) {
queryParameters['id'] = requestParameters['id'];
async apiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGetRaw(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
if (requestParameters['imageUniqueId'] == null) {
throw new runtime.RequiredError(
'imageUniqueId',
'Required parameter "imageUniqueId" was null or undefined when calling apiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGet().'
);
}

const queryParameters: any = {};

const headerParameters: runtime.HTTPHeaders = {};

const response = await this.request({
path: `/api/com.ucasoft.ktor.simpleCache.CacheOutputSelector@21a9a705/random`,
path: `/api/com.ucasoft.ktor.simpleCache.CacheOutputSelector@250b5e5b/s/{imageUniqueId}`.replace(`{${"imageUniqueId"}}`, encodeURIComponent(String(requestParameters['imageUniqueId']))),
method: 'GET',
headers: headerParameters,
query: queryParameters,
Expand All @@ -62,28 +64,25 @@ export class DefaultApi extends runtime.BaseAPI {
}

/**
* return random image if setting allow
*/
async apiComUcasoftKtorSimpleCacheCacheOutputSelector21a9a705RandomGet(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector21a9a705RandomGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
await this.apiComUcasoftKtorSimpleCacheCacheOutputSelector21a9a705RandomGetRaw(requestParameters, initOverrides);
async apiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGet(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
await this.apiComUcasoftKtorSimpleCacheCacheOutputSelector250b5e5bSImageUniqueIdGetRaw(requestParameters, initOverrides);
}

/**
* return random image if setting allow
*/
async apiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGetRaw(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
if (requestParameters['imageUniqueId'] == null) {
throw new runtime.RequiredError(
'imageUniqueId',
'Required parameter "imageUniqueId" was null or undefined when calling apiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGet().'
);
}

async apiComUcasoftKtorSimpleCacheCacheOutputSelector343fddd9RandomGetRaw(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector343fddd9RandomGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
const queryParameters: any = {};

if (requestParameters['id'] != null) {
queryParameters['id'] = requestParameters['id'];
}

const headerParameters: runtime.HTTPHeaders = {};

const response = await this.request({
path: `/api/com.ucasoft.ktor.simpleCache.CacheOutputSelector@4a481728/s/{imageUniqueId}`.replace(`{${"imageUniqueId"}}`, encodeURIComponent(String(requestParameters['imageUniqueId']))),
path: `/api/com.ucasoft.ktor.simpleCache.CacheOutputSelector@343fddd9/random`,
method: 'GET',
headers: headerParameters,
query: queryParameters,
Expand All @@ -93,18 +92,19 @@ export class DefaultApi extends runtime.BaseAPI {
}

/**
* return random image if setting allow
*/
async apiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGet(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
await this.apiComUcasoftKtorSimpleCacheCacheOutputSelector4a481728SImageUniqueIdGetRaw(requestParameters, initOverrides);
async apiComUcasoftKtorSimpleCacheCacheOutputSelector343fddd9RandomGet(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector343fddd9RandomGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
await this.apiComUcasoftKtorSimpleCacheCacheOutputSelector343fddd9RandomGetRaw(requestParameters, initOverrides);
}

/**
*/
async apiSiteInitPostRaw(requestParameters: ApiSiteInitPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
if (requestParameters['ioSakurasouControllerRequestSiteInitRequest'] == null) {
if (requestParameters['siteInitRequest'] == null) {
throw new runtime.RequiredError(
'ioSakurasouControllerRequestSiteInitRequest',
'Required parameter "ioSakurasouControllerRequestSiteInitRequest" was null or undefined when calling apiSiteInitPost().'
'siteInitRequest',
'Required parameter "siteInitRequest" was null or undefined when calling apiSiteInitPost().'
);
}

Expand All @@ -119,7 +119,7 @@ export class DefaultApi extends runtime.BaseAPI {
method: 'POST',
headers: headerParameters,
query: queryParameters,
body: IoSakurasouControllerRequestSiteInitRequestToJSON(requestParameters['ioSakurasouControllerRequestSiteInitRequest']),
body: SiteInitRequestToJSON(requestParameters['siteInitRequest']),
}, initOverrides);

return new runtime.VoidApiResponse(response);
Expand Down
Loading

0 comments on commit 5f3f82f

Please sign in to comment.