Skip to content

Commit 870646f

Browse files
feat(forms): update the API
#### forms:v1 The following keys were added: - schemas.FormSettings.properties.emailCollectionType.description - schemas.FormSettings.properties.emailCollectionType.enum - schemas.FormSettings.properties.emailCollectionType.enumDescriptions - schemas.FormSettings.properties.emailCollectionType.type
1 parent 179bc3b commit 870646f

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

discovery/forms-v1.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@
423423
}
424424
}
425425
},
426-
"revision": "20241112",
426+
"revision": "20250121",
427427
"rootUrl": "https://forms.googleapis.com/",
428428
"schemas": {
429429
"Answer": {
@@ -863,6 +863,22 @@
863863
"description": "A form's settings.",
864864
"id": "FormSettings",
865865
"properties": {
866+
"emailCollectionType": {
867+
"description": "Optional. Kind of email collection configured in the form.",
868+
"enum": [
869+
"EMAIL_COLLECTION_TYPE_UNSPECIFIED",
870+
"DO_NOT_COLLECT",
871+
"VERIFIED",
872+
"RESPONDER_INPUT"
873+
],
874+
"enumDescriptions": [
875+
"Default value. The default for forms owned by Google Workspace users is VERIFIED. For forms owned by other types of Google accounts, the default is DO_NO_COLLECT.",
876+
"Email Field is not collected for the user.",
877+
"Email Field is collected automatically from the logged in user.",
878+
"Email Field needs to be manually filled."
879+
],
880+
"type": "string"
881+
},
866882
"quizSettings": {
867883
"$ref": "QuizSettings",
868884
"description": "Settings related to quiz forms and grading."

src/apis/forms/v1.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,10 @@ export namespace forms_v1 {
431431
* A form's settings.
432432
*/
433433
export interface Schema$FormSettings {
434+
/**
435+
* Optional. Kind of email collection configured in the form.
436+
*/
437+
emailCollectionType?: string | null;
434438
/**
435439
* Settings related to quiz forms and grading.
436440
*/

0 commit comments

Comments
 (0)