feat: residues accounting
This commit is contained in:
19
src/client/models/ClientDetailedSchema.ts
Normal file
19
src/client/models/ClientDetailedSchema.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { BarcodeTemplateSchema } from './BarcodeTemplateSchema';
|
||||
import type { ClientDetailsSchema } from './ClientDetailsSchema';
|
||||
import type { ResidualBoxSchema } from './ResidualBoxSchema';
|
||||
import type { ResidualPalletSchema } from './ResidualPalletSchema';
|
||||
export type ClientDetailedSchema = {
|
||||
id: number;
|
||||
name: string;
|
||||
companyName: string;
|
||||
barcodeTemplate?: (BarcodeTemplateSchema | null);
|
||||
comment?: (string | null);
|
||||
details?: (ClientDetailsSchema | null);
|
||||
pallets?: Array<ResidualPalletSchema>;
|
||||
boxes?: Array<ResidualBoxSchema>;
|
||||
};
|
||||
|
||||
9
src/client/models/ClientGetResponse.ts
Normal file
9
src/client/models/ClientGetResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ClientDetailedSchema } from './ClientDetailedSchema';
|
||||
export type ClientGetResponse = {
|
||||
client: ClientDetailedSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateResidualBoxRequest.ts
Normal file
9
src/client/models/CreateResidualBoxRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateResidualBoxRequest = {
|
||||
clientId: (number | null);
|
||||
palletId: (number | null);
|
||||
};
|
||||
|
||||
9
src/client/models/CreateResidualBoxResponse.ts
Normal file
9
src/client/models/CreateResidualBoxResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateResidualBoxResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
8
src/client/models/CreateResidualPalletRequest.ts
Normal file
8
src/client/models/CreateResidualPalletRequest.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateResidualPalletRequest = {
|
||||
clientId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateResidualPalletResponse.ts
Normal file
9
src/client/models/CreateResidualPalletResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateResidualPalletResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateResidualProductRequest.ts
Normal file
9
src/client/models/CreateResidualProductRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { CreateResidualProductSchema } from './CreateResidualProductSchema';
|
||||
export type CreateResidualProductRequest = {
|
||||
data: CreateResidualProductSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/CreateResidualProductResponse.ts
Normal file
9
src/client/models/CreateResidualProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateResidualProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
11
src/client/models/CreateResidualProductSchema.ts
Normal file
11
src/client/models/CreateResidualProductSchema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type CreateResidualProductSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
palletId: (number | null);
|
||||
boxId: (number | null);
|
||||
};
|
||||
|
||||
@@ -7,6 +7,7 @@ export type DealGeneralInfoSchema = {
|
||||
name: string;
|
||||
isDeleted: boolean;
|
||||
isCompleted: boolean;
|
||||
isAccounted: boolean;
|
||||
comment: string;
|
||||
shippingWarehouse?: (string | null);
|
||||
deliveryDate?: (string | null);
|
||||
|
||||
9
src/client/models/DeleteResidualBoxResponse.ts
Normal file
9
src/client/models/DeleteResidualBoxResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteResidualBoxResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteResidualPalletResponse.ts
Normal file
9
src/client/models/DeleteResidualPalletResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteResidualPalletResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/DeleteResidualProductResponse.ts
Normal file
9
src/client/models/DeleteResidualProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type DeleteResidualProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
10
src/client/models/GetResidualBoxResponse.ts
Normal file
10
src/client/models/GetResidualBoxResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ResidualBoxSchema } from './ResidualBoxSchema';
|
||||
export type GetResidualBoxResponse = {
|
||||
box: ResidualBoxSchema;
|
||||
clientId: number;
|
||||
};
|
||||
|
||||
10
src/client/models/GetResidualPalletResponse.ts
Normal file
10
src/client/models/GetResidualPalletResponse.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ResidualPalletSchema } from './ResidualPalletSchema';
|
||||
export type GetResidualPalletResponse = {
|
||||
pallet: ResidualPalletSchema;
|
||||
clientId: number;
|
||||
};
|
||||
|
||||
12
src/client/models/LoadReceiptRequest.ts
Normal file
12
src/client/models/LoadReceiptRequest.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ReceiptBoxSchema } from './ReceiptBoxSchema';
|
||||
import type { ReceiptPalletSchema } from './ReceiptPalletSchema';
|
||||
export type LoadReceiptRequest = {
|
||||
pallets: Array<ReceiptPalletSchema>;
|
||||
boxes: Array<ReceiptBoxSchema>;
|
||||
clientId: number;
|
||||
};
|
||||
|
||||
9
src/client/models/LoadReceiptResponse.ts
Normal file
9
src/client/models/LoadReceiptResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type LoadReceiptResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/ProductAndQuantitySchema.ts
Normal file
9
src/client/models/ProductAndQuantitySchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type ProductAndQuantitySchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
};
|
||||
|
||||
9
src/client/models/ReceiptBoxSchema.ts
Normal file
9
src/client/models/ReceiptBoxSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductAndQuantitySchema } from './ProductAndQuantitySchema';
|
||||
export type ReceiptBoxSchema = {
|
||||
products: Array<ProductAndQuantitySchema>;
|
||||
};
|
||||
|
||||
11
src/client/models/ReceiptPalletSchema.ts
Normal file
11
src/client/models/ReceiptPalletSchema.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ProductAndQuantitySchema } from './ProductAndQuantitySchema';
|
||||
import type { ReceiptBoxSchema } from './ReceiptBoxSchema';
|
||||
export type ReceiptPalletSchema = {
|
||||
products: Array<ProductAndQuantitySchema>;
|
||||
boxes: Array<ReceiptBoxSchema>;
|
||||
};
|
||||
|
||||
13
src/client/models/ResidualBoxSchema.ts
Normal file
13
src/client/models/ResidualBoxSchema.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ResidualProductSchema } from './ResidualProductSchema';
|
||||
export type ResidualBoxSchema = {
|
||||
id: number;
|
||||
createdAt: string;
|
||||
palletId: (number | null);
|
||||
clientId: (number | null);
|
||||
residualProducts: Array<ResidualProductSchema>;
|
||||
};
|
||||
|
||||
13
src/client/models/ResidualPalletSchema.ts
Normal file
13
src/client/models/ResidualPalletSchema.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { ResidualBoxSchema } from './ResidualBoxSchema';
|
||||
import type { ResidualProductSchema } from './ResidualProductSchema';
|
||||
export type ResidualPalletSchema = {
|
||||
id: number;
|
||||
createdAt: string;
|
||||
boxes: Array<ResidualBoxSchema>;
|
||||
residualProducts: Array<ResidualProductSchema>;
|
||||
};
|
||||
|
||||
13
src/client/models/ResidualProductSchema.ts
Normal file
13
src/client/models/ResidualProductSchema.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 ResidualProductSchema = {
|
||||
id: number;
|
||||
quantity: number;
|
||||
product: ProductSchema;
|
||||
palletId: (number | null);
|
||||
boxId: (number | null);
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateResidualProductRequest.ts
Normal file
9
src/client/models/UpdateResidualProductRequest.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
import type { UpdateResidualProductSchema } from './UpdateResidualProductSchema';
|
||||
export type UpdateResidualProductRequest = {
|
||||
data: UpdateResidualProductSchema;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateResidualProductResponse.ts
Normal file
9
src/client/models/UpdateResidualProductResponse.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateResidualProductResponse = {
|
||||
ok: boolean;
|
||||
message: string;
|
||||
};
|
||||
|
||||
9
src/client/models/UpdateResidualProductSchema.ts
Normal file
9
src/client/models/UpdateResidualProductSchema.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
/* generated using openapi-typescript-codegen -- do not edit */
|
||||
/* istanbul ignore file */
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
export type UpdateResidualProductSchema = {
|
||||
productId: (number | null);
|
||||
quantity: (number | null);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user