crap
This commit is contained in:
@@ -18,9 +18,20 @@ export type { DealChangeStatusResponse } from './models/DealChangeStatusResponse
|
||||
export type { DealCreateRequest } from './models/DealCreateRequest';
|
||||
export type { DealQuickCreateRequest } from './models/DealQuickCreateRequest';
|
||||
export type { DealQuickCreateResponse } from './models/DealQuickCreateResponse';
|
||||
export type { DealSummary } from './models/DealSummary';
|
||||
export type { DealSummaryResponse } from './models/DealSummaryResponse';
|
||||
export type { HTTPValidationError } from './models/HTTPValidationError';
|
||||
export type { ServiceCategorySchema } from './models/ServiceCategorySchema';
|
||||
export type { ServiceCreateCategoryRequest } from './models/ServiceCreateCategoryRequest';
|
||||
export type { ServiceCreateCategoryResponse } from './models/ServiceCreateCategoryResponse';
|
||||
export type { ServiceCreateRequest } from './models/ServiceCreateRequest';
|
||||
export type { ServiceCreateResponse } from './models/ServiceCreateResponse';
|
||||
export type { ServiceGetAllCategoriesResponse } from './models/ServiceGetAllCategoriesResponse';
|
||||
export type { ServiceGetAllResponse } from './models/ServiceGetAllResponse';
|
||||
export type { ServiceSchema } from './models/ServiceSchema';
|
||||
export type { ValidationError } from './models/ValidationError';
|
||||
|
||||
export { AuthService } from './services/AuthService';
|
||||
export { ClientService } from './services/ClientService';
|
||||
export { DealService } from './services/DealService';
|
||||
export { ServiceService } from './services/ServiceService';
|
||||
|
||||
@@ -2,8 +2,10 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ClientDetailsSchema } from './ClientDetailsSchema';
|
||||
export type ClientSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
details?: (ClientDetailsSchema | null);
|
||||
};
|
||||
|
||||
|
||||
12
src/client/models/DealSummary.ts
Normal file
12
src/client/models/DealSummary.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealSummary = {
|
||||
id: number;
|
||||
name: string;
|
||||
client_name: string;
|
||||
changed_at: string;
|
||||
status: number;
|
||||
};
|
||||
|
||||
9
src/client/models/DealSummaryResponse.ts
Normal file
9
src/client/models/DealSummaryResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { DealSummary } from './DealSummary';
|
||||
export type DealSummaryResponse = {
|
||||
summaries: Array<DealSummary>;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceCategorySchema.ts
Normal file
9
src/client/models/ServiceCategorySchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ServiceCategorySchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceCreateCategoryRequest.ts
Normal file
9
src/client/models/ServiceCreateCategoryRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceCategorySchema } from './ServiceCategorySchema';
|
||||
export type ServiceCreateCategoryRequest = {
|
||||
category: ServiceCategorySchema;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceCreateCategoryResponse.ts
Normal file
9
src/client/models/ServiceCreateCategoryResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ServiceCreateCategoryResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceCreateRequest.ts
Normal file
9
src/client/models/ServiceCreateRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceSchema } from './ServiceSchema';
|
||||
export type ServiceCreateRequest = {
|
||||
service: ServiceSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceCreateResponse.ts
Normal file
9
src/client/models/ServiceCreateResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ServiceCreateResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceGetAllCategoriesResponse.ts
Normal file
9
src/client/models/ServiceGetAllCategoriesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceCategorySchema } from './ServiceCategorySchema';
|
||||
export type ServiceGetAllCategoriesResponse = {
|
||||
categories: Array<ServiceCategorySchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/ServiceGetAllResponse.ts
Normal file
9
src/client/models/ServiceGetAllResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceSchema } from './ServiceSchema';
|
||||
export type ServiceGetAllResponse = {
|
||||
services: Array<ServiceSchema>;
|
||||
};
|
||||
|
||||
12
src/client/models/ServiceSchema.ts
Normal file
12
src/client/models/ServiceSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceCategorySchema } from './ServiceCategorySchema';
|
||||
export type ServiceSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
category: ServiceCategorySchema;
|
||||
price: number;
|
||||
};
|
||||
|
||||
@@ -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