feat: shipping warehouse and cost
This commit is contained in:
@@ -80,6 +80,7 @@ export type { DealUpdateServiceResponse } from './models/DealUpdateServiceRespon
|
||||
export type { GetAllBarcodeTemplateAttributesResponse } from './models/GetAllBarcodeTemplateAttributesResponse';
|
||||
export type { GetAllBarcodeTemplateSizesResponse } from './models/GetAllBarcodeTemplateSizesResponse';
|
||||
export type { GetAllBarcodeTemplatesResponse } from './models/GetAllBarcodeTemplatesResponse';
|
||||
export type { GetAllShippingWarehousesResponse } from './models/GetAllShippingWarehousesResponse';
|
||||
export type { GetBarcodeTemplateByIdRequest } from './models/GetBarcodeTemplateByIdRequest';
|
||||
export type { GetBarcodeTemplateByIdResponse } from './models/GetBarcodeTemplateByIdResponse';
|
||||
export type { GetProductBarcodePdfRequest } from './models/GetProductBarcodePdfRequest';
|
||||
@@ -116,6 +117,7 @@ export type { ServicePriceRangeSchema } from './models/ServicePriceRangeSchema';
|
||||
export type { ServiceSchema } from './models/ServiceSchema';
|
||||
export type { ServiceUpdateRequest } from './models/ServiceUpdateRequest';
|
||||
export type { ServiceUpdateResponse } from './models/ServiceUpdateResponse';
|
||||
export type { ShippingWarehouseSchema } from './models/ShippingWarehouseSchema';
|
||||
export type { UserSchema } from './models/UserSchema';
|
||||
export type { ValidationError } from './models/ValidationError';
|
||||
|
||||
@@ -125,3 +127,4 @@ export { ClientService } from './services/ClientService';
|
||||
export { DealService } from './services/DealService';
|
||||
export { ProductService } from './services/ProductService';
|
||||
export { ServiceService } from './services/ServiceService';
|
||||
export { ShippingWarehouseService } from './services/ShippingWarehouseService';
|
||||
|
||||
@@ -7,5 +7,6 @@ export type DealQuickCreateRequest = {
|
||||
clientName: string;
|
||||
comment: string;
|
||||
acceptanceDate: string;
|
||||
shippingWarehouse: string;
|
||||
};
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ import type { ClientSchema } from './ClientSchema';
|
||||
import type { DealProductSchema } from './DealProductSchema';
|
||||
import type { DealServiceSchema } from './DealServiceSchema';
|
||||
import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
|
||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
|
||||
export type DealSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
@@ -19,5 +20,6 @@ export type DealSchema = {
|
||||
isCompleted: boolean;
|
||||
client: ClientSchema;
|
||||
comment: string;
|
||||
shippingWarehouse?: (ShippingWarehouseSchema | null);
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/GetAllShippingWarehousesResponse.ts
Normal file
9
src/client/models/GetAllShippingWarehousesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
|
||||
export type GetAllShippingWarehousesResponse = {
|
||||
shippingWarehouses: Array<ShippingWarehouseSchema>;
|
||||
};
|
||||
|
||||
@@ -11,5 +11,6 @@ export type ServiceSchema = {
|
||||
price: number;
|
||||
serviceType: number;
|
||||
priceRanges: Array<ServicePriceRangeSchema>;
|
||||
cost: (number | null);
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/ShippingWarehouseSchema.ts
Normal file
9
src/client/models/ShippingWarehouseSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ShippingWarehouseSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
21
src/client/services/ShippingWarehouseService.ts
Normal file
21
src/client/services/ShippingWarehouseService.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
/* generated using openapi-typescript-codegen -- do no edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { GetAllShippingWarehousesResponse } from '../models/GetAllShippingWarehousesResponse';
|
||||
import type { CancelablePromise } from '../core/CancelablePromise';
|
||||
import { OpenAPI } from '../core/OpenAPI';
|
||||
import { request as __request } from '../core/request';
|
||||
export class ShippingWarehouseService {
|
||||
/**
|
||||
* Get All
|
||||
* @returns GetAllShippingWarehousesResponse Successful Response
|
||||
* @throws ApiError
|
||||
*/
|
||||
public static getAllShippingWarehouses(): CancelablePromise<GetAllShippingWarehousesResponse> {
|
||||
return __request(OpenAPI, {
|
||||
method: 'GET',
|
||||
url: '/shipping-warehouse/get-all',
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user