Skip to content

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';
NameWhat it is
AuthorKindauthorKinds as a type.
BackgroundKindbackgroundKinds as a type.
BannerStylebannerStyles as a type.
BlockTypeblockTypes as a type.
BotKindbotKinds as a type.
CalloutTonecalloutTones as a type.
CarouselButtonActionbuttonActions as a type.
CarouselButtonShapecarouselButtonShapes as a type.
CarouselCornercarouselCorners as a type.
CarouselLayoutcarouselLayouts as a type.
CarouselPermissioncarouselPermissions as a type.
CarouselPresentationcarouselPresentations as a type.
CarouselProgresscarouselProgresses as a type.
CarouselScrimcarouselScrims as a type.
CarouselTextScalecarouselTextScales as a type.
CollectFieldcollectFields as a type.
ColorTokencolorTokens as a type.
ContentAligncontentAligns as a type.
ContentButtonStylecontentButtonStyles as a type.
ContentVAligncontentVAligns as a type.
ConversationStateconversationStates as a type.
CrmPreferenceChannelcrmPreferenceChannels as a type.
FieldTypefieldTypes as a type.
HomeCardKindhomeCardKinds as a type.
ImageAspectimageAspects as a type.
ImageFitimageFits as a type.
ImageShapeimageShapes as a type.
ImageSizeimageSizes as a type.
MessageKindmessageKinds as a type.
NewConversationsnewConversationsWords as a type.
PartKindpartKinds as a type.
QuestionTypequestionTypes as a type.
ReceiptActionreceiptActions as a type.
ReplyTimereplyTimes as a type.
SpacerSizespacerSizes as a type.
SurveyFormatsurveyFormats as a type.
SurveyStepKindsurveyStepKinds as a type.
TeamFacesteamFacesWords as a type.
TextSizetextSizes as a type.
TextWeighttextWeights as a type.
TicketStateticketStates as a type.
enum AuthorKind implements WireWord

authorKinds as a type.

ValueMeaning
guest
teammateA member of the app’s staff, shown by their first name.
bot
systemThe messenger itself: a conversation closed, a rating asked for.
unknown
const AuthorKind(String word)
static AuthorKind parse(String word)

The kind word names, or unknown.

enum BackgroundKind implements WireWord

backgroundKinds as a type.

ValueMeaning
plainThe sheet’s own colour.
color
gradient
image
unknown
const BackgroundKind(String word)
static BackgroundKind parse(String word)

The word’s value, or unknown.

enum BannerStyle implements WireWord

bannerStyles as a type.

ValueMeaning
inlineA strip the width of the screen across its top, pushing it down.
floatingA card across the top of the screen, pushing it down as inline does.
unknown
const BannerStyle(String word)
static BannerStyle parse(String word)

The style word names, or unknown.

enum BlockType implements WireWord

blockTypes as a type. A block the package does not know is unknown, and is not drawn.

ValueMeaning
paragraph
heading
bullets
numbers
image
button
divider
eyebrowThe 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
const BlockType(String word)
static BlockType parse(String word)

The block type word names, or unknown.

enum BotKind implements WireWord

botKinds as a type. A kind the package does not know is drawn as the bot saying its words, and asks nothing.

ValueMeaning
saysAsks nothing: its words.
asksA tap on one of its buttons.
collectsA piece of data: CollectField.
suggestsArticles, then whether they helped: yes or no.
handsOffThe guest handed to a person, with when to expect them.
resolvesThe conversation closed, the guest helped.
unknown
const BotKind(String word)
static BotKind parse(String word)

The kind word names, or unknown.

enum CalloutTone implements WireWord

calloutTones as a type.

Values: info, good, warn, unknown.

const CalloutTone(String word)
static CalloutTone parse(String word)

The word’s value, or unknown.

enum CarouselButtonAction implements WireWord

buttonActions as a type.

ValueMeaning
nextWhere the screen’s next goes.
screenTo the button’s screen.
backTo the screen seen before this one.
endEnds the carousel, completed.
linkOpens the button’s link, and ends the carousel, completed.
permissionAsks the phone, then goes on whatever the answer.
unknown
const CarouselButtonAction(String word)
static CarouselButtonAction parse(String word)

The word’s value, or unknown.

enum CarouselButtonShape implements WireWord

carouselButtonShapes as a type.

Values: pill, rounded, unknown.

const CarouselButtonShape(String word)
static CarouselButtonShape parse(String word)

The word’s value, or unknown.

enum CarouselCorner implements WireWord

carouselCorners as a type.

Values: soft, round, square, unknown.

