feat: price by category
This commit is contained in:
8
src/client/models/CreatePriceCategoryRequest.ts
Normal file
8
src/client/models/CreatePriceCategoryRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreatePriceCategoryRequest = {
|
||||
name: string;
|
||||
};
|
||||
|
||||
9
src/client/models/CreatePriceCategoryResponse.ts
Normal file
9
src/client/models/CreatePriceCategoryResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreatePriceCategoryResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BaseMarketplaceSchema } from './BaseMarketplaceSchema';
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
export type DealQuickCreateRequest = {
|
||||
name: string;
|
||||
clientName: string;
|
||||
@@ -10,5 +11,6 @@ export type DealQuickCreateRequest = {
|
||||
acceptanceDate: string;
|
||||
shippingWarehouse: string;
|
||||
baseMarketplace: BaseMarketplaceSchema;
|
||||
category?: (ServicePriceCategorySchema | null);
|
||||
};
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
import type { DealProductSchema } from './DealProductSchema';
|
||||
import type { DealServiceSchema } from './DealServiceSchema';
|
||||
import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
|
||||
export type DealSchema = {
|
||||
id: number;
|
||||
@@ -24,5 +25,6 @@ export type DealSchema = {
|
||||
comment: string;
|
||||
shippingWarehouse?: (ShippingWarehouseSchema | string | null);
|
||||
billRequest?: (DealBillRequestSchema | null);
|
||||
category?: (ServicePriceCategorySchema | null);
|
||||
};
|
||||
|
||||
|
||||
8
src/client/models/DeletePriceCategoryRequest.ts
Normal file
8
src/client/models/DeletePriceCategoryRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeletePriceCategoryRequest = {
|
||||
id: number;
|
||||
};
|
||||
|
||||
9
src/client/models/DeletePriceCategoryResponse.ts
Normal file
9
src/client/models/DeletePriceCategoryResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeletePriceCategoryResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/GetAllPriceCategoriesResponse.ts
Normal file
9
src/client/models/GetAllPriceCategoriesResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
export type GetAllPriceCategoriesResponse = {
|
||||
priceCategories: Array<ServicePriceCategorySchema>;
|
||||
};
|
||||
|
||||
10
src/client/models/ServiceCategoryPriceSchema.ts
Normal file
10
src/client/models/ServiceCategoryPriceSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
export type ServiceCategoryPriceSchema = {
|
||||
category: ServicePriceCategorySchema;
|
||||
price: number;
|
||||
};
|
||||
|
||||
9
src/client/models/ServicePriceCategorySchema.ts
Normal file
9
src/client/models/ServicePriceCategorySchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ServicePriceCategorySchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ServiceCategoryPriceSchema } from './ServiceCategoryPriceSchema';
|
||||
import type { ServiceCategorySchema } from './ServiceCategorySchema';
|
||||
import type { ServicePriceRangeSchema } from './ServicePriceRangeSchema';
|
||||
export type ServiceSchema = {
|
||||
@@ -11,6 +12,7 @@ export type ServiceSchema = {
|
||||
price: number;
|
||||
serviceType: number;
|
||||
priceRanges: Array<ServicePriceRangeSchema>;
|
||||
categoryPrices: Array<ServiceCategoryPriceSchema>;
|
||||
cost: (number | null);
|
||||
};
|
||||
|
||||
|
||||
9
src/client/models/UpdatePriceCategoryRequest.ts
Normal file
9
src/client/models/UpdatePriceCategoryRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdatePriceCategoryRequest = {
|
||||
id: number;
|
||||
name: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdatePriceCategoryResponse.ts
Normal file
9
src/client/models/UpdatePriceCategoryResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdatePriceCategoryResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user