Skip to content

Commit

Permalink
fix(PR-40): update types (#105)
Browse files Browse the repository at this point in the history
- choice type
- new question types
  • Loading branch information
mathio authored Oct 12, 2023
1 parent 6fd308f commit e32b363
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions src/typeform-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,10 @@ export namespace Typeform {
* Choice answer for a properties's choices property of a field.
*/
export interface Choice {
/**
* Only available when retrieving a form.
*/
id?: string
/**
* Readable name you can use to reference the answer choice. Available for `multiple_choice` and `picture_choice` types.
* Not available for dropdown types.
Expand Down Expand Up @@ -1031,10 +1035,7 @@ export namespace Typeform {
/**
* Represents single choice answers for dropdown-like fields.
*/
choice?: {
label?: string
other?: string
}
choice?: Omit<Choice, 'attachment'>
/**
* Represents multiple choice answers.
*/
Expand Down Expand Up @@ -1229,24 +1230,30 @@ export namespace Typeform {
* The type of field.
*/
type Type =
| 'address'
| 'calendly'
| 'contact_info'
| 'date'
| 'dropdown'
| 'email'
| 'file_upload'
| 'group'
| 'legal'
| 'long_text'
| 'matrix'
| 'multiple_choice'
| 'nps'
| 'number'
| 'opinion_scale'
| 'payment'
| 'phone_number'
| 'picture_choice'
| 'ranking'
| 'rating'
| 'short_text'
| 'statement'
| 'website'
| 'yes_no'
| 'phone_number'
/**
* Validations of a field.
*/
Expand Down

0 comments on commit e32b363

Please sign in to comment.