const CarouselCorner(String word)
static CarouselCorner parse(String word)

The word’s value, or unknown.

enum CarouselLayout implements WireWord

carouselLayouts as a type.

ValueMeaning
centredThe words in the middle, a small picture above them.
imageTopA hero picture over the words.
imageFullThe picture filling the screen behind a scrim, light words at the bottom.
textWords alone, from the top.
unknown
const CarouselLayout(String word)
static CarouselLayout parse(String word)

The word’s value, or unknown.

enum CarouselPermission implements WireWord

carouselPermissions as a type.

Values: notifications, location, unknown.

const CarouselPermission(String word)
static CarouselPermission parse(String word)

The permission word names, or unknown.

enum CarouselPresentation implements WireWord

carouselPresentations as a type.

ValueMeaning
sheetA tall modal sheet, dragged down to close.
cardA centred card.
fullThe whole screen.
unknown
const CarouselPresentation(String word)
static CarouselPresentation parse(String word)

The word’s value, or unknown.

enum CarouselProgress implements WireWord

carouselProgresses as a type.

Values: dots, bar, none, unknown.

const CarouselProgress(String word)
static CarouselProgress parse(String word)

The word’s value, or unknown.

enum CarouselScrim implements WireWord

carouselScrims as a type.

Values: none, light, dark, unknown.

const CarouselScrim(String word)
static CarouselScrim parse(String word)

The word’s value, or unknown.

enum CarouselTextScale implements WireWord

carouselTextScales as a type.

Values: compact, regular, large, unknown.

const CarouselTextScale(String word)
static CarouselTextScale parse(String word)

The word’s value, or unknown.

enum CollectField implements WireWord

collectFields as a type.

ValueMeaning
text
email
orderRefAn order’s reference, in the app’s own format (CrmPublicApp.orderRef).
unknown
const CollectField(String word)
static CollectField parse(String word)

The field word names, or unknown.

enum ColorToken implements WireWord

colorTokens as a type.

ValueMeaning
accentThe carousel’s accent: its style’s, or the app’s brand.
inkThe text colour.
mutedThe quieter text beside ink.
surfaceThe sheet’s background.
washA faint tint of surface.
good
warn
bad
unknown
const ColorToken(String word)
static ColorToken parse(String word)

The word’s value, or unknown.

enum ContentAlign implements WireWord

contentAligns as a type.

Values: start, center, end, unknown.

const ContentAlign(String word)
static ContentAlign parse(String word)

The word’s value, or unknown.

enum ContentButtonStyle implements WireWord

contentButtonStyles as a type.

Values: primary, secondary, text, unknown.

const ContentButtonStyle(String word)
static ContentButtonStyle parse(String word)

The word’s value, or unknown.

enum ContentVAlign implements WireWord

contentVAligns as a type.

Values: top, center, bottom, unknown.

const ContentVAlign(String word)
static ContentVAlign parse(String word)

The word’s value, or unknown.

enum ConversationState implements WireWord

conversationStates as a type.

ValueMeaning
openWaiting on staff, or on the guest.
snoozedPut aside by staff; shown to the guest as open.
closedDone with.
unknown
const ConversationState(String word)
bool get isClosed

Closed, as the guest is shown it: snoozed and a word the package does not know are open.

static ConversationState parse(String word)

The state word names, or unknown.

enum CrmPreferenceChannel implements WireWord

crmPreferenceChannels as a type.

Values: email, push, inApp, chat, unknown.

const CrmPreferenceChannel(String word)
static CrmPreferenceChannel parse(String word)

The channel word names, or unknown: one a newer CRM added.

enum FieldType implements WireWord

fieldTypes as a type.

ValueMeaning
text
listOne option of a list, chosen: its text.
number
boolean
dateA day, YYYY-MM-DD.
unknown
const FieldType(String word)
static FieldType parse(String word)

The type word names, or unknown.

enum HomeCardKind implements WireWord

homeCardKinds as a type. A card of a kind this version does not know is unknown, and left out of the home.

ValueMeaning
send“Send us a message”: starts a conversation.
searchHelpOpens the help center’s search.
articlesA few articles, and a way to browse the rest.
conversationsThe guest’s open conversations, to carry on.
ticketsThe guest’s tickets.
linkA title, a line and a link.
statusAn announcement: a line, perhaps a title and a link.
unknown
const HomeCardKind(String word)
static HomeCardKind parse(String word)

The kind word names, or unknown.

enum ImageAspect implements WireWord

imageAspects as a type.

Values: auto, square, fourByThree, wide, portrait, unknown.

const ImageAspect(String word)
static ImageAspect parse(String word)

