* Builds the Drive `q` query that selects form files, optionally scoped to one * or more folders. Single quotes and backslashes in folder IDs are escaped to * prevent query injection.
(folderIds: string[])
| 458 | * prevent query injection. |
| 459 | */ |
| 460 | function buildDriveQuery(folderIds: string[]): string { |
| 461 | const parts = ['trashed = false', `mimeType = '${FORM_MIME_TYPE}'`] |
| 462 | const parentsClause = buildDriveParentsClause(folderIds) |
| 463 | if (parentsClause) parts.push(parentsClause) |
| 464 | return parts.join(' and ') |
| 465 | } |
| 466 | |
| 467 | export const googleFormsConnector: ConnectorConfig = { |
| 468 | ...googleFormsConnectorMeta, |
no test coverage detected