Merge remote-tracking branch 'origin/fillingDealsFromExcelFile' into excelMerge

This commit is contained in:
2025-01-10 14:39:04 +03:00
29 changed files with 878 additions and 101 deletions

View File

@@ -0,0 +1,8 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type Body_parse_deals_excel = {
upload_file: Blob;
};

View File

@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseMarketplaceSchema } from './BaseMarketplaceSchema';
import type { OptionalShippingWarehouseSchema } from './OptionalShippingWarehouseSchema';
export type CityBreakdownFromExcelSchema = {
baseMarketplace: BaseMarketplaceSchema;
shippingWarehouse: OptionalShippingWarehouseSchema;
quantity: number;
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProductFromExcelSchema } from './ProductFromExcelSchema';
export type CreateDealsFromExcelRequest = {
clientId: number;
products: Array<ProductFromExcelSchema>;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type CreateDealsFromExcelResponse = {
ok: boolean;
message: string;
};

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type OptionalShippingWarehouseSchema = {
name: string;
id?: (number | null);
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ParsedProductRowSchema } from './ParsedProductRowSchema';
export type ParseDealsExcelResponse = {
rows: Array<ParsedProductRowSchema>;
errors: Array<string>;
};

View File

@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseMarketplaceSchema } from './BaseMarketplaceSchema';
import type { OptionalShippingWarehouseSchema } from './OptionalShippingWarehouseSchema';
export type ParsedCityBreakdownSchema = {
baseMarketplace: BaseMarketplaceSchema;
shippingWarehouse: OptionalShippingWarehouseSchema;
quantity: number;
};

View File

@@ -0,0 +1,12 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ParsedCityBreakdownSchema } from './ParsedCityBreakdownSchema';
import type { ProductSchema } from './ProductSchema';
export type ParsedProductRowSchema = {
barcode: string;
products: Array<ProductSchema>;
breakdowns: Array<ParsedCityBreakdownSchema>;
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do not edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { CityBreakdownFromExcelSchema } from './CityBreakdownFromExcelSchema';
export type ProductFromExcelSchema = {
productId: number;
citiesBreakdown: Array<CityBreakdownFromExcelSchema>;
};