This commit is contained in:
2024-04-11 14:25:51 +03:00
parent 18157972a1
commit 9815ebbc3b
14 changed files with 254 additions and 14 deletions

View File

@@ -31,6 +31,7 @@ export type { DealDeleteServiceResponse } from './models/DealDeleteServiceRespon
export type { DealDeleteServicesRequest } from './models/DealDeleteServicesRequest';
export type { DealDeleteServicesResponse } from './models/DealDeleteServicesResponse';
export type { DealGetAllResponse } from './models/DealGetAllResponse';
export type { DealProductSchema } from './models/DealProductSchema';
export type { DealQuickCreateRequest } from './models/DealQuickCreateRequest';
export type { DealQuickCreateResponse } from './models/DealQuickCreateResponse';
export type { DealSchema } from './models/DealSchema';

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProductSchema } from './ProductSchema';
export type DealProductSchema = {
product: ProductSchema;
quantity: number;
};

View File

@@ -2,6 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { DealProductSchema } from './DealProductSchema';
import type { DealServiceSchema } from './DealServiceSchema';
export type DealSchema = {
id: number;
@@ -10,5 +11,6 @@ export type DealSchema = {
createdAt: string;
currentStatus: number;
services: Array<DealServiceSchema>;
products: Array<DealProductSchema>;
};

View File

@@ -84,8 +84,8 @@ export class ProductService {
itemsPerPage,
}: {
clientId: number,
page: number,
itemsPerPage: number,
page?: (number | null),
itemsPerPage?: (number | null),
}): CancelablePromise<ProductGetResponse> {
return __request(OpenAPI, {
method: 'GET',