@connectedxm/zpl-generator 0.0.4-beta.2 → 0.0.4-beta.4
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 +286 -278
- package/dist/src/validate.d.ts +17 -0
- package/package.json +1 -1
package/dist/src/validate.d.ts
CHANGED
|
@@ -448,6 +448,11 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
448
448
|
mask: z.ZodNumber;
|
|
449
449
|
}, z.core.$strip>], "type">;
|
|
450
450
|
export type Field = z.infer<typeof fieldSchema>;
|
|
451
|
+
export declare const fontSchema: z.ZodObject<{
|
|
452
|
+
name: z.ZodString;
|
|
453
|
+
alias: z.ZodString;
|
|
454
|
+
}, z.core.$strip>;
|
|
455
|
+
export type Font = z.infer<typeof fontSchema>;
|
|
451
456
|
export declare const badgeSchema: z.ZodObject<{
|
|
452
457
|
type: z.ZodLiteral<"thermal">;
|
|
453
458
|
tearOffAdjustment: z.ZodNumber;
|
|
@@ -630,6 +635,10 @@ export declare const badgeSchema: z.ZodObject<{
|
|
|
630
635
|
}>;
|
|
631
636
|
mask: z.ZodNumber;
|
|
632
637
|
}, z.core.$strip>], "type">>;
|
|
638
|
+
fonts: z.ZodArray<z.ZodObject<{
|
|
639
|
+
name: z.ZodString;
|
|
640
|
+
alias: z.ZodString;
|
|
641
|
+
}, z.core.$strip>>;
|
|
633
642
|
}, z.core.$strip>;
|
|
634
643
|
export type Badge = z.infer<typeof badgeSchema>;
|
|
635
644
|
export type ThermalBadge = Badge;
|
|
@@ -723,6 +732,10 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
|
|
|
723
732
|
errorCorrection: "M" | "L" | "H" | "Q";
|
|
724
733
|
mask: number;
|
|
725
734
|
})[];
|
|
735
|
+
fonts: {
|
|
736
|
+
name: string;
|
|
737
|
+
alias: string;
|
|
738
|
+
}[];
|
|
726
739
|
}>;
|
|
727
740
|
/**
|
|
728
741
|
* Validates a JSON object against the Badge schema and throws on error.
|
|
@@ -804,4 +817,8 @@ export declare function validateBadgeOrThrow(data: Badge): {
|
|
|
804
817
|
errorCorrection: "M" | "L" | "H" | "Q";
|
|
805
818
|
mask: number;
|
|
806
819
|
})[];
|
|
820
|
+
fonts: {
|
|
821
|
+
name: string;
|
|
822
|
+
alias: string;
|
|
823
|
+
}[];
|
|
807
824
|
};
|