@walkeros/server-destination-gcp 0.4.1 → 0.4.2
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/README.md +33 -0
- package/dist/dev.d.mts +33 -8
- package/dist/dev.d.ts +33 -8
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/schemas.d.mts +3 -5
- package/dist/schemas.d.ts +3 -5
- package/dist/schemas.js +1 -1
- package/dist/schemas.js.map +1 -1
- package/dist/schemas.mjs +1 -1
- package/dist/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -49,6 +49,39 @@ elb('walker destination', destinationBigQuery, {
|
|
|
49
49
|
| `location` | `string` | Geographic location for the BigQuery dataset | No | `'US'` |
|
|
50
50
|
| `bigquery` | `BigQueryOptions` | Additional BigQuery client configuration options | No | `{ keyFilename: "path/to/key.json" }` |
|
|
51
51
|
|
|
52
|
+
## Table Schema
|
|
53
|
+
|
|
54
|
+
By default, the destination sends the full walkerOS event. Create the table
|
|
55
|
+
with:
|
|
56
|
+
|
|
57
|
+
```sql
|
|
58
|
+
CREATE TABLE IF NOT EXISTS `YOUR_PROJECT.walkeros.events` (
|
|
59
|
+
timestamp TIMESTAMP,
|
|
60
|
+
createdAt TIMESTAMP,
|
|
61
|
+
name STRING,
|
|
62
|
+
id STRING,
|
|
63
|
+
entity STRING,
|
|
64
|
+
action STRING,
|
|
65
|
+
trigger STRING,
|
|
66
|
+
`group` STRING,
|
|
67
|
+
timing FLOAT64,
|
|
68
|
+
count INT64,
|
|
69
|
+
data STRING,
|
|
70
|
+
context STRING,
|
|
71
|
+
globals STRING,
|
|
72
|
+
custom STRING,
|
|
73
|
+
user STRING,
|
|
74
|
+
nested STRING,
|
|
75
|
+
consent STRING,
|
|
76
|
+
version STRING,
|
|
77
|
+
source STRING
|
|
78
|
+
);
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Object and array fields (`data`, `context`, `globals`, etc.) are JSON
|
|
82
|
+
stringified. For custom schemas using the `data` mapping config, see the
|
|
83
|
+
[full documentation](https://www.elbwalker.com/docs/destinations/server/gcp).
|
|
84
|
+
|
|
52
85
|
## Contribute
|
|
53
86
|
|
|
54
87
|
Feel free to contribute by submitting an
|
package/dist/dev.d.mts
CHANGED
|
@@ -1,13 +1,38 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
+
import { DestinationServer } from '@walkeros/server-core';
|
|
3
|
+
import { BigQuery } from '@google-cloud/bigquery';
|
|
2
4
|
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
mapping: _walkeros_core_dev.JSONSchema;
|
|
6
|
-
};
|
|
5
|
+
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
6
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
7
7
|
|
|
8
|
-
declare const
|
|
9
|
-
declare
|
|
10
|
-
|
|
8
|
+
declare const schemas_mapping: typeof mapping;
|
|
9
|
+
declare const schemas_settings: typeof settings;
|
|
10
|
+
declare namespace schemas {
|
|
11
|
+
export { schemas_mapping as mapping, schemas_settings as settings };
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
interface Env extends DestinationServer.Env {
|
|
15
|
+
BigQuery?: typeof BigQuery;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Standard mock environment for push operations
|
|
20
|
+
*
|
|
21
|
+
* Use this for testing BigQuery insert operations without connecting
|
|
22
|
+
* to actual GCP infrastructure.
|
|
23
|
+
*/
|
|
24
|
+
declare const push: Env;
|
|
25
|
+
declare const simulation: string[];
|
|
26
|
+
|
|
27
|
+
declare const env_push: typeof push;
|
|
28
|
+
declare const env_simulation: typeof simulation;
|
|
29
|
+
declare namespace env {
|
|
30
|
+
export { env_push as push, env_simulation as simulation };
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const index_env: typeof env;
|
|
34
|
+
declare namespace index {
|
|
35
|
+
export { index_env as env };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { index as examples, schemas };
|
package/dist/dev.d.ts
CHANGED
|
@@ -1,13 +1,38 @@
|
|
|
1
1
|
import * as _walkeros_core_dev from '@walkeros/core/dev';
|
|
2
|
+
import { DestinationServer } from '@walkeros/server-core';
|
|
3
|
+
import { BigQuery } from '@google-cloud/bigquery';
|
|
2
4
|
|
|
3
|
-
declare const
|
|
4
|
-
|
|
5
|
-
mapping: _walkeros_core_dev.JSONSchema;
|
|
6
|
-
};
|
|
5
|
+
declare const settings: _walkeros_core_dev.JSONSchema;
|
|
6
|
+
declare const mapping: _walkeros_core_dev.JSONSchema;
|
|
7
7
|
|
|
8
|
-
declare const
|
|
9
|
-
declare
|
|
10
|
-
|
|
8
|
+
declare const schemas_mapping: typeof mapping;
|
|
9
|
+
declare const schemas_settings: typeof settings;
|
|
10
|
+
declare namespace schemas {
|
|
11
|
+
export { schemas_mapping as mapping, schemas_settings as settings };
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
|
|
14
|
+
interface Env extends DestinationServer.Env {
|
|
15
|
+
BigQuery?: typeof BigQuery;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Standard mock environment for push operations
|
|
20
|
+
*
|
|
21
|
+
* Use this for testing BigQuery insert operations without connecting
|
|
22
|
+
* to actual GCP infrastructure.
|
|
23
|
+
*/
|
|
24
|
+
declare const push: Env;
|
|
25
|
+
declare const simulation: string[];
|
|
26
|
+
|
|
27
|
+
declare const env_push: typeof push;
|
|
28
|
+
declare const env_simulation: typeof simulation;
|
|
29
|
+
declare namespace env {
|
|
30
|
+
export { env_push as push, env_simulation as simulation };
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
declare const index_env: typeof env;
|
|
34
|
+
declare namespace index {
|
|
35
|
+
export { index_env as env };
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { index as examples, schemas };
|