22 lines
391 B
Python
22 lines
391 B
Python
from typing import TypedDict
|
|
|
|
from models import BarcodeTemplate, Product
|
|
|
|
|
|
class BarcodeData(TypedDict):
|
|
barcode: str
|
|
template: BarcodeTemplate
|
|
product: Product
|
|
num_duplicates: int
|
|
|
|
|
|
class PdfBarcodeGenData(TypedDict):
|
|
barcode_value: str
|
|
text: str
|
|
num_duplicates: int
|
|
|
|
|
|
class PdfBarcodeImageGenData(TypedDict):
|
|
num_duplicates: int
|
|
barcode_image_url: str
|