@connectedxm/zpl-generator 0.0.17 → 0.0.20

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.
@@ -20,13 +20,23 @@ export interface SourcePass {
20
20
  passType: string;
21
21
  }
22
22
  export interface SourcePassAttribute {
23
+ id: string;
23
24
  name: string;
24
25
  value: string;
25
26
  }
26
27
  export interface SourcePassResponse {
28
+ id: string;
27
29
  name: string;
28
30
  value: string;
29
31
  }
32
+ export interface SourcePassAddOn {
33
+ id: string;
34
+ addOn: {
35
+ id: string;
36
+ name: string;
37
+ shortDescription: string;
38
+ };
39
+ }
30
40
  export interface SourceData {
31
41
  account: SourceAccount;
32
42
  accountAttributes: SourceAccountAttribute[];
@@ -34,4 +44,5 @@ export interface SourceData {
34
44
  pass: SourcePass;
35
45
  passResponses: SourcePassResponse[];
36
46
  passAttributes: SourcePassAttribute[];
47
+ passAddOns: SourcePassAddOn[];
37
48
  }
@@ -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";
@@ -195,6 +206,7 @@ export declare const SourceType: {
195
206
  readonly pass: "pass";
196
207
  readonly passResponses: "passResponses";
197
208
  readonly passAttributes: "passAttributes";
209
+ readonly passAddOns: "passAddOns";
198
210
  };
199
211
  export declare const sourceTypeSchema: z.ZodEnum<{
200
212
  readonly account: "account";
@@ -203,6 +215,7 @@ export declare const sourceTypeSchema: z.ZodEnum<{
203
215
  readonly pass: "pass";
204
216
  readonly passResponses: "passResponses";
205
217
  readonly passAttributes: "passAttributes";
218
+ readonly passAddOns: "passAddOns";
206
219
  }>;
207
220
  export type SourceType = z.infer<typeof sourceTypeSchema>;
208
221
  export declare const TextTransformation: {
@@ -240,6 +253,7 @@ export declare const textFieldSchema: z.ZodObject<{
240
253
  readonly pass: "pass";
241
254
  readonly passResponses: "passResponses";
242
255
  readonly passAttributes: "passAttributes";
256
+ readonly passAddOns: "passAddOns";
243
257
  }>;
244
258
  sourceLookup: z.ZodString;
245
259
  sourceSeperator: z.ZodString;
@@ -292,6 +306,7 @@ export declare const barcodeFieldSchema: z.ZodObject<{
292
306
  readonly pass: "pass";
293
307
  readonly passResponses: "passResponses";
294
308
  readonly passAttributes: "passAttributes";
309
+ readonly passAddOns: "passAddOns";
295
310
  }>;
296
311
  sourceLookup: z.ZodString;
297
312
  sourceSeperator: z.ZodString;
@@ -318,6 +333,11 @@ export declare const barcodeFieldSchema: z.ZodObject<{
318
333
  readonly Yes: "Y";
319
334
  readonly No: "N";
320
335
  }>;
336
+ alignment: z.ZodOptional<z.ZodEnum<{
337
+ readonly Left: "L";
338
+ readonly Right: "R";
339
+ readonly Center: "C";
340
+ }>>;
321
341
  }, z.core.$strip>;
322
342
  export type BarcodeField = z.infer<typeof barcodeFieldSchema>;
323
343
  export declare const qrcodeFieldSchema: z.ZodObject<{
@@ -336,6 +356,7 @@ export declare const qrcodeFieldSchema: z.ZodObject<{
336
356
  readonly pass: "pass";
337
357
  readonly passResponses: "passResponses";
338
358
  readonly passAttributes: "passAttributes";
359
+ readonly passAddOns: "passAddOns";
339
360
  }>;
340
361
  sourceLookup: z.ZodString;
341
362
  sourceSeperator: z.ZodString;
@@ -370,6 +391,7 @@ export declare const imageFieldSchema: z.ZodObject<{
370
391
  readonly pass: "pass";
371
392
  readonly passResponses: "passResponses";
372
393
  readonly passAttributes: "passAttributes";
394
+ readonly passAddOns: "passAddOns";
373
395
  }>;
374
396
  sourceLookup: z.ZodString;
375
397
  sourceSeperator: z.ZodString;
@@ -377,6 +399,7 @@ export declare const imageFieldSchema: z.ZodObject<{
377
399
  editable: z.ZodBoolean;
378
400
  type: z.ZodLiteral<"image">;
379
401
  data: z.ZodString;
402
+ valueMatch: z.ZodOptional<z.ZodString>;
380
403
  }, z.core.$strip>;
381
404
  export type ImageField = z.infer<typeof imageFieldSchema>;
382
405
  export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
@@ -395,6 +418,7 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
395
418
  readonly pass: "pass";
396
419
  readonly passResponses: "passResponses";
397
420
  readonly passAttributes: "passAttributes";
421
+ readonly passAddOns: "passAddOns";
398
422
  }>;
399
423
  sourceLookup: z.ZodString;
400
424
  sourceSeperator: z.ZodString;
@@ -445,6 +469,7 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
445
469
  readonly pass: "pass";
446
470
  readonly passResponses: "passResponses";
447
471
  readonly passAttributes: "passAttributes";
472
+ readonly passAddOns: "passAddOns";
448
473
  }>;
449
474
  sourceLookup: z.ZodString;
450
475
  sourceSeperator: z.ZodString;
@@ -471,6 +496,11 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
471
496
  readonly Yes: "Y";
472
497
  readonly No: "N";
473
498
  }>;
