/* tslint:disable */
/* eslint-disable */
/**
 * Synapse REST API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * 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 { ProjectFilesStatisticsResponseFromJSON, } from '../models/index';
/**
 *
 */
export class StatisticsServicesApi extends runtime.BaseAPI {
    /**
     */
    async postRepoV1StatisticsRaw(requestParameters, initOverrides) {
        if (requestParameters['body'] == null) {
            throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling postRepoV1Statistics().');
        }
        const queryParameters = {};
        const headerParameters = {};
        headerParameters['Content-Type'] = 'application/json';
        if (this.configuration && this.configuration.accessToken) {
            const token = this.configuration.accessToken;
            const tokenString = await token("bearerAuth", []);
            if (tokenString) {
                headerParameters["Authorization"] = `Bearer ${tokenString}`;
            }
        }
        let urlPath = `/repo/v1/statistics`;
        const response = await this.request({
            path: urlPath,
            method: 'POST',
            headers: headerParameters,
            query: queryParameters,
            body: requestParameters['body'],
        }, initOverrides);
        return new runtime.JSONApiResponse(response, (jsonValue) => ProjectFilesStatisticsResponseFromJSON(jsonValue));
    }
    /**
     */
    async postRepoV1Statistics(requestParameters, initOverrides) {
        const response = await this.postRepoV1StatisticsRaw(requestParameters, initOverrides);
        return await response.value();
    }
}
//# sourceMappingURL=StatisticsServicesApi.js.map