feat: profit chart in statistics

This commit is contained in:
2024-11-15 15:19:14 +04:00
parent 90530f0530
commit 608a063369
22 changed files with 515 additions and 2 deletions

View File

@@ -0,0 +1,31 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { GetProfitDataRequest } from '../models/GetProfitDataRequest';
import type { GetProfitDataResponse } from '../models/GetProfitDataResponse';
import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';
export class StatisticsService {
/**
* Get Profit Data
* @returns GetProfitDataResponse Successful Response
* @throws ApiError
*/
public static getProfitData({
requestBody,
}: {
requestBody: GetProfitDataRequest,
}): CancelablePromise<GetProfitDataResponse> {
return __request(OpenAPI, {
method: 'POST',
url: '/statistics/get-profit-data',
body: requestBody,
mediaType: 'application/json',
errors: {
422: `Validation Error`,
},
});
}
}