499
+ alignment: z.ZodOptional<z.ZodEnum<{
500
+ readonly Left: "L";
501
+ readonly Right: "R";
502
+ readonly Center: "C";
503
+ }>>;
474
504
  }, z.core.$strip>, z.ZodObject<{
475
505
  name: z.ZodString;
476
506
  x: z.ZodNumber;
@@ -487,6 +517,7 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
487
517
  readonly pass: "pass";
488
518
  readonly passResponses: "passResponses";
489
519
  readonly passAttributes: "passAttributes";
520
+ readonly passAddOns: "passAddOns";
490
521
  }>;
491
522
  sourceLookup: z.ZodString;
492
523
  sourceSeperator: z.ZodString;
@@ -519,6 +550,7 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
519
550
  readonly pass: "pass";
520
551
  readonly passResponses: "passResponses";
521
552
  readonly passAttributes: "passAttributes";
553
+ readonly passAddOns: "passAddOns";
522
554
  }>;
523
555
  sourceLookup: z.ZodString;
524
556
  sourceSeperator: z.ZodString;
@@ -526,6 +558,7 @@ export declare const fieldSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
526
558
  editable: z.ZodBoolean;
527
559
  type: z.ZodLiteral<"image">;
528
560
  data: z.ZodString;
561
+ valueMatch: z.ZodOptional<z.ZodString>;
529
562
  }, z.core.$strip>], "type">;
530
563
  export type Field = z.infer<typeof fieldSchema>;
531
564
  export declare const fontSchema: z.ZodObject<{
@@ -651,6 +684,7 @@ export declare const badgeSchema: z.ZodObject<{
651
684
  readonly pass: "pass";
652
685
  readonly passResponses: "passResponses";
653
686
  readonly passAttributes: "passAttributes";
687
+ readonly passAddOns: "passAddOns";
654
688
  }>;
655
689
  sourceLookup: z.ZodString;
656
690
  sourceSeperator: z.ZodString;
@@ -701,6 +735,7 @@ export declare const badgeSchema: z.ZodObject<{
701
735
  readonly pass: "pass";
702
736
  readonly passResponses: "passResponses";
703
737
  readonly passAttributes: "passAttributes";
738
+ readonly passAddOns: "passAddOns";
704
739
  }>;
705
740
  sourceLookup: z.ZodString;
706
741
  sourceSeperator: z.ZodString;
@@ -727,6 +762,11 @@ export declare const badgeSchema: z.ZodObject<{
727
762
  readonly Yes: "Y";
728
763
  readonly No: "N";
729
764
  }>;
765
+ alignment: z.ZodOptional<z.ZodEnum<{
766
+ readonly Left: "L";
767
+ readonly Right: "R";
768
+ readonly Center: "C";
769
+ }>>;
730
770
  }, z.core.$strip>, z.ZodObject<{
731
771
  name: z.ZodString;
732
772
  x: z.ZodNumber;
@@ -743,6 +783,7 @@ export declare const badgeSchema: z.ZodObject<{
743
783
  readonly pass: "pass";
744
784
  readonly passResponses: "passResponses";
745
785
  readonly passAttributes: "passAttributes";
786
+ readonly passAddOns: "passAddOns";
746
787
  }>;
747
788
  sourceLookup: z.ZodString;
748
789
  sourceSeperator: z.ZodString;
@@ -775,6 +816,7 @@ export declare const badgeSchema: z.ZodObject<{
775
816
  readonly pass: "pass";
776
817
  readonly passResponses: "passResponses";
777
818
  readonly passAttributes: "passAttributes";
819
+ readonly passAddOns: "passAddOns";
778
820
  }>;
779
821
  sourceLookup: z.ZodString;
780
822
  sourceSeperator: z.ZodString;
@@ -782,6 +824,7 @@ export declare const badgeSchema: z.ZodObject<{
782
824
  editable: z.ZodBoolean;
783
825
  type: z.ZodLiteral<"image">;
784
826
  data: z.ZodString;
827
+ valueMatch: z.ZodOptional<z.ZodString>;
785
828
  }, z.core.$strip>], "type">>;
