Skip to content

Commit

Permalink
feat: update api client for ui
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiinaKin committed Sep 17, 2024
1 parent 0613ea9 commit 654b24d
Show file tree
Hide file tree
Showing 26 changed files with 2,473 additions and 301 deletions.
1,398 changes: 1,128 additions & 270 deletions ui/packages/api-client/src/apis/DefaultApi.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
/* tslint:disable */
/* eslint-disable */
/**
* HoshizoraPics API
* API for testing and demonstration purposes.
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from '../runtime';
/**
*
* @export
* @interface IoSakurasouControllerRequestAlbumManageInsertRequest
*/
export interface IoSakurasouControllerRequestAlbumManageInsertRequest {
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumManageInsertRequest
*/
description: string;
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumManageInsertRequest
*/
name: string;
/**
*
* @type {number}
* @memberof IoSakurasouControllerRequestAlbumManageInsertRequest
*/
userId: number;
}

/**
* Check if a given object implements the IoSakurasouControllerRequestAlbumManageInsertRequest interface.
*/
export function instanceOfIoSakurasouControllerRequestAlbumManageInsertRequest(value: object): value is IoSakurasouControllerRequestAlbumManageInsertRequest {
if (!('description' in value) || value['description'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
if (!('userId' in value) || value['userId'] === undefined) return false;
return true;
}

export function IoSakurasouControllerRequestAlbumManageInsertRequestFromJSON(json: any): IoSakurasouControllerRequestAlbumManageInsertRequest {
return IoSakurasouControllerRequestAlbumManageInsertRequestFromJSONTyped(json, false);
}

export function IoSakurasouControllerRequestAlbumManageInsertRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestAlbumManageInsertRequest {
if (json == null) {
return json;
}
return {

'description': json['description'],
'name': json['name'],
'userId': json['userId'],
};
}

export function IoSakurasouControllerRequestAlbumManageInsertRequestToJSON(value?: IoSakurasouControllerRequestAlbumManageInsertRequest | null): any {
if (value == null) {
return value;
}
return {

'description': value['description'],
'name': value['name'],
'userId': value['userId'],
};
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
/* tslint:disable */
/* eslint-disable */
/**
* HoshizoraPics API
* API for testing and demonstration purposes.
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from '../runtime';
/**
*
* @export
* @interface IoSakurasouControllerRequestAlbumManagePatchRequest
*/
export interface IoSakurasouControllerRequestAlbumManagePatchRequest {
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumManagePatchRequest
*/
description?: string;
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumManagePatchRequest
*/
name?: string;
/**
*
* @type {number}
* @memberof IoSakurasouControllerRequestAlbumManagePatchRequest
*/
userId: number;
}

/**
* Check if a given object implements the IoSakurasouControllerRequestAlbumManagePatchRequest interface.
*/
export function instanceOfIoSakurasouControllerRequestAlbumManagePatchRequest(value: object): value is IoSakurasouControllerRequestAlbumManagePatchRequest {
if (!('userId' in value) || value['userId'] === undefined) return false;
return true;
}

export function IoSakurasouControllerRequestAlbumManagePatchRequestFromJSON(json: any): IoSakurasouControllerRequestAlbumManagePatchRequest {
return IoSakurasouControllerRequestAlbumManagePatchRequestFromJSONTyped(json, false);
}

export function IoSakurasouControllerRequestAlbumManagePatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestAlbumManagePatchRequest {
if (json == null) {
return json;
}
return {

'description': json['description'] == null ? undefined : json['description'],
'name': json['name'] == null ? undefined : json['name'],
'userId': json['userId'],
};
}

export function IoSakurasouControllerRequestAlbumManagePatchRequestToJSON(value?: IoSakurasouControllerRequestAlbumManagePatchRequest | null): any {
if (value == null) {
return value;
}
return {

'description': value['description'],
'name': value['name'],
'userId': value['userId'],
};
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
/* tslint:disable */
/* eslint-disable */
/**
* HoshizoraPics API
* API for testing and demonstration purposes.
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from '../runtime';
/**
*
* @export
* @interface IoSakurasouControllerRequestAlbumSelfInsertRequest
*/
export interface IoSakurasouControllerRequestAlbumSelfInsertRequest {
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumSelfInsertRequest
*/
description: string;
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumSelfInsertRequest
*/
name: string;
}

/**
* Check if a given object implements the IoSakurasouControllerRequestAlbumSelfInsertRequest interface.
*/
export function instanceOfIoSakurasouControllerRequestAlbumSelfInsertRequest(value: object): value is IoSakurasouControllerRequestAlbumSelfInsertRequest {
if (!('description' in value) || value['description'] === undefined) return false;
if (!('name' in value) || value['name'] === undefined) return false;
return true;
}

export function IoSakurasouControllerRequestAlbumSelfInsertRequestFromJSON(json: any): IoSakurasouControllerRequestAlbumSelfInsertRequest {
return IoSakurasouControllerRequestAlbumSelfInsertRequestFromJSONTyped(json, false);
}

export function IoSakurasouControllerRequestAlbumSelfInsertRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestAlbumSelfInsertRequest {
if (json == null) {
return json;
}
return {

'description': json['description'],
'name': json['name'],
};
}

export function IoSakurasouControllerRequestAlbumSelfInsertRequestToJSON(value?: IoSakurasouControllerRequestAlbumSelfInsertRequest | null): any {
if (value == null) {
return value;
}
return {

'description': value['description'],
'name': value['name'],
};
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
/* tslint:disable */
/* eslint-disable */
/**
* HoshizoraPics API
* API for testing and demonstration purposes.
*
* The version of the OpenAPI document: latest
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

import { mapValues } from '../runtime';
/**
*
* @export
* @interface IoSakurasouControllerRequestAlbumSelfPatchRequest
*/
export interface IoSakurasouControllerRequestAlbumSelfPatchRequest {
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumSelfPatchRequest
*/
description?: string;
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestAlbumSelfPatchRequest
*/
name?: string;
}

/**
* Check if a given object implements the IoSakurasouControllerRequestAlbumSelfPatchRequest interface.
*/
export function instanceOfIoSakurasouControllerRequestAlbumSelfPatchRequest(value: object): value is IoSakurasouControllerRequestAlbumSelfPatchRequest {
return true;
}

export function IoSakurasouControllerRequestAlbumSelfPatchRequestFromJSON(json: any): IoSakurasouControllerRequestAlbumSelfPatchRequest {
return IoSakurasouControllerRequestAlbumSelfPatchRequestFromJSONTyped(json, false);
}

export function IoSakurasouControllerRequestAlbumSelfPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestAlbumSelfPatchRequest {
if (json == null) {
return json;
}
return {

'description': json['description'] == null ? undefined : json['description'],
'name': json['name'] == null ? undefined : json['name'],
};
}

export function IoSakurasouControllerRequestAlbumSelfPatchRequestToJSON(value?: IoSakurasouControllerRequestAlbumSelfPatchRequest | null): any {
if (value == null) {
return value;
}
return {

'description': value['description'],
'name': value['name'],
};
}

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ import { mapValues } from '../runtime';
* @interface IoSakurasouControllerRequestImagePatchRequest
*/
export interface IoSakurasouControllerRequestImagePatchRequest {
/**
*
* @type {number}
* @memberof IoSakurasouControllerRequestImagePatchRequest
*/
albumId?: number;
/**
*
* @type {string}
Expand Down Expand Up @@ -50,6 +56,7 @@ export function IoSakurasouControllerRequestImagePatchRequestFromJSONTyped(json:
}
return {

'albumId': json['albumId'] == null ? undefined : json['albumId'],
'description': json['description'] == null ? undefined : json['description'],
'originName': json['originName'] == null ? undefined : json['originName'],
};
Expand All @@ -61,6 +68,7 @@ export function IoSakurasouControllerRequestImagePatchRequestToJSON(value?: IoSa
}
return {

'albumId': value['albumId'],
'description': value['description'],
'originName': value['originName'],
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@ export interface IoSakurasouControllerRequestSiteInitRequest {
* @memberof IoSakurasouControllerRequestSiteInitRequest
*/
password: string;
/**
*
* @type {string}
* @memberof IoSakurasouControllerRequestSiteInitRequest
*/
siteDescription: string;
/**
*
* @type {string}
Expand All @@ -57,6 +63,7 @@ export interface IoSakurasouControllerRequestSiteInitRequest {
export function instanceOfIoSakurasouControllerRequestSiteInitRequest(value: object): value is IoSakurasouControllerRequestSiteInitRequest {
if (!('email' in value) || value['email'] === undefined) return false;
if (!('password' in value) || value['password'] === undefined) return false;
if (!('siteDescription' in value) || value['siteDescription'] === undefined) return false;
if (!('siteSubtitle' in value) || value['siteSubtitle'] === undefined) return false;
if (!('siteTitle' in value) || value['siteTitle'] === undefined) return false;
if (!('username' in value) || value['username'] === undefined) return false;
Expand All @@ -75,6 +82,7 @@ export function IoSakurasouControllerRequestSiteInitRequestFromJSONTyped(json: a

'email': json['email'],
'password': json['password'],
'siteDescription': json['siteDescription'],
'siteSubtitle': json['siteSubtitle'],
'siteTitle': json['siteTitle'],
'username': json['username'],
Expand All @@ -89,6 +97,7 @@ export function IoSakurasouControllerRequestSiteInitRequestToJSON(value?: IoSaku

'email': value['email'],
'password': value['password'],
'siteDescription': value['siteDescription'],
'siteSubtitle': value['siteSubtitle'],
'siteTitle': value['siteTitle'],
'username': value['username'],
Expand Down
Loading

0 comments on commit 654b24d

Please sign in to comment.