feat: merging complete
This commit is contained in:
		@@ -4,14 +4,13 @@
 | 
				
			|||||||
/* eslint-disable */
 | 
					/* eslint-disable */
 | 
				
			||||||
import type { ClientSchema } from './ClientSchema';
 | 
					import type { ClientSchema } from './ClientSchema';
 | 
				
			||||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
 | 
					import type { DealBillRequestSchema } from './DealBillRequestSchema';
 | 
				
			||||||
 | 
					import type { DealGroupSchema } from './DealGroupSchema';
 | 
				
			||||||
import type { DealProductSchema } from './DealProductSchema';
 | 
					import type { DealProductSchema } from './DealProductSchema';
 | 
				
			||||||
import type { DealServiceSchema } from './DealServiceSchema';
 | 
					import type { DealServiceSchema } from './DealServiceSchema';
 | 
				
			||||||
import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
 | 
					import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
 | 
				
			||||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
 | 
					import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
 | 
				
			||||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
 | 
					import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
 | 
				
			||||||
import type { UserSchema } from './UserSchema';
 | 
					import type { UserSchema } from './UserSchema';
 | 
				
			||||||
import type { DealGroupSchema } from './DealGroupSchema';
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
export type DealSchema = {
 | 
					export type DealSchema = {
 | 
				
			||||||
    id: number;
 | 
					    id: number;
 | 
				
			||||||
    name: string;
 | 
					    name: string;
 | 
				
			||||||
@@ -31,7 +30,6 @@ export type DealSchema = {
 | 
				
			|||||||
    category?: (ServicePriceCategorySchema | null);
 | 
					    category?: (ServicePriceCategorySchema | null);
 | 
				
			||||||
    group?: (DealGroupSchema | null);
 | 
					    group?: (DealGroupSchema | null);
 | 
				
			||||||
    manager?: (UserSchema | null);
 | 
					    manager?: (UserSchema | null);
 | 
				
			||||||
 | 
					 | 
				
			||||||
    deliveryDate?: (string | null);
 | 
					    deliveryDate?: (string | null);
 | 
				
			||||||
    receivingSlotDate?: (string | null);
 | 
					    receivingSlotDate?: (string | null);
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										9
									
								
								src/client/models/GetManagersResponse.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								src/client/models/GetManagersResponse.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,9 @@
 | 
				
			|||||||
 | 
					/* generated using openapi-typescript-codegen -- do not edit */
 | 
				
			||||||
 | 
					/* istanbul ignore file */
 | 
				
			||||||
 | 
					/* tslint:disable */
 | 
				
			||||||
 | 
					/* eslint-disable */
 | 
				
			||||||
 | 
					import type { UserSchema } from './UserSchema';
 | 
				
			||||||
 | 
					export type GetManagersResponse = {
 | 
				
			||||||
 | 
					    managers: Array<UserSchema>;
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -1,14 +1,9 @@
 | 
				
			|||||||
import { useState } from "react";
 | 
					import { StatisticsTab } from "../components/StatisticsTabSegmentedControl/StatisticsTabSegmentedControl.tsx";
 | 
				
			||||||
import {
 | 
					 | 
				
			||||||
    StatisticsTab,
 | 
					 | 
				
			||||||
    StatisticsTabSegmentedControl,
 | 
					 | 
				
			||||||
} from "../components/StatisticsTabSegmentedControl/StatisticsTabSegmentedControl.tsx";
 | 
					 | 
				
			||||||
import styles from "./StatisticsPage.module.css";
 | 
					import styles from "./StatisticsPage.module.css";
 | 
				
			||||||
import PageBlock from "../../../components/PageBlock/PageBlock.tsx";
 | 
					 | 
				
			||||||
import { ProfitTab } from "../tabs/ProfitTab/ProfitTab.tsx";
 | 
					import { ProfitTab } from "../tabs/ProfitTab/ProfitTab.tsx";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const StatisticsPage = () => {
 | 
					export const StatisticsPage = () => {
 | 
				
			||||||
    const [serviceType, setServiceType] = useState(StatisticsTab.PROFIT);
 | 
					    const serviceType = StatisticsTab.PROFIT;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    const getBody = () => {
 | 
					    const getBody = () => {
 | 
				
			||||||
        switch (serviceType) {
 | 
					        switch (serviceType) {
 | 
				
			||||||
@@ -16,10 +11,6 @@ export const StatisticsPage = () => {
 | 
				
			|||||||
                return (
 | 
					                return (
 | 
				
			||||||
                    <ProfitTab />
 | 
					                    <ProfitTab />
 | 
				
			||||||
                );
 | 
					                );
 | 
				
			||||||
            case StatisticsTab.SALARIES:
 | 
					 | 
				
			||||||
                return (
 | 
					 | 
				
			||||||
                    <>Статистика по ЗП</>
 | 
					 | 
				
			||||||
                );
 | 
					 | 
				
			||||||
        }
 | 
					        }
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -18,6 +18,7 @@ import { Route as DealsDealIdImport } from './routes/deals.$dealId'
 | 
				
			|||||||
// Create Virtual Routes
 | 
					// Create Virtual Routes
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const TestLazyImport = createFileRoute('/test')()
 | 
					const TestLazyImport = createFileRoute('/test')()
 | 
				
			||||||
 | 
					const StatisticsLazyImport = createFileRoute('/statistics')()
 | 
				
			||||||
const ShippingwarehousesLazyImport = createFileRoute('/shipping_warehouses')()
 | 
					const ShippingwarehousesLazyImport = createFileRoute('/shipping_warehouses')()
 | 
				
			||||||
const ServicesLazyImport = createFileRoute('/services')()
 | 
					const ServicesLazyImport = createFileRoute('/services')()
 | 
				
			||||||
const ProductsLazyImport = createFileRoute('/products')()
 | 
					const ProductsLazyImport = createFileRoute('/products')()
 | 
				
			||||||
@@ -37,6 +38,12 @@ const TestLazyRoute = TestLazyImport.update({
 | 
				
			|||||||
  getParentRoute: () => rootRoute,
 | 
					  getParentRoute: () => rootRoute,
 | 
				
			||||||
} as any).lazy(() => import('./routes/test.lazy').then((d) => d.Route))
 | 
					} as any).lazy(() => import('./routes/test.lazy').then((d) => d.Route))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					const StatisticsLazyRoute = StatisticsLazyImport.update({
 | 
				
			||||||
 | 
					  id: '/statistics',
 | 
				
			||||||
 | 
					  path: '/statistics',
 | 
				
			||||||
 | 
					  getParentRoute: () => rootRoute,
 | 
				
			||||||
 | 
					} as any).lazy(() => import('./routes/statistics.lazy').then((d) => d.Route))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const ShippingwarehousesLazyRoute = ShippingwarehousesLazyImport.update({
 | 
					const ShippingwarehousesLazyRoute = ShippingwarehousesLazyImport.update({
 | 
				
			||||||
  id: '/shipping_warehouses',
 | 
					  id: '/shipping_warehouses',
 | 
				
			||||||
  path: '/shipping_warehouses',
 | 
					  path: '/shipping_warehouses',
 | 
				
			||||||
@@ -179,6 +186,13 @@ declare module '@tanstack/react-router' {
 | 
				
			|||||||
      preLoaderRoute: typeof ShippingwarehousesLazyImport
 | 
					      preLoaderRoute: typeof ShippingwarehousesLazyImport
 | 
				
			||||||
      parentRoute: typeof rootRoute
 | 
					      parentRoute: typeof rootRoute
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					    '/statistics': {
 | 
				
			||||||
 | 
					      id: '/statistics'
 | 
				
			||||||
 | 
					      path: '/statistics'
 | 
				
			||||||
 | 
					      fullPath: '/statistics'
 | 
				
			||||||
 | 
					      preLoaderRoute: typeof StatisticsLazyImport
 | 
				
			||||||
 | 
					      parentRoute: typeof rootRoute
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    '/test': {
 | 
					    '/test': {
 | 
				
			||||||
      id: '/test'
 | 
					      id: '/test'
 | 
				
			||||||
      path: '/test'
 | 
					      path: '/test'
 | 
				
			||||||
@@ -209,6 +223,7 @@ export interface FileRoutesByFullPath {
 | 
				
			|||||||
  '/products': typeof ProductsLazyRoute
 | 
					  '/products': typeof ProductsLazyRoute
 | 
				
			||||||
  '/services': typeof ServicesLazyRoute
 | 
					  '/services': typeof ServicesLazyRoute
 | 
				
			||||||
  '/shipping_warehouses': typeof ShippingwarehousesLazyRoute
 | 
					  '/shipping_warehouses': typeof ShippingwarehousesLazyRoute
 | 
				
			||||||
 | 
					  '/statistics': typeof StatisticsLazyRoute
 | 
				
			||||||
  '/test': typeof TestLazyRoute
 | 
					  '/test': typeof TestLazyRoute
 | 
				
			||||||
  '/deals/$dealId': typeof DealsDealIdRoute
 | 
					  '/deals/$dealId': typeof DealsDealIdRoute
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -224,6 +239,7 @@ export interface FileRoutesByTo {
 | 
				
			|||||||
  '/products': typeof ProductsLazyRoute
 | 
					  '/products': typeof ProductsLazyRoute
 | 
				
			||||||
  '/services': typeof ServicesLazyRoute
 | 
					  '/services': typeof ServicesLazyRoute
 | 
				
			||||||
  '/shipping_warehouses': typeof ShippingwarehousesLazyRoute
 | 
					  '/shipping_warehouses': typeof ShippingwarehousesLazyRoute
 | 
				
			||||||
 | 
					  '/statistics': typeof StatisticsLazyRoute
 | 
				
			||||||
  '/test': typeof TestLazyRoute
 | 
					  '/test': typeof TestLazyRoute
 | 
				
			||||||
  '/deals/$dealId': typeof DealsDealIdRoute
 | 
					  '/deals/$dealId': typeof DealsDealIdRoute
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -240,6 +256,7 @@ export interface FileRoutesById {
 | 
				
			|||||||
  '/products': typeof ProductsLazyRoute
 | 
					  '/products': typeof ProductsLazyRoute
 | 
				
			||||||
  '/services': typeof ServicesLazyRoute
 | 
					  '/services': typeof ServicesLazyRoute
 | 
				
			||||||
  '/shipping_warehouses': typeof ShippingwarehousesLazyRoute
 | 
					  '/shipping_warehouses': typeof ShippingwarehousesLazyRoute
 | 
				
			||||||
 | 
					  '/statistics': typeof StatisticsLazyRoute
 | 
				
			||||||
  '/test': typeof TestLazyRoute
 | 
					  '/test': typeof TestLazyRoute
 | 
				
			||||||
  '/deals/$dealId': typeof DealsDealIdRoute
 | 
					  '/deals/$dealId': typeof DealsDealIdRoute
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -257,6 +274,7 @@ export interface FileRouteTypes {
 | 
				
			|||||||
    | '/products'
 | 
					    | '/products'
 | 
				
			||||||
    | '/services'
 | 
					    | '/services'
 | 
				
			||||||
    | '/shipping_warehouses'
 | 
					    | '/shipping_warehouses'
 | 
				
			||||||
 | 
					    | '/statistics'
 | 
				
			||||||
    | '/test'
 | 
					    | '/test'
 | 
				
			||||||
    | '/deals/$dealId'
 | 
					    | '/deals/$dealId'
 | 
				
			||||||
  fileRoutesByTo: FileRoutesByTo
 | 
					  fileRoutesByTo: FileRoutesByTo
 | 
				
			||||||
@@ -271,6 +289,7 @@ export interface FileRouteTypes {
 | 
				
			|||||||
    | '/products'
 | 
					    | '/products'
 | 
				
			||||||
    | '/services'
 | 
					    | '/services'
 | 
				
			||||||
    | '/shipping_warehouses'
 | 
					    | '/shipping_warehouses'
 | 
				
			||||||
 | 
					    | '/statistics'
 | 
				
			||||||
    | '/test'
 | 
					    | '/test'
 | 
				
			||||||
    | '/deals/$dealId'
 | 
					    | '/deals/$dealId'
 | 
				
			||||||
  id:
 | 
					  id:
 | 
				
			||||||
@@ -285,6 +304,7 @@ export interface FileRouteTypes {
 | 
				
			|||||||
    | '/products'
 | 
					    | '/products'
 | 
				
			||||||
    | '/services'
 | 
					    | '/services'
 | 
				
			||||||
    | '/shipping_warehouses'
 | 
					    | '/shipping_warehouses'
 | 
				
			||||||
 | 
					    | '/statistics'
 | 
				
			||||||
    | '/test'
 | 
					    | '/test'
 | 
				
			||||||
    | '/deals/$dealId'
 | 
					    | '/deals/$dealId'
 | 
				
			||||||
  fileRoutesById: FileRoutesById
 | 
					  fileRoutesById: FileRoutesById
 | 
				
			||||||
@@ -301,6 +321,7 @@ export interface RootRouteChildren {
 | 
				
			|||||||
  ProductsLazyRoute: typeof ProductsLazyRoute
 | 
					  ProductsLazyRoute: typeof ProductsLazyRoute
 | 
				
			||||||
  ServicesLazyRoute: typeof ServicesLazyRoute
 | 
					  ServicesLazyRoute: typeof ServicesLazyRoute
 | 
				
			||||||
  ShippingwarehousesLazyRoute: typeof ShippingwarehousesLazyRoute
 | 
					  ShippingwarehousesLazyRoute: typeof ShippingwarehousesLazyRoute
 | 
				
			||||||
 | 
					  StatisticsLazyRoute: typeof StatisticsLazyRoute
 | 
				
			||||||
  TestLazyRoute: typeof TestLazyRoute
 | 
					  TestLazyRoute: typeof TestLazyRoute
 | 
				
			||||||
  DealsDealIdRoute: typeof DealsDealIdRoute
 | 
					  DealsDealIdRoute: typeof DealsDealIdRoute
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -316,6 +337,7 @@ const rootRouteChildren: RootRouteChildren = {
 | 
				
			|||||||
  ProductsLazyRoute: ProductsLazyRoute,
 | 
					  ProductsLazyRoute: ProductsLazyRoute,
 | 
				
			||||||
  ServicesLazyRoute: ServicesLazyRoute,
 | 
					  ServicesLazyRoute: ServicesLazyRoute,
 | 
				
			||||||
  ShippingwarehousesLazyRoute: ShippingwarehousesLazyRoute,
 | 
					  ShippingwarehousesLazyRoute: ShippingwarehousesLazyRoute,
 | 
				
			||||||
 | 
					  StatisticsLazyRoute: StatisticsLazyRoute,
 | 
				
			||||||
  TestLazyRoute: TestLazyRoute,
 | 
					  TestLazyRoute: TestLazyRoute,
 | 
				
			||||||
  DealsDealIdRoute: DealsDealIdRoute,
 | 
					  DealsDealIdRoute: DealsDealIdRoute,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
@@ -340,6 +362,7 @@ export const routeTree = rootRoute
 | 
				
			|||||||
        "/products",
 | 
					        "/products",
 | 
				
			||||||
        "/services",
 | 
					        "/services",
 | 
				
			||||||
        "/shipping_warehouses",
 | 
					        "/shipping_warehouses",
 | 
				
			||||||
 | 
					        "/statistics",
 | 
				
			||||||
        "/test",
 | 
					        "/test",
 | 
				
			||||||
        "/deals/$dealId"
 | 
					        "/deals/$dealId"
 | 
				
			||||||
      ]
 | 
					      ]
 | 
				
			||||||
@@ -374,6 +397,9 @@ export const routeTree = rootRoute
 | 
				
			|||||||
    "/shipping_warehouses": {
 | 
					    "/shipping_warehouses": {
 | 
				
			||||||
      "filePath": "shipping_warehouses.lazy.tsx"
 | 
					      "filePath": "shipping_warehouses.lazy.tsx"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 | 
					    "/statistics": {
 | 
				
			||||||
 | 
					      "filePath": "statistics.lazy.tsx"
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
    "/test": {
 | 
					    "/test": {
 | 
				
			||||||
      "filePath": "test.lazy.tsx"
 | 
					      "filePath": "test.lazy.tsx"
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user