UNPKG

@geosanja/geosanja-frontend-api

Version:

swagger client for @geosanja/geosanja-frontend-api

1,095 lines (1,094 loc) 234 kB
/** * GeoSanja API * API para Aplicação GeoSanja * * OpenAPI spec version: 1.2.8 * Contact: claudio.bogossian@gmail.com * * NOTE: This class is auto generated by the swagger code generator program. * https://github.com/swagger-api/swagger-codegen.git * Do not edit the class manually. */ /* tslint:disable:no-unused-variable member-ordering */ import { Inject, Injectable, Optional } from '@angular/core'; import { HttpHeaders, HttpParams } from '@angular/common/http'; import { CustomHttpUrlEncodingCodec } from '../encoder'; import { BASE_PATH } from '../variables'; import { Configuration } from '../configuration'; import * as i0 from "@angular/core"; import * as i1 from "@angular/common/http"; import * as i2 from "../configuration"; export class DefaultService { httpClient; basePath = '/'; defaultHeaders = new HttpHeaders(); configuration = new Configuration(); constructor(httpClient, basePath, configuration) { this.httpClient = httpClient; if (basePath) { this.basePath = basePath; } if (configuration) { this.configuration = configuration; this.basePath = basePath || configuration.basePath || this.basePath; } } /** * @param consumes string[] mime-types * @return true: consumes contains 'multipart/form-data', false: otherwise */ canConsumeForm(consumes) { const form = 'multipart/form-data'; for (const consume of consumes) { if (form === consume) { return true; } } return false; } autenticar(token, observe = 'body', reportProgress = false) { if (token === null || token === undefined) { throw new Error('Required parameter token was null or undefined when calling autenticar.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (token !== undefined && token !== null) { queryParameters = queryParameters.set('token', token); } let headers = this.defaultHeaders; // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/autenticar`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } checkCamadaNameStatus(name, observe = 'body', reportProgress = false) { if (name === null || name === undefined) { throw new Error('Required parameter name was null or undefined when calling checkCamadaNameStatus.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (name !== undefined && name !== null) { queryParameters = queryParameters.set('name', name); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/camada/checknameinfo`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } deleteCamada(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling deleteCamada.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('delete', `${this.basePath}/admin/camada`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } deleteCamada_1(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling deleteCamada_1.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('delete', `${this.basePath}/admin/grupocamada`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } deletePerfil(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling deletePerfil.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('delete', `${this.basePath}/admin/perfil`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } deleteUsuario(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling deleteUsuario.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('delete', `${this.basePath}/admin/usuario`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } downloadCamada(layerId, format, observe = 'body', reportProgress = false) { if (layerId === null || layerId === undefined) { throw new Error('Required parameter layerId was null or undefined when calling downloadCamada.'); } if (format === null || format === undefined) { throw new Error('Required parameter format was null or undefined when calling downloadCamada.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (layerId !== undefined && layerId !== null) { queryParameters = queryParameters.set('layerId', layerId); } if (format !== undefined && format !== null) { queryParameters = queryParameters.set('format', format); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/octet-stream' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/download/camada`, { params: queryParameters, responseType: "blob", withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } editAttributes(body, observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/edit/attributes`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } executeEditionOperations(body, observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/edit/execute/operations`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } exportPDFForm(pdfHeader, pdfFooter, pdfLegends, pdfMap, pdfFormat, observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/octet-stream' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'multipart/form-data' ]; const canConsumeForm = this.canConsumeForm(consumes); let formParams; let useForm = false; let convertFormParamsToString = false; // use FormData to transmit files using content-type "multipart/form-data" // see https://stackoverflow.com/questions/4007969/application-x-www-form-urlencoded-or-multipart-form-data useForm = canConsumeForm; if (useForm) { formParams = new FormData(); } else { formParams = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); } if (pdfHeader !== undefined) { formParams = formParams.append('pdfHeader', pdfHeader) || formParams; } if (pdfFooter !== undefined) { formParams = formParams.append('pdfFooter', pdfFooter) || formParams; } if (pdfLegends !== undefined) { formParams = formParams.append('pdfLegends', pdfLegends) || formParams; } if (pdfMap !== undefined) { formParams = formParams.append('pdfMap', pdfMap) || formParams; } if (pdfFormat !== undefined) { formParams = formParams.append('pdfFormat', pdfFormat) || formParams; } return this.httpClient.request('post', `${this.basePath}/export/pdf`, { body: convertFormParamsToString ? formParams.toString() : formParams, responseType: "blob", withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getAdminConfig(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/config`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getCamadas(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/camadas`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getCamadasAdmin(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/camadas`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getConfig(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/config`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getESJCUsuarios(cpf, nome, observe = 'body', reportProgress = false) { let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (cpf !== undefined && cpf !== null) { queryParameters = queryParameters.set('cpf', cpf); } if (nome !== undefined && nome !== null) { queryParameters = queryParameters.set('nome', nome); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/esjc/usuarios`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getFeatureInfo(srs, version, bbox, height, width, layers, queryLayers, infoFormat, x, y, observe = 'body', reportProgress = false) { if (srs === null || srs === undefined) { throw new Error('Required parameter srs was null or undefined when calling getFeatureInfo.'); } if (version === null || version === undefined) { throw new Error('Required parameter version was null or undefined when calling getFeatureInfo.'); } if (bbox === null || bbox === undefined) { throw new Error('Required parameter bbox was null or undefined when calling getFeatureInfo.'); } if (height === null || height === undefined) { throw new Error('Required parameter height was null or undefined when calling getFeatureInfo.'); } if (width === null || width === undefined) { throw new Error('Required parameter width was null or undefined when calling getFeatureInfo.'); } if (layers === null || layers === undefined) { throw new Error('Required parameter layers was null or undefined when calling getFeatureInfo.'); } if (queryLayers === null || queryLayers === undefined) { throw new Error('Required parameter queryLayers was null or undefined when calling getFeatureInfo.'); } if (infoFormat === null || infoFormat === undefined) { throw new Error('Required parameter infoFormat was null or undefined when calling getFeatureInfo.'); } if (x === null || x === undefined) { throw new Error('Required parameter x was null or undefined when calling getFeatureInfo.'); } if (y === null || y === undefined) { throw new Error('Required parameter y was null or undefined when calling getFeatureInfo.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (srs !== undefined && srs !== null) { queryParameters = queryParameters.set('srs', srs); } if (version !== undefined && version !== null) { queryParameters = queryParameters.set('version', version); } if (bbox !== undefined && bbox !== null) { queryParameters = queryParameters.set('bbox', bbox); } if (height !== undefined && height !== null) { queryParameters = queryParameters.set('height', height); } if (width !== undefined && width !== null) { queryParameters = queryParameters.set('width', width); } if (layers !== undefined && layers !== null) { queryParameters = queryParameters.set('layers', layers); } if (queryLayers !== undefined && queryLayers !== null) { queryParameters = queryParameters.set('query_layers', queryLayers); } if (infoFormat !== undefined && infoFormat !== null) { queryParameters = queryParameters.set('info_format', infoFormat); } if (x !== undefined && x !== null) { queryParameters = queryParameters.set('x', x); } if (y !== undefined && y !== null) { queryParameters = queryParameters.set('y', y); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/featureinfo`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getFuncionalidadesAdmin(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/funcionalidades`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getIcon(filename, observe = 'body', reportProgress = false) { if (filename === null || filename === undefined) { throw new Error('Required parameter filename was null or undefined when calling getIcon.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (filename !== undefined && filename !== null) { queryParameters = queryParameters.set('filename', filename); } let headers = this.defaultHeaders; // to determine the Accept header let httpHeaderAccepts = [ 'image/svg+xml' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/icon`, { params: queryParameters, responseType: "blob", withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getLayerFeature(id, layerId, observe = 'body', reportProgress = false) { if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling getLayerFeature.'); } if (layerId === null || layerId === undefined) { throw new Error('Required parameter layerId was null or undefined when calling getLayerFeature.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (id !== undefined && id !== null) { queryParameters = queryParameters.set('id', id); } if (layerId !== undefined && layerId !== null) { queryParameters = queryParameters.set('layerId', layerId); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/layer/feature`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getPerfis(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/perfis`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getPropriedadesCamada(id, observe = 'body', reportProgress = false) { if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling getPropriedadesCamada.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (id !== undefined && id !== null) { queryParameters = queryParameters.set('id', id); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/camada/propriedades`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getPropriedadesCamadaAdmin(id, observe = 'body', reportProgress = false) { if (id === null || id === undefined) { throw new Error('Required parameter id was null or undefined when calling getPropriedadesCamadaAdmin.'); } let queryParameters = new HttpParams({ encoder: new CustomHttpUrlEncodingCodec() }); if (id !== undefined && id !== null) { queryParameters = queryParameters.set('id', id); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/camada/propriedades`, { params: queryParameters, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } getUsuarios(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/admin/usuarios`, { withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } localizarUnidadeGeo(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling localizarUnidadeGeo.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/localizar`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } proxy(observe = 'body', reportProgress = false) { let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/octet-stream' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = []; return this.httpClient.request('get', `${this.basePath}/proxy`, { responseType: "blob", withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } saveUploadCamadaFile(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling saveUploadCamadaFile.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/admin/camada/uploadsave`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } setCamada(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling setCamada.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/admin/camada`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } setGrupoCamada(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling setGrupoCamada.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/admin/grupocamada`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } setPerfil(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling setPerfil.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/admin/perfil`, { body: body, withCredentials: this.configuration.withCredentials, headers: headers, observe: observe, reportProgress: reportProgress }); } setUsuario(body, observe = 'body', reportProgress = false) { if (body === null || body === undefined) { throw new Error('Required parameter body was null or undefined when calling setUsuario.'); } let headers = this.defaultHeaders; // authentication (BearerAuth) required if (this.configuration.accessToken) { const accessToken = typeof this.configuration.accessToken === 'function' ? this.configuration.accessToken() : this.configuration.accessToken; headers = headers.set('Authorization', 'Bearer ' + accessToken); } // to determine the Accept header let httpHeaderAccepts = [ 'application/json' ]; const httpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts); if (httpHeaderAcceptSelected != undefined) { headers = headers.set('Accept', httpHeaderAcceptSelected); } // to determine the Content-Type header const consumes = [ 'application/json' ]; const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes); if (httpContentTypeSelected != undefined) { headers = headers.set('Content-Type', httpContentTypeSelected); } return this.httpClient.request('post', `${this.basePath}/admin/usuario`, { body: body,