zorihq 0.15.0 → 0.17.0
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/CHANGELOG.md +16 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -9
- package/client.js.map +1 -1
- package/client.mjs +15 -9
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +112 -27
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +112 -27
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js +8 -14
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs +8 -14
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/analytics/index.d.mts +2 -4
- package/resources/v1/analytics/index.d.mts.map +1 -1
- package/resources/v1/analytics/index.d.ts +2 -4
- package/resources/v1/analytics/index.d.ts.map +1 -1
- package/resources/v1/analytics/index.js +1 -5
- package/resources/v1/analytics/index.js.map +1 -1
- package/resources/v1/analytics/index.mjs +0 -2
- package/resources/v1/analytics/index.mjs.map +1 -1
- package/resources/v1/analytics/tiles.d.mts +105 -134
- package/resources/v1/analytics/tiles.d.mts.map +1 -1
- package/resources/v1/analytics/tiles.d.ts +105 -134
- package/resources/v1/analytics/tiles.d.ts.map +1 -1
- package/resources/v1/analytics/tiles.js +74 -46
- package/resources/v1/analytics/tiles.js.map +1 -1
- package/resources/v1/analytics/tiles.mjs +74 -46
- package/resources/v1/analytics/tiles.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/v1.d.mts +2 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +2 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs.map +1 -1
- package/src/client.ts +20 -14
- package/src/resources/v1/analytics/analytics.ts +214 -92
- package/src/resources/v1/analytics/index.ts +36 -30
- package/src/resources/v1/analytics/tiles.ts +149 -206
- package/src/resources/v1/index.ts +21 -2
- package/src/resources/v1/v1.ts +42 -4
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/resources/v1/analytics/sessions.d.mts +0 -4
- package/resources/v1/analytics/sessions.d.mts.map +0 -1
- package/resources/v1/analytics/sessions.d.ts +0 -4
- package/resources/v1/analytics/sessions.d.ts.map +0 -1
- package/resources/v1/analytics/sessions.js +0 -9
- package/resources/v1/analytics/sessions.js.map +0 -1
- package/resources/v1/analytics/sessions.mjs +0 -5
- package/resources/v1/analytics/sessions.mjs.map +0 -1
- package/resources/v1/analytics/users.d.mts +0 -4
- package/resources/v1/analytics/users.d.mts.map +0 -1
- package/resources/v1/analytics/users.d.ts +0 -4
- package/resources/v1/analytics/users.d.ts.map +0 -1
- package/resources/v1/analytics/users.js +0 -9
- package/resources/v1/analytics/users.js.map +0 -1
- package/resources/v1/analytics/users.mjs +0 -5
- package/resources/v1/analytics/users.mjs.map +0 -1
- package/src/resources/v1/analytics/sessions.ts +0 -5
- package/src/resources/v1/analytics/users.ts +0 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../../../core/resource';
|
|
4
|
+
import * as AnalyticsAPI from './analytics';
|
|
4
5
|
import { APIPromise } from '../../../core/api-promise';
|
|
5
6
|
import { RequestOptions } from '../../../internal/request-options';
|
|
6
7
|
|
|
@@ -10,17 +11,17 @@ export class Tiles extends APIResource {
|
|
|
10
11
|
*
|
|
11
12
|
* @example
|
|
12
13
|
* ```ts
|
|
13
|
-
* const
|
|
14
|
-
* await client.v1.analytics.tiles.
|
|
14
|
+
* const bounceRateResponse =
|
|
15
|
+
* await client.v1.analytics.tiles.bounceRate({
|
|
15
16
|
* project_id: 'project_id',
|
|
16
17
|
* time_range: 'last_hour',
|
|
17
18
|
* });
|
|
18
19
|
* ```
|
|
19
20
|
*/
|
|
20
|
-
|
|
21
|
-
query:
|
|
21
|
+
bounceRate(
|
|
22
|
+
query: TileBounceRateParams,
|
|
22
23
|
options?: RequestOptions,
|
|
23
|
-
): APIPromise<
|
|
24
|
+
): APIPromise<AnalyticsAPI.BounceRateResponse> {
|
|
24
25
|
return this._client.get('/api/v1/analytics/tiles/bounce-rate', { query, ...options });
|
|
25
26
|
}
|
|
26
27
|
|
|
@@ -29,17 +30,13 @@ export class Tiles extends APIResource {
|
|
|
29
30
|
*
|
|
30
31
|
* @example
|
|
31
32
|
* ```ts
|
|
32
|
-
* const
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
* });
|
|
33
|
+
* const dauResponse = await client.v1.analytics.tiles.dau({
|
|
34
|
+
* project_id: 'project_id',
|
|
35
|
+
* time_range: 'last_hour',
|
|
36
|
+
* });
|
|
37
37
|
* ```
|
|
38
38
|
*/
|
|
39
|
-
|
|
40
|
-
query: TileGetDailyActiveUsersParams,
|
|
41
|
-
options?: RequestOptions,
|
|
42
|
-
): APIPromise<TileGetDailyActiveUsersResponse> {
|
|
39
|
+
dau(query: TileDauParams, options?: RequestOptions): APIPromise<AnalyticsAPI.DauResponse> {
|
|
43
40
|
return this._client.get('/api/v1/analytics/tiles/dau', { query, ...options });
|
|
44
41
|
}
|
|
45
42
|
|
|
@@ -48,17 +45,13 @@ export class Tiles extends APIResource {
|
|
|
48
45
|
*
|
|
49
46
|
* @example
|
|
50
47
|
* ```ts
|
|
51
|
-
* const
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
* });
|
|
48
|
+
* const mauResponse = await client.v1.analytics.tiles.mau({
|
|
49
|
+
* project_id: 'project_id',
|
|
50
|
+
* time_range: 'last_hour',
|
|
51
|
+
* });
|
|
56
52
|
* ```
|
|
57
53
|
*/
|
|
58
|
-
|
|
59
|
-
query: TileGetMonthlyActiveUsersParams,
|
|
60
|
-
options?: RequestOptions,
|
|
61
|
-
): APIPromise<TileGetMonthlyActiveUsersResponse> {
|
|
54
|
+
mau(query: TileMauParams, options?: RequestOptions): APIPromise<AnalyticsAPI.MauResponse> {
|
|
62
55
|
return this._client.get('/api/v1/analytics/tiles/mau', { query, ...options });
|
|
63
56
|
}
|
|
64
57
|
|
|
@@ -68,17 +61,17 @@ export class Tiles extends APIResource {
|
|
|
68
61
|
*
|
|
69
62
|
* @example
|
|
70
63
|
* ```ts
|
|
71
|
-
* const
|
|
72
|
-
* await client.v1.analytics.tiles.
|
|
64
|
+
* const pagesPerSessionResponse =
|
|
65
|
+
* await client.v1.analytics.tiles.pagesPerSession({
|
|
73
66
|
* project_id: 'project_id',
|
|
74
67
|
* time_range: 'last_hour',
|
|
75
68
|
* });
|
|
76
69
|
* ```
|
|
77
70
|
*/
|
|
78
|
-
|
|
79
|
-
query:
|
|
71
|
+
pagesPerSession(
|
|
72
|
+
query: TilePagesPerSessionParams,
|
|
80
73
|
options?: RequestOptions,
|
|
81
|
-
): APIPromise<
|
|
74
|
+
): APIPromise<AnalyticsAPI.PagesPerSessionResponse> {
|
|
82
75
|
return this._client.get('/api/v1/analytics/tiles/pages-per-session', { query, ...options });
|
|
83
76
|
}
|
|
84
77
|
|
|
@@ -88,17 +81,17 @@ export class Tiles extends APIResource {
|
|
|
88
81
|
*
|
|
89
82
|
* @example
|
|
90
83
|
* ```ts
|
|
91
|
-
* const
|
|
92
|
-
* await client.v1.analytics.tiles.
|
|
84
|
+
* const returnRateResponse =
|
|
85
|
+
* await client.v1.analytics.tiles.returnRate({
|
|
93
86
|
* project_id: 'project_id',
|
|
94
87
|
* time_range: 'last_hour',
|
|
95
88
|
* });
|
|
96
89
|
* ```
|
|
97
90
|
*/
|
|
98
|
-
|
|
99
|
-
query:
|
|
91
|
+
returnRate(
|
|
92
|
+
query: TileReturnRateParams,
|
|
100
93
|
options?: RequestOptions,
|
|
101
|
-
): APIPromise<
|
|
94
|
+
): APIPromise<AnalyticsAPI.ReturnRateResponse> {
|
|
102
95
|
return this._client.get('/api/v1/analytics/tiles/return-rate', { query, ...options });
|
|
103
96
|
}
|
|
104
97
|
|
|
@@ -108,17 +101,17 @@ export class Tiles extends APIResource {
|
|
|
108
101
|
*
|
|
109
102
|
* @example
|
|
110
103
|
* ```ts
|
|
111
|
-
* const
|
|
112
|
-
* await client.v1.analytics.tiles.
|
|
104
|
+
* const sessionDurationResponse =
|
|
105
|
+
* await client.v1.analytics.tiles.sessionDuration({
|
|
113
106
|
* project_id: 'project_id',
|
|
114
107
|
* time_range: 'last_hour',
|
|
115
108
|
* });
|
|
116
109
|
* ```
|
|
117
110
|
*/
|
|
118
|
-
|
|
119
|
-
query:
|
|
111
|
+
sessionDuration(
|
|
112
|
+
query: TileSessionDurationParams,
|
|
120
113
|
options?: RequestOptions,
|
|
121
|
-
): APIPromise<
|
|
114
|
+
): APIPromise<AnalyticsAPI.SessionDurationResponse> {
|
|
122
115
|
return this._client.get('/api/v1/analytics/tiles/session-duration', { query, ...options });
|
|
123
116
|
}
|
|
124
117
|
|
|
@@ -128,17 +121,17 @@ export class Tiles extends APIResource {
|
|
|
128
121
|
*
|
|
129
122
|
* @example
|
|
130
123
|
* ```ts
|
|
131
|
-
* const
|
|
132
|
-
* await client.v1.analytics.tiles.
|
|
124
|
+
* const timeBetweenVisitsResponse =
|
|
125
|
+
* await client.v1.analytics.tiles.timeBetweenVisits({
|
|
133
126
|
* project_id: 'project_id',
|
|
134
127
|
* time_range: 'last_hour',
|
|
135
128
|
* });
|
|
136
129
|
* ```
|
|
137
130
|
*/
|
|
138
|
-
|
|
139
|
-
query:
|
|
131
|
+
timeBetweenVisits(
|
|
132
|
+
query: TileTimeBetweenVisitsParams,
|
|
140
133
|
options?: RequestOptions,
|
|
141
|
-
): APIPromise<
|
|
134
|
+
): APIPromise<AnalyticsAPI.TimeBetweenVisitsResponse> {
|
|
142
135
|
return this._client.get('/api/v1/analytics/tiles/time-between-visits', { query, ...options });
|
|
143
136
|
}
|
|
144
137
|
|
|
@@ -147,17 +140,17 @@ export class Tiles extends APIResource {
|
|
|
147
140
|
*
|
|
148
141
|
* @example
|
|
149
142
|
* ```ts
|
|
150
|
-
* const
|
|
151
|
-
* await client.v1.analytics.tiles.
|
|
143
|
+
* const countryTrafficSourceResponse =
|
|
144
|
+
* await client.v1.analytics.tiles.trafficByCountry({
|
|
152
145
|
* project_id: 'project_id',
|
|
153
146
|
* time_range: 'last_hour',
|
|
154
147
|
* });
|
|
155
148
|
* ```
|
|
156
149
|
*/
|
|
157
|
-
|
|
158
|
-
query:
|
|
150
|
+
trafficByCountry(
|
|
151
|
+
query: TileTrafficByCountryParams,
|
|
159
152
|
options?: RequestOptions,
|
|
160
|
-
): APIPromise<
|
|
153
|
+
): APIPromise<AnalyticsAPI.CountryTrafficSourceResponse> {
|
|
161
154
|
return this._client.get('/api/v1/analytics/tiles/traffic-by-country', { query, ...options });
|
|
162
155
|
}
|
|
163
156
|
|
|
@@ -166,17 +159,17 @@ export class Tiles extends APIResource {
|
|
|
166
159
|
*
|
|
167
160
|
* @example
|
|
168
161
|
* ```ts
|
|
169
|
-
* const
|
|
170
|
-
* await client.v1.analytics.tiles.
|
|
162
|
+
* const refererTrafficSourceResponse =
|
|
163
|
+
* await client.v1.analytics.tiles.trafficByReferer({
|
|
171
164
|
* project_id: 'project_id',
|
|
172
165
|
* time_range: 'last_hour',
|
|
173
166
|
* });
|
|
174
167
|
* ```
|
|
175
168
|
*/
|
|
176
|
-
|
|
177
|
-
query:
|
|
169
|
+
trafficByReferer(
|
|
170
|
+
query: TileTrafficByRefererParams,
|
|
178
171
|
options?: RequestOptions,
|
|
179
|
-
): APIPromise<
|
|
172
|
+
): APIPromise<AnalyticsAPI.RefererTrafficSourceResponse> {
|
|
180
173
|
return this._client.get('/api/v1/analytics/tiles/traffic-by-referer', { query, ...options });
|
|
181
174
|
}
|
|
182
175
|
|
|
@@ -185,17 +178,17 @@ export class Tiles extends APIResource {
|
|
|
185
178
|
*
|
|
186
179
|
* @example
|
|
187
180
|
* ```ts
|
|
188
|
-
* const
|
|
189
|
-
* await client.v1.analytics.tiles.
|
|
181
|
+
* const utmTrafficSourceResponse =
|
|
182
|
+
* await client.v1.analytics.tiles.trafficByUtm({
|
|
190
183
|
* project_id: 'project_id',
|
|
191
184
|
* time_range: 'last_hour',
|
|
192
185
|
* });
|
|
193
186
|
* ```
|
|
194
187
|
*/
|
|
195
|
-
|
|
196
|
-
query:
|
|
188
|
+
trafficByUtm(
|
|
189
|
+
query: TileTrafficByUtmParams,
|
|
197
190
|
options?: RequestOptions,
|
|
198
|
-
): APIPromise<
|
|
191
|
+
): APIPromise<AnalyticsAPI.UtmTrafficSourceResponse> {
|
|
199
192
|
return this._client.get('/api/v1/analytics/tiles/traffic-by-utm', { query, ...options });
|
|
200
193
|
}
|
|
201
194
|
|
|
@@ -204,17 +197,17 @@ export class Tiles extends APIResource {
|
|
|
204
197
|
*
|
|
205
198
|
* @example
|
|
206
199
|
* ```ts
|
|
207
|
-
* const
|
|
208
|
-
* await client.v1.analytics.tiles.
|
|
200
|
+
* const uniqueSessionsResponse =
|
|
201
|
+
* await client.v1.analytics.tiles.uniqueSessions({
|
|
209
202
|
* project_id: 'project_id',
|
|
210
203
|
* time_range: 'last_hour',
|
|
211
204
|
* });
|
|
212
205
|
* ```
|
|
213
206
|
*/
|
|
214
|
-
|
|
215
|
-
query:
|
|
207
|
+
uniqueSessions(
|
|
208
|
+
query: TileUniqueSessionsParams,
|
|
216
209
|
options?: RequestOptions,
|
|
217
|
-
): APIPromise<
|
|
210
|
+
): APIPromise<AnalyticsAPI.UniqueSessionsResponse> {
|
|
218
211
|
return this._client.get('/api/v1/analytics/tiles/unique-sessions', { query, ...options });
|
|
219
212
|
}
|
|
220
213
|
|
|
@@ -223,155 +216,116 @@ export class Tiles extends APIResource {
|
|
|
223
216
|
*
|
|
224
217
|
* @example
|
|
225
218
|
* ```ts
|
|
226
|
-
* const
|
|
227
|
-
* await client.v1.analytics.tiles.
|
|
219
|
+
* const uniqueVisitorsResponse =
|
|
220
|
+
* await client.v1.analytics.tiles.uniqueVisitors({
|
|
228
221
|
* project_id: 'project_id',
|
|
229
222
|
* time_range: 'last_hour',
|
|
230
223
|
* });
|
|
231
224
|
* ```
|
|
232
225
|
*/
|
|
233
|
-
|
|
234
|
-
query:
|
|
226
|
+
uniqueVisitors(
|
|
227
|
+
query: TileUniqueVisitorsParams,
|
|
235
228
|
options?: RequestOptions,
|
|
236
|
-
): APIPromise<
|
|
229
|
+
): APIPromise<AnalyticsAPI.UniqueVisitorsResponse> {
|
|
237
230
|
return this._client.get('/api/v1/analytics/tiles/unique-visitors', { query, ...options });
|
|
238
231
|
}
|
|
239
232
|
|
|
240
233
|
/**
|
|
241
|
-
* Get
|
|
234
|
+
* Get number of visitors by browser for current period compared to the previous
|
|
235
|
+
* period
|
|
242
236
|
*
|
|
243
237
|
* @example
|
|
244
238
|
* ```ts
|
|
245
|
-
* const
|
|
246
|
-
* await client.v1.analytics.tiles.
|
|
239
|
+
* const visitorsByBrowserResponse =
|
|
240
|
+
* await client.v1.analytics.tiles.visitorsByBrowser({
|
|
247
241
|
* project_id: 'project_id',
|
|
248
242
|
* time_range: 'last_hour',
|
|
249
243
|
* });
|
|
250
244
|
* ```
|
|
251
245
|
*/
|
|
252
|
-
|
|
253
|
-
query:
|
|
246
|
+
visitorsByBrowser(
|
|
247
|
+
query: TileVisitorsByBrowserParams,
|
|
254
248
|
options?: RequestOptions,
|
|
255
|
-
): APIPromise<
|
|
256
|
-
return this._client.get('/api/v1/analytics/tiles/
|
|
249
|
+
): APIPromise<AnalyticsAPI.VisitorsByBrowserResponse> {
|
|
250
|
+
return this._client.get('/api/v1/analytics/tiles/visitors-by-browser', { query, ...options });
|
|
257
251
|
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
export interface TileGetBounceRateResponse {
|
|
261
|
-
previous_rate?: number;
|
|
262
|
-
|
|
263
|
-
rate?: number;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface TileGetDailyActiveUsersResponse {
|
|
267
|
-
count?: number;
|
|
268
|
-
|
|
269
|
-
previous_count?: number;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
export interface TileGetMonthlyActiveUsersResponse {
|
|
273
|
-
count?: number;
|
|
274
|
-
|
|
275
|
-
previous_count?: number;
|
|
276
|
-
}
|
|
277
|
-
|
|
278
|
-
export interface TileGetPagesPerSessionResponse {
|
|
279
|
-
avg_pages?: number;
|
|
280
252
|
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
previous_avg_hours?: number;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
export interface TileGetTrafficByCountryResponse {
|
|
303
|
-
data?: Array<TileGetTrafficByCountryResponse.Data>;
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
export namespace TileGetTrafficByCountryResponse {
|
|
307
|
-
export interface Data {
|
|
308
|
-
count?: number;
|
|
309
|
-
|
|
310
|
-
country?: string;
|
|
311
|
-
|
|
312
|
-
previous_count?: number;
|
|
253
|
+
/**
|
|
254
|
+
* Get number of visitors by OS for current period compared to the previous period
|
|
255
|
+
*
|
|
256
|
+
* @example
|
|
257
|
+
* ```ts
|
|
258
|
+
* const visitorsByOsResponse =
|
|
259
|
+
* await client.v1.analytics.tiles.visitorsByOs({
|
|
260
|
+
* project_id: 'project_id',
|
|
261
|
+
* time_range: 'last_hour',
|
|
262
|
+
* });
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
visitorsByOs(
|
|
266
|
+
query: TileVisitorsByOsParams,
|
|
267
|
+
options?: RequestOptions,
|
|
268
|
+
): APIPromise<AnalyticsAPI.VisitorsByOsResponse> {
|
|
269
|
+
return this._client.get('/api/v1/analytics/tiles/visitors-by-os', { query, ...options });
|
|
313
270
|
}
|
|
314
|
-
}
|
|
315
271
|
|
|
316
|
-
|
|
317
|
-
|
|
272
|
+
/**
|
|
273
|
+
* Get weekly active user count (last 7 days) compared to the previous week
|
|
274
|
+
*
|
|
275
|
+
* @example
|
|
276
|
+
* ```ts
|
|
277
|
+
* const wauResponse = await client.v1.analytics.tiles.wau({
|
|
278
|
+
* project_id: 'project_id',
|
|
279
|
+
* time_range: 'last_hour',
|
|
280
|
+
* });
|
|
281
|
+
* ```
|
|
282
|
+
*/
|
|
283
|
+
wau(query: TileWauParams, options?: RequestOptions): APIPromise<AnalyticsAPI.WauResponse> {
|
|
284
|
+
return this._client.get('/api/v1/analytics/tiles/wau', { query, ...options });
|
|
285
|
+
}
|
|
318
286
|
}
|
|
319
287
|
|
|
320
|
-
export
|
|
321
|
-
|
|
322
|
-
count?: number;
|
|
323
|
-
|
|
324
|
-
previous_count?: number;
|
|
288
|
+
export interface TileBounceRateParams {
|
|
289
|
+
project_id: string;
|
|
325
290
|
|
|
326
|
-
|
|
291
|
+
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
327
292
|
|
|
328
|
-
|
|
293
|
+
customer_id?: string;
|
|
329
294
|
|
|
330
|
-
|
|
331
|
-
}
|
|
332
|
-
}
|
|
295
|
+
limit?: number;
|
|
333
296
|
|
|
334
|
-
|
|
335
|
-
data?: Array<TileGetTrafficByUtmResponse.Data>;
|
|
336
|
-
}
|
|
297
|
+
offset?: number;
|
|
337
298
|
|
|
338
|
-
|
|
339
|
-
export interface Data {
|
|
340
|
-
count?: number;
|
|
299
|
+
referrer?: string;
|
|
341
300
|
|
|
342
|
-
|
|
301
|
+
utmtag?: string;
|
|
343
302
|
|
|
344
|
-
|
|
303
|
+
utmtagValue?: string;
|
|
345
304
|
|
|
346
|
-
|
|
305
|
+
visitor_id?: string;
|
|
306
|
+
}
|
|
347
307
|
|
|
348
|
-
|
|
308
|
+
export interface TileDauParams {
|
|
309
|
+
project_id: string;
|
|
349
310
|
|
|
350
|
-
|
|
311
|
+
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
351
312
|
|
|
352
|
-
|
|
353
|
-
}
|
|
354
|
-
}
|
|
313
|
+
customer_id?: string;
|
|
355
314
|
|
|
356
|
-
|
|
357
|
-
count?: number;
|
|
315
|
+
limit?: number;
|
|
358
316
|
|
|
359
|
-
|
|
360
|
-
}
|
|
317
|
+
offset?: number;
|
|
361
318
|
|
|
362
|
-
|
|
363
|
-
count?: number;
|
|
319
|
+
referrer?: string;
|
|
364
320
|
|
|
365
|
-
|
|
366
|
-
}
|
|
321
|
+
utmtag?: string;
|
|
367
322
|
|
|
368
|
-
|
|
369
|
-
count?: number;
|
|
323
|
+
utmtagValue?: string;
|
|
370
324
|
|
|
371
|
-
|
|
325
|
+
visitor_id?: string;
|
|
372
326
|
}
|
|
373
327
|
|
|
374
|
-
export interface
|
|
328
|
+
export interface TileMauParams {
|
|
375
329
|
project_id: string;
|
|
376
330
|
|
|
377
331
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -391,7 +345,7 @@ export interface TileGetBounceRateParams {
|
|
|
391
345
|
visitor_id?: string;
|
|
392
346
|
}
|
|
393
347
|
|
|
394
|
-
export interface
|
|
348
|
+
export interface TilePagesPerSessionParams {
|
|
395
349
|
project_id: string;
|
|
396
350
|
|
|
397
351
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -411,7 +365,7 @@ export interface TileGetDailyActiveUsersParams {
|
|
|
411
365
|
visitor_id?: string;
|
|
412
366
|
}
|
|
413
367
|
|
|
414
|
-
export interface
|
|
368
|
+
export interface TileReturnRateParams {
|
|
415
369
|
project_id: string;
|
|
416
370
|
|
|
417
371
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -431,7 +385,7 @@ export interface TileGetMonthlyActiveUsersParams {
|
|
|
431
385
|
visitor_id?: string;
|
|
432
386
|
}
|
|
433
387
|
|
|
434
|
-
export interface
|
|
388
|
+
export interface TileSessionDurationParams {
|
|
435
389
|
project_id: string;
|
|
436
390
|
|
|
437
391
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -451,7 +405,7 @@ export interface TileGetPagesPerSessionParams {
|
|
|
451
405
|
visitor_id?: string;
|
|
452
406
|
}
|
|
453
407
|
|
|
454
|
-
export interface
|
|
408
|
+
export interface TileTimeBetweenVisitsParams {
|
|
455
409
|
project_id: string;
|
|
456
410
|
|
|
457
411
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -471,7 +425,7 @@ export interface TileGetReturnRateParams {
|
|
|
471
425
|
visitor_id?: string;
|
|
472
426
|
}
|
|
473
427
|
|
|
474
|
-
export interface
|
|
428
|
+
export interface TileTrafficByCountryParams {
|
|
475
429
|
project_id: string;
|
|
476
430
|
|
|
477
431
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -491,7 +445,7 @@ export interface TileGetSessionDurationParams {
|
|
|
491
445
|
visitor_id?: string;
|
|
492
446
|
}
|
|
493
447
|
|
|
494
|
-
export interface
|
|
448
|
+
export interface TileTrafficByRefererParams {
|
|
495
449
|
project_id: string;
|
|
496
450
|
|
|
497
451
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -511,7 +465,7 @@ export interface TileGetTimeBetweenVisitsParams {
|
|
|
511
465
|
visitor_id?: string;
|
|
512
466
|
}
|
|
513
467
|
|
|
514
|
-
export interface
|
|
468
|
+
export interface TileTrafficByUtmParams {
|
|
515
469
|
project_id: string;
|
|
516
470
|
|
|
517
471
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -531,7 +485,7 @@ export interface TileGetTrafficByCountryParams {
|
|
|
531
485
|
visitor_id?: string;
|
|
532
486
|
}
|
|
533
487
|
|
|
534
|
-
export interface
|
|
488
|
+
export interface TileUniqueSessionsParams {
|
|
535
489
|
project_id: string;
|
|
536
490
|
|
|
537
491
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -551,7 +505,7 @@ export interface TileGetTrafficByRefererParams {
|
|
|
551
505
|
visitor_id?: string;
|
|
552
506
|
}
|
|
553
507
|
|
|
554
|
-
export interface
|
|
508
|
+
export interface TileUniqueVisitorsParams {
|
|
555
509
|
project_id: string;
|
|
556
510
|
|
|
557
511
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -571,7 +525,7 @@ export interface TileGetTrafficByUtmParams {
|
|
|
571
525
|
visitor_id?: string;
|
|
572
526
|
}
|
|
573
527
|
|
|
574
|
-
export interface
|
|
528
|
+
export interface TileVisitorsByBrowserParams {
|
|
575
529
|
project_id: string;
|
|
576
530
|
|
|
577
531
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -591,7 +545,7 @@ export interface TileGetUniqueSessionsParams {
|
|
|
591
545
|
visitor_id?: string;
|
|
592
546
|
}
|
|
593
547
|
|
|
594
|
-
export interface
|
|
548
|
+
export interface TileVisitorsByOsParams {
|
|
595
549
|
project_id: string;
|
|
596
550
|
|
|
597
551
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -611,7 +565,7 @@ export interface TileGetUniqueVisitorsParams {
|
|
|
611
565
|
visitor_id?: string;
|
|
612
566
|
}
|
|
613
567
|
|
|
614
|
-
export interface
|
|
568
|
+
export interface TileWauParams {
|
|
615
569
|
project_id: string;
|
|
616
570
|
|
|
617
571
|
time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
@@ -633,31 +587,20 @@ export interface TileGetWeeklyActiveUsersParams {
|
|
|
633
587
|
|
|
634
588
|
export declare namespace Tiles {
|
|
635
589
|
export {
|
|
636
|
-
type
|
|
637
|
-
type
|
|
638
|
-
type
|
|
639
|
-
type
|
|
640
|
-
type
|
|
641
|
-
type
|
|
642
|
-
type
|
|
643
|
-
type
|
|
644
|
-
type
|
|
645
|
-
type
|
|
646
|
-
type
|
|
647
|
-
type
|
|
648
|
-
type
|
|
649
|
-
type
|
|
650
|
-
type
|
|
651
|
-
type TileGetMonthlyActiveUsersParams as TileGetMonthlyActiveUsersParams,
|
|
652
|
-
type TileGetPagesPerSessionParams as TileGetPagesPerSessionParams,
|
|
653
|
-
type TileGetReturnRateParams as TileGetReturnRateParams,
|
|
654
|
-
type TileGetSessionDurationParams as TileGetSessionDurationParams,
|
|
655
|
-
type TileGetTimeBetweenVisitsParams as TileGetTimeBetweenVisitsParams,
|
|
656
|
-
type TileGetTrafficByCountryParams as TileGetTrafficByCountryParams,
|
|
657
|
-
type TileGetTrafficByRefererParams as TileGetTrafficByRefererParams,
|
|
658
|
-
type TileGetTrafficByUtmParams as TileGetTrafficByUtmParams,
|
|
659
|
-
type TileGetUniqueSessionsParams as TileGetUniqueSessionsParams,
|
|
660
|
-
type TileGetUniqueVisitorsParams as TileGetUniqueVisitorsParams,
|
|
661
|
-
type TileGetWeeklyActiveUsersParams as TileGetWeeklyActiveUsersParams,
|
|
590
|
+
type TileBounceRateParams as TileBounceRateParams,
|
|
591
|
+
type TileDauParams as TileDauParams,
|
|
592
|
+
type TileMauParams as TileMauParams,
|
|
593
|
+
type TilePagesPerSessionParams as TilePagesPerSessionParams,
|
|
594
|
+
type TileReturnRateParams as TileReturnRateParams,
|
|
595
|
+
type TileSessionDurationParams as TileSessionDurationParams,
|
|
596
|
+
type TileTimeBetweenVisitsParams as TileTimeBetweenVisitsParams,
|
|
597
|
+
type TileTrafficByCountryParams as TileTrafficByCountryParams,
|
|
598
|
+
type TileTrafficByRefererParams as TileTrafficByRefererParams,
|
|
599
|
+
type TileTrafficByUtmParams as TileTrafficByUtmParams,
|
|
600
|
+
type TileUniqueSessionsParams as TileUniqueSessionsParams,
|
|
601
|
+
type TileUniqueVisitorsParams as TileUniqueVisitorsParams,
|
|
602
|
+
type TileVisitorsByBrowserParams as TileVisitorsByBrowserParams,
|
|
603
|
+
type TileVisitorsByOsParams as TileVisitorsByOsParams,
|
|
604
|
+
type TileWauParams as TileWauParams,
|
|
662
605
|
};
|
|
663
606
|
}
|
|
@@ -2,23 +2,42 @@
|
|
|
2
2
|
|
|
3
3
|
export {
|
|
4
4
|
Analytics,
|
|
5
|
+
type BounceRateResponse,
|
|
6
|
+
type CardPrecision,
|
|
5
7
|
type ChurnRateResponse,
|
|
6
8
|
type CohortAnalysisResponse,
|
|
7
9
|
type CohortData,
|
|
10
|
+
type CountryTrafficSourceData,
|
|
11
|
+
type CountryTrafficSourceResponse,
|
|
12
|
+
type DauResponse,
|
|
8
13
|
type EventFilterOptionsResponse,
|
|
9
14
|
type EventsOverTimeDataPoint,
|
|
10
15
|
type ManualIdentifyRequest,
|
|
11
16
|
type ManualIdentifyResponse,
|
|
17
|
+
type MauResponse,
|
|
18
|
+
type PagesPerSessionResponse,
|
|
12
19
|
type RecentEvent,
|
|
13
20
|
type RecentEventsResponse,
|
|
21
|
+
type RefererTrafficSourceData,
|
|
22
|
+
type RefererTrafficSourceResponse,
|
|
23
|
+
type ReturnRateResponse,
|
|
24
|
+
type SessionDurationResponse,
|
|
25
|
+
type TimeBetweenVisitsResponse,
|
|
26
|
+
type TimelineTileData,
|
|
27
|
+
type TimelineTileResponse,
|
|
14
28
|
type TopVisitor,
|
|
15
29
|
type TopVisitorsResponse,
|
|
30
|
+
type UniqueSessionsResponse,
|
|
31
|
+
type UniqueVisitorsResponse,
|
|
32
|
+
type UtmTrafficSourceResponse,
|
|
16
33
|
type VisitorDataPoint,
|
|
17
34
|
type VisitorEvent,
|
|
18
35
|
type VisitorProfileResponse,
|
|
36
|
+
type VisitorsByBrowserResponse,
|
|
19
37
|
type VisitorsByDeviceResponse,
|
|
20
|
-
type
|
|
21
|
-
type
|
|
38
|
+
type VisitorsByOsResponse,
|
|
39
|
+
type WauResponse,
|
|
40
|
+
type AnalyticsTimelineParams,
|
|
22
41
|
} from './analytics/index';
|
|
23
42
|
export { Auth, type LoginRequest, type LoginResponse, type AuthLoginParams } from './auth';
|
|
24
43
|
export {
|