Skip to content

Commit

Permalink
feat(clients): add bigquery to sourceTypes enum (#1490)
Browse files Browse the repository at this point in the history
  • Loading branch information
damcou authored Apr 28, 2023
1 parent 536ea0a commit 44962fa
Showing 1 changed file with 29 additions and 1 deletion.
30 changes: 29 additions & 1 deletion specs/ingestion/common/schemas/source.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ SourceSearch:

SourceType:
type: string
enum: ['bigcommerce', 'commercetools', 'json', 'csv']
enum: ['bigcommerce', 'commercetools', 'json', 'csv', 'bigquery']

SourceCommercetools:
type: object
Expand Down Expand Up @@ -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
Expand All @@ -228,3 +255,4 @@ SourceUpdateInput:
- $ref: '#/SourceUpdateCommercetools'
- $ref: '#/SourceJSON'
- $ref: '#/SourceCSV'
- $ref: '#/SourceBigQuery'

0 comments on commit 44962fa

Please sign in to comment.