-
Notifications
You must be signed in to change notification settings - Fork 2
/
constants.go
137 lines (112 loc) · 4.02 KB
/
constants.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
package pyrus
// FieldType is a type of Form field.
type FieldType string
const (
FieldTypeText FieldType = "text"
FieldTypeMoney FieldType = "money"
FieldTypeNumber FieldType = "number"
FieldTypeDate FieldType = "date"
FieldTypeTime FieldType = "time"
FieldTypeCheckmark FieldType = "checkmark"
FieldTypeDueDate FieldType = "due_date"
FieldTypeDueDateTime FieldType = "due_date_time"
FieldTypeEmail FieldType = "email"
FieldTypePhone FieldType = "phone"
FieldTypeFlag FieldType = "flag"
FieldTypeStep FieldType = "step"
FieldTypeStatus FieldType = "status"
FieldTypeCreationDate FieldType = "creation_date"
FieldTypeNote FieldType = "note"
FieldTypeCatalog FieldType = "catalog"
FieldTypeFile FieldType = "file"
FieldTypePerson FieldType = "person"
FieldTypeAuthor FieldType = "author"
FieldTypeTable FieldType = "table"
FieldTypeMultipleChoice FieldType = "multiple_choice"
FieldTypeTitle FieldType = "title"
FieldTypeFormLink FieldType = "form_link"
FieldTypeProject FieldType = "project"
)
// PersonType is a type of Person.
type PersonType string
const (
PersonTypeUser PersonType = "user"
PersonTypeBot PersonType = "bot"
PersonTypeRole PersonType = "role"
)
// ChannelType is a type of Channel.
type ChannelType string
const (
ChannelTypeEmail ChannelType = "email"
ChannelTypeTelegram ChannelType = "telegram"
ChannelTypeFacebook ChannelType = "facebook"
ChannelTypeVK ChannelType = "vk"
ChannelTypeViber ChannelType = "viber"
ChannelTypeMobileApp ChannelType = "mobile_app"
ChannelTypeWebWidget ChannelType = "web_widget"
ChannelTypeMoySklad ChannelType = "moy_sklad"
ChannelTypeZadarma ChannelType = "zadarma"
ChannelTypeAmoCRM ChannelType = "amo_crm"
)
// ChoiceType is a type of approval choice in case of task.
type ChoiceType string
const (
ChoiceTypeApproved ChoiceType = "approved"
ChoiceTypeAcknowledged ChoiceType = "acknowledged"
ChoiceTypeRejected ChoiceType = "rejected"
ChoiceTypeRevoked ChoiceType = "revoked"
ChoiceTypeWaiting ChoiceType = "waiting"
)
// ActionType is a type of action in case of task.
type ActionType string
const (
ActionTypeFinished ActionType = "finished"
ActionTypeReopened ActionType = "reopened"
)
// CheckmarkType is a type of checkmark. It could be only checked or unchecked.
type CheckmarkType string
const (
CheckmarkTypeChecked CheckmarkType = "checked"
CheckmarkTypeUnchecked CheckmarkType = "unchecked"
)
// FlagType is a type of flag. While checkmark could be only checked or unchecked, flag could also has none state.
type FlagType string
const (
FlagTypeNone FlagType = "none"
FlagTypeChecked FlagType = "checked"
FlagTypeUnchecked FlagType = "unchecked"
)
// StatusType is a type of status in case of task.
type StatusType string
const (
StatusTypeOpen StatusType = "open"
StatusTypeClosed StatusType = "closed"
)
// CatalogHeaderType is a type of CatalogHeader
type CatalogHeaderType string
const (
CatalogHeaderTypeText CatalogHeaderType = "text"
CatalogHeaderTypeWorkflow CatalogHeaderType = "workflow"
)
// DisconnectPartyType is a type of disconnect party. Only relevant for calls API.
type DisconnectPartyType string
const (
DisconnectPartyTypeAgent DisconnectPartyType = "agent"
DisconnectPartyTypeClient DisconnectPartyType = "client"
DisconnectPartyTypeError DisconnectPartyType = "error"
DisconnectPartyTypeOther DisconnectPartyType = "other"
)
// CallStatusType is a type of call. Only relevant for calls API.
type CallStatusType string
const (
CallStatusTypeAnswered CallStatusType = "answered"
CallStatusTypeNoAnswer CallStatusType = "no answer"
CallStatusTypeBusy CallStatusType = "busy"
CallStatusTypeError CallStatusType = "error"
CallStatusTypeOther CallStatusType = "other"
)
// CallEventType is a type of call event. Only relevant for calls API.
type CallEventType string
const (
CallEventTypeShow CallEventType = "show"
)