From 44962fa514f6b1c69899a9fae4a80b417f5d0598 Mon Sep 17 00:00:00 2001 From: Damien Couchez Date: Fri, 28 Apr 2023 16:27:32 +0200 Subject: [PATCH] feat(clients): add bigquery to sourceTypes enum (#1490) --- specs/ingestion/common/schemas/source.yml | 30 ++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/specs/ingestion/common/schemas/source.yml b/specs/ingestion/common/schemas/source.yml index d54ce2836d..33fabf6a52 100644 --- a/specs/ingestion/common/schemas/source.yml +++ b/specs/ingestion/common/schemas/source.yml @@ -94,7 +94,7 @@ SourceSearch: SourceType: type: string - enum: ['bigcommerce', 'commercetools', 'json', 'csv'] + enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery'] SourceCommercetools: type: object @@ -200,12 +200,39 @@ SourceCSV: required: - url +SourceBigQuery: + type: object + additionalProperties: false + properties: + projectID: + type: string + description: Project ID of the BigQuery Source. + datasetID: + type: string + description: Dataset ID of the BigQuery Source. + dataType: + $ref: '#/BigQueryDataType' + table: + type: string + description: Table name (for default BQ). + tablePrefix: + type: string + description: Table prefix (for Google Analytics). + required: + - projectID + - datasetID + +BigQueryDataType: + type: string + enum: ['ga4', 'ga360'] + SourceInput: oneOf: - $ref: '#/SourceCommercetools' - $ref: '#/SourceBigCommerce' - $ref: '#/SourceJSON' - $ref: '#/SourceCSV' + - $ref: '#/SourceBigQuery' SourceUpdateCommercetools: type: object @@ -228,3 +255,4 @@ SourceUpdateInput: - $ref: '#/SourceUpdateCommercetools' - $ref: '#/SourceJSON' - $ref: '#/SourceCSV' + - $ref: '#/SourceBigQuery'