-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
39 changed files
with
2,330 additions
and
13 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
apps/server/src/infra/vidis-client/generated/.openapi-generator/FILES
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
142 changes: 142 additions & 0 deletions
142
apps/server/src/infra/vidis-client/generated/api/default-api.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,142 @@ | ||
/* tslint:disable */ | ||
/* eslint-disable */ | ||
/** | ||
* Vidis REST | ||
* Vidis REST API | ||
* | ||
* The version of the OpenAPI document: v1.0 | ||
* | ||
* | ||
* 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'; | ||
/** | ||
* DefaultApi - axios parameter creator | ||
* @export | ||
*/ | ||
export const DefaultApiAxiosParamCreator = function (configuration?: Configuration) { | ||
return { | ||
/** | ||
* | ||
* @param {string} type | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getOpenAPI: async (type: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => { | ||
// verify required parameter 'type' is not null or undefined | ||
assertParamExists('getOpenAPI', 'type', type) | ||
const localVarPath = `/v1.0/openapi.{type}` | ||
.replace(`{${"type"}}`, encodeURIComponent(String(type))); | ||
// 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; | ||
|
||
|
||
|
||
setSearchParams(localVarUrlObj, localVarQueryParameter); | ||
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; | ||
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; | ||
|
||
return { | ||
url: toPathString(localVarUrlObj), | ||
options: localVarRequestOptions, | ||
}; | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* DefaultApi - functional programming interface | ||
* @export | ||
*/ | ||
export const DefaultApiFp = function(configuration?: Configuration) { | ||
const localVarAxiosParamCreator = DefaultApiAxiosParamCreator(configuration) | ||
return { | ||
/** | ||
* | ||
* @param {string} type | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
async getOpenAPI(type: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> { | ||
const localVarAxiosArgs = await localVarAxiosParamCreator.getOpenAPI(type, options); | ||
const localVarOperationServerIndex = configuration?.serverIndex ?? 0; | ||
const localVarOperationServerBasePath = operationServerMap['DefaultApi.getOpenAPI']?.[localVarOperationServerIndex]?.url; | ||
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); | ||
}, | ||
} | ||
}; | ||
|
||
/** | ||
* DefaultApi - factory interface | ||
* @export | ||
*/ | ||
export const DefaultApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { | ||
const localVarFp = DefaultApiFp(configuration) | ||
return { | ||
/** | ||
* | ||
* @param {string} type | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
*/ | ||
getOpenAPI(type: string, options?: any): AxiosPromise<void> { | ||
return localVarFp.getOpenAPI(type, options).then((request) => request(axios, basePath)); | ||
}, | ||
}; | ||
}; | ||
|
||
/** | ||
* DefaultApi - interface | ||
* @export | ||
* @interface DefaultApi | ||
*/ | ||
export interface DefaultApiInterface { | ||
/** | ||
* | ||
* @param {string} type | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApiInterface | ||
*/ | ||
getOpenAPI(type: string, options?: RawAxiosRequestConfig): AxiosPromise<void>; | ||
|
||
} | ||
|
||
/** | ||
* DefaultApi - object-oriented interface | ||
* @export | ||
* @class DefaultApi | ||
* @extends {BaseAPI} | ||
*/ | ||
export class DefaultApi extends BaseAPI implements DefaultApiInterface { | ||
/** | ||
* | ||
* @param {string} type | ||
* @param {*} [options] Override http request option. | ||
* @throws {RequiredError} | ||
* @memberof DefaultApi | ||
*/ | ||
public getOpenAPI(type: string, options?: RawAxiosRequestConfig) { | ||
return DefaultApiFp(this.configuration).getOpenAPI(type, options).then((request) => request(this.axios, this.basePath)); | ||
} | ||
} | ||
|
Oops, something went wrong.