@walkeros/web-destination-api 0.1.2 → 0.2.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/README.md +6 -6
- package/dist/examples/index.d.mts +18 -5
- package/dist/examples/index.d.ts +18 -5
- package/dist/examples/index.js +5399 -25
- package/dist/examples/index.mjs +5398 -25
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +21 -9
- package/dist/index.d.ts +21 -9
- package/dist/index.es5.js +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/package.json +2 -2
package/README.md
CHANGED
|
@@ -40,10 +40,10 @@ npm install @walkeros/web-destination-api
|
|
|
40
40
|
### Basic Usage
|
|
41
41
|
|
|
42
42
|
```typescript
|
|
43
|
-
import {
|
|
43
|
+
import { startFlow } from '@walkeros/collector';
|
|
44
44
|
import { destinationAPI } from '@walkeros/web-destination-api';
|
|
45
45
|
|
|
46
|
-
const { elb } = await
|
|
46
|
+
const { elb } = await startFlow();
|
|
47
47
|
|
|
48
48
|
elb('walker destination', destinationAPI, {
|
|
49
49
|
settings: {
|
|
@@ -60,10 +60,10 @@ elb('walker destination', destinationAPI, {
|
|
|
60
60
|
### Advanced Usage with Transform
|
|
61
61
|
|
|
62
62
|
```typescript
|
|
63
|
-
import {
|
|
63
|
+
import { startFlow } from '@walkeros/collector';
|
|
64
64
|
import { destinationAPI } from '@walkeros/web-destination-api';
|
|
65
65
|
|
|
66
|
-
const { elb } = await
|
|
66
|
+
const { elb } = await startFlow();
|
|
67
67
|
|
|
68
68
|
elb('walker destination', destinationAPI, {
|
|
69
69
|
settings: {
|
|
@@ -87,10 +87,10 @@ elb('walker destination', destinationAPI, {
|
|
|
87
87
|
### Sending to Analytics API
|
|
88
88
|
|
|
89
89
|
```typescript
|
|
90
|
-
import {
|
|
90
|
+
import { startFlow } from '@walkeros/collector';
|
|
91
91
|
import { destinationAPI } from '@walkeros/web-destination-api';
|
|
92
92
|
|
|
93
|
-
const { elb } = await
|
|
93
|
+
const { elb } = await startFlow();
|
|
94
94
|
|
|
95
95
|
// Configure for analytics API
|
|
96
96
|
elb('walker destination', destinationAPI, {
|
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { Mapping as Mapping$1 } from '@walkeros/core';
|
|
2
|
+
import { DestinationWeb, sendWeb } from '@walkeros/web-core';
|
|
3
|
+
|
|
4
|
+
interface Mapping {
|
|
5
|
+
}
|
|
6
|
+
interface Env extends DestinationWeb.Env {
|
|
7
|
+
sendWeb?: typeof sendWeb;
|
|
8
|
+
}
|
|
9
|
+
type Rule = Mapping$1.Rule<Mapping>;
|
|
10
|
+
|
|
11
|
+
declare const init: Env | undefined;
|
|
12
|
+
declare const push: Env;
|
|
13
|
+
|
|
14
|
+
declare const env_init: typeof init;
|
|
15
|
+
declare const env_push: typeof push;
|
|
16
|
+
declare namespace env {
|
|
17
|
+
export { env_init as init, env_push as push };
|
|
18
|
+
}
|
|
2
19
|
|
|
3
20
|
declare function entity_action$1(): string;
|
|
4
21
|
|
|
@@ -6,10 +23,6 @@ declare namespace events {
|
|
|
6
23
|
export { entity_action$1 as entity_action };
|
|
7
24
|
}
|
|
8
25
|
|
|
9
|
-
interface Mapping {
|
|
10
|
-
}
|
|
11
|
-
type Rule = Mapping$1.Rule<Mapping>;
|
|
12
|
-
|
|
13
26
|
declare const entity_action: Rule;
|
|
14
27
|
declare const config: {
|
|
15
28
|
entity: {
|
|
@@ -23,4 +36,4 @@ declare namespace mapping {
|
|
|
23
36
|
export { mapping_config as config, mapping_entity_action as entity_action };
|
|
24
37
|
}
|
|
25
38
|
|
|
26
|
-
export { events, mapping };
|
|
39
|
+
export { env, events, mapping };
|
package/dist/examples/index.d.ts
CHANGED
|
@@ -1,4 +1,21 @@
|
|
|
1
1
|
import { Mapping as Mapping$1 } from '@walkeros/core';
|
|
2
|
+
import { DestinationWeb, sendWeb } from '@walkeros/web-core';
|
|
3
|
+
|
|
4
|
+
interface Mapping {
|
|
5
|
+
}
|
|
6
|
+
interface Env extends DestinationWeb.Env {
|
|
7
|
+
sendWeb?: typeof sendWeb;
|
|
8
|
+
}
|
|
9
|
+
type Rule = Mapping$1.Rule<Mapping>;
|
|
10
|
+
|
|
11
|
+
declare const init: Env | undefined;
|
|
12
|
+
declare const push: Env;
|
|
13
|
+
|
|
14
|
+
declare const env_init: typeof init;
|
|
15
|
+
declare const env_push: typeof push;
|
|
16
|
+
declare namespace env {
|
|
17
|
+
export { env_init as init, env_push as push };
|
|
18
|
+
}
|
|
2
19
|
|
|
3
20
|
declare function entity_action$1(): string;
|
|
4
21
|
|
|
@@ -6,10 +23,6 @@ declare namespace events {
|
|
|
6
23
|
export { entity_action$1 as entity_action };
|
|
7
24
|
}
|
|
8
25
|
|
|
9
|
-
interface Mapping {
|
|
10
|
-
}
|
|
11
|
-
type Rule = Mapping$1.Rule<Mapping>;
|
|
12
|
-
|
|
13
26
|
declare const entity_action: Rule;
|
|
14
27
|
declare const config: {
|
|
15
28
|
entity: {
|
|
@@ -23,4 +36,4 @@ declare namespace mapping {
|
|
|
23
36
|
export { mapping_config as config, mapping_entity_action as entity_action };
|
|
24
37
|
}
|
|
25
38
|
|
|
26
|
-
export { events, mapping };
|
|
39
|
+
export { env, events, mapping };
|