/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * 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 * as runtime from '../runtime'; import type { FrontendComponentResourceArrayResponse, SearchAllFrontendComponentsRequest, } from '../models/index'; import { FrontendComponentResourceArrayResponseFromJSON, FrontendComponentResourceArrayResponseToJSON, SearchAllFrontendComponentsRequestFromJSON, SearchAllFrontendComponentsRequestToJSON, } from '../models/index'; export interface GetAllFrontendComponentRequest { searchAllFrontendComponentsRequest?: SearchAllFrontendComponentsRequest; } /** * */ export class FrontendComponentApi extends runtime.BaseAPI { /** * Auto-generated: getAllFrontendComponent */ async getAllFrontendComponentRaw(requestParameters: GetAllFrontendComponentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; headerParameters['Content-Type'] = 'application/json'; let urlPath = `/admin-api/frontend-component/all`; const response = await this.request({ path: urlPath, method: 'POST', headers: headerParameters, query: queryParameters, body: SearchAllFrontendComponentsRequestToJSON(requestParameters['searchAllFrontendComponentsRequest']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => FrontendComponentResourceArrayResponseFromJSON(jsonValue)); } /** * Auto-generated: getAllFrontendComponent */ async getAllFrontendComponent(requestParameters: GetAllFrontendComponentRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.getAllFrontendComponentRaw(requestParameters, initOverrides); return await response.value(); } }