@@ -20,6 +20,7 @@ import { FirebaseApp } from '@firebase/app-exp';
20
20
/**
21
21
* Additional options that can be passed to Firebase Analytics method
22
22
* calls such as `logEvent`, `setCurrentScreen`, etc.
23
+ * @public
23
24
*/
24
25
export interface AnalyticsCallOptions {
25
26
/**
@@ -29,6 +30,11 @@ export interface AnalyticsCallOptions {
29
30
global : boolean ;
30
31
}
31
32
33
+ /**
34
+ * The Firebase Analytics service interface.
35
+ *
36
+ * @public
37
+ */
32
38
export interface Analytics {
33
39
/**
34
40
* The FirebaseApp this Functions instance is associated with.
@@ -39,6 +45,7 @@ export interface Analytics {
39
45
/**
40
46
* Specifies custom options for your Firebase Analytics instance.
41
47
* You must set these before initializing `firebase.analytics()`.
48
+ * @public
42
49
*/
43
50
export interface SettingsOptions {
44
51
/** Sets custom name for `gtag` function. */
@@ -49,13 +56,15 @@ export interface SettingsOptions {
49
56
50
57
/**
51
58
* Any custom params the user may pass to gtag.js.
59
+ * @public
52
60
*/
53
61
export interface CustomParams {
54
62
[ key : string ] : unknown ;
55
63
}
56
64
/**
57
65
* Type for standard gtag.js event names. `logEvent` also accepts any
58
66
* custom string and interprets it as a custom event name.
67
+ * @public
59
68
*/
60
69
export type EventNameString =
61
70
| 'add_payment_info'
@@ -86,9 +95,17 @@ export type EventNameString =
86
95
| 'view_promotion'
87
96
| 'view_search_results' ;
88
97
98
+ /**
99
+ * Currency field used by some Analytics events.
100
+ * @public
101
+ */
89
102
export type Currency = string | number ;
90
103
91
104
/* eslint-disable camelcase */
105
+ /**
106
+ * Item field used by some Analytics events.
107
+ * @public
108
+ */
92
109
export interface Item {
93
110
item_id ?: string ;
94
111
item_name ?: string ;
@@ -122,7 +139,11 @@ export interface Item {
122
139
name ?: string ;
123
140
}
124
141
125
- /** @deprecated Use Item instead. */
142
+ /**
143
+ * Field previously used by some Analytics events.
144
+ * @deprecated Use Item instead.
145
+ * @public
146
+ */
126
147
export interface Promotion {
127
148
creative_name ?: string ;
128
149
creative_slot ?: string ;
@@ -135,6 +156,7 @@ export interface Promotion {
135
156
* For more information, see
136
157
* {@link https://developers.google.com/gtagjs/reference/parameter
137
158
* | the gtag.js documentation on parameters}.
159
+ * @public
138
160
*/
139
161
export interface ControlParams {
140
162
groups ?: string | string [ ] ;
@@ -148,6 +170,7 @@ export interface ControlParams {
148
170
* For more information, see
149
171
* {@link https://developers.google.com/gtagjs/reference/parameter
150
172
* | the gtag.js documentation on parameters}.
173
+ * @public
151
174
*/
152
175
export interface EventParams {
153
176
checkout_option ?: string ;
0 commit comments