feat: deal product services

This commit is contained in:
2024-05-13 07:46:24 +03:00
parent 0ebb1d5e08
commit 6acb34271d
19 changed files with 401 additions and 30 deletions

View File

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

View File

@@ -0,0 +1,9 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type BaseEnumSchema = {
id: number;
name: string;
};

View File

@@ -2,9 +2,11 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DealProductServiceSchema } from './DealProductServiceSchema';
import type { ProductSchema } from './ProductSchema';
export type DealProductSchema = {
product: ProductSchema;
services: Array<DealProductServiceSchema>;
quantity: number;
};

View File

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

View File

@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ServicePriceRangeSchema = {
id: (number | null);
fromQuantity: number;
toQuantity: number;
price: number;
};

View File

@@ -3,10 +3,13 @@
/* tslint:disable */
/* eslint-disable */
import type { ServiceCategorySchema } from './ServiceCategorySchema';
import type { ServicePriceRangeSchema } from './ServicePriceRangeSchema';
export type ServiceSchema = {
id: number;
name: string;
category: ServiceCategorySchema;
price: number;
serviceType: number;
priceRanges: Array<ServicePriceRangeSchema>;
};