feat: service deleting and rest categories placeholders

This commit is contained in:
2024-10-09 02:03:52 +03:00
parent dea1221016
commit 891b6cff9f
9 changed files with 41 additions and 21 deletions

View File

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

View File

@@ -40,10 +40,20 @@ export class ServiceService {
* @returns ServiceGetAllResponse Successful Response
* @throws ApiError
*/
public static getAllServices(): CancelablePromise<ServiceGetAllResponse> {
public static getAllServices({
withPlaceholders = false,
}: {
withPlaceholders?: boolean,
}): CancelablePromise<ServiceGetAllResponse> {
return __request(OpenAPI, {
method: 'GET',
url: '/service/get-all',
query: {
'with_placeholders': withPlaceholders,
},
errors: {
422: `Validation Error`,
},
});
}
/**