* Builds the Drive API query string for listing Google Docs.
(sourceConfig: Record<string, unknown>)
| 155 | * Builds the Drive API query string for listing Google Docs. |
| 156 | */ |
| 157 | function buildQuery(sourceConfig: Record<string, unknown>): string { |
| 158 | const parts: string[] = ['trashed = false', "mimeType = 'application/vnd.google-apps.document'"] |
| 159 | |
| 160 | const parentsClause = buildDriveParentsClause(parseMultiValue(sourceConfig.folderId)) |
| 161 | if (parentsClause) parts.push(parentsClause) |
| 162 | |
| 163 | return parts.join(' and ') |
| 164 | } |
| 165 | |
| 166 | export const googleDocsConnector: ConnectorConfig = { |
| 167 | ...googleDocsConnectorMeta, |
no test coverage detected