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'