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

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.
@@ -188,6 +188,36 @@ export declare const verticalAlignmentSchema: z.ZodNativeEnum<{
188
188
  readonly End: "end";
189
189
  }>;
190
190
  export type VerticalAlignment = z.infer<typeof verticalAlignmentSchema>;
191
+ export declare const SourceType: {
192
+ readonly account: "account";
193
+ readonly accountAttributes: "accountAttributes";
194
+ readonly accountTiers: "accountTiers";
195
+ readonly pass: "pass";
196
+ readonly passResponses: "passResponses";
197
+ readonly passAttributes: "passAttributes";
198
+ };
199
+ export declare const sourceTypeSchema: z.ZodNativeEnum<{
200
+ readonly account: "account";
201
+ readonly accountAttributes: "accountAttributes";
202
+ readonly accountTiers: "accountTiers";
203
+ readonly pass: "pass";
204
+ readonly passResponses: "passResponses";
205
+ readonly passAttributes: "passAttributes";
206
+ }>;
207
+ export type SourceType = z.infer<typeof sourceTypeSchema>;
208
+ export declare const TextTransformation: {
209
+ readonly None: "None";
210
+ readonly Uppercase: "Uppercase";
211
+ readonly Lowercase: "Lowercase";
212
+ readonly Capitalize: "Capitalize";
213
+ };
214
+ export declare const textTransformationSchema: z.ZodNativeEnum<{
215
+ readonly None: "None";
216
+ readonly Uppercase: "Uppercase";
217
+ readonly Lowercase: "Lowercase";
218
+ readonly Capitalize: "Capitalize";
219
+ }>;
220
+ export type TextTransformation = z.infer<typeof textTransformationSchema>;
191
221
  export declare const wordWidthSchema: z.ZodObject<{
192
222
  word: z.ZodString;
193
223
  width: z.ZodNumber;
@@ -206,7 +236,17 @@ export declare const textFieldSchema: z.ZodObject<{
206
236
  name: z.ZodString;
207
237
  x: z.ZodNumber;
208
238
  y: z.ZodNumber;
209
- data: z.ZodString;
239
+ defaultValue: z.ZodString;
240
+ sourceType: z.ZodNativeEnum<{
241
+ readonly account: "account";
242
+ readonly accountAttributes: "accountAttributes";
243
+ readonly accountTiers: "accountTiers";
244
+ readonly pass: "pass";
245
+ readonly passResponses: "passResponses";
246
+ readonly passAttributes: "passAttributes";
247
+ }>;
248
+ sourceLookup: z.ZodString;
249
+ hideEmpty: z.ZodBoolean;
210
250
  } & {
211
251
  type: z.ZodLiteral<"text">;
212
252
  font: z.ZodString;
@@ -217,7 +257,6 @@ export declare const textFieldSchema: z.ZodObject<{
217
257
  readonly Rotate270: "B";
218
258
  }>;
219
259
  fontHeight: z.ZodNumber;
220
- fontWidth: z.ZodOptional<z.ZodNumber>;
221
260
  maxWidth: z.ZodNumber;
222
261
  maxLines: z.ZodNumber;
223
262
  lineSpacing: z.ZodNumber;
@@ -232,25 +271,23 @@ export declare const textFieldSchema: z.ZodObject<{
232
271
  readonly Start: "start";
233
272
  readonly End: "end";
234
273
  }>;
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">>;
274
+ charsPerLine: z.ZodNumber;
275
+ transformation: z.ZodNativeEnum<{
276
+ readonly None: "None";
277
+ readonly Uppercase: "Uppercase";
278
+ readonly Lowercase: "Lowercase";
279
+ readonly Capitalize: "Capitalize";
280
+ }>;
281
+ maxCharacters: z.ZodNumber;
248
282
  }, "strip", z.ZodTypeAny, {
249
283
  type: "text";
250
284
  name: string;
251
285
  x: number;
252
286
  y: number;
253
- data: string;
287
+ defaultValue: string;
288
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
289
+ sourceLookup: string;
290
+ hideEmpty: boolean;
254
291
  font: string;
255
292
  fontOrientation: "N" | "B" | "I" | "R";
256
293
  fontHeight: number;
@@ -260,18 +297,18 @@ export declare const textFieldSchema: z.ZodObject<{
260
297
  alignment: "R" | "C" | "L" | "J";
261
298
  hangingIndent: number;
262
299
  verticalAlignment: "start" | "end";
263
- fontWidth?: number | undefined;
264
- wordWidths?: {
265
- word: string;
266
- width: number;
267
- spaceWidth: number;
268
- }[] | undefined;
300
+ charsPerLine: number;
301
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
302
+ maxCharacters: number;
269
303
  }, {
270
304
  type: "text";
271
305
  name: string;
272
306
  x: number;
273
307
  y: number;
274
- data: string;
308
+ defaultValue: string;
309
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
310
+ sourceLookup: string;
311
+ hideEmpty: boolean;
275
312
  font: string;
276
313
  fontOrientation: "N" | "B" | "I" | "R";
277
314
  fontHeight: number;
@@ -281,19 +318,26 @@ export declare const textFieldSchema: z.ZodObject<{
281
318
  alignment: "R" | "C" | "L" | "J";
282
319
  hangingIndent: number;
283
320
  verticalAlignment: "start" | "end";
284
- fontWidth?: number | undefined;
285
- wordWidths?: {
286
- word: string;
287
- width: number;
288
- spaceWidth: number;
289
- }[] | undefined;
321
+ charsPerLine: number;
322
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
323
+ maxCharacters: number;
290
324
  }>;
291
325
  export type TextField = z.infer<typeof textFieldSchema>;
292
326
  export declare const barcodeFieldSchema: z.ZodObject<{
293
327
  name: z.ZodString;
294
328
  x: z.ZodNumber;
295
329
  y: z.ZodNumber;
296
- data: z.ZodString;
330
+ defaultValue: z.ZodString;
331
+ sourceType: z.ZodNativeEnum<{
332
+ readonly account: "account";
333
+ readonly accountAttributes: "accountAttributes";
334
+ readonly accountTiers: "accountTiers";
335
+ readonly pass: "pass";
336
+ readonly passResponses: "passResponses";
337
+ readonly passAttributes: "passAttributes";
338
+ }>;
339
+ sourceLookup: z.ZodString;
340
+ hideEmpty: z.ZodBoolean;
297
341
  } & {
298
342
  type: z.ZodLiteral<"barcode">;
299
343
  barWidth: z.ZodNumber;
@@ -321,7 +365,10 @@ export declare const barcodeFieldSchema: z.ZodObject<{
321
365
  name: string;
322
366
  x: number;
323
367
  y: number;
324
- data: string;
368
+ defaultValue: string;
369
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
370
+ sourceLookup: string;
371
+ hideEmpty: boolean;
325
372
  barWidth: number;
326
373
  orientation: "N" | "B" | "I" | "R";
327
374
  height: number;
@@ -333,7 +380,10 @@ export declare const barcodeFieldSchema: z.ZodObject<{
333
380
  name: string;
334
381
  x: number;
335
382
  y: number;
336
- data: string;
383
+ defaultValue: string;
384
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
385
+ sourceLookup: string;
386
+ hideEmpty: boolean;
337
387
  barWidth: number;
338
388
  orientation: "N" | "B" | "I" | "R";
339
389
  height: number;
@@ -346,7 +396,17 @@ export declare const qrcodeFieldSchema: z.ZodObject<{
346
396
  name: z.ZodString;
347
397
  x: z.ZodNumber;
348
398
  y: z.ZodNumber;
349
- data: z.ZodString;
399
+ defaultValue: z.ZodString;
400
+ sourceType: z.ZodNativeEnum<{
401
+ readonly account: "account";
402
+ readonly accountAttributes: "accountAttributes";
403
+ readonly accountTiers: "accountTiers";
404
+ readonly pass: "pass";
405
+ readonly passResponses: "passResponses";
406
+ readonly passAttributes: "passAttributes";
407
+ }>;
408
+ sourceLookup: z.ZodString;
409
+ hideEmpty: z.ZodBoolean;
350
410
  } & {
351
411
  type: z.ZodLiteral<"qrcode">;
352
412
  orientation: z.ZodLiteral<"N">;
@@ -364,7 +424,10 @@ export declare const qrcodeFieldSchema: z.ZodObject<{
364
424
  name: string;
365
425
  x: number;
366
426
  y: number;
367
- data: string;
427
+ defaultValue: string;
428
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
429
+ sourceLookup: string;
430
+ hideEmpty: boolean;
368
431
  orientation: "N";
369
432
  model: "2";
370
433
  magnification: number;
@@ -375,7 +438,10 @@ export declare const qrcodeFieldSchema: z.ZodObject<{
375
438
  name: string;
376
439
  x: number;
377
440
  y: number;
378
- data: string;
441
+ defaultValue: string;
442
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
443
+ sourceLookup: string;
444
+ hideEmpty: boolean;
379
445
  orientation: "N";
380
446
  model: "2";
381
447
  magnification: number;
@@ -387,7 +453,17 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
387
453
  name: z.ZodString;
388
454
  x: z.ZodNumber;
389
455
  y: z.ZodNumber;
390
- data: z.ZodString;
456
+ defaultValue: z.ZodString;
457
+ sourceType: z.ZodNativeEnum<{
458
+ readonly account: "account";
459
+ readonly accountAttributes: "accountAttributes";
460
+ readonly accountTiers: "accountTiers";
461
+ readonly pass: "pass";
462
+ readonly passResponses: "passResponses";
463
+ readonly passAttributes: "passAttributes";
464
+ }>;
465
+ sourceLookup: z.ZodString;
466
+ hideEmpty: z.ZodBoolean;
391
467
  } & {
392
468
  type: z.ZodLiteral<"text">;
393
469
  font: z.ZodString;
@@ -398,7 +474,6 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
398
474
  readonly Rotate270: "B";
399
475
  }>;
400
476
  fontHeight: z.ZodNumber;
401
- fontWidth: z.ZodOptional<z.ZodNumber>;
402
477
  maxWidth: z.ZodNumber;
403
478
  maxLines: z.ZodNumber;
404
479
  lineSpacing: z.ZodNumber;
@@ -413,25 +488,23 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
413
488
  readonly Start: "start";
414
489
  readonly End: "end";
415
490
  }>;
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">>;
491
+ charsPerLine: z.ZodNumber;
492
+ transformation: z.ZodNativeEnum<{
493
+ readonly None: "None";
494
+ readonly Uppercase: "Uppercase";
495
+ readonly Lowercase: "Lowercase";
496
+ readonly Capitalize: "Capitalize";
497
+ }>;
498
+ maxCharacters: z.ZodNumber;
429
499
  }, "strip", z.ZodTypeAny, {
430
500
  type: "text";
431
501
  name: string;
432
502
  x: number;
433
503
  y: number;
434
- data: string;
504
+ defaultValue: string;
505
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
506
+ sourceLookup: string;
507
+ hideEmpty: boolean;
435
508
  font: string;
436
509
  fontOrientation: "N" | "B" | "I" | "R";
437
510
  fontHeight: number;
@@ -441,18 +514,18 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
441
514
  alignment: "R" | "C" | "L" | "J";
442
515
  hangingIndent: number;
443
516
  verticalAlignment: "start" | "end";
444
- fontWidth?: number | undefined;
445
- wordWidths?: {
446
- word: string;
447
- width: number;
448
- spaceWidth: number;
449
- }[] | undefined;
517
+ charsPerLine: number;
518
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
519
+ maxCharacters: number;
450
520
  }, {
451
521
  type: "text";
452
522
  name: string;
453
523
  x: number;
454
524
  y: number;
455
- data: string;
525
+ defaultValue: string;
526
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
527
+ sourceLookup: string;
528
+ hideEmpty: boolean;
456
529
  font: string;
457
530
  fontOrientation: "N" | "B" | "I" | "R";
458
531
  fontHeight: number;
@@ -462,17 +535,24 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
462
535
  alignment: "R" | "C" | "L" | "J";
463
536
  hangingIndent: number;
464
537
  verticalAlignment: "start" | "end";
465
- fontWidth?: number | undefined;
466
- wordWidths?: {
467
- word: string;
468
- width: number;
469
- spaceWidth: number;
470
- }[] | undefined;
538
+ charsPerLine: number;
539
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
540
+ maxCharacters: number;
471
541
  }>, z.ZodObject<{
472
542
  name: z.ZodString;
473
543
  x: z.ZodNumber;
474
544
  y: z.ZodNumber;
475
- data: z.ZodString;
545
+ defaultValue: z.ZodString;
546
+ sourceType: z.ZodNativeEnum<{
547
+ readonly account: "account";
548
+ readonly accountAttributes: "accountAttributes";
549
+ readonly accountTiers: "accountTiers";
550
+ readonly pass: "pass";
551
+ readonly passResponses: "passResponses";
552
+ readonly passAttributes: "passAttributes";
553
+ }>;
554
+ sourceLookup: z.ZodString;
555
+ hideEmpty: z.ZodBoolean;
476
556
  } & {
477
557
  type: z.ZodLiteral<"barcode">;
478
558
  barWidth: z.ZodNumber;
@@ -500,7 +580,10 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
500
580
  name: string;
501
581
  x: number;
502
582
  y: number;
503
- data: string;
583
+ defaultValue: string;
584
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
585
+ sourceLookup: string;
586
+ hideEmpty: boolean;
504
587
  barWidth: number;
505
588
  orientation: "N" | "B" | "I" | "R";
506
589
  height: number;
@@ -512,7 +595,10 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
512
595
  name: string;
513
596
  x: number;
514
597
  y: number;
515
- data: string;
598
+ defaultValue: string;
599
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
600
+ sourceLookup: string;
601
+ hideEmpty: boolean;
516
602
  barWidth: number;
517
603
  orientation: "N" | "B" | "I" | "R";
518
604
  height: number;
@@ -523,7 +609,17 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
523
609
  name: z.ZodString;
524
610
  x: z.ZodNumber;
525
611
  y: z.ZodNumber;
526
- data: z.ZodString;
612
+ defaultValue: z.ZodString;
613
+ sourceType: z.ZodNativeEnum<{
614
+ readonly account: "account";
615
+ readonly accountAttributes: "accountAttributes";
616
+ readonly accountTiers: "accountTiers";
617
+ readonly pass: "pass";
618
+ readonly passResponses: "passResponses";
619
+ readonly passAttributes: "passAttributes";
620
+ }>;
621
+ sourceLookup: z.ZodString;
622
+ hideEmpty: z.ZodBoolean;
527
623
  } & {
528
624
  type: z.ZodLiteral<"qrcode">;
529
625
  orientation: z.ZodLiteral<"N">;
@@ -541,7 +637,10 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
541
637
  name: string;
542
638
  x: number;
543
639
  y: number;
544
- data: string;
640
+ defaultValue: string;
641
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
642
+ sourceLookup: string;
643
+ hideEmpty: boolean;
545
644
  orientation: "N";
546
645
  model: "2";
547
646
  magnification: number;
@@ -552,7 +651,10 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
552
651
  name: string;
553
652
  x: number;
554
653
  y: number;
555
- data: string;
654
+ defaultValue: string;
655
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
656
+ sourceLookup: string;
657
+ hideEmpty: boolean;
556
658
  orientation: "N";
557
659
  model: "2";
558
660
  magnification: number;
@@ -637,7 +739,17 @@ export declare const badgeSchema: z.ZodObject<{
637
739
  name: z.ZodString;
638
740
  x: z.ZodNumber;
639
741
  y: z.ZodNumber;
640
- data: z.ZodString;
742
+ defaultValue: z.ZodString;
743
+ sourceType: z.ZodNativeEnum<{
744
+ readonly account: "account";
745
+ readonly accountAttributes: "accountAttributes";
746
+ readonly accountTiers: "accountTiers";
747
+ readonly pass: "pass";
748
+ readonly passResponses: "passResponses";
749
+ readonly passAttributes: "passAttributes";
750
+ }>;
751
+ sourceLookup: z.ZodString;
752
+ hideEmpty: z.ZodBoolean;
641
753
  } & {
642
754
  type: z.ZodLiteral<"text">;
643
755
  font: z.ZodString;
@@ -648,7 +760,6 @@ export declare const badgeSchema: z.ZodObject<{
648
760
  readonly Rotate270: "B";
649
761
  }>;
650
762
  fontHeight: z.ZodNumber;
651
- fontWidth: z.ZodOptional<z.ZodNumber>;
652
763
  maxWidth: z.ZodNumber;
653
764
  maxLines: z.ZodNumber;
654
765
  lineSpacing: z.ZodNumber;
@@ -663,25 +774,23 @@ export declare const badgeSchema: z.ZodObject<{
663
774
  readonly Start: "start";
664
775
  readonly End: "end";
665
776
  }>;
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">>;
777
+ charsPerLine: z.ZodNumber;
778
+ transformation: z.ZodNativeEnum<{
779
+ readonly None: "None";
780
+ readonly Uppercase: "Uppercase";
781
+ readonly Lowercase: "Lowercase";
782
+ readonly Capitalize: "Capitalize";
783
+ }>;
784
+ maxCharacters: z.ZodNumber;
679
785
  }, "strip", z.ZodTypeAny, {
680
786
  type: "text";
681
787
  name: string;
682
788
  x: number;
683
789
  y: number;
684
- data: string;
790
+ defaultValue: string;
791
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
792
+ sourceLookup: string;
793
+ hideEmpty: boolean;
685
794
  font: string;
686
795
  fontOrientation: "N" | "B" | "I" | "R";
687
796
  fontHeight: number;
@@ -691,18 +800,18 @@ export declare const badgeSchema: z.ZodObject<{
691
800
  alignment: "R" | "C" | "L" | "J";
692
801
  hangingIndent: number;
693
802
  verticalAlignment: "start" | "end";
694
- fontWidth?: number | undefined;
695
- wordWidths?: {
696
- word: string;
697
- width: number;
698
- spaceWidth: number;
699
- }[] | undefined;
803
+ charsPerLine: number;
804
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
805
+ maxCharacters: number;
700
806
  }, {
701
807
  type: "text";
702
808
  name: string;
703
809
  x: number;
704
810
  y: number;
705
- data: string;
811
+ defaultValue: string;
812
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
813
+ sourceLookup: string;
814
+ hideEmpty: boolean;
706
815
  font: string;
707
816
  fontOrientation: "N" | "B" | "I" | "R";
708
817
  fontHeight: number;
@@ -712,17 +821,24 @@ export declare const badgeSchema: z.ZodObject<{
712
821
  alignment: "R" | "C" | "L" | "J";
713
822
  hangingIndent: number;
714
823
  verticalAlignment: "start" | "end";
715
- fontWidth?: number | undefined;
716
- wordWidths?: {
717
- word: string;
718
- width: number;
719
- spaceWidth: number;
720
- }[] | undefined;
824
+ charsPerLine: number;
825
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
826
+ maxCharacters: number;
721
827
  }>, z.ZodObject<{
722
828
  name: z.ZodString;
723
829
  x: z.ZodNumber;
724
830
  y: z.ZodNumber;
725
- data: z.ZodString;
831
+ defaultValue: z.ZodString;
832
+ sourceType: z.ZodNativeEnum<{
833
+ readonly account: "account";
834
+ readonly accountAttributes: "accountAttributes";
835
+ readonly accountTiers: "accountTiers";
836
+ readonly pass: "pass";
837
+ readonly passResponses: "passResponses";
838
+ readonly passAttributes: "passAttributes";
839
+ }>;
840
+ sourceLookup: z.ZodString;
841
+ hideEmpty: z.ZodBoolean;
726
842
  } & {
727
843
  type: z.ZodLiteral<"barcode">;
728
844
  barWidth: z.ZodNumber;
@@ -750,7 +866,10 @@ export declare const badgeSchema: z.ZodObject<{
750
866
  name: string;
751
867
  x: number;
752
868
  y: number;
753
- data: string;
869
+ defaultValue: string;
870
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
871
+ sourceLookup: string;
872
+ hideEmpty: boolean;
754
873
  barWidth: number;
755
874
  orientation: "N" | "B" | "I" | "R";
756
875
  height: number;
@@ -762,7 +881,10 @@ export declare const badgeSchema: z.ZodObject<{
762
881
  name: string;
763
882
  x: number;
764
883
  y: number;
765
- data: string;
884
+ defaultValue: string;
885
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
886
+ sourceLookup: string;
887
+ hideEmpty: boolean;
766
888
  barWidth: number;
767
889
  orientation: "N" | "B" | "I" | "R";
768
890
  height: number;
@@ -773,7 +895,17 @@ export declare const badgeSchema: z.ZodObject<{
773
895
  name: z.ZodString;
774
896
  x: z.ZodNumber;
775
897
  y: z.ZodNumber;
776
- data: z.ZodString;
898
+ defaultValue: z.ZodString;
899
+ sourceType: z.ZodNativeEnum<{
900
+ readonly account: "account";
901
+ readonly accountAttributes: "accountAttributes";
902
+ readonly accountTiers: "accountTiers";
903
+ readonly pass: "pass";
904
+ readonly passResponses: "passResponses";
905
+ readonly passAttributes: "passAttributes";
906
+ }>;
907
+ sourceLookup: z.ZodString;
908
+ hideEmpty: z.ZodBoolean;
777
909
  } & {
778
910
  type: z.ZodLiteral<"qrcode">;
779
911
  orientation: z.ZodLiteral<"N">;
@@ -791,7 +923,10 @@ export declare const badgeSchema: z.ZodObject<{
791
923
  name: string;
792
924
  x: number;
793
925
  y: number;
794
- data: string;
926
+ defaultValue: string;
927
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
928
+ sourceLookup: string;
929
+ hideEmpty: boolean;
795
930
  orientation: "N";
796
931
  model: "2";
797
932
  magnification: number;
@@ -802,7 +937,10 @@ export declare const badgeSchema: z.ZodObject<{
802
937
  name: string;
803
938
  x: number;
804
939
  y: number;
805
- data: string;
940
+ defaultValue: string;
941
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
942
+ sourceLookup: string;
943
+ hideEmpty: boolean;
806
944
  orientation: "N";
807
945
  model: "2";
808
946
  magnification: number;
@@ -836,7 +974,10 @@ export declare const badgeSchema: z.ZodObject<{
836
974
  name: string;
837
975
  x: number;
838
976
  y: number;
839
- data: string;
977
+ defaultValue: string;
978
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
979
+ sourceLookup: string;
980
+ hideEmpty: boolean;
840
981
  font: string;
841
982
  fontOrientation: "N" | "B" | "I" | "R";
842
983
  fontHeight: number;
@@ -846,18 +987,18 @@ export declare const badgeSchema: z.ZodObject<{
846
987
  alignment: "R" | "C" | "L" | "J";
847
988
  hangingIndent: number;
848
989
  verticalAlignment: "start" | "end";
849
- fontWidth?: number | undefined;
850
- wordWidths?: {
851
- word: string;
852
- width: number;
853
- spaceWidth: number;
854
- }[] | undefined;
990
+ charsPerLine: number;
991
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
992
+ maxCharacters: number;
855
993
  } | {
856
994
  type: "barcode";
857
995
  name: string;
858
996
  x: number;
859
997
  y: number;
860
- data: string;
998
+ defaultValue: string;
999
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1000
+ sourceLookup: string;
1001
+ hideEmpty: boolean;
861
1002
  barWidth: number;
862
1003
  orientation: "N" | "B" | "I" | "R";
863
1004
  height: number;
@@ -869,7 +1010,10 @@ export declare const badgeSchema: z.ZodObject<{
869
1010
  name: string;
870
1011
  x: number;
871
1012
  y: number;
872
- data: string;
1013
+ defaultValue: string;
1014
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1015
+ sourceLookup: string;
1016
+ hideEmpty: boolean;
873
1017
  orientation: "N";
874
1018
  model: "2";
875
1019
  magnification: number;
@@ -903,7 +1047,10 @@ export declare const badgeSchema: z.ZodObject<{
903
1047
  name: string;
904
1048
  x: number;
905
1049
  y: number;
906
- data: string;
1050
+ defaultValue: string;
1051
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1052
+ sourceLookup: string;
1053
+ hideEmpty: boolean;
907
1054
  font: string;
908
1055
  fontOrientation: "N" | "B" | "I" | "R";
909
1056
  fontHeight: number;
@@ -913,18 +1060,18 @@ export declare const badgeSchema: z.ZodObject<{
913
1060
  alignment: "R" | "C" | "L" | "J";
914
1061
  hangingIndent: number;
915
1062
  verticalAlignment: "start" | "end";
916
- fontWidth?: number | undefined;
917
- wordWidths?: {
918
- word: string;
919
- width: number;
920
- spaceWidth: number;
921
- }[] | undefined;
1063
+ charsPerLine: number;
1064
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
1065
+ maxCharacters: number;
922
1066
  } | {
923
1067
  type: "barcode";
924
1068
  name: string;
925
1069
  x: number;
926
1070
  y: number;
927
- data: string;
1071
+ defaultValue: string;
1072
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1073
+ sourceLookup: string;
1074
+ hideEmpty: boolean;
928
1075
  barWidth: number;
929
1076
  orientation: "N" | "B" | "I" | "R";
930
1077
  height: number;
@@ -936,7 +1083,10 @@ export declare const badgeSchema: z.ZodObject<{
936
1083
  name: string;
937
1084
  x: number;
938
1085
  y: number;
939
- data: string;
1086
+ defaultValue: string;
1087
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1088
+ sourceLookup: string;
1089
+ hideEmpty: boolean;
940
1090
  orientation: "N";
941
1091
  model: "2";
942
1092
  magnification: number;
@@ -963,7 +1113,7 @@ export type BaseBadge = Badge;
963
1113
  * }
964
1114
  * ```
965
1115
  */
966
- export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1116
+ export declare function validateBadge(data: Badge): z.SafeParseReturnType<{
967
1117
  reverse: "N" | "Y";
968
1118
  type: "thermal";
969
1119
  tearOffAdjustment: number;
@@ -990,7 +1140,10 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
990
1140
  name: string;
991
1141
  x: number;
992
1142
  y: number;
993
- data: string;
1143
+ defaultValue: string;
1144
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1145
+ sourceLookup: string;
1146
+ hideEmpty: boolean;
994
1147
  font: string;
995
1148
  fontOrientation: "N" | "B" | "I" | "R";
996
1149
  fontHeight: number;
@@ -1000,18 +1153,18 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1000
1153
  alignment: "R" | "C" | "L" | "J";
1001
1154
  hangingIndent: number;
1002
1155
  verticalAlignment: "start" | "end";
1003
- fontWidth?: number | undefined;
1004
- wordWidths?: {
1005
- word: string;
1006
- width: number;
1007
- spaceWidth: number;
1008
- }[] | undefined;
1156
+ charsPerLine: number;
1157
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
1158
+ maxCharacters: number;
1009
1159
  } | {
1010
1160
  type: "barcode";
1011
1161
  name: string;
1012
1162
  x: number;
1013
1163
  y: number;
1014
- data: string;
1164
+ defaultValue: string;
1165
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1166
+ sourceLookup: string;
1167
+ hideEmpty: boolean;
1015
1168
  barWidth: number;
1016
1169
  orientation: "N" | "B" | "I" | "R";
1017
1170
  height: number;
@@ -1023,7 +1176,10 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1023
1176
  name: string;
1024
1177
  x: number;
1025
1178
  y: number;
1026
- data: string;
1179
+ defaultValue: string;
1180
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1181
+ sourceLookup: string;
1182
+ hideEmpty: boolean;
1027
1183
  orientation: "N";
1028
1184
  model: "2";
1029
1185
  magnification: number;
@@ -1057,7 +1213,10 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1057
1213
  name: string;
1058
1214
  x: number;
1059
1215
  y: number;
1060
- data: string;
1216
+ defaultValue: string;
1217
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1218
+ sourceLookup: string;
1219
+ hideEmpty: boolean;
1061
1220
  font: string;
1062
1221
  fontOrientation: "N" | "B" | "I" | "R";
1063
1222
  fontHeight: number;
@@ -1067,18 +1226,18 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1067
1226
  alignment: "R" | "C" | "L" | "J";
1068
1227
  hangingIndent: number;
1069
1228
  verticalAlignment: "start" | "end";
1070
- fontWidth?: number | undefined;
1071
- wordWidths?: {
1072
- word: string;
1073
- width: number;
1074
- spaceWidth: number;
1075
- }[] | undefined;
1229
+ charsPerLine: number;
1230
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
1231
+ maxCharacters: number;
1076
1232
  } | {
1077
1233
  type: "barcode";
1078
1234
  name: string;
1079
1235
  x: number;
1080
1236
  y: number;
1081
- data: string;
1237
+ defaultValue: string;
1238
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1239
+ sourceLookup: string;
1240
+ hideEmpty: boolean;
1082
1241
  barWidth: number;
1083
1242
  orientation: "N" | "B" | "I" | "R";
1084
1243
  height: number;
@@ -1090,7 +1249,10 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1090
1249
  name: string;
1091
1250
  x: number;
1092
1251
  y: number;
1093
- data: string;
1252
+ defaultValue: string;
1253
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1254
+ sourceLookup: string;
1255
+ hideEmpty: boolean;
1094
1256
  orientation: "N";
1095
1257
  model: "2";
1096
1258
  magnification: number;
@@ -1105,7 +1267,7 @@ export declare function validateBadge(data: unknown): z.SafeParseReturnType<{
1105
1267
  * @returns A validated Badge object
1106
1268
  * @throws ZodError if validation fails
1107
1269
  */
1108
- export declare function validateBadgeOrThrow(data: unknown): {
1270
+ export declare function validateBadgeOrThrow(data: Badge): {
1109
1271
  reverse: "N" | "Y";
1110
1272
  type: "thermal";
1111
1273
  tearOffAdjustment: number;
@@ -1132,7 +1294,10 @@ export declare function validateBadgeOrThrow(data: unknown): {
1132
1294
  name: string;
1133
1295
  x: number;
1134
1296
  y: number;
1135
- data: string;
1297
+ defaultValue: string;
1298
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1299
+ sourceLookup: string;
1300
+ hideEmpty: boolean;
1136
1301
  font: string;
1137
1302
  fontOrientation: "N" | "B" | "I" | "R";
1138
1303
  fontHeight: number;
@@ -1142,18 +1307,18 @@ export declare function validateBadgeOrThrow(data: unknown): {
1142
1307
  alignment: "R" | "C" | "L" | "J";
1143
1308
  hangingIndent: number;
1144
1309
  verticalAlignment: "start" | "end";
1145
- fontWidth?: number | undefined;
1146
- wordWidths?: {
1147
- word: string;
1148
- width: number;
1149
- spaceWidth: number;
1150
- }[] | undefined;
1310
+ charsPerLine: number;
1311
+ transformation: "None" | "Uppercase" | "Lowercase" | "Capitalize";
1312
+ maxCharacters: number;
1151
1313
  } | {
1152
1314
  type: "barcode";
1153
1315
  name: string;
1154
1316
  x: number;
1155
1317
  y: number;
1156
- data: string;
1318
+ defaultValue: string;
1319
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1320
+ sourceLookup: string;
1321
+ hideEmpty: boolean;
1157
1322
  barWidth: number;
1158
1323
  orientation: "N" | "B" | "I" | "R";
1159
1324
  height: number;
@@ -1165,7 +1330,10 @@ export declare function validateBadgeOrThrow(data: unknown): {
1165
1330
  name: string;
1166
1331
  x: number;
1167
1332
  y: number;
1168
- data: string;
1333
+ defaultValue: string;
1334
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1335
+ sourceLookup: string;
1336
+ hideEmpty: boolean;
1169
1337
  orientation: "N";
1170
1338
  model: "2";
1171
1339
  magnification: number;