@malloydata/db-bigquery 0.0.32-dev230506192652 → 0.0.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,12 +14,18 @@ export interface BigQueryManagerOptions {
14
14
  export interface BigQueryQueryOptions {
15
15
  rowLimit: number;
16
16
  }
17
+ interface CredentialBody {
18
+ client_email?: string;
19
+ private_key?: string;
20
+ }
17
21
  interface BigQueryConnectionConfiguration {
18
22
  defaultProject?: string;
19
23
  serviceAccountKeyPath?: string;
20
24
  location?: string;
21
25
  maximumBytesBilled?: string;
22
26
  timeoutMs?: string;
27
+ projectId?: string;
28
+ credentials?: CredentialBody;
23
29
  }
24
30
  interface SchemaInfo {
25
31
  schema: bigquery.ITableFieldSchema;
@@ -115,6 +115,8 @@ class BigQueryConnection {
115
115
  this.bigQuery = new bigquery_1.BigQuery({
116
116
  userAgent: `Malloy/${malloy_1.Malloy.version}`,
117
117
  keyFilename: config.serviceAccountKeyPath,
118
+ credentials: config.credentials,
119
+ projectId: config.projectId,
118
120
  });
119
121
  // record project ID because for unclear reasons we have to modify the project ID on the SDK when
120
122
  // we want to use the tables API
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@malloydata/db-bigquery",
3
- "version": "0.0.32-dev230506192652",
3
+ "version": "0.0.32",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "@google-cloud/bigquery": "^5.5.0",
26
26
  "@google-cloud/common": "^3.6.0",
27
27
  "@google-cloud/paginator": "^4.0.1",
28
- "@malloydata/malloy": "^0.0.32-dev230506192652",
28
+ "@malloydata/malloy": "^0.0.32",
29
29
  "gaxios": "^4.2.0"
30
30
  }
31
31
  }