zorihq 0.7.0 → 0.9.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/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +22 -3
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +22 -3
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/analytics/events.d.mts +49 -2
- package/resources/v1/analytics/events.d.mts.map +1 -1
- package/resources/v1/analytics/events.d.ts +49 -2
- package/resources/v1/analytics/events.d.ts.map +1 -1
- package/resources/v1/analytics/events.js +16 -1
- package/resources/v1/analytics/events.js.map +1 -1
- package/resources/v1/analytics/events.mjs +16 -1
- package/resources/v1/analytics/events.mjs.map +1 -1
- package/resources/v1/analytics/index.d.mts +2 -2
- package/resources/v1/analytics/index.d.mts.map +1 -1
- package/resources/v1/analytics/index.d.ts +2 -2
- package/resources/v1/analytics/index.d.ts.map +1 -1
- package/resources/v1/analytics/index.js.map +1 -1
- package/resources/v1/analytics/index.mjs.map +1 -1
- package/resources/v1/index.d.mts +2 -1
- package/resources/v1/index.d.mts.map +1 -1
- package/resources/v1/index.d.ts +2 -1
- package/resources/v1/index.d.ts.map +1 -1
- package/resources/v1/index.js +3 -1
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -0
- package/resources/v1/index.mjs.map +1 -1
- package/resources/v1/revenue/attribution.d.mts +62 -0
- package/resources/v1/revenue/attribution.d.mts.map +1 -0
- package/resources/v1/revenue/attribution.d.ts +62 -0
- package/resources/v1/revenue/attribution.d.ts.map +1 -0
- package/resources/v1/revenue/attribution.js +41 -0
- package/resources/v1/revenue/attribution.js.map +1 -0
- package/resources/v1/revenue/attribution.mjs +37 -0
- package/resources/v1/revenue/attribution.mjs.map +1 -0
- package/resources/v1/revenue/conversion.d.mts +34 -0
- package/resources/v1/revenue/conversion.d.mts.map +1 -0
- package/resources/v1/revenue/conversion.d.ts +34 -0
- package/resources/v1/revenue/conversion.d.ts.map +1 -0
- package/resources/v1/revenue/conversion.js +25 -0
- package/resources/v1/revenue/conversion.js.map +1 -0
- package/resources/v1/revenue/conversion.mjs +21 -0
- package/resources/v1/revenue/conversion.mjs.map +1 -0
- package/resources/v1/revenue/customers.d.mts +61 -0
- package/resources/v1/revenue/customers.d.mts.map +1 -0
- package/resources/v1/revenue/customers.d.ts +61 -0
- package/resources/v1/revenue/customers.d.ts.map +1 -0
- package/resources/v1/revenue/customers.js +40 -0
- package/resources/v1/revenue/customers.js.map +1 -0
- package/resources/v1/revenue/customers.mjs +36 -0
- package/resources/v1/revenue/customers.mjs.map +1 -0
- package/resources/v1/revenue/index.d.mts +5 -0
- package/resources/v1/revenue/index.d.mts.map +1 -0
- package/resources/v1/revenue/index.d.ts +5 -0
- package/resources/v1/revenue/index.d.ts.map +1 -0
- package/resources/v1/revenue/index.js +13 -0
- package/resources/v1/revenue/index.js.map +1 -0
- package/resources/v1/revenue/index.mjs +6 -0
- package/resources/v1/revenue/index.mjs.map +1 -0
- package/resources/v1/revenue/revenue.d.mts +255 -0
- package/resources/v1/revenue/revenue.d.mts.map +1 -0
- package/resources/v1/revenue/revenue.d.ts +255 -0
- package/resources/v1/revenue/revenue.d.ts.map +1 -0
- package/resources/v1/revenue/revenue.js +53 -0
- package/resources/v1/revenue/revenue.js.map +1 -0
- package/resources/v1/revenue/revenue.mjs +48 -0
- package/resources/v1/revenue/revenue.mjs.map +1 -0
- package/resources/v1/revenue.d.mts +2 -0
- package/resources/v1/revenue.d.mts.map +1 -0
- package/resources/v1/revenue.d.ts +2 -0
- package/resources/v1/revenue.d.ts.map +1 -0
- package/resources/v1/revenue.js +6 -0
- package/resources/v1/revenue.js.map +1 -0
- package/resources/v1/revenue.mjs +3 -0
- package/resources/v1/revenue.mjs.map +1 -0
- package/resources/v1/v1.d.mts +6 -2
- package/resources/v1/v1.d.mts.map +1 -1
- package/resources/v1/v1.d.ts +6 -2
- package/resources/v1/v1.d.ts.map +1 -1
- package/resources/v1/v1.js +4 -0
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +4 -0
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/analytics/analytics.ts +34 -2
- package/src/resources/v1/analytics/events.ts +66 -2
- package/src/resources/v1/analytics/index.ts +2 -1
- package/src/resources/v1/index.ts +19 -0
- package/src/resources/v1/revenue/attribution.ts +84 -0
- package/src/resources/v1/revenue/conversion.ts +44 -0
- package/src/resources/v1/revenue/customers.ts +77 -0
- package/src/resources/v1/revenue/index.ts +23 -0
- package/src/resources/v1/revenue/revenue.ts +385 -0
- package/src/resources/v1/revenue.ts +3 -0
- package/src/resources/v1/v1.ts +42 -0
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.9.0 (2025-10-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.8.0...v0.9.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.8.0...v0.9.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** added revenue endpoints ([6101116](https://github.com/ZoriHQ/typescript-api-sdk/commit/6101116fc0331dd6d0de8710eec92051d025d93b))
|
|
10
|
+
|
|
11
|
+
## 0.8.0 (2025-10-24)
|
|
12
|
+
|
|
13
|
+
Full Changelog: [v0.7.0...v0.8.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.7.0...v0.8.0)
|
|
14
|
+
|
|
15
|
+
### Features
|
|
16
|
+
|
|
17
|
+
* **api:** more events filtering ([dc35bf8](https://github.com/ZoriHQ/typescript-api-sdk/commit/dc35bf85c1453bbc67131683f209c1dce4adbe4b))
|
|
18
|
+
|
|
3
19
|
## 0.7.0 (2025-10-21)
|
|
4
20
|
|
|
5
21
|
Full Changelog: [v0.6.0...v0.7.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.6.0...v0.7.0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.mjs";
|
|
2
2
|
import * as EventsAPI from "./events.mjs";
|
|
3
|
-
import { EventRecentParams, Events } from "./events.mjs";
|
|
3
|
+
import { EventFilterOptionsParams, EventRecentParams, Events } from "./events.mjs";
|
|
4
4
|
import * as RetentionAPI from "./retention.mjs";
|
|
5
5
|
import { Retention, RetentionChurnRateParams, RetentionCohortsParams, RetentionReturnRateParams } from "./retention.mjs";
|
|
6
6
|
import * as SessionsAPI from "./sessions.mjs";
|
|
@@ -92,9 +92,23 @@ export interface DashboardMetricsResponse {
|
|
|
92
92
|
*/
|
|
93
93
|
total_events?: number;
|
|
94
94
|
total_sessions_in_period?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Total unique sessions in period
|
|
97
|
+
*/
|
|
98
|
+
unique_sessions?: number;
|
|
95
99
|
unique_visitors?: number;
|
|
96
100
|
wau?: number;
|
|
97
101
|
}
|
|
102
|
+
export interface EventFilterOptionsResponse {
|
|
103
|
+
/**
|
|
104
|
+
* Unique page paths
|
|
105
|
+
*/
|
|
106
|
+
pages?: Array<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Unique referrer domains
|
|
109
|
+
*/
|
|
110
|
+
traffic_origins?: Array<string>;
|
|
111
|
+
}
|
|
98
112
|
export interface EventsOverTimeDataPoint {
|
|
99
113
|
event_count?: number;
|
|
100
114
|
timestamp?: string;
|
|
@@ -129,14 +143,19 @@ export interface RecentEvent {
|
|
|
129
143
|
external_id?: string;
|
|
130
144
|
location_city?: string;
|
|
131
145
|
location_country_iso?: string;
|
|
146
|
+
location_latitude?: number;
|
|
147
|
+
location_longitude?: number;
|
|
132
148
|
page_path?: string;
|
|
133
149
|
page_url?: string;
|
|
150
|
+
referrer_domain?: string;
|
|
134
151
|
referrer_url?: string;
|
|
135
152
|
user_id?: string;
|
|
136
153
|
visitor_id?: string;
|
|
137
154
|
}
|
|
138
155
|
export interface RecentEventsResponse {
|
|
139
156
|
events?: Array<RecentEvent>;
|
|
157
|
+
limit?: number;
|
|
158
|
+
offset?: number;
|
|
140
159
|
total?: number;
|
|
141
160
|
}
|
|
142
161
|
export interface ReturnRateResponse {
|
|
@@ -232,9 +251,9 @@ export interface AnalyticsDashboardParams {
|
|
|
232
251
|
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
233
252
|
}
|
|
234
253
|
export declare namespace Analytics {
|
|
235
|
-
export { type ActiveUsersResponse as ActiveUsersResponse, type BounceRateByPageMetric as BounceRateByPageMetric, type BounceRateResponse as BounceRateResponse, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryDataPoint as CountryDataPoint, type DashboardMetricsResponse as DashboardMetricsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type ReturnRateResponse as ReturnRateResponse, type SessionMetricsResponse as SessionMetricsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, type AnalyticsDashboardParams as AnalyticsDashboardParams, };
|
|
254
|
+
export { type ActiveUsersResponse as ActiveUsersResponse, type BounceRateByPageMetric as BounceRateByPageMetric, type BounceRateResponse as BounceRateResponse, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryDataPoint as CountryDataPoint, type DashboardMetricsResponse as DashboardMetricsResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type ReturnRateResponse as ReturnRateResponse, type SessionMetricsResponse as SessionMetricsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, type AnalyticsDashboardParams as AnalyticsDashboardParams, };
|
|
236
255
|
export { Visitors as Visitors, type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, type VisitorIdentifyParams as VisitorIdentifyParams, type VisitorProfileParams as VisitorProfileParams, type VisitorTimelineParams as VisitorTimelineParams, type VisitorTopParams as VisitorTopParams, };
|
|
237
|
-
export { Events as Events, type EventRecentParams as EventRecentParams };
|
|
256
|
+
export { Events as Events, type EventFilterOptionsParams as EventFilterOptionsParams, type EventRecentParams as EventRecentParams, };
|
|
238
257
|
export { Sessions as Sessions, type SessionBounceRateParams as SessionBounceRateParams, type SessionMetricsParams as SessionMetricsParams, };
|
|
239
258
|
export { Users as Users, type UserActiveParams as UserActiveParams };
|
|
240
259
|
export { Retention as Retention, type RetentionChurnRateParams as RetentionChurnRateParams, type RetentionCohortsParams as RetentionCohortsParams, type RetentionReturnRateParams as RetentionReturnRateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,iBAAiB,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"analytics.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,EAAE;OACvD,KAAK,YAAY;OACjB,EACL,SAAS,EACT,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EAC1B;OACM,KAAK,WAAW;OAChB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,QAAQ,EAAE;OAC3D,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,KAAK,EAAE;OAC3B,KAAK,WAAW;OAChB,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACT;OACM,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAE7E;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,KAAK,E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IAAI,sBAAsB,EACrD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gBAAgB,IAAI,gBAAgB,GAC1C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,oBAAoB,IAAI,oBAAoB,GAClD,CAAC;IAEF,OAAO,EAAE,KAAK,IAAI,KAAK,EAAE,KAAK,gBAAgB,IAAI,gBAAgB,EAAE,CAAC;IAErE,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { APIResource } from "../../../core/resource.js";
|
|
2
2
|
import * as EventsAPI from "./events.js";
|
|
3
|
-
import { EventRecentParams, Events } from "./events.js";
|
|
3
|
+
import { EventFilterOptionsParams, EventRecentParams, Events } from "./events.js";
|
|
4
4
|
import * as RetentionAPI from "./retention.js";
|
|
5
5
|
import { Retention, RetentionChurnRateParams, RetentionCohortsParams, RetentionReturnRateParams } from "./retention.js";
|
|
6
6
|
import * as SessionsAPI from "./sessions.js";
|
|
@@ -92,9 +92,23 @@ export interface DashboardMetricsResponse {
|
|
|
92
92
|
*/
|
|
93
93
|
total_events?: number;
|
|
94
94
|
total_sessions_in_period?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Total unique sessions in period
|
|
97
|
+
*/
|
|
98
|
+
unique_sessions?: number;
|
|
95
99
|
unique_visitors?: number;
|
|
96
100
|
wau?: number;
|
|
97
101
|
}
|
|
102
|
+
export interface EventFilterOptionsResponse {
|
|
103
|
+
/**
|
|
104
|
+
* Unique page paths
|
|
105
|
+
*/
|
|
106
|
+
pages?: Array<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Unique referrer domains
|
|
109
|
+
*/
|
|
110
|
+
traffic_origins?: Array<string>;
|
|
111
|
+
}
|
|
98
112
|
export interface EventsOverTimeDataPoint {
|
|
99
113
|
event_count?: number;
|
|
100
114
|
timestamp?: string;
|
|
@@ -129,14 +143,19 @@ export interface RecentEvent {
|
|
|
129
143
|
external_id?: string;
|
|
130
144
|
location_city?: string;
|
|
131
145
|
location_country_iso?: string;
|
|
146
|
+
location_latitude?: number;
|
|
147
|
+
location_longitude?: number;
|
|
132
148
|
page_path?: string;
|
|
133
149
|
page_url?: string;
|
|
150
|
+
referrer_domain?: string;
|
|
134
151
|
referrer_url?: string;
|
|
135
152
|
user_id?: string;
|
|
136
153
|
visitor_id?: string;
|
|
137
154
|
}
|
|
138
155
|
export interface RecentEventsResponse {
|
|
139
156
|
events?: Array<RecentEvent>;
|
|
157
|
+
limit?: number;
|
|
158
|
+
offset?: number;
|
|
140
159
|
total?: number;
|
|
141
160
|
}
|
|
142
161
|
export interface ReturnRateResponse {
|
|
@@ -232,9 +251,9 @@ export interface AnalyticsDashboardParams {
|
|
|
232
251
|
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
233
252
|
}
|
|
234
253
|
export declare namespace Analytics {
|
|
235
|
-
export { type ActiveUsersResponse as ActiveUsersResponse, type BounceRateByPageMetric as BounceRateByPageMetric, type BounceRateResponse as BounceRateResponse, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryDataPoint as CountryDataPoint, type DashboardMetricsResponse as DashboardMetricsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type ReturnRateResponse as ReturnRateResponse, type SessionMetricsResponse as SessionMetricsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, type AnalyticsDashboardParams as AnalyticsDashboardParams, };
|
|
254
|
+
export { type ActiveUsersResponse as ActiveUsersResponse, type BounceRateByPageMetric as BounceRateByPageMetric, type BounceRateResponse as BounceRateResponse, type ChurnRateResponse as ChurnRateResponse, type CohortAnalysisResponse as CohortAnalysisResponse, type CohortData as CohortData, type CountryDataPoint as CountryDataPoint, type DashboardMetricsResponse as DashboardMetricsResponse, type EventFilterOptionsResponse as EventFilterOptionsResponse, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type ManualIdentifyRequest as ManualIdentifyRequest, type ManualIdentifyResponse as ManualIdentifyResponse, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type ReturnRateResponse as ReturnRateResponse, type SessionMetricsResponse as SessionMetricsResponse, type TopVisitor as TopVisitor, type TopVisitorsResponse as TopVisitorsResponse, type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorEvent as VisitorEvent, type VisitorProfileResponse as VisitorProfileResponse, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, type AnalyticsDashboardParams as AnalyticsDashboardParams, };
|
|
236
255
|
export { Visitors as Visitors, type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, type VisitorIdentifyParams as VisitorIdentifyParams, type VisitorProfileParams as VisitorProfileParams, type VisitorTimelineParams as VisitorTimelineParams, type VisitorTopParams as VisitorTopParams, };
|
|
237
|
-
export { Events as Events, type EventRecentParams as EventRecentParams };
|
|
256
|
+
export { Events as Events, type EventFilterOptionsParams as EventFilterOptionsParams, type EventRecentParams as EventRecentParams, };
|
|
238
257
|
export { Sessions as Sessions, type SessionBounceRateParams as SessionBounceRateParams, type SessionMetricsParams as SessionMetricsParams, };
|
|
239
258
|
export { Users as Users, type UserActiveParams as UserActiveParams };
|
|
240
259
|
export { Retention as Retention, type RetentionChurnRateParams as RetentionChurnRateParams, type RetentionCohortsParams as RetentionCohortsParams, type RetentionReturnRateParams as RetentionReturnRateParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,iBAAiB,EAAE,MAAM,EAAE;
|
|
1
|
+
{"version":3,"file":"analytics.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,MAAM,EAAE;OACvD,KAAK,YAAY;OACjB,EACL,SAAS,EACT,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EAC1B;OACM,KAAK,WAAW;OAChB,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,QAAQ,EAAE;OAC3D,KAAK,QAAQ;OACb,EAAE,gBAAgB,EAAE,K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 -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAA+E;AAC/E,qEAA4C;AAC5C,8CAKqB;AACrB,mEAA0C;AAC1C,4CAAqF;AACrF,6DAAoC;AACpC,sCAAkD;AAClD,mEAA0C;AAC1C,4CASoB;AAIpB,MAAa,SAAU,SAAQ,sBAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkB/E,CAAC;IAhBC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,KAA+B,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AAvBD,8BAuBC;AA2VD,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC9B,SAAS,CAAC,MAAM,GAAG,eAAM,CAAC;AAC1B,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC9B,SAAS,CAAC,KAAK,GAAG,aAAK,CAAC;AACxB,SAAS,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"analytics.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,
|
|
1
|
+
{"version":3,"file":"analytics.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,EAA+C,MAAM,EAAE;OACvD,KAAK,YAAY;OACjB,EACL,SAAS,GAIV;OACM,KAAK,WAAW;OAChB,EAAiD,QAAQ,EAAE;OAC3D,KAAK,QAAQ;OACb,EAAoB,KAAK,EAAE;OAC3B,KAAK,WAAW;OAChB,EAQL,QAAQ,GACT;AAID,MAAM,OAAO,SAAU,SAAQ,WAAW;IAA1C;;QACE,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAkB/E,CAAC;IAhBC;;;;;;;;;;;;OAYG;IACH,SAAS,CAAC,KAA+B,EAAE,OAAwB;QACjE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,6BAA6B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChF,CAAC;CACF;AA2VD,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC;AAC1B,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,KAAK,GAAG,KAAK,CAAC;AACxB,SAAS,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -4,7 +4,20 @@ import { APIPromise } from "../../../core/api-promise.mjs";
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
5
5
|
export declare class Events extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Get
|
|
7
|
+
* Get unique traffic origins and page paths to populate filter dropdowns
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const eventFilterOptionsResponse =
|
|
12
|
+
* await client.v1.analytics.events.filterOptions({
|
|
13
|
+
* project_id: 'project_id',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
filterOptions(query: EventFilterOptionsParams, options?: RequestOptions): APIPromise<AnalyticsAPI.EventFilterOptionsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a list of recent events with optional filters (visitor_id, user_id,
|
|
20
|
+
* external_id, traffic_origin, page_path)
|
|
8
21
|
*
|
|
9
22
|
* @example
|
|
10
23
|
* ```ts
|
|
@@ -16,17 +29,51 @@ export declare class Events extends APIResource {
|
|
|
16
29
|
*/
|
|
17
30
|
recent(query: EventRecentParams, options?: RequestOptions): APIPromise<AnalyticsAPI.RecentEventsResponse>;
|
|
18
31
|
}
|
|
32
|
+
export interface EventFilterOptionsParams {
|
|
33
|
+
/**
|
|
34
|
+
* Project ID
|
|
35
|
+
*/
|
|
36
|
+
project_id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Time range
|
|
39
|
+
*/
|
|
40
|
+
time_range?: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
41
|
+
}
|
|
19
42
|
export interface EventRecentParams {
|
|
20
43
|
/**
|
|
21
44
|
* Project ID
|
|
22
45
|
*/
|
|
23
46
|
project_id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Filter by external ID
|
|
49
|
+
*/
|
|
50
|
+
external_id?: string;
|
|
24
51
|
/**
|
|
25
52
|
* Maximum number of events to return (default: 15)
|
|
26
53
|
*/
|
|
27
54
|
limit?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Offset for pagination (default: 0)
|
|
57
|
+
*/
|
|
58
|
+
offset?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Filter by page path
|
|
61
|
+
*/
|
|
62
|
+
page_path?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Filter by traffic origin (referrer domain)
|
|
65
|
+
*/
|
|
66
|
+
traffic_origin?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Filter by user ID
|
|
69
|
+
*/
|
|
70
|
+
user_id?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Filter by visitor ID
|
|
73
|
+
*/
|
|
74
|
+
visitor_id?: string;
|
|
28
75
|
}
|
|
29
76
|
export declare namespace Events {
|
|
30
|
-
export { type EventRecentParams as EventRecentParams };
|
|
77
|
+
export { type EventFilterOptionsParams as EventFilterOptionsParams, type EventRecentParams as EventRecentParams, };
|
|
31
78
|
}
|
|
32
79
|
//# sourceMappingURL=events.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,oBAAoB,CAAC;CAG1G;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,0BAA0B,CAAC;IAItD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,oBAAoB,CAAC;CAG1G;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACtF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -4,7 +4,20 @@ import { APIPromise } from "../../../core/api-promise.js";
|
|
|
4
4
|
import { RequestOptions } from "../../../internal/request-options.js";
|
|
5
5
|
export declare class Events extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Get
|
|
7
|
+
* Get unique traffic origins and page paths to populate filter dropdowns
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* ```ts
|
|
11
|
+
* const eventFilterOptionsResponse =
|
|
12
|
+
* await client.v1.analytics.events.filterOptions({
|
|
13
|
+
* project_id: 'project_id',
|
|
14
|
+
* });
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
filterOptions(query: EventFilterOptionsParams, options?: RequestOptions): APIPromise<AnalyticsAPI.EventFilterOptionsResponse>;
|
|
18
|
+
/**
|
|
19
|
+
* Get a list of recent events with optional filters (visitor_id, user_id,
|
|
20
|
+
* external_id, traffic_origin, page_path)
|
|
8
21
|
*
|
|
9
22
|
* @example
|
|
10
23
|
* ```ts
|
|
@@ -16,17 +29,51 @@ export declare class Events extends APIResource {
|
|
|
16
29
|
*/
|
|
17
30
|
recent(query: EventRecentParams, options?: RequestOptions): APIPromise<AnalyticsAPI.RecentEventsResponse>;
|
|
18
31
|
}
|
|
32
|
+
export interface EventFilterOptionsParams {
|
|
33
|
+
/**
|
|
34
|
+
* Project ID
|
|
35
|
+
*/
|
|
36
|
+
project_id: string;
|
|
37
|
+
/**
|
|
38
|
+
* Time range
|
|
39
|
+
*/
|
|
40
|
+
time_range?: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
41
|
+
}
|
|
19
42
|
export interface EventRecentParams {
|
|
20
43
|
/**
|
|
21
44
|
* Project ID
|
|
22
45
|
*/
|
|
23
46
|
project_id: string;
|
|
47
|
+
/**
|
|
48
|
+
* Filter by external ID
|
|
49
|
+
*/
|
|
50
|
+
external_id?: string;
|
|
24
51
|
/**
|
|
25
52
|
* Maximum number of events to return (default: 15)
|
|
26
53
|
*/
|
|
27
54
|
limit?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Offset for pagination (default: 0)
|
|
57
|
+
*/
|
|
58
|
+
offset?: number;
|
|
59
|
+
/**
|
|
60
|
+
* Filter by page path
|
|
61
|
+
*/
|
|
62
|
+
page_path?: string;
|
|
63
|
+
/**
|
|
64
|
+
* Filter by traffic origin (referrer domain)
|
|
65
|
+
*/
|
|
66
|
+
traffic_origin?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Filter by user ID
|
|
69
|
+
*/
|
|
70
|
+
user_id?: string;
|
|
71
|
+
/**
|
|
72
|
+
* Filter by visitor ID
|
|
73
|
+
*/
|
|
74
|
+
visitor_id?: string;
|
|
28
75
|
}
|
|
29
76
|
export declare namespace Events {
|
|
30
|
-
export { type EventRecentParams as EventRecentParams };
|
|
77
|
+
export { type EventFilterOptionsParams as EventFilterOptionsParams, type EventRecentParams as EventRecentParams, };
|
|
31
78
|
}
|
|
32
79
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,oBAAoB,CAAC;CAG1G;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,YAAY;OACjB,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAEzB,qBAAa,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAAK,EAAE,wBAAwB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,0BAA0B,CAAC;IAItD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAK,EAAE,iBAAiB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,YAAY,CAAC,oBAAoB,CAAC;CAG1G;AAED,MAAM,WAAW,wBAAwB;IACvC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,CAAC,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACtF;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,CAAC,OAAO,WAAW,MAAM,CAAC;IAC9B,OAAO,EACL,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -5,7 +5,22 @@ exports.Events = void 0;
|
|
|
5
5
|
const resource_1 = require("../../../core/resource.js");
|
|
6
6
|
class Events extends resource_1.APIResource {
|
|
7
7
|
/**
|
|
8
|
-
* Get
|
|
8
|
+
* Get unique traffic origins and page paths to populate filter dropdowns
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const eventFilterOptionsResponse =
|
|
13
|
+
* await client.v1.analytics.events.filterOptions({
|
|
14
|
+
* project_id: 'project_id',
|
|
15
|
+
* });
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
filterOptions(query, options) {
|
|
19
|
+
return this._client.get('/api/v1/analytics/events/filter-options', { query, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Get a list of recent events with optional filters (visitor_id, user_id,
|
|
23
|
+
* external_id, traffic_origin, page_path)
|
|
9
24
|
*
|
|
10
25
|
* @example
|
|
11
26
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,MAAO,SAAQ,sBAAW;IACrC;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF;AAlCD,wBAkCC"}
|
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
import { APIResource } from "../../../core/resource.mjs";
|
|
3
3
|
export class Events extends APIResource {
|
|
4
4
|
/**
|
|
5
|
-
* Get
|
|
5
|
+
* Get unique traffic origins and page paths to populate filter dropdowns
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```ts
|
|
9
|
+
* const eventFilterOptionsResponse =
|
|
10
|
+
* await client.v1.analytics.events.filterOptions({
|
|
11
|
+
* project_id: 'project_id',
|
|
12
|
+
* });
|
|
13
|
+
* ```
|
|
14
|
+
*/
|
|
15
|
+
filterOptions(query, options) {
|
|
16
|
+
return this._client.get('/api/v1/analytics/events/filter-options', { query, ...options });
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Get a list of recent events with optional filters (visitor_id, user_id,
|
|
20
|
+
* external_id, traffic_origin, page_path)
|
|
6
21
|
*
|
|
7
22
|
* @example
|
|
8
23
|
* ```ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,MAAM,CAAC,KAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;OAUG;IACH,aAAa,CACX,KAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,yCAAyC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAwB,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;CACF"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics.mjs";
|
|
2
|
-
export { Events, type EventRecentParams } from "./events.mjs";
|
|
1
|
+
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics.mjs";
|
|
2
|
+
export { Events, type EventFilterOptionsParams, type EventRecentParams } from "./events.mjs";
|
|
3
3
|
export { Retention, type RetentionChurnRateParams, type RetentionCohortsParams, type RetentionReturnRateParams, } from "./retention.mjs";
|
|
4
4
|
export { Sessions, type SessionBounceRateParams, type SessionMetricsParams } from "./sessions.mjs";
|
|
5
5
|
export { Users, type UserActiveParams } from "./users.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE;
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,wBAAwB,EAAE,KAAK,iBAAiB,EAAE;OACjE,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B;OACM,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE;OACrE,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE;OAChC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics.js";
|
|
2
|
-
export { Events, type EventRecentParams } from "./events.js";
|
|
1
|
+
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics.js";
|
|
2
|
+
export { Events, type EventFilterOptionsParams, type EventRecentParams } from "./events.js";
|
|
3
3
|
export { Retention, type RetentionChurnRateParams, type RetentionCohortsParams, type RetentionReturnRateParams, } from "./retention.js";
|
|
4
4
|
export { Sessions, type SessionBounceRateParams, type SessionMetricsParams } from "./sessions.js";
|
|
5
5
|
export { Users, type UserActiveParams } from "./users.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,E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iBAAiB,EAAE;OACjE,EACL,SAAS,EACT,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B;OACM,EAAE,QAAQ,EAAE,KAAK,uBAAuB,EAAE,KAAK,oBAAoB,EAAE;OACrE,EAAE,KAAK,EAAE,KAAK,gBAAgB,EAAE;OAChC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,4CA8BqB;AA7BnB,sGAAA,SAAS,OAAA;AA8BX,sCAAyF;AAAhF,gGAAA,MAAM,OAAA;AACf,4CAKqB;AAJnB,sGAAA,SAAS,OAAA;AAKX,0CAA+F;AAAtF,oGAAA,QAAQ,OAAA;AACjB,oCAAuD;AAA9C,8FAAA,KAAK,OAAA;AACd,0CASoB;AARlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GA6BV;OACM,EAAE,MAAM,EAAyD;OACjE,EACL,SAAS,GAIV;OACM,EAAE,QAAQ,EAA2D;OACrE,EAAE,KAAK,EAAyB;OAChC,EACL,QAAQ,GAQT"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.mjs";
|
|
1
|
+
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.mjs";
|
|
2
2
|
export { Auth, type Account, type AuthResponse, type MessageResponse, type Organization, type AuthConfirmPasswordRecoveryParams, type AuthLoginParams, type AuthLogoutParams, type AuthRefreshAccessTokenParams, type AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams, } from "./auth.mjs";
|
|
3
3
|
export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, } from "./payment-providers.mjs";
|
|
4
4
|
export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.mjs";
|
|
5
|
+
export { Revenue, type AttributionByOriginResponse, type AttributionByUtmResponse, type ConversionMetricsResponse, type CustomerProfileResponse, type DashboardResponse, type OriginAttributionDataPoint, type Payment, type RevenueOverTimeDataPoint, type TimelineDataPoint, type TimelineResponse, type TopCustomer, type TopCustomersResponse, type UtmAttributionDataPoint, type RevenueDashboardParams, type RevenueTimelineParams, } from "./revenue/index.mjs";
|
|
5
6
|
export { V1 } from "./v1.mjs";
|
|
6
7
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.js";
|
|
1
|
+
export { Analytics, type ActiveUsersResponse, type BounceRateByPageMetric, type BounceRateResponse, type ChurnRateResponse, type CohortAnalysisResponse, type CohortData, type CountryDataPoint, type DashboardMetricsResponse, type EventFilterOptionsResponse, type EventsOverTimeDataPoint, type ManualIdentifyRequest, type ManualIdentifyResponse, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type ReturnRateResponse, type SessionMetricsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, type AnalyticsDashboardParams, } from "./analytics/index.js";
|
|
2
2
|
export { Auth, type Account, type AuthResponse, type MessageResponse, type Organization, type AuthConfirmPasswordRecoveryParams, type AuthLoginParams, type AuthLogoutParams, type AuthRefreshAccessTokenParams, type AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams, } from "./auth.js";
|
|
3
3
|
export { PaymentProviders, type CreatePaymentProviderRequest, type ListPaymentProvidersResponse, type PaymentProviderResponse, type UpdatePaymentProviderRequest, type PaymentProviderDeleteResponse, type PaymentProviderCreateParams, type PaymentProviderUpdateParams, type PaymentProviderListParams, } from "./payment-providers.js";
|
|
4
4
|
export { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.js";
|
|
5
|
+
export { Revenue, type AttributionByOriginResponse, type AttributionByUtmResponse, type ConversionMetricsResponse, type CustomerProfileResponse, type DashboardResponse, type OriginAttributionDataPoint, type Payment, type RevenueOverTimeDataPoint, type TimelineDataPoint, type TimelineResponse, type TopCustomer, type TopCustomersResponse, type UtmAttributionDataPoint, type RevenueDashboardParams, type RevenueTimelineParams, } from "./revenue/index.js";
|
|
5
6
|
export { V1 } from "./v1.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EAAE,EAAE,EAAE"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,EAC3B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,UAAU,EACf,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,8BAA8B,EACnC,KAAK,gBAAgB,EACrB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EACL,IAAI,EACJ,KAAK,OAAO,EACZ,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,iCAAiC,EACtC,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,4BAA4B,EACjC,KAAK,yBAAyB,EAC9B,KAAK,iCAAiC,GACvC;OACM,EACL,gBAAgB,EAChB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,uBAAuB,EAC5B,KAAK,4BAA4B,EACjC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,GAC/B;OACM,EACL,QAAQ,EACR,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB;OACM,EACL,OAAO,EACP,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,OAAO,EACZ,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,GAC3B;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.V1 = exports.Projects = exports.PaymentProviders = exports.Auth = exports.Analytics = void 0;
|
|
4
|
+
exports.V1 = exports.Revenue = exports.Projects = exports.PaymentProviders = exports.Auth = exports.Analytics = void 0;
|
|
5
5
|
var index_1 = require("./analytics/index.js");
|
|
6
6
|
Object.defineProperty(exports, "Analytics", { enumerable: true, get: function () { return index_1.Analytics; } });
|
|
7
7
|
var auth_1 = require("./auth.js");
|
|
@@ -10,6 +10,8 @@ var payment_providers_1 = require("./payment-providers.js");
|
|
|
10
10
|
Object.defineProperty(exports, "PaymentProviders", { enumerable: true, get: function () { return payment_providers_1.PaymentProviders; } });
|
|
11
11
|
var projects_1 = require("./projects.js");
|
|
12
12
|
Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
|
|
13
|
+
var index_2 = require("./revenue/index.js");
|
|
14
|
+
Object.defineProperty(exports, "Revenue", { enumerable: true, get: function () { return index_2.Revenue; } });
|
|
13
15
|
var v1_1 = require("./v1.js");
|
|
14
16
|
Object.defineProperty(exports, "V1", { enumerable: true, get: function () { return v1_1.V1; } });
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8CA8B2B;AA7BzB,kGAAA,SAAS,OAAA;AA8BX,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,4DAU6B;AAT3B,qHAAA,gBAAgB,OAAA;AAUlB,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,4CAiByB;AAhBvB,gGAAA,OAAO,OAAA;AAiBT,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|