@passly-nl/data 1.0.2 → 1.0.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,63 @@
1
+ export interface EmailTemplateEditorH1Block {
2
+ type: 'h1';
3
+ content: string;
4
+ }
5
+
6
+ export interface EmailTemplateEditorParagraphBlock {
7
+ type: 'paragraph';
8
+ content: string;
9
+ }
10
+
11
+ export interface EmailTemplateEditorDividerBlock {
12
+ type: 'divider';
13
+ }
14
+
15
+ export interface EmailTemplateEditorSpacerBlock {
16
+ type: 'spacer';
17
+ }
18
+
19
+ export interface EmailTemplateEditorButtonBlock {
20
+ type: 'button';
21
+ label: string;
22
+ url: string;
23
+ }
24
+
25
+ export interface EmailTemplateEditorHeaderBlock {
26
+ type: 'header';
27
+ src: string;
28
+ }
29
+
30
+ export interface EmailTemplateEditorLogoBlock {
31
+ type: 'logo';
32
+ }
33
+
34
+ export interface EmailTemplateEditorIfBlock {
35
+ type: 'if';
36
+ condition: string;
37
+ children: EmailTemplateEditorBlock[];
38
+ }
39
+
40
+ export type EmailTemplateEditorBlock =
41
+ | EmailTemplateEditorH1Block
42
+ | EmailTemplateEditorParagraphBlock
43
+ | EmailTemplateEditorDividerBlock
44
+ | EmailTemplateEditorSpacerBlock
45
+ | EmailTemplateEditorButtonBlock
46
+ | EmailTemplateEditorHeaderBlock
47
+ | EmailTemplateEditorLogoBlock
48
+ | EmailTemplateEditorIfBlock;
49
+
50
+ export interface EmailTemplateEditorVariable {
51
+ label: string;
52
+ path: string;
53
+ }
54
+
55
+ export interface EmailTemplateEditorCondition {
56
+ label: string;
57
+ condition: string;
58
+ }
59
+
60
+ export interface EmailTemplateEditorContext {
61
+ variables: EmailTemplateEditorVariable[];
62
+ conditions: EmailTemplateEditorCondition[];
63
+ }
@@ -1,4 +1,6 @@
1
1
  export type * from './auth';
2
+ export type * from './emailTemplate';
3
+ export type * from './emailTemplateEditor';
2
4
  export type * from './general';
3
5
  export type * from './event';
4
6
  export type * from './finance';