2023-01-27 03:22:44 -08:00
|
|
|
import type { ICredentialType, INodeProperties } from 'n8n-workflow';
|
2021-04-17 06:04:25 -07:00
|
|
|
|
feat(Google BigQuery Node): Node improvements (#4877)
* :zap: setup
* :zap: finished v2 setup
* :zap: fix return all, fix simplify with nested schema
* :zap: fix for external tables, updated scopes
* :zap: query operation
* :zap: linter fixes
* :zap: fixed not processed errors when inserting, move main loop to execute function to allow bulk request
* :zap: customizible batch size when inserting, improoved errors
* :zap: options for mapping input
* :zap: fix for inserting RECORD type
* :zap: updated simplify logic
* :zap: fix for return with selected fields
* :zap: option to return table schema
* :zap: linter fixes
* :zap: fix imports
* :zap: query resource and fixes, rlc for projects
* :zap: removed simplify, added raw output option
* :zap: rlc for tables and datasets, no urls option
* :zap: updated hints and description of query parameter, fix getMany VIEW, multioptions fo fields
* :zap: added case when rows are empty
* :zap: linter fixes
* :zap: UI update, one resource
* :zap: fix for output with field named json
* :zap: using jobs instead queries
* :zap: added error message
* :zap: search for RLCs, fixes
* :zap: json processing
* :zap: removed getAll operation
* :zap: executeQuery update
* :zap: unit test
* :zap: tests setup, fixes
* :zap: tests
* Remove script for checking unused loadOptions
---------
Co-authored-by: agobrech <ael.gobrecht@gmail.com>
2023-04-19 05:55:01 -07:00
|
|
|
const scopes = [
|
|
|
|
'https://www.googleapis.com/auth/bigquery',
|
|
|
|
'https://www.googleapis.com/auth/cloud-platform',
|
|
|
|
'https://www.googleapis.com/auth/drive',
|
|
|
|
];
|
2021-04-17 06:04:25 -07:00
|
|
|
|
|
|
|
export class GoogleBigQueryOAuth2Api implements ICredentialType {
|
|
|
|
name = 'googleBigQueryOAuth2Api';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-07-24 08:36:17 -07:00
|
|
|
extends = ['googleOAuth2Api'];
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-04-17 06:04:25 -07:00
|
|
|
displayName = 'Google BigQuery OAuth2 API';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2022-10-20 08:52:03 -07:00
|
|
|
documentationUrl = 'google/oauth-single-service';
|
2022-12-02 12:54:28 -08:00
|
|
|
|
2021-06-12 09:39:55 -07:00
|
|
|
properties: INodeProperties[] = [
|
2021-04-17 06:04:25 -07:00
|
|
|
{
|
|
|
|
displayName: 'Scope',
|
|
|
|
name: 'scope',
|
2021-06-12 09:39:55 -07:00
|
|
|
type: 'hidden',
|
2021-04-17 06:04:25 -07:00
|
|
|
default: scopes.join(' '),
|
|
|
|
},
|
|
|
|
];
|
|
|
|
}
|