feat: deal product services

This commit is contained in:
2024-05-18 07:01:08 +03:00
parent 2f589edacc
commit b0cfaf3a8b
13 changed files with 334 additions and 96 deletions

View File

@@ -2,9 +2,9 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DealProductSchema } from './DealProductSchema';
export type DealAddProductRequest = {
dealId: number;
productId: number;
quantity: number;
product: DealProductSchema;
};

View File

@@ -5,7 +5,6 @@
import type { ServiceSchema } from './ServiceSchema';
export type DealProductServiceSchema = {
service: ServiceSchema;
quantity: number;
price: number;
};

View File

@@ -9,5 +9,10 @@ export type ProductCreateRequest = {
clientId: number;
barcodes: Array<string>;
barcodeTemplate?: (BarcodeTemplateSchema | null);
brand?: (string | null);
color?: (string | null);
composition?: (string | null);
size?: (string | null);
additionalInfo?: (string | null);
};

View File

@@ -4,7 +4,6 @@
/* eslint-disable */
import type { BarcodeTemplateSchema } from './BarcodeTemplateSchema';
export type ProductSchema = {
id: number;
name: string;
article: string;
clientId: number;
@@ -15,5 +14,6 @@ export type ProductSchema = {
composition?: (string | null);
size?: (string | null);
additionalInfo?: (string | null);
id: number;
};