@8ms/helpers 2.0.39 → 2.0.40
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.
- package/.yarn/install-state.gz +0 -0
- package/google/bigQuery/GoogleBigQueryNamespace.d.ts +1 -1
- package/google/bigQuery/GoogleBigQueryNamespace.js +1 -1
- package/google/bigQuery/server.d.ts +1 -1
- package/google/sheets/GoogleSheetsNamespace.d.ts +1 -1
- package/google/sheets/GoogleSheetsNamespace.js +1 -1
- package/google/sheets/server.d.ts +1 -1
- package/google/storage/GoogleCloudStorageNamespace.d.ts +1 -1
- package/google/storage/GoogleCloudStorageNamespace.js +1 -1
- package/google/storage/server.d.ts +1 -1
- package/package.json +1 -1
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
|
@@ -46,7 +46,7 @@ class GoogleBigQueryNamespace extends _class_1.BaseNamespace {
|
|
|
46
46
|
const formattedConfig = (0, server_1.getConfig)(this.config);
|
|
47
47
|
this.client = new BigQuery({
|
|
48
48
|
...formattedConfig,
|
|
49
|
-
projectId: this.config
|
|
49
|
+
projectId: this.config?.projectId,
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
catch (e) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GoogleBigQueryNamespace } from "./GoogleBigQueryNamespace";
|
|
2
2
|
import type { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
export declare const googleBigQueryClient: (key
|
|
3
|
+
export declare const googleBigQueryClient: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string) => Promise<GoogleBigQueryNamespace>;
|
|
4
4
|
export declare const getHandlerPath: (input: string) => string;
|
|
5
5
|
export { loadData } from "./loadData";
|
|
6
6
|
export type { QueryInput } from "./GoogleBigQueryNamespace";
|
|
@@ -10,7 +10,7 @@ type GetBatchDataProps = {
|
|
|
10
10
|
export declare class GoogleSheetsNamespace extends BaseNamespace {
|
|
11
11
|
client: GoogleAuth;
|
|
12
12
|
config: GoogleCloudConfig & {
|
|
13
|
-
projectId
|
|
13
|
+
projectId?: string;
|
|
14
14
|
};
|
|
15
15
|
ensureInit: () => Promise<void>;
|
|
16
16
|
getBatchData: (props: GetBatchDataProps) => Promise<import("@googleapis/sheets").sheets_v4.Schema$BatchGetValuesResponse>;
|
|
@@ -46,7 +46,7 @@ class GoogleSheetsNamespace extends _class_1.BaseNamespace {
|
|
|
46
46
|
const formattedConfig = (0, server_1.getConfig)(this.config);
|
|
47
47
|
this.client = new googleApisSheets.auth.GoogleAuth({
|
|
48
48
|
credentials: formattedConfig,
|
|
49
|
-
projectId: this.config
|
|
49
|
+
projectId: this.config?.projectId,
|
|
50
50
|
scopes: [
|
|
51
51
|
"https://www.googleapis.com/auth/spreadsheets",
|
|
52
52
|
],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GoogleSheetsNamespace } from "./GoogleSheetsNamespace";
|
|
2
2
|
import type { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
export declare const googleSheetsAuths: (key
|
|
3
|
+
export declare const googleSheetsAuths: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string) => Promise<GoogleSheetsNamespace>;
|
|
4
4
|
/**
|
|
5
5
|
* Noticed sometimes Google Sheets can struggle with import XML resulting to N/A values.
|
|
6
6
|
*/
|
|
@@ -46,7 +46,7 @@ class GoogleCloudStorageNamespace extends _class_1.BaseNamespace {
|
|
|
46
46
|
const formattedConfig = (0, server_1.getConfig)(this.config);
|
|
47
47
|
this.client = new Storage({
|
|
48
48
|
...formattedConfig,
|
|
49
|
-
projectId: this.config
|
|
49
|
+
projectId: this.config?.projectId,
|
|
50
50
|
});
|
|
51
51
|
}
|
|
52
52
|
catch (e) {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { GoogleCloudStorageNamespace } from "./GoogleCloudStorageNamespace";
|
|
2
2
|
import type { GoogleAuthOptions } from "@google-cloud/common";
|
|
3
|
-
export declare const googleCloudStorageClient: (key
|
|
3
|
+
export declare const googleCloudStorageClient: (key?: string, projectId?: string, config?: GoogleAuthOptions, vaultId?: string, itemId?: string) => Promise<GoogleCloudStorageNamespace>;
|