File tree 3 files changed +40
-1
lines changed 3 files changed +40
-1
lines changed Original file line number Diff line number Diff line change 1
1
/coverage
2
+ /dist
2
3
/node_modules
3
4
/.rpt2_cache
4
5
5
- .idea
6
+ .idea
Original file line number Diff line number Diff line change
1
+ export interface TealiumEventData {
2
+ page_env ?: string ;
3
+ page_brand ?: string ;
4
+ page_app_name ?: string ;
5
+ page_doc_type ?: string ;
6
+ page_cms_id ?: string ;
7
+ page_cms_path ?: string ;
8
+ page_platform ?: string ;
9
+ page_layout_breakpoint_class ?: string ;
10
+ page_mode ?: string ;
11
+ page_template_variant_abc ?: string ;
12
+ page_template_variant_xyz ?: string ;
13
+ page_abtest_id ?: string ;
14
+ page_abtest_variant ?: string ;
15
+ product_id_array ?: string [ ] ;
16
+ product_title_array ?: string [ ] ;
17
+ product_value_array ?: string [ ] ;
18
+ user_is_loggedin ?: string ;
19
+ user_sso_id ?: string ;
20
+ user_c1_tracking_id ?: string ;
21
+ }
22
+
23
+ export interface TealiumData {
24
+ event_name ?: string ;
25
+ event_action ?: string ;
26
+ event_label ?: string ;
27
+ event_data ?: TealiumEventData ;
28
+ }
Original file line number Diff line number Diff line change
1
+ import { TealiumData } from "./model" ;
2
+
1
3
function requireApi < T > ( name : string ) : Promise < T > {
2
4
// -- START -- static loader
3
5
const unresolvedPackages = { } as any ;
@@ -93,3 +95,11 @@ export interface WhoamiV1 {
93
95
export function whoamiV1 ( ) : Promise < WhoamiV1 > {
94
96
return requireApi ( "whoami:v1" ) ;
95
97
}
98
+
99
+ export interface RosettaV1 {
100
+ trackEvent ( event : TealiumData ) : void ;
101
+ }
102
+
103
+ export function rosettaV1 ( ) : Promise < RosettaV1 > {
104
+ return requireApi ( "rosetta:v1" ) ;
105
+ }
You can’t perform that action at this time.
0 commit comments