Skip to content

Commit d4ed5a3

Browse files
yoshi-automationsofisl
authored andcommitted
feat(forms): update the API
#### forms:v1 The following keys were added: - schemas.Question.properties.ratingQuestion.$ref - schemas.Question.properties.ratingQuestion.description - schemas.RatingQuestion.description - schemas.RatingQuestion.id - schemas.RatingQuestion.properties.iconType.description - schemas.RatingQuestion.properties.iconType.enum - schemas.RatingQuestion.properties.iconType.enumDescriptions - schemas.RatingQuestion.properties.iconType.type - schemas.RatingQuestion.properties.ratingScaleLevel.description - schemas.RatingQuestion.properties.ratingScaleLevel.format - schemas.RatingQuestion.properties.ratingScaleLevel.type - schemas.RatingQuestion.type
1 parent b4bc88d commit d4ed5a3

File tree

2 files changed

+50
-1
lines changed

2 files changed

+50
-1
lines changed

‎discovery/forms-v1.json

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
}
424424
}
425425
},
426-
"revision": "20220915",
426+
"revision": "20241112",
427427
"rootUrl": "https://forms.googleapis.com/",
428428
"schemas": {
429429
"Answer": {
@@ -1190,6 +1190,10 @@
11901190
"description": "Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.",
11911191
"type": "string"
11921192
},
1193+
"ratingQuestion": {
1194+
"$ref": "RatingQuestion",
1195+
"description": "A respondent can choose a rating from a pre-defined set of icons."
1196+
},
11931197
"required": {
11941198
"description": "Whether the question must be answered in order for a respondent to submit their response.",
11951199
"type": "boolean"
@@ -1261,6 +1265,34 @@
12611265
},
12621266
"type": "object"
12631267
},
1268+
"RatingQuestion": {
1269+
"description": "A rating question. The user has a range of icons to choose from.",
1270+
"id": "RatingQuestion",
1271+
"properties": {
1272+
"iconType": {
1273+
"description": "Required. The icon type to use for the rating.",
1274+
"enum": [
1275+
"RATING_ICON_TYPE_UNSPECIFIED",
1276+
"STAR",
1277+
"HEART",
1278+
"THUMB_UP"
1279+
],
1280+
"enumDescriptions": [
1281+
"Default value. Unused.",
1282+
"A star icon.",
1283+
"A heart icon.",
1284+
"A thumbs down icon."
1285+
],
1286+
"type": "string"
1287+
},
1288+
"ratingScaleLevel": {
1289+
"description": "Required. The rating scale level of the rating question.",
1290+
"format": "int32",
1291+
"type": "integer"
1292+
}
1293+
},
1294+
"type": "object"
1295+
},
12641296
"RenewWatchRequest": {
12651297
"description": "Renew an existing Watch for seven days.",
12661298
"id": "RenewWatchRequest",

‎src/apis/forms/v1.ts

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,10 @@ export namespace forms_v1 {
689689
* Read only. The question ID. On creation, it can be provided but the ID must not be already used in the form. If not provided, a new ID is assigned.
690690
*/
691691
questionId?: string | null;
692+
/**
693+
* A respondent can choose a rating from a pre-defined set of icons.
694+
*/
695+
ratingQuestion?: Schema$RatingQuestion;
692696
/**
693697
* Whether the question must be answered in order for a respondent to submit their response.
694698
*/
@@ -749,6 +753,19 @@ export namespace forms_v1 {
749753
*/
750754
isQuiz?: boolean | null;
751755
}
756+
/**
757+
* A rating question. The user has a range of icons to choose from.
758+
*/
759+
export interface Schema$RatingQuestion {
760+
/**
761+
* Required. The icon type to use for the rating.
762+
*/
763+
iconType?: string | null;
764+
/**
765+
* Required. The rating scale level of the rating question.
766+
*/
767+
ratingScaleLevel?: number | null;
768+
}
752769
/**
753770
* Renew an existing Watch for seven days.
754771
*/

0 commit comments

Comments
 (0)