feat: export services

This commit is contained in:
2024-10-11 21:40:36 +03:00
parent 35951c7019
commit 871aa8efe3
3 changed files with 102 additions and 14 deletions

View File

@@ -15,6 +15,6 @@ export type ServiceSchema = {
categoryPrices: Array<ServiceCategoryPriceSchema>;
cost: (number | null);
rank: string;
isPlaceholder?: boolean;
isPlaceholder?: (boolean | null);
};

View File

@@ -138,6 +138,17 @@ export class ServiceService {
},
});
}
/**
* Get Price List
* @returns any Successful Response
* @throws ApiError
*/
public static getPriceList(): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/service/price-list',
});
}
/**
* Get All Categories
* @returns ServiceGetAllCategoriesResponse Successful Response
@@ -362,4 +373,26 @@ export class ServiceService {
},
});
}
/**
* Export List Pdf
* @returns any Successful Response
* @throws ApiError
*/
public static exportListPdf(): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/service/export-list/pdf',
});
}
/**
* Export List Excel
* @returns any Successful Response
* @throws ApiError
*/
public static exportListExcel(): CancelablePromise<any> {
return __request(OpenAPI, {
method: 'GET',
url: '/service/export-list/excel',
});
}
}