import { integrationScope as scope } from "../../../automation/integrations" const DRIVE_SCOPE = "https://www.googleapis.com/auth/drive" const DRIVE_FILE_SCOPE = "https://www.googleapis.com/auth/drive.file" const DRIVE_READONLY_SCOPE = "https://www.googleapis.com/auth/drive.readonly" const FORMS_BODY_SCOPE = "https://www.googleapis.com/auth/forms.body" const FORMS_BODY_READONLY_SCOPE = "https://www.googleapis.com/auth/forms.body.readonly" const FORMS_RESPONSES_READONLY_SCOPE = "https://www.googleapis.com/auth/forms.responses.readonly" export const GOOGLE_FORMS_READ_REQUIREMENT = scope.any( DRIVE_SCOPE, DRIVE_FILE_SCOPE, DRIVE_READONLY_SCOPE, FORMS_BODY_SCOPE, FORMS_BODY_READONLY_SCOPE, ) export const GOOGLE_FORMS_WRITE_REQUIREMENT = scope.any( DRIVE_SCOPE, DRIVE_FILE_SCOPE, FORMS_BODY_SCOPE, ) export const GOOGLE_FORMS_RESPONSES_READ_REQUIREMENT = scope.and( scope.any(DRIVE_SCOPE, DRIVE_FILE_SCOPE, FORMS_RESPONSES_READONLY_SCOPE), GOOGLE_FORMS_READ_REQUIREMENT, )