From c699d8022c960cdf8cf8d081149b93f0823d9ef9 Mon Sep 17 00:00:00 2001 From: skywalker Date: Wed, 21 Aug 2024 23:11:06 +0300 Subject: [PATCH] chore(openapi-generator): commit autogenerated typescript code for future --- client/src/generated/.gitignore | 4 + client/src/generated/.npmignore | 1 + .../src/generated/.openapi-generator-ignore | 0 client/src/generated/.openapi-generator/FILES | 20 ++ .../src/generated/.openapi-generator/VERSION | 1 + client/src/generated/api.ts | 18 ++ client/src/generated/api/basic-login-api.ts | 203 ++++++++++++++ .../api/get-instruments-by-criteria-api.ts | 209 ++++++++++++++ ...t-instruments-by-criteria-paginated-api.ts | 257 ++++++++++++++++++ client/src/generated/api/profile-api.ts | 178 ++++++++++++ client/src/generated/base.ts | 91 +++++++ client/src/generated/common.ts | 202 ++++++++++++++ client/src/generated/configuration.ts | 132 +++++++++ client/src/generated/git_push.sh | 57 ++++ client/src/generated/index.ts | 17 ++ ...et-instrument-by-criteria-page-response.ts | 61 +++++ .../get-instrument-criteria-request-body.ts | 81 ++++++ .../get-instruments-by-criteria-response.ts | 31 +++ client/src/generated/model/index.ts | 7 + .../src/generated/model/instrument-detail.ts | 69 +++++ client/src/generated/model/jwt-response.ts | 27 ++ .../model/profile-details-response.ts | 39 +++ .../username-and-password-request-body.ts | 33 +++ 23 files changed, 1738 insertions(+) create mode 100644 client/src/generated/.gitignore create mode 100644 client/src/generated/.npmignore create mode 100644 client/src/generated/.openapi-generator-ignore create mode 100644 client/src/generated/.openapi-generator/FILES create mode 100644 client/src/generated/.openapi-generator/VERSION create mode 100644 client/src/generated/api.ts create mode 100644 client/src/generated/api/basic-login-api.ts create mode 100644 client/src/generated/api/get-instruments-by-criteria-api.ts create mode 100644 client/src/generated/api/get-instruments-by-criteria-paginated-api.ts create mode 100644 client/src/generated/api/profile-api.ts create mode 100644 client/src/generated/base.ts create mode 100644 client/src/generated/common.ts create mode 100644 client/src/generated/configuration.ts create mode 100644 client/src/generated/git_push.sh create mode 100644 client/src/generated/index.ts create mode 100644 client/src/generated/model/get-instrument-by-criteria-page-response.ts create mode 100644 client/src/generated/model/get-instrument-criteria-request-body.ts create mode 100644 client/src/generated/model/get-instruments-by-criteria-response.ts create mode 100644 client/src/generated/model/index.ts create mode 100644 client/src/generated/model/instrument-detail.ts create mode 100644 client/src/generated/model/jwt-response.ts create mode 100644 client/src/generated/model/profile-details-response.ts create mode 100644 client/src/generated/model/username-and-password-request-body.ts diff --git a/client/src/generated/.gitignore b/client/src/generated/.gitignore new file mode 100644 index 00000000..149b5765 --- /dev/null +++ b/client/src/generated/.gitignore @@ -0,0 +1,4 @@ +wwwroot/*.js +node_modules +typings +dist diff --git a/client/src/generated/.npmignore b/client/src/generated/.npmignore new file mode 100644 index 00000000..999d88df --- /dev/null +++ b/client/src/generated/.npmignore @@ -0,0 +1 @@ +# empty npmignore to ensure all required files (e.g., in the dist folder) are published by npm \ No newline at end of file diff --git a/client/src/generated/.openapi-generator-ignore b/client/src/generated/.openapi-generator-ignore new file mode 100644 index 00000000..e69de29b diff --git a/client/src/generated/.openapi-generator/FILES b/client/src/generated/.openapi-generator/FILES new file mode 100644 index 00000000..46decc26 --- /dev/null +++ b/client/src/generated/.openapi-generator/FILES @@ -0,0 +1,20 @@ +.gitignore +.npmignore +api.ts +api/basic-login-api.ts +api/get-instruments-by-criteria-api.ts +api/get-instruments-by-criteria-paginated-api.ts +api/profile-api.ts +base.ts +common.ts +configuration.ts +git_push.sh +index.ts +model/get-instrument-by-criteria-page-response.ts +model/get-instrument-criteria-request-body.ts +model/get-instruments-by-criteria-response.ts +model/index.ts +model/instrument-detail.ts +model/jwt-response.ts +model/profile-details-response.ts +model/username-and-password-request-body.ts diff --git a/client/src/generated/.openapi-generator/VERSION b/client/src/generated/.openapi-generator/VERSION new file mode 100644 index 00000000..09a6d308 --- /dev/null +++ b/client/src/generated/.openapi-generator/VERSION @@ -0,0 +1 @@ +7.8.0 diff --git a/client/src/generated/api.ts b/client/src/generated/api.ts new file mode 100644 index 00000000..301a546d --- /dev/null +++ b/client/src/generated/api.ts @@ -0,0 +1,18 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export * from "./api/basic-login-api"; +export * from "./api/get-instruments-by-criteria-api"; +export * from "./api/get-instruments-by-criteria-paginated-api"; +export * from "./api/profile-api"; diff --git a/client/src/generated/api/basic-login-api.ts b/client/src/generated/api/basic-login-api.ts new file mode 100644 index 00000000..46aca1fe --- /dev/null +++ b/client/src/generated/api/basic-login-api.ts @@ -0,0 +1,203 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.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"; +// @ts-ignore +import type { JwtResponse } from "../model"; +// @ts-ignore +import type { UsernameAndPasswordRequestBody } from "../model"; +/** + * BasicLoginApi - axios parameter creator + * @export + */ +export const BasicLoginApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @summary Basic Login + * @param {UsernameAndPasswordRequestBody} usernameAndPasswordRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + basicLogin: async ( + usernameAndPasswordRequestBody: UsernameAndPasswordRequestBody, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'usernameAndPasswordRequestBody' is not null or undefined + assertParamExists( + "basicLogin", + "usernameAndPasswordRequestBody", + usernameAndPasswordRequestBody, + ); + const localVarPath = `/api/auth/login`; + // 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: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + usernameAndPasswordRequestBody, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * BasicLoginApi - functional programming interface + * @export + */ +export const BasicLoginApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = + BasicLoginApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Basic Login + * @param {UsernameAndPasswordRequestBody} usernameAndPasswordRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async basicLogin( + usernameAndPasswordRequestBody: UsernameAndPasswordRequestBody, + options?: RawAxiosRequestConfig, + ): Promise< + (axios?: AxiosInstance, basePath?: string) => AxiosPromise + > { + const localVarAxiosArgs = await localVarAxiosParamCreator.basicLogin( + usernameAndPasswordRequestBody, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap["BasicLoginApi.basicLogin"]?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * BasicLoginApi - factory interface + * @export + */ +export const BasicLoginApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = BasicLoginApiFp(configuration); + return { + /** + * + * @summary Basic Login + * @param {UsernameAndPasswordRequestBody} usernameAndPasswordRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + basicLogin( + usernameAndPasswordRequestBody: UsernameAndPasswordRequestBody, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .basicLogin(usernameAndPasswordRequestBody, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * BasicLoginApi - object-oriented interface + * @export + * @class BasicLoginApi + * @extends {BaseAPI} + */ +export class BasicLoginApi extends BaseAPI { + /** + * + * @summary Basic Login + * @param {UsernameAndPasswordRequestBody} usernameAndPasswordRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BasicLoginApi + */ + public basicLogin( + usernameAndPasswordRequestBody: UsernameAndPasswordRequestBody, + options?: RawAxiosRequestConfig, + ) { + return BasicLoginApiFp(this.configuration) + .basicLogin(usernameAndPasswordRequestBody, options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/client/src/generated/api/get-instruments-by-criteria-api.ts b/client/src/generated/api/get-instruments-by-criteria-api.ts new file mode 100644 index 00000000..a270e919 --- /dev/null +++ b/client/src/generated/api/get-instruments-by-criteria-api.ts @@ -0,0 +1,209 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.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"; +// @ts-ignore +import type { GetInstrumentCriteriaRequestBody } from "../model"; +// @ts-ignore +import type { GetInstrumentsByCriteriaResponse } from "../model"; +/** + * GetInstrumentsByCriteriaApi - axios parameter creator + * @export + */ +export const GetInstrumentsByCriteriaApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @summary Get Instruments by Criteria + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstrumentsByCriteria: async ( + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'getInstrumentCriteriaRequestBody' is not null or undefined + assertParamExists( + "getInstrumentsByCriteria", + "getInstrumentCriteriaRequestBody", + getInstrumentCriteriaRequestBody, + ); + const localVarPath = `/api/instruments`; + // 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: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + getInstrumentCriteriaRequestBody, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * GetInstrumentsByCriteriaApi - functional programming interface + * @export + */ +export const GetInstrumentsByCriteriaApiFp = function ( + configuration?: Configuration, +) { + const localVarAxiosParamCreator = + GetInstrumentsByCriteriaApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Get Instruments by Criteria + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getInstrumentsByCriteria( + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getInstrumentsByCriteria( + getInstrumentCriteriaRequestBody, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + "GetInstrumentsByCriteriaApi.getInstrumentsByCriteria" + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * GetInstrumentsByCriteriaApi - factory interface + * @export + */ +export const GetInstrumentsByCriteriaApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = GetInstrumentsByCriteriaApiFp(configuration); + return { + /** + * + * @summary Get Instruments by Criteria + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstrumentsByCriteria( + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .getInstrumentsByCriteria(getInstrumentCriteriaRequestBody, options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GetInstrumentsByCriteriaApi - object-oriented interface + * @export + * @class GetInstrumentsByCriteriaApi + * @extends {BaseAPI} + */ +export class GetInstrumentsByCriteriaApi extends BaseAPI { + /** + * + * @summary Get Instruments by Criteria + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GetInstrumentsByCriteriaApi + */ + public getInstrumentsByCriteria( + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options?: RawAxiosRequestConfig, + ) { + return GetInstrumentsByCriteriaApiFp(this.configuration) + .getInstrumentsByCriteria(getInstrumentCriteriaRequestBody, options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/client/src/generated/api/get-instruments-by-criteria-paginated-api.ts b/client/src/generated/api/get-instruments-by-criteria-paginated-api.ts new file mode 100644 index 00000000..8722f90e --- /dev/null +++ b/client/src/generated/api/get-instruments-by-criteria-paginated-api.ts @@ -0,0 +1,257 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.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"; +// @ts-ignore +import type { GetInstrumentByCriteriaPageResponse } from "../model"; +// @ts-ignore +import type { GetInstrumentCriteriaRequestBody } from "../model"; +/** + * GetInstrumentsByCriteriaPaginatedApi - axios parameter creator + * @export + */ +export const GetInstrumentsByCriteriaPaginatedApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @summary Get Instruments by Criteria + * @param {number} pageSize Page Size + * @param {number} pageNumber Page Number (1-based enumeration) + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstrumentsByCriteriaPaginated: async ( + pageSize: number, + pageNumber: number, + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options: RawAxiosRequestConfig = {}, + ): Promise => { + // verify required parameter 'pageSize' is not null or undefined + assertParamExists( + "getInstrumentsByCriteriaPaginated", + "pageSize", + pageSize, + ); + // verify required parameter 'pageNumber' is not null or undefined + assertParamExists( + "getInstrumentsByCriteriaPaginated", + "pageNumber", + pageNumber, + ); + // verify required parameter 'getInstrumentCriteriaRequestBody' is not null or undefined + assertParamExists( + "getInstrumentsByCriteriaPaginated", + "getInstrumentCriteriaRequestBody", + getInstrumentCriteriaRequestBody, + ); + const localVarPath = `/api/instruments/paginated`; + // 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: "POST", + ...baseOptions, + ...options, + }; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + if (pageSize !== undefined) { + localVarQueryParameter["pageSize"] = pageSize; + } + + if (pageNumber !== undefined) { + localVarQueryParameter["pageNumber"] = pageNumber; + } + + localVarHeaderParameter["Content-Type"] = "application/json"; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = + baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = { + ...localVarHeaderParameter, + ...headersFromBaseOptions, + ...options.headers, + }; + localVarRequestOptions.data = serializeDataIfNeeded( + getInstrumentCriteriaRequestBody, + localVarRequestOptions, + configuration, + ); + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + }; +}; + +/** + * GetInstrumentsByCriteriaPaginatedApi - functional programming interface + * @export + */ +export const GetInstrumentsByCriteriaPaginatedApiFp = function ( + configuration?: Configuration, +) { + const localVarAxiosParamCreator = + GetInstrumentsByCriteriaPaginatedApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Get Instruments by Criteria + * @param {number} pageSize Page Size + * @param {number} pageNumber Page Number (1-based enumeration) + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getInstrumentsByCriteriaPaginated( + pageSize: number, + pageNumber: number, + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getInstrumentsByCriteriaPaginated( + pageSize, + pageNumber, + getInstrumentCriteriaRequestBody, + options, + ); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap[ + "GetInstrumentsByCriteriaPaginatedApi.getInstrumentsByCriteriaPaginated" + ]?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * GetInstrumentsByCriteriaPaginatedApi - factory interface + * @export + */ +export const GetInstrumentsByCriteriaPaginatedApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = GetInstrumentsByCriteriaPaginatedApiFp(configuration); + return { + /** + * + * @summary Get Instruments by Criteria + * @param {number} pageSize Page Size + * @param {number} pageNumber Page Number (1-based enumeration) + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getInstrumentsByCriteriaPaginated( + pageSize: number, + pageNumber: number, + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .getInstrumentsByCriteriaPaginated( + pageSize, + pageNumber, + getInstrumentCriteriaRequestBody, + options, + ) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * GetInstrumentsByCriteriaPaginatedApi - object-oriented interface + * @export + * @class GetInstrumentsByCriteriaPaginatedApi + * @extends {BaseAPI} + */ +export class GetInstrumentsByCriteriaPaginatedApi extends BaseAPI { + /** + * + * @summary Get Instruments by Criteria + * @param {number} pageSize Page Size + * @param {number} pageNumber Page Number (1-based enumeration) + * @param {GetInstrumentCriteriaRequestBody} getInstrumentCriteriaRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof GetInstrumentsByCriteriaPaginatedApi + */ + public getInstrumentsByCriteriaPaginated( + pageSize: number, + pageNumber: number, + getInstrumentCriteriaRequestBody: GetInstrumentCriteriaRequestBody, + options?: RawAxiosRequestConfig, + ) { + return GetInstrumentsByCriteriaPaginatedApiFp(this.configuration) + .getInstrumentsByCriteriaPaginated( + pageSize, + pageNumber, + getInstrumentCriteriaRequestBody, + options, + ) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/client/src/generated/api/profile-api.ts b/client/src/generated/api/profile-api.ts new file mode 100644 index 00000000..b1e7e6f3 --- /dev/null +++ b/client/src/generated/api/profile-api.ts @@ -0,0 +1,178 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.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"; +// @ts-ignore +import type { ProfileDetailsResponse } from "../model"; +/** + * ProfileApi - axios parameter creator + * @export + */ +export const ProfileApiAxiosParamCreator = function ( + configuration?: Configuration, +) { + return { + /** + * + * @summary Get Profile Info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfile: async ( + options: RawAxiosRequestConfig = {}, + ): Promise => { + const localVarPath = `/api/profile`; + // 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, + }; + }, + }; +}; + +/** + * ProfileApi - functional programming interface + * @export + */ +export const ProfileApiFp = function (configuration?: Configuration) { + const localVarAxiosParamCreator = ProfileApiAxiosParamCreator(configuration); + return { + /** + * + * @summary Get Profile Info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async getProfile( + options?: RawAxiosRequestConfig, + ): Promise< + ( + axios?: AxiosInstance, + basePath?: string, + ) => AxiosPromise + > { + const localVarAxiosArgs = + await localVarAxiosParamCreator.getProfile(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = + operationServerMap["ProfileApi.getProfile"]?.[ + localVarOperationServerIndex + ]?.url; + return (axios, basePath) => + createRequestFunction( + localVarAxiosArgs, + globalAxios, + BASE_PATH, + configuration, + )(axios, localVarOperationServerBasePath || basePath); + }, + }; +}; + +/** + * ProfileApi - factory interface + * @export + */ +export const ProfileApiFactory = function ( + configuration?: Configuration, + basePath?: string, + axios?: AxiosInstance, +) { + const localVarFp = ProfileApiFp(configuration); + return { + /** + * + * @summary Get Profile Info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + getProfile( + options?: RawAxiosRequestConfig, + ): AxiosPromise { + return localVarFp + .getProfile(options) + .then((request) => request(axios, basePath)); + }, + }; +}; + +/** + * ProfileApi - object-oriented interface + * @export + * @class ProfileApi + * @extends {BaseAPI} + */ +export class ProfileApi extends BaseAPI { + /** + * + * @summary Get Profile Info + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ProfileApi + */ + public getProfile(options?: RawAxiosRequestConfig) { + return ProfileApiFp(this.configuration) + .getProfile(options) + .then((request) => request(this.axios, this.basePath)); + } +} diff --git a/client/src/generated/base.ts b/client/src/generated/base.ts new file mode 100644 index 00000000..f86d714c --- /dev/null +++ b/client/src/generated/base.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.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"; +// Some imports not used depending on template conditions +// @ts-ignore +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from "axios"; +import globalAxios from "axios"; + +export const BASE_PATH = "http://localhost:8080".replace(/\/+$/, ""); + +/** + * + * @export + */ +export const COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; + +/** + * + * @export + * @interface RequestArgs + */ +export interface RequestArgs { + url: string; + options: RawAxiosRequestConfig; +} + +/** + * + * @export + * @class BaseAPI + */ +export class BaseAPI { + protected configuration: Configuration | undefined; + + constructor( + configuration?: Configuration, + protected basePath: string = BASE_PATH, + protected axios: AxiosInstance = globalAxios, + ) { + if (configuration) { + this.configuration = configuration; + this.basePath = configuration.basePath ?? basePath; + } + } +} + +/** + * + * @export + * @class RequiredError + * @extends {Error} + */ +export class RequiredError extends Error { + constructor( + public field: string, + msg?: string, + ) { + super(msg); + this.name = "RequiredError"; + } +} + +interface ServerMap { + [key: string]: { + url: string; + description: string; + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = {}; diff --git a/client/src/generated/common.ts b/client/src/generated/common.ts new file mode 100644 index 00000000..769ecfa9 --- /dev/null +++ b/client/src/generated/common.ts @@ -0,0 +1,202 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.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 { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from "axios"; +import { RequiredError } from "./base"; + +/** + * + * @export + */ +export const DUMMY_BASE_URL = "https://example.com"; + +/** + * + * @throws {RequiredError} + * @export + */ +export const assertParamExists = function ( + functionName: string, + paramName: string, + paramValue: unknown, +) { + if (paramValue === null || paramValue === undefined) { + throw new RequiredError( + paramName, + `Required parameter ${paramName} was null or undefined when calling ${functionName}.`, + ); + } +}; + +/** + * + * @export + */ +export const setApiKeyToObject = async function ( + object: any, + keyParamName: string, + configuration?: Configuration, +) { + if (configuration && configuration.apiKey) { + const localVarApiKeyValue = + typeof configuration.apiKey === "function" + ? await configuration.apiKey(keyParamName) + : await configuration.apiKey; + object[keyParamName] = localVarApiKeyValue; + } +}; + +/** + * + * @export + */ +export const setBasicAuthToObject = function ( + object: any, + configuration?: Configuration, +) { + if (configuration && (configuration.username || configuration.password)) { + object["auth"] = { + username: configuration.username, + password: configuration.password, + }; + } +}; + +/** + * + * @export + */ +export const setBearerAuthToObject = async function ( + object: any, + configuration?: Configuration, +) { + if (configuration && configuration.accessToken) { + const accessToken = + typeof configuration.accessToken === "function" + ? await configuration.accessToken() + : await configuration.accessToken; + object["Authorization"] = "Bearer " + accessToken; + } +}; + +/** + * + * @export + */ +export const setOAuthToObject = async function ( + object: any, + name: string, + scopes: string[], + configuration?: Configuration, +) { + if (configuration && configuration.accessToken) { + const localVarAccessTokenValue = + typeof configuration.accessToken === "function" + ? await configuration.accessToken(name, scopes) + : await configuration.accessToken; + object["Authorization"] = "Bearer " + localVarAccessTokenValue; + } +}; + +function setFlattenedQueryParams( + urlSearchParams: URLSearchParams, + parameter: any, + key: string = "", +): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach((item) => + setFlattenedQueryParams(urlSearchParams, item, key), + ); + } else { + Object.keys(parameter).forEach((currentKey) => + setFlattenedQueryParams( + urlSearchParams, + parameter[currentKey], + `${key}${key !== "" ? "." : ""}${currentKey}`, + ), + ); + } + } else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } else { + urlSearchParams.set(key, parameter); + } + } +} + +/** + * + * @export + */ +export const setSearchParams = function (url: URL, ...objects: any[]) { + const searchParams = new URLSearchParams(url.search); + setFlattenedQueryParams(searchParams, objects); + url.search = searchParams.toString(); +}; + +/** + * + * @export + */ +export const serializeDataIfNeeded = function ( + value: any, + requestOptions: any, + configuration?: Configuration, +) { + const nonString = typeof value !== "string"; + const needsSerialization = + nonString && configuration && configuration.isJsonMime + ? configuration.isJsonMime(requestOptions.headers["Content-Type"]) + : nonString; + return needsSerialization + ? JSON.stringify(value !== undefined ? value : {}) + : value || ""; +}; + +/** + * + * @export + */ +export const toPathString = function (url: URL) { + return url.pathname + url.search + url.hash; +}; + +/** + * + * @export + */ +export const createRequestFunction = function ( + axiosArgs: RequestArgs, + globalAxios: AxiosInstance, + BASE_PATH: string, + configuration?: Configuration, +) { + return >( + axios: AxiosInstance = globalAxios, + basePath: string = BASE_PATH, + ) => { + const axiosRequestArgs = { + ...axiosArgs.options, + url: + (axios.defaults.baseURL ? "" : (configuration?.basePath ?? basePath)) + + axiosArgs.url, + }; + return axios.request(axiosRequestArgs); + }; +}; diff --git a/client/src/generated/configuration.ts b/client/src/generated/configuration.ts new file mode 100644 index 00000000..e766e7cb --- /dev/null +++ b/client/src/generated/configuration.ts @@ -0,0 +1,132 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 ConfigurationParameters { + apiKey?: + | string + | Promise + | ((name: string) => string) + | ((name: string) => Promise); + username?: string; + password?: string; + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + basePath?: string; + serverIndex?: number; + baseOptions?: any; + formDataCtor?: new () => any; +} + +export class Configuration { + /** + * parameter for apiKey security + * @param name security name + * @memberof Configuration + */ + apiKey?: + | string + | Promise + | ((name: string) => string) + | ((name: string) => Promise); + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + username?: string; + /** + * parameter for basic security + * + * @type {string} + * @memberof Configuration + */ + password?: string; + /** + * parameter for oauth2 security + * @param name security name + * @param scopes oauth2 scope + * @memberof Configuration + */ + accessToken?: + | string + | Promise + | ((name?: string, scopes?: string[]) => string) + | ((name?: string, scopes?: string[]) => Promise); + /** + * override base path + * + * @type {string} + * @memberof Configuration + */ + basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; + /** + * base options for axios calls + * + * @type {any} + * @memberof Configuration + */ + baseOptions?: any; + /** + * The FormData constructor that will be used to create multipart form data + * requests. You can inject this here so that execution environments that + * do not support the FormData class can still run the generated client. + * + * @type {new () => FormData} + */ + formDataCtor?: new () => any; + + constructor(param: ConfigurationParameters = {}) { + this.apiKey = param.apiKey; + this.username = param.username; + this.password = param.password; + this.accessToken = param.accessToken; + this.basePath = param.basePath; + this.serverIndex = param.serverIndex; + this.baseOptions = param.baseOptions; + this.formDataCtor = param.formDataCtor; + } + + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + public isJsonMime(mime: string): boolean { + const jsonMime: RegExp = new RegExp( + "^(application/json|[^;/ \t]+/[^;/ \t]+[+]json)[ \t]*(;.*)?$", + "i", + ); + return ( + mime !== null && + (jsonMime.test(mime) || + mime.toLowerCase() === "application/json-patch+json") + ); + } +} diff --git a/client/src/generated/git_push.sh b/client/src/generated/git_push.sh new file mode 100644 index 00000000..f53a75d4 --- /dev/null +++ b/client/src/generated/git_push.sh @@ -0,0 +1,57 @@ +#!/bin/sh +# ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/ +# +# Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com" + +git_user_id=$1 +git_repo_id=$2 +release_note=$3 +git_host=$4 + +if [ "$git_host" = "" ]; then + git_host="github.com" + echo "[INFO] No command line input provided. Set \$git_host to $git_host" +fi + +if [ "$git_user_id" = "" ]; then + git_user_id="GIT_USER_ID" + echo "[INFO] No command line input provided. Set \$git_user_id to $git_user_id" +fi + +if [ "$git_repo_id" = "" ]; then + git_repo_id="GIT_REPO_ID" + echo "[INFO] No command line input provided. Set \$git_repo_id to $git_repo_id" +fi + +if [ "$release_note" = "" ]; then + release_note="Minor update" + echo "[INFO] No command line input provided. Set \$release_note to $release_note" +fi + +# Initialize the local directory as a Git repository +git init + +# Adds the files in the local repository and stages them for commit. +git add . + +# Commits the tracked changes and prepares them to be pushed to a remote repository. +git commit -m "$release_note" + +# Sets the new remote +git_remote=$(git remote) +if [ "$git_remote" = "" ]; then # git remote not defined + + if [ "$GIT_TOKEN" = "" ]; then + echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment." + git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git + else + git remote add origin https://${git_user_id}:"${GIT_TOKEN}"@${git_host}/${git_user_id}/${git_repo_id}.git + fi + +fi + +git pull origin master + +# Pushes (Forces) the changes in the local repository up to the remote repository +echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git" +git push origin master 2>&1 | grep -v 'To https' diff --git a/client/src/generated/index.ts b/client/src/generated/index.ts new file mode 100644 index 00000000..939c2716 --- /dev/null +++ b/client/src/generated/index.ts @@ -0,0 +1,17 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +export * from "./api"; +export * from "./configuration"; +export * from "./model"; diff --git a/client/src/generated/model/get-instrument-by-criteria-page-response.ts b/client/src/generated/model/get-instrument-by-criteria-page-response.ts new file mode 100644 index 00000000..11bbd68e --- /dev/null +++ b/client/src/generated/model/get-instrument-by-criteria-page-response.ts @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 { InstrumentDetail } from "./instrument-detail"; + +/** + * + * @export + * @interface GetInstrumentByCriteriaPageResponse + */ +export interface GetInstrumentByCriteriaPageResponse { + /** + * + * @type {Array} + * @memberof GetInstrumentByCriteriaPageResponse + */ + content: Array; + /** + * The number of items in the content. + * @type {number} + * @memberof GetInstrumentByCriteriaPageResponse + */ + contentSize: number; + /** + * The number of items per page. + * @type {number} + * @memberof GetInstrumentByCriteriaPageResponse + */ + pageSize: number; + /** + * The current page number (0-based index). + * @type {number} + * @memberof GetInstrumentByCriteriaPageResponse + */ + pageNumber: number; + /** + * The total number of elements across all pages. + * @type {number} + * @memberof GetInstrumentByCriteriaPageResponse + */ + totalElements: number; + /** + * The total number of pages. + * @type {number} + * @memberof GetInstrumentByCriteriaPageResponse + */ + totalPages: number; +} diff --git a/client/src/generated/model/get-instrument-criteria-request-body.ts b/client/src/generated/model/get-instrument-criteria-request-body.ts new file mode 100644 index 00000000..da98a344 --- /dev/null +++ b/client/src/generated/model/get-instrument-criteria-request-body.ts @@ -0,0 +1,81 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 GetInstrumentCriteriaRequestBody + */ +export interface GetInstrumentCriteriaRequestBody { + /** + * + * @type {string} + * @memberof GetInstrumentCriteriaRequestBody + */ + instrumentName?: string; + /** + * + * @type {Array} + * @memberof GetInstrumentCriteriaRequestBody + */ + instrumentTypes?: Array; + /** + * + * @type {Array} + * @memberof GetInstrumentCriteriaRequestBody + */ + manufacturerNames?: Array; + /** + * + * @type {string} + * @memberof GetInstrumentCriteriaRequestBody + */ + manufactureDateFrom?: string; + /** + * + * @type {string} + * @memberof GetInstrumentCriteriaRequestBody + */ + manufactureDateTo?: string; + /** + * + * @type {string} + * @memberof GetInstrumentCriteriaRequestBody + */ + releaseDateFrom?: string; + /** + * + * @type {string} + * @memberof GetInstrumentCriteriaRequestBody + */ + releaseDateTo?: string; + /** + * + * @type {Array} + * @memberof GetInstrumentCriteriaRequestBody + */ + countries?: Array; + /** + * + * @type {Array} + * @memberof GetInstrumentCriteriaRequestBody + */ + materials?: Array; + /** + * + * @type {Array} + * @memberof GetInstrumentCriteriaRequestBody + */ + instrumentIds?: Array; +} diff --git a/client/src/generated/model/get-instruments-by-criteria-response.ts b/client/src/generated/model/get-instruments-by-criteria-response.ts new file mode 100644 index 00000000..1ce553bd --- /dev/null +++ b/client/src/generated/model/get-instruments-by-criteria-response.ts @@ -0,0 +1,31 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 { InstrumentDetail } from "./instrument-detail"; + +/** + * + * @export + * @interface GetInstrumentsByCriteriaResponse + */ +export interface GetInstrumentsByCriteriaResponse { + /** + * + * @type {Array} + * @memberof GetInstrumentsByCriteriaResponse + */ + content: Array; +} diff --git a/client/src/generated/model/index.ts b/client/src/generated/model/index.ts new file mode 100644 index 00000000..c27b1cf7 --- /dev/null +++ b/client/src/generated/model/index.ts @@ -0,0 +1,7 @@ +export * from "./get-instrument-by-criteria-page-response"; +export * from "./get-instrument-criteria-request-body"; +export * from "./get-instruments-by-criteria-response"; +export * from "./instrument-detail"; +export * from "./jwt-response"; +export * from "./profile-details-response"; +export * from "./username-and-password-request-body"; diff --git a/client/src/generated/model/instrument-detail.ts b/client/src/generated/model/instrument-detail.ts new file mode 100644 index 00000000..0f28294c --- /dev/null +++ b/client/src/generated/model/instrument-detail.ts @@ -0,0 +1,69 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 InstrumentDetail + */ +export interface InstrumentDetail { + /** + * + * @type {number} + * @memberof InstrumentDetail + */ + id: number; + /** + * + * @type {string} + * @memberof InstrumentDetail + */ + name: string; + /** + * + * @type {string} + * @memberof InstrumentDetail + */ + type: string; + /** + * + * @type {string} + * @memberof InstrumentDetail + */ + manufacturer: string; + /** + * + * @type {string} + * @memberof InstrumentDetail + */ + manufacturerDate: string; + /** + * + * @type {string} + * @memberof InstrumentDetail + */ + releaseDate: string; + /** + * + * @type {string} + * @memberof InstrumentDetail + */ + country: string; + /** + * + * @type {Array} + * @memberof InstrumentDetail + */ + basicMaterials: Array; +} diff --git a/client/src/generated/model/jwt-response.ts b/client/src/generated/model/jwt-response.ts new file mode 100644 index 00000000..27f4f9f4 --- /dev/null +++ b/client/src/generated/model/jwt-response.ts @@ -0,0 +1,27 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 JwtResponse + */ +export interface JwtResponse { + /** + * + * @type {string} + * @memberof JwtResponse + */ + jwt: string; +} diff --git a/client/src/generated/model/profile-details-response.ts b/client/src/generated/model/profile-details-response.ts new file mode 100644 index 00000000..8d4a572a --- /dev/null +++ b/client/src/generated/model/profile-details-response.ts @@ -0,0 +1,39 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 ProfileDetailsResponse + */ +export interface ProfileDetailsResponse { + /** + * + * @type {string} + * @memberof ProfileDetailsResponse + */ + username: string; + /** + * + * @type {string} + * @memberof ProfileDetailsResponse + */ + role: string; + /** + * + * @type {string} + * @memberof ProfileDetailsResponse + */ + fullName: string; +} diff --git a/client/src/generated/model/username-and-password-request-body.ts b/client/src/generated/model/username-and-password-request-body.ts new file mode 100644 index 00000000..f8b3e200 --- /dev/null +++ b/client/src/generated/model/username-and-password-request-body.ts @@ -0,0 +1,33 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Server Error + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 1.0.0 + * + * + * 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 UsernameAndPasswordRequestBody + */ +export interface UsernameAndPasswordRequestBody { + /** + * + * @type {string} + * @memberof UsernameAndPasswordRequestBody + */ + username: string; + /** + * + * @type {string} + * @memberof UsernameAndPasswordRequestBody + */ + password: string; +}