The word’s value, or unknown.

enum ImageFit implements WireWord

imageFits as a type.

Values: cover, contain, unknown.

const ImageFit(String word)
static ImageFit parse(String word)

The word’s value, or unknown.

enum ImageShape implements WireWord

imageShapes as a type.

ValueMeaning
roundedThe carousel’s corner radius.
circle
square
unknown
const ImageShape(String word)
static ImageShape parse(String word)

The word’s value, or unknown.

enum ImageSize implements WireWord

imageSizes as a type.

ValueMeaning
small
medium
large
fullThe whole width, edge to edge.
unknown
const ImageSize(String word)
static ImageSize parse(String word)

The word’s value, or unknown.

enum MessageKind implements WireWord

messageKinds as a type.

ValueMeaning
chat
postA full-screen message, one a session at most.
bannerA strip at the top of the screen.
carouselA few full screens the guest swipes through.
survey
push
email
unknown
const MessageKind(String word)
static MessageKind parse(String word)

The kind word names, or unknown.

enum NewConversations implements WireWord

newConversationsWords as a type.

ValueMeaning
always
whenNoneOpenOnly while none of theirs is open: they carry on in the one that is.
neverNever: the messenger is help only.
unknown
const NewConversations(String word)
static NewConversations parse(String word)

The choice word names, or unknown.

enum PartKind implements WireWord

partKinds as a type. A kind the package does not know is not drawn.

ValueMeaning
messageThe guest writing: text, and any pictures.
replyA member of staff answering: blocks, and any pictures.
noteStaff writing to each other.
botThe help bot: blocks.
assignmentThe conversation given to someone.
stateThe conversation closed, or opened again.
ratingRequestAsking the guest how it went, once; its rating is their answer.
unknown
const PartKind(String word)
bool get guestSees

Whether a part of this kind is ever shown to a guest.

static PartKind parse(String word)

The kind word names, or unknown.

enum QuestionType implements WireWord

questionTypes as a type.

ValueMeaning
nps0 to 10.
numericThe question’s own min to max.
stars1 to 5.
emoji1 to 5, drawn as faces.
dropdown
shortText
longText
singleChoice
multiChoice
unknown
const QuestionType(String word)
bool get choice

Answered with options.

bool get scaled

Answered with a number.

static QuestionType parse(String word)

The type word names, or unknown.

enum ReceiptAction implements WireWord

receiptActions as a type.

ValueMeaning
seen
clicked
dismissed
completedRead to its end: a carousel’s last screen.
answeredA carousel’s choice answered: the screen and the options picked.
unknown
const ReceiptAction(String word)
static ReceiptAction parse(String word)

The action word names, or unknown.

enum ReplyTime implements WireWord

replyTimes as a type.

Values: minutes, hours, day, unknown.

const ReplyTime(String word)
static ReplyTime parse(String word)

The time word names, or unknown.

enum SpacerSize implements WireWord

spacerSizes as a type.

Values: small, medium, large, unknown.

const SpacerSize(String word)
static SpacerSize parse(String word)

The word’s value, or unknown.

enum SurveyFormat implements WireWord

surveyFormats as a type.

ValueMeaning
smallA sheet over the bottom of the screen.
largeThe whole screen, with an introduction.
unknown
const SurveyFormat(String word)
static SurveyFormat parse(String word)

The format word names, or unknown.

enum SurveyStepKind implements WireWord

surveyStepKinds as a type.

ValueMeaning
questions
thankYouThe end: words, and nothing to answer.
unknown
const SurveyStepKind(String word)
static SurveyStepKind parse(String word)

The kind word names, or unknown.

enum TeamFaces implements WireWord

teamFacesWords as a type.

ValueMeaning
autoThe product’s, and the teammates who last answered the guest.
chosenThe product’s, and the teammates staff chose.
noneNo faces.
unknown
const TeamFaces(String word)
static TeamFaces parse(String word)

The choice word names, or unknown.

enum TextSize implements WireWord

textSizes as a type.

ValueMeaning
displayA screen’s first, largest words.
title
body
smallA footnote.
unknown
const TextSize(String word)
static TextSize parse(String word)

The word’s value, or unknown.

enum TextWeight implements WireWord

textWeights as a type.

Values: regular, medium, bold, unknown.

const TextWeight(String word)
static TextWeight parse(String word)

The word’s value, or unknown.

enum TicketState implements WireWord

ticketStates as a type.

ValueMeaning
submitted
inProgress
waitingOnGuestStaff need something from the guest.
resolved
unknown
const TicketState(String word)
static TicketState parse(String word)

The state word names, or unknown.