zorihq 0.14.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.
Files changed (93) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/client.d.mts +4 -4
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +4 -4
  5. package/client.d.ts.map +1 -1
  6. package/client.js +15 -9
  7. package/client.js.map +1 -1
  8. package/client.mjs +15 -9
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/v1/analytics/analytics.d.mts +109 -71
  12. package/resources/v1/analytics/analytics.d.mts.map +1 -1
  13. package/resources/v1/analytics/analytics.d.ts +109 -71
  14. package/resources/v1/analytics/analytics.d.ts.map +1 -1
  15. package/resources/v1/analytics/analytics.js +10 -14
  16. package/resources/v1/analytics/analytics.js.map +1 -1
  17. package/resources/v1/analytics/analytics.mjs +11 -15
  18. package/resources/v1/analytics/analytics.mjs.map +1 -1
  19. package/resources/v1/analytics/index.d.mts +4 -5
  20. package/resources/v1/analytics/index.d.mts.map +1 -1
  21. package/resources/v1/analytics/index.d.ts +4 -5
  22. package/resources/v1/analytics/index.d.ts.map +1 -1
  23. package/resources/v1/analytics/index.js +3 -5
  24. package/resources/v1/analytics/index.js.map +1 -1
  25. package/resources/v1/analytics/index.mjs +2 -3
  26. package/resources/v1/analytics/index.mjs.map +1 -1
  27. package/resources/v1/analytics/retention.d.mts +1 -25
  28. package/resources/v1/analytics/retention.d.mts.map +1 -1
  29. package/resources/v1/analytics/retention.d.ts +1 -25
  30. package/resources/v1/analytics/retention.d.ts.map +1 -1
  31. package/resources/v1/analytics/retention.js +0 -15
  32. package/resources/v1/analytics/retention.js.map +1 -1
  33. package/resources/v1/analytics/retention.mjs +0 -15
  34. package/resources/v1/analytics/retention.mjs.map +1 -1
  35. package/resources/v1/analytics/tiles.d.mts +372 -0
  36. package/resources/v1/analytics/tiles.d.mts.map +1 -0
  37. package/resources/v1/analytics/tiles.d.ts +372 -0
  38. package/resources/v1/analytics/tiles.d.ts.map +1 -0
  39. package/resources/v1/analytics/tiles.js +236 -0
  40. package/resources/v1/analytics/tiles.js.map +1 -0
  41. package/resources/v1/analytics/tiles.mjs +232 -0
  42. package/resources/v1/analytics/tiles.mjs.map +1 -0
  43. package/resources/v1/analytics/visitors.d.mts +1 -74
  44. package/resources/v1/analytics/visitors.d.mts.map +1 -1
  45. package/resources/v1/analytics/visitors.d.ts +1 -74
  46. package/resources/v1/analytics/visitors.d.ts.map +1 -1
  47. package/resources/v1/analytics/visitors.js +0 -46
  48. package/resources/v1/analytics/visitors.js.map +1 -1
  49. package/resources/v1/analytics/visitors.mjs +0 -46
  50. package/resources/v1/analytics/visitors.mjs.map +1 -1
  51. package/resources/v1/index.d.mts +1 -1
  52. package/resources/v1/index.d.mts.map +1 -1
  53. package/resources/v1/index.d.ts +1 -1
  54. package/resources/v1/index.d.ts.map +1 -1
  55. package/resources/v1/index.js.map +1 -1
  56. package/resources/v1/index.mjs.map +1 -1
  57. package/resources/v1/v1.d.mts +2 -2
  58. package/resources/v1/v1.d.mts.map +1 -1
  59. package/resources/v1/v1.d.ts +2 -2
  60. package/resources/v1/v1.d.ts.map +1 -1
  61. package/resources/v1/v1.js.map +1 -1
  62. package/resources/v1/v1.mjs.map +1 -1
  63. package/src/client.ts +20 -14
  64. package/src/resources/v1/analytics/analytics.ts +187 -109
  65. package/src/resources/v1/analytics/index.ts +37 -21
  66. package/src/resources/v1/analytics/retention.ts +0 -40
  67. package/src/resources/v1/analytics/tiles.ts +606 -0
  68. package/src/resources/v1/analytics/visitors.ts +0 -121
  69. package/src/resources/v1/index.ts +19 -11
  70. package/src/resources/v1/v1.ts +38 -22
  71. package/src/version.ts +1 -1
  72. package/version.d.mts +1 -1
  73. package/version.d.ts +1 -1
  74. package/version.js +1 -1
  75. package/version.mjs +1 -1
  76. package/resources/v1/analytics/sessions.d.mts +0 -58
  77. package/resources/v1/analytics/sessions.d.mts.map +0 -1
  78. package/resources/v1/analytics/sessions.d.ts +0 -58
  79. package/resources/v1/analytics/sessions.d.ts.map +0 -1
  80. package/resources/v1/analytics/sessions.js +0 -39
  81. package/resources/v1/analytics/sessions.js.map +0 -1
  82. package/resources/v1/analytics/sessions.mjs +0 -35
  83. package/resources/v1/analytics/sessions.mjs.map +0 -1
  84. package/resources/v1/analytics/users.d.mts +0 -34
  85. package/resources/v1/analytics/users.d.mts.map +0 -1
  86. package/resources/v1/analytics/users.d.ts +0 -34
  87. package/resources/v1/analytics/users.d.ts.map +0 -1
  88. package/resources/v1/analytics/users.js +0 -24
  89. package/resources/v1/analytics/users.js.map +0 -1
  90. package/resources/v1/analytics/users.mjs +0 -20
  91. package/resources/v1/analytics/users.mjs.map +0 -1
  92. package/src/resources/v1/analytics/sessions.ts +0 -93
  93. package/src/resources/v1/analytics/users.ts +0 -48
