crap
This commit is contained in:
@@ -7,6 +7,7 @@ import type { DealChangeStatusResponse } from '../models/DealChangeStatusRespons
|
||||
import type { DealCreateRequest } from '../models/DealCreateRequest';
|
||||
import type { DealQuickCreateRequest } from '../models/DealQuickCreateRequest';
|
||||
import type { DealQuickCreateResponse } from '../models/DealQuickCreateResponse';
|
||||
import type { DealSummaryResponse } from '../models/DealSummaryResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
@@ -71,4 +72,15 @@ export class DealService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get Summary
|
||||
* @returns DealSummaryResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getDealSummaries(): CancelablePromise<DealSummaryResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/deal/summaries',
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
77
src/client/services/ServiceService.ts
Normal file
77
src/client/services/ServiceService.ts
Normal file
@@ -0,0 +1,77 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceCreateCategoryRequest } from '../models/ServiceCreateCategoryRequest';
|
||||
import type { ServiceCreateCategoryResponse } from '../models/ServiceCreateCategoryResponse';
|
||||
import type { ServiceCreateRequest } from '../models/ServiceCreateRequest';
|
||||
import type { ServiceCreateResponse } from '../models/ServiceCreateResponse';
|
||||
import type { ServiceGetAllCategoriesResponse } from '../models/ServiceGetAllCategoriesResponse';
|
||||
import type { ServiceGetAllResponse } from '../models/ServiceGetAllResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class ServiceService {
|
||||
/**
|
||||
* Get All
|
||||
* @returns ServiceGetAllResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAllServices(): CancelablePromise<ServiceGetAllResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/service/get-all',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create
|
||||
* @returns ServiceCreateResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createService({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ServiceCreateRequest,
|
||||
}): CancelablePromise<ServiceCreateResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/service/create',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get All Categories
|
||||
* @returns ServiceGetAllCategoriesResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAllServiceCategories(): CancelablePromise<ServiceGetAllCategoriesResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/service/categories/get-all',
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Create Category
|
||||
* @returns ServiceCreateCategoryResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createServiceCategory({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ServiceCreateCategoryRequest,
|
||||
}): CancelablePromise<ServiceCreateCategoryResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/service/categories/create',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user