feat: profit table and division of charts in statistics
This commit is contained in:
		@@ -2,25 +2,47 @@
 | 
			
		||||
/* istanbul ignore file */
 | 
			
		||||
/* tslint:disable */
 | 
			
		||||
/* eslint-disable */
 | 
			
		||||
import type { GetProfitDataRequest } from '../models/GetProfitDataRequest';
 | 
			
		||||
import type { GetProfitDataResponse } from '../models/GetProfitDataResponse';
 | 
			
		||||
import type { GetProfitChartDataRequest } from '../models/GetProfitChartDataRequest';
 | 
			
		||||
import type { GetProfitChartDataResponse } from '../models/GetProfitChartDataResponse';
 | 
			
		||||
import type { GetProfitTableDataRequest } from '../models/GetProfitTableDataRequest';
 | 
			
		||||
import type { GetProfitTableDataResponse } from '../models/GetProfitTableDataResponse';
 | 
			
		||||
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
 | 
			
		||||
     * Get Profit Chart Data
 | 
			
		||||
     * @returns GetProfitChartDataResponse Successful Response
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    public static getProfitData({
 | 
			
		||||
    public static getProfitChartData({
 | 
			
		||||
        requestBody,
 | 
			
		||||
    }: {
 | 
			
		||||
        requestBody: GetProfitDataRequest,
 | 
			
		||||
    }): CancelablePromise<GetProfitDataResponse> {
 | 
			
		||||
        requestBody: GetProfitChartDataRequest,
 | 
			
		||||
    }): CancelablePromise<GetProfitChartDataResponse> {
 | 
			
		||||
        return __request(OpenAPI, {
 | 
			
		||||
            method: 'POST',
 | 
			
		||||
            url: '/statistics/get-profit-data',
 | 
			
		||||
            url: '/statistics/get-profit-chart-data',
 | 
			
		||||
            body: requestBody,
 | 
			
		||||
            mediaType: 'application/json',
 | 
			
		||||
            errors: {
 | 
			
		||||
                422: `Validation Error`,
 | 
			
		||||
            },
 | 
			
		||||
        });
 | 
			
		||||
    }
 | 
			
		||||
    /**
 | 
			
		||||
     * Get Profit Table Data
 | 
			
		||||
     * @returns GetProfitTableDataResponse Successful Response
 | 
			
		||||
     * @throws ApiError
 | 
			
		||||
     */
 | 
			
		||||
    public static getProfitTableData({
 | 
			
		||||
        requestBody,
 | 
			
		||||
    }: {
 | 
			
		||||
        requestBody: GetProfitTableDataRequest,
 | 
			
		||||
    }): CancelablePromise<GetProfitTableDataResponse> {
 | 
			
		||||
        return __request(OpenAPI, {
 | 
			
		||||
            method: 'POST',
 | 
			
		||||
            url: '/statistics/get-profit-table-data',
 | 
			
		||||
            body: requestBody,
 | 
			
		||||
            mediaType: 'application/json',
 | 
			
		||||
            errors: {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user