feat: a few shipping products in box

This commit is contained in:
2025-03-01 17:05:27 +04:00
parent d37dce7980
commit 17e6c5f23a
20 changed files with 405 additions and 356 deletions

View File

@@ -2,12 +2,11 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { ProductSchema } from './ProductSchema';
import type { ShippingProductSchema } from './ShippingProductSchema';
export type BoxSchema = {
id: number;
quantity: number;
product: (ProductSchema | null);
palletId: (number | null);
cardId: (number | null);
shippingProducts: Array<ShippingProductSchema>;
};

View File

@@ -4,8 +4,7 @@
/* eslint-disable */
import type { CreateBoxInCardSchema } from './CreateBoxInCardSchema';
import type { CreateBoxInPalletSchema } from './CreateBoxInPalletSchema';
import type { UpdateBoxSchema } from './UpdateBoxSchema';
export type UpdateBoxRequest = {
data: (CreateBoxInCardSchema | CreateBoxInPalletSchema | UpdateBoxSchema);
export type CreateBoxRequest = {
data: (CreateBoxInCardSchema | CreateBoxInPalletSchema);
};

View File

@@ -2,7 +2,7 @@
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type UpdateBoxResponse = {
export type CreateBoxResponse = {
ok: boolean;
message: string;
};

View File

@@ -5,6 +5,7 @@
export type CreateShippingProductSchema = {
productId: (number | null);
quantity: (number | null);
palletId: number;
palletId?: (number | null);
boxId?: (number | null);
};

View File

@@ -7,6 +7,7 @@ export type ShippingProductSchema = {
id: number;
quantity: number;
product: ProductSchema;
palletId: number;
palletId: (number | null);
boxId: (number | null);
};

View File

@@ -1,10 +0,0 @@
/* 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);
};