786
829
  fonts: z.ZodArray<z.ZodObject<{
787
830
  alias: z.ZodString;
@@ -849,7 +892,7 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
849
892
  y: number;
850
893
  defaultValue: string;
851
894
  verticalAlignment: "start" | "end";
852
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
895
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
853
896
  sourceLookup: string;
854
897
  sourceSeperator: string;
855
898
  hideEmpty: boolean;
@@ -874,7 +917,7 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
874
917
  y: number;
875
918
  defaultValue: string;
876
919
  verticalAlignment: "start" | "end";
877
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
920
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
878
921
  sourceLookup: string;
879
922
  sourceSeperator: string;
880
923
  hideEmpty: boolean;
@@ -886,13 +929,14 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
886
929
  line: "N" | "Y";
887
930
  lineAbove: "N" | "Y";
888
931
  checkDigit: "N" | "Y";
932
+ alignment?: "R" | "C" | "L" | undefined;
889
933
  } | {
890
934
  name: string;
891
935
  x: number;
892
936
  y: number;
893
937
  defaultValue: string;
894
938
  verticalAlignment: "start" | "end";
895
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
939
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
896
940
  sourceLookup: string;
897
941
  sourceSeperator: string;
898
942
  hideEmpty: boolean;
@@ -909,13 +953,14 @@ export declare function validateBadge(data: Badge): z.ZodSafeParseResult<{
909
953
  y: number;
910
954
  defaultValue: string;
911
955
  verticalAlignment: "start" | "end";
912
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
956
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
913
957
  sourceLookup: string;
914
958
  sourceSeperator: string;
915
959
  hideEmpty: boolean;
916
960
  editable: boolean;
917
961
  type: "image";
918
962
  data: string;
963
+ valueMatch?: string | undefined;
919
964
  })[];
920
965
  fonts: {
921
966
  alias: string;
@@ -957,7 +1002,7 @@ export declare function validateBadgeOrThrow(data: Badge): {
957
1002
  y: number;
958
1003
  defaultValue: string;
959
1004
  verticalAlignment: "start" | "end";
960
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1005
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
961
1006
  sourceLookup: string;
962
1007
  sourceSeperator: string;
963
1008
  hideEmpty: boolean;
@@ -982,7 +1027,7 @@ export declare function validateBadgeOrThrow(data: Badge): {
982
1027
  y: number;
983
1028
  defaultValue: string;
984
1029
  verticalAlignment: "start" | "end";
985
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1030
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
986
1031
  sourceLookup: string;
987
1032
  sourceSeperator: string;
988
1033
  hideEmpty: boolean;
@@ -994,13 +1039,14 @@ export declare function validateBadgeOrThrow(data: Badge): {
994
1039
  line: "N" | "Y";
995
1040
  lineAbove: "N" | "Y";
996
1041
  checkDigit: "N" | "Y";
1042
+ alignment?: "R" | "C" | "L" | undefined;
997
1043
  } | {
998
1044
  name: string;
999
1045
  x: number;
1000
1046
  y: number;
1001
1047
  defaultValue: string;
1002
1048
  verticalAlignment: "start" | "end";
1003
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1049
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
1004
1050
  sourceLookup: string;
1005
1051
  sourceSeperator: string;
1006
1052
  hideEmpty: boolean;
@@ -1017,13 +1063,14 @@ export declare function validateBadgeOrThrow(data: Badge): {
1017
1063
  y: number;
1018
1064
  defaultValue: string;
1019
1065
  verticalAlignment: "start" | "end";
1020
- sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes";
1066
+ sourceType: "account" | "accountAttributes" | "accountTiers" | "pass" | "passResponses" | "passAttributes" | "passAddOns";
1021
1067
  sourceLookup: string;
1022
1068
  sourceSeperator: string;
1023
1069
  hideEmpty: boolean;
1024
1070
  editable: boolean;
1025
1071
  type: "image";
1026
1072
  data: string;
1073
+ valueMatch?: string | undefined;
1027
1074
  })[];
1028
1075
  fonts: {
1029
1076
  alias: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@connectedxm/zpl-generator",
3
- "version": "0.0.17",
3
+ "version": "0.0.20",
4
4
  "description": "",
5
5
  "license": "ISC",
6
6
  "author": "",