Documentation ¶
Index ¶
- Constants
- type Action
- type ActionType
- type Attachment
- type Client
- type Condition
- type ConditionOp
- type ConditionVar
- type ConditionVarType
- type Detail
- type DetailTarget
- type DetailTargetType
- type DetailTargetValue
- type DetailTo
- type DetailToType
- type DetailValue
- type Field
- type FieldChoices
- type FieldProperties
- type FieldType
- type FieldValidations
- type Form
- type Href
- type Links
- type Logic
- type LogicType
- type NotificationRespondent
- type NotificationSelf
- type Notifications
- type Settings
- type ThankyouScreen
- type ThankyouScreenProperties
- type WelcomeScreen
- type WelcomeScreenProperties
Constants ¶
View Source
const ( FieldTypeDate FieldType = "date" FieldTypeDropdown FieldType = "dropdown" FieldTypeEmail FieldType = "email" FieldTypeFileUpload FieldType = "file_upload" FieldTypeGroup FieldType = "group" FieldTypeLegal FieldType = "legal" FieldTypeLongText FieldType = "long_text" FieldTypeMultipleChoice FieldType = "multiple_choice" FieldTypeNumber FieldType = "number" FieldTypeOpinionScale FieldType = "opinion_scale" FieldTypePayment FieldType = "payment" FieldTypePictureChoice FieldType = "picture_choice" FieldTypeRating FieldType = "rating" FieldTypeShortText FieldType = "short_text" FieldTypeStatement FieldType = "statement" FieldTypeWebsite FieldType = "website" FieldTypeYesNo FieldType = "yes_no" LogicTypeField LogicType = "field" LogicTypeHidden LogicType = "hidden" ActionTypeJump ActionType = "jump" ActionTypeAdd ActionType = "add" ActionTypeSubtract ActionType = "subtract" ActionTypeMultiply ActionType = "multiply" ActionTypeDivide ActionType = "divide" DetailToTypeField DetailToType = "field" DetailToTypeHidden DetailToType = "hidden" DetailToTypeThankyou DetailToType = "thankyou" DetailTargetTypeThankyou DetailTargetType = "variable" DetailTargetValueScore DetailTargetValue = "score" DetailTargetValuePrice DetailTargetValue = "price" ConditionOpBeginsWith ConditionOp = "begins_with" ConditionOpEndsWith ConditionOp = "ends_with" ConditionOpContains ConditionOp = "contains" ConditionOpNotContains ConditionOp = "not_contains" ConditionOpLowerThan ConditionOp = "lower_than" ConditionOpLowerEqualThan ConditionOp = "lower_equal_than" ConditionOpGreaterThan ConditionOp = "greater_than" ConditionOpGreaterEqualThan ConditionOp = "greater_equal_than" ConditionOpIs ConditionOp = "is" ConditionOpIsNot ConditionOp = "is_not" ConditionOpEqual ConditionOp = "equal" ConditionOpNotEqual ConditionOp = "not_equal" ConditionOpAlways ConditionOp = "always" ConditionOpOn ConditionOp = "on" ConditionOpNotOn ConditionOp = "not_on" ConditionOpEarlierThan ConditionOp = "earlier_than" ConditionOpEarlierThanOrOn ConditionOp = "earlier_than_or_on" ConditionOpLaterThan ConditionOp = "later_than" ConditionOpLaterThanOrOn ConditionOp = "later_than_or_on" ConditionVarTypeField ConditionVarType = "field" ConditionVarTypeHidden ConditionVarType = "hidden" ConditionVarTypeVariable ConditionVarType = "variable" ConditionVarTypeConstant ConditionVarType = "constant" ConditionVarTypeEnd ConditionVarType = "end" )
View Source
const (
BaseUrl string = "https://api.typeform.com/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct { Action ActionType `json:"action"` Details Detail `json:"details"` Condition Condition `json:"condition"` }
type ActionType ¶
type ActionType string
type Attachment ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func DefaultClient ¶
func (*Client) RestyClient ¶
RestyClient provides access to the underlying Resty client
type Condition ¶
type Condition struct { Op ConditionOp `json:"op"` Vars []ConditionVar `json:"vars"` }
type ConditionOp ¶
type ConditionOp string
type ConditionVar ¶
type ConditionVar struct { Type ConditionVarType `json:"type"` Value interface{} `json:"value"` }
type ConditionVarType ¶
type ConditionVarType string
type Detail ¶
type Detail struct { To DetailTo `json:"to"` Target DetailTarget `json:"target,omitempty"` Value DetailValue `json:"value,omitempty"` }
type DetailTarget ¶
type DetailTarget struct { Type DetailTargetType `json:"type,omitempty"` Value DetailTargetValue `json:"value,omitempty"` }
type DetailTargetType ¶
type DetailTargetType string
type DetailTargetValue ¶
type DetailTargetValue string
type DetailTo ¶
type DetailTo struct { Type DetailToType `json:"type,omitempty"` Value string `json:"value,omitempty"` }
type DetailToType ¶
type DetailToType string
type DetailValue ¶
type Field ¶
type Field struct { ID string `json:"id"` Ref string `json:"ref"` Title string `json:"title"` Type FieldType `json:"type"` Properties FieldProperties `json:"properties,omitempty"` Validations FieldValidations `json:"validations"` }
type FieldChoices ¶
type FieldProperties ¶
type FieldProperties struct { Randomize bool `json:"randomize,omitempty"` // TODO: Not omitempty? AllowMultipleSelection bool `json:"allow_multiple_selection,omitempty"` // TODO: Not omitempty? AllowOtherChoice bool `json:"allow_other_choice,omitempty"` VerticalAlignment bool `json:"vertical_alignment,omitempty"` Choices []FieldChoices `json:"choices,omitempty"` // TODO: These might only be for groups? Description string `json:"description,omitempty"` ShowButton bool `json:"show_button,omitempty"` ButtonText string `json:"button_text,omitempty"` Fields []Field `json:"fields,omitempty"` }
type FieldValidations ¶
type Form ¶
type Form struct { ID string `json:"id"` Title string `json:"title"` Hidden []string `json:"hidden"` WelcomeScreens []WelcomeScreen `json:"welcome_screens"` ThankyouScreens []ThankyouScreen `json:"thankyou_screens"` Fields []Field `json:"fields"` Logic []Logic `json:"logic"` Theme Href `json:"theme"` Workspace Href `json:"workspace"` Links Links `json:"_links"` Language string `json:"language,omitempty"` // TODO: Is this meant to be a field anymore? Seems to be in settings.. Settings Settings `json:"settings"` }
type NotificationRespondent ¶
type NotificationRespondent struct { Recipient string `json:"recipient"` // contains filtered or unexported fields }
type NotificationSelf ¶
type NotificationSelf struct { Recipients []string `json:"recipients"` // contains filtered or unexported fields }
type Notifications ¶
type Notifications struct { Self NotificationSelf `json:"self"` Respondent NotificationRespondent `json:"respondent"` }
type Settings ¶
type Settings struct { IsPublic bool `json:"is_public"` IsTrial bool `json:"is_trial"` Language string `json:"language"` ProgressBar string `json:"progress_bar"` ShowProgressBar bool `json:"show_progress_bar"` ShowTypeformBranding bool `json:"show_typeform_branding"` Meta struct { AllowIndexing bool `json:"allow_indexing"` } `json:"meta"` Notifications Notifications `json:"notifications"` }
type ThankyouScreen ¶
type ThankyouScreen struct { Ref string `json:"ref"` Title string `json:"title"` Properties ThankyouScreenProperties `json:"properties"` Attachment Attachment `json:"attachment"` }
type WelcomeScreen ¶
type WelcomeScreen struct { Ref string `json:"ref"` Title string `json:"title"` Properties WelcomeScreenProperties `json:"properties"` Attachment Attachment `json:"attachment"` }
type WelcomeScreenProperties ¶
Click to show internal directories.
Click to hide internal directories.