feat: barcodes printing
This commit is contained in:
@ -767,6 +767,24 @@ export const zGetDealsResponse = z.object({
|
||||
paginationInfo: zPaginationInfoSchema,
|
||||
});
|
||||
|
||||
/**
|
||||
* GetProductBarcodePdfRequest
|
||||
*/
|
||||
export const zGetProductBarcodePdfRequest = z.object({
|
||||
quantity: z.int(),
|
||||
productId: z.int(),
|
||||
barcode: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* GetProductBarcodePdfResponse
|
||||
*/
|
||||
export const zGetProductBarcodePdfResponse = z.object({
|
||||
base64String: z.string(),
|
||||
filename: z.string(),
|
||||
mimeType: z.string(),
|
||||
});
|
||||
|
||||
/**
|
||||
* GetProductsResponse
|
||||
*/
|
||||
@ -1778,6 +1796,17 @@ export const zUpdateProductData = z.object({
|
||||
*/
|
||||
export const zUpdateProductResponse2 = zUpdateProductResponse;
|
||||
|
||||
export const zGetProductBarcodePdfData = z.object({
|
||||
body: zGetProductBarcodePdfRequest,
|
||||
path: z.optional(z.never()),
|
||||
query: z.optional(z.never()),
|
||||
});
|
||||
|
||||
/**
|
||||
* Successful Response
|
||||
*/
|
||||
export const zGetProductBarcodePdfResponse2 = zGetProductBarcodePdfResponse;
|
||||
|
||||
export const zGetServicesData = z.object({
|
||||
body: z.optional(z.never()),
|
||||
path: z.optional(z.never()),
|
||||
|
||||
Reference in New Issue
Block a user