trycourier 6.3.0 → 6.4.1
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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/README.md +1 -1
- data/lib/courier/models/elemental_action_node.rb +123 -0
- data/lib/courier/models/elemental_action_node_with_type.rb +3 -1
- data/lib/courier/models/elemental_channel_node.rb +1 -1
- data/lib/courier/models/elemental_divider_node.rb +18 -0
- data/lib/courier/models/elemental_divider_node_with_type.rb +3 -1
- data/lib/courier/models/elemental_html_node.rb +33 -0
- data/lib/courier/models/elemental_html_node_with_type.rb +5 -1
- data/lib/courier/models/elemental_image_node.rb +74 -0
- data/lib/courier/models/elemental_image_node_with_type.rb +3 -1
- data/lib/courier/models/elemental_meta_node.rb +23 -0
- data/lib/courier/models/elemental_meta_node_with_type.rb +5 -1
- data/lib/courier/models/elemental_node.rb +9 -18
- data/lib/courier/models/elemental_quote_node.rb +72 -0
- data/lib/courier/models/elemental_quote_node_with_type.rb +3 -1
- data/lib/courier/models/elemental_text_node.rb +134 -0
- data/lib/courier/models/elemental_text_node_with_type.rb +3 -1
- data/lib/courier/models/journey_send_node.rb +32 -1
- data/lib/courier/models/locales.rb +18 -0
- data/lib/courier/models.rb +19 -0
- data/lib/courier/version.rb +1 -1
- data/lib/courier.rb +8 -0
- data/rbi/courier/models/elemental_action_node.rbi +153 -0
- data/rbi/courier/models/elemental_action_node_with_type.rbi +2 -1
- data/rbi/courier/models/elemental_divider_node.rbi +28 -0
- data/rbi/courier/models/elemental_divider_node_with_type.rbi +2 -1
- data/rbi/courier/models/elemental_html_node.rbi +52 -0
- data/rbi/courier/models/elemental_html_node_with_type.rbi +4 -1
- data/rbi/courier/models/elemental_image_node.rbi +94 -0
- data/rbi/courier/models/elemental_image_node_with_type.rbi +2 -1
- data/rbi/courier/models/elemental_meta_node.rbi +30 -0
- data/rbi/courier/models/elemental_meta_node_with_type.rbi +4 -1
- data/rbi/courier/models/elemental_node.rbi +1 -10
- data/rbi/courier/models/elemental_quote_node.rbi +95 -0
- data/rbi/courier/models/elemental_quote_node_with_type.rbi +2 -1
- data/rbi/courier/models/elemental_text_node.rbi +177 -0
- data/rbi/courier/models/elemental_text_node_with_type.rbi +2 -1
- data/rbi/courier/models/journey_send_node.rbi +45 -0
- data/rbi/courier/models/locales.rbi +27 -0
- data/rbi/courier/models.rbi +18 -0
- data/sig/courier/models/elemental_action_node.rbs +112 -0
- data/sig/courier/models/elemental_action_node_with_type.rbs +1 -1
- data/sig/courier/models/elemental_divider_node.rbs +15 -0
- data/sig/courier/models/elemental_divider_node_with_type.rbs +1 -1
- data/sig/courier/models/elemental_html_node.rbs +23 -0
- data/sig/courier/models/elemental_html_node_with_type.rbs +1 -1
- data/sig/courier/models/elemental_image_node.rbs +71 -0
- data/sig/courier/models/elemental_image_node_with_type.rbs +1 -1
- data/sig/courier/models/elemental_meta_node.rbs +15 -0
- data/sig/courier/models/elemental_meta_node_with_type.rbs +1 -1
- data/sig/courier/models/elemental_quote_node.rbs +66 -0
- data/sig/courier/models/elemental_quote_node_with_type.rbs +1 -1
- data/sig/courier/models/elemental_text_node.rbs +127 -0
- data/sig/courier/models/elemental_text_node_with_type.rbs +1 -1
- data/sig/courier/models/journey_send_node.rbs +24 -0
- data/sig/courier/models/locales.rbs +17 -0
- data/sig/courier/models.rbs +18 -0
- metadata +26 -2
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_action_node =
|
|
4
|
+
{
|
|
5
|
+
content: String,
|
|
6
|
+
href: String,
|
|
7
|
+
action_id: String?,
|
|
8
|
+
align: Courier::Models::alignment?,
|
|
9
|
+
background_color: String?,
|
|
10
|
+
border_radius: String?,
|
|
11
|
+
border_size: String?,
|
|
12
|
+
disable_tracking: bool?,
|
|
13
|
+
font_size: String?,
|
|
14
|
+
locales: Courier::Models::locales?,
|
|
15
|
+
padding: String?,
|
|
16
|
+
style: Courier::Models::ElementalActionNode::style?
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class ElementalActionNode < Courier::Models::ElementalBaseNode
|
|
20
|
+
def content: -> String
|
|
21
|
+
|
|
22
|
+
def content=: (String _) -> String
|
|
23
|
+
|
|
24
|
+
def href: -> String
|
|
25
|
+
|
|
26
|
+
def href=: (String _) -> String
|
|
27
|
+
|
|
28
|
+
def action_id: -> String?
|
|
29
|
+
|
|
30
|
+
def action_id=: (String? _) -> String?
|
|
31
|
+
|
|
32
|
+
def align: -> Courier::Models::alignment?
|
|
33
|
+
|
|
34
|
+
def align=: (Courier::Models::alignment? _) -> Courier::Models::alignment?
|
|
35
|
+
|
|
36
|
+
def background_color: -> String?
|
|
37
|
+
|
|
38
|
+
def background_color=: (String? _) -> String?
|
|
39
|
+
|
|
40
|
+
def border_radius: -> String?
|
|
41
|
+
|
|
42
|
+
def border_radius=: (String? _) -> String?
|
|
43
|
+
|
|
44
|
+
def border_size: -> String?
|
|
45
|
+
|
|
46
|
+
def border_size=: (String? _) -> String?
|
|
47
|
+
|
|
48
|
+
def disable_tracking: -> bool?
|
|
49
|
+
|
|
50
|
+
def disable_tracking=: (bool? _) -> bool?
|
|
51
|
+
|
|
52
|
+
def font_size: -> String?
|
|
53
|
+
|
|
54
|
+
def font_size=: (String? _) -> String?
|
|
55
|
+
|
|
56
|
+
def locales: -> Courier::Models::locales?
|
|
57
|
+
|
|
58
|
+
def locales=: (Courier::Models::locales? _) -> Courier::Models::locales?
|
|
59
|
+
|
|
60
|
+
def padding: -> String?
|
|
61
|
+
|
|
62
|
+
def padding=: (String? _) -> String?
|
|
63
|
+
|
|
64
|
+
def style: -> Courier::Models::ElementalActionNode::style?
|
|
65
|
+
|
|
66
|
+
def style=: (
|
|
67
|
+
Courier::Models::ElementalActionNode::style? _
|
|
68
|
+
) -> Courier::Models::ElementalActionNode::style?
|
|
69
|
+
|
|
70
|
+
def initialize: (
|
|
71
|
+
content: String,
|
|
72
|
+
href: String,
|
|
73
|
+
?action_id: String?,
|
|
74
|
+
?align: Courier::Models::alignment?,
|
|
75
|
+
?background_color: String?,
|
|
76
|
+
?border_radius: String?,
|
|
77
|
+
?border_size: String?,
|
|
78
|
+
?disable_tracking: bool?,
|
|
79
|
+
?font_size: String?,
|
|
80
|
+
?locales: Courier::Models::locales?,
|
|
81
|
+
?padding: String?,
|
|
82
|
+
?style: Courier::Models::ElementalActionNode::style?
|
|
83
|
+
) -> void
|
|
84
|
+
|
|
85
|
+
def to_hash: -> {
|
|
86
|
+
content: String,
|
|
87
|
+
href: String,
|
|
88
|
+
action_id: String?,
|
|
89
|
+
align: Courier::Models::alignment?,
|
|
90
|
+
background_color: String?,
|
|
91
|
+
border_radius: String?,
|
|
92
|
+
border_size: String?,
|
|
93
|
+
disable_tracking: bool?,
|
|
94
|
+
font_size: String?,
|
|
95
|
+
locales: Courier::Models::locales?,
|
|
96
|
+
padding: String?,
|
|
97
|
+
style: Courier::Models::ElementalActionNode::style?
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
type style = :button | :link
|
|
101
|
+
|
|
102
|
+
module Style
|
|
103
|
+
extend Courier::Internal::Type::Enum
|
|
104
|
+
|
|
105
|
+
BUTTON: :button
|
|
106
|
+
LINK: :link
|
|
107
|
+
|
|
108
|
+
def self?.values: -> ::Array[Courier::Models::ElementalActionNode::style]
|
|
109
|
+
end
|
|
110
|
+
end
|
|
111
|
+
end
|
|
112
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_action_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalActionNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalActionNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalActionNodeWithType < Courier::Models::ElementalActionNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalActionNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_divider_node = { color: String? }
|
|
4
|
+
|
|
5
|
+
class ElementalDividerNode < Courier::Models::ElementalBaseNode
|
|
6
|
+
def color: -> String?
|
|
7
|
+
|
|
8
|
+
def color=: (String? _) -> String?
|
|
9
|
+
|
|
10
|
+
def initialize: (?color: String?) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { color: String? }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_divider_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalDividerNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalDividerNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalDividerNodeWithType < Courier::Models::ElementalDividerNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalDividerNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_html_node =
|
|
4
|
+
{ content: String, locales: Courier::Models::locales? }
|
|
5
|
+
|
|
6
|
+
class ElementalHTMLNode < Courier::Models::ElementalBaseNode
|
|
7
|
+
def content: -> String
|
|
8
|
+
|
|
9
|
+
def content=: (String _) -> String
|
|
10
|
+
|
|
11
|
+
def locales: -> Courier::Models::locales?
|
|
12
|
+
|
|
13
|
+
def locales=: (Courier::Models::locales? _) -> Courier::Models::locales?
|
|
14
|
+
|
|
15
|
+
def initialize: (
|
|
16
|
+
content: String,
|
|
17
|
+
?locales: Courier::Models::locales?
|
|
18
|
+
) -> void
|
|
19
|
+
|
|
20
|
+
def to_hash: -> { content: String, locales: Courier::Models::locales? }
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_html_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalHTMLNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalHTMLNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalHTMLNodeWithType < Courier::Models::ElementalHTMLNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalHTMLNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_image_node =
|
|
4
|
+
{
|
|
5
|
+
src: String,
|
|
6
|
+
align: Courier::Models::alignment?,
|
|
7
|
+
alt_text: String?,
|
|
8
|
+
border_color: String?,
|
|
9
|
+
border_size: String?,
|
|
10
|
+
href: String?,
|
|
11
|
+
padding: String?,
|
|
12
|
+
width: String?
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
class ElementalImageNode < Courier::Models::ElementalBaseNode
|
|
16
|
+
def src: -> String
|
|
17
|
+
|
|
18
|
+
def src=: (String _) -> String
|
|
19
|
+
|
|
20
|
+
def align: -> Courier::Models::alignment?
|
|
21
|
+
|
|
22
|
+
def align=: (Courier::Models::alignment? _) -> Courier::Models::alignment?
|
|
23
|
+
|
|
24
|
+
def alt_text: -> String?
|
|
25
|
+
|
|
26
|
+
def alt_text=: (String? _) -> String?
|
|
27
|
+
|
|
28
|
+
def border_color: -> String?
|
|
29
|
+
|
|
30
|
+
def border_color=: (String? _) -> String?
|
|
31
|
+
|
|
32
|
+
def border_size: -> String?
|
|
33
|
+
|
|
34
|
+
def border_size=: (String? _) -> String?
|
|
35
|
+
|
|
36
|
+
def href: -> String?
|
|
37
|
+
|
|
38
|
+
def href=: (String? _) -> String?
|
|
39
|
+
|
|
40
|
+
def padding: -> String?
|
|
41
|
+
|
|
42
|
+
def padding=: (String? _) -> String?
|
|
43
|
+
|
|
44
|
+
def width: -> String?
|
|
45
|
+
|
|
46
|
+
def width=: (String? _) -> String?
|
|
47
|
+
|
|
48
|
+
def initialize: (
|
|
49
|
+
src: String,
|
|
50
|
+
?align: Courier::Models::alignment?,
|
|
51
|
+
?alt_text: String?,
|
|
52
|
+
?border_color: String?,
|
|
53
|
+
?border_size: String?,
|
|
54
|
+
?href: String?,
|
|
55
|
+
?padding: String?,
|
|
56
|
+
?width: String?
|
|
57
|
+
) -> void
|
|
58
|
+
|
|
59
|
+
def to_hash: -> {
|
|
60
|
+
src: String,
|
|
61
|
+
align: Courier::Models::alignment?,
|
|
62
|
+
alt_text: String?,
|
|
63
|
+
border_color: String?,
|
|
64
|
+
border_size: String?,
|
|
65
|
+
href: String?,
|
|
66
|
+
padding: String?,
|
|
67
|
+
width: String?
|
|
68
|
+
}
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_image_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalImageNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalImageNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalImageNodeWithType < Courier::Models::ElementalImageNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalImageNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_meta_node = { title: String? }
|
|
4
|
+
|
|
5
|
+
class ElementalMetaNode < Courier::Models::ElementalBaseNode
|
|
6
|
+
def title: -> String?
|
|
7
|
+
|
|
8
|
+
def title=: (String? _) -> String?
|
|
9
|
+
|
|
10
|
+
def initialize: (?title: String?) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { title: String? }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_meta_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalMetaNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalMetaNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalMetaNodeWithType < Courier::Models::ElementalMetaNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalMetaNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_quote_node =
|
|
4
|
+
{
|
|
5
|
+
content: String,
|
|
6
|
+
align: Courier::Models::alignment?,
|
|
7
|
+
border_color: String?,
|
|
8
|
+
font_size: String?,
|
|
9
|
+
line_height: String?,
|
|
10
|
+
locales: Courier::Models::locales?,
|
|
11
|
+
text_style: Courier::Models::text_style
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
class ElementalQuoteNode < Courier::Models::ElementalBaseNode
|
|
15
|
+
def content: -> String
|
|
16
|
+
|
|
17
|
+
def content=: (String _) -> String
|
|
18
|
+
|
|
19
|
+
def align: -> Courier::Models::alignment?
|
|
20
|
+
|
|
21
|
+
def align=: (Courier::Models::alignment? _) -> Courier::Models::alignment?
|
|
22
|
+
|
|
23
|
+
def border_color: -> String?
|
|
24
|
+
|
|
25
|
+
def border_color=: (String? _) -> String?
|
|
26
|
+
|
|
27
|
+
def font_size: -> String?
|
|
28
|
+
|
|
29
|
+
def font_size=: (String? _) -> String?
|
|
30
|
+
|
|
31
|
+
def line_height: -> String?
|
|
32
|
+
|
|
33
|
+
def line_height=: (String? _) -> String?
|
|
34
|
+
|
|
35
|
+
def locales: -> Courier::Models::locales?
|
|
36
|
+
|
|
37
|
+
def locales=: (Courier::Models::locales? _) -> Courier::Models::locales?
|
|
38
|
+
|
|
39
|
+
def text_style: -> Courier::Models::text_style?
|
|
40
|
+
|
|
41
|
+
def text_style=: (
|
|
42
|
+
Courier::Models::text_style _
|
|
43
|
+
) -> Courier::Models::text_style
|
|
44
|
+
|
|
45
|
+
def initialize: (
|
|
46
|
+
content: String,
|
|
47
|
+
?align: Courier::Models::alignment?,
|
|
48
|
+
?border_color: String?,
|
|
49
|
+
?font_size: String?,
|
|
50
|
+
?line_height: String?,
|
|
51
|
+
?locales: Courier::Models::locales?,
|
|
52
|
+
?text_style: Courier::Models::text_style
|
|
53
|
+
) -> void
|
|
54
|
+
|
|
55
|
+
def to_hash: -> {
|
|
56
|
+
content: String,
|
|
57
|
+
align: Courier::Models::alignment?,
|
|
58
|
+
border_color: String?,
|
|
59
|
+
font_size: String?,
|
|
60
|
+
line_height: String?,
|
|
61
|
+
locales: Courier::Models::locales?,
|
|
62
|
+
text_style: Courier::Models::text_style
|
|
63
|
+
}
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_quote_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalQuoteNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalQuoteNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalQuoteNodeWithType < Courier::Models::ElementalQuoteNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalQuoteNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type elemental_text_node =
|
|
4
|
+
{
|
|
5
|
+
content: String,
|
|
6
|
+
align: Courier::Models::ElementalTextNode::align,
|
|
7
|
+
bold: String?,
|
|
8
|
+
color: String?,
|
|
9
|
+
font_size: String?,
|
|
10
|
+
format_: Courier::Models::ElementalTextNode::format_?,
|
|
11
|
+
italic: String?,
|
|
12
|
+
line_height: String?,
|
|
13
|
+
locales: Courier::Models::locales?,
|
|
14
|
+
strikethrough: String?,
|
|
15
|
+
text_style: Courier::Models::text_style?,
|
|
16
|
+
underline: String?
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
class ElementalTextNode < Courier::Models::ElementalBaseNode
|
|
20
|
+
def content: -> String
|
|
21
|
+
|
|
22
|
+
def content=: (String _) -> String
|
|
23
|
+
|
|
24
|
+
def align: -> Courier::Models::ElementalTextNode::align?
|
|
25
|
+
|
|
26
|
+
def align=: (
|
|
27
|
+
Courier::Models::ElementalTextNode::align _
|
|
28
|
+
) -> Courier::Models::ElementalTextNode::align
|
|
29
|
+
|
|
30
|
+
def bold: -> String?
|
|
31
|
+
|
|
32
|
+
def bold=: (String? _) -> String?
|
|
33
|
+
|
|
34
|
+
def color: -> String?
|
|
35
|
+
|
|
36
|
+
def color=: (String? _) -> String?
|
|
37
|
+
|
|
38
|
+
def font_size: -> String?
|
|
39
|
+
|
|
40
|
+
def font_size=: (String? _) -> String?
|
|
41
|
+
|
|
42
|
+
def format_: -> Courier::Models::ElementalTextNode::format_?
|
|
43
|
+
|
|
44
|
+
def format_=: (
|
|
45
|
+
Courier::Models::ElementalTextNode::format_? _
|
|
46
|
+
) -> Courier::Models::ElementalTextNode::format_?
|
|
47
|
+
|
|
48
|
+
def italic: -> String?
|
|
49
|
+
|
|
50
|
+
def italic=: (String? _) -> String?
|
|
51
|
+
|
|
52
|
+
def line_height: -> String?
|
|
53
|
+
|
|
54
|
+
def line_height=: (String? _) -> String?
|
|
55
|
+
|
|
56
|
+
def locales: -> Courier::Models::locales?
|
|
57
|
+
|
|
58
|
+
def locales=: (Courier::Models::locales? _) -> Courier::Models::locales?
|
|
59
|
+
|
|
60
|
+
def strikethrough: -> String?
|
|
61
|
+
|
|
62
|
+
def strikethrough=: (String? _) -> String?
|
|
63
|
+
|
|
64
|
+
def text_style: -> Courier::Models::text_style?
|
|
65
|
+
|
|
66
|
+
def text_style=: (
|
|
67
|
+
Courier::Models::text_style? _
|
|
68
|
+
) -> Courier::Models::text_style?
|
|
69
|
+
|
|
70
|
+
def underline: -> String?
|
|
71
|
+
|
|
72
|
+
def underline=: (String? _) -> String?
|
|
73
|
+
|
|
74
|
+
def initialize: (
|
|
75
|
+
content: String,
|
|
76
|
+
?align: Courier::Models::ElementalTextNode::align,
|
|
77
|
+
?bold: String?,
|
|
78
|
+
?color: String?,
|
|
79
|
+
?font_size: String?,
|
|
80
|
+
?format_: Courier::Models::ElementalTextNode::format_?,
|
|
81
|
+
?italic: String?,
|
|
82
|
+
?line_height: String?,
|
|
83
|
+
?locales: Courier::Models::locales?,
|
|
84
|
+
?strikethrough: String?,
|
|
85
|
+
?text_style: Courier::Models::text_style?,
|
|
86
|
+
?underline: String?
|
|
87
|
+
) -> void
|
|
88
|
+
|
|
89
|
+
def to_hash: -> {
|
|
90
|
+
content: String,
|
|
91
|
+
align: Courier::Models::ElementalTextNode::align,
|
|
92
|
+
bold: String?,
|
|
93
|
+
color: String?,
|
|
94
|
+
font_size: String?,
|
|
95
|
+
format_: Courier::Models::ElementalTextNode::format_?,
|
|
96
|
+
italic: String?,
|
|
97
|
+
line_height: String?,
|
|
98
|
+
locales: Courier::Models::locales?,
|
|
99
|
+
strikethrough: String?,
|
|
100
|
+
text_style: Courier::Models::text_style?,
|
|
101
|
+
underline: String?
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
type align = :left | :center | :right
|
|
105
|
+
|
|
106
|
+
module Align
|
|
107
|
+
extend Courier::Internal::Type::Enum
|
|
108
|
+
|
|
109
|
+
LEFT: :left
|
|
110
|
+
CENTER: :center
|
|
111
|
+
RIGHT: :right
|
|
112
|
+
|
|
113
|
+
def self?.values: -> ::Array[Courier::Models::ElementalTextNode::align]
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
type format_ = :markdown
|
|
117
|
+
|
|
118
|
+
module Format
|
|
119
|
+
extend Courier::Internal::Type::Enum
|
|
120
|
+
|
|
121
|
+
MARKDOWN: :markdown
|
|
122
|
+
|
|
123
|
+
def self?.values: -> ::Array[Courier::Models::ElementalTextNode::format_]
|
|
124
|
+
end
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
end
|
|
@@ -3,7 +3,7 @@ module Courier
|
|
|
3
3
|
type elemental_text_node_with_type =
|
|
4
4
|
{ type: Courier::Models::ElementalTextNodeWithType::type_ }
|
|
5
5
|
|
|
6
|
-
class ElementalTextNodeWithType < Courier::Models::
|
|
6
|
+
class ElementalTextNodeWithType < Courier::Models::ElementalTextNode
|
|
7
7
|
def `type`: -> Courier::Models::ElementalTextNodeWithType::type_?
|
|
8
8
|
|
|
9
9
|
def type=: (
|
|
@@ -5,6 +5,7 @@ module Courier
|
|
|
5
5
|
message: Courier::JourneySendNode::Message,
|
|
6
6
|
type: Courier::Models::JourneySendNode::type_,
|
|
7
7
|
id: String,
|
|
8
|
+
channel: Courier::Models::JourneySendNode::channel,
|
|
8
9
|
conditions: Courier::Models::journey_conditions_field,
|
|
9
10
|
experiment: Courier::JourneyExperiment
|
|
10
11
|
}
|
|
@@ -18,6 +19,12 @@ module Courier
|
|
|
18
19
|
|
|
19
20
|
def id=: (String) -> String
|
|
20
21
|
|
|
22
|
+
attr_reader channel: Courier::Models::JourneySendNode::channel?
|
|
23
|
+
|
|
24
|
+
def channel=: (
|
|
25
|
+
Courier::Models::JourneySendNode::channel
|
|
26
|
+
) -> Courier::Models::JourneySendNode::channel
|
|
27
|
+
|
|
21
28
|
attr_reader conditions: Courier::Models::journey_conditions_field?
|
|
22
29
|
|
|
23
30
|
def conditions=: (
|
|
@@ -34,6 +41,7 @@ module Courier
|
|
|
34
41
|
message: Courier::JourneySendNode::Message,
|
|
35
42
|
type: Courier::Models::JourneySendNode::type_,
|
|
36
43
|
?id: String,
|
|
44
|
+
?channel: Courier::Models::JourneySendNode::channel,
|
|
37
45
|
?conditions: Courier::Models::journey_conditions_field,
|
|
38
46
|
?experiment: Courier::JourneyExperiment
|
|
39
47
|
) -> void
|
|
@@ -42,6 +50,7 @@ module Courier
|
|
|
42
50
|
message: Courier::JourneySendNode::Message,
|
|
43
51
|
type: Courier::Models::JourneySendNode::type_,
|
|
44
52
|
id: String,
|
|
53
|
+
channel: Courier::Models::JourneySendNode::channel,
|
|
45
54
|
conditions: Courier::Models::journey_conditions_field,
|
|
46
55
|
experiment: Courier::JourneyExperiment
|
|
47
56
|
}
|
|
@@ -183,6 +192,21 @@ module Courier
|
|
|
183
192
|
|
|
184
193
|
def self?.values: -> ::Array[Courier::Models::JourneySendNode::type_]
|
|
185
194
|
end
|
|
195
|
+
|
|
196
|
+
type channel = :email | :sms | :push | :inbox | :slack | :msteams
|
|
197
|
+
|
|
198
|
+
module Channel
|
|
199
|
+
extend Courier::Internal::Type::Enum
|
|
200
|
+
|
|
201
|
+
EMAIL: :email
|
|
202
|
+
SMS: :sms
|
|
203
|
+
PUSH: :push
|
|
204
|
+
INBOX: :inbox
|
|
205
|
+
SLACK: :slack
|
|
206
|
+
MSTEAMS: :msteams
|
|
207
|
+
|
|
208
|
+
def self?.values: -> ::Array[Courier::Models::JourneySendNode::channel]
|
|
209
|
+
end
|
|
186
210
|
end
|
|
187
211
|
end
|
|
188
212
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module Courier
|
|
2
|
+
module Models
|
|
3
|
+
type locale_item = { content: String }
|
|
4
|
+
|
|
5
|
+
class LocaleItem < Courier::Internal::Type::BaseModel
|
|
6
|
+
attr_accessor content: String
|
|
7
|
+
|
|
8
|
+
def initialize: (content: String) -> void
|
|
9
|
+
|
|
10
|
+
def to_hash: -> { content: String }
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
type locales = ::Hash[Symbol, Courier::LocaleItem]?
|
|
14
|
+
|
|
15
|
+
Locales: Courier::Internal::Type::Converter
|
|
16
|
+
end
|
|
17
|
+
end
|
data/sig/courier/models.rbs
CHANGED
|
@@ -155,6 +155,8 @@ module Courier
|
|
|
155
155
|
|
|
156
156
|
module Discord = Courier::Models::Discord
|
|
157
157
|
|
|
158
|
+
class ElementalActionNode = Courier::Models::ElementalActionNode
|
|
159
|
+
|
|
158
160
|
class ElementalActionNodeWithType = Courier::Models::ElementalActionNodeWithType
|
|
159
161
|
|
|
160
162
|
class ElementalBaseNode = Courier::Models::ElementalBaseNode
|
|
@@ -167,18 +169,30 @@ module Courier
|
|
|
167
169
|
|
|
168
170
|
class ElementalContentSugar = Courier::Models::ElementalContentSugar
|
|
169
171
|
|
|
172
|
+
class ElementalDividerNode = Courier::Models::ElementalDividerNode
|
|
173
|
+
|
|
170
174
|
class ElementalDividerNodeWithType = Courier::Models::ElementalDividerNodeWithType
|
|
171
175
|
|
|
176
|
+
class ElementalHTMLNode = Courier::Models::ElementalHTMLNode
|
|
177
|
+
|
|
172
178
|
class ElementalHTMLNodeWithType = Courier::Models::ElementalHTMLNodeWithType
|
|
173
179
|
|
|
180
|
+
class ElementalImageNode = Courier::Models::ElementalImageNode
|
|
181
|
+
|
|
174
182
|
class ElementalImageNodeWithType = Courier::Models::ElementalImageNodeWithType
|
|
175
183
|
|
|
184
|
+
class ElementalMetaNode = Courier::Models::ElementalMetaNode
|
|
185
|
+
|
|
176
186
|
class ElementalMetaNodeWithType = Courier::Models::ElementalMetaNodeWithType
|
|
177
187
|
|
|
178
188
|
module ElementalNode = Courier::Models::ElementalNode
|
|
179
189
|
|
|
190
|
+
class ElementalQuoteNode = Courier::Models::ElementalQuoteNode
|
|
191
|
+
|
|
180
192
|
class ElementalQuoteNodeWithType = Courier::Models::ElementalQuoteNodeWithType
|
|
181
193
|
|
|
194
|
+
class ElementalTextNode = Courier::Models::ElementalTextNode
|
|
195
|
+
|
|
182
196
|
class ElementalTextNodeWithType = Courier::Models::ElementalTextNodeWithType
|
|
183
197
|
|
|
184
198
|
class ElementWithChecksums = Courier::Models::ElementWithChecksums
|
|
@@ -337,6 +351,10 @@ module Courier
|
|
|
337
351
|
|
|
338
352
|
class ListUpdateParams = Courier::Models::ListUpdateParams
|
|
339
353
|
|
|
354
|
+
class LocaleItem = Courier::Models::LocaleItem
|
|
355
|
+
|
|
356
|
+
Locales: Courier::Internal::Type::Converter
|
|
357
|
+
|
|
340
358
|
class Logo = Courier::Models::Logo
|
|
341
359
|
|
|
342
360
|
class MessageCancelParams = Courier::Models::MessageCancelParams
|