@connectedxm/zpl-generator 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +773 -744
- package/dist/src/validate.d.ts +28 -0
- package/package.json +1 -1
package/dist/src/validate.d.ts
CHANGED
|
@@ -157,6 +157,17 @@ export declare const textAlignmentSchema: z.ZodEnum<{
|
|
|
157
157
|
readonly Justified: "J";
|
|
158
158
|
}>;
|
|
159
159
|
export type TextAlignment = z.infer<typeof textAlignmentSchema>;
|
|
160
|
+
export declare const BarcodeAlignment: {
|
|
161
|
+
readonly Left: "L";
|
|
162
|
+
readonly Right: "R";
|
|
163
|
+
readonly Center: "C";
|
|
164
|
+
};
|
|
165
|
+
export declare const barcodeAlignmentSchema: z.ZodEnum<{
|
|
166
|
+
readonly Left: "L";
|
|
167
|
+
readonly Right: "R";
|
|
168
|
+
readonly Center: "C";
|
|
169
|
+
}>;
|
|
170
|
+
export type BarcodeAlignment = z.infer<typeof barcodeAlignmentSchema>;
|
|
160
171
|
export declare const QRCodeErrorCorrection: {
|
|
161
172
|
readonly Highest: "H";
|
|
162
173
|
readonly High: "Q";
|
|
@@ -318,6 +329,11 @@ export declare const barcodeFieldSchema: z.ZodObject<{
|
|
|
318
329
|
readonly Yes: "Y";
|
|
319
330
|
readonly No: "N";
|
|
320
331
|
}>;
|
|
332
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
333
|
+
readonly Left: "L";
|
|
334
|
+
readonly Right: "R";
|
|
335
|
+
readonly Center: "C";
|
|
336
|
+
}>>;
|
|
321
337
|
}, z.core.$strip>;
|
|
322
338
|
export type BarcodeField = z.infer<typeof barcodeFieldSchema>;
|
|
323
339
|
export declare const qrcodeFieldSchema: z.ZodObject<{
|
|
@@ -471,6 +487,11 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
471
487
|
readonly Yes: "Y";
|
|
472
488
|
readonly No: "N";
|
|
473
489
|
}>;
|
|
490
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
491
|
+
readonly Left: "L";
|
|
492
|
+
readonly Right: "R";
|
|
493
|
+
readonly Center: "C";
|
|
494
|
+
}>>;
|
|
474
495
|
}, z.core.$strip>, z.ZodObject<{
|
|
475
496
|
name: z.ZodString;
|
|
476
497
|
x: z.ZodNumber;
|
|
@@ -727,6 +748,11 @@ export declare const badgeSchema: z.ZodObject<{
|
|
|
727
748
|
readonly Yes: "Y";
|
|
728
749
|
readonly No: "N";
|
|
729
750
|
}>;
|
|
751
|
+
alignment: z.ZodOptional<z.ZodEnum<{
|
|
752
|
+
readonly Left: "L";
|
|
753
|
+
readonly Right: "R";
|
|
754
|
+
readonly Center: "C";
|
|
755
|
+
}>>;
|
|
730
756
|
}, z.core.$strip>, z.ZodObject<{
|
|
731
757
|
name: z.ZodString;
|
|
732
758
|
x: z.ZodNumber;
|
|
@@ -886,6 +912,7 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
|
|
|
886
912
|
line: "N" | "Y";
|
|
887
913
|
lineAbove: "N" | "Y";
|
|
888
914
|
checkDigit: "N" | "Y";
|
|
915
|
+
alignment?: "R" | "C" | "L" | undefined;
|
|
889
916
|
} | {
|
|
890
917
|
name: string;
|
|
891
918
|
x: number;
|
|
@@ -994,6 +1021,7 @@ export declare function validateBadgeOrThrow(data: Badge): {
|
|
|
994
1021
|
line: "N" | "Y";
|
|
995
1022
|
lineAbove: "N" | "Y";
|
|
996
1023
|
checkDigit: "N" | "Y";
|
|
1024
|
+
alignment?: "R" | "C" | "L" | undefined;
|
|
997
1025
|
} | {
|
|
998
1026
|
name: string;
|
|
999
1027
|
x: number;
|