Words: the values the API uses
The fixed values requests and answers use, from package:crm_sdk/wire.dart (some are also in crm_sdk.dart).
import 'package:crm_sdk/wire.dart';| Name | What it is |
|---|---|
AuthorKind | authorKinds as a type. |
BackgroundKind | backgroundKinds as a type. |
BannerStyle | bannerStyles as a type. |
BlockType | blockTypes as a type. |
BotKind | botKinds as a type. |
CalloutTone | calloutTones as a type. |
CarouselButtonAction | buttonActions as a type. |
CarouselButtonShape | carouselButtonShapes as a type. |
CarouselCorner | carouselCorners as a type. |
CarouselLayout | carouselLayouts as a type. |
CarouselPermission | carouselPermissions as a type. |
CarouselPresentation | carouselPresentations as a type. |
CarouselProgress | carouselProgresses as a type. |
CarouselScrim | carouselScrims as a type. |
CarouselTextScale | carouselTextScales as a type. |
CollectField | collectFields as a type. |
ColorToken | colorTokens as a type. |
ContentAlign | contentAligns as a type. |
ContentButtonStyle | contentButtonStyles as a type. |
ContentVAlign | contentVAligns as a type. |
ConversationState | conversationStates as a type. |
CrmPreferenceChannel | crmPreferenceChannels as a type. |
FieldType | fieldTypes as a type. |
HomeCardKind | homeCardKinds as a type. |
ImageAspect | imageAspects as a type. |
ImageFit | imageFits as a type. |
ImageShape | imageShapes as a type. |
ImageSize | imageSizes as a type. |
MessageKind | messageKinds as a type. |
NewConversations | newConversationsWords as a type. |
PartKind | partKinds as a type. |
QuestionType | questionTypes as a type. |
ReceiptAction | receiptActions as a type. |
ReplyTime | replyTimes as a type. |
SpacerSize | spacerSizes as a type. |
SurveyFormat | surveyFormats as a type. |
SurveyStepKind | surveyStepKinds as a type. |
TeamFaces | teamFacesWords as a type. |
TextSize | textSizes as a type. |
TextWeight | textWeights as a type. |
TicketState | ticketStates as a type. |
AuthorKind
Section titled “AuthorKind”enum AuthorKind implements WireWordauthorKinds as a type.
| Value | Meaning |
|---|---|
guest | |
teammate | A member of the app’s staff, shown by their first name. |
bot | |
system | The messenger itself: a conversation closed, a rating asked for. |
unknown |
Members of AuthorKind
Section titled “Members of AuthorKind”AuthorKind()
Section titled “AuthorKind()”const AuthorKind(String word)parse (static)
Section titled “parse (static)”static AuthorKind parse(String word)The kind word names, or unknown.
BackgroundKind
Section titled “BackgroundKind”enum BackgroundKind implements WireWordbackgroundKinds as a type.
| Value | Meaning |
|---|---|
plain | The sheet’s own colour. |
color | |
gradient | |
image | |
unknown |
Members of BackgroundKind
Section titled “Members of BackgroundKind”BackgroundKind()
Section titled “BackgroundKind()”const BackgroundKind(String word)parse (static)
Section titled “parse (static)”static BackgroundKind parse(String word)The word’s value, or unknown.
BannerStyle
Section titled “BannerStyle”enum BannerStyle implements WireWordbannerStyles as a type.
| Value | Meaning |
|---|---|
inline | A strip the width of the screen across its top, pushing it down. |
floating | A card across the top of the screen, pushing it down as inline does. |
unknown |
Members of BannerStyle
Section titled “Members of BannerStyle”BannerStyle()
Section titled “BannerStyle()”const BannerStyle(String word)parse (static)
Section titled “parse (static)”static BannerStyle parse(String word)The style word names, or unknown.
BlockType
Section titled “BlockType”enum BlockType implements WireWordblockTypes as a type. A block the package does not know is unknown,
and is not drawn.
| Value | Meaning |
|---|---|
paragraph | |
heading | |
bullets | |
numbers | |
image | |
button | |
divider | |
eyebrow | The formatting blocks, a carousel’s and a post’s alone: a small capitals label, a tinted box, a list with ticks, empty space and one big emoji. |
callout | |
checklist | |
spacer | |
emoji | |
unknown |
Members of BlockType
Section titled “Members of BlockType”BlockType()
Section titled “BlockType()”const BlockType(String word)parse (static)
Section titled “parse (static)”static BlockType parse(String word)The block type word names, or unknown.
BotKind
Section titled “BotKind”enum BotKind implements WireWordbotKinds as a type. A kind the package does not know is drawn as the
bot saying its words, and asks nothing.
| Value | Meaning |
|---|---|
says | Asks nothing: its words. |
asks | A tap on one of its buttons. |
collects | A piece of data: CollectField. |
suggests | Articles, then whether they helped: yes or no. |
handsOff | The guest handed to a person, with when to expect them. |
resolves | The conversation closed, the guest helped. |
unknown |
Members of BotKind
Section titled “Members of BotKind”BotKind()
Section titled “BotKind()”const BotKind(String word)parse (static)
Section titled “parse (static)”static BotKind parse(String word)The kind word names, or unknown.
CalloutTone
Section titled “CalloutTone”enum CalloutTone implements WireWordcalloutTones as a type.
Values: info, good, warn, unknown.
Members of CalloutTone
Section titled “Members of CalloutTone”CalloutTone()
Section titled “CalloutTone()”const CalloutTone(String word)parse (static)
Section titled “parse (static)”static CalloutTone parse(String word)The word’s value, or unknown.
CarouselButtonAction
Section titled “CarouselButtonAction”enum CarouselButtonAction implements WireWordbuttonActions as a type.
| Value | Meaning |
|---|---|
next | Where the screen’s next goes. |
screen | To the button’s screen. |
back | To the screen seen before this one. |
end | Ends the carousel, completed. |
link | Opens the button’s link, and ends the carousel, completed. |
permission | Asks the phone, then goes on whatever the answer. |
unknown |
Members of CarouselButtonAction
Section titled “Members of CarouselButtonAction”CarouselButtonAction()
Section titled “CarouselButtonAction()”const CarouselButtonAction(String word)parse (static)
Section titled “parse (static)”static CarouselButtonAction parse(String word)The word’s value, or unknown.
CarouselButtonShape
Section titled “CarouselButtonShape”enum CarouselButtonShape implements WireWordcarouselButtonShapes as a type.
Values: pill, rounded, unknown.
Members of CarouselButtonShape
Section titled “Members of CarouselButtonShape”CarouselButtonShape()
Section titled “CarouselButtonShape()”const CarouselButtonShape(String word)parse (static)
Section titled “parse (static)”static CarouselButtonShape parse(String word)The word’s value, or unknown.
CarouselCorner
Section titled “CarouselCorner”enum CarouselCorner implements WireWordcarouselCorners as a type.
Values: soft, round, square, unknown.
Members of CarouselCorner
Section titled “Members of CarouselCorner”CarouselCorner()
Section titled “CarouselCorner()”const CarouselCorner(String word)parse (static)
Section titled “parse (static)”static CarouselCorner parse(String word)The word’s value, or unknown.
CarouselLayout
Section titled “CarouselLayout”enum CarouselLayout implements WireWordcarouselLayouts as a type.
| Value | Meaning |
|---|---|
centred | The words in the middle, a small picture above them. |
imageTop | A hero picture over the words. |
imageFull | The picture filling the screen behind a scrim, light words at the bottom. |
text | Words alone, from the top. |
unknown |
Members of CarouselLayout
Section titled “Members of CarouselLayout”CarouselLayout()
Section titled “CarouselLayout()”const CarouselLayout(String word)parse (static)
Section titled “parse (static)”static CarouselLayout parse(String word)The word’s value, or unknown.
CarouselPermission
Section titled “CarouselPermission”enum CarouselPermission implements WireWordcarouselPermissions as a type.
Values: notifications, location, unknown.
Members of CarouselPermission
Section titled “Members of CarouselPermission”CarouselPermission()
Section titled “CarouselPermission()”const CarouselPermission(String word)parse (static)
Section titled “parse (static)”static CarouselPermission parse(String word)The permission word names, or unknown.
CarouselPresentation
Section titled “CarouselPresentation”enum CarouselPresentation implements WireWordcarouselPresentations as a type.
| Value | Meaning |
|---|---|
sheet | A tall modal sheet, dragged down to close. |
card | A centred card. |
full | The whole screen. |
unknown |
Members of CarouselPresentation
Section titled “Members of CarouselPresentation”CarouselPresentation()
Section titled “CarouselPresentation()”const CarouselPresentation(String word)parse (static)
Section titled “parse (static)”static CarouselPresentation parse(String word)The word’s value, or unknown.
CarouselProgress
Section titled “CarouselProgress”enum CarouselProgress implements WireWordcarouselProgresses as a type.
Values: dots, bar, none, unknown.
Members of CarouselProgress
Section titled “Members of CarouselProgress”CarouselProgress()
Section titled “CarouselProgress()”const CarouselProgress(String word)parse (static)
Section titled “parse (static)”static CarouselProgress parse(String word)The word’s value, or unknown.
CarouselScrim
Section titled “CarouselScrim”enum CarouselScrim implements WireWordcarouselScrims as a type.
Values: none, light, dark, unknown.
Members of CarouselScrim
Section titled “Members of CarouselScrim”CarouselScrim()
Section titled “CarouselScrim()”const CarouselScrim(String word)parse (static)
Section titled “parse (static)”static CarouselScrim parse(String word)The word’s value, or unknown.
CarouselTextScale
Section titled “CarouselTextScale”enum CarouselTextScale implements WireWordcarouselTextScales as a type.
Values: compact, regular, large, unknown.
Members of CarouselTextScale
Section titled “Members of CarouselTextScale”CarouselTextScale()
Section titled “CarouselTextScale()”const CarouselTextScale(String word)parse (static)
Section titled “parse (static)”static CarouselTextScale parse(String word)The word’s value, or unknown.
CollectField
Section titled “CollectField”enum CollectField implements WireWordcollectFields as a type.
| Value | Meaning |
|---|---|
text | |
email | |
orderRef | An order’s reference, in the app’s own format (CrmPublicApp.orderRef). |
unknown |
Members of CollectField
Section titled “Members of CollectField”CollectField()
Section titled “CollectField()”const CollectField(String word)parse (static)
Section titled “parse (static)”static CollectField parse(String word)The field word names, or unknown.
ColorToken
Section titled “ColorToken”enum ColorToken implements WireWordcolorTokens as a type.
| Value | Meaning |
|---|---|
accent | The carousel’s accent: its style’s, or the app’s brand. |
ink | The text colour. |
muted | The quieter text beside ink. |
surface | The sheet’s background. |
wash | A faint tint of surface. |
good | |
warn | |
bad | |
unknown |
Members of ColorToken
Section titled “Members of ColorToken”ColorToken()
Section titled “ColorToken()”const ColorToken(String word)parse (static)
Section titled “parse (static)”static ColorToken parse(String word)The word’s value, or unknown.
ContentAlign
Section titled “ContentAlign”enum ContentAlign implements WireWordcontentAligns as a type.
Values: start, center, end, unknown.
Members of ContentAlign
Section titled “Members of ContentAlign”ContentAlign()
Section titled “ContentAlign()”const ContentAlign(String word)parse (static)
Section titled “parse (static)”static ContentAlign parse(String word)The word’s value, or unknown.
ContentButtonStyle
Section titled “ContentButtonStyle”enum ContentButtonStyle implements WireWordcontentButtonStyles as a type.
Values: primary, secondary, text, unknown.
Members of ContentButtonStyle
Section titled “Members of ContentButtonStyle”ContentButtonStyle()
Section titled “ContentButtonStyle()”const ContentButtonStyle(String word)parse (static)
Section titled “parse (static)”static ContentButtonStyle parse(String word)The word’s value, or unknown.
ContentVAlign
Section titled “ContentVAlign”enum ContentVAlign implements WireWordcontentVAligns as a type.
Values: top, center, bottom, unknown.
Members of ContentVAlign
Section titled “Members of ContentVAlign”ContentVAlign()
Section titled “ContentVAlign()”const ContentVAlign(String word)parse (static)
Section titled “parse (static)”static ContentVAlign parse(String word)The word’s value, or unknown.
ConversationState
Section titled “ConversationState”enum ConversationState implements WireWordconversationStates as a type.
| Value | Meaning |
|---|---|
open | Waiting on staff, or on the guest. |
snoozed | Put aside by staff; shown to the guest as open. |
closed | Done with. |
unknown |
Members of ConversationState
Section titled “Members of ConversationState”ConversationState()
Section titled “ConversationState()”const ConversationState(String word)isClosed
Section titled “isClosed”bool get isClosedClosed, as the guest is shown it: snoozed and a word the package does not know are open.
parse (static)
Section titled “parse (static)”static ConversationState parse(String word)The state word names, or unknown.
CrmPreferenceChannel
Section titled “CrmPreferenceChannel”enum CrmPreferenceChannel implements WireWordcrmPreferenceChannels as a type.
Values: email, push, inApp, chat, unknown.
Members of CrmPreferenceChannel
Section titled “Members of CrmPreferenceChannel”CrmPreferenceChannel()
Section titled “CrmPreferenceChannel()”const CrmPreferenceChannel(String word)parse (static)
Section titled “parse (static)”static CrmPreferenceChannel parse(String word)The channel word names, or unknown: one a newer CRM added.
FieldType
Section titled “FieldType”enum FieldType implements WireWordfieldTypes as a type.
| Value | Meaning |
|---|---|
text | |
list | One option of a list, chosen: its text. |
number | |
boolean | |
date | A day, YYYY-MM-DD. |
unknown |
Members of FieldType
Section titled “Members of FieldType”FieldType()
Section titled “FieldType()”const FieldType(String word)parse (static)
Section titled “parse (static)”static FieldType parse(String word)The type word names, or unknown.
HomeCardKind
Section titled “HomeCardKind”enum HomeCardKind implements WireWordhomeCardKinds as a type. A card of a kind this version does not know
is unknown, and left out of the home.
| Value | Meaning |
|---|---|
send | “Send us a message”: starts a conversation. |
searchHelp | Opens the help center’s search. |
articles | A few articles, and a way to browse the rest. |
conversations | The guest’s open conversations, to carry on. |
tickets | The guest’s tickets. |
link | A title, a line and a link. |
status | An announcement: a line, perhaps a title and a link. |
unknown |
Members of HomeCardKind
Section titled “Members of HomeCardKind”HomeCardKind()
Section titled “HomeCardKind()”const HomeCardKind(String word)parse (static)
Section titled “parse (static)”static HomeCardKind parse(String word)The kind word names, or unknown.
ImageAspect
Section titled “ImageAspect”enum ImageAspect implements WireWordimageAspects as a type.
Values: auto, square, fourByThree, wide, portrait, unknown.
Members of ImageAspect
Section titled “Members of ImageAspect”ImageAspect()
Section titled “ImageAspect()”const ImageAspect(String word)parse (static)
Section titled “parse (static)”static ImageAspect parse(String word)The word’s value, or unknown.
ImageFit
Section titled “ImageFit”enum ImageFit implements WireWordimageFits as a type.
Values: cover, contain, unknown.
Members of ImageFit
Section titled “Members of ImageFit”ImageFit()
Section titled “ImageFit()”const ImageFit(String word)parse (static)
Section titled “parse (static)”static ImageFit parse(String word)The word’s value, or unknown.
ImageShape
Section titled “ImageShape”enum ImageShape implements WireWordimageShapes as a type.
| Value | Meaning |
|---|---|
rounded | The carousel’s corner radius. |
circle | |
square | |
unknown |
Members of ImageShape
Section titled “Members of ImageShape”ImageShape()
Section titled “ImageShape()”const ImageShape(String word)parse (static)
Section titled “parse (static)”static ImageShape parse(String word)The word’s value, or unknown.
ImageSize
Section titled “ImageSize”enum ImageSize implements WireWordimageSizes as a type.
| Value | Meaning |
|---|---|
small | |
medium | |
large | |
full | The whole width, edge to edge. |
unknown |
Members of ImageSize
Section titled “Members of ImageSize”ImageSize()
Section titled “ImageSize()”const ImageSize(String word)parse (static)
Section titled “parse (static)”static ImageSize parse(String word)The word’s value, or unknown.
MessageKind
Section titled “MessageKind”enum MessageKind implements WireWordmessageKinds as a type.
| Value | Meaning |
|---|---|
chat | |
post | A full-screen message, one a session at most. |
banner | A strip at the top of the screen. |
carousel | A few full screens the guest swipes through. |
survey | |
push | |
email | |
unknown |
Members of MessageKind
Section titled “Members of MessageKind”MessageKind()
Section titled “MessageKind()”const MessageKind(String word)parse (static)
Section titled “parse (static)”static MessageKind parse(String word)The kind word names, or unknown.
NewConversations
Section titled “NewConversations”enum NewConversations implements WireWordnewConversationsWords as a type.
| Value | Meaning |
|---|---|
always | |
whenNoneOpen | Only while none of theirs is open: they carry on in the one that is. |
never | Never: the messenger is help only. |
unknown |
Members of NewConversations
Section titled “Members of NewConversations”NewConversations()
Section titled “NewConversations()”const NewConversations(String word)parse (static)
Section titled “parse (static)”static NewConversations parse(String word)The choice word names, or unknown.
PartKind
Section titled “PartKind”enum PartKind implements WireWordpartKinds as a type. A kind the package does not know is not drawn.
| Value | Meaning |
|---|---|
message | The guest writing: text, and any pictures. |
reply | A member of staff answering: blocks, and any pictures. |
note | Staff writing to each other. |
bot | The help bot: blocks. |
assignment | The conversation given to someone. |
state | The conversation closed, or opened again. |
ratingRequest | Asking the guest how it went, once; its rating is their answer. |
unknown |
Members of PartKind
Section titled “Members of PartKind”PartKind()
Section titled “PartKind()”const PartKind(String word)guestSees
Section titled “guestSees”bool get guestSeesWhether a part of this kind is ever shown to a guest.
parse (static)
Section titled “parse (static)”static PartKind parse(String word)The kind word names, or unknown.
QuestionType
Section titled “QuestionType”enum QuestionType implements WireWordquestionTypes as a type.
| Value | Meaning |
|---|---|
nps | 0 to 10. |
numeric | The question’s own min to max. |
stars | 1 to 5. |
emoji | 1 to 5, drawn as faces. |
dropdown | |
shortText | |
longText | |
singleChoice | |
multiChoice | |
unknown |
Members of QuestionType
Section titled “Members of QuestionType”QuestionType()
Section titled “QuestionType()”const QuestionType(String word)choice
Section titled “choice”bool get choiceAnswered with options.
scaled
Section titled “scaled”bool get scaledAnswered with a number.
parse (static)
Section titled “parse (static)”static QuestionType parse(String word)The type word names, or unknown.
ReceiptAction
Section titled “ReceiptAction”enum ReceiptAction implements WireWordreceiptActions as a type.
| Value | Meaning |
|---|---|
seen | |
clicked | |
dismissed | |
completed | Read to its end: a carousel’s last screen. |
answered | A carousel’s choice answered: the screen and the options picked. |
unknown |
Members of ReceiptAction
Section titled “Members of ReceiptAction”ReceiptAction()
Section titled “ReceiptAction()”const ReceiptAction(String word)parse (static)
Section titled “parse (static)”static ReceiptAction parse(String word)The action word names, or unknown.
ReplyTime
Section titled “ReplyTime”enum ReplyTime implements WireWordreplyTimes as a type.
Values: minutes, hours, day, unknown.
Members of ReplyTime
Section titled “Members of ReplyTime”ReplyTime()
Section titled “ReplyTime()”const ReplyTime(String word)parse (static)
Section titled “parse (static)”static ReplyTime parse(String word)The time word names, or unknown.
SpacerSize
Section titled “SpacerSize”enum SpacerSize implements WireWordspacerSizes as a type.
Values: small, medium, large, unknown.
Members of SpacerSize
Section titled “Members of SpacerSize”SpacerSize()
Section titled “SpacerSize()”const SpacerSize(String word)parse (static)
Section titled “parse (static)”static SpacerSize parse(String word)The word’s value, or unknown.
SurveyFormat
Section titled “SurveyFormat”enum SurveyFormat implements WireWordsurveyFormats as a type.
| Value | Meaning |
|---|---|
small | A sheet over the bottom of the screen. |
large | The whole screen, with an introduction. |
unknown |
Members of SurveyFormat
Section titled “Members of SurveyFormat”SurveyFormat()
Section titled “SurveyFormat()”const SurveyFormat(String word)parse (static)
Section titled “parse (static)”static SurveyFormat parse(String word)The format word names, or unknown.
SurveyStepKind
Section titled “SurveyStepKind”enum SurveyStepKind implements WireWordsurveyStepKinds as a type.
| Value | Meaning |
|---|---|
questions | |
thankYou | The end: words, and nothing to answer. |
unknown |
Members of SurveyStepKind
Section titled “Members of SurveyStepKind”SurveyStepKind()
Section titled “SurveyStepKind()”const SurveyStepKind(String word)parse (static)
Section titled “parse (static)”static SurveyStepKind parse(String word)The kind word names, or unknown.
TeamFaces
Section titled “TeamFaces”enum TeamFaces implements WireWordteamFacesWords as a type.
| Value | Meaning |
|---|---|
auto | The product’s, and the teammates who last answered the guest. |
chosen | The product’s, and the teammates staff chose. |
none | No faces. |
unknown |
Members of TeamFaces
Section titled “Members of TeamFaces”TeamFaces()
Section titled “TeamFaces()”const TeamFaces(String word)parse (static)
Section titled “parse (static)”static TeamFaces parse(String word)The choice word names, or unknown.
TextSize
Section titled “TextSize”enum TextSize implements WireWordtextSizes as a type.
| Value | Meaning |
|---|---|
display | A screen’s first, largest words. |
title | |
body | |
small | A footnote. |
unknown |
Members of TextSize
Section titled “Members of TextSize”TextSize()
Section titled “TextSize()”const TextSize(String word)parse (static)
Section titled “parse (static)”static TextSize parse(String word)The word’s value, or unknown.
TextWeight
Section titled “TextWeight”enum TextWeight implements WireWordtextWeights as a type.
Values: regular, medium, bold, unknown.
Members of TextWeight
Section titled “Members of TextWeight”TextWeight()
Section titled “TextWeight()”const TextWeight(String word)parse (static)
Section titled “parse (static)”static TextWeight parse(String word)The word’s value, or unknown.
TicketState
Section titled “TicketState”enum TicketState implements WireWordticketStates as a type.
| Value | Meaning |
|---|---|
submitted | |
inProgress | |
waitingOnGuest | Staff need something from the guest. |
resolved | |
unknown |
Members of TicketState
Section titled “Members of TicketState”TicketState()
Section titled “TicketState()”const TicketState(String word)parse (static)
Section titled “parse (static)”static TicketState parse(String word)The state word names, or unknown.