Versions in this module Expand all Collapse all v1 v1.7.9 Jul 18, 2022 v1.7.2 Jul 18, 2022 v0 v0.115.3 Jul 18, 2022 Changes in this version + func IsPossibleDefinition(data json.RawMessage) bool + func MigrateDefinition(data json.RawMessage, baseMediaURL string) (json.RawMessage, error) + func TransformTranslations(items []Translations) map[envs.Language][]string + func URLJoin(base, relative string) string + type Action struct + Channel uuids.UUID + Contacts []ContactReference + Emails []string + Field string + Flow FlowReference + Groups []GroupReference + Label string + Labels []LabelReference + Language envs.Language + Media json.RawMessage + Msg json.RawMessage + Name string + QuickReplies json.RawMessage + Recording json.RawMessage + SendAll bool + Subject string + Type string + URL string + UUID uuids.UUID + Value string + Variables []VariableReference + type ActionSet struct + Actions []Action + Destination uuids.UUID + ExitUUID uuids.UUID + UUID uuids.UUID + X int + Y int + type ContactReference struct + Name string + UUID uuids.UUID + type Flow struct + ActionSets []ActionSet + BaseLanguage envs.Language + Entry uuids.UUID + FlowType string + Metadata *Metadata + Name string + RuleSets []RuleSet + UUID uuids.UUID + func (f *Flow) Migrate(baseMediaURL string) ([]byte, error) + type FlowReference struct + Name string + UUID uuids.UUID + type GroupReference struct + Name string + UUID uuids.UUID + func (g *GroupReference) Migrate() *assets.GroupReference + func (g *GroupReference) UnmarshalJSON(data []byte) error + type LabelReference struct + Name string + UUID uuids.UUID + func (l *LabelReference) UnmarshalJSON(data []byte) error + type Metadata struct + Expires int + Name string + Notes []Note + Revision int + UUID uuids.UUID + type NodeUI struct + Config NodeUIConfig + Position Position + Type UINodeType + func NewNodeUI(nodeType UINodeType, x, y int, config NodeUIConfig) *NodeUI + type NodeUIConfig map[string]interface + func (c NodeUIConfig) AddCaseConfig(uuid uuids.UUID, config map[string]interface{}) + type Note struct + Body string + Title string + X decimal.Decimal + Y decimal.Decimal + func (n *Note) Migrate() Sticky + type Position struct + Left int + Top int + type Rule struct + Category Translations + Destination uuids.UUID + DestinationType string + Test TypedEnvelope + UUID uuids.UUID + type RuleSet struct + Config json.RawMessage + FinishedKey string + Label string + Operand string + Rules []Rule + Type string + UUID uuids.UUID + X int + Y int + type RulesetConfig struct + FieldDelimiter string + FieldIndex int + Flow *FlowReference + Resthook string + Webhook string + WebhookAction string + WebhookHeaders []WebhookHeader + type Sticky struct + Body string + Color string + Position Position + Title string + type StringOrNumber string + func (s *StringOrNumber) UnmarshalJSON(data []byte) error + type Translations map[envs.Language]string + func ReadTranslations(data json.RawMessage) (Translations, error) + func (t *Translations) UnmarshalJSON(data []byte) error + func (t Translations) Base(baseLanguage envs.Language) string + type TypedEnvelope struct + Data []byte + Type string + func (e *TypedEnvelope) UnmarshalJSON(b []byte) error + type UI struct + Nodes map[uuids.UUID]*NodeUI + Stickies map[uuids.UUID]Sticky + func NewUI() *UI + func (u *UI) AddNode(uuid uuids.UUID, nodeDetails *NodeUI) + func (u *UI) AddSticky(sticky Sticky) + type UINodeType string + const UINodeTypeActionSet + const UINodeTypeSplitByAirtime + const UINodeTypeSplitByContactField + const UINodeTypeSplitByExpression + const UINodeTypeSplitByGroups + const UINodeTypeSplitByRandom + const UINodeTypeSplitByResthook + const UINodeTypeSplitByRunResult + const UINodeTypeSplitByRunResultDelimited + const UINodeTypeSplitBySubflow + const UINodeTypeSplitByWebhook + const UINodeTypeWaitForResponse + type VariableReference struct + ID string + type WebhookHeader struct + Name string + Value string