@connectedxm/zpl-generator 0.0.1 → 0.0.2-beta.3

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.
@@ -0,0 +1,1175 @@
1
+ import { z } from 'zod';
2
+ export declare const BackfeedAction: {
3
+ readonly Off: "O";
4
+ readonly Normal: "N";
5
+ readonly BackfeedAfter: "A";
6
+ readonly BackfeedBefore: "B";
7
+ readonly Backfeed10: "10";
8
+ readonly Backfeed20: "20";
9
+ readonly Backfeed30: "30";
10
+ readonly Backfeed40: "40";
11
+ readonly Backfeed50: "50";
12
+ readonly Backfeed60: "60";
13
+ readonly Backfeed70: "70";
14
+ readonly Backfeed80: "80";
15
+ readonly Backfeed90: "90";
16
+ };
17
+ export declare const backfeedActionSchema: z.ZodNativeEnum<{
18
+ readonly Off: "O";
19
+ readonly Normal: "N";
20
+ readonly BackfeedAfter: "A";
21
+ readonly BackfeedBefore: "B";
22
+ readonly Backfeed10: "10";
23
+ readonly Backfeed20: "20";
24
+ readonly Backfeed30: "30";
25
+ readonly Backfeed40: "40";
26
+ readonly Backfeed50: "50";
27
+ readonly Backfeed60: "60";
28
+ readonly Backfeed70: "70";
29
+ readonly Backfeed80: "80";
30
+ readonly Backfeed90: "90";
31
+ }>;
32
+ export type BackfeedAction = z.infer<typeof backfeedActionSchema>;
33
+ export declare const MediaType: {
34
+ readonly Continuous: "N";
35
+ readonly VariableLengthContinuous: "V";
36
+ readonly NonContinuousWebSensing: "W";
37
+ readonly NonContinuousWebSensingAlt: "Y";
38
+ readonly NonContinuousMarkSensing: "M";
39
+ readonly AutoDetect: "A";
40
+ };
41
+ export declare const mediaTypeSchema: z.ZodNativeEnum<{
42
+ readonly Continuous: "N";
43
+ readonly VariableLengthContinuous: "V";
44
+ readonly NonContinuousWebSensing: "W";
45
+ readonly NonContinuousWebSensingAlt: "Y";
46
+ readonly NonContinuousMarkSensing: "M";
47
+ readonly AutoDetect: "A";
48
+ }>;
49
+ export type MediaType = z.infer<typeof mediaTypeSchema>;
50
+ export declare const ThermalMediaType: {
51
+ readonly DirectThermal: "D";
52
+ readonly ThermalTransfer: "T";
53
+ };
54
+ export declare const thermalMediaTypeSchema: z.ZodNativeEnum<{
55
+ readonly DirectThermal: "D";
56
+ readonly ThermalTransfer: "T";
57
+ }>;
58
+ export type ThermalMediaType = z.infer<typeof thermalMediaTypeSchema>;
59
+ export declare const PrintOrientation: {
60
+ readonly Invert: "I";
61
+ readonly Normal: "N";
62
+ };
63
+ export declare const printOrientationSchema: z.ZodNativeEnum<{
64
+ readonly Invert: "I";
65
+ readonly Normal: "N";
66
+ }>;
67
+ export type PrintOrientation = z.infer<typeof printOrientationSchema>;
68
+ export declare const MirrorMode: {
69
+ readonly Mirror: "Y";
70
+ readonly Normal: "N";
71
+ };
72
+ export declare const mirrorModeSchema: z.ZodNativeEnum<{
73
+ readonly Mirror: "Y";
74
+ readonly Normal: "N";
75
+ }>;
76
+ export type MirrorMode = z.infer<typeof mirrorModeSchema>;
77
+ export declare const PrintDensityAdjustment: {
78
+ readonly Normal: "A";
79
+ readonly Half: "B";
80
+ };
81
+ export declare const printDensityAdjustmentSchema: z.ZodNativeEnum<{
82
+ readonly Normal: "A";
83
+ readonly Half: "B";
84
+ }>;
85
+ export type PrintDensityAdjustment = z.infer<typeof printDensityAdjustmentSchema>;
86
+ export declare const ReverseMode: {
87
+ readonly Enable: "Y";
88
+ readonly Disable: "N";
89
+ };
90
+ export declare const reverseModeSchema: z.ZodNativeEnum<{
91
+ readonly Enable: "Y";
92
+ readonly Disable: "N";
93
+ }>;
94
+ export type ReverseMode = z.infer<typeof reverseModeSchema>;
95
+ export declare const PostPrintMode: {
96
+ readonly TearOff: "T";
97
+ readonly PeelOff: "P";
98
+ readonly Rewind: "R";
99
+ readonly Applicator: "A";
100
+ readonly Cut: "C";
101
+ readonly DelayedCut: "D";
102
+ readonly EncodeRFID: "F";
103
+ readonly Kiosk: "K";
104
+ };
105
+ export declare const postPrintModeSchema: z.ZodNativeEnum<{
106
+ readonly TearOff: "T";
107
+ readonly PeelOff: "P";
108
+ readonly Rewind: "R";
109
+ readonly Applicator: "A";
110
+ readonly Cut: "C";
111
+ readonly DelayedCut: "D";
112
+ readonly EncodeRFID: "F";
113
+ readonly Kiosk: "K";
114
+ }>;
115
+ export type PostPrintMode = z.infer<typeof postPrintModeSchema>;
116
+ export declare const PrepeelMode: {
117
+ readonly Prepeel: "Y";
118
+ readonly NoPrepeel: "N";
119
+ };
120
+ export declare const prepeelModeSchema: z.ZodNativeEnum<{
121
+ readonly Prepeel: "Y";
122
+ readonly NoPrepeel: "N";
123
+ }>;
124
+ export type PrepeelMode = z.infer<typeof prepeelModeSchema>;
125
+ export declare const AllMediaMode: {
126
+ readonly AllMedia: "Y";
127
+ readonly ContinuousOnly: "N";
128
+ };
129
+ export declare const allMediaModeSchema: z.ZodNativeEnum<{
130
+ readonly AllMedia: "Y";
131
+ readonly ContinuousOnly: "N";
132
+ }>;
133
+ export type AllMediaMode = z.infer<typeof allMediaModeSchema>;
134
+ export declare const FontOrientation: {
135
+ readonly NoRotation: "N";
136
+ readonly Rotate90: "R";
137
+ readonly Rotate180: "I";
138
+ readonly Rotate270: "B";
139
+ };
140
+ export declare const fontOrientationSchema: z.ZodNativeEnum<{
141
+ readonly NoRotation: "N";
142
+ readonly Rotate90: "R";
143
+ readonly Rotate180: "I";
144
+ readonly Rotate270: "B";
145
+ }>;
146
+ export type FontOrientation = z.infer<typeof fontOrientationSchema>;
147
+ export declare const TextAlignment: {
148
+ readonly Left: "L";
149
+ readonly Right: "R";
150
+ readonly Center: "C";
151
+ readonly Justified: "J";
152
+ };
153
+ export declare const textAlignmentSchema: z.ZodNativeEnum<{
154
+ readonly Left: "L";
155
+ readonly Right: "R";
156
+ readonly Center: "C";
157
+ readonly Justified: "J";
158
+ }>;
159
+ export type TextAlignment = z.infer<typeof textAlignmentSchema>;
160
+ export declare const QRCodeErrorCorrection: {
161
+ readonly Highest: "H";
162
+ readonly High: "Q";
163
+ readonly Medium: "M";
164
+ readonly Lower: "L";
165
+ };
166
+ export declare const qrCodeErrorCorrectionSchema: z.ZodNativeEnum<{
167
+ readonly Highest: "H";
168
+ readonly High: "Q";
169
+ readonly Medium: "M";
170
+ readonly Lower: "L";
171
+ }>;
172
+ export type QRCodeErrorCorrection = z.infer<typeof qrCodeErrorCorrectionSchema>;
173
+ export declare const YesNo: {
174
+ readonly Yes: "Y";
175
+ readonly No: "N";
176
+ };
177
+ export declare const yesNoSchema: z.ZodNativeEnum<{
178
+ readonly Yes: "Y";
179
+ readonly No: "N";
180
+ }>;
181
+ export type YesNo = z.infer<typeof yesNoSchema>;
182
+ export declare const VerticalAlignment: {
183
+ readonly Start: "start";
184
+ readonly End: "end";
185
+ };
186
+ export declare const verticalAlignmentSchema: z.ZodNativeEnum<{
187
+ readonly Start: "start";
188
+ readonly End: "end";
189
+ }>;
190
+ export type VerticalAlignment = z.infer<typeof verticalAlignmentSchema>;
191
+ export declare const wordWidthSchema: z.ZodObject<{
192
+ word: z.ZodString;
193
+ width: z.ZodNumber;
194
+ spaceWidth: z.ZodNumber;
195
+ }, "strip", z.ZodTypeAny, {
196
+ word: string;
197
+ width: number;
198
+ spaceWidth: number;
199
+ }, {
200
+ word: string;
201
+ width: number;
202
+ spaceWidth: number;
203
+ }>;
204
+ export type WordWidth = z.infer<typeof wordWidthSchema>;
205
+ export declare const textFieldSchema: z.ZodObject<{
206
+ name: z.ZodString;
207
+ x: z.ZodNumber;
208
+ y: z.ZodNumber;
209
+ data: z.ZodString;
210
+ } & {
211
+ type: z.ZodLiteral<"text">;
212
+ font: z.ZodString;
213
+ fontOrientation: z.ZodNativeEnum<{
214
+ readonly NoRotation: "N";
215
+ readonly Rotate90: "R";
216
+ readonly Rotate180: "I";
217
+ readonly Rotate270: "B";
218
+ }>;
219
+ fontHeight: z.ZodNumber;
220
+ fontWidth: z.ZodOptional<z.ZodNumber>;
221
+ maxWidth: z.ZodNumber;
222
+ maxLines: z.ZodNumber;
223
+ lineSpacing: z.ZodNumber;
224
+ alignment: z.ZodNativeEnum<{
225
+ readonly Left: "L";
226
+ readonly Right: "R";
227
+ readonly Center: "C";
228
+ readonly Justified: "J";
229
+ }>;
230
+ hangingIndent: z.ZodNumber;
231
+ verticalAlignment: z.ZodNativeEnum<{
232
+ readonly Start: "start";
233
+ readonly End: "end";
234
+ }>;
235
+ wordWidths: z.ZodOptional<z.ZodArray<z.ZodObject<{
236
+ word: z.ZodString;
237
+ width: z.ZodNumber;
238
+ spaceWidth: z.ZodNumber;
239
+ }, "strip", z.ZodTypeAny, {
240
+ word: string;
241
+ width: number;
242
+ spaceWidth: number;
243
+ }, {
244
+ word: string;
245
+ width: number;
246
+ spaceWidth: number;
247
+ }>, "many">>;
248
+ }, "strip", z.ZodTypeAny, {
249
+ type: "text";
250
+ name: string;
251
+ x: number;
252
+ y: number;
253
+ data: string;
254
+ font: string;
255
+ fontOrientation: "N" | "B" | "I" | "R";
256
+ fontHeight: number;
257
+ maxWidth: number;
258
+ maxLines: number;
259
+ lineSpacing: number;
260
+ alignment: "R" | "C" | "L" | "J";
261
+ hangingIndent: number;
262
+ verticalAlignment: "start" | "end";
263
+ fontWidth?: number | undefined;
264
+ wordWidths?: {
265
+ word: string;
266
+ width: number;
267
+ spaceWidth: number;
268
+ }[] | undefined;
269
+ }, {
270
+ type: "text";
271
+ name: string;
272
+ x: number;
273
+ y: number;
274
+ data: string;
275
+ font: string;
276
+ fontOrientation: "N" | "B" | "I" | "R";
277
+ fontHeight: number;
278
+ maxWidth: number;
279
+ maxLines: number;
280
+ lineSpacing: number;
281
+ alignment: "R" | "C" | "L" | "J";
282
+ hangingIndent: number;
283
+ verticalAlignment: "start" | "end";
284
+ fontWidth?: number | undefined;
285
+ wordWidths?: {
286
+ word: string;
287
+ width: number;
288
+ spaceWidth: number;
289
+ }[] | undefined;
290
+ }>;
291
+ export type TextField = z.infer<typeof textFieldSchema>;
292
+ export declare const barcodeFieldSchema: z.ZodObject<{
293
+ name: z.ZodString;
294
+ x: z.ZodNumber;
295
+ y: z.ZodNumber;
296
+ data: z.ZodString;
297
+ } & {
298
+ type: z.ZodLiteral<"barcode">;
299
+ barWidth: z.ZodNumber;
300
+ orientation: z.ZodNativeEnum<{
301
+ readonly NoRotation: "N";
302
+ readonly Rotate90: "R";
303
+ readonly Rotate180: "I";
304
+ readonly Rotate270: "B";
305
+ }>;
306
+ height: z.ZodNumber;
307
+ line: z.ZodNativeEnum<{
308
+ readonly Yes: "Y";
309
+ readonly No: "N";
310
+ }>;
311
+ lineAbove: z.ZodNativeEnum<{
312
+ readonly Yes: "Y";
313
+ readonly No: "N";
314
+ }>;
315
+ checkDigit: z.ZodNativeEnum<{
316
+ readonly Yes: "Y";
317
+ readonly No: "N";
318
+ }>;
319
+ }, "strip", z.ZodTypeAny, {
320
+ type: "barcode";
321
+ name: string;
322
+ x: number;
323
+ y: number;
324
+ data: string;
325
+ barWidth: number;
326
+ orientation: "N" | "B" | "I" | "R";
327
+ height: number;
328
+ line: "N" | "Y";
329
+ lineAbove: "N" | "Y";
330
+ checkDigit: "N" | "Y";
331
+ }, {
332
+ type: "barcode";
333
+ name: string;
334
+ x: number;
335
+ y: number;
336
+ data: string;
337
+ barWidth: number;
338
+ orientation: "N" | "B" | "I" | "R";
339
+ height: number;
340
+ line: "N" | "Y";
341
+ lineAbove: "N" | "Y";
342
+ checkDigit: "N" | "Y";
343
+ }>;
344
+ export type BarcodeField = z.infer<typeof barcodeFieldSchema>;
345
+ export declare const qrcodeFieldSchema: z.ZodObject<{
346
+ name: z.ZodString;
347
+ x: z.ZodNumber;
348
+ y: z.ZodNumber;
349
+ data: z.ZodString;
350
+ } & {
351
+ type: z.ZodLiteral<"qrcode">;
352
+ orientation: z.ZodLiteral<"N">;
353
+ model: z.ZodLiteral<"2">;
354
+ magnification: z.ZodNumber;
355
+ errorCorrection: z.ZodNativeEnum<{
356
+ readonly Highest: "H";
357
+ readonly High: "Q";
358
+ readonly Medium: "M";
359
+ readonly Lower: "L";
360
+ }>;
361
+ mask: z.ZodNumber;
362
+ }, "strip", z.ZodTypeAny, {
363
+ type: "qrcode";
364
+ name: string;
365
+ x: number;
366
+ y: number;
367
+ data: string;
368
+ orientation: "N";
369
+ model: "2";
370
+ magnification: number;
371
+ errorCorrection: "M" | "L" | "H" | "Q";
372
+ mask: number;
373
+ }, {
374
+ type: "qrcode";
375
+ name: string;
376
+ x: number;
377
+ y: number;
378
+ data: string;
379
+ orientation: "N";
380
+ model: "2";
381
+ magnification: number;
382
+ errorCorrection: "M" | "L" | "H" | "Q";
383
+ mask: number;
384
+ }>;
385
+ export type QrcodeField = z.infer<typeof qrcodeFieldSchema>;
386
+ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
387
+ name: z.ZodString;
388
+ x: z.ZodNumber;
389
+ y: z.ZodNumber;
390
+ data: z.ZodString;
391
+ } & {
392
+ type: z.ZodLiteral<"text">;
393
+ font: z.ZodString;
394
+ fontOrientation: z.ZodNativeEnum<{
395
+ readonly NoRotation: "N";
396
+ readonly Rotate90: "R";
397
+ readonly Rotate180: "I";
398
+ readonly Rotate270: "B";
399
+ }>;
400
+ fontHeight: z.ZodNumber;
401
+ fontWidth: z.ZodOptional<z.ZodNumber>;
402
+ maxWidth: z.ZodNumber;
403
+ maxLines: z.ZodNumber;
404
+ lineSpacing: z.ZodNumber;
405
+ alignment: z.ZodNativeEnum<{
406
+ readonly Left: "L";
407
+ readonly Right: "R";
408
+ readonly Center: "C";
409
+ readonly Justified: "J";
410
+ }>;
411
+ hangingIndent: z.ZodNumber;
412
+ verticalAlignment: z.ZodNativeEnum<{
413
+ readonly Start: "start";
414
+ readonly End: "end";
415
+ }>;
416
+ wordWidths: z.ZodOptional<z.ZodArray<z.ZodObject<{
417
+ word: z.ZodString;
418
+ width: z.ZodNumber;
419
+ spaceWidth: z.ZodNumber;
420
+ }, "strip", z.ZodTypeAny, {
421
+ word: string;
422
+ width: number;
423
+ spaceWidth: number;
424
+ }, {
425
+ word: string;
426
+ width: number;
427
+ spaceWidth: number;
428
+ }>, "many">>;
429
+ }, "strip", z.ZodTypeAny, {
430
+ type: "text";
431
+ name: string;
432
+ x: number;
433
+ y: number;
434
+ data: string;
435
+ font: string;
436
+ fontOrientation: "N" | "B" | "I" | "R";
437
+ fontHeight: number;
438
+ maxWidth: number;
439
+ maxLines: number;
440
+ lineSpacing: number;
441
+ alignment: "R" | "C" | "L" | "J";
442
+ hangingIndent: number;
443
+ verticalAlignment: "start" | "end";
444
+ fontWidth?: number | undefined;
445
+ wordWidths?: {
446
+ word: string;
447
+ width: number;
448
+ spaceWidth: number;
449
+ }[] | undefined;
450
+ }, {
451
+ type: "text";
452
+ name: string;
453
+ x: number;
454
+ y: number;
455
+ data: string;
456
+ font: string;
457
+ fontOrientation: "N" | "B" | "I" | "R";
458
+ fontHeight: number;
459
+ maxWidth: number;
460
+ maxLines: number;
461
+ lineSpacing: number;
462
+ alignment: "R" | "C" | "L" | "J";
463
+ hangingIndent: number;
464
+ verticalAlignment: "start" | "end";
465
+ fontWidth?: number | undefined;
466
+ wordWidths?: {
467
+ word: string;
468
+ width: number;
469
+ spaceWidth: number;
470
+ }[] | undefined;
471
+ }>, z.ZodObject<{
472
+ name: z.ZodString;
473
+ x: z.ZodNumber;
474
+ y: z.ZodNumber;
475
+ data: z.ZodString;
476
+ } & {
477
+ type: z.ZodLiteral<"barcode">;
478
+ barWidth: z.ZodNumber;
479
+ orientation: z.ZodNativeEnum<{
480
+ readonly NoRotation: "N";
481
+ readonly Rotate90: "R";
482
+ readonly Rotate180: "I";
483
+ readonly Rotate270: "B";
484
+ }>;
485
+ height: z.ZodNumber;
486
+ line: z.ZodNativeEnum<{
487
+ readonly Yes: "Y";
488
+ readonly No: "N";
489
+ }>;
490
+ lineAbove: z.ZodNativeEnum<{
491
+ readonly Yes: "Y";
492
+ readonly No: "N";
493
+ }>;
494
+ checkDigit: z.ZodNativeEnum<{
495
+ readonly Yes: "Y";
496
+ readonly No: "N";
497
+ }>;
498
+ }, "strip", z.ZodTypeAny, {
499
+ type: "barcode";
500
+ name: string;
501
+ x: number;
502
+ y: number;
503
+ data: string;
504
+ barWidth: number;
505
+ orientation: "N" | "B" | "I" | "R";
506
+ height: number;
507
+ line: "N" | "Y";
508
+ lineAbove: "N" | "Y";
509
+ checkDigit: "N" | "Y";
510
+ }, {
511
+ type: "barcode";
512
+ name: string;
513
+ x: number;
514
+ y: number;
515
+ data: string;
516
+ barWidth: number;
517
+ orientation: "N" | "B" | "I" | "R";
518
+ height: number;
519
+ line: "N" | "Y";
520
+ lineAbove: "N" | "Y";
521
+ checkDigit: "N" | "Y";
522
+ }>, z.ZodObject<{
523
+ name: z.ZodString;
524
+ x: z.ZodNumber;
525
+ y: z.ZodNumber;
526
+ data: z.ZodString;
527
+ } & {
528
+ type: z.ZodLiteral<"qrcode">;
529
+ orientation: z.ZodLiteral<"N">;
530
+ model: z.ZodLiteral<"2">;
531
+ magnification: z.ZodNumber;
532
+ errorCorrection: z.ZodNativeEnum<{
533
+ readonly Highest: "H";
534
+ readonly High: "Q";
535
+ readonly Medium: "M";
536
+ readonly Lower: "L";
537
+ }>;
538
+ mask: z.ZodNumber;
539
+ }, "strip", z.ZodTypeAny, {
540
+ type: "qrcode";
541
+ name: string;
542
+ x: number;
543
+ y: number;
544
+ data: string;
545
+ orientation: "N";
546
+ model: "2";
547
+ magnification: number;
548
+ errorCorrection: "M" | "L" | "H" | "Q";
549
+ mask: number;
550
+ }, {
551
+ type: "qrcode";
552
+ name: string;
553
+ x: number;
554
+ y: number;
555
+ data: string;
556
+ orientation: "N";
557
+ model: "2";
558
+ magnification: number;
559
+ errorCorrection: "M" | "L" | "H" | "Q";
560
+ mask: number;
561
+ }>]>;
562
+ export type Field = z.infer<typeof fieldSchema>;
563
+ export declare const badgeSchema: z.ZodObject<{
564
+ type: z.ZodLiteral<"thermal">;
565
+ tearOffAdjustment: z.ZodNumber;
566
+ backfeedActions: z.ZodNativeEnum<{
567
+ readonly Off: "O";
568
+ readonly Normal: "N";
569
+ readonly BackfeedAfter: "A";
570
+ readonly BackfeedBefore: "B";
571
+ readonly Backfeed10: "10";
572
+ readonly Backfeed20: "20";
573
+ readonly Backfeed30: "30";
574
+ readonly Backfeed40: "40";
575
+ readonly Backfeed50: "50";
576
+ readonly Backfeed60: "60";
577
+ readonly Backfeed70: "70";
578
+ readonly Backfeed80: "80";
579
+ readonly Backfeed90: "90";
580
+ }>;
581
+ media: z.ZodNativeEnum<{
582
+ readonly Continuous: "N";
583
+ readonly VariableLengthContinuous: "V";
584
+ readonly NonContinuousWebSensing: "W";
585
+ readonly NonContinuousWebSensingAlt: "Y";
586
+ readonly NonContinuousMarkSensing: "M";
587
+ readonly AutoDetect: "A";
588
+ }>;
589
+ mediaOffset: z.ZodNumber;
590
+ thermalMediaType: z.ZodNativeEnum<{
591
+ readonly DirectThermal: "D";
592
+ readonly ThermalTransfer: "T";
593
+ }>;
594
+ printOrientation: z.ZodNativeEnum<{
595
+ readonly Invert: "I";
596
+ readonly Normal: "N";
597
+ }>;
598
+ mirror: z.ZodNativeEnum<{
599
+ readonly Mirror: "Y";
600
+ readonly Normal: "N";
601
+ }>;
602
+ labelHomeX: z.ZodNumber;
603
+ labelHomeY: z.ZodNumber;
604
+ printDensityAdjustment: z.ZodNativeEnum<{
605
+ readonly Normal: "A";
606
+ readonly Half: "B";
607
+ }>;
608
+ printSpeed: z.ZodNumber;
609
+ slewSpeed: z.ZodNumber;
610
+ backfeedSpeed: z.ZodNumber;
611
+ darkness: z.ZodNumber;
612
+ reverse: z.ZodNativeEnum<{
613
+ readonly Enable: "Y";
614
+ readonly Disable: "N";
615
+ }>;
616
+ postPrintMode: z.ZodNativeEnum<{
617
+ readonly TearOff: "T";
618
+ readonly PeelOff: "P";
619
+ readonly Rewind: "R";
620
+ readonly Applicator: "A";
621
+ readonly Cut: "C";
622
+ readonly DelayedCut: "D";
623
+ readonly EncodeRFID: "F";
624
+ readonly Kiosk: "K";
625
+ }>;
626
+ prepeel: z.ZodNativeEnum<{
627
+ readonly Prepeel: "Y";
628
+ readonly NoPrepeel: "N";
629
+ }>;
630
+ printWidth: z.ZodNumber;
631
+ labelLength: z.ZodNumber;
632
+ allMedia: z.ZodNativeEnum<{
633
+ readonly AllMedia: "Y";
634
+ readonly ContinuousOnly: "N";
635
+ }>;
636
+ fields: z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
637
+ name: z.ZodString;
638
+ x: z.ZodNumber;
639
+ y: z.ZodNumber;
640
+ data: z.ZodString;
641
+ } & {
642
+ type: z.ZodLiteral<"text">;
643
+ font: z.ZodString;
644
+ fontOrientation: z.ZodNativeEnum<{
645
+ readonly NoRotation: "N";
646
+ readonly Rotate90: "R";
647
+ readonly Rotate180: "I";
648
+ readonly Rotate270: "B";
649
+ }>;
650
+ fontHeight: z.ZodNumber;
651
+ fontWidth: z.ZodOptional<z.ZodNumber>;
652
+ maxWidth: z.ZodNumber;
653
+ maxLines: z.ZodNumber;
654
+ lineSpacing: z.ZodNumber;
655
+ alignment: z.ZodNativeEnum<{
656
+ readonly Left: "L";
657
+ readonly Right: "R";
658
+ readonly Center: "C";
659
+ readonly Justified: "J";
660
+ }>;
661
+ hangingIndent: z.ZodNumber;
662
+ verticalAlignment: z.ZodNativeEnum<{
663
+ readonly Start: "start";
664
+ readonly End: "end";
665
+ }>;
666
+ wordWidths: z.ZodOptional<z.ZodArray<z.ZodObject<{
667
+ word: z.ZodString;
668
+ width: z.ZodNumber;
669
+ spaceWidth: z.ZodNumber;
670
+ }, "strip", z.ZodTypeAny, {
671
+ word: string;
672
+ width: number;
673
+ spaceWidth: number;
674
+ }, {
675
+ word: string;
676
+ width: number;
677
+ spaceWidth: number;
678
+ }>, "many">>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ type: "text";
681
+ name: string;
682
+ x: number;
683
+ y: number;
684
+ data: string;
685
+ font: string;
686
+ fontOrientation: "N" | "B" | "I" | "R";
687
+ fontHeight: number;
688
+ maxWidth: number;
689
+ maxLines: number;
690
+ lineSpacing: number;
691
+ alignment: "R" | "C" | "L" | "J";
692
+ hangingIndent: number;
693
+ verticalAlignment: "start" | "end";
694
+ fontWidth?: number | undefined;
695
+ wordWidths?: {
696
+ word: string;
697
+ width: number;
698
+ spaceWidth: number;
699
+ }[] | undefined;
700
+ }, {
701
+ type: "text";
702
+ name: string;
703
+ x: number;
704
+ y: number;
705
+ data: string;
706
+ font: string;
707
+ fontOrientation: "N" | "B" | "I" | "R";
708
+ fontHeight: number;
709
+ maxWidth: number;
710
+ maxLines: number;
711
+ lineSpacing: number;
712
+ alignment: "R" | "C" | "L" | "J";
713
+ hangingIndent: number;
714
+ verticalAlignment: "start" | "end";
715
+ fontWidth?: number | undefined;
716
+ wordWidths?: {
717
+ word: string;
718
+ width: number;
719
+ spaceWidth: number;
720
+ }[] | undefined;
721
+ }>, z.ZodObject<{
722
+ name: z.ZodString;
723
+ x: z.ZodNumber;
724
+ y: z.ZodNumber;
725
+ data: z.ZodString;
726
+ } & {
727
+ type: z.ZodLiteral<"barcode">;
728
+ barWidth: z.ZodNumber;
729
+ orientation: z.ZodNativeEnum<{
730
+ readonly NoRotation: "N";
731
+ readonly Rotate90: "R";
732
+ readonly Rotate180: "I";
733
+ readonly Rotate270: "B";
734
+ }>;
735
+ height: z.ZodNumber;
736
+ line: z.ZodNativeEnum<{
737
+ readonly Yes: "Y";
738
+ readonly No: "N";
739
+ }>;
740
+ lineAbove: z.ZodNativeEnum<{
741
+ readonly Yes: "Y";
742
+ readonly No: "N";
743
+ }>;
744
+ checkDigit: z.ZodNativeEnum<{
745
+ readonly Yes: "Y";
746
+ readonly No: "N";
747
+ }>;
748
+ }, "strip", z.ZodTypeAny, {
749
+ type: "barcode";
750
+ name: string;
751
+ x: number;
752
+ y: number;
753
+ data: string;
754
+ barWidth: number;
755
+ orientation: "N" | "B" | "I" | "R";
756
+ height: number;
757
+ line: "N" | "Y";
758
+ lineAbove: "N" | "Y";
759
+ checkDigit: "N" | "Y";
760
+ }, {
761
+ type: "barcode";
762
+ name: string;
763
+ x: number;
764
+ y: number;
765
+ data: string;
766
+ barWidth: number;
767
+ orientation: "N" | "B" | "I" | "R";
768
+ height: number;
769
+ line: "N" | "Y";
770
+ lineAbove: "N" | "Y";
771
+ checkDigit: "N" | "Y";
772
+ }>, z.ZodObject<{
773
+ name: z.ZodString;
774
+ x: z.ZodNumber;
775
+ y: z.ZodNumber;
776
+ data: z.ZodString;
777
+ } & {
778
+ type: z.ZodLiteral<"qrcode">;
779
+ orientation: z.ZodLiteral<"N">;
780
+ model: z.ZodLiteral<"2">;
781
+ magnification: z.ZodNumber;
782
+ errorCorrection: z.ZodNativeEnum<{
783
+ readonly Highest: "H";
784
+ readonly High: "Q";
785
+ readonly Medium: "M";
786
+ readonly Lower: "L";
787
+ }>;
788
+ mask: z.ZodNumber;
789
+ }, "strip", z.ZodTypeAny, {
790
+ type: "qrcode";
791
+ name: string;
792
+ x: number;
793
+ y: number;
794
+ data: string;
795
+ orientation: "N";
796
+ model: "2";
797
+ magnification: number;
798
+ errorCorrection: "M" | "L" | "H" | "Q";
799
+ mask: number;
800
+ }, {
801
+ type: "qrcode";
802
+ name: string;
803
+ x: number;
804
+ y: number;
805
+ data: string;
806
+ orientation: "N";
807
+ model: "2";
808
+ magnification: number;
809
+ errorCorrection: "M" | "L" | "H" | "Q";
810
+ mask: number;
811
+ }>]>, "many">;
812
+ }, "strip", z.ZodTypeAny, {
813
+ reverse: "N" | "Y";
814
+ type: "thermal";
815
+ tearOffAdjustment: number;
816
+ backfeedActions: "O" | "N" | "A" | "B" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90";
817
+ media: "N" | "A" | "V" | "W" | "Y" | "M";
818
+ mediaOffset: number;
819
+ thermalMediaType: "D" | "T";
820
+ printOrientation: "N" | "I";
821
+ mirror: "N" | "Y";
822
+ labelHomeX: number;
823
+ labelHomeY: number;
824
+ printDensityAdjustment: "A" | "B";
825
+ printSpeed: number;
826
+ slewSpeed: number;
827
+ backfeedSpeed: number;
828
+ darkness: number;
829
+ postPrintMode: "A" | "D" | "T" | "P" | "R" | "C" | "F" | "K";
830
+ prepeel: "N" | "Y";
831
+ printWidth: number;
832
+ labelLength: number;
833
+ allMedia: "N" | "Y";
834
+ fields: ({
835
+ type: "text";
836
+ name: string;
837
+ x: number;
838
+ y: number;
839
+ data: string;
840
+ font: string;
841
+ fontOrientation: "N" | "B" | "I" | "R";
842
+ fontHeight: number;
843
+ maxWidth: number;
844
+ maxLines: number;
845
+ lineSpacing: number;
846
+ alignment: "R" | "C" | "L" | "J";
847
+ hangingIndent: number;
848
+ verticalAlignment: "start" | "end";
849
+ fontWidth?: number | undefined;
850
+ wordWidths?: {
851
+ word: string;
852
+ width: number;
853
+ spaceWidth: number;
854
+ }[] | undefined;
855
+ } | {
856
+ type: "barcode";
857
+ name: string;
858
+ x: number;
859
+ y: number;
860
+ data: string;
861
+ barWidth: number;
862
+ orientation: "N" | "B" | "I" | "R";
863
+ height: number;
864
+ line: "N" | "Y";
865
+ lineAbove: "N" | "Y";
866
+ checkDigit: "N" | "Y";
867
+ } | {
868
+ type: "qrcode";
869
+ name: string;
870
+ x: number;
871
+ y: number;
872
+ data: string;
873
+ orientation: "N";
874
+ model: "2";
875
+ magnification: number;
876
+ errorCorrection: "M" | "L" | "H" | "Q";
877
+ mask: number;
878
+ })[];
879
+ }, {
880
+ reverse: "N" | "Y";
881
+ type: "thermal";
882
+ tearOffAdjustment: number;
883
+ backfeedActions: "O" | "N" | "A" | "B" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90";
884
+ media: "N" | "A" | "V" | "W" | "Y" | "M";
885
+ mediaOffset: number;
886
+ thermalMediaType: "D" | "T";
887
+ printOrientation: "N" | "I";
888
+ mirror: "N" | "Y";
889
+ labelHomeX: number;
890
+ labelHomeY: number;
891
+ printDensityAdjustment: "A" | "B";
892
+ printSpeed: number;
893
+ slewSpeed: number;
894
+ backfeedSpeed: number;
895
+ darkness: number;
896
+ postPrintMode: "A" | "D" | "T" | "P" | "R" | "C" | "F" | "K";
897
+ prepeel: "N" | "Y";
898
+ printWidth: number;
899
+ labelLength: number;
900
+ allMedia: "N" | "Y";
901
+ fields: ({
902
+ type: "text";
903
+ name: string;
904
+ x: number;
905
+ y: number;
906
+ data: string;
907
+ font: string;
908
+ fontOrientation: "N" | "B" | "I" | "R";
909
+ fontHeight: number;
910
+ maxWidth: number;
911
+ maxLines: number;
912
+ lineSpacing: number;
913
+ alignment: "R" | "C" | "L" | "J";
914
+ hangingIndent: number;
915
+ verticalAlignment: "start" | "end";
916
+ fontWidth?: number | undefined;
917
+ wordWidths?: {
918
+ word: string;
919
+ width: number;
920
+ spaceWidth: number;
921
+ }[] | undefined;
922
+ } | {
923
+ type: "barcode";
924
+ name: string;
925
+ x: number;
926
+ y: number;
927
+ data: string;
928
+ barWidth: number;
929
+ orientation: "N" | "B" | "I" | "R";
930
+ height: number;
931
+ line: "N" | "Y";
932
+ lineAbove: "N" | "Y";
933
+ checkDigit: "N" | "Y";
934
+ } | {
935
+ type: "qrcode";
936
+ name: string;
937
+ x: number;
938
+ y: number;
939
+ data: string;
940
+ orientation: "N";
941
+ model: "2";
942
+ magnification: number;
943
+ errorCorrection: "M" | "L" | "H" | "Q";
944
+ mask: number;
945
+ })[];
946
+ }>;
947
+ export type Badge = z.infer<typeof badgeSchema>;
948
+ export type ThermalBadge = Badge;
949
+ export type BaseBadge = Badge;
950
+ /**
951
+ * Validates a JSON object against the Badge schema.
952
+ *
953
+ * @param data - The unknown JSON object to validate
954
+ * @returns A zod SafeParseReturnType with success/error information
955
+ *
956
+ * @example
957
+ * ```ts
958
+ * const result = validateBadge(jsonData);
959
+ * if (result.success) {
960
+ * const badge = result.data; // Type-safe Badge object
961
+ * } else {
962
+ * console.error(result.error.errors);
963
+ * }
964
+ * ```
965
+ */
966
+ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
967
+ reverse: "N" | "Y";
968
+ type: "thermal";
969
+ tearOffAdjustment: number;
970
+ backfeedActions: "O" | "N" | "A" | "B" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90";
971
+ media: "N" | "A" | "V" | "W" | "Y" | "M";
972
+ mediaOffset: number;
973
+ thermalMediaType: "D" | "T";
974
+ printOrientation: "N" | "I";
975
+ mirror: "N" | "Y";
976
+ labelHomeX: number;
977
+ labelHomeY: number;
978
+ printDensityAdjustment: "A" | "B";
979
+ printSpeed: number;
980
+ slewSpeed: number;
981
+ backfeedSpeed: number;
982
+ darkness: number;
983
+ postPrintMode: "A" | "D" | "T" | "P" | "R" | "C" | "F" | "K";
984
+ prepeel: "N" | "Y";
985
+ printWidth: number;
986
+ labelLength: number;
987
+ allMedia: "N" | "Y";
988
+ fields: ({
989
+ type: "text";
990
+ name: string;
991
+ x: number;
992
+ y: number;
993
+ data: string;
994
+ font: string;
995
+ fontOrientation: "N" | "B" | "I" | "R";
996
+ fontHeight: number;
997
+ maxWidth: number;
998
+ maxLines: number;
999
+ lineSpacing: number;
1000
+ alignment: "R" | "C" | "L" | "J";
1001
+ hangingIndent: number;
1002
+ verticalAlignment: "start" | "end";
1003
+ fontWidth?: number | undefined;
1004
+ wordWidths?: {
1005
+ word: string;
1006
+ width: number;
1007
+ spaceWidth: number;
1008
+ }[] | undefined;
1009
+ } | {
1010
+ type: "barcode";
1011
+ name: string;
1012
+ x: number;
1013
+ y: number;
1014
+ data: string;
1015
+ barWidth: number;
1016
+ orientation: "N" | "B" | "I" | "R";
1017
+ height: number;
1018
+ line: "N" | "Y";
1019
+ lineAbove: "N" | "Y";
1020
+ checkDigit: "N" | "Y";
1021
+ } | {
1022
+ type: "qrcode";
1023
+ name: string;
1024
+ x: number;
1025
+ y: number;
1026
+ data: string;
1027
+ orientation: "N";
1028
+ model: "2";
1029
+ magnification: number;
1030
+ errorCorrection: "M" | "L" | "H" | "Q";
1031
+ mask: number;
1032
+ })[];
1033
+ }, {
1034
+ reverse: "N" | "Y";
1035
+ type: "thermal";
1036
+ tearOffAdjustment: number;
1037
+ backfeedActions: "O" | "N" | "A" | "B" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90";
1038
+ media: "N" | "A" | "V" | "W" | "Y" | "M";
1039
+ mediaOffset: number;
1040
+ thermalMediaType: "D" | "T";
1041
+ printOrientation: "N" | "I";
1042
+ mirror: "N" | "Y";
1043
+ labelHomeX: number;
1044
+ labelHomeY: number;
1045
+ printDensityAdjustment: "A" | "B";
1046
+ printSpeed: number;
1047
+ slewSpeed: number;
1048
+ backfeedSpeed: number;
1049
+ darkness: number;
1050
+ postPrintMode: "A" | "D" | "T" | "P" | "R" | "C" | "F" | "K";
1051
+ prepeel: "N" | "Y";
1052
+ printWidth: number;
1053
+ labelLength: number;
1054
+ allMedia: "N" | "Y";
1055
+ fields: ({
1056
+ type: "text";
1057
+ name: string;
1058
+ x: number;
1059
+ y: number;
1060
+ data: string;
1061
+ font: string;
1062
+ fontOrientation: "N" | "B" | "I" | "R";
1063
+ fontHeight: number;
1064
+ maxWidth: number;
1065
+ maxLines: number;
1066
+ lineSpacing: number;
1067
+ alignment: "R" | "C" | "L" | "J";
1068
+ hangingIndent: number;
1069
+ verticalAlignment: "start" | "end";
1070
+ fontWidth?: number | undefined;
1071
+ wordWidths?: {
1072
+ word: string;
1073
+ width: number;
1074
+ spaceWidth: number;
1075
+ }[] | undefined;
1076
+ } | {
1077
+ type: "barcode";
1078
+ name: string;
1079
+ x: number;
1080
+ y: number;
1081
+ data: string;
1082
+ barWidth: number;
1083
+ orientation: "N" | "B" | "I" | "R";
1084
+ height: number;
1085
+ line: "N" | "Y";
1086
+ lineAbove: "N" | "Y";
1087
+ checkDigit: "N" | "Y";
1088
+ } | {
1089
+ type: "qrcode";
1090
+ name: string;
1091
+ x: number;
1092
+ y: number;
1093
+ data: string;
1094
+ orientation: "N";
1095
+ model: "2";
1096
+ magnification: number;
1097
+ errorCorrection: "M" | "L" | "H" | "Q";
1098
+ mask: number;
1099
+ })[];
1100
+ }>;
1101
+ /**
1102
+ * Validates a JSON object against the Badge schema and throws on error.
1103
+ *
1104
+ * @param data - The unknown JSON object to validate
1105
+ * @returns A validated Badge object
1106
+ * @throws ZodError if validation fails
1107
+ */
1108
+ export declare function validateBadgeOrThrow(data: unknown): {
1109
+ reverse: "N" | "Y";
1110
+ type: "thermal";
1111
+ tearOffAdjustment: number;
1112
+ backfeedActions: "O" | "N" | "A" | "B" | "10" | "20" | "30" | "40" | "50" | "60" | "70" | "80" | "90";
1113
+ media: "N" | "A" | "V" | "W" | "Y" | "M";
1114
+ mediaOffset: number;
1115
+ thermalMediaType: "D" | "T";
1116
+ printOrientation: "N" | "I";
1117
+ mirror: "N" | "Y";
1118
+ labelHomeX: number;
1119
+ labelHomeY: number;
1120
+ printDensityAdjustment: "A" | "B";
1121
+ printSpeed: number;
1122
+ slewSpeed: number;
1123
+ backfeedSpeed: number;
1124
+ darkness: number;
1125
+ postPrintMode: "A" | "D" | "T" | "P" | "R" | "C" | "F" | "K";
1126
+ prepeel: "N" | "Y";
1127
+ printWidth: number;
1128
+ labelLength: number;
1129
+ allMedia: "N" | "Y";
1130
+ fields: ({
1131
+ type: "text";
1132
+ name: string;
1133
+ x: number;
1134
+ y: number;
1135
+ data: string;
1136
+ font: string;
1137
+ fontOrientation: "N" | "B" | "I" | "R";
1138
+ fontHeight: number;
1139
+ maxWidth: number;
1140
+ maxLines: number;
1141
+ lineSpacing: number;
1142
+ alignment: "R" | "C" | "L" | "J";
1143
+ hangingIndent: number;
1144
+ verticalAlignment: "start" | "end";
1145
+ fontWidth?: number | undefined;
1146
+ wordWidths?: {
1147
+ word: string;
1148
+ width: number;
1149
+ spaceWidth: number;
1150
+ }[] | undefined;
1151
+ } | {
1152
+ type: "barcode";
1153
+ name: string;
1154
+ x: number;
1155
+ y: number;
1156
+ data: string;
1157
+ barWidth: number;
1158
+ orientation: "N" | "B" | "I" | "R";
1159
+ height: number;
1160
+ line: "N" | "Y";
1161
+ lineAbove: "N" | "Y";
1162
+ checkDigit: "N" | "Y";
1163
+ } | {
1164
+ type: "qrcode";
1165
+ name: string;
1166
+ x: number;
1167
+ y: number;
1168
+ data: string;
1169
+ orientation: "N";
1170
+ model: "2";
1171
+ magnification: number;
1172
+ errorCorrection: "M" | "L" | "H" | "Q";
1173
+ mask: number;
1174
+ })[];
1175
+ };