@walkeros/server-destination-gcp 0.3.1 → 0.4.1
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/dist/dev.d.mts +13 -0
- package/dist/dev.d.ts +13 -0
- package/dist/dev.js +1 -0
- package/dist/dev.js.map +1 -0
- package/dist/dev.mjs +1 -0
- package/dist/dev.mjs.map +1 -0
- package/dist/index.d.mts +30 -53
- package/dist/index.d.ts +30 -53
- 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 -3
- package/dist/schemas.d.ts +3 -3
- 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 +6 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DestinationServer } from '@walkeros/server-core';
|
|
2
|
-
import
|
|
3
|
-
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
|
+
import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
|
|
4
3
|
import { BigQuery, BigQueryOptions } from '@google-cloud/bigquery';
|
|
5
4
|
|
|
6
|
-
interface Settings
|
|
5
|
+
interface Settings {
|
|
7
6
|
client: BigQuery;
|
|
8
7
|
projectId: string;
|
|
9
8
|
datasetId: string;
|
|
@@ -11,72 +10,50 @@ interface Settings$1 {
|
|
|
11
10
|
location?: string;
|
|
12
11
|
bigquery?: BigQueryOptions;
|
|
13
12
|
}
|
|
14
|
-
interface
|
|
13
|
+
interface InitSettings {
|
|
14
|
+
projectId: string;
|
|
15
|
+
client?: BigQuery;
|
|
16
|
+
datasetId?: string;
|
|
17
|
+
tableId?: string;
|
|
18
|
+
location?: string;
|
|
19
|
+
bigquery?: BigQueryOptions;
|
|
20
|
+
}
|
|
21
|
+
interface Mapping {
|
|
15
22
|
}
|
|
16
23
|
interface Env extends DestinationServer.Env {
|
|
17
24
|
BigQuery?: typeof BigQuery;
|
|
18
25
|
}
|
|
19
|
-
type Types = Destination$1.Types<Settings
|
|
26
|
+
type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
|
|
20
27
|
interface Destination extends DestinationServer.Destination<Types> {
|
|
21
28
|
init: DestinationServer.InitFn<Types>;
|
|
22
29
|
}
|
|
23
30
|
type Config = {
|
|
24
|
-
settings: Settings
|
|
31
|
+
settings: Settings;
|
|
25
32
|
} & DestinationServer.Config<Types>;
|
|
26
33
|
type InitFn = DestinationServer.InitFn<Types>;
|
|
27
34
|
type PushFn = DestinationServer.PushFn<Types>;
|
|
28
35
|
type PartialConfig = DestinationServer.PartialConfig<Types>;
|
|
29
|
-
type PushEvents = DestinationServer.PushEvents<Mapping
|
|
30
|
-
type Rule = Mapping$
|
|
31
|
-
type Rules = Mapping$
|
|
32
|
-
|
|
33
|
-
type
|
|
34
|
-
type
|
|
35
|
-
type
|
|
36
|
-
type
|
|
37
|
-
type
|
|
38
|
-
type index$1_PushEvents = PushEvents;
|
|
39
|
-
type index$1_PushFn = PushFn;
|
|
40
|
-
type index$1_Rule = Rule;
|
|
41
|
-
type index$1_Rules = Rules;
|
|
42
|
-
type index$1_Types = Types;
|
|
43
|
-
declare namespace index$1 {
|
|
44
|
-
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_InitFn as InitFn, Mapping$1 as Mapping, index$1_PartialConfig as PartialConfig, index$1_PushEvents as PushEvents, index$1_PushFn as PushFn, index$1_Rule as Rule, index$1_Rules as Rules, Settings$1 as Settings, index$1_Types as Types };
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const SettingsSchema: z.ZodObject<{
|
|
48
|
-
client: z.ZodOptional<z.ZodAny>;
|
|
49
|
-
projectId: z.ZodString;
|
|
50
|
-
datasetId: z.ZodDefault<z.ZodString>;
|
|
51
|
-
tableId: z.ZodDefault<z.ZodString>;
|
|
52
|
-
location: z.ZodDefault<z.ZodString>;
|
|
53
|
-
bigquery: z.ZodOptional<z.ZodAny>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
type Settings = z.infer<typeof SettingsSchema>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* GCP BigQuery Mapping Schema
|
|
59
|
-
* BigQuery has no event-level mapping configuration
|
|
60
|
-
*/
|
|
61
|
-
declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
|
|
62
|
-
/**
|
|
63
|
-
* Type inference from MappingSchema
|
|
64
|
-
*/
|
|
65
|
-
type Mapping = z.infer<typeof MappingSchema>;
|
|
66
|
-
|
|
67
|
-
declare const settings: _walkeros_core.JSONSchema;
|
|
68
|
-
declare const mapping: _walkeros_core.JSONSchema;
|
|
69
|
-
|
|
36
|
+
type PushEvents = DestinationServer.PushEvents<Mapping>;
|
|
37
|
+
type Rule = Mapping$1.Rule<Mapping>;
|
|
38
|
+
type Rules = Mapping$1.Rules<Rule>;
|
|
39
|
+
|
|
40
|
+
type index_Config = Config;
|
|
41
|
+
type index_Destination = Destination;
|
|
42
|
+
type index_Env = Env;
|
|
43
|
+
type index_InitFn = InitFn;
|
|
44
|
+
type index_InitSettings = InitSettings;
|
|
70
45
|
type index_Mapping = Mapping;
|
|
71
|
-
|
|
46
|
+
type index_PartialConfig = PartialConfig;
|
|
47
|
+
type index_PushEvents = PushEvents;
|
|
48
|
+
type index_PushFn = PushFn;
|
|
49
|
+
type index_Rule = Rule;
|
|
50
|
+
type index_Rules = Rules;
|
|
72
51
|
type index_Settings = Settings;
|
|
73
|
-
|
|
74
|
-
declare const index_mapping: typeof mapping;
|
|
75
|
-
declare const index_settings: typeof settings;
|
|
52
|
+
type index_Types = Types;
|
|
76
53
|
declare namespace index {
|
|
77
|
-
export {
|
|
54
|
+
export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_InitFn as InitFn, index_InitSettings as InitSettings, index_Mapping as Mapping, index_PartialConfig as PartialConfig, index_PushEvents as PushEvents, index_PushFn as PushFn, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types };
|
|
78
55
|
}
|
|
79
56
|
|
|
80
57
|
declare const destinationBigQuery: Destination;
|
|
81
58
|
|
|
82
|
-
export { index
|
|
59
|
+
export { index as DestinationBigQuery, destinationBigQuery };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { DestinationServer } from '@walkeros/server-core';
|
|
2
|
-
import
|
|
3
|
-
import { Destination as Destination$1, Mapping as Mapping$2, z } from '@walkeros/core';
|
|
2
|
+
import { Destination as Destination$1, Mapping as Mapping$1 } from '@walkeros/core';
|
|
4
3
|
import { BigQuery, BigQueryOptions } from '@google-cloud/bigquery';
|
|
5
4
|
|
|
6
|
-
interface Settings
|
|
5
|
+
interface Settings {
|
|
7
6
|
client: BigQuery;
|
|
8
7
|
projectId: string;
|
|
9
8
|
datasetId: string;
|
|
@@ -11,72 +10,50 @@ interface Settings$1 {
|
|
|
11
10
|
location?: string;
|
|
12
11
|
bigquery?: BigQueryOptions;
|
|
13
12
|
}
|
|
14
|
-
interface
|
|
13
|
+
interface InitSettings {
|
|
14
|
+
projectId: string;
|
|
15
|
+
client?: BigQuery;
|
|
16
|
+
datasetId?: string;
|
|
17
|
+
tableId?: string;
|
|
18
|
+
location?: string;
|
|
19
|
+
bigquery?: BigQueryOptions;
|
|
20
|
+
}
|
|
21
|
+
interface Mapping {
|
|
15
22
|
}
|
|
16
23
|
interface Env extends DestinationServer.Env {
|
|
17
24
|
BigQuery?: typeof BigQuery;
|
|
18
25
|
}
|
|
19
|
-
type Types = Destination$1.Types<Settings
|
|
26
|
+
type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
|
|
20
27
|
interface Destination extends DestinationServer.Destination<Types> {
|
|
21
28
|
init: DestinationServer.InitFn<Types>;
|
|
22
29
|
}
|
|
23
30
|
type Config = {
|
|
24
|
-
settings: Settings
|
|
31
|
+
settings: Settings;
|
|
25
32
|
} & DestinationServer.Config<Types>;
|
|
26
33
|
type InitFn = DestinationServer.InitFn<Types>;
|
|
27
34
|
type PushFn = DestinationServer.PushFn<Types>;
|
|
28
35
|
type PartialConfig = DestinationServer.PartialConfig<Types>;
|
|
29
|
-
type PushEvents = DestinationServer.PushEvents<Mapping
|
|
30
|
-
type Rule = Mapping$
|
|
31
|
-
type Rules = Mapping$
|
|
32
|
-
|
|
33
|
-
type
|
|
34
|
-
type
|
|
35
|
-
type
|
|
36
|
-
type
|
|
37
|
-
type
|
|
38
|
-
type index$1_PushEvents = PushEvents;
|
|
39
|
-
type index$1_PushFn = PushFn;
|
|
40
|
-
type index$1_Rule = Rule;
|
|
41
|
-
type index$1_Rules = Rules;
|
|
42
|
-
type index$1_Types = Types;
|
|
43
|
-
declare namespace index$1 {
|
|
44
|
-
export type { index$1_Config as Config, index$1_Destination as Destination, index$1_Env as Env, index$1_InitFn as InitFn, Mapping$1 as Mapping, index$1_PartialConfig as PartialConfig, index$1_PushEvents as PushEvents, index$1_PushFn as PushFn, index$1_Rule as Rule, index$1_Rules as Rules, Settings$1 as Settings, index$1_Types as Types };
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
declare const SettingsSchema: z.ZodObject<{
|
|
48
|
-
client: z.ZodOptional<z.ZodAny>;
|
|
49
|
-
projectId: z.ZodString;
|
|
50
|
-
datasetId: z.ZodDefault<z.ZodString>;
|
|
51
|
-
tableId: z.ZodDefault<z.ZodString>;
|
|
52
|
-
location: z.ZodDefault<z.ZodString>;
|
|
53
|
-
bigquery: z.ZodOptional<z.ZodAny>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
type Settings = z.infer<typeof SettingsSchema>;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* GCP BigQuery Mapping Schema
|
|
59
|
-
* BigQuery has no event-level mapping configuration
|
|
60
|
-
*/
|
|
61
|
-
declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
|
|
62
|
-
/**
|
|
63
|
-
* Type inference from MappingSchema
|
|
64
|
-
*/
|
|
65
|
-
type Mapping = z.infer<typeof MappingSchema>;
|
|
66
|
-
|
|
67
|
-
declare const settings: _walkeros_core.JSONSchema;
|
|
68
|
-
declare const mapping: _walkeros_core.JSONSchema;
|
|
69
|
-
|
|
36
|
+
type PushEvents = DestinationServer.PushEvents<Mapping>;
|
|
37
|
+
type Rule = Mapping$1.Rule<Mapping>;
|
|
38
|
+
type Rules = Mapping$1.Rules<Rule>;
|
|
39
|
+
|
|
40
|
+
type index_Config = Config;
|
|
41
|
+
type index_Destination = Destination;
|
|
42
|
+
type index_Env = Env;
|
|
43
|
+
type index_InitFn = InitFn;
|
|
44
|
+
type index_InitSettings = InitSettings;
|
|
70
45
|
type index_Mapping = Mapping;
|
|
71
|
-
|
|
46
|
+
type index_PartialConfig = PartialConfig;
|
|
47
|
+
type index_PushEvents = PushEvents;
|
|
48
|
+
type index_PushFn = PushFn;
|
|
49
|
+
type index_Rule = Rule;
|
|
50
|
+
type index_Rules = Rules;
|
|
72
51
|
type index_Settings = Settings;
|
|
73
|
-
|
|
74
|
-
declare const index_mapping: typeof mapping;
|
|
75
|
-
declare const index_settings: typeof settings;
|
|
52
|
+
type index_Types = Types;
|
|
76
53
|
declare namespace index {
|
|
77
|
-
export {
|
|
54
|
+
export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_InitFn as InitFn, index_InitSettings as InitSettings, index_Mapping as Mapping, index_PartialConfig as PartialConfig, index_PushEvents as PushEvents, index_PushFn as PushFn, index_Rule as Rule, index_Rules as Rules, index_Settings as Settings, index_Types as Types };
|
|
78
55
|
}
|
|
79
56
|
|
|
80
57
|
declare const destinationBigQuery: Destination;
|
|
81
58
|
|
|
82
|
-
export { index
|
|
59
|
+
export { index as DestinationBigQuery, destinationBigQuery };
|