feat: profit table and division of charts in statistics

This commit is contained in:
2024-11-17 01:23:04 +04:00
parent 608a063369
commit 3b8c75d3d3
29 changed files with 571 additions and 305 deletions

View File

@@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type GetProfitDataRequest = {
export type GetProfitChartDataRequest = {
dateRange: any[];
clientId: number;
baseMarketplaceKey: string;

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProfitChartDataItem } from './ProfitChartDataItem';
export type GetProfitChartDataResponse = {
data: Array<ProfitChartDataItem>;
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProfitTableGroupBy } from './ProfitTableGroupBy';
export type GetProfitTableDataRequest = {
dateRange: any[];
groupTableBy: ProfitTableGroupBy;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProfitTableDataItem } from './ProfitTableDataItem';
export type GetProfitTableDataResponse = {
data: Array<ProfitTableDataItem>;
};

View File

@@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ProfitDataItem = {
export type ProfitChartDataItem = {
date: string;
revenue: number;
profit: number;

View File

@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ProfitTableDataItem = {
groupedValue: (string | number);
revenue: number;
profit: number;
dealsCount: number;
};

View File

@@ -2,8 +2,4 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProfitDataItem } from './ProfitDataItem';
export type GetProfitDataResponse = {
data: Array<ProfitDataItem>;
};
export type ProfitTableGroupBy = 0 | 1 | 2 | 3 | 4;