-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.go
150 lines (123 loc) · 5.56 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
package gosdk
type ComponentTextSize string
const (
ComponentTextSizeS ComponentTextSize = "S"
ComponentTextSizeM ComponentTextSize = "M"
ComponentTextSizeL ComponentTextSize = "L"
)
type ComponentPlainTextSize string
const (
ComponentPlainTextSizeS ComponentPlainTextSize = "S"
ComponentPlainTextSizeM ComponentPlainTextSize = "M"
ComponentPlainTextSizeL ComponentPlainTextSize = "L"
)
type ComponentTextColor string
const (
ComponentTextColorNormal ComponentTextColor = "NORMAL"
ComponentTextColorMuted ComponentTextColor = "MUTED"
ComponentTextColorSuccess ComponentTextColor = "SUCCESS"
ComponentTextColorWarning ComponentTextColor = "WARNING"
ComponentTextColorError ComponentTextColor = "ERROR"
)
type ComponentPlainTextColor string
const (
ComponentPlainTextColorNormal ComponentPlainTextColor = "NORMAL"
ComponentPlainTextColorMuted ComponentPlainTextColor = "MUTED"
ComponentPlainTextColorSuccess ComponentPlainTextColor = "SUCCESS"
ComponentPlainTextColorWarning ComponentPlainTextColor = "WARNING"
ComponentPlainTextColorError ComponentPlainTextColor = "ERROR"
)
type ComponentSpacerSize string
const (
ComponentSpacerSizeXS ComponentSpacerSize = "XS"
ComponentSpacerSizeS ComponentSpacerSize = "S"
ComponentSpacerSizeM ComponentSpacerSize = "M"
ComponentSpacerSizeL ComponentSpacerSize = "L"
ComponentSpacerSizeXL ComponentSpacerSize = "XL"
)
type ComponentDividerSpacingSize string
const (
ComponentDividerSpacingSizeXS ComponentDividerSpacingSize = "XS"
ComponentDividerSpacingSizeS ComponentDividerSpacingSize = "S"
ComponentDividerSpacingSizeM ComponentDividerSpacingSize = "M"
ComponentDividerSpacingSizeL ComponentDividerSpacingSize = "L"
ComponentDividerSpacingSizeXL ComponentDividerSpacingSize = "XL"
)
type ComponentBadgeColor string
const (
ComponentBadgeColorGrey ComponentBadgeColor = "GREY"
ComponentBadgeColorGreen ComponentBadgeColor = "GREEN"
ComponentBadgeColorYellow ComponentBadgeColor = "YELLOW"
ComponentBadgeColorRed ComponentBadgeColor = "RED"
ComponentBadgeColorBlue ComponentBadgeColor = "BLUE"
)
type ComponentText struct {
TextSize *ComponentTextSize `json:"textSize,omitempty"`
TextColor *ComponentTextColor `json:"textColor,omitempty"`
Text string `json:"text"`
}
type ComponentPlainText struct {
PlainTextSize *ComponentPlainTextSize `json:"plainTextSize,omitempty"`
PlainTextColor *ComponentPlainTextColor `json:"plainTextColor,omitempty"`
PlainText string `json:"plainText"`
}
type ComponentDivider struct {
DividerSpacingSize *ComponentDividerSpacingSize `json:"dividerSpacingSize,omitempty"`
}
type ComponentLinkButton struct {
LinkButtonURL string `json:"linkButtonUrl"`
LinkButtonLabel string `json:"linkButtonLabel"`
}
type ComponentSpacer struct {
SpacerSize ComponentSpacerSize `json:"spacerSize"`
}
type ComponentBadge struct {
BadgeLabel string `json:"badgeLabel"`
BadgeColor *ComponentBadgeColor `json:"badgeColor,omitempty"`
}
type ComponentCopyButton struct {
CopyButtonValue string `json:"copyButtonValue"`
CopyButtonTooltipLabel *string `json:"copyButtonTooltipLabel,omitempty"`
}
type ComponentRowContentUnionInput struct {
ComponentText *ComponentText `json:"componentText,omitempty"`
ComponentPlainText *ComponentPlainText `json:"componentPlainText,omitempty"`
ComponentDivider *ComponentDivider `json:"componentDivider,omitempty"`
ComponentLinkButton *ComponentLinkButton `json:"componentLinkButton,omitempty"`
ComponentSpacer *ComponentSpacer `json:"componentSpacer,omitempty"`
ComponentBadge *ComponentBadge `json:"componentBadge,omitempty"`
ComponentCopyButton *ComponentCopyButton `json:"componentCopyButton,omitempty"`
}
type ComponentRow struct {
RowMainContent []ComponentRowContentUnionInput `json:"rowMainContent"`
RowAsideContent []ComponentRowContentUnionInput `json:"rowAsideContent"`
}
type ComponentContainerContentUnionInput struct {
ComponentText *ComponentText `json:"componentText,omitempty"`
ComponentPlainText *ComponentPlainText `json:"componentPlainText,omitempty"`
ComponentDivider *ComponentDivider `json:"componentDivider,omitempty"`
ComponentLinkButton *ComponentLinkButton `json:"componentLinkButton,omitempty"`
ComponentSpacer *ComponentSpacer `json:"componentSpacer,omitempty"`
ComponentBadge *ComponentBadge `json:"componentBadge,omitempty"`
ComponentCopyButton *ComponentCopyButton `json:"componentCopyButton,omitempty"`
ComponentRow *ComponentRow `json:"componentRow,omitempty"`
}
type ComponentContainer struct {
ContainerContent []ComponentContainerContentUnionInput `json:"containerContent"`
}
type Component struct {
ComponentText *ComponentText `json:"componentText,omitempty"`
ComponentPlainText *ComponentPlainText `json:"componentPlainText,omitempty"`
ComponentDivider *ComponentDivider `json:"componentDivider,omitempty"`
ComponentLinkButton *ComponentLinkButton `json:"componentLinkButton,omitempty"`
ComponentSpacer *ComponentSpacer `json:"componentSpacer,omitempty"`
ComponentBadge *ComponentBadge `json:"componentBadge,omitempty"`
ComponentCopyButton *ComponentCopyButton `json:"componentCopyButton,omitempty"`
ComponentRow *ComponentRow `json:"componentRow,omitempty"`
ComponentContainer *ComponentContainer `json:"componentContainer,omitempty"`
}
type CustomerCard struct {
Key string `json:"key"`
TimeToLiveSeconds *int `json:"timeToLiveSeconds,omitempty"`
Components []Component `json:"components,omitempty"`
}