crap
This commit is contained in:
@@ -27,8 +27,12 @@ export type { HTTPValidationError } from './models/HTTPValidationError';
|
||||
export type { PaginationInfoSchema } from './models/PaginationInfoSchema';
|
||||
export type { ProductCreateRequest } from './models/ProductCreateRequest';
|
||||
export type { ProductCreateResponse } from './models/ProductCreateResponse';
|
||||
export type { ProductDeleteRequest } from './models/ProductDeleteRequest';
|
||||
export type { ProductDeleteResponse } from './models/ProductDeleteResponse';
|
||||
export type { ProductGetResponse } from './models/ProductGetResponse';
|
||||
export type { ProductSchema } from './models/ProductSchema';
|
||||
export type { ProductUpdateRequest } from './models/ProductUpdateRequest';
|
||||
export type { ProductUpdateResponse } from './models/ProductUpdateResponse';
|
||||
export type { ServiceCategorySchema } from './models/ServiceCategorySchema';
|
||||
export type { ServiceCreateCategoryRequest } from './models/ServiceCreateCategoryRequest';
|
||||
export type { ServiceCreateCategoryResponse } from './models/ServiceCreateCategoryResponse';
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type AuthLoginResponse = {
|
||||
access_token: string;
|
||||
accessToken: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/* eslint-disable */
|
||||
export type ClientDetailsSchema = {
|
||||
address?: (string | null);
|
||||
phone_number?: (string | null);
|
||||
phoneNumber?: (string | null);
|
||||
inn?: (number | null);
|
||||
email?: (string | null);
|
||||
};
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/* eslint-disable */
|
||||
import type { ClientDetailsSchema } from './ClientDetailsSchema';
|
||||
export type ClientUpdateDetailsRequest = {
|
||||
client_id: number;
|
||||
clientId: number;
|
||||
details: ClientDetailsSchema;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
/* eslint-disable */
|
||||
import type { DealServiceSchema } from './DealServiceSchema';
|
||||
export type DealAddServicesRequest = {
|
||||
deal_id: number;
|
||||
dealId: number;
|
||||
services: Array<DealServiceSchema>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealChangeStatusRequest = {
|
||||
deal_id: number;
|
||||
new_status: number;
|
||||
dealId: number;
|
||||
newStatus: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
/* eslint-disable */
|
||||
export type DealQuickCreateRequest = {
|
||||
name: string;
|
||||
client_name: string;
|
||||
client_address: string;
|
||||
clientName: string;
|
||||
clientAddress: string;
|
||||
comment: string;
|
||||
acceptance_date: string;
|
||||
acceptanceDate: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DealQuickCreateResponse = {
|
||||
deal_id: number;
|
||||
dealId: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
export type DealSummary = {
|
||||
id: number;
|
||||
name: string;
|
||||
client_name: string;
|
||||
changed_at: string;
|
||||
clientName: string;
|
||||
changedAt: string;
|
||||
status: number;
|
||||
total_price: number;
|
||||
totalPrice: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type PaginationInfoSchema = {
|
||||
total_pages: number;
|
||||
total_items: number;
|
||||
totalPages: number;
|
||||
totalItems: number;
|
||||
};
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
export type ProductCreateRequest = {
|
||||
name: string;
|
||||
article: string;
|
||||
client_id: number;
|
||||
clientId: number;
|
||||
barcodes: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProductCreateResponse = {
|
||||
product_id: number;
|
||||
ok: boolean;
|
||||
message: string;
|
||||
productId?: (number | null);
|
||||
};
|
||||
|
||||
|
||||
8
src/client/models/ProductDeleteRequest.ts
Normal file
8
src/client/models/ProductDeleteRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProductDeleteRequest = {
|
||||
productId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/ProductDeleteResponse.ts
Normal file
9
src/client/models/ProductDeleteResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProductDeleteResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -6,6 +6,6 @@ import type { PaginationInfoSchema } from './PaginationInfoSchema';
|
||||
import type { ProductSchema } from './ProductSchema';
|
||||
export type ProductGetResponse = {
|
||||
products: Array<ProductSchema>;
|
||||
pagination_info: PaginationInfoSchema;
|
||||
paginationInfo: PaginationInfoSchema;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ export type ProductSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
article: string;
|
||||
client_id: number;
|
||||
clientId: number;
|
||||
barcodes: Array<string>;
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/ProductUpdateRequest.ts
Normal file
9
src/client/models/ProductUpdateRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductSchema } from './ProductSchema';
|
||||
export type ProductUpdateRequest = {
|
||||
product: ProductSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/ProductUpdateResponse.ts
Normal file
9
src/client/models/ProductUpdateResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProductUpdateResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -4,7 +4,11 @@
|
||||
/* eslint-disable */
|
||||
import type { ProductCreateRequest } from '../models/ProductCreateRequest';
|
||||
import type { ProductCreateResponse } from '../models/ProductCreateResponse';
|
||||
import type { ProductDeleteRequest } from '../models/ProductDeleteRequest';
|
||||
import type { ProductDeleteResponse } from '../models/ProductDeleteResponse';
|
||||
import type { ProductGetResponse } from '../models/ProductGetResponse';
|
||||
import type { ProductUpdateRequest } from '../models/ProductUpdateRequest';
|
||||
import type { ProductUpdateResponse } from '../models/ProductUpdateResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
@@ -14,7 +18,7 @@ export class ProductService {
|
||||
* @returns ProductCreateResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static createProductProductCreatePost({
|
||||
public static createProduct({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ProductCreateRequest,
|
||||
@@ -29,6 +33,46 @@ export class ProductService {
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Product
|
||||
* @returns ProductDeleteResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static deleteProduct({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ProductDeleteRequest,
|
||||
}): CancelablePromise<ProductDeleteResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/product/delete',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete Product
|
||||
* @returns ProductUpdateResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static updateProduct({
|
||||
requestBody,
|
||||
}: {
|
||||
requestBody: ProductUpdateRequest,
|
||||
}): CancelablePromise<ProductUpdateResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'POST',
|
||||
url: '/product/update',
|
||||
body: requestBody,
|
||||
mediaType: 'application/json',
|
||||
errors: {
|
||||
422: `Validation Error`,
|
||||
},
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Get Product
|
||||
* @returns ProductGetResponse Successful Response
|
||||
|
||||
Reference in New Issue
Block a user