feat: service deleting and rest categories placeholders
This commit is contained in:
@@ -15,5 +15,6 @@ export type ServiceSchema = {
|
||||
categoryPrices: Array<ServiceCategoryPriceSchema>;
|
||||
cost: (number | null);
|
||||
rank: string;
|
||||
isPlaceholder?: boolean;
|
||||
};
|
||||
|
||||
|
||||
@@ -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`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user