@walkeros/server-destination-aws 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/index.d.mts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { DestinationServer } from '@walkeros/server-core';
2
- import * as _walkeros_core from '@walkeros/core';
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 { FirehoseClient, FirehoseClientConfig, PutRecordBatchCommand } from '@aws-sdk/client-firehose';
5
4
 
6
- interface Settings$1 {
5
+ interface Settings {
7
6
  firehose?: FirehoseConfig;
8
7
  }
9
- interface Mapping$1 {
8
+ type InitSettings = Partial<Settings>;
9
+ interface Mapping {
10
10
  }
11
11
  interface Env extends DestinationServer.Env {
12
12
  AWS: {
@@ -14,19 +14,19 @@ interface Env extends DestinationServer.Env {
14
14
  PutRecordBatchCommand: typeof PutRecordBatchCommand;
15
15
  };
16
16
  }
17
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
17
+ type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
18
18
  interface Destination extends DestinationServer.Destination<Types> {
19
19
  init: DestinationServer.InitFn<Types>;
20
20
  }
21
21
  type Config = {
22
- settings: Settings$1;
22
+ settings: Settings;
23
23
  } & DestinationServer.Config<Types>;
24
24
  type InitFn = DestinationServer.InitFn<Types>;
25
25
  type PushFn = DestinationServer.PushFn<Types>;
26
26
  type PartialConfig = DestinationServer.PartialConfig<Types>;
27
- type PushEvents = DestinationServer.PushEvents<Mapping$1>;
28
- type Rule = Mapping$2.Rule<Mapping$1>;
29
- type Rules = Mapping$2.Rules<Rule>;
27
+ type PushEvents = DestinationServer.PushEvents<Mapping>;
28
+ type Rule = Mapping$1.Rule<Mapping>;
29
+ type Rules = Mapping$1.Rules<Rule>;
30
30
  interface FirehoseConfig {
31
31
  streamName: string;
32
32
  client?: FirehoseClient;
@@ -34,79 +34,24 @@ interface FirehoseConfig {
34
34
  config?: FirehoseClientConfig;
35
35
  }
36
36
 
37
- type index$3_Config = Config;
38
- type index$3_Destination = Destination;
39
- type index$3_Env = Env;
40
- type index$3_FirehoseConfig = FirehoseConfig;
41
- type index$3_InitFn = InitFn;
42
- type index$3_PartialConfig = PartialConfig;
43
- type index$3_PushEvents = PushEvents;
44
- type index$3_PushFn = PushFn;
45
- type index$3_Rule = Rule;
46
- type index$3_Rules = Rules;
47
- type index$3_Types = Types;
48
- declare namespace index$3 {
49
- export type { index$3_Config as Config, index$3_Destination as Destination, index$3_Env as Env, index$3_FirehoseConfig as FirehoseConfig, index$3_InitFn as InitFn, Mapping$1 as Mapping, index$3_PartialConfig as PartialConfig, index$3_PushEvents as PushEvents, index$3_PushFn as PushFn, index$3_Rule as Rule, index$3_Rules as Rules, Settings$1 as Settings, index$3_Types as Types };
50
- }
51
-
52
- declare const push: Env;
53
-
54
- declare const env_push: typeof push;
55
- declare namespace env {
56
- export { env_push as push };
57
- }
58
-
59
- declare const index$2_env: typeof env;
60
- declare namespace index$2 {
61
- export { index$2_env as env };
62
- }
63
-
64
- declare const FirehoseConfigSchema: z.ZodObject<{
65
- streamName: z.ZodString;
66
- client: z.ZodOptional<z.ZodAny>;
67
- region: z.ZodOptional<z.ZodString>;
68
- config: z.ZodOptional<z.ZodAny>;
69
- }, z.core.$strip>;
70
- declare const SettingsSchema: z.ZodObject<{
71
- firehose: z.ZodOptional<z.ZodObject<{
72
- streamName: z.ZodString;
73
- client: z.ZodOptional<z.ZodAny>;
74
- region: z.ZodOptional<z.ZodString>;
75
- config: z.ZodOptional<z.ZodAny>;
76
- }, z.core.$strip>>;
77
- }, z.core.$strip>;
78
- type Settings = z.infer<typeof SettingsSchema>;
79
-
80
- /**
81
- * AWS Firehose Mapping Schema
82
- * AWS Firehose has no event-level mapping configuration
83
- */
84
- declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
85
- /**
86
- * Type inference from MappingSchema
87
- */
88
- type Mapping = z.infer<typeof MappingSchema>;
89
-
90
- declare const settings: _walkeros_core.JSONSchema;
91
- declare const mapping: _walkeros_core.JSONSchema;
92
- declare const firehose: _walkeros_core.JSONSchema;
93
-
94
- declare const index$1_FirehoseConfigSchema: typeof FirehoseConfigSchema;
95
- type index$1_Mapping = Mapping;
96
- declare const index$1_MappingSchema: typeof MappingSchema;
97
- type index$1_Settings = Settings;
98
- declare const index$1_SettingsSchema: typeof SettingsSchema;
99
- declare const index$1_firehose: typeof firehose;
100
- declare const index$1_mapping: typeof mapping;
101
- declare const index$1_settings: typeof settings;
102
- declare namespace index$1 {
103
- export { index$1_FirehoseConfigSchema as FirehoseConfigSchema, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_firehose as firehose, index$1_mapping as mapping, index$1_settings as settings };
37
+ type index_Config = Config;
38
+ type index_Destination = Destination;
39
+ type index_Env = Env;
40
+ type index_FirehoseConfig = FirehoseConfig;
41
+ type index_InitFn = InitFn;
42
+ type index_InitSettings = InitSettings;
43
+ type index_Mapping = Mapping;
44
+ type index_PartialConfig = PartialConfig;
45
+ type index_PushEvents = PushEvents;
46
+ type index_PushFn = PushFn;
47
+ type index_Rule = Rule;
48
+ type index_Rules = Rules;
49
+ type index_Settings = Settings;
50
+ type index_Types = Types;
51
+ declare namespace index {
52
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_FirehoseConfig as FirehoseConfig, 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 };
104
53
  }
105
54
 
106
55
  declare const destinationFirehose: Destination;
107
56
 
108
- declare namespace index {
109
- export { index$2 as firehose };
110
- }
111
-
112
- export { index$3 as DestinationFirehose, destinationFirehose, index as examples, index$1 as schemas };
57
+ export { index as DestinationFirehose, destinationFirehose };
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  import { DestinationServer } from '@walkeros/server-core';
2
- import * as _walkeros_core from '@walkeros/core';
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 { FirehoseClient, FirehoseClientConfig, PutRecordBatchCommand } from '@aws-sdk/client-firehose';
5
4
 
6
- interface Settings$1 {
5
+ interface Settings {
7
6
  firehose?: FirehoseConfig;
8
7
  }
9
- interface Mapping$1 {
8
+ type InitSettings = Partial<Settings>;
9
+ interface Mapping {
10
10
  }
11
11
  interface Env extends DestinationServer.Env {
12
12
  AWS: {
@@ -14,19 +14,19 @@ interface Env extends DestinationServer.Env {
14
14
  PutRecordBatchCommand: typeof PutRecordBatchCommand;
15
15
  };
16
16
  }
17
- type Types = Destination$1.Types<Settings$1, Mapping$1, Env>;
17
+ type Types = Destination$1.Types<Settings, Mapping, Env, InitSettings>;
18
18
  interface Destination extends DestinationServer.Destination<Types> {
19
19
  init: DestinationServer.InitFn<Types>;
20
20
  }
21
21
  type Config = {
22
- settings: Settings$1;
22
+ settings: Settings;
23
23
  } & DestinationServer.Config<Types>;
24
24
  type InitFn = DestinationServer.InitFn<Types>;
25
25
  type PushFn = DestinationServer.PushFn<Types>;
26
26
  type PartialConfig = DestinationServer.PartialConfig<Types>;
27
- type PushEvents = DestinationServer.PushEvents<Mapping$1>;
28
- type Rule = Mapping$2.Rule<Mapping$1>;
29
- type Rules = Mapping$2.Rules<Rule>;
27
+ type PushEvents = DestinationServer.PushEvents<Mapping>;
28
+ type Rule = Mapping$1.Rule<Mapping>;
29
+ type Rules = Mapping$1.Rules<Rule>;
30
30
  interface FirehoseConfig {
31
31
  streamName: string;
32
32
  client?: FirehoseClient;
@@ -34,79 +34,24 @@ interface FirehoseConfig {
34
34
  config?: FirehoseClientConfig;
35
35
  }
36
36
 
37
- type index$3_Config = Config;
38
- type index$3_Destination = Destination;
39
- type index$3_Env = Env;
40
- type index$3_FirehoseConfig = FirehoseConfig;
41
- type index$3_InitFn = InitFn;
42
- type index$3_PartialConfig = PartialConfig;
43
- type index$3_PushEvents = PushEvents;
44
- type index$3_PushFn = PushFn;
45
- type index$3_Rule = Rule;
46
- type index$3_Rules = Rules;
47
- type index$3_Types = Types;
48
- declare namespace index$3 {
49
- export type { index$3_Config as Config, index$3_Destination as Destination, index$3_Env as Env, index$3_FirehoseConfig as FirehoseConfig, index$3_InitFn as InitFn, Mapping$1 as Mapping, index$3_PartialConfig as PartialConfig, index$3_PushEvents as PushEvents, index$3_PushFn as PushFn, index$3_Rule as Rule, index$3_Rules as Rules, Settings$1 as Settings, index$3_Types as Types };
50
- }
51
-
52
- declare const push: Env;
53
-
54
- declare const env_push: typeof push;
55
- declare namespace env {
56
- export { env_push as push };
57
- }
58
-
59
- declare const index$2_env: typeof env;
60
- declare namespace index$2 {
61
- export { index$2_env as env };
62
- }
63
-
64
- declare const FirehoseConfigSchema: z.ZodObject<{
65
- streamName: z.ZodString;
66
- client: z.ZodOptional<z.ZodAny>;
67
- region: z.ZodOptional<z.ZodString>;
68
- config: z.ZodOptional<z.ZodAny>;
69
- }, z.core.$strip>;
70
- declare const SettingsSchema: z.ZodObject<{
71
- firehose: z.ZodOptional<z.ZodObject<{
72
- streamName: z.ZodString;
73
- client: z.ZodOptional<z.ZodAny>;
74
- region: z.ZodOptional<z.ZodString>;
75
- config: z.ZodOptional<z.ZodAny>;
76
- }, z.core.$strip>>;
77
- }, z.core.$strip>;
78
- type Settings = z.infer<typeof SettingsSchema>;
79
-
80
- /**
81
- * AWS Firehose Mapping Schema
82
- * AWS Firehose has no event-level mapping configuration
83
- */
84
- declare const MappingSchema: z.ZodObject<{}, z.core.$strip>;
85
- /**
86
- * Type inference from MappingSchema
87
- */
88
- type Mapping = z.infer<typeof MappingSchema>;
89
-
90
- declare const settings: _walkeros_core.JSONSchema;
91
- declare const mapping: _walkeros_core.JSONSchema;
92
- declare const firehose: _walkeros_core.JSONSchema;
93
-
94
- declare const index$1_FirehoseConfigSchema: typeof FirehoseConfigSchema;
95
- type index$1_Mapping = Mapping;
96
- declare const index$1_MappingSchema: typeof MappingSchema;
97
- type index$1_Settings = Settings;
98
- declare const index$1_SettingsSchema: typeof SettingsSchema;
99
- declare const index$1_firehose: typeof firehose;
100
- declare const index$1_mapping: typeof mapping;
101
- declare const index$1_settings: typeof settings;
102
- declare namespace index$1 {
103
- export { index$1_FirehoseConfigSchema as FirehoseConfigSchema, type index$1_Mapping as Mapping, index$1_MappingSchema as MappingSchema, type index$1_Settings as Settings, index$1_SettingsSchema as SettingsSchema, index$1_firehose as firehose, index$1_mapping as mapping, index$1_settings as settings };
37
+ type index_Config = Config;
38
+ type index_Destination = Destination;
39
+ type index_Env = Env;
40
+ type index_FirehoseConfig = FirehoseConfig;
41
+ type index_InitFn = InitFn;
42
+ type index_InitSettings = InitSettings;
43
+ type index_Mapping = Mapping;
44
+ type index_PartialConfig = PartialConfig;
45
+ type index_PushEvents = PushEvents;
46
+ type index_PushFn = PushFn;
47
+ type index_Rule = Rule;
48
+ type index_Rules = Rules;
49
+ type index_Settings = Settings;
50
+ type index_Types = Types;
51
+ declare namespace index {
52
+ export type { index_Config as Config, index_Destination as Destination, index_Env as Env, index_FirehoseConfig as FirehoseConfig, 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 };
104
53
  }
105
54
 
106
55
  declare const destinationFirehose: Destination;
107
56
 
108
- declare namespace index {
109
- export { index$2 as firehose };
110
- }
111
-
112
- export { index$3 as DestinationFirehose, destinationFirehose, index as examples, index$1 as schemas };
57
+ export { index as DestinationFirehose, destinationFirehose };