feat: deals table

This commit is contained in:
2024-08-10 06:53:45 +03:00
parent be9c8e604f
commit bb4324822a
15 changed files with 327 additions and 18 deletions

View File

@@ -8,6 +8,7 @@ export type DealSummary = {
name: string;
clientName: string;
changedAt: string;
createdAt: string;
deadline: string;
status: number;
totalPrice: number;

View File

@@ -134,10 +134,20 @@ export class DealService {
* @returns DealSummaryResponse Successful Response
* @throws ApiError
*/
public static getDealSummaries(): CancelablePromise<DealSummaryResponse> {
public static getDealSummaries({
full,
}: {
full: (boolean | null),
}): CancelablePromise<DealSummaryResponse> {
return __request(OpenAPI, {
method: 'GET',
url: '/deal/summaries',
query: {
'full': full,
},
errors: {
422: `Validation Error`,
},
});
}
/**