@@ -6,25 +6,6 @@ import { APIPromise } from '../../../core/api-promise';
6
6
  import { RequestOptions } from '../../../internal/request-options';
7
7
 
8
8
  export class Visitors extends APIResource {
9
- /**
10
- * Get unique visitor counts grouped by country code
11
- *
12
- * @example
13
- * ```ts
14
- * const visitorsByCountryResponse =
15
- * await client.v1.analytics.visitors.byCountry({
16
- * project_id: 'project_id',
17
- * time_range: 'last_hour',
18
- * });
19
- * ```
20
- */
21
- byCountry(
22
- query: VisitorByCountryParams,
23
- options?: RequestOptions,
24
- ): APIPromise<AnalyticsAPI.VisitorsByCountryResponse> {
25
- return this._client.get('/api/v1/analytics/visitors/country', { query, ...options });
26
- }
27
-
28
9
  /**
29
10
  * Get visitor counts grouped by device type (mobile, desktop, tablet) over a
30
11
  * specified time range
@@ -45,25 +26,6 @@ export class Visitors extends APIResource {
45
26
  return this._client.get('/api/v1/analytics/visitors/device', { query, ...options });
46
27
  }
47
28
 
48
- /**
49
- * Get unique visitor counts grouped by referrer domain (traffic source)
50
- *
51
- * @example
52
- * ```ts
53
- * const visitorsByOriginResponse =
54
- * await client.v1.analytics.visitors.byOrigin({
55
- * project_id: 'project_id',
56
- * time_range: 'last_hour',
57
- * });
58
- * ```
59
- */
60
- byOrigin(
61
- query: VisitorByOriginParams,
62
- options?: RequestOptions,
63
- ): APIPromise<AnalyticsAPI.VisitorsByOriginResponse> {
64
- return this._client.get('/api/v1/analytics/visitors/origin', { query, ...options });
65
- }
66
-
67
29
  /**
68
30
  * Manually identify a visitor by updating their profile information from the
69
31
  * dashboard
@@ -103,26 +65,6 @@ export class Visitors extends APIResource {
103
65
  return this._client.get('/api/v1/analytics/visitors/profile', { query, ...options });
104
66
  }
105
67
 
106
- /**
107
- * Get unique visitor counts over time, split by mobile and desktop devices for
108
- * chart visualization
109
- *
110
- * @example
111
- * ```ts
112
- * const uniqueVisitorsTimelineResponse =
113
- * await client.v1.analytics.visitors.timeline({
114
- * project_id: 'project_id',
115
- * time_range: 'last_hour',
116
- * });
117
- * ```
118
- */
119
- timeline(
120
- query: VisitorTimelineParams,
121
- options?: RequestOptions,
122
- ): APIPromise<AnalyticsAPI.UniqueVisitorsTimelineResponse> {
123
- return this._client.get('/api/v1/analytics/visitors/timeline', { query, ...options });
124
- }
125
-
126
68
  /**
127
69
  * Get top visitors grouped by identified information (user_id, external_id, email)
128
70
  * with payment metrics including revenue, distinct payments, and time to first
@@ -142,26 +84,6 @@ export class Visitors extends APIResource {
142
84
  }
143
85
  }
144
86
 
145
- export interface VisitorByCountryParams {
146
- project_id: string;
147
-
148
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
149
-
150
- customer_id?: string;
151
-
152
- limit?: number;
153
-
154
- offset?: number;
155
-
156
- referrer?: string;
157
-
158
- utmtag?: string;
159
-
160
- utmtagValue?: string;
161
-
162
- visitor_id?: string;
163
- }
164
-
165
87
  export interface VisitorByDeviceParams {
166
88
  project_id: string;
167
89
 
@@ -182,26 +104,6 @@ export interface VisitorByDeviceParams {
182
104
  visitor_id?: string;
183
105
  }
184
106
 
185
- export interface VisitorByOriginParams {
186
- project_id: string;
187
-
188
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
189
-
190
- customer_id?: string;
191
-
192
- limit?: number;
193
-
194
- offset?: number;
195
-
196
- referrer?: string;
197
-
198
- utmtag?: string;
199
-
200
- utmtagValue?: string;
201
-
202
- visitor_id?: string;
203
- }
204
-
205
107
  export interface VisitorIdentifyParams {
206
108
  project_id: string;
207
109
 
@@ -228,26 +130,6 @@ export interface VisitorProfileParams {
228
130
  visitor_id?: string;
229
131
  }
230
132
 
231
- export interface VisitorTimelineParams {
232
- project_id: string;
233
-
234
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
235
-
236
- customer_id?: string;
237
-
238
- limit?: number;
239
-
240
- offset?: number;
241
-
242
- referrer?: string;
243
-
244
- utmtag?: string;
245
-
246
- utmtagValue?: string;
247
-
248
- visitor_id?: string;
249
- }
250
-
251
133
  export interface VisitorTopParams {
252
134
  project_id: string;
253
135
 
@@ -270,12 +152,9 @@ export interface VisitorTopParams {
270
152
 
271
153
  export declare namespace Visitors {
272
154
  export {
273
- type VisitorByCountryParams as VisitorByCountryParams,
274
155
  type VisitorByDeviceParams as VisitorByDeviceParams,
275
- type VisitorByOriginParams as VisitorByOriginParams,
276
156
  type VisitorIdentifyParams as VisitorIdentifyParams,
277
157
  type VisitorProfileParams as VisitorProfileParams,
278
- type VisitorTimelineParams as VisitorTimelineParams,
279
158
  type VisitorTopParams as VisitorTopParams,
280
159
  };
281
160
  }
@@ -2,34 +2,42 @@
2
2
 
3
3
  export {
4
4
  Analytics,
5
- type ActiveUsersResponse,
6
- type BounceRateByPageMetric,
7
5
  type BounceRateResponse,
6
+ type CardPrecision,
8
7
  type ChurnRateResponse,
9
8
  type CohortAnalysisResponse,
10
9
  type CohortData,
11
- type CountryDataPoint,
12
- type DashboardMetricsResponse,
10
+ type CountryTrafficSourceData,
11
+ type CountryTrafficSourceResponse,
12
+ type DauResponse,
13
13
  type EventFilterOptionsResponse,
14
14
  type EventsOverTimeDataPoint,
15
15
  type ManualIdentifyRequest,
16
16
  type ManualIdentifyResponse,
17
- type OriginDataPoint,
17
+ type MauResponse,
18
+ type PagesPerSessionResponse,
18
19
  type RecentEvent,
19
20
  type RecentEventsResponse,
21
+ type RefererTrafficSourceData,
22
+ type RefererTrafficSourceResponse,
20
23
  type ReturnRateResponse,
21
- type SessionMetricsResponse,
24
+ type SessionDurationResponse,
25
+ type TimeBetweenVisitsResponse,
26
+ type TimelineTileData,
27
+ type TimelineTileResponse,
22
28
  type TopVisitor,
23
29
  type TopVisitorsResponse,
24
- type UniqueVisitorsDataPoint,
25
- type UniqueVisitorsTimelineResponse,
30
+ type UniqueSessionsResponse,
31
+ type UniqueVisitorsResponse,
32
+ type UtmTrafficSourceResponse,
26
33
  type VisitorDataPoint,
27
34
  type VisitorEvent,
28
35
  type VisitorProfileResponse,
29
- type VisitorsByCountryResponse,
36
+ type VisitorsByBrowserResponse,
30
37
  type VisitorsByDeviceResponse,
31
- type VisitorsByOriginResponse,
32
- type AnalyticsDashboardParams,
38
+ type VisitorsByOsResponse,
39
+ type WauResponse,
40
+ type AnalyticsTimelineParams,
33
41
  } from './analytics/index';
34
42
  export { Auth, type LoginRequest, type LoginResponse, type AuthLoginParams } from './auth';
35
43
  export {
@@ -17,35 +17,43 @@ import {
17
17
  } from './projects';
18
18
  import * as AnalyticsAPI from './analytics/analytics';
19
19
  import {
20
- ActiveUsersResponse,
21
20
  Analytics,
22
- AnalyticsDashboardParams,
23
- BounceRateByPageMetric,
21
+ AnalyticsTimelineParams,
24
22
  BounceRateResponse,
23
+ CardPrecision,
25
24
  ChurnRateResponse,
26
25
  CohortAnalysisResponse,
27
26
  CohortData,
28
- CountryDataPoint,
29
- DashboardMetricsResponse,
27
+ CountryTrafficSourceData,
28
+ CountryTrafficSourceResponse,
29
+ DauResponse,
30
30
  EventFilterOptionsResponse,
31
31
  EventsOverTimeDataPoint,
32
32
  ManualIdentifyRequest,
33
33
  ManualIdentifyResponse,
34
- OriginDataPoint,
34
+ MauResponse,
35
+ PagesPerSessionResponse,
35
36
  RecentEvent,
36
37
  RecentEventsResponse,
38
+ RefererTrafficSourceData,
39
+ RefererTrafficSourceResponse,
37
40
  ReturnRateResponse,
38
- SessionMetricsResponse,
41
+ SessionDurationResponse,
42
+ TimeBetweenVisitsResponse,
43
+ TimelineTileData,
44
+ TimelineTileResponse,
39
45
  TopVisitor,
40
46
  TopVisitorsResponse,
41
- UniqueVisitorsDataPoint,
42
- UniqueVisitorsTimelineResponse,
47
+ UniqueSessionsResponse,
48
+ UniqueVisitorsResponse,
49
+ UtmTrafficSourceResponse,
43
50
  VisitorDataPoint,
44
51
  VisitorEvent,
45
52
  VisitorProfileResponse,
46
- VisitorsByCountryResponse,
53
+ VisitorsByBrowserResponse,
47
54
  VisitorsByDeviceResponse,
48
- VisitorsByOriginResponse,
55
+ VisitorsByOsResponse,
56
+ WauResponse,
49
57
  } from './analytics/analytics';
50
58
  import * as PaymentProvidersAPI from './payment-providers/payment-providers';
51
59
  import {
@@ -108,34 +116,42 @@ export declare namespace V1 {
108
116
 
109
117
  export {
110
118
  Analytics as Analytics,
111
- type ActiveUsersResponse as ActiveUsersResponse,
112
- type BounceRateByPageMetric as BounceRateByPageMetric,
113
119
  type BounceRateResponse as BounceRateResponse,
120
+ type CardPrecision as CardPrecision,
114
121
  type ChurnRateResponse as ChurnRateResponse,
115
122
  type CohortAnalysisResponse as CohortAnalysisResponse,
116
123
  type CohortData as CohortData,
117
- type CountryDataPoint as CountryDataPoint,
118
- type DashboardMetricsResponse as DashboardMetricsResponse,
124
+ type CountryTrafficSourceData as CountryTrafficSourceData,
125
+ type CountryTrafficSourceResponse as CountryTrafficSourceResponse,
126
+ type DauResponse as DauResponse,
119
127
  type EventFilterOptionsResponse as EventFilterOptionsResponse,
120
128
  type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
121
129
  type ManualIdentifyRequest as ManualIdentifyRequest,
122
130
  type ManualIdentifyResponse as ManualIdentifyResponse,
123
- type OriginDataPoint as OriginDataPoint,
131
+ type MauResponse as MauResponse,
132
+ type PagesPerSessionResponse as PagesPerSessionResponse,
124
133
  type RecentEvent as RecentEvent,
125
134
  type RecentEventsResponse as RecentEventsResponse,
135
+ type RefererTrafficSourceData as RefererTrafficSourceData,
136
+ type RefererTrafficSourceResponse as RefererTrafficSourceResponse,
126
137
  type ReturnRateResponse as ReturnRateResponse,
127
- type SessionMetricsResponse as SessionMetricsResponse,
138
+ type SessionDurationResponse as SessionDurationResponse,
139
+ type TimeBetweenVisitsResponse as TimeBetweenVisitsResponse,
140
+ type TimelineTileData as TimelineTileData,
141
+ type TimelineTileResponse as TimelineTileResponse,
128
142
  type TopVisitor as TopVisitor,
129
143
  type TopVisitorsResponse as TopVisitorsResponse,
130
- type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint,
131
- type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse,
144
+ type UniqueSessionsResponse as UniqueSessionsResponse,
145
+ type UniqueVisitorsResponse as UniqueVisitorsResponse,
146
+ type UtmTrafficSourceResponse as UtmTrafficSourceResponse,
132
147
  type VisitorDataPoint as VisitorDataPoint,
133
148
  type VisitorEvent as VisitorEvent,
134
149
  type VisitorProfileResponse as VisitorProfileResponse,
135
- type VisitorsByCountryResponse as VisitorsByCountryResponse,
150
+ type VisitorsByBrowserResponse as VisitorsByBrowserResponse,
136
151
  type VisitorsByDeviceResponse as VisitorsByDeviceResponse,
137
- type VisitorsByOriginResponse as VisitorsByOriginResponse,
138
- type AnalyticsDashboardParams as AnalyticsDashboardParams,
152
+ type VisitorsByOsResponse as VisitorsByOsResponse,
153
+ type WauResponse as WauResponse,
154
+ type AnalyticsTimelineParams as AnalyticsTimelineParams,
139
155
  };
140
156
 
141
157
  export {
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '0.14.0'; // x-release-please-version
1
+ export const VERSION = '0.17.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.14.0";
1
+ export declare const VERSION = "0.17.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "0.14.0";
1
+ export declare const VERSION = "0.17.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '0.14.0'; // x-release-please-version
4
+ exports.VERSION = '0.17.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '0.14.0'; // x-release-please-version
1
+ export const VERSION = '0.17.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,58 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as AnalyticsAPI from "./analytics.mjs";
3
- import { APIPromise } from "../../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Sessions extends APIResource {
6
- /**
7
- * Get bounce rate metrics including overall bounce rate and per-page breakdown
8
- *
9
- * @example
10
- * ```ts
11
- * const bounceRateResponse =
12
- * await client.v1.analytics.sessions.bounceRate({
13
- * project_id: 'project_id',
14
- * time_range: 'last_hour',
15
- * });
16
- * ```
17
- */
18
- bounceRate(query: SessionBounceRateParams, options?: RequestOptions): APIPromise<AnalyticsAPI.BounceRateResponse>;
19
- /**
20
- * Get session metrics including average duration and pages per session
21
- *
22
- * @example
23
- * ```ts
24
- * const sessionMetricsResponse =
25
- * await client.v1.analytics.sessions.metrics({
26
- * project_id: 'project_id',
27
- * time_range: 'last_hour',
28
- * });
29
- * ```
30
- */
31
- metrics(query: SessionMetricsParams, options?: RequestOptions): APIPromise<AnalyticsAPI.SessionMetricsResponse>;
32
- }
33
- export interface SessionBounceRateParams {
34
- project_id: string;
35
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
36
- customer_id?: string;
37
- limit?: number;
38
- offset?: number;
39
- referrer?: string;
40
- utmtag?: string;
41
- utmtagValue?: string;
42
- visitor_id?: string;
43
- }
44
- export interface SessionMetricsParams {
45
- project_id: string;
46
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
47
- customer_id?: string;
48
- limit?: number;
49
- offset?: number;
50
- referrer?: string;
51
- utmtag?: string;
52
- utmtagValue?: string;
53
- visitor_id?: string;
54
- }
55
- export declare namespace Sessions {
56
- export { type SessionBounceRateParams as SessionBounceRateParams, type SessionMetricsParams as SessionMetricsParams, };
57
- }
58
- //# sourceMappingURL=sessions.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC;IAI9C;;;;;;;;;;;OAWG;IACH,OAAO,CACL,KAAK,EAAE,oBAAoB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,sBAAsB,CAAC;CAGnD;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAElG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAElG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,58 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as AnalyticsAPI from "./analytics.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Sessions extends APIResource {
6
- /**
7
- * Get bounce rate metrics including overall bounce rate and per-page breakdown
8
- *
9
- * @example
10
- * ```ts
11
- * const bounceRateResponse =
12
- * await client.v1.analytics.sessions.bounceRate({
13
- * project_id: 'project_id',
14
- * time_range: 'last_hour',
15
- * });
16
- * ```
17
- */
18
- bounceRate(query: SessionBounceRateParams, options?: RequestOptions): APIPromise<AnalyticsAPI.BounceRateResponse>;
19
- /**
20
- * Get session metrics including average duration and pages per session
21
- *
22
- * @example
23
- * ```ts
24
- * const sessionMetricsResponse =
25
- * await client.v1.analytics.sessions.metrics({
26
- * project_id: 'project_id',
27
- * time_range: 'last_hour',
28
- * });
29
- * ```
30
- */
31
- metrics(query: SessionMetricsParams, options?: RequestOptions): APIPromise<AnalyticsAPI.SessionMetricsResponse>;
32
- }
33
- export interface SessionBounceRateParams {
34
- project_id: string;
35
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
36
- customer_id?: string;
37
- limit?: number;
38
- offset?: number;
39
- referrer?: string;
40
- utmtag?: string;
41
- utmtagValue?: string;
42
- visitor_id?: string;
43
- }
44
- export interface SessionMetricsParams {
45
- project_id: string;
46
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
47
- customer_id?: string;
48
- limit?: number;
49
- offset?: number;
50
- referrer?: string;
51
- utmtag?: string;
52
- utmtagValue?: string;
53
- visitor_id?: string;
54
- }
55
- export declare namespace Sessions {
56
- export { type SessionBounceRateParams as SessionBounceRateParams, type SessionMetricsParams as SessionMetricsParams, };
57
- }
58
- //# sourceMappingURL=sessions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/sessions.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAAK,EAAE,uBAAuB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,kBAAkB,CAAC;IAI9C;;;;;;;;;;;OAWG;IACH,OAAO,CACL,KAAK,EAAE,oBAAoB,EAC3B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,sBAAsB,CAAC;CAGnD;AAED,MAAM,WAAW,uBAAuB;IACtC,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAElG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAElG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;CACH"}
@@ -1,39 +0,0 @@
1
- "use strict";
2
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Sessions = void 0;
5
- const resource_1 = require("../../../core/resource.js");
6
- class Sessions extends resource_1.APIResource {
7
- /**
8
- * Get bounce rate metrics including overall bounce rate and per-page breakdown
9
- *
10
- * @example
11
- * ```ts
12
- * const bounceRateResponse =
13
- * await client.v1.analytics.sessions.bounceRate({
14
- * project_id: 'project_id',
15
- * time_range: 'last_hour',
16
- * });
17
- * ```
18
- */
19
- bounceRate(query, options) {
20
- return this._client.get('/api/v1/analytics/sessions/bounce-rate', { query, ...options });
21
- }
22
- /**
23
- * Get session metrics including average duration and pages per session
24
- *
25
- * @example
26
- * ```ts
27
- * const sessionMetricsResponse =
28
- * await client.v1.analytics.sessions.metrics({
29
- * project_id: 'project_id',
30
- * time_range: 'last_hour',
31
- * });
32
- * ```
33
- */
34
- metrics(query, options) {
35
- return this._client.get('/api/v1/analytics/sessions/metrics', { query, ...options });
36
- }
37
- }
38
- exports.Sessions = Sessions;
39
- //# sourceMappingURL=sessions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CACL,KAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF;AAtCD,4BAsCC"}
@@ -1,35 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../../../core/resource.mjs";
3
- export class Sessions extends APIResource {
4
- /**
5
- * Get bounce rate metrics including overall bounce rate and per-page breakdown
6
- *
7
- * @example
8
- * ```ts
9
- * const bounceRateResponse =
10
- * await client.v1.analytics.sessions.bounceRate({
11
- * project_id: 'project_id',
12
- * time_range: 'last_hour',
13
- * });
14
- * ```
15
- */
16
- bounceRate(query, options) {
17
- return this._client.get('/api/v1/analytics/sessions/bounce-rate', { query, ...options });
18
- }
19
- /**
20
- * Get session metrics including average duration and pages per session
21
- *
22
- * @example
23
- * ```ts
24
- * const sessionMetricsResponse =
25
- * await client.v1.analytics.sessions.metrics({
26
- * project_id: 'project_id',
27
- * time_range: 'last_hour',
28
- * });
29
- * ```
30
- */
31
- metrics(query, options) {
32
- return this._client.get('/api/v1/analytics/sessions/metrics', { query, ...options });
33
- }
34
- }
35
- //# sourceMappingURL=sessions.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,UAAU,CACR,KAA8B,EAC9B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,wCAAwC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,OAAO,CACL,KAA2B,EAC3B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;CACF"}
@@ -1,34 +0,0 @@
1
- import { APIResource } from "../../../core/resource.mjs";
2
- import * as AnalyticsAPI from "./analytics.mjs";
3
- import { APIPromise } from "../../../core/api-promise.mjs";
4
- import { RequestOptions } from "../../../internal/request-options.mjs";
5
- export declare class Users extends APIResource {
6
- /**
7
- * Get daily, weekly, and monthly active user counts
8
- *
9
- * @example
10
- * ```ts
11
- * const activeUsersResponse =
12
- * await client.v1.analytics.users.active({
13
- * project_id: 'project_id',
14
- * time_range: 'last_hour',
15
- * });
16
- * ```
17
- */
18
- active(query: UserActiveParams, options?: RequestOptions): APIPromise<AnalyticsAPI.ActiveUsersResponse>;
19
- }
20
- export interface UserActiveParams {
21
- project_id: string;
22
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
23
- customer_id?: string;
24
- limit?: number;
25
- offset?: number;
26
- referrer?: string;
27
- utmtag?: string;
28
- utmtagValue?: string;
29
- visitor_id?: string;
30
- }
31
- export declare namespace Users {
32
- export { type UserActiveParams as UserActiveParams };
33
- }
34
- //# sourceMappingURL=users.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,mBAAmB,CAAC;CAGxG;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAElG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACtD"}
@@ -1,34 +0,0 @@
1
- import { APIResource } from "../../../core/resource.js";
2
- import * as AnalyticsAPI from "./analytics.js";
3
- import { APIPromise } from "../../../core/api-promise.js";
4
- import { RequestOptions } from "../../../internal/request-options.js";
5
- export declare class Users extends APIResource {
6
- /**
7
- * Get daily, weekly, and monthly active user counts
8
- *
9
- * @example
10
- * ```ts
11
- * const activeUsersResponse =
12
- * await client.v1.analytics.users.active({
13
- * project_id: 'project_id',
14
- * time_range: 'last_hour',
15
- * });
16
- * ```
17
- */
18
- active(query: UserActiveParams, options?: RequestOptions): APIPromise<AnalyticsAPI.ActiveUsersResponse>;
19
- }
20
- export interface UserActiveParams {
21
- project_id: string;
22
- time_range: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
23
- customer_id?: string;
24
- limit?: number;
25
- offset?: number;
26
- referrer?: string;
27
- utmtag?: string;
28
- utmtagValue?: string;
29
- visitor_id?: string;
30
- }
31
- export declare namespace Users {
32
- export { type UserActiveParams as UserActiveParams };
33
- }
34
- //# sourceMappingURL=users.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,KAAM,SAAQ,WAAW;IACpC;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAK,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,mBAAmB,CAAC;CAGxG;AAED,MAAM,WAAW,gBAAgB;IAC/B,UAAU,EAAE,MAAM,CAAC;IAEnB,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAElG,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;CACtD"}