Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(clients): add bigquery to sourceTypes enum #1490

Merged
merged 4 commits into from
Apr 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'