Skip to content

Commit e32b363

Browse files
authored
fix(PR-40): update types (#105)
- choice type - new question types
1 parent 6fd308f commit e32b363

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

src/typeform-types.ts

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,10 @@ export namespace Typeform {
146146
* Choice answer for a properties's choices property of a field.
147147
*/
148148
export interface Choice {
149+
/**
150+
* Only available when retrieving a form.
151+
*/
152+
id?: string
149153
/**
150154
* Readable name you can use to reference the answer choice. Available for `multiple_choice` and `picture_choice` types.
151155
* Not available for dropdown types.
@@ -1031,10 +1035,7 @@ export namespace Typeform {
10311035
/**
10321036
* Represents single choice answers for dropdown-like fields.
10331037
*/
1034-
choice?: {
1035-
label?: string
1036-
other?: string
1037-
}
1038+
choice?: Omit<Choice, 'attachment'>
10381039
/**
10391040
* Represents multiple choice answers.
10401041
*/
@@ -1229,24 +1230,30 @@ export namespace Typeform {
12291230
* The type of field.
12301231
*/
12311232
type Type =
1233+
| 'address'
1234+
| 'calendly'
1235+
| 'contact_info'
12321236
| 'date'
12331237
| 'dropdown'
12341238
| 'email'
12351239
| 'file_upload'
12361240
| 'group'
12371241
| 'legal'
12381242
| 'long_text'
1243+
| 'matrix'
12391244
| 'multiple_choice'
1245+
| 'nps'
12401246
| 'number'
12411247
| 'opinion_scale'
12421248
| 'payment'
1249+
| 'phone_number'
12431250
| 'picture_choice'
1251+
| 'ranking'
12441252
| 'rating'
12451253
| 'short_text'
12461254
| 'statement'
12471255
| 'website'
12481256
| 'yes_no'
1249-
| 'phone_number'
12501257
/**
12511258
* Validations of a field.
12521259
*/

0 commit comments

Comments
 (0)