{"version":3,"file":"StockPricesApi-CmRb5HrE.js","sources":["../../../app/javascript/entrypoints/output/apis/StockPricesApi.ts"],"sourcesContent":["/* tslint:disable */\n/* eslint-disable */\n/**\n * imarket\n * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)\n *\n * The version of the OpenAPI document: 1.0\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport * as runtime from '../runtime';\nimport type {\n GetStockPrices200Response,\n} from '../models/index';\nimport {\n GetStockPrices200ResponseFromJSON,\n GetStockPrices200ResponseToJSON,\n} from '../models/index';\n\nexport interface GetStockPricesRequest {\n code: string;\n indice: GetStockPricesIndiceEnum;\n}\n\n/**\n * StockPricesApi - interface\n * \n * @export\n * @interface StockPricesApiInterface\n */\nexport interface StockPricesApiInterface {\n /**\n * \n * @summary Your GET endpoint\n * @param {string} code \n * @param {'per' | 'pbr' | 'fcf-ratio'} indice \n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n * @memberof StockPricesApiInterface\n */\n getStockPricesRaw(requestParameters: GetStockPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>;\n\n /**\n * Your GET endpoint\n */\n getStockPrices(requestParameters: GetStockPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise;\n\n}\n\n/**\n * \n */\nexport class StockPricesApi extends runtime.BaseAPI implements StockPricesApiInterface {\n\n /**\n * Your GET endpoint\n */\n async getStockPricesRaw(requestParameters: GetStockPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {\n if (requestParameters.code === null || requestParameters.code === undefined) {\n throw new runtime.RequiredError('code','Required parameter requestParameters.code was null or undefined when calling getStockPrices.');\n }\n\n if (requestParameters.indice === null || requestParameters.indice === undefined) {\n throw new runtime.RequiredError('indice','Required parameter requestParameters.indice was null or undefined when calling getStockPrices.');\n }\n\n const queryParameters: any = {};\n\n const headerParameters: runtime.HTTPHeaders = {};\n\n const response = await this.request({\n path: `/stock_prices/{code}/{indice}.json`.replace(`{${\"code\"}}`, encodeURIComponent(String(requestParameters.code))).replace(`{${\"indice\"}}`, encodeURIComponent(String(requestParameters.indice))),\n method: 'GET',\n headers: headerParameters,\n query: queryParameters,\n }, initOverrides);\n\n return new runtime.JSONApiResponse(response, (jsonValue) => GetStockPrices200ResponseFromJSON(jsonValue));\n }\n\n /**\n * Your GET endpoint\n */\n async getStockPrices(requestParameters: GetStockPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {\n const response = await this.getStockPricesRaw(requestParameters, initOverrides);\n return await response.value();\n }\n\n}\n\n/**\n * @export\n */\nexport const GetStockPricesIndiceEnum = {\n Per: 'per',\n Pbr: 'pbr',\n FcfRatio: 'fcf-ratio'\n} as const;\nexport type GetStockPricesIndiceEnum = typeof GetStockPricesIndiceEnum[keyof typeof GetStockPricesIndiceEnum];\n"],"names":["StockPricesApi","runtime.BaseAPI","requestParameters","initOverrides","runtime.RequiredError","queryParameters","headerParameters","response","runtime.JSONApiResponse","jsonValue","GetStockPrices200ResponseFromJSON"],"mappings":"sJAyDa,MAAAA,UAAuBC,CAAmD,CAKnF,MAAM,kBAAkBC,EAA0CC,EAAqH,CACnL,GAAID,EAAkB,OAAS,MAAQA,EAAkB,OAAS,OAC9D,MAAM,IAAIE,EAAsB,OAAO,8FAA8F,EAGzI,GAAIF,EAAkB,SAAW,MAAQA,EAAkB,SAAW,OAClE,MAAM,IAAIE,EAAsB,SAAS,gGAAgG,EAG7I,MAAMC,EAAuB,CAAA,EAEvBC,EAAwC,CAAA,EAExCC,EAAW,MAAM,KAAK,QAAQ,CAChC,KAAM,qCAAqC,QAAQ,SAAe,mBAAmB,OAAOL,EAAkB,IAAI,CAAC,CAAC,EAAE,QAAQ,WAAiB,mBAAmB,OAAOA,EAAkB,MAAM,CAAC,CAAC,EACnM,OAAQ,MACR,QAASI,EACT,MAAOD,GACRF,CAAa,EAET,OAAA,IAAIK,EAAwBD,EAAWE,GAAcC,EAAkCD,CAAS,CAAC,CAC5G,CAKA,MAAM,eAAeP,EAA0CC,EAAgG,CAEpJ,OAAA,MADU,MAAM,KAAK,kBAAkBD,EAAmBC,CAAa,GACxD,OAC1B,CAEJ"}