From 654b24d0a83e561403b8b05102e924a6f3055ba7 Mon Sep 17 00:00:00 2001 From: Shiina Kin Date: Tue, 17 Sep 2024 21:05:18 +0800 Subject: [PATCH] feat: update api client for ui --- ui/packages/api-client/src/apis/DefaultApi.ts | 1398 +++++++++++++---- ...ntrollerRequestAlbumManageInsertRequest.ts | 79 + ...ontrollerRequestAlbumManagePatchRequest.ts | 77 + ...ControllerRequestAlbumSelfInsertRequest.ts | 70 + ...uControllerRequestAlbumSelfPatchRequest.ts | 68 + ...rasouControllerRequestImagePatchRequest.ts | 8 + ...kurasouControllerRequestSiteInitRequest.ts | 9 + ...ontrollerRequestSiteSettingPatchRequest.ts | 25 +- ...rasouControllerRequestUserInsertRequest.ts | 9 - ...ontrollerRequestUserManageInsertRequest.ts | 106 ++ ...ControllerRequestUserManagePatchRequest.ts | 92 ++ ...ouControllerRequestUserSelfPatchRequest.ts | 84 + ...onsListioSakurasouControllerVoSettingVO.ts | 94 ++ ...esultioSakurasouControllerVoAlbumPageVO.ts | 18 + ...esultioSakurasouControllerVoGroupPageVO.ts | 18 + ...esultioSakurasouControllerVoImagePageVO.ts | 18 + ...ltioSakurasouControllerVoStrategyPageVO.ts | 18 + ...ResultioSakurasouControllerVoUserPageVO.ts | 18 + .../IoSakurasouControllerVoSettingVO.ts | 92 ++ .../IoSakurasouModelEntityPermission.ts | 9 - .../IoSakurasouModelSettingSettingConfig.ts | 158 ++ .../IoSakurasouModelSettingSiteSetting.ts | 97 ++ .../IoSakurasouModelSettingStrategySetting.ts | 61 + .../IoSakurasouModelSettingSystemSetting.ts | 70 + .../IoSakurasouModelSettingSystemStatus.ts | 61 + ui/packages/api-client/src/models/index.ts | 17 +- 26 files changed, 2473 insertions(+), 301 deletions(-) create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManageInsertRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManagePatchRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfInsertRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfPatchRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManageInsertRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManagePatchRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerRequestUserSelfPatchRequest.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouControllerVoSettingVO.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouModelSettingSettingConfig.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouModelSettingSiteSetting.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouModelSettingStrategySetting.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouModelSettingSystemSetting.ts create mode 100644 ui/packages/api-client/src/models/IoSakurasouModelSettingSystemStatus.ts diff --git a/ui/packages/api-client/src/apis/DefaultApi.ts b/ui/packages/api-client/src/apis/DefaultApi.ts index ebb0906b..3a317bc8 100644 --- a/ui/packages/api-client/src/apis/DefaultApi.ts +++ b/ui/packages/api-client/src/apis/DefaultApi.ts @@ -15,8 +15,10 @@ import * as runtime from '../runtime'; import type { - IoSakurasouControllerRequestAlbumInsertRequest, - IoSakurasouControllerRequestAlbumPatchRequest, + IoSakurasouControllerRequestAlbumManageInsertRequest, + IoSakurasouControllerRequestAlbumManagePatchRequest, + IoSakurasouControllerRequestAlbumSelfInsertRequest, + IoSakurasouControllerRequestAlbumSelfPatchRequest, IoSakurasouControllerRequestGroupInsertRequest, IoSakurasouControllerRequestGroupPatchRequest, IoSakurasouControllerRequestImagePatchRequest, @@ -27,12 +29,15 @@ import type { IoSakurasouControllerRequestStrategySettingPatchRequest, IoSakurasouControllerRequestUserInsertRequest, IoSakurasouControllerRequestUserLoginRequest, - IoSakurasouControllerRequestUserPatchRequest, + IoSakurasouControllerRequestUserManageInsertRequest, + IoSakurasouControllerRequestUserManagePatchRequest, + IoSakurasouControllerRequestUserSelfPatchRequest, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoAlbumVO, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoGroupVO, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoImageVO, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoStrategyVO, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVO, + IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO, IoSakurasouControllerVoCommonResponsekotlinUnit, IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO, IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO, @@ -42,10 +47,14 @@ import type { IoSakurasouControllerVoRoleVO, } from '../models/index'; import { - IoSakurasouControllerRequestAlbumInsertRequestFromJSON, - IoSakurasouControllerRequestAlbumInsertRequestToJSON, - IoSakurasouControllerRequestAlbumPatchRequestFromJSON, - IoSakurasouControllerRequestAlbumPatchRequestToJSON, + IoSakurasouControllerRequestAlbumManageInsertRequestFromJSON, + IoSakurasouControllerRequestAlbumManageInsertRequestToJSON, + IoSakurasouControllerRequestAlbumManagePatchRequestFromJSON, + IoSakurasouControllerRequestAlbumManagePatchRequestToJSON, + IoSakurasouControllerRequestAlbumSelfInsertRequestFromJSON, + IoSakurasouControllerRequestAlbumSelfInsertRequestToJSON, + IoSakurasouControllerRequestAlbumSelfPatchRequestFromJSON, + IoSakurasouControllerRequestAlbumSelfPatchRequestToJSON, IoSakurasouControllerRequestGroupInsertRequestFromJSON, IoSakurasouControllerRequestGroupInsertRequestToJSON, IoSakurasouControllerRequestGroupPatchRequestFromJSON, @@ -66,8 +75,12 @@ import { IoSakurasouControllerRequestUserInsertRequestToJSON, IoSakurasouControllerRequestUserLoginRequestFromJSON, IoSakurasouControllerRequestUserLoginRequestToJSON, - IoSakurasouControllerRequestUserPatchRequestFromJSON, - IoSakurasouControllerRequestUserPatchRequestToJSON, + IoSakurasouControllerRequestUserManageInsertRequestFromJSON, + IoSakurasouControllerRequestUserManageInsertRequestToJSON, + IoSakurasouControllerRequestUserManagePatchRequestFromJSON, + IoSakurasouControllerRequestUserManagePatchRequestToJSON, + IoSakurasouControllerRequestUserSelfPatchRequestFromJSON, + IoSakurasouControllerRequestUserSelfPatchRequestToJSON, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoAlbumVOFromJSON, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoAlbumVOToJSON, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoGroupVOFromJSON, @@ -78,6 +91,8 @@ import { IoSakurasouControllerVoCommonResponseioSakurasouControllerVoStrategyVOToJSON, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVOFromJSON, IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVOToJSON, + IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOFromJSON, + IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOToJSON, IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON, IoSakurasouControllerVoCommonResponsekotlinUnitToJSON, IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVOFromJSON, @@ -94,17 +109,46 @@ import { IoSakurasouControllerVoRoleVOToJSON, } from '../models/index'; -export interface ApiAlbumIdDeleteRequest { - id: number; +export interface ApiAlbumAlbumIdDeleteRequest { + albumId: number; } -export interface ApiAlbumIdGetRequest { - id: number; +export interface ApiAlbumAlbumIdGetRequest { + albumId: number; } -export interface ApiAlbumIdPatchRequest { - id: number; - ioSakurasouControllerRequestAlbumPatchRequest: IoSakurasouControllerRequestAlbumPatchRequest; +export interface ApiAlbumAlbumIdPatchRequest { + albumId: number; + ioSakurasouControllerRequestAlbumSelfPatchRequest: IoSakurasouControllerRequestAlbumSelfPatchRequest; +} + +export interface ApiAlbumManageAlbumIdDeleteRequest { + albumId: number; + userId: number; +} + +export interface ApiAlbumManageAlbumIdGetRequest { + albumId: number; + userId: number; +} + +export interface ApiAlbumManageAlbumIdPatchRequest { + albumId: number; + userId: number; + ioSakurasouControllerRequestAlbumManagePatchRequest: IoSakurasouControllerRequestAlbumManagePatchRequest; +} + +export interface ApiAlbumManagePageGetRequest { + page: number; + pageSize: number; + userId: number; + order?: string; + orderBy?: string; +} + +export interface ApiAlbumManagePostRequest { + userId: number; + ioSakurasouControllerRequestAlbumManageInsertRequest: IoSakurasouControllerRequestAlbumManageInsertRequest; } export interface ApiAlbumPageGetRequest { @@ -115,7 +159,11 @@ export interface ApiAlbumPageGetRequest { } export interface ApiAlbumPostRequest { - ioSakurasouControllerRequestAlbumInsertRequest: IoSakurasouControllerRequestAlbumInsertRequest; + ioSakurasouControllerRequestAlbumSelfInsertRequest: IoSakurasouControllerRequestAlbumSelfInsertRequest; +} + +export interface ApiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGetRequest { + imageId: string; } export interface ApiGroupIdDeleteRequest { @@ -142,28 +190,51 @@ export interface ApiGroupPostRequest { ioSakurasouControllerRequestGroupInsertRequest: IoSakurasouControllerRequestGroupInsertRequest; } -export interface ApiImageIdDeleteRequest { - id: number; +export interface ApiImageImageIdDeleteRequest { + imageId: number; +} + +export interface ApiImageImageIdGetRequest { + imageId: number; +} + +export interface ApiImageImageIdPageGetRequest { + page: number; + pageSize: number; + imageId: number; + order?: string; + orderBy?: string; } -export interface ApiImageIdGetRequest { +export interface ApiImageImageIdPatchRequest { + imageId: number; + ioSakurasouControllerRequestImagePatchRequest: IoSakurasouControllerRequestImagePatchRequest; +} + +export interface ApiImageManageImageIdDeleteRequest { + imageId: number; id: number; } -export interface ApiImageIdPatchRequest { +export interface ApiImageManageImageIdGetRequest { + imageId: number; + imageId2: number; id: number; - ioSakurasouControllerRequestImagePatchRequest: IoSakurasouControllerRequestImagePatchRequest; } -export interface ApiImagePageGetRequest { +export interface ApiImageManageImageIdPageGetRequest { page: number; pageSize: number; + imageId: number; + id: number; order?: string; orderBy?: string; } -export interface ApiSImageIdGetRequest { - imageId: string; +export interface ApiImageManageImageIdPatchRequest { + imageId: number; + id: number; + ioSakurasouControllerRequestImagePatchRequest: IoSakurasouControllerRequestImagePatchRequest; } export interface ApiSettingSitePatchRequest { @@ -174,6 +245,10 @@ export interface ApiSettingStrategyPatchRequest { ioSakurasouControllerRequestStrategySettingPatchRequest: IoSakurasouControllerRequestStrategySettingPatchRequest; } +export interface ApiSettingSystemPatchRequest { + ioSakurasouControllerRequestStrategySettingPatchRequest: IoSakurasouControllerRequestStrategySettingPatchRequest; +} + export interface ApiSiteInitPostRequest { ioSakurasouControllerRequestSiteInitRequest: IoSakurasouControllerRequestSiteInitRequest; } @@ -206,32 +281,40 @@ export interface ApiUserBanIdPatchRequest { id: number; } -export interface ApiUserIdDeleteRequest { - id: number; +export interface ApiUserLoginPostRequest { + ioSakurasouControllerRequestUserLoginRequest: IoSakurasouControllerRequestUserLoginRequest; } -export interface ApiUserIdGetRequest { +export interface ApiUserManageIdDeleteRequest { id: number; } -export interface ApiUserIdPatchRequest { +export interface ApiUserManageIdGetRequest { id: number; - ioSakurasouControllerRequestUserPatchRequest: IoSakurasouControllerRequestUserPatchRequest; } -export interface ApiUserLoginPostRequest { - ioSakurasouControllerRequestUserInsertRequest: IoSakurasouControllerRequestUserInsertRequest; +export interface ApiUserManageIdPatchRequest { + id: number; + ioSakurasouControllerRequestUserManagePatchRequest: IoSakurasouControllerRequestUserManagePatchRequest; } -export interface ApiUserPageGetRequest { +export interface ApiUserManagePageGetRequest { page: number; pageSize: number; order?: string; orderBy?: string; } +export interface ApiUserManagePostRequest { + ioSakurasouControllerRequestUserManageInsertRequest: IoSakurasouControllerRequestUserManageInsertRequest; +} + +export interface ApiUserSelfPatchRequest { + ioSakurasouControllerRequestUserSelfPatchRequest: IoSakurasouControllerRequestUserSelfPatchRequest; +} + export interface ApiUserSignupPostRequest { - ioSakurasouControllerRequestUserLoginRequest: IoSakurasouControllerRequestUserLoginRequest; + ioSakurasouControllerRequestUserInsertRequest: IoSakurasouControllerRequestUserInsertRequest; } export interface ApiUserUnbanIdPatchRequest { @@ -245,11 +328,11 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiAlbumIdDeleteRaw(requestParameters: ApiAlbumIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiAlbumAlbumIdDeleteRaw(requestParameters: ApiAlbumAlbumIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['albumId'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiAlbumIdDelete().' + 'albumId', + 'Required parameter "albumId" was null or undefined when calling apiAlbumAlbumIdDelete().' ); } @@ -257,8 +340,16 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/album/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/api/album/{albumId}`.replace(`{${"album id"}}`, encodeURIComponent(String(requestParameters['albumId']))), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -269,18 +360,18 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiAlbumIdDelete(requestParameters: ApiAlbumIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiAlbumIdDeleteRaw(requestParameters, initOverrides); + async apiAlbumAlbumIdDelete(requestParameters: ApiAlbumAlbumIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumAlbumIdDeleteRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async apiAlbumIdGetRaw(requestParameters: ApiAlbumIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiAlbumAlbumIdGetRaw(requestParameters: ApiAlbumAlbumIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['albumId'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiAlbumIdGet().' + 'albumId', + 'Required parameter "albumId" was null or undefined when calling apiAlbumAlbumIdGet().' ); } @@ -288,8 +379,16 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/album/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/api/album/{albumId}`.replace(`{${"album id"}}`, encodeURIComponent(String(requestParameters['albumId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -300,25 +399,173 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiAlbumIdGet(requestParameters: ApiAlbumIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiAlbumIdGetRaw(requestParameters, initOverrides); + async apiAlbumAlbumIdGet(requestParameters: ApiAlbumAlbumIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumAlbumIdGetRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async apiAlbumIdPatchRaw(requestParameters: ApiAlbumIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiAlbumAlbumIdPatchRaw(requestParameters: ApiAlbumAlbumIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['albumId'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiAlbumIdPatch().' + 'albumId', + 'Required parameter "albumId" was null or undefined when calling apiAlbumAlbumIdPatch().' + ); + } + + if (requestParameters['ioSakurasouControllerRequestAlbumSelfPatchRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestAlbumSelfPatchRequest', + 'Required parameter "ioSakurasouControllerRequestAlbumSelfPatchRequest" was null or undefined when calling apiAlbumAlbumIdPatch().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/album/{albumId}`.replace(`{${"album id"}}`, encodeURIComponent(String(requestParameters['albumId']))), + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: IoSakurasouControllerRequestAlbumSelfPatchRequestToJSON(requestParameters['ioSakurasouControllerRequestAlbumSelfPatchRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + } + + /** + */ + async apiAlbumAlbumIdPatch(requestParameters: ApiAlbumAlbumIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumAlbumIdPatchRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiAlbumManageAlbumIdDeleteRaw(requestParameters: ApiAlbumManageAlbumIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['albumId'] == null) { + throw new runtime.RequiredError( + 'albumId', + 'Required parameter "albumId" was null or undefined when calling apiAlbumManageAlbumIdDelete().' + ); + } + + if (requestParameters['userId'] == null) { + throw new runtime.RequiredError( + 'userId', + 'Required parameter "userId" was null or undefined when calling apiAlbumManageAlbumIdDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/album/manage/{albumId}`.replace(`{${"album id"}}`, encodeURIComponent(String(requestParameters['albumId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + } + + /** + */ + async apiAlbumManageAlbumIdDelete(requestParameters: ApiAlbumManageAlbumIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumManageAlbumIdDeleteRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiAlbumManageAlbumIdGetRaw(requestParameters: ApiAlbumManageAlbumIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['albumId'] == null) { + throw new runtime.RequiredError( + 'albumId', + 'Required parameter "albumId" was null or undefined when calling apiAlbumManageAlbumIdGet().' + ); + } + + if (requestParameters['userId'] == null) { + throw new runtime.RequiredError( + 'userId', + 'Required parameter "userId" was null or undefined when calling apiAlbumManageAlbumIdGet().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/album/manage/{albumId}`.replace(`{${"album id"}}`, encodeURIComponent(String(requestParameters['albumId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponseioSakurasouControllerVoAlbumVOFromJSON(jsonValue)); + } + + /** + */ + async apiAlbumManageAlbumIdGet(requestParameters: ApiAlbumManageAlbumIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumManageAlbumIdGetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiAlbumManageAlbumIdPatchRaw(requestParameters: ApiAlbumManageAlbumIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['albumId'] == null) { + throw new runtime.RequiredError( + 'albumId', + 'Required parameter "albumId" was null or undefined when calling apiAlbumManageAlbumIdPatch().' ); } - if (requestParameters['ioSakurasouControllerRequestAlbumPatchRequest'] == null) { + if (requestParameters['userId'] == null) { throw new runtime.RequiredError( - 'ioSakurasouControllerRequestAlbumPatchRequest', - 'Required parameter "ioSakurasouControllerRequestAlbumPatchRequest" was null or undefined when calling apiAlbumIdPatch().' + 'userId', + 'Required parameter "userId" was null or undefined when calling apiAlbumManageAlbumIdPatch().' + ); + } + + if (requestParameters['ioSakurasouControllerRequestAlbumManagePatchRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestAlbumManagePatchRequest', + 'Required parameter "ioSakurasouControllerRequestAlbumManagePatchRequest" was null or undefined when calling apiAlbumManageAlbumIdPatch().' ); } @@ -328,12 +575,138 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/album/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/api/album/manage/{albumId}`.replace(`{${"album id"}}`, encodeURIComponent(String(requestParameters['albumId']))).replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))), method: 'PATCH', headers: headerParameters, query: queryParameters, - body: IoSakurasouControllerRequestAlbumPatchRequestToJSON(requestParameters['ioSakurasouControllerRequestAlbumPatchRequest']), + body: IoSakurasouControllerRequestAlbumManagePatchRequestToJSON(requestParameters['ioSakurasouControllerRequestAlbumManagePatchRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + } + + /** + */ + async apiAlbumManageAlbumIdPatch(requestParameters: ApiAlbumManageAlbumIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumManageAlbumIdPatchRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiAlbumManagePageGetRaw(requestParameters: ApiAlbumManagePageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['page'] == null) { + throw new runtime.RequiredError( + 'page', + 'Required parameter "page" was null or undefined when calling apiAlbumManagePageGet().' + ); + } + + if (requestParameters['pageSize'] == null) { + throw new runtime.RequiredError( + 'pageSize', + 'Required parameter "pageSize" was null or undefined when calling apiAlbumManagePageGet().' + ); + } + + if (requestParameters['userId'] == null) { + throw new runtime.RequiredError( + 'userId', + 'Required parameter "userId" was null or undefined when calling apiAlbumManagePageGet().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['pageSize'] = requestParameters['pageSize']; + } + + if (requestParameters['order'] != null) { + queryParameters['order'] = requestParameters['order']; + } + + if (requestParameters['orderBy'] != null) { + queryParameters['orderBy'] = requestParameters['orderBy']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/album/manage/page`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVOFromJSON(jsonValue)); + } + + /** + */ + async apiAlbumManagePageGet(requestParameters: ApiAlbumManagePageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumManagePageGetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiAlbumManagePostRaw(requestParameters: ApiAlbumManagePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['userId'] == null) { + throw new runtime.RequiredError( + 'userId', + 'Required parameter "userId" was null or undefined when calling apiAlbumManagePost().' + ); + } + + if (requestParameters['ioSakurasouControllerRequestAlbumManageInsertRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestAlbumManageInsertRequest', + 'Required parameter "ioSakurasouControllerRequestAlbumManageInsertRequest" was null or undefined when calling apiAlbumManagePost().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/album/manage`.replace(`{${"userId"}}`, encodeURIComponent(String(requestParameters['userId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IoSakurasouControllerRequestAlbumManageInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestAlbumManageInsertRequest']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); @@ -341,8 +714,8 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiAlbumIdPatch(requestParameters: ApiAlbumIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiAlbumIdPatchRaw(requestParameters, initOverrides); + async apiAlbumManagePost(requestParameters: ApiAlbumManagePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAlbumManagePostRaw(requestParameters, initOverrides); return await response.value(); } @@ -383,6 +756,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/album/page`, method: 'GET', @@ -403,10 +784,10 @@ export class DefaultApi extends runtime.BaseAPI { /** */ async apiAlbumPostRaw(requestParameters: ApiAlbumPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['ioSakurasouControllerRequestAlbumInsertRequest'] == null) { + if (requestParameters['ioSakurasouControllerRequestAlbumSelfInsertRequest'] == null) { throw new runtime.RequiredError( - 'ioSakurasouControllerRequestAlbumInsertRequest', - 'Required parameter "ioSakurasouControllerRequestAlbumInsertRequest" was null or undefined when calling apiAlbumPost().' + 'ioSakurasouControllerRequestAlbumSelfInsertRequest', + 'Required parameter "ioSakurasouControllerRequestAlbumSelfInsertRequest" was null or undefined when calling apiAlbumPost().' ); } @@ -416,12 +797,20 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/album`, method: 'POST', headers: headerParameters, query: queryParameters, - body: IoSakurasouControllerRequestAlbumInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestAlbumInsertRequest']), + body: IoSakurasouControllerRequestAlbumSelfInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestAlbumSelfInsertRequest']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); @@ -437,13 +826,13 @@ export class DefaultApi extends runtime.BaseAPI { /** * return random image if setting allow */ - async apiFetchRandomGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdFetchRandomGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api/fetch/random`, + path: `/api/com.ucasoft.ktor.simpleCache.CacheOutputSelector@74834afd/fetch/random`, method: 'GET', headers: headerParameters, query: queryParameters, @@ -455,19 +844,26 @@ export class DefaultApi extends runtime.BaseAPI { /** * return random image if setting allow */ - async apiFetchRandomGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiFetchRandomGetRaw(initOverrides); + async apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdFetchRandomGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdFetchRandomGetRaw(initOverrides); } /** */ - async apiGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGetRaw(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGet().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; const response = await this.request({ - path: `/api`, + path: `/api/com.ucasoft.ktor.simpleCache.CacheOutputSelector@74834afd/s/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -478,8 +874,8 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiGetRaw(initOverrides); + async apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGet(requestParameters: ApiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiComUcasoftKtorSimpleCacheCacheOutputSelector74834afdSImageIdGetRaw(requestParameters, initOverrides); } /** @@ -496,6 +892,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/group/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -527,6 +931,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/group/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -567,6 +979,14 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/group/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PATCH', @@ -622,6 +1042,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/group/page`, method: 'GET', @@ -655,6 +1083,14 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/group`, method: 'POST', @@ -675,11 +1111,11 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiImageIdDeleteRaw(requestParameters: ApiImageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiImageImageIdDeleteRaw(requestParameters: ApiImageImageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiImageIdDelete().' + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageImageIdDelete().' ); } @@ -687,8 +1123,16 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/image/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/api/image/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))), method: 'DELETE', headers: headerParameters, query: queryParameters, @@ -699,18 +1143,18 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiImageIdDelete(requestParameters: ApiImageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiImageIdDeleteRaw(requestParameters, initOverrides); + async apiImageImageIdDelete(requestParameters: ApiImageImageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageImageIdDeleteRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async apiImageIdGetRaw(requestParameters: ApiImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiImageImageIdGetRaw(requestParameters: ApiImageImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiImageIdGet().' + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageImageIdGet().' ); } @@ -718,8 +1162,16 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/image/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/api/image/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -730,25 +1182,94 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiImageIdGet(requestParameters: ApiImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiImageIdGetRaw(requestParameters, initOverrides); + async apiImageImageIdGet(requestParameters: ApiImageImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageImageIdGetRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async apiImageIdPatchRaw(requestParameters: ApiImageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiImageImageIdPageGetRaw(requestParameters: ApiImageImageIdPageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['page'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiImageIdPatch().' + 'page', + 'Required parameter "page" was null or undefined when calling apiImageImageIdPageGet().' + ); + } + + if (requestParameters['pageSize'] == null) { + throw new runtime.RequiredError( + 'pageSize', + 'Required parameter "pageSize" was null or undefined when calling apiImageImageIdPageGet().' + ); + } + + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageImageIdPageGet().' + ); + } + + const queryParameters: any = {}; + + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['pageSize'] = requestParameters['pageSize']; + } + + if (requestParameters['order'] != null) { + queryParameters['order'] = requestParameters['order']; + } + + if (requestParameters['orderBy'] != null) { + queryParameters['orderBy'] = requestParameters['orderBy']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/image/{imageId}/page`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVOFromJSON(jsonValue)); + } + + /** + */ + async apiImageImageIdPageGet(requestParameters: ApiImageImageIdPageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageImageIdPageGetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiImageImageIdPatchRaw(requestParameters: ApiImageImageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageImageIdPatch().' ); } if (requestParameters['ioSakurasouControllerRequestImagePatchRequest'] == null) { throw new runtime.RequiredError( 'ioSakurasouControllerRequestImagePatchRequest', - 'Required parameter "ioSakurasouControllerRequestImagePatchRequest" was null or undefined when calling apiImageIdPatch().' + 'Required parameter "ioSakurasouControllerRequestImagePatchRequest" was null or undefined when calling apiImageImageIdPatch().' ); } @@ -758,8 +1279,16 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/image/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + path: `/api/image/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))), method: 'PATCH', headers: headerParameters, query: queryParameters, @@ -771,25 +1300,138 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiImageIdPatch(requestParameters: ApiImageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiImageIdPatchRaw(requestParameters, initOverrides); + async apiImageImageIdPatch(requestParameters: ApiImageImageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageImageIdPatchRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiImageManageImageIdDeleteRaw(requestParameters: ApiImageManageImageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageManageImageIdDelete().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling apiImageManageImageIdDelete().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/image/manage/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'DELETE', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + } + + /** + */ + async apiImageManageImageIdDelete(requestParameters: ApiImageManageImageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageManageImageIdDeleteRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiImageManageImageIdGetRaw(requestParameters: ApiImageManageImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageManageImageIdGet().' + ); + } + + if (requestParameters['imageId2'] == null) { + throw new runtime.RequiredError( + 'imageId2', + 'Required parameter "imageId2" was null or undefined when calling apiImageManageImageIdGet().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling apiImageManageImageIdGet().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/image/manage/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))).replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId2']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponseioSakurasouControllerVoImageVOFromJSON(jsonValue)); + } + + /** + */ + async apiImageManageImageIdGet(requestParameters: ApiImageManageImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageManageImageIdGetRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async apiImagePageGetRaw(requestParameters: ApiImagePageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiImageManageImageIdPageGetRaw(requestParameters: ApiImageManageImageIdPageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['page'] == null) { throw new runtime.RequiredError( 'page', - 'Required parameter "page" was null or undefined when calling apiImagePageGet().' + 'Required parameter "page" was null or undefined when calling apiImageManageImageIdPageGet().' ); } if (requestParameters['pageSize'] == null) { throw new runtime.RequiredError( 'pageSize', - 'Required parameter "pageSize" was null or undefined when calling apiImagePageGet().' + 'Required parameter "pageSize" was null or undefined when calling apiImageManageImageIdPageGet().' + ); + } + + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageManageImageIdPageGet().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling apiImageManageImageIdPageGet().' ); } @@ -807,26 +1449,90 @@ export class DefaultApi extends runtime.BaseAPI { queryParameters['order'] = requestParameters['order']; } - if (requestParameters['orderBy'] != null) { - queryParameters['orderBy'] = requestParameters['orderBy']; - } + if (requestParameters['orderBy'] != null) { + queryParameters['orderBy'] = requestParameters['orderBy']; + } + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/image/manage/{imageId}/page`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVOFromJSON(jsonValue)); + } + + /** + */ + async apiImageManageImageIdPageGet(requestParameters: ApiImageManageImageIdPageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageManageImageIdPageGetRaw(requestParameters, initOverrides); + return await response.value(); + } + + /** + */ + async apiImageManageImageIdPatchRaw(requestParameters: ApiImageManageImageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['imageId'] == null) { + throw new runtime.RequiredError( + 'imageId', + 'Required parameter "imageId" was null or undefined when calling apiImageManageImageIdPatch().' + ); + } + + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling apiImageManageImageIdPatch().' + ); + } + + if (requestParameters['ioSakurasouControllerRequestImagePatchRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestImagePatchRequest', + 'Required parameter "ioSakurasouControllerRequestImagePatchRequest" was null or undefined when calling apiImageManageImageIdPatch().' + ); + } + + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/image/page`, - method: 'GET', + path: `/api/image/manage/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'PATCH', headers: headerParameters, query: queryParameters, + body: IoSakurasouControllerRequestImagePatchRequestToJSON(requestParameters['ioSakurasouControllerRequestImagePatchRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVOFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); } /** */ - async apiImagePageGet(requestParameters: ApiImagePageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiImagePageGetRaw(requestParameters, initOverrides); + async apiImageManageImageIdPatch(requestParameters: ApiImageManageImageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiImageManageImageIdPatchRaw(requestParameters, initOverrides); return await response.value(); } @@ -837,6 +1543,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/image`, method: 'POST', @@ -861,6 +1575,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/role/all`, method: 'GET', @@ -879,33 +1601,37 @@ export class DefaultApi extends runtime.BaseAPI { } /** + * get all settings */ - async apiSImageIdGetRaw(requestParameters: ApiSImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['imageId'] == null) { - throw new runtime.RequiredError( - 'imageId', - 'Required parameter "imageId" was null or undefined when calling apiSImageIdGet().' - ); - } - + async apiSettingGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/s/{imageId}`.replace(`{${"imageId"}}`, encodeURIComponent(String(requestParameters['imageId']))), + path: `/api/setting`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOFromJSON(jsonValue)); } /** + * get all settings */ - async apiSImageIdGet(requestParameters: ApiSImageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiSImageIdGetRaw(requestParameters, initOverrides); + async apiSettingGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiSettingGetRaw(initOverrides); + return await response.value(); } /** @@ -925,6 +1651,14 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/setting/site`, method: 'PATCH', @@ -961,6 +1695,14 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/setting/strategy`, method: 'PATCH', @@ -980,6 +1722,50 @@ export class DefaultApi extends runtime.BaseAPI { return await response.value(); } + /** + * system setting + */ + async apiSettingSystemPatchRaw(requestParameters: ApiSettingSystemPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ioSakurasouControllerRequestStrategySettingPatchRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestStrategySettingPatchRequest', + 'Required parameter "ioSakurasouControllerRequestStrategySettingPatchRequest" was null or undefined when calling apiSettingSystemPatch().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/api/setting/system`, + method: 'PATCH', + headers: headerParameters, + query: queryParameters, + body: IoSakurasouControllerRequestStrategySettingPatchRequestToJSON(requestParameters['ioSakurasouControllerRequestStrategySettingPatchRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + } + + /** + * system setting + */ + async apiSettingSystemPatch(requestParameters: ApiSettingSystemPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiSettingSystemPatchRaw(requestParameters, initOverrides); + return await response.value(); + } + /** */ async apiSiteInitPostRaw(requestParameters: ApiSiteInitPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -1027,6 +1813,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/strategy/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'DELETE', @@ -1058,6 +1852,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/strategy/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'GET', @@ -1098,6 +1900,14 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/strategy/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PATCH', @@ -1153,6 +1963,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/strategy/page`, method: 'GET', @@ -1186,6 +2004,14 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/strategy`, method: 'POST', @@ -1218,6 +2044,14 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ path: `/api/user/ban/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), method: 'PATCH', @@ -1237,11 +2071,11 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiUserIdDeleteRaw(requestParameters: ApiUserIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { + async apiUserLoginPostRaw(requestParameters: ApiUserLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ioSakurasouControllerRequestUserLoginRequest'] == null) { throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiUserIdDelete().' + 'ioSakurasouControllerRequestUserLoginRequest', + 'Required parameter "ioSakurasouControllerRequestUserLoginRequest" was null or undefined when calling apiUserLoginPost().' ); } @@ -1249,30 +2083,32 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ - path: `/api/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', + path: `/api/user/login`, + method: 'POST', headers: headerParameters, query: queryParameters, + body: IoSakurasouControllerRequestUserLoginRequestToJSON(requestParameters['ioSakurasouControllerRequestUserLoginRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + return new runtime.VoidApiResponse(response); } /** */ - async apiUserIdDelete(requestParameters: ApiUserIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiUserIdDeleteRaw(requestParameters, initOverrides); - return await response.value(); + async apiUserLoginPost(requestParameters: ApiUserLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiUserLoginPostRaw(requestParameters, initOverrides); } /** */ - async apiUserIdGetRaw(requestParameters: ApiUserIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserManageIdDeleteRaw(requestParameters: ApiUserManageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', - 'Required parameter "id" was null or undefined when calling apiUserIdGet().' + 'Required parameter "id" was null or undefined when calling apiUserManageIdDelete().' ); } @@ -1280,37 +2116,38 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', + path: `/api/user/manage/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'DELETE', headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVOFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); } /** */ - async apiUserIdGet(requestParameters: ApiUserIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiUserIdGetRaw(requestParameters, initOverrides); + async apiUserManageIdDelete(requestParameters: ApiUserManageIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserManageIdDeleteRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async apiUserIdPatchRaw(requestParameters: ApiUserIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserManageIdGetRaw(requestParameters: ApiUserManageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', - 'Required parameter "id" was null or undefined when calling apiUserIdPatch().' - ); - } - - if (requestParameters['ioSakurasouControllerRequestUserPatchRequest'] == null) { - throw new runtime.RequiredError( - 'ioSakurasouControllerRequestUserPatchRequest', - 'Required parameter "ioSakurasouControllerRequestUserPatchRequest" was null or undefined when calling apiUserIdPatch().' + 'Required parameter "id" was null or undefined when calling apiUserManageIdGet().' ); } @@ -1318,33 +2155,46 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; - headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/user/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', + path: `/api/user/manage/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', headers: headerParameters, query: queryParameters, - body: IoSakurasouControllerRequestUserPatchRequestToJSON(requestParameters['ioSakurasouControllerRequestUserPatchRequest']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVOFromJSON(jsonValue)); } /** */ - async apiUserIdPatch(requestParameters: ApiUserIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiUserIdPatchRaw(requestParameters, initOverrides); + async apiUserManageIdGet(requestParameters: ApiUserManageIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserManageIdGetRaw(requestParameters, initOverrides); return await response.value(); } /** + * modify any user */ - async apiUserLoginPostRaw(requestParameters: ApiUserLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['ioSakurasouControllerRequestUserInsertRequest'] == null) { + async apiUserManageIdPatchRaw(requestParameters: ApiUserManageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { throw new runtime.RequiredError( - 'ioSakurasouControllerRequestUserInsertRequest', - 'Required parameter "ioSakurasouControllerRequestUserInsertRequest" was null or undefined when calling apiUserLoginPost().' + 'id', + 'Required parameter "id" was null or undefined when calling apiUserManageIdPatch().' + ); + } + + if (requestParameters['ioSakurasouControllerRequestUserManagePatchRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestUserManagePatchRequest', + 'Required parameter "ioSakurasouControllerRequestUserManagePatchRequest" was null or undefined when calling apiUserManageIdPatch().' ); } @@ -1354,37 +2204,47 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/user/login`, - method: 'POST', + path: `/api/user/manage/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'PATCH', headers: headerParameters, query: queryParameters, - body: IoSakurasouControllerRequestUserInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestUserInsertRequest']), + body: IoSakurasouControllerRequestUserManagePatchRequestToJSON(requestParameters['ioSakurasouControllerRequestUserManagePatchRequest']), }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); } /** + * modify any user */ - async apiUserLoginPost(requestParameters: ApiUserLoginPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiUserLoginPostRaw(requestParameters, initOverrides); + async apiUserManageIdPatch(requestParameters: ApiUserManageIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserManageIdPatchRaw(requestParameters, initOverrides); + return await response.value(); } /** */ - async apiUserPageGetRaw(requestParameters: ApiUserPageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserManagePageGetRaw(requestParameters: ApiUserManagePageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['page'] == null) { throw new runtime.RequiredError( 'page', - 'Required parameter "page" was null or undefined when calling apiUserPageGet().' + 'Required parameter "page" was null or undefined when calling apiUserManagePageGet().' ); } if (requestParameters['pageSize'] == null) { throw new runtime.RequiredError( 'pageSize', - 'Required parameter "pageSize" was null or undefined when calling apiUserPageGet().' + 'Required parameter "pageSize" was null or undefined when calling apiUserManagePageGet().' ); } @@ -1408,8 +2268,16 @@ export class DefaultApi extends runtime.BaseAPI { const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/api/user/page`, + path: `/api/user/manage/page`, method: 'GET', headers: headerParameters, query: queryParameters, @@ -1420,18 +2288,19 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async apiUserPageGet(requestParameters: ApiUserPageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiUserPageGetRaw(requestParameters, initOverrides); + async apiUserManagePageGet(requestParameters: ApiUserManagePageGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserManagePageGetRaw(requestParameters, initOverrides); return await response.value(); } /** + * admin manual add user */ - async apiUserSignupPostRaw(requestParameters: ApiUserSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['ioSakurasouControllerRequestUserLoginRequest'] == null) { + async apiUserManagePostRaw(requestParameters: ApiUserManagePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ioSakurasouControllerRequestUserManageInsertRequest'] == null) { throw new runtime.RequiredError( - 'ioSakurasouControllerRequestUserLoginRequest', - 'Required parameter "ioSakurasouControllerRequestUserLoginRequest" was null or undefined when calling apiUserSignupPost().' + 'ioSakurasouControllerRequestUserManageInsertRequest', + 'Required parameter "ioSakurasouControllerRequestUserManageInsertRequest" was null or undefined when calling apiUserManagePost().' ); } @@ -1441,112 +2310,131 @@ export class DefaultApi extends runtime.BaseAPI { headerParameters['Content-Type'] = 'application/json'; - const response = await this.request({ - path: `/api/user/signup`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: IoSakurasouControllerRequestUserLoginRequestToJSON(requestParameters['ioSakurasouControllerRequestUserLoginRequest']), - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiUserSignupPost(requestParameters: ApiUserSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiUserSignupPostRaw(requestParameters, initOverrides); - } + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); - /** - */ - async apiUserUnbanIdPatchRaw(requestParameters: ApiUserUnbanIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiUserUnbanIdPatch().' - ); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - const response = await this.request({ - path: `/api/user/unban/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', + path: `/api/user/manage`, + method: 'POST', headers: headerParameters, query: queryParameters, + body: IoSakurasouControllerRequestUserManageInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestUserManageInsertRequest']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); } /** + * admin manual add user */ - async apiUserUnbanIdPatch(requestParameters: ApiUserUnbanIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiUserUnbanIdPatchRaw(requestParameters, initOverrides); + async apiUserManagePost(requestParameters: ApiUserManagePostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserManagePostRaw(requestParameters, initOverrides); return await response.value(); } /** */ - async comUcasoftKtorSimpleCacheCacheOutputSelector3b5c665cShortGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserSelfGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/com.ucasoft.ktor.simpleCache.CacheOutputSelector@3b5c665c/short`, + path: `/api/user/self`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVOFromJSON(jsonValue)); } /** */ - async comUcasoftKtorSimpleCacheCacheOutputSelector3b5c665cShortGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.comUcasoftKtorSimpleCacheCacheOutputSelector3b5c665cShortGetRaw(initOverrides); + async apiUserSelfGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserSelfGetRaw(initOverrides); + return await response.value(); } /** + * modify self */ - async comUcasoftKtorSimpleCacheCacheOutputSelector41dc0598DefaultGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserSelfPatchRaw(requestParameters: ApiUserSelfPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ioSakurasouControllerRequestUserSelfPatchRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestUserSelfPatchRequest', + 'Required parameter "ioSakurasouControllerRequestUserSelfPatchRequest" was null or undefined when calling apiUserSelfPatch().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/com.ucasoft.ktor.simpleCache.CacheOutputSelector@41dc0598/default`, - method: 'GET', + path: `/api/user/self`, + method: 'PATCH', headers: headerParameters, query: queryParameters, + body: IoSakurasouControllerRequestUserSelfPatchRequestToJSON(requestParameters['ioSakurasouControllerRequestUserSelfPatchRequest']), }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); } /** + * modify self */ - async comUcasoftKtorSimpleCacheCacheOutputSelector41dc0598DefaultGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.comUcasoftKtorSimpleCacheCacheOutputSelector41dc0598DefaultGetRaw(initOverrides); + async apiUserSelfPatch(requestParameters: ApiUserSelfPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserSelfPatchRaw(requestParameters, initOverrides); + return await response.value(); } /** */ - async comUcasoftKtorSimpleCacheCacheOutputSelector625a4ffShortGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserSignupPostRaw(requestParameters: ApiUserSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ioSakurasouControllerRequestUserInsertRequest'] == null) { + throw new runtime.RequiredError( + 'ioSakurasouControllerRequestUserInsertRequest', + 'Required parameter "ioSakurasouControllerRequestUserInsertRequest" was null or undefined when calling apiUserSignupPost().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ - path: `/com.ucasoft.ktor.simpleCache.CacheOutputSelector@625a4ff/short`, - method: 'GET', + path: `/api/user/signup`, + method: 'POST', headers: headerParameters, query: queryParameters, + body: IoSakurasouControllerRequestUserInsertRequestToJSON(requestParameters['ioSakurasouControllerRequestUserInsertRequest']), }, initOverrides); return new runtime.VoidApiResponse(response); @@ -1554,31 +2442,47 @@ export class DefaultApi extends runtime.BaseAPI { /** */ - async comUcasoftKtorSimpleCacheCacheOutputSelector625a4ffShortGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.comUcasoftKtorSimpleCacheCacheOutputSelector625a4ffShortGetRaw(initOverrides); + async apiUserSignupPost(requestParameters: ApiUserSignupPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiUserSignupPostRaw(requestParameters, initOverrides); } /** */ - async comUcasoftKtorSimpleCacheCacheOutputSelector78e17a99DefaultGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserUnbanIdPatchRaw(requestParameters: ApiUserUnbanIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError( + 'id', + 'Required parameter "id" was null or undefined when calling apiUserUnbanIdPatch().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("JWT", []); + + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } const response = await this.request({ - path: `/com.ucasoft.ktor.simpleCache.CacheOutputSelector@78e17a99/default`, - method: 'GET', + path: `/api/user/unban/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'PATCH', headers: headerParameters, query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => IoSakurasouControllerVoCommonResponsekotlinUnitFromJSON(jsonValue)); } /** */ - async comUcasoftKtorSimpleCacheCacheOutputSelector78e17a99DefaultGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.comUcasoftKtorSimpleCacheCacheOutputSelector78e17a99DefaultGetRaw(initOverrides); + async apiUserUnbanIdPatch(requestParameters: ApiUserUnbanIdPatchRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiUserUnbanIdPatchRaw(requestParameters, initOverrides); + return await response.value(); } /** @@ -1604,50 +2508,4 @@ export class DefaultApi extends runtime.BaseAPI { await this.getRaw(initOverrides); } - /** - */ - async protectedRouteBasicGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/protected/route/basic`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async protectedRouteBasicGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.protectedRouteBasicGetRaw(initOverrides); - } - - /** - */ - async protectedRouteFormGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - const response = await this.request({ - path: `/protected/route/form`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async protectedRouteFormGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.protectedRouteFormGetRaw(initOverrides); - } - } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManageInsertRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManageInsertRequest.ts new file mode 100644 index 00000000..d51dca69 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManageInsertRequest.ts @@ -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'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManagePatchRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManagePatchRequest.ts new file mode 100644 index 00000000..6c6713a4 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumManagePatchRequest.ts @@ -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'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfInsertRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfInsertRequest.ts new file mode 100644 index 00000000..23ad6271 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfInsertRequest.ts @@ -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'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfPatchRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfPatchRequest.ts new file mode 100644 index 00000000..ca07d63b --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestAlbumSelfPatchRequest.ts @@ -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'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestImagePatchRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestImagePatchRequest.ts index a7d31651..9a0212b4 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerRequestImagePatchRequest.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestImagePatchRequest.ts @@ -19,6 +19,12 @@ import { mapValues } from '../runtime'; * @interface IoSakurasouControllerRequestImagePatchRequest */ export interface IoSakurasouControllerRequestImagePatchRequest { + /** + * + * @type {number} + * @memberof IoSakurasouControllerRequestImagePatchRequest + */ + albumId?: number; /** * * @type {string} @@ -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'], }; @@ -61,6 +68,7 @@ export function IoSakurasouControllerRequestImagePatchRequestToJSON(value?: IoSa } return { + 'albumId': value['albumId'], 'description': value['description'], 'originName': value['originName'], }; diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteInitRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteInitRequest.ts index 8bcf98c0..c00ab597 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteInitRequest.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteInitRequest.ts @@ -31,6 +31,12 @@ export interface IoSakurasouControllerRequestSiteInitRequest { * @memberof IoSakurasouControllerRequestSiteInitRequest */ password: string; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestSiteInitRequest + */ + siteDescription: string; /** * * @type {string} @@ -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; @@ -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'], @@ -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'], diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteSettingPatchRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteSettingPatchRequest.ts index 0b0a1bb6..af2a578d 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteSettingPatchRequest.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestSiteSettingPatchRequest.ts @@ -24,37 +24,42 @@ export interface IoSakurasouControllerRequestSiteSettingPatchRequest { * @type {boolean} * @memberof IoSakurasouControllerRequestSiteSettingPatchRequest */ - homePageRandomPicDisplay?: boolean; + homePageRandomPicDisplay: boolean; /** * * @type {string} * @memberof IoSakurasouControllerRequestSiteSettingPatchRequest */ - siteDescription?: string; + siteDescription: string; /** * * @type {string} * @memberof IoSakurasouControllerRequestSiteSettingPatchRequest */ - siteKeyword?: string; + siteKeyword: string; /** * * @type {string} * @memberof IoSakurasouControllerRequestSiteSettingPatchRequest */ - siteSubtitle?: string; + siteSubtitle: string; /** * * @type {string} * @memberof IoSakurasouControllerRequestSiteSettingPatchRequest */ - siteTitle?: string; + siteTitle: string; } /** * Check if a given object implements the IoSakurasouControllerRequestSiteSettingPatchRequest interface. */ export function instanceOfIoSakurasouControllerRequestSiteSettingPatchRequest(value: object): value is IoSakurasouControllerRequestSiteSettingPatchRequest { + if (!('homePageRandomPicDisplay' in value) || value['homePageRandomPicDisplay'] === undefined) return false; + if (!('siteDescription' in value) || value['siteDescription'] === undefined) return false; + if (!('siteKeyword' in value) || value['siteKeyword'] === undefined) return false; + if (!('siteSubtitle' in value) || value['siteSubtitle'] === undefined) return false; + if (!('siteTitle' in value) || value['siteTitle'] === undefined) return false; return true; } @@ -68,11 +73,11 @@ export function IoSakurasouControllerRequestSiteSettingPatchRequestFromJSONTyped } return { - 'homePageRandomPicDisplay': json['homePageRandomPicDisplay'] == null ? undefined : json['homePageRandomPicDisplay'], - 'siteDescription': json['siteDescription'] == null ? undefined : json['siteDescription'], - 'siteKeyword': json['siteKeyword'] == null ? undefined : json['siteKeyword'], - 'siteSubtitle': json['siteSubtitle'] == null ? undefined : json['siteSubtitle'], - 'siteTitle': json['siteTitle'] == null ? undefined : json['siteTitle'], + 'homePageRandomPicDisplay': json['homePageRandomPicDisplay'], + 'siteDescription': json['siteDescription'], + 'siteKeyword': json['siteKeyword'], + 'siteSubtitle': json['siteSubtitle'], + 'siteTitle': json['siteTitle'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserInsertRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserInsertRequest.ts index 9f618b8b..12f76965 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserInsertRequest.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserInsertRequest.ts @@ -25,12 +25,6 @@ export interface IoSakurasouControllerRequestUserInsertRequest { * @memberof IoSakurasouControllerRequestUserInsertRequest */ email: string; - /** - * - * @type {string} - * @memberof IoSakurasouControllerRequestUserInsertRequest - */ - groupName: string; /** * * @type {string} @@ -50,7 +44,6 @@ export interface IoSakurasouControllerRequestUserInsertRequest { */ export function instanceOfIoSakurasouControllerRequestUserInsertRequest(value: object): value is IoSakurasouControllerRequestUserInsertRequest { if (!('email' in value) || value['email'] === undefined) return false; - if (!('groupName' in value) || value['groupName'] === undefined) return false; if (!('password' in value) || value['password'] === undefined) return false; if (!('username' in value) || value['username'] === undefined) return false; return true; @@ -67,7 +60,6 @@ export function IoSakurasouControllerRequestUserInsertRequestFromJSONTyped(json: return { 'email': json['email'], - 'groupName': json['groupName'], 'password': json['password'], 'username': json['username'], }; @@ -80,7 +72,6 @@ export function IoSakurasouControllerRequestUserInsertRequestToJSON(value?: IoSa return { 'email': value['email'], - 'groupName': value['groupName'], 'password': value['password'], 'username': value['username'], }; diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManageInsertRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManageInsertRequest.ts new file mode 100644 index 00000000..3eec38e6 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManageInsertRequest.ts @@ -0,0 +1,106 @@ +/* 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 IoSakurasouControllerRequestUserManageInsertRequest + */ +export interface IoSakurasouControllerRequestUserManageInsertRequest { + /** + * + * @type {number} + * @memberof IoSakurasouControllerRequestUserManageInsertRequest + */ + defaultAlbumId: number; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserManageInsertRequest + */ + email: string; + /** + * + * @type {number} + * @memberof IoSakurasouControllerRequestUserManageInsertRequest + */ + groupId: number; + /** + * + * @type {boolean} + * @memberof IoSakurasouControllerRequestUserManageInsertRequest + */ + isDefaultImagePrivate: boolean; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserManageInsertRequest + */ + password: string; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserManageInsertRequest + */ + username: string; +} + +/** + * Check if a given object implements the IoSakurasouControllerRequestUserManageInsertRequest interface. + */ +export function instanceOfIoSakurasouControllerRequestUserManageInsertRequest(value: object): value is IoSakurasouControllerRequestUserManageInsertRequest { + if (!('defaultAlbumId' in value) || value['defaultAlbumId'] === undefined) return false; + if (!('email' in value) || value['email'] === undefined) return false; + if (!('groupId' in value) || value['groupId'] === undefined) return false; + if (!('isDefaultImagePrivate' in value) || value['isDefaultImagePrivate'] === undefined) return false; + if (!('password' in value) || value['password'] === undefined) return false; + if (!('username' in value) || value['username'] === undefined) return false; + return true; +} + +export function IoSakurasouControllerRequestUserManageInsertRequestFromJSON(json: any): IoSakurasouControllerRequestUserManageInsertRequest { + return IoSakurasouControllerRequestUserManageInsertRequestFromJSONTyped(json, false); +} + +export function IoSakurasouControllerRequestUserManageInsertRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestUserManageInsertRequest { + if (json == null) { + return json; + } + return { + + 'defaultAlbumId': json['defaultAlbumId'], + 'email': json['email'], + 'groupId': json['groupId'], + 'isDefaultImagePrivate': json['isDefaultImagePrivate'], + 'password': json['password'], + 'username': json['username'], + }; +} + +export function IoSakurasouControllerRequestUserManageInsertRequestToJSON(value?: IoSakurasouControllerRequestUserManageInsertRequest | null): any { + if (value == null) { + return value; + } + return { + + 'defaultAlbumId': value['defaultAlbumId'], + 'email': value['email'], + 'groupId': value['groupId'], + 'isDefaultImagePrivate': value['isDefaultImagePrivate'], + 'password': value['password'], + 'username': value['username'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManagePatchRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManagePatchRequest.ts new file mode 100644 index 00000000..4f23a0cd --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserManagePatchRequest.ts @@ -0,0 +1,92 @@ +/* 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 IoSakurasouControllerRequestUserManagePatchRequest + */ +export interface IoSakurasouControllerRequestUserManagePatchRequest { + /** + * + * @type {number} + * @memberof IoSakurasouControllerRequestUserManagePatchRequest + */ + defaultAlbumId?: number; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserManagePatchRequest + */ + email?: string; + /** + * + * @type {number} + * @memberof IoSakurasouControllerRequestUserManagePatchRequest + */ + groupId?: number; + /** + * + * @type {boolean} + * @memberof IoSakurasouControllerRequestUserManagePatchRequest + */ + isDefaultImagePrivate?: boolean; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserManagePatchRequest + */ + password?: string; +} + +/** + * Check if a given object implements the IoSakurasouControllerRequestUserManagePatchRequest interface. + */ +export function instanceOfIoSakurasouControllerRequestUserManagePatchRequest(value: object): value is IoSakurasouControllerRequestUserManagePatchRequest { + return true; +} + +export function IoSakurasouControllerRequestUserManagePatchRequestFromJSON(json: any): IoSakurasouControllerRequestUserManagePatchRequest { + return IoSakurasouControllerRequestUserManagePatchRequestFromJSONTyped(json, false); +} + +export function IoSakurasouControllerRequestUserManagePatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestUserManagePatchRequest { + if (json == null) { + return json; + } + return { + + 'defaultAlbumId': json['defaultAlbumId'] == null ? undefined : json['defaultAlbumId'], + 'email': json['email'] == null ? undefined : json['email'], + 'groupId': json['groupId'] == null ? undefined : json['groupId'], + 'isDefaultImagePrivate': json['isDefaultImagePrivate'] == null ? undefined : json['isDefaultImagePrivate'], + 'password': json['password'] == null ? undefined : json['password'], + }; +} + +export function IoSakurasouControllerRequestUserManagePatchRequestToJSON(value?: IoSakurasouControllerRequestUserManagePatchRequest | null): any { + if (value == null) { + return value; + } + return { + + 'defaultAlbumId': value['defaultAlbumId'], + 'email': value['email'], + 'groupId': value['groupId'], + 'isDefaultImagePrivate': value['isDefaultImagePrivate'], + 'password': value['password'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserSelfPatchRequest.ts b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserSelfPatchRequest.ts new file mode 100644 index 00000000..5dec5ac2 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerRequestUserSelfPatchRequest.ts @@ -0,0 +1,84 @@ +/* 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 IoSakurasouControllerRequestUserSelfPatchRequest + */ +export interface IoSakurasouControllerRequestUserSelfPatchRequest { + /** + * + * @type {number} + * @memberof IoSakurasouControllerRequestUserSelfPatchRequest + */ + defaultAlbumId?: number; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserSelfPatchRequest + */ + email?: string; + /** + * + * @type {boolean} + * @memberof IoSakurasouControllerRequestUserSelfPatchRequest + */ + isDefaultImagePrivate?: boolean; + /** + * + * @type {string} + * @memberof IoSakurasouControllerRequestUserSelfPatchRequest + */ + password?: string; +} + +/** + * Check if a given object implements the IoSakurasouControllerRequestUserSelfPatchRequest interface. + */ +export function instanceOfIoSakurasouControllerRequestUserSelfPatchRequest(value: object): value is IoSakurasouControllerRequestUserSelfPatchRequest { + return true; +} + +export function IoSakurasouControllerRequestUserSelfPatchRequestFromJSON(json: any): IoSakurasouControllerRequestUserSelfPatchRequest { + return IoSakurasouControllerRequestUserSelfPatchRequestFromJSONTyped(json, false); +} + +export function IoSakurasouControllerRequestUserSelfPatchRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerRequestUserSelfPatchRequest { + if (json == null) { + return json; + } + return { + + 'defaultAlbumId': json['defaultAlbumId'] == null ? undefined : json['defaultAlbumId'], + 'email': json['email'] == null ? undefined : json['email'], + 'isDefaultImagePrivate': json['isDefaultImagePrivate'] == null ? undefined : json['isDefaultImagePrivate'], + 'password': json['password'] == null ? undefined : json['password'], + }; +} + +export function IoSakurasouControllerRequestUserSelfPatchRequestToJSON(value?: IoSakurasouControllerRequestUserSelfPatchRequest | null): any { + if (value == null) { + return value; + } + return { + + 'defaultAlbumId': value['defaultAlbumId'], + 'email': value['email'], + 'isDefaultImagePrivate': value['isDefaultImagePrivate'], + 'password': value['password'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO.ts new file mode 100644 index 00000000..e4fa7da1 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO.ts @@ -0,0 +1,94 @@ +/* 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'; +import type { IoSakurasouControllerVoSettingVO } from './IoSakurasouControllerVoSettingVO'; +import { + IoSakurasouControllerVoSettingVOFromJSON, + IoSakurasouControllerVoSettingVOFromJSONTyped, + IoSakurasouControllerVoSettingVOToJSON, +} from './IoSakurasouControllerVoSettingVO'; + +/** + * + * @export + * @interface IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO + */ +export interface IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO { + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO + */ + code: number; + /** + * + * @type {Array} + * @memberof IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO + */ + data?: Array; + /** + * + * @type {boolean} + * @memberof IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO + */ + isSuccessful: boolean; + /** + * + * @type {string} + * @memberof IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO + */ + message: string; +} + +/** + * Check if a given object implements the IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO interface. + */ +export function instanceOfIoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO(value: object): value is IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO { + if (!('code' in value) || value['code'] === undefined) return false; + if (!('isSuccessful' in value) || value['isSuccessful'] === undefined) return false; + if (!('message' in value) || value['message'] === undefined) return false; + return true; +} + +export function IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOFromJSON(json: any): IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO { + return IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOFromJSONTyped(json, false); +} + +export function IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO { + if (json == null) { + return json; + } + return { + + 'code': json['code'], + 'data': json['data'] == null ? undefined : ((json['data'] as Array).map(IoSakurasouControllerVoSettingVOFromJSON)), + 'isSuccessful': json['isSuccessful'], + 'message': json['message'], + }; +} + +export function IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVOToJSON(value?: IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO | null): any { + if (value == null) { + return value; + } + return { + + 'code': value['code'], + 'data': value['data'] == null ? undefined : ((value['data'] as Array).map(IoSakurasouControllerVoSettingVOToJSON)), + 'isSuccessful': value['isSuccessful'], + 'message': value['message'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO.ts index d74b9359..9364f513 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO.ts @@ -32,6 +32,18 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPa * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO */ list: Array; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO + */ + page: number; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO + */ + pageSize: number; /** * * @type {number} @@ -45,6 +57,8 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPa */ export function instanceOfIoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO(value: object): value is IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPageVO { if (!('list' in value) || value['list'] === undefined) return false; + if (!('page' in value) || value['page'] === undefined) return false; + if (!('pageSize' in value) || value['pageSize'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; return true; } @@ -60,6 +74,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPag return { 'list': ((json['list'] as Array).map(IoSakurasouControllerVoAlbumPageVOFromJSON)), + 'page': json['page'], + 'pageSize': json['pageSize'], 'total': json['total'], }; } @@ -71,6 +87,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoAlbumPag return { 'list': ((value['list'] as Array).map(IoSakurasouControllerVoAlbumPageVOToJSON)), + 'page': value['page'], + 'pageSize': value['pageSize'], 'total': value['total'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO.ts index 4b960be8..7fd67823 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO.ts @@ -32,6 +32,18 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPa * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO */ list: Array; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO + */ + page: number; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO + */ + pageSize: number; /** * * @type {number} @@ -45,6 +57,8 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPa */ export function instanceOfIoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO(value: object): value is IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPageVO { if (!('list' in value) || value['list'] === undefined) return false; + if (!('page' in value) || value['page'] === undefined) return false; + if (!('pageSize' in value) || value['pageSize'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; return true; } @@ -60,6 +74,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPag return { 'list': ((json['list'] as Array).map(IoSakurasouControllerVoGroupPageVOFromJSON)), + 'page': json['page'], + 'pageSize': json['pageSize'], 'total': json['total'], }; } @@ -71,6 +87,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoGroupPag return { 'list': ((value['list'] as Array).map(IoSakurasouControllerVoGroupPageVOToJSON)), + 'page': value['page'], + 'pageSize': value['pageSize'], 'total': value['total'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO.ts index 1c3c16a1..8f48fc63 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO.ts @@ -32,6 +32,18 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePa * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO */ list: Array; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO + */ + page: number; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO + */ + pageSize: number; /** * * @type {number} @@ -45,6 +57,8 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePa */ export function instanceOfIoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO(value: object): value is IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePageVO { if (!('list' in value) || value['list'] === undefined) return false; + if (!('page' in value) || value['page'] === undefined) return false; + if (!('pageSize' in value) || value['pageSize'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; return true; } @@ -60,6 +74,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePag return { 'list': ((json['list'] as Array).map(IoSakurasouControllerVoImagePageVOFromJSON)), + 'page': json['page'], + 'pageSize': json['pageSize'], 'total': json['total'], }; } @@ -71,6 +87,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePag return { 'list': ((value['list'] as Array).map(IoSakurasouControllerVoImagePageVOToJSON)), + 'page': value['page'], + 'pageSize': value['pageSize'], 'total': value['total'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO.ts index 55f64f92..43995e83 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO.ts @@ -32,6 +32,18 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoStrateg * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO */ list: Array; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO + */ + page: number; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO + */ + pageSize: number; /** * * @type {number} @@ -45,6 +57,8 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoStrateg */ export function instanceOfIoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO(value: object): value is IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO { if (!('list' in value) || value['list'] === undefined) return false; + if (!('page' in value) || value['page'] === undefined) return false; + if (!('pageSize' in value) || value['pageSize'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; return true; } @@ -60,6 +74,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategy return { 'list': ((json['list'] as Array).map(IoSakurasouControllerVoStrategyPageVOFromJSON)), + 'page': json['page'], + 'pageSize': json['pageSize'], 'total': json['total'], }; } @@ -71,6 +87,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategy return { 'list': ((value['list'] as Array).map(IoSakurasouControllerVoStrategyPageVOToJSON)), + 'page': value['page'], + 'pageSize': value['pageSize'], 'total': value['total'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO.ts index 327d8b24..64d98a72 100644 --- a/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO.ts +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO.ts @@ -32,6 +32,18 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPag * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO */ list: Array; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO + */ + page: number; + /** + * + * @type {number} + * @memberof IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO + */ + pageSize: number; /** * * @type {number} @@ -45,6 +57,8 @@ export interface IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPag */ export function instanceOfIoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO(value: object): value is IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO { if (!('list' in value) || value['list'] === undefined) return false; + if (!('page' in value) || value['page'] === undefined) return false; + if (!('pageSize' in value) || value['pageSize'] === undefined) return false; if (!('total' in value) || value['total'] === undefined) return false; return true; } @@ -60,6 +74,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPage return { 'list': ((json['list'] as Array).map(IoSakurasouControllerVoUserPageVOFromJSON)), + 'page': json['page'], + 'pageSize': json['pageSize'], 'total': json['total'], }; } @@ -71,6 +87,8 @@ export function IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPage return { 'list': ((value['list'] as Array).map(IoSakurasouControllerVoUserPageVOToJSON)), + 'page': value['page'], + 'pageSize': value['pageSize'], 'total': value['total'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouControllerVoSettingVO.ts b/ui/packages/api-client/src/models/IoSakurasouControllerVoSettingVO.ts new file mode 100644 index 00000000..7436508a --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouControllerVoSettingVO.ts @@ -0,0 +1,92 @@ +/* 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'; +import type { KotlinxDatetimeLocalDateTime } from './KotlinxDatetimeLocalDateTime'; +import { + KotlinxDatetimeLocalDateTimeFromJSON, + KotlinxDatetimeLocalDateTimeFromJSONTyped, + KotlinxDatetimeLocalDateTimeToJSON, +} from './KotlinxDatetimeLocalDateTime'; +import type { IoSakurasouModelSettingSettingConfig } from './IoSakurasouModelSettingSettingConfig'; +import { + IoSakurasouModelSettingSettingConfigFromJSON, + IoSakurasouModelSettingSettingConfigFromJSONTyped, + IoSakurasouModelSettingSettingConfigToJSON, +} from './IoSakurasouModelSettingSettingConfig'; + +/** + * + * @export + * @interface IoSakurasouControllerVoSettingVO + */ +export interface IoSakurasouControllerVoSettingVO { + /** + * + * @type {IoSakurasouModelSettingSettingConfig} + * @memberof IoSakurasouControllerVoSettingVO + */ + config: IoSakurasouModelSettingSettingConfig; + /** + * + * @type {KotlinxDatetimeLocalDateTime} + * @memberof IoSakurasouControllerVoSettingVO + */ + lastUpdateTime: KotlinxDatetimeLocalDateTime; + /** + * + * @type {string} + * @memberof IoSakurasouControllerVoSettingVO + */ + name: string; +} + +/** + * Check if a given object implements the IoSakurasouControllerVoSettingVO interface. + */ +export function instanceOfIoSakurasouControllerVoSettingVO(value: object): value is IoSakurasouControllerVoSettingVO { + if (!('config' in value) || value['config'] === undefined) return false; + if (!('lastUpdateTime' in value) || value['lastUpdateTime'] === undefined) return false; + if (!('name' in value) || value['name'] === undefined) return false; + return true; +} + +export function IoSakurasouControllerVoSettingVOFromJSON(json: any): IoSakurasouControllerVoSettingVO { + return IoSakurasouControllerVoSettingVOFromJSONTyped(json, false); +} + +export function IoSakurasouControllerVoSettingVOFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouControllerVoSettingVO { + if (json == null) { + return json; + } + return { + + 'config': IoSakurasouModelSettingSettingConfigFromJSON(json['config']), + 'lastUpdateTime': KotlinxDatetimeLocalDateTimeFromJSON(json['lastUpdateTime']), + 'name': json['name'], + }; +} + +export function IoSakurasouControllerVoSettingVOToJSON(value?: IoSakurasouControllerVoSettingVO | null): any { + if (value == null) { + return value; + } + return { + + 'config': IoSakurasouModelSettingSettingConfigToJSON(value['config']), + 'lastUpdateTime': KotlinxDatetimeLocalDateTimeToJSON(value['lastUpdateTime']), + 'name': value['name'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouModelEntityPermission.ts b/ui/packages/api-client/src/models/IoSakurasouModelEntityPermission.ts index b6c8d7cc..96bfbb55 100644 --- a/ui/packages/api-client/src/models/IoSakurasouModelEntityPermission.ts +++ b/ui/packages/api-client/src/models/IoSakurasouModelEntityPermission.ts @@ -25,12 +25,6 @@ export interface IoSakurasouModelEntityPermission { * @memberof IoSakurasouModelEntityPermission */ description?: string; - /** - * - * @type {number} - * @memberof IoSakurasouModelEntityPermission - */ - id: number; /** * * @type {string} @@ -43,7 +37,6 @@ export interface IoSakurasouModelEntityPermission { * Check if a given object implements the IoSakurasouModelEntityPermission interface. */ export function instanceOfIoSakurasouModelEntityPermission(value: object): value is IoSakurasouModelEntityPermission { - if (!('id' in value) || value['id'] === undefined) return false; if (!('name' in value) || value['name'] === undefined) return false; return true; } @@ -59,7 +52,6 @@ export function IoSakurasouModelEntityPermissionFromJSONTyped(json: any, ignoreD return { 'description': json['description'] == null ? undefined : json['description'], - 'id': json['id'], 'name': json['name'], }; } @@ -71,7 +63,6 @@ export function IoSakurasouModelEntityPermissionToJSON(value?: IoSakurasouModelE return { 'description': value['description'], - 'id': value['id'], 'name': value['name'], }; } diff --git a/ui/packages/api-client/src/models/IoSakurasouModelSettingSettingConfig.ts b/ui/packages/api-client/src/models/IoSakurasouModelSettingSettingConfig.ts new file mode 100644 index 00000000..70423f2f --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouModelSettingSettingConfig.ts @@ -0,0 +1,158 @@ +/* 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'; +import type { IoSakurasouModelSettingStrategySetting } from './IoSakurasouModelSettingStrategySetting'; +import { + IoSakurasouModelSettingStrategySettingFromJSON, + IoSakurasouModelSettingStrategySettingFromJSONTyped, + IoSakurasouModelSettingStrategySettingToJSON, +} from './IoSakurasouModelSettingStrategySetting'; +import type { IoSakurasouModelSettingSystemSetting } from './IoSakurasouModelSettingSystemSetting'; +import { + IoSakurasouModelSettingSystemSettingFromJSON, + IoSakurasouModelSettingSystemSettingFromJSONTyped, + IoSakurasouModelSettingSystemSettingToJSON, +} from './IoSakurasouModelSettingSystemSetting'; +import type { IoSakurasouModelSettingSiteSetting } from './IoSakurasouModelSettingSiteSetting'; +import { + IoSakurasouModelSettingSiteSettingFromJSON, + IoSakurasouModelSettingSiteSettingFromJSONTyped, + IoSakurasouModelSettingSiteSettingToJSON, +} from './IoSakurasouModelSettingSiteSetting'; +import type { IoSakurasouModelSettingSystemStatus } from './IoSakurasouModelSettingSystemStatus'; +import { + IoSakurasouModelSettingSystemStatusFromJSON, + IoSakurasouModelSettingSystemStatusFromJSONTyped, + IoSakurasouModelSettingSystemStatusToJSON, +} from './IoSakurasouModelSettingSystemStatus'; + +/** + * + * @export + * @interface IoSakurasouModelSettingSettingConfig + */ +export interface IoSakurasouModelSettingSettingConfig { + /** + * + * @type {boolean} + * @memberof IoSakurasouModelSettingSettingConfig + */ + homePageRandomPicDisplay: boolean; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSettingConfig + */ + siteDescription: string; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSettingConfig + */ + siteKeyword: string; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSettingConfig + */ + siteSubtitle: string; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSettingConfig + */ + siteTitle: string; + /** + * + * @type {Array} + * @memberof IoSakurasouModelSettingSettingConfig + */ + allowedImageTypes: Array; + /** + * + * @type {boolean} + * @memberof IoSakurasouModelSettingSettingConfig + */ + allowSignup: boolean; + /** + * + * @type {number} + * @memberof IoSakurasouModelSettingSettingConfig + */ + defaultGroupId: number; + /** + * + * @type {boolean} + * @memberof IoSakurasouModelSettingSettingConfig + */ + isInit: boolean; +} + +/** + * Check if a given object implements the IoSakurasouModelSettingSettingConfig interface. + */ +export function instanceOfIoSakurasouModelSettingSettingConfig(value: object): value is IoSakurasouModelSettingSettingConfig { + if (!('homePageRandomPicDisplay' in value) || value['homePageRandomPicDisplay'] === undefined) return false; + if (!('siteDescription' in value) || value['siteDescription'] === undefined) return false; + if (!('siteKeyword' in value) || value['siteKeyword'] === undefined) return false; + if (!('siteSubtitle' in value) || value['siteSubtitle'] === undefined) return false; + if (!('siteTitle' in value) || value['siteTitle'] === undefined) return false; + if (!('allowedImageTypes' in value) || value['allowedImageTypes'] === undefined) return false; + if (!('allowSignup' in value) || value['allowSignup'] === undefined) return false; + if (!('defaultGroupId' in value) || value['defaultGroupId'] === undefined) return false; + if (!('isInit' in value) || value['isInit'] === undefined) return false; + return true; +} + +export function IoSakurasouModelSettingSettingConfigFromJSON(json: any): IoSakurasouModelSettingSettingConfig { + return IoSakurasouModelSettingSettingConfigFromJSONTyped(json, false); +} + +export function IoSakurasouModelSettingSettingConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouModelSettingSettingConfig { + if (json == null) { + return json; + } + return { + + 'homePageRandomPicDisplay': json['homePageRandomPicDisplay'], + 'siteDescription': json['siteDescription'], + 'siteKeyword': json['siteKeyword'], + 'siteSubtitle': json['siteSubtitle'], + 'siteTitle': json['siteTitle'], + 'allowedImageTypes': json['allowedImageTypes'], + 'allowSignup': json['allowSignup'], + 'defaultGroupId': json['defaultGroupId'], + 'isInit': json['isInit'], + }; +} + +export function IoSakurasouModelSettingSettingConfigToJSON(value?: IoSakurasouModelSettingSettingConfig | null): any { + if (value == null) { + return value; + } + return { + + 'homePageRandomPicDisplay': value['homePageRandomPicDisplay'], + 'siteDescription': value['siteDescription'], + 'siteKeyword': value['siteKeyword'], + 'siteSubtitle': value['siteSubtitle'], + 'siteTitle': value['siteTitle'], + 'allowedImageTypes': value['allowedImageTypes'], + 'allowSignup': value['allowSignup'], + 'defaultGroupId': value['defaultGroupId'], + 'isInit': value['isInit'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouModelSettingSiteSetting.ts b/ui/packages/api-client/src/models/IoSakurasouModelSettingSiteSetting.ts new file mode 100644 index 00000000..679b8fda --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouModelSettingSiteSetting.ts @@ -0,0 +1,97 @@ +/* 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 IoSakurasouModelSettingSiteSetting + */ +export interface IoSakurasouModelSettingSiteSetting { + /** + * + * @type {boolean} + * @memberof IoSakurasouModelSettingSiteSetting + */ + homePageRandomPicDisplay: boolean; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSiteSetting + */ + siteDescription: string; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSiteSetting + */ + siteKeyword: string; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSiteSetting + */ + siteSubtitle: string; + /** + * + * @type {string} + * @memberof IoSakurasouModelSettingSiteSetting + */ + siteTitle: string; +} + +/** + * Check if a given object implements the IoSakurasouModelSettingSiteSetting interface. + */ +export function instanceOfIoSakurasouModelSettingSiteSetting(value: object): value is IoSakurasouModelSettingSiteSetting { + if (!('homePageRandomPicDisplay' in value) || value['homePageRandomPicDisplay'] === undefined) return false; + if (!('siteDescription' in value) || value['siteDescription'] === undefined) return false; + if (!('siteKeyword' in value) || value['siteKeyword'] === undefined) return false; + if (!('siteSubtitle' in value) || value['siteSubtitle'] === undefined) return false; + if (!('siteTitle' in value) || value['siteTitle'] === undefined) return false; + return true; +} + +export function IoSakurasouModelSettingSiteSettingFromJSON(json: any): IoSakurasouModelSettingSiteSetting { + return IoSakurasouModelSettingSiteSettingFromJSONTyped(json, false); +} + +export function IoSakurasouModelSettingSiteSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouModelSettingSiteSetting { + if (json == null) { + return json; + } + return { + + 'homePageRandomPicDisplay': json['homePageRandomPicDisplay'], + 'siteDescription': json['siteDescription'], + 'siteKeyword': json['siteKeyword'], + 'siteSubtitle': json['siteSubtitle'], + 'siteTitle': json['siteTitle'], + }; +} + +export function IoSakurasouModelSettingSiteSettingToJSON(value?: IoSakurasouModelSettingSiteSetting | null): any { + if (value == null) { + return value; + } + return { + + 'homePageRandomPicDisplay': value['homePageRandomPicDisplay'], + 'siteDescription': value['siteDescription'], + 'siteKeyword': value['siteKeyword'], + 'siteSubtitle': value['siteSubtitle'], + 'siteTitle': value['siteTitle'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouModelSettingStrategySetting.ts b/ui/packages/api-client/src/models/IoSakurasouModelSettingStrategySetting.ts new file mode 100644 index 00000000..d8e6ff5d --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouModelSettingStrategySetting.ts @@ -0,0 +1,61 @@ +/* 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 IoSakurasouModelSettingStrategySetting + */ +export interface IoSakurasouModelSettingStrategySetting { + /** + * + * @type {Array} + * @memberof IoSakurasouModelSettingStrategySetting + */ + allowedImageTypes: Array; +} + +/** + * Check if a given object implements the IoSakurasouModelSettingStrategySetting interface. + */ +export function instanceOfIoSakurasouModelSettingStrategySetting(value: object): value is IoSakurasouModelSettingStrategySetting { + if (!('allowedImageTypes' in value) || value['allowedImageTypes'] === undefined) return false; + return true; +} + +export function IoSakurasouModelSettingStrategySettingFromJSON(json: any): IoSakurasouModelSettingStrategySetting { + return IoSakurasouModelSettingStrategySettingFromJSONTyped(json, false); +} + +export function IoSakurasouModelSettingStrategySettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouModelSettingStrategySetting { + if (json == null) { + return json; + } + return { + + 'allowedImageTypes': json['allowedImageTypes'], + }; +} + +export function IoSakurasouModelSettingStrategySettingToJSON(value?: IoSakurasouModelSettingStrategySetting | null): any { + if (value == null) { + return value; + } + return { + + 'allowedImageTypes': value['allowedImageTypes'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouModelSettingSystemSetting.ts b/ui/packages/api-client/src/models/IoSakurasouModelSettingSystemSetting.ts new file mode 100644 index 00000000..c777ce78 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouModelSettingSystemSetting.ts @@ -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 IoSakurasouModelSettingSystemSetting + */ +export interface IoSakurasouModelSettingSystemSetting { + /** + * + * @type {boolean} + * @memberof IoSakurasouModelSettingSystemSetting + */ + allowSignup: boolean; + /** + * + * @type {number} + * @memberof IoSakurasouModelSettingSystemSetting + */ + defaultGroupId: number; +} + +/** + * Check if a given object implements the IoSakurasouModelSettingSystemSetting interface. + */ +export function instanceOfIoSakurasouModelSettingSystemSetting(value: object): value is IoSakurasouModelSettingSystemSetting { + if (!('allowSignup' in value) || value['allowSignup'] === undefined) return false; + if (!('defaultGroupId' in value) || value['defaultGroupId'] === undefined) return false; + return true; +} + +export function IoSakurasouModelSettingSystemSettingFromJSON(json: any): IoSakurasouModelSettingSystemSetting { + return IoSakurasouModelSettingSystemSettingFromJSONTyped(json, false); +} + +export function IoSakurasouModelSettingSystemSettingFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouModelSettingSystemSetting { + if (json == null) { + return json; + } + return { + + 'allowSignup': json['allowSignup'], + 'defaultGroupId': json['defaultGroupId'], + }; +} + +export function IoSakurasouModelSettingSystemSettingToJSON(value?: IoSakurasouModelSettingSystemSetting | null): any { + if (value == null) { + return value; + } + return { + + 'allowSignup': value['allowSignup'], + 'defaultGroupId': value['defaultGroupId'], + }; +} + diff --git a/ui/packages/api-client/src/models/IoSakurasouModelSettingSystemStatus.ts b/ui/packages/api-client/src/models/IoSakurasouModelSettingSystemStatus.ts new file mode 100644 index 00000000..0e5d73d8 --- /dev/null +++ b/ui/packages/api-client/src/models/IoSakurasouModelSettingSystemStatus.ts @@ -0,0 +1,61 @@ +/* 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 IoSakurasouModelSettingSystemStatus + */ +export interface IoSakurasouModelSettingSystemStatus { + /** + * + * @type {boolean} + * @memberof IoSakurasouModelSettingSystemStatus + */ + isInit: boolean; +} + +/** + * Check if a given object implements the IoSakurasouModelSettingSystemStatus interface. + */ +export function instanceOfIoSakurasouModelSettingSystemStatus(value: object): value is IoSakurasouModelSettingSystemStatus { + if (!('isInit' in value) || value['isInit'] === undefined) return false; + return true; +} + +export function IoSakurasouModelSettingSystemStatusFromJSON(json: any): IoSakurasouModelSettingSystemStatus { + return IoSakurasouModelSettingSystemStatusFromJSONTyped(json, false); +} + +export function IoSakurasouModelSettingSystemStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): IoSakurasouModelSettingSystemStatus { + if (json == null) { + return json; + } + return { + + 'isInit': json['isInit'], + }; +} + +export function IoSakurasouModelSettingSystemStatusToJSON(value?: IoSakurasouModelSettingSystemStatus | null): any { + if (value == null) { + return value; + } + return { + + 'isInit': value['isInit'], + }; +} + diff --git a/ui/packages/api-client/src/models/index.ts b/ui/packages/api-client/src/models/index.ts index 6c3d8e08..a9f72ff3 100644 --- a/ui/packages/api-client/src/models/index.ts +++ b/ui/packages/api-client/src/models/index.ts @@ -1,7 +1,9 @@ /* tslint:disable */ /* eslint-disable */ -export * from './IoSakurasouControllerRequestAlbumInsertRequest'; -export * from './IoSakurasouControllerRequestAlbumPatchRequest'; +export * from './IoSakurasouControllerRequestAlbumManageInsertRequest'; +export * from './IoSakurasouControllerRequestAlbumManagePatchRequest'; +export * from './IoSakurasouControllerRequestAlbumSelfInsertRequest'; +export * from './IoSakurasouControllerRequestAlbumSelfPatchRequest'; export * from './IoSakurasouControllerRequestGroupInsertRequest'; export * from './IoSakurasouControllerRequestGroupPatchRequest'; export * from './IoSakurasouControllerRequestImagePatchRequest'; @@ -12,7 +14,9 @@ export * from './IoSakurasouControllerRequestStrategyPatchRequest'; export * from './IoSakurasouControllerRequestStrategySettingPatchRequest'; export * from './IoSakurasouControllerRequestUserInsertRequest'; export * from './IoSakurasouControllerRequestUserLoginRequest'; -export * from './IoSakurasouControllerRequestUserPatchRequest'; +export * from './IoSakurasouControllerRequestUserManageInsertRequest'; +export * from './IoSakurasouControllerRequestUserManagePatchRequest'; +export * from './IoSakurasouControllerRequestUserSelfPatchRequest'; export * from './IoSakurasouControllerVoAlbumPageVO'; export * from './IoSakurasouControllerVoAlbumVO'; export * from './IoSakurasouControllerVoCommonResponseioSakurasouControllerVoAlbumVO'; @@ -20,6 +24,7 @@ export * from './IoSakurasouControllerVoCommonResponseioSakurasouControllerVoGro export * from './IoSakurasouControllerVoCommonResponseioSakurasouControllerVoImageVO'; export * from './IoSakurasouControllerVoCommonResponseioSakurasouControllerVoStrategyVO'; export * from './IoSakurasouControllerVoCommonResponseioSakurasouControllerVoUserVO'; +export * from './IoSakurasouControllerVoCommonResponsekotlinCollectionsListioSakurasouControllerVoSettingVO'; export * from './IoSakurasouControllerVoCommonResponsekotlinUnit'; export * from './IoSakurasouControllerVoGroupPageVO'; export * from './IoSakurasouControllerVoGroupVO'; @@ -31,11 +36,17 @@ export * from './IoSakurasouControllerVoPageResultioSakurasouControllerVoImagePa export * from './IoSakurasouControllerVoPageResultioSakurasouControllerVoStrategyPageVO'; export * from './IoSakurasouControllerVoPageResultioSakurasouControllerVoUserPageVO'; export * from './IoSakurasouControllerVoRoleVO'; +export * from './IoSakurasouControllerVoSettingVO'; export * from './IoSakurasouControllerVoStrategyPageVO'; export * from './IoSakurasouControllerVoStrategyVO'; export * from './IoSakurasouControllerVoUserPageVO'; export * from './IoSakurasouControllerVoUserVO'; export * from './IoSakurasouModelEntityPermission'; +export * from './IoSakurasouModelSettingSettingConfig'; +export * from './IoSakurasouModelSettingSiteSetting'; +export * from './IoSakurasouModelSettingStrategySetting'; +export * from './IoSakurasouModelSettingSystemSetting'; +export * from './IoSakurasouModelSettingSystemStatus'; export * from './IoSakurasouModelStrategyLocalStrategy'; export * from './IoSakurasouModelStrategyS3Strategy'; export * from './IoSakurasouModelStrategyStrategyConfig';