-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
411 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,124 @@ | ||
/* 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 type { Configuration } from '../configuration'; | ||
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; | ||
import globalAxios from 'axios'; | ||
// Some imports not used depending on template conditions | ||
// @ts-ignore | ||
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common'; | ||
// @ts-ignore | ||
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base'; | ||
// @ts-ignore | ||
import type { CommonResponseSystemOverviewVO } from '../models'; | ||
/** | ||
* SystemApi - axios parameter creator | ||
* @export | ||
*/ | ||
export const SystemApiAxiosParamCreator = function (configuration?: Configuration) { | ||
return { | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiSystemOverviewGet: async (options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
const localVarPath = `/api/system/overview`; | ||
// use dummy base URL string because the URL constructor only accepts absolute URLs. | ||
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); | ||
let baseOptions; | ||
if (configuration) { | ||
baseOptions = configuration.baseOptions; | ||
} | ||
|
||
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; | ||
const localVarHeaderParameter = {} as any; | ||
const localVarQueryParameter = {} as any; | ||
|
||
// authentication JWT required | ||
// http bearer authentication required | ||
await setBearerAuthToObject(localVarHeaderParameter, configuration) | ||
|
||
|
||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* SystemApi - functional programming interface | ||
* @export | ||
*/ | ||
export const SystemApiFp = function(configuration?: Configuration) { | ||
const localVarAxiosParamCreator = SystemApiAxiosParamCreator(configuration) | ||
return { | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async apiSystemOverviewGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonResponseSystemOverviewVO>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.apiSystemOverviewGet(options); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['SystemApi.apiSystemOverviewGet']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* SystemApi - factory interface | ||
* @export | ||
*/ | ||
export const SystemApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
const localVarFp = SystemApiFp(configuration) | ||
return { | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
apiSystemOverviewGet(options?: RawAxiosRequestConfig): AxiosPromise<CommonResponseSystemOverviewVO> { | ||
return localVarFp.apiSystemOverviewGet(options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* SystemApi - object-oriented interface | ||
* @export | ||
* @class SystemApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export class SystemApi extends BaseAPI { | ||
/** | ||
* | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof SystemApi | ||
*/ | ||
public apiSystemOverviewGet(options?: RawAxiosRequestConfig) { | ||
return SystemApiFp(this.configuration).apiSystemOverviewGet(options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
|
51 changes: 51 additions & 0 deletions
51
ui/packages/api-client/src/models/common-response-system-overview-vo.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* 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. | ||
*/ | ||
|
||
|
||
// May contain unused imports in some cases | ||
// @ts-ignore | ||
import type { SystemOverviewVO } from './system-overview-vo'; | ||
|
||
/** | ||
* | ||
* @export | ||
* @interface CommonResponseSystemOverviewVO | ||
*/ | ||
export interface CommonResponseSystemOverviewVO { | ||
/** | ||
* | ||
* @type {number} | ||
* @memberof CommonResponseSystemOverviewVO | ||
*/ | ||
'code': number; | ||
/** | ||
* | ||
* @type {SystemOverviewVO} | ||
* @memberof CommonResponseSystemOverviewVO | ||
*/ | ||
'data'?: SystemOverviewVO | null; | ||
/** | ||
* | ||
* @type {boolean} | ||
* @memberof CommonResponseSystemOverviewVO | ||
*/ | ||
'isSuccessful': boolean; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof CommonResponseSystemOverviewVO | ||
*/ | ||
'message': string; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/* 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. | ||
*/ | ||
|
||
|
||
|
||
/** | ||
* | ||
* @export | ||
* @interface HoshizoraStatusVO | ||
*/ | ||
export interface HoshizoraStatusVO { | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof HoshizoraStatusVO | ||
*/ | ||
'buildTime': string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof HoshizoraStatusVO | ||
*/ | ||
'commitId': string; | ||
/** | ||
* | ||
* @type {string} | ||
* @memberof HoshizoraStatusVO | ||
*/ | ||
'version': string; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.