feat: pallets and boxes for deals
This commit is contained in:
13
src/client/models/BoxSchema.ts
Normal file
13
src/client/models/BoxSchema.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductSchema } from './ProductSchema';
|
||||
export type BoxSchema = {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product: ProductSchema;
|
||||
palletId: (number | null);
|
||||
dealId: (number | null);
|
||||
};
|
||||
|
||||
10
src/client/models/CreateBoxInDealSchema.ts
Normal file
10
src/client/models/CreateBoxInDealSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateBoxInDealSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
dealId: (number | null);
|
||||
};
|
||||
|
||||
10
src/client/models/CreateBoxInPalletSchema.ts
Normal file
10
src/client/models/CreateBoxInPalletSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateBoxInPalletSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
palletId: (number | null);
|
||||
};
|
||||
|
||||
9
src/client/models/CreatePalletResponse.ts
Normal file
9
src/client/models/CreatePalletResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreatePalletResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/CreateShippingProductSchema.ts
Normal file
10
src/client/models/CreateShippingProductSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateShippingProductSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
palletId: number;
|
||||
};
|
||||
|
||||
@@ -2,12 +2,14 @@
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoxSchema } from './BoxSchema';
|
||||
import type { ClientSchema } from './ClientSchema';
|
||||
import type { DealBillRequestSchema } from './DealBillRequestSchema';
|
||||
import type { DealGroupSchema } from './DealGroupSchema';
|
||||
import type { DealProductSchema } from './DealProductSchema';
|
||||
import type { DealServiceSchema } from './DealServiceSchema';
|
||||
import type { DealStatusHistorySchema } from './DealStatusHistorySchema';
|
||||
import type { PalletSchema } from './PalletSchema';
|
||||
import type { ServicePriceCategorySchema } from './ServicePriceCategorySchema';
|
||||
import type { ShippingWarehouseSchema } from './ShippingWarehouseSchema';
|
||||
import type { UserSchema } from './UserSchema';
|
||||
@@ -30,6 +32,8 @@ export type DealSchema = {
|
||||
category?: (ServicePriceCategorySchema | null);
|
||||
group?: (DealGroupSchema | null);
|
||||
manager?: (UserSchema | null);
|
||||
pallets?: Array<PalletSchema>;
|
||||
boxes?: Array<BoxSchema>;
|
||||
deliveryDate?: (string | null);
|
||||
receivingSlotDate?: (string | null);
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteBoxResponse.ts
Normal file
9
src/client/models/DeleteBoxResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteBoxResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeletePalletResponse.ts
Normal file
9
src/client/models/DeletePalletResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeletePalletResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteShippingProductResponse.ts
Normal file
9
src/client/models/DeleteShippingProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteShippingProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
12
src/client/models/PalletSchema.ts
Normal file
12
src/client/models/PalletSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BoxSchema } from './BoxSchema';
|
||||
import type { ShippingProductSchema } from './ShippingProductSchema';
|
||||
export type PalletSchema = {
|
||||
id: number;
|
||||
boxes: Array<BoxSchema>;
|
||||
shippingProducts: Array<ShippingProductSchema>;
|
||||
};
|
||||
|
||||
12
src/client/models/ShippingProductSchema.ts
Normal file
12
src/client/models/ShippingProductSchema.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductSchema } from './ProductSchema';
|
||||
export type ShippingProductSchema = {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product: ProductSchema;
|
||||
palletId: number;
|
||||
};
|
||||
|
||||
11
src/client/models/UpdateBoxRequest.ts
Normal file
11
src/client/models/UpdateBoxRequest.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateBoxInDealSchema } from './CreateBoxInDealSchema';
|
||||
import type { CreateBoxInPalletSchema } from './CreateBoxInPalletSchema';
|
||||
import type { UpdateBoxSchema } from './UpdateBoxSchema';
|
||||
export type UpdateBoxRequest = {
|
||||
data: (CreateBoxInDealSchema | CreateBoxInPalletSchema | UpdateBoxSchema);
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateBoxResponse.ts
Normal file
9
src/client/models/UpdateBoxResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoxResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateBoxSchema.ts
Normal file
10
src/client/models/UpdateBoxSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateBoxSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
boxId: (number | null);
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateShippingProductRequest.ts
Normal file
10
src/client/models/UpdateShippingProductRequest.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateShippingProductSchema } from './CreateShippingProductSchema';
|
||||
import type { UpdateShippingProductSchema } from './UpdateShippingProductSchema';
|
||||
export type UpdateShippingProductRequest = {
|
||||
data: (CreateShippingProductSchema | UpdateShippingProductSchema);
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateShippingProductResponse.ts
Normal file
9
src/client/models/UpdateShippingProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateShippingProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/UpdateShippingProductSchema.ts
Normal file
10
src/client/models/UpdateShippingProductSchema.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateShippingProductSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
shippingProductId: number;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user