feat: new barcodes system

This commit is contained in:
2024-06-01 04:26:08 +03:00
parent 0536b5d9d4
commit c4dc887305
9 changed files with 106 additions and 6 deletions

View File

@@ -0,0 +1,11 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type GetProductBarcodePdfRequest = {
productId: number;
barcode: string;
barcodeTemplateId?: (number | null);
quantity: number;
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type GetProductBarcodePdfResponse = {
base64String: string;
filename: string;
mimeType: string;
};

View File

@@ -3,6 +3,7 @@
/* tslint:disable */
/* eslint-disable */
import type { BarcodeTemplateSchema } from './BarcodeTemplateSchema';
import type { ProductImageSchema } from './ProductImageSchema';
export type ProductCreateRequest = {
name: string;
article?: (string | null);
@@ -15,5 +16,6 @@ export type ProductCreateRequest = {
size?: (string | null);
additionalInfo?: (string | null);
imageUrl?: (string | null);
images?: (Array<ProductImageSchema> | null);
};

View File

@@ -0,0 +1,10 @@
/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
export type ProductImageSchema = {
id: number;
productId: number;
imageUrl: string;
};

View File

@@ -3,6 +3,7 @@
/* tslint:disable */
/* eslint-disable */
import type { BarcodeTemplateSchema } from './BarcodeTemplateSchema';
import type { ProductImageSchema } from './ProductImageSchema';
export type ProductSchema = {
name: string;
article?: (string | null);
@@ -15,6 +16,7 @@ export type ProductSchema = {
size?: (string | null);
additionalInfo?: (string | null);
imageUrl?: (string | null);
images?: (Array<ProductImageSchema> | null);
id: number;
};