@pobuca/email-builder 1.3.3 → 1.4.0

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,828 @@
1
+ /**
2
+ * Complete JSON Schema for AI-generated Pobuca email templates.
3
+ *
4
+ * Run `npm run generate:email-schema` after changing the email model. Library
5
+ * builds run that command automatically.
6
+ */
7
+ export declare const PB_EMAIL_TEMPLATE_SCHEMA: {
8
+ description: string;
9
+ type: string;
10
+ properties: {
11
+ general: {
12
+ $ref: string;
13
+ };
14
+ structures: {
15
+ type: string;
16
+ items: {
17
+ $ref: string;
18
+ };
19
+ };
20
+ customFonts: {
21
+ type: string;
22
+ items: {
23
+ $ref: string;
24
+ };
25
+ };
26
+ };
27
+ additionalProperties: boolean;
28
+ definitions: {
29
+ IGeneralOptions: {
30
+ description: string;
31
+ type: string;
32
+ properties: {
33
+ width: {
34
+ $ref: string;
35
+ };
36
+ background: {
37
+ $ref: string;
38
+ };
39
+ padding: {
40
+ $ref: string;
41
+ };
42
+ direction: {
43
+ $ref: string;
44
+ };
45
+ name: {
46
+ type: string;
47
+ };
48
+ previewText: {
49
+ type: string;
50
+ };
51
+ global: {
52
+ type: string;
53
+ properties: {
54
+ fonts: {
55
+ type: string;
56
+ items: {
57
+ type: string;
58
+ };
59
+ };
60
+ padding: {
61
+ $ref: string;
62
+ };
63
+ };
64
+ additionalProperties: boolean;
65
+ required: string[];
66
+ };
67
+ };
68
+ additionalProperties: boolean;
69
+ required: string[];
70
+ };
71
+ IWidthHeight: {
72
+ description: string;
73
+ type: string;
74
+ properties: {
75
+ value: {
76
+ type: string;
77
+ };
78
+ unit: {
79
+ $ref: string;
80
+ description: string;
81
+ };
82
+ auto: {
83
+ type: string;
84
+ };
85
+ units: {
86
+ type: string;
87
+ items: {
88
+ $ref: string;
89
+ description: string;
90
+ };
91
+ uniqueItems: boolean;
92
+ };
93
+ };
94
+ additionalProperties: boolean;
95
+ required: string[];
96
+ };
97
+ TUnits: {
98
+ description: string;
99
+ enum: string[];
100
+ type: string;
101
+ };
102
+ IBackground: {
103
+ description: string;
104
+ type: string;
105
+ properties: {
106
+ color: {
107
+ type: string;
108
+ };
109
+ url: {
110
+ type: string;
111
+ };
112
+ repeat: {
113
+ $ref: string;
114
+ };
115
+ size: {
116
+ $ref: string;
117
+ };
118
+ };
119
+ additionalProperties: boolean;
120
+ required: string[];
121
+ };
122
+ TBackgroundRepeat: {
123
+ description: string;
124
+ enum: string[];
125
+ type: string;
126
+ };
127
+ IPadding: {
128
+ description: string;
129
+ type: string;
130
+ properties: {
131
+ top: {
132
+ type: string;
133
+ };
134
+ right: {
135
+ type: string;
136
+ };
137
+ bottom: {
138
+ type: string;
139
+ };
140
+ left: {
141
+ type: string;
142
+ };
143
+ };
144
+ additionalProperties: boolean;
145
+ required: string[];
146
+ };
147
+ TDirection: {
148
+ description: string;
149
+ enum: string[];
150
+ type: string;
151
+ };
152
+ IStructure: {
153
+ description: string;
154
+ type: string;
155
+ properties: {
156
+ type: {
157
+ $ref: string;
158
+ };
159
+ id: {
160
+ type: string;
161
+ };
162
+ isModule: {
163
+ description: string;
164
+ type: string;
165
+ };
166
+ options: {
167
+ $ref: string;
168
+ };
169
+ elements: {
170
+ type: string;
171
+ items: {
172
+ type: string;
173
+ items: {
174
+ oneOf: {
175
+ $ref: string;
176
+ }[];
177
+ };
178
+ };
179
+ };
180
+ columns: {
181
+ type: string;
182
+ };
183
+ };
184
+ additionalProperties: boolean;
185
+ required: string[];
186
+ allOf: {
187
+ oneOf: {
188
+ properties: {
189
+ type: {
190
+ const: string;
191
+ };
192
+ columns: {
193
+ const: number;
194
+ };
195
+ elements: {
196
+ minItems: number;
197
+ maxItems: number;
198
+ };
199
+ options: {
200
+ properties: {
201
+ columns: {
202
+ minItems: number;
203
+ maxItems: number;
204
+ };
205
+ columnsWidth: {
206
+ minItems: number;
207
+ maxItems: number;
208
+ };
209
+ };
210
+ };
211
+ };
212
+ }[];
213
+ }[];
214
+ };
215
+ TStructureTypes: {
216
+ description: string;
217
+ enum: string[];
218
+ type: string;
219
+ };
220
+ IStructureOptions: {
221
+ description: string;
222
+ type: string;
223
+ properties: {
224
+ border: {
225
+ $ref: string;
226
+ };
227
+ background: {
228
+ $ref: string;
229
+ };
230
+ padding: {
231
+ $ref: string;
232
+ };
233
+ margin: {
234
+ $ref: string;
235
+ };
236
+ disableResponsive: {
237
+ description: string;
238
+ type: string;
239
+ };
240
+ fullWidth: {
241
+ description: string;
242
+ type: string;
243
+ };
244
+ gaps: {
245
+ description: string;
246
+ type: string;
247
+ items: {
248
+ type: string;
249
+ }[];
250
+ minItems: number;
251
+ maxItems: number;
252
+ };
253
+ columnsWidth: {
254
+ type: string;
255
+ items: {
256
+ type: string;
257
+ exclusiveMinimum: number;
258
+ };
259
+ };
260
+ columns: {
261
+ type: string;
262
+ items: {
263
+ $ref: string;
264
+ };
265
+ };
266
+ };
267
+ additionalProperties: boolean;
268
+ required: string[];
269
+ };
270
+ IBorder: {
271
+ description: string;
272
+ type: string;
273
+ properties: {
274
+ color: {
275
+ type: string;
276
+ };
277
+ style: {
278
+ description: string;
279
+ enum: string[];
280
+ type: string;
281
+ };
282
+ width: {
283
+ description: string;
284
+ type: string;
285
+ };
286
+ radius: {
287
+ description: string;
288
+ type: string;
289
+ };
290
+ };
291
+ additionalProperties: boolean;
292
+ required: string[];
293
+ };
294
+ IMargin: {
295
+ description: string;
296
+ type: string;
297
+ properties: {
298
+ top: {
299
+ type: string;
300
+ };
301
+ bottom: {
302
+ type: string;
303
+ };
304
+ };
305
+ additionalProperties: boolean;
306
+ required: string[];
307
+ };
308
+ IStructureColumnOptions: {
309
+ description: string;
310
+ type: string;
311
+ properties: {
312
+ background: {
313
+ $ref: string;
314
+ };
315
+ border: {
316
+ $ref: string;
317
+ };
318
+ verticalAlign: {
319
+ $ref: string;
320
+ };
321
+ };
322
+ additionalProperties: boolean;
323
+ required: string[];
324
+ };
325
+ TVerticalAlign: {
326
+ description: string;
327
+ enum: string[];
328
+ type: string;
329
+ };
330
+ TextBlock: {
331
+ type: string;
332
+ properties: {
333
+ type: {
334
+ type: string;
335
+ enum: string[];
336
+ };
337
+ icon: {
338
+ type: string;
339
+ enum: string[];
340
+ };
341
+ options: {
342
+ $ref: string;
343
+ };
344
+ title: {
345
+ type: string;
346
+ };
347
+ innerText: {
348
+ type: string;
349
+ };
350
+ state: {
351
+ $ref: string;
352
+ };
353
+ };
354
+ additionalProperties: boolean;
355
+ required: string[];
356
+ };
357
+ ITextBlockOptions: {
358
+ description: string;
359
+ type: string;
360
+ properties: {
361
+ color: {
362
+ type: string;
363
+ };
364
+ font: {
365
+ $ref: string;
366
+ };
367
+ lineHeight: {
368
+ $ref: string;
369
+ };
370
+ padding: {
371
+ $ref: string;
372
+ };
373
+ };
374
+ additionalProperties: boolean;
375
+ required: string[];
376
+ };
377
+ IFont: {
378
+ description: string;
379
+ type: string;
380
+ properties: {
381
+ family: {
382
+ type: string;
383
+ };
384
+ fallback: {
385
+ type: string;
386
+ };
387
+ size: {
388
+ type: string;
389
+ };
390
+ style: {
391
+ $ref: string;
392
+ };
393
+ weight: {
394
+ description: string;
395
+ anyOf: ({
396
+ enum: string[];
397
+ type: string;
398
+ } | {
399
+ type: string;
400
+ enum?: undefined;
401
+ })[];
402
+ };
403
+ };
404
+ additionalProperties: boolean;
405
+ required: string[];
406
+ };
407
+ TFontStyle: {
408
+ description: string;
409
+ enum: string[];
410
+ type: string;
411
+ };
412
+ ILineHeight: {
413
+ description: string;
414
+ type: string;
415
+ properties: {
416
+ value: {
417
+ type: string;
418
+ };
419
+ unit: {
420
+ $ref: string;
421
+ };
422
+ };
423
+ additionalProperties: boolean;
424
+ required: string[];
425
+ };
426
+ TLineHeight: {
427
+ description: string;
428
+ enum: string[];
429
+ type: string;
430
+ };
431
+ IBlockState: {
432
+ description: string;
433
+ type: string;
434
+ properties: {
435
+ disabled: {
436
+ type: string;
437
+ };
438
+ message: {
439
+ description: string;
440
+ type: string;
441
+ };
442
+ };
443
+ additionalProperties: boolean;
444
+ required: string[];
445
+ };
446
+ ImageBlock: {
447
+ type: string;
448
+ properties: {
449
+ type: {
450
+ type: string;
451
+ enum: string[];
452
+ };
453
+ icon: {
454
+ type: string;
455
+ enum: string[];
456
+ };
457
+ options: {
458
+ $ref: string;
459
+ };
460
+ title: {
461
+ type: string;
462
+ };
463
+ src: {
464
+ type: string;
465
+ };
466
+ state: {
467
+ $ref: string;
468
+ };
469
+ };
470
+ additionalProperties: boolean;
471
+ required: string[];
472
+ };
473
+ IImageBLockOptions: {
474
+ description: string;
475
+ type: string;
476
+ properties: {
477
+ border: {
478
+ $ref: string;
479
+ };
480
+ width: {
481
+ $ref: string;
482
+ };
483
+ height: {
484
+ $ref: string;
485
+ };
486
+ link: {
487
+ $ref: string;
488
+ };
489
+ align: {
490
+ $ref: string;
491
+ };
492
+ title: {
493
+ type: string;
494
+ };
495
+ padding: {
496
+ $ref: string;
497
+ };
498
+ };
499
+ additionalProperties: boolean;
500
+ required: string[];
501
+ };
502
+ ILink: {
503
+ description: string;
504
+ type: string;
505
+ properties: {
506
+ href: {
507
+ type: string;
508
+ };
509
+ target: {
510
+ $ref: string;
511
+ };
512
+ };
513
+ additionalProperties: boolean;
514
+ required: string[];
515
+ };
516
+ TLinkTarget: {
517
+ description: string;
518
+ enum: string[];
519
+ type: string;
520
+ };
521
+ TAlign: {
522
+ description: string;
523
+ enum: string[];
524
+ type: string;
525
+ };
526
+ VideoBlock: {
527
+ type: string;
528
+ properties: {
529
+ type: {
530
+ type: string;
531
+ enum: string[];
532
+ };
533
+ icon: {
534
+ type: string;
535
+ enum: string[];
536
+ };
537
+ options: {
538
+ $ref: string;
539
+ };
540
+ title: {
541
+ type: string;
542
+ };
543
+ src: {
544
+ type: string;
545
+ };
546
+ posterSrc: {
547
+ type: string;
548
+ };
549
+ state: {
550
+ $ref: string;
551
+ };
552
+ };
553
+ additionalProperties: boolean;
554
+ required: string[];
555
+ };
556
+ IVideoBlockOptions: {
557
+ description: string;
558
+ type: string;
559
+ properties: {
560
+ border: {
561
+ $ref: string;
562
+ };
563
+ width: {
564
+ $ref: string;
565
+ };
566
+ height: {
567
+ $ref: string;
568
+ };
569
+ link: {
570
+ $ref: string;
571
+ };
572
+ align: {
573
+ $ref: string;
574
+ };
575
+ title: {
576
+ type: string;
577
+ };
578
+ padding: {
579
+ $ref: string;
580
+ };
581
+ };
582
+ additionalProperties: boolean;
583
+ required: string[];
584
+ };
585
+ ButtonBlock: {
586
+ type: string;
587
+ properties: {
588
+ type: {
589
+ type: string;
590
+ enum: string[];
591
+ };
592
+ icon: {
593
+ type: string;
594
+ enum: string[];
595
+ };
596
+ options: {
597
+ $ref: string;
598
+ };
599
+ title: {
600
+ type: string;
601
+ };
602
+ innerText: {
603
+ type: string;
604
+ };
605
+ state: {
606
+ $ref: string;
607
+ };
608
+ };
609
+ additionalProperties: boolean;
610
+ required: string[];
611
+ };
612
+ IButtonBlockOptions: {
613
+ description: string;
614
+ type: string;
615
+ properties: {
616
+ backgroundColor: {
617
+ type: string;
618
+ };
619
+ border: {
620
+ $ref: string;
621
+ };
622
+ color: {
623
+ type: string;
624
+ };
625
+ font: {
626
+ $ref: string;
627
+ };
628
+ align: {
629
+ $ref: string;
630
+ };
631
+ fullWidth: {
632
+ type: string;
633
+ };
634
+ lineHeight: {
635
+ $ref: string;
636
+ };
637
+ link: {
638
+ $ref: string;
639
+ };
640
+ innerPadding: {
641
+ $ref: string;
642
+ };
643
+ padding: {
644
+ $ref: string;
645
+ };
646
+ };
647
+ additionalProperties: boolean;
648
+ required: string[];
649
+ };
650
+ DividerBlock: {
651
+ type: string;
652
+ properties: {
653
+ type: {
654
+ type: string;
655
+ enum: string[];
656
+ };
657
+ icon: {
658
+ type: string;
659
+ enum: string[];
660
+ };
661
+ options: {
662
+ $ref: string;
663
+ };
664
+ title: {
665
+ type: string;
666
+ };
667
+ state: {
668
+ $ref: string;
669
+ };
670
+ };
671
+ additionalProperties: boolean;
672
+ required: string[];
673
+ };
674
+ IDividerBlockOptions: {
675
+ description: string;
676
+ type: string;
677
+ properties: {
678
+ border: {
679
+ $ref: string;
680
+ };
681
+ padding: {
682
+ $ref: string;
683
+ };
684
+ };
685
+ additionalProperties: boolean;
686
+ required: string[];
687
+ };
688
+ SpacerBlock: {
689
+ type: string;
690
+ properties: {
691
+ type: {
692
+ type: string;
693
+ enum: string[];
694
+ };
695
+ icon: {
696
+ type: string;
697
+ enum: string[];
698
+ };
699
+ title: {
700
+ type: string;
701
+ };
702
+ options: {
703
+ $ref: string;
704
+ };
705
+ state: {
706
+ $ref: string;
707
+ };
708
+ };
709
+ additionalProperties: boolean;
710
+ required: string[];
711
+ };
712
+ ISpacerBlockOptions: {
713
+ description: string;
714
+ type: string;
715
+ properties: {
716
+ height: {
717
+ $ref: string;
718
+ };
719
+ width: {
720
+ $ref: string;
721
+ };
722
+ };
723
+ additionalProperties: boolean;
724
+ required: string[];
725
+ };
726
+ SocialBlock: {
727
+ type: string;
728
+ properties: {
729
+ type: {
730
+ type: string;
731
+ enum: string[];
732
+ };
733
+ icon: {
734
+ type: string;
735
+ enum: string[];
736
+ };
737
+ title: {
738
+ type: string;
739
+ };
740
+ options: {
741
+ $ref: string;
742
+ };
743
+ networks: {
744
+ type: string;
745
+ items: {
746
+ $ref: string;
747
+ };
748
+ };
749
+ state: {
750
+ $ref: string;
751
+ };
752
+ };
753
+ additionalProperties: boolean;
754
+ required: string[];
755
+ };
756
+ ISocialBlockOptions: {
757
+ description: string;
758
+ type: string;
759
+ properties: {
760
+ align: {
761
+ $ref: string;
762
+ };
763
+ mode: {
764
+ enum: string[];
765
+ type: string;
766
+ };
767
+ font: {
768
+ $ref: string;
769
+ };
770
+ iconSize: {
771
+ $ref: string;
772
+ };
773
+ lineHeight: {
774
+ $ref: string;
775
+ };
776
+ color: {
777
+ type: string;
778
+ };
779
+ innerPadding: {
780
+ $ref: string;
781
+ };
782
+ padding: {
783
+ $ref: string;
784
+ };
785
+ };
786
+ additionalProperties: boolean;
787
+ required: string[];
788
+ };
789
+ ISocialNetwork: {
790
+ description: string;
791
+ type: string;
792
+ properties: {
793
+ href: {
794
+ type: string;
795
+ };
796
+ label: {
797
+ type: string;
798
+ };
799
+ name: {
800
+ enum: string[];
801
+ type: string;
802
+ };
803
+ padding: {
804
+ $ref: string;
805
+ };
806
+ };
807
+ additionalProperties: boolean;
808
+ required: string[];
809
+ };
810
+ ICustomFont: {
811
+ description: string;
812
+ type: string;
813
+ properties: {
814
+ family: {
815
+ type: string;
816
+ };
817
+ url: {
818
+ type: string;
819
+ };
820
+ };
821
+ additionalProperties: boolean;
822
+ required: string[];
823
+ };
824
+ };
825
+ $schema: string;
826
+ title: string;
827
+ required: string[];
828
+ };