zorihq 0.2.0 → 0.3.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 +8 -0
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +50 -3
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +50 -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 +1 -1
- package/resources/v1/analytics/analytics.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/analytics/visitors.d.mts +76 -1
- package/resources/v1/analytics/visitors.d.mts.map +1 -1
- package/resources/v1/analytics/visitors.d.ts +76 -1
- package/resources/v1/analytics/visitors.d.ts.map +1 -1
- package/resources/v1/analytics/visitors.js +47 -0
- package/resources/v1/analytics/visitors.js.map +1 -1
- package/resources/v1/analytics/visitors.mjs +47 -0
- package/resources/v1/analytics/visitors.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/resources/v1/analytics/analytics.ts +99 -1
- package/src/resources/v1/analytics/index.ts +10 -0
- package/src/resources/v1/analytics/visitors.ts +100 -0
- package/src/resources/v1/index.ts +7 -0
- package/src/resources/v1/v1.ts +14 -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,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.3.0 (2025-10-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.2.0...v0.3.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.2.0...v0.3.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** manual updates ([f91e9cb](https://github.com/ZoriHQ/typescript-api-sdk/commit/f91e9cbf30acae4a380f70de13fcf703624b0911))
|
|
10
|
+
|
|
3
11
|
## 0.2.0 (2025-10-19)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v0.1.0...v0.2.0](https://github.com/ZoriHQ/typescript-api-sdk/compare/v0.1.0...v0.2.0)
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
2
2
|
import * as EventsAPI from "./events.mjs";
|
|
3
3
|
import { EventRecentParams, Events } from "./events.mjs";
|
|
4
4
|
import * as VisitorsAPI from "./visitors.mjs";
|
|
5
|
-
import { VisitorByCountryParams, VisitorByDeviceParams, VisitorByOriginParams, Visitors } from "./visitors.mjs";
|
|
5
|
+
import { VisitorByCountryParams, VisitorByDeviceParams, VisitorByOriginParams, VisitorProfileParams, VisitorTimelineParams, VisitorTopParams, Visitors } from "./visitors.mjs";
|
|
6
6
|
export declare class Analytics extends APIResource {
|
|
7
7
|
visitors: VisitorsAPI.Visitors;
|
|
8
8
|
events: EventsAPI.Events;
|
|
@@ -11,6 +11,10 @@ export interface CountryDataPoint {
|
|
|
11
11
|
country_code?: string;
|
|
12
12
|
unique_visitors?: number;
|
|
13
13
|
}
|
|
14
|
+
export interface EventsOverTimeDataPoint {
|
|
15
|
+
event_count?: number;
|
|
16
|
+
timestamp?: string;
|
|
17
|
+
}
|
|
14
18
|
export interface OriginDataPoint {
|
|
15
19
|
origin?: string;
|
|
16
20
|
unique_visitors?: number;
|
|
@@ -31,6 +35,28 @@ export interface RecentEventsResponse {
|
|
|
31
35
|
events?: Array<RecentEvent>;
|
|
32
36
|
total?: number;
|
|
33
37
|
}
|
|
38
|
+
export interface TopVisitor {
|
|
39
|
+
browser_name?: string;
|
|
40
|
+
device_type?: string;
|
|
41
|
+
event_count?: number;
|
|
42
|
+
first_seen?: string;
|
|
43
|
+
last_seen?: string;
|
|
44
|
+
location_city?: string;
|
|
45
|
+
location_country_iso?: string;
|
|
46
|
+
visitor_id?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface TopVisitorsResponse {
|
|
49
|
+
total?: number;
|
|
50
|
+
visitors?: Array<TopVisitor>;
|
|
51
|
+
}
|
|
52
|
+
export interface UniqueVisitorsDataPoint {
|
|
53
|
+
desktop?: number;
|
|
54
|
+
mobile?: number;
|
|
55
|
+
timestamp?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface UniqueVisitorsTimelineResponse {
|
|
58
|
+
data?: Array<UniqueVisitorsDataPoint>;
|
|
59
|
+
}
|
|
34
60
|
export interface VisitorDataPoint {
|
|
35
61
|
desktop?: number;
|
|
36
62
|
mobile?: number;
|
|
@@ -38,6 +64,27 @@ export interface VisitorDataPoint {
|
|
|
38
64
|
timestamp?: string;
|
|
39
65
|
unknown?: number;
|
|
40
66
|
}
|
|
67
|
+
export interface VisitorEvent {
|
|
68
|
+
browser_name?: string;
|
|
69
|
+
client_timestamp_utc?: string;
|
|
70
|
+
device_type?: string;
|
|
71
|
+
event_name?: string;
|
|
72
|
+
page_path?: string;
|
|
73
|
+
page_url?: string;
|
|
74
|
+
referrer_url?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface VisitorProfileResponse {
|
|
77
|
+
events?: Array<VisitorEvent>;
|
|
78
|
+
events_over_time?: Array<EventsOverTimeDataPoint>;
|
|
79
|
+
first_referrer_url?: string;
|
|
80
|
+
first_seen?: string;
|
|
81
|
+
first_traffic_origin?: string;
|
|
82
|
+
last_seen?: string;
|
|
83
|
+
location_city?: string;
|
|
84
|
+
location_country_iso?: string;
|
|
85
|
+
total_events?: number;
|
|
86
|
+
visitor_id?: string;
|
|
87
|
+
}
|
|
41
88
|
export interface VisitorsByCountryResponse {
|
|
42
89
|
data?: Array<CountryDataPoint>;
|
|
43
90
|
}
|
|
@@ -48,8 +95,8 @@ export interface VisitorsByOriginResponse {
|
|
|
48
95
|
data?: Array<OriginDataPoint>;
|
|
49
96
|
}
|
|
50
97
|
export declare namespace Analytics {
|
|
51
|
-
export { type CountryDataPoint as CountryDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, };
|
|
52
|
-
export { Visitors as Visitors, type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, };
|
|
98
|
+
export { type CountryDataPoint as CountryDataPoint, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, 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, };
|
|
99
|
+
export { Visitors as Visitors, type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, type VisitorProfileParams as VisitorProfileParams, type VisitorTimelineParams as VisitorTimelineParams, type VisitorTopParams as VisitorTopParams, };
|
|
53
100
|
export { Events as Events, type EventRecentParams as EventRecentParams };
|
|
54
101
|
}
|
|
55
102
|
//# sourceMappingURL=analytics.d.mts.map
|
|
@@ -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;OAC7B,KAAK,WAAW;OAChB,
|
|
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;OAC7B,KAAK,WAAW;OAChB,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACT;AAED,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,uBAAuB;IACtC,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM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ACjC,OAAO,EACL,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,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,EAAE,MAAM,IAAI,MAAM,EAAE,KAAK,iBAAiB,IAAI,iBAAiB,EAAE,CAAC;CAC1E"}
|
|
@@ -2,7 +2,7 @@ import { APIResource } from "../../../core/resource.js";
|
|
|
2
2
|
import * as EventsAPI from "./events.js";
|
|
3
3
|
import { EventRecentParams, Events } from "./events.js";
|
|
4
4
|
import * as VisitorsAPI from "./visitors.js";
|
|
5
|
-
import { VisitorByCountryParams, VisitorByDeviceParams, VisitorByOriginParams, Visitors } from "./visitors.js";
|
|
5
|
+
import { VisitorByCountryParams, VisitorByDeviceParams, VisitorByOriginParams, VisitorProfileParams, VisitorTimelineParams, VisitorTopParams, Visitors } from "./visitors.js";
|
|
6
6
|
export declare class Analytics extends APIResource {
|
|
7
7
|
visitors: VisitorsAPI.Visitors;
|
|
8
8
|
events: EventsAPI.Events;
|
|
@@ -11,6 +11,10 @@ export interface CountryDataPoint {
|
|
|
11
11
|
country_code?: string;
|
|
12
12
|
unique_visitors?: number;
|
|
13
13
|
}
|
|
14
|
+
export interface EventsOverTimeDataPoint {
|
|
15
|
+
event_count?: number;
|
|
16
|
+
timestamp?: string;
|
|
17
|
+
}
|
|
14
18
|
export interface OriginDataPoint {
|
|
15
19
|
origin?: string;
|
|
16
20
|
unique_visitors?: number;
|
|
@@ -31,6 +35,28 @@ export interface RecentEventsResponse {
|
|
|
31
35
|
events?: Array<RecentEvent>;
|
|
32
36
|
total?: number;
|
|
33
37
|
}
|
|
38
|
+
export interface TopVisitor {
|
|
39
|
+
browser_name?: string;
|
|
40
|
+
device_type?: string;
|
|
41
|
+
event_count?: number;
|
|
42
|
+
first_seen?: string;
|
|
43
|
+
last_seen?: string;
|
|
44
|
+
location_city?: string;
|
|
45
|
+
location_country_iso?: string;
|
|
46
|
+
visitor_id?: string;
|
|
47
|
+
}
|
|
48
|
+
export interface TopVisitorsResponse {
|
|
49
|
+
total?: number;
|
|
50
|
+
visitors?: Array<TopVisitor>;
|
|
51
|
+
}
|
|
52
|
+
export interface UniqueVisitorsDataPoint {
|
|
53
|
+
desktop?: number;
|
|
54
|
+
mobile?: number;
|
|
55
|
+
timestamp?: string;
|
|
56
|
+
}
|
|
57
|
+
export interface UniqueVisitorsTimelineResponse {
|
|
58
|
+
data?: Array<UniqueVisitorsDataPoint>;
|
|
59
|
+
}
|
|
34
60
|
export interface VisitorDataPoint {
|
|
35
61
|
desktop?: number;
|
|
36
62
|
mobile?: number;
|
|
@@ -38,6 +64,27 @@ export interface VisitorDataPoint {
|
|
|
38
64
|
timestamp?: string;
|
|
39
65
|
unknown?: number;
|
|
40
66
|
}
|
|
67
|
+
export interface VisitorEvent {
|
|
68
|
+
browser_name?: string;
|
|
69
|
+
client_timestamp_utc?: string;
|
|
70
|
+
device_type?: string;
|
|
71
|
+
event_name?: string;
|
|
72
|
+
page_path?: string;
|
|
73
|
+
page_url?: string;
|
|
74
|
+
referrer_url?: string;
|
|
75
|
+
}
|
|
76
|
+
export interface VisitorProfileResponse {
|
|
77
|
+
events?: Array<VisitorEvent>;
|
|
78
|
+
events_over_time?: Array<EventsOverTimeDataPoint>;
|
|
79
|
+
first_referrer_url?: string;
|
|
80
|
+
first_seen?: string;
|
|
81
|
+
first_traffic_origin?: string;
|
|
82
|
+
last_seen?: string;
|
|
83
|
+
location_city?: string;
|
|
84
|
+
location_country_iso?: string;
|
|
85
|
+
total_events?: number;
|
|
86
|
+
visitor_id?: string;
|
|
87
|
+
}
|
|
41
88
|
export interface VisitorsByCountryResponse {
|
|
42
89
|
data?: Array<CountryDataPoint>;
|
|
43
90
|
}
|
|
@@ -48,8 +95,8 @@ export interface VisitorsByOriginResponse {
|
|
|
48
95
|
data?: Array<OriginDataPoint>;
|
|
49
96
|
}
|
|
50
97
|
export declare namespace Analytics {
|
|
51
|
-
export { type CountryDataPoint as CountryDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, };
|
|
52
|
-
export { Visitors as Visitors, type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, };
|
|
98
|
+
export { type CountryDataPoint as CountryDataPoint, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, 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, };
|
|
99
|
+
export { Visitors as Visitors, type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, type VisitorProfileParams as VisitorProfileParams, type VisitorTimelineParams as VisitorTimelineParams, type VisitorTopParams as VisitorTopParams, };
|
|
53
100
|
export { Events as Events, type EventRecentParams as EventRecentParams };
|
|
54
101
|
}
|
|
55
102
|
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -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;OAC7B,KAAK,WAAW;OAChB,
|
|
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;OAC7B,KAAK,WAAW;OAChB,EACL,sBAAsB,EACtB,qBAAqB,EACrB,qBAAqB,EACrB,oBAAoB,EACpB,qBAAqB,EACrB,gBAAgB,EAChB,QAAQ,EACT;AAED,qBAAa,SAAU,SAAQ,WAAW;IACxC,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;CAC/D;AAED,MAAM,WAAW,gBAAgB;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC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;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAqD;AACrD,mEAA0C;AAC1C,
|
|
1
|
+
{"version":3,"file":"analytics.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/analytics.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAAqD;AACrD,mEAA0C;AAC1C,4CAQoB;AAEpB,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;IAChE,CAAC;CAAA;AAHD,8BAGC;AAkJD,SAAS,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AAC9B,SAAS,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { APIResource } from "../../../core/resource.mjs";
|
|
|
3
3
|
import * as EventsAPI from "./events.mjs";
|
|
4
4
|
import { Events } from "./events.mjs";
|
|
5
5
|
import * as VisitorsAPI from "./visitors.mjs";
|
|
6
|
-
import { Visitors } from "./visitors.mjs";
|
|
6
|
+
import { Visitors, } from "./visitors.mjs";
|
|
7
7
|
export class Analytics extends APIResource {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
@@ -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,EAAqB,MAAM,EAAE;OAC7B,KAAK,WAAW;OAChB,
|
|
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,EAAqB,MAAM,EAAE;OAC7B,KAAK,WAAW;OAChB,EAOL,QAAQ,GACT;AAED,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;IAChE,CAAC;CAAA;AAkJD,SAAS,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAC9B,SAAS,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Analytics, type CountryDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type VisitorDataPoint, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } from "./analytics.mjs";
|
|
1
|
+
export { Analytics, type CountryDataPoint, type EventsOverTimeDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } from "./analytics.mjs";
|
|
2
2
|
export { Events, type EventRecentParams } from "./events.mjs";
|
|
3
|
-
export { Visitors, type VisitorByCountryParams, type VisitorByDeviceParams, type VisitorByOriginParams, } from "./visitors.mjs";
|
|
3
|
+
export { Visitors, type VisitorByCountryParams, type VisitorByDeviceParams, type VisitorByOriginParams, type VisitorProfileParams, type VisitorTimelineParams, type VisitorTopParams, } from "./visitors.mjs";
|
|
4
4
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE;OAClC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,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,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE;OAClC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,gBAAgB,GACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Analytics, type CountryDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type VisitorDataPoint, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } from "./analytics.js";
|
|
1
|
+
export { Analytics, type CountryDataPoint, type EventsOverTimeDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } from "./analytics.js";
|
|
2
2
|
export { Events, type EventRecentParams } from "./events.js";
|
|
3
|
-
export { Visitors, type VisitorByCountryParams, type VisitorByDeviceParams, type VisitorByOriginParams, } from "./visitors.js";
|
|
3
|
+
export { Visitors, type VisitorByCountryParams, type VisitorByDeviceParams, type VisitorByOriginParams, type VisitorProfileParams, type VisitorTimelineParams, type VisitorTopParams, } from "./visitors.js";
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE;OAClC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,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,GAC9B;OACM,EAAE,MAAM,EAAE,KAAK,iBAAiB,EAAE;OAClC,EACL,QAAQ,EACR,KAAK,sBAAsB,EAC3B,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,4CAiBqB;AAhBnB,sGAAA,SAAS,OAAA;AAiBX,sCAA0D;AAAjD,gGAAA,MAAM,OAAA;AACf,0CAQoB;AAPlB,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,GAgBV;OACM,EAAE,MAAM,EAA0B;OAClC,EACL,QAAQ,GAOT"}
|
|
@@ -43,6 +43,47 @@ export declare class Visitors extends APIResource {
|
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
45
|
byOrigin(query: VisitorByOriginParams, options?: RequestOptions): APIPromise<AnalyticsAPI.VisitorsByOriginResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Get detailed information about a specific visitor including their event history
|
|
48
|
+
* and aggregated statistics
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const visitorProfileResponse =
|
|
53
|
+
* await client.v1.analytics.visitors.profile({
|
|
54
|
+
* project_id: 'project_id',
|
|
55
|
+
* visitor_id: 'visitor_id',
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
profile(query: VisitorProfileParams, options?: RequestOptions): APIPromise<AnalyticsAPI.VisitorProfileResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Get unique visitor counts over time, split by mobile and desktop devices for
|
|
62
|
+
* chart visualization
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const uniqueVisitorsTimelineResponse =
|
|
67
|
+
* await client.v1.analytics.visitors.timeline({
|
|
68
|
+
* project_id: 'project_id',
|
|
69
|
+
* time_range: 'last_hour',
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
timeline(query: VisitorTimelineParams, options?: RequestOptions): APIPromise<AnalyticsAPI.UniqueVisitorsTimelineResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Get a list of the most active visitors ranked by event count
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const topVisitorsResponse =
|
|
80
|
+
* await client.v1.analytics.visitors.top({
|
|
81
|
+
* project_id: 'project_id',
|
|
82
|
+
* time_range: 'last_hour',
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
top(query: VisitorTopParams, options?: RequestOptions): APIPromise<AnalyticsAPI.TopVisitorsResponse>;
|
|
46
87
|
}
|
|
47
88
|
export interface VisitorByCountryParams {
|
|
48
89
|
/**
|
|
@@ -74,7 +115,41 @@ export interface VisitorByOriginParams {
|
|
|
74
115
|
*/
|
|
75
116
|
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
76
117
|
}
|
|
118
|
+
export interface VisitorProfileParams {
|
|
119
|
+
/**
|
|
120
|
+
* Project ID
|
|
121
|
+
*/
|
|
122
|
+
project_id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Visitor ID
|
|
125
|
+
*/
|
|
126
|
+
visitor_id: string;
|
|
127
|
+
}
|
|
128
|
+
export interface VisitorTimelineParams {
|
|
129
|
+
/**
|
|
130
|
+
* Project ID
|
|
131
|
+
*/
|
|
132
|
+
project_id: string;
|
|
133
|
+
/**
|
|
134
|
+
* Time range
|
|
135
|
+
*/
|
|
136
|
+
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
137
|
+
}
|
|
138
|
+
export interface VisitorTopParams {
|
|
139
|
+
/**
|
|
140
|
+
* Project ID
|
|
141
|
+
*/
|
|
142
|
+
project_id: string;
|
|
143
|
+
/**
|
|
144
|
+
* Time range
|
|
145
|
+
*/
|
|
146
|
+
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
147
|
+
/**
|
|
148
|
+
* Maximum number of visitors to return (default: 50)
|
|
149
|
+
*/
|
|
150
|
+
limit?: number;
|
|
151
|
+
}
|
|
77
152
|
export declare namespace Visitors {
|
|
78
|
-
export { type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, };
|
|
153
|
+
export { type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, type VisitorProfileParams as VisitorProfileParams, type VisitorTimelineParams as VisitorTimelineParams, type VisitorTopParams as VisitorTopParams, };
|
|
79
154
|
}
|
|
80
155
|
//# sourceMappingURL=visitors.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitors.d.mts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/visitors.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,SAAS,CACP,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,E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ACrD,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;CACH"}
|
|
@@ -43,6 +43,47 @@ export declare class Visitors extends APIResource {
|
|
|
43
43
|
* ```
|
|
44
44
|
*/
|
|
45
45
|
byOrigin(query: VisitorByOriginParams, options?: RequestOptions): APIPromise<AnalyticsAPI.VisitorsByOriginResponse>;
|
|
46
|
+
/**
|
|
47
|
+
* Get detailed information about a specific visitor including their event history
|
|
48
|
+
* and aggregated statistics
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const visitorProfileResponse =
|
|
53
|
+
* await client.v1.analytics.visitors.profile({
|
|
54
|
+
* project_id: 'project_id',
|
|
55
|
+
* visitor_id: 'visitor_id',
|
|
56
|
+
* });
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
profile(query: VisitorProfileParams, options?: RequestOptions): APIPromise<AnalyticsAPI.VisitorProfileResponse>;
|
|
60
|
+
/**
|
|
61
|
+
* Get unique visitor counts over time, split by mobile and desktop devices for
|
|
62
|
+
* chart visualization
|
|
63
|
+
*
|
|
64
|
+
* @example
|
|
65
|
+
* ```ts
|
|
66
|
+
* const uniqueVisitorsTimelineResponse =
|
|
67
|
+
* await client.v1.analytics.visitors.timeline({
|
|
68
|
+
* project_id: 'project_id',
|
|
69
|
+
* time_range: 'last_hour',
|
|
70
|
+
* });
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
timeline(query: VisitorTimelineParams, options?: RequestOptions): APIPromise<AnalyticsAPI.UniqueVisitorsTimelineResponse>;
|
|
74
|
+
/**
|
|
75
|
+
* Get a list of the most active visitors ranked by event count
|
|
76
|
+
*
|
|
77
|
+
* @example
|
|
78
|
+
* ```ts
|
|
79
|
+
* const topVisitorsResponse =
|
|
80
|
+
* await client.v1.analytics.visitors.top({
|
|
81
|
+
* project_id: 'project_id',
|
|
82
|
+
* time_range: 'last_hour',
|
|
83
|
+
* });
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
top(query: VisitorTopParams, options?: RequestOptions): APIPromise<AnalyticsAPI.TopVisitorsResponse>;
|
|
46
87
|
}
|
|
47
88
|
export interface VisitorByCountryParams {
|
|
48
89
|
/**
|
|
@@ -74,7 +115,41 @@ export interface VisitorByOriginParams {
|
|
|
74
115
|
*/
|
|
75
116
|
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
76
117
|
}
|
|
118
|
+
export interface VisitorProfileParams {
|
|
119
|
+
/**
|
|
120
|
+
* Project ID
|
|
121
|
+
*/
|
|
122
|
+
project_id: string;
|
|
123
|
+
/**
|
|
124
|
+
* Visitor ID
|
|
125
|
+
*/
|
|
126
|
+
visitor_id: string;
|
|
127
|
+
}
|
|
128
|
+
export interface VisitorTimelineParams {
|
|
129
|
+
/**
|
|
130
|
+
* Project ID
|
|
131
|
+
*/
|
|
132
|
+
project_id: string;
|
|
133
|
+
/**
|
|
134
|
+
* Time range
|
|
135
|
+
*/
|
|
136
|
+
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
137
|
+
}
|
|
138
|
+
export interface VisitorTopParams {
|
|
139
|
+
/**
|
|
140
|
+
* Project ID
|
|
141
|
+
*/
|
|
142
|
+
project_id: string;
|
|
143
|
+
/**
|
|
144
|
+
* Time range
|
|
145
|
+
*/
|
|
146
|
+
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
147
|
+
/**
|
|
148
|
+
* Maximum number of visitors to return (default: 50)
|
|
149
|
+
*/
|
|
150
|
+
limit?: number;
|
|
151
|
+
}
|
|
77
152
|
export declare namespace Visitors {
|
|
78
|
-
export { type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, };
|
|
153
|
+
export { type VisitorByCountryParams as VisitorByCountryParams, type VisitorByDeviceParams as VisitorByDeviceParams, type VisitorByOriginParams as VisitorByOriginParams, type VisitorProfileParams as VisitorProfileParams, type VisitorTimelineParams as VisitorTimelineParams, type VisitorTopParams as VisitorTopParams, };
|
|
79
154
|
}
|
|
80
155
|
//# sourceMappingURL=visitors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitors.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/visitors.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,SAAS,CACP,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,yBAAyB,CAAC;IAIrD;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,wBAAwB,CAAC;IAIpD;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAAK,EAAE,qBAAqB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,YAAY,CAAC,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"visitors.d.ts","sourceRoot":"","sources":["../../../src/resources/v1/analytics/visitors.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,SAAS,CACP,KAAK,EAAE,sBAAsB,EAC7B,OAAO,CAAC,EAA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Ac,CAAC;CACrF;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;CACrF;AAED,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,UAAU,EAAE,WAAW,GAAG,OAAO,GAAG,aAAa,GAAG,cAAc,GAAG,cAAc,CAAC;IAEpF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,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;CACH"}
|
|
@@ -50,6 +50,53 @@ class Visitors extends resource_1.APIResource {
|
|
|
50
50
|
byOrigin(query, options) {
|
|
51
51
|
return this._client.get('/api/v1/analytics/visitors/origin', { query, ...options });
|
|
52
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* Get detailed information about a specific visitor including their event history
|
|
55
|
+
* and aggregated statistics
|
|
56
|
+
*
|
|
57
|
+
* @example
|
|
58
|
+
* ```ts
|
|
59
|
+
* const visitorProfileResponse =
|
|
60
|
+
* await client.v1.analytics.visitors.profile({
|
|
61
|
+
* project_id: 'project_id',
|
|
62
|
+
* visitor_id: 'visitor_id',
|
|
63
|
+
* });
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
profile(query, options) {
|
|
67
|
+
return this._client.get('/api/v1/analytics/visitors/profile', { query, ...options });
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Get unique visitor counts over time, split by mobile and desktop devices for
|
|
71
|
+
* chart visualization
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* ```ts
|
|
75
|
+
* const uniqueVisitorsTimelineResponse =
|
|
76
|
+
* await client.v1.analytics.visitors.timeline({
|
|
77
|
+
* project_id: 'project_id',
|
|
78
|
+
* time_range: 'last_hour',
|
|
79
|
+
* });
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
timeline(query, options) {
|
|
83
|
+
return this._client.get('/api/v1/analytics/visitors/timeline', { query, ...options });
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Get a list of the most active visitors ranked by event count
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const topVisitorsResponse =
|
|
91
|
+
* await client.v1.analytics.visitors.top({
|
|
92
|
+
* project_id: 'project_id',
|
|
93
|
+
* time_range: 'last_hour',
|
|
94
|
+
* });
|
|
95
|
+
* ```
|
|
96
|
+
*/
|
|
97
|
+
top(query, options) {
|
|
98
|
+
return this._client.get('/api/v1/analytics/visitors/top', { query, ...options });
|
|
99
|
+
}
|
|
53
100
|
}
|
|
54
101
|
exports.Visitors = Visitors;
|
|
55
102
|
//# sourceMappingURL=visitors.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitors.js","sourceRoot":"","sources":["../../../src/resources/v1/analytics/visitors.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAKrD,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;;;;;;;OAWG;IACH,SAAS,CACP,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,O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oC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,qCAAqC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CAAC,KAAuB,EAAE,OAAwB;QACnD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF;AAlHD,4BAkHC"}
|
|
@@ -47,5 +47,52 @@ export class Visitors extends APIResource {
|
|
|
47
47
|
byOrigin(query, options) {
|
|
48
48
|
return this._client.get('/api/v1/analytics/visitors/origin', { query, ...options });
|
|
49
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Get detailed information about a specific visitor including their event history
|
|
52
|
+
* and aggregated statistics
|
|
53
|
+
*
|
|
54
|
+
* @example
|
|
55
|
+
* ```ts
|
|
56
|
+
* const visitorProfileResponse =
|
|
57
|
+
* await client.v1.analytics.visitors.profile({
|
|
58
|
+
* project_id: 'project_id',
|
|
59
|
+
* visitor_id: 'visitor_id',
|
|
60
|
+
* });
|
|
61
|
+
* ```
|
|
62
|
+
*/
|
|
63
|
+
profile(query, options) {
|
|
64
|
+
return this._client.get('/api/v1/analytics/visitors/profile', { query, ...options });
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Get unique visitor counts over time, split by mobile and desktop devices for
|
|
68
|
+
* chart visualization
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const uniqueVisitorsTimelineResponse =
|
|
73
|
+
* await client.v1.analytics.visitors.timeline({
|
|
74
|
+
* project_id: 'project_id',
|
|
75
|
+
* time_range: 'last_hour',
|
|
76
|
+
* });
|
|
77
|
+
* ```
|
|
78
|
+
*/
|
|
79
|
+
timeline(query, options) {
|
|
80
|
+
return this._client.get('/api/v1/analytics/visitors/timeline', { query, ...options });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Get a list of the most active visitors ranked by event count
|
|
84
|
+
*
|
|
85
|
+
* @example
|
|
86
|
+
* ```ts
|
|
87
|
+
* const topVisitorsResponse =
|
|
88
|
+
* await client.v1.analytics.visitors.top({
|
|
89
|
+
* project_id: 'project_id',
|
|
90
|
+
* time_range: 'last_hour',
|
|
91
|
+
* });
|
|
92
|
+
* ```
|
|
93
|
+
*/
|
|
94
|
+
top(query, options) {
|
|
95
|
+
return this._client.get('/api/v1/analytics/visitors/top', { query, ...options });
|
|
96
|
+
}
|
|
50
97
|
}
|
|
51
98
|
//# sourceMappingURL=visitors.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"visitors.mjs","sourceRoot":"","sources":["../../../src/resources/v1/analytics/visitors.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;AAKtB,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;;;;;;;OAWG;IACH,SAAS,CACP,KAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,oCAAoC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACvF,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;;OAWG;IACH,QAAQ,CACN,KAA4B,EAC5B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,mCAAmC,EAAE,EAAE,K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AC,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnF,CAAC;CACF"}
|
package/resources/v1/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Analytics, type CountryDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type VisitorDataPoint, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } from "./analytics/index.mjs";
|
|
1
|
+
export { Analytics, type CountryDataPoint, type EventsOverTimeDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } 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 { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.mjs";
|
|
4
4
|
export { V1 } from "./v1.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,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,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,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,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,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,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"}
|
package/resources/v1/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Analytics, type CountryDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type VisitorDataPoint, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } from "./analytics/index.js";
|
|
1
|
+
export { Analytics, type CountryDataPoint, type EventsOverTimeDataPoint, type OriginDataPoint, type RecentEvent, type RecentEventsResponse, type TopVisitor, type TopVisitorsResponse, type UniqueVisitorsDataPoint, type UniqueVisitorsTimelineResponse, type VisitorDataPoint, type VisitorEvent, type VisitorProfileResponse, type VisitorsByCountryResponse, type VisitorsByDeviceResponse, type VisitorsByOriginResponse, } 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 { Projects, type CreateProjectRequest, type ListProjectsResponse, type Project, type ProjectResponse, type UpdateProjectRequest, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, } from "./projects.js";
|
|
4
4
|
export { V1 } from "./v1.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"OAEO,EACL,SAAS,EACT,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,KAAK,gBAAgB,EACrB,KAAK,yBAAyB,EAC9B,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,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,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,KAAK,oBAAoB,EACzB,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,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,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 +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,8CAiB2B;AAhBzB,kGAAA,SAAS,OAAA;AAiBX,kCAYgB;AAXd,4FAAA,IAAI,OAAA;AAYN,0CAUoB;AATlB,oGAAA,QAAQ,OAAA;AAUV,8BAA0B;AAAjB,wFAAA,EAAE,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/v1/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,SAAS,GAgBV;OACM,EACL,IAAI,GAWL;OACM,EACL,QAAQ,GAST;OACM,EAAE,EAAE,EAAE"}
|
package/resources/v1/v1.d.mts
CHANGED
|
@@ -4,14 +4,14 @@ import { Account, Auth, AuthConfirmPasswordRecoveryParams, AuthLoginParams, Auth
|
|
|
4
4
|
import * as ProjectsAPI from "./projects.mjs";
|
|
5
5
|
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.mjs";
|
|
6
6
|
import * as AnalyticsAPI from "./analytics/analytics.mjs";
|
|
7
|
-
import { Analytics, CountryDataPoint, OriginDataPoint, RecentEvent, RecentEventsResponse, VisitorDataPoint, VisitorsByCountryResponse, VisitorsByDeviceResponse, VisitorsByOriginResponse } from "./analytics/analytics.mjs";
|
|
7
|
+
import { Analytics, CountryDataPoint, EventsOverTimeDataPoint, OriginDataPoint, RecentEvent, RecentEventsResponse, TopVisitor, TopVisitorsResponse, UniqueVisitorsDataPoint, UniqueVisitorsTimelineResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByCountryResponse, VisitorsByDeviceResponse, VisitorsByOriginResponse } from "./analytics/analytics.mjs";
|
|
8
8
|
export declare class V1 extends APIResource {
|
|
9
9
|
analytics: AnalyticsAPI.Analytics;
|
|
10
10
|
projects: ProjectsAPI.Projects;
|
|
11
11
|
auth: AuthAPI.Auth;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace V1 {
|
|
14
|
-
export { Analytics as Analytics, type CountryDataPoint as CountryDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, };
|
|
14
|
+
export { Analytics as Analytics, type CountryDataPoint as CountryDataPoint, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, 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, };
|
|
15
15
|
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
16
16
|
export { Auth as Auth, type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
17
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.mts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,OAAO,EACP,IAAI,EACJ,iCAAiC,EACjC,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,iCAAiC,EACjC,YAAY,EACZ,eAAe,EACf,YAAY,EACb;OACM,KAAK,WAAW;OAChB,EACL,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;OACM,KAAK,YAAY;OACjB,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACzB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,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I,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.d.ts
CHANGED
|
@@ -4,14 +4,14 @@ import { Account, Auth, AuthConfirmPasswordRecoveryParams, AuthLoginParams, Auth
|
|
|
4
4
|
import * as ProjectsAPI from "./projects.js";
|
|
5
5
|
import { CreateProjectRequest, ListProjectsResponse, Project, ProjectCreateParams, ProjectDeleteResponse, ProjectResponse, ProjectUpdateParams, Projects, UpdateProjectRequest } from "./projects.js";
|
|
6
6
|
import * as AnalyticsAPI from "./analytics/analytics.js";
|
|
7
|
-
import { Analytics, CountryDataPoint, OriginDataPoint, RecentEvent, RecentEventsResponse, VisitorDataPoint, VisitorsByCountryResponse, VisitorsByDeviceResponse, VisitorsByOriginResponse } from "./analytics/analytics.js";
|
|
7
|
+
import { Analytics, CountryDataPoint, EventsOverTimeDataPoint, OriginDataPoint, RecentEvent, RecentEventsResponse, TopVisitor, TopVisitorsResponse, UniqueVisitorsDataPoint, UniqueVisitorsTimelineResponse, VisitorDataPoint, VisitorEvent, VisitorProfileResponse, VisitorsByCountryResponse, VisitorsByDeviceResponse, VisitorsByOriginResponse } from "./analytics/analytics.js";
|
|
8
8
|
export declare class V1 extends APIResource {
|
|
9
9
|
analytics: AnalyticsAPI.Analytics;
|
|
10
10
|
projects: ProjectsAPI.Projects;
|
|
11
11
|
auth: AuthAPI.Auth;
|
|
12
12
|
}
|
|
13
13
|
export declare namespace V1 {
|
|
14
|
-
export { Analytics as Analytics, type CountryDataPoint as CountryDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, type VisitorDataPoint as VisitorDataPoint, type VisitorsByCountryResponse as VisitorsByCountryResponse, type VisitorsByDeviceResponse as VisitorsByDeviceResponse, type VisitorsByOriginResponse as VisitorsByOriginResponse, };
|
|
14
|
+
export { Analytics as Analytics, type CountryDataPoint as CountryDataPoint, type EventsOverTimeDataPoint as EventsOverTimeDataPoint, type OriginDataPoint as OriginDataPoint, type RecentEvent as RecentEvent, type RecentEventsResponse as RecentEventsResponse, 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, };
|
|
15
15
|
export { Projects as Projects, type CreateProjectRequest as CreateProjectRequest, type ListProjectsResponse as ListProjectsResponse, type Project as Project, type ProjectResponse as ProjectResponse, type UpdateProjectRequest as UpdateProjectRequest, type ProjectDeleteResponse as ProjectDeleteResponse, type ProjectCreateParams as ProjectCreateParams, type ProjectUpdateParams as ProjectUpdateParams, };
|
|
16
16
|
export { Auth as Auth, type Account as Account, type AuthResponse as AuthResponse, type MessageResponse as MessageResponse, type Organization as Organization, type AuthConfirmPasswordRecoveryParams as AuthConfirmPasswordRecoveryParams, type AuthLoginParams as AuthLoginParams, type AuthLogoutParams as AuthLogoutParams, type AuthRefreshAccessTokenParams as AuthRefreshAccessTokenParams, type AuthRegisterAccountParams as AuthRegisterAccountParams, type AuthRequestPasswordRecoveryParams as AuthRequestPasswordRecoveryParams, };
|
|
17
17
|
}
|
package/resources/v1/v1.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.d.ts","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EACL,OAAO,EACP,IAAI,EACJ,iCAAiC,EACjC,eAAe,EACf,gBAAgB,EAChB,4BAA4B,EAC5B,yBAAyB,EACzB,iCAAiC,EACjC,YAAY,EACZ,eAAe,EACf,YAAY,EACb;OACM,KAAK,WAAW;OAChB,EACL,oBAAoB,EACpB,oBAAoB,EACpB,OAAO,EACP,mBAAmB,EACnB,qBAAqB,EACrB,eAAe,EACf,mBAAmB,EACnB,QAAQ,EACR,oBAAoB,EACrB;OACM,KAAK,YAAY;OACjB,EACL,SAAS,EACT,gBAAgB,EAChB,eAAe,EACf,WAAW,EACX,oBAAoB,EACpB,gBAAgB,EAChB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACzB;AAED,qBAAa,EAAG,SAAQ,WAAW;IACjC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;IAC7E,QAAQ,EAAE,WAAW,CAAC,QAAQ,CAA0C;IACxE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;CACrD;AAMD,MAAM,CAAC,OAAO,WAAW,EAAE,CAAC;IAC1B,OAAO,EACL,SAAS,IAAI,SAAS,EACtB,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,WAAW,IAAI,WAAW,EAC/B,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,Q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EACZ,KAAK,OAAO,IAAI,OAAO,EACvB,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,YAAY,IAAI,YAAY,EACjC,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iCAAiC,IAAI,iCAAiC,GAC5E,CAAC;CACH"}
|
package/resources/v1/v1.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAYgB;AAChB,mEAA0C;AAC1C,4CAUoB;AACpB,+EAAsD;AACtD,
|
|
1
|
+
{"version":3,"file":"v1.js","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,2DAAkC;AAClC,oCAYgB;AAChB,mEAA0C;AAC1C,4CAUoB;AACpB,+EAAsD;AACtD,wDAiB+B;AAE/B,MAAa,EAAG,SAAQ,sBAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAJD,gBAIC;AAED,EAAE,CAAC,SAAS,GAAG,qBAAS,CAAC;AACzB,EAAE,CAAC,QAAQ,GAAG,mBAAQ,CAAC;AACvB,EAAE,CAAC,IAAI,GAAG,WAAI,CAAC"}
|
package/resources/v1/v1.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAEL,IAAI,GAUL;OACM,KAAK,WAAW;OAChB,EAQL,QAAQ,GAET;OACM,KAAK,YAAY;OACjB,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"v1.mjs","sourceRoot":"","sources":["../../src/resources/v1/v1.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OACf,KAAK,OAAO;OACZ,EAEL,IAAI,GAUL;OACM,KAAK,WAAW;OAChB,EAQL,QAAQ,GAET;OACM,KAAK,YAAY;OACjB,EACL,SAAS,GAgBV;AAED,MAAM,OAAO,EAAG,SAAQ,WAAW;IAAnC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC7E,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxE,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;CAAA;AAED,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;AACzB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;AACvB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC"}
|
|
@@ -4,7 +4,15 @@ import { APIResource } from '../../../core/resource';
|
|
|
4
4
|
import * as EventsAPI from './events';
|
|
5
5
|
import { EventRecentParams, Events } from './events';
|
|
6
6
|
import * as VisitorsAPI from './visitors';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
VisitorByCountryParams,
|
|
9
|
+
VisitorByDeviceParams,
|
|
10
|
+
VisitorByOriginParams,
|
|
11
|
+
VisitorProfileParams,
|
|
12
|
+
VisitorTimelineParams,
|
|
13
|
+
VisitorTopParams,
|
|
14
|
+
Visitors,
|
|
15
|
+
} from './visitors';
|
|
8
16
|
|
|
9
17
|
export class Analytics extends APIResource {
|
|
10
18
|
visitors: VisitorsAPI.Visitors = new VisitorsAPI.Visitors(this._client);
|
|
@@ -17,6 +25,12 @@ export interface CountryDataPoint {
|
|
|
17
25
|
unique_visitors?: number;
|
|
18
26
|
}
|
|
19
27
|
|
|
28
|
+
export interface EventsOverTimeDataPoint {
|
|
29
|
+
event_count?: number;
|
|
30
|
+
|
|
31
|
+
timestamp?: string;
|
|
32
|
+
}
|
|
33
|
+
|
|
20
34
|
export interface OriginDataPoint {
|
|
21
35
|
origin?: string;
|
|
22
36
|
|
|
@@ -51,6 +65,42 @@ export interface RecentEventsResponse {
|
|
|
51
65
|
total?: number;
|
|
52
66
|
}
|
|
53
67
|
|
|
68
|
+
export interface TopVisitor {
|
|
69
|
+
browser_name?: string;
|
|
70
|
+
|
|
71
|
+
device_type?: string;
|
|
72
|
+
|
|
73
|
+
event_count?: number;
|
|
74
|
+
|
|
75
|
+
first_seen?: string;
|
|
76
|
+
|
|
77
|
+
last_seen?: string;
|
|
78
|
+
|
|
79
|
+
location_city?: string;
|
|
80
|
+
|
|
81
|
+
location_country_iso?: string;
|
|
82
|
+
|
|
83
|
+
visitor_id?: string;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface TopVisitorsResponse {
|
|
87
|
+
total?: number;
|
|
88
|
+
|
|
89
|
+
visitors?: Array<TopVisitor>;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export interface UniqueVisitorsDataPoint {
|
|
93
|
+
desktop?: number;
|
|
94
|
+
|
|
95
|
+
mobile?: number;
|
|
96
|
+
|
|
97
|
+
timestamp?: string;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export interface UniqueVisitorsTimelineResponse {
|
|
101
|
+
data?: Array<UniqueVisitorsDataPoint>;
|
|
102
|
+
}
|
|
103
|
+
|
|
54
104
|
export interface VisitorDataPoint {
|
|
55
105
|
desktop?: number;
|
|
56
106
|
|
|
@@ -63,6 +113,44 @@ export interface VisitorDataPoint {
|
|
|
63
113
|
unknown?: number;
|
|
64
114
|
}
|
|
65
115
|
|
|
116
|
+
export interface VisitorEvent {
|
|
117
|
+
browser_name?: string;
|
|
118
|
+
|
|
119
|
+
client_timestamp_utc?: string;
|
|
120
|
+
|
|
121
|
+
device_type?: string;
|
|
122
|
+
|
|
123
|
+
event_name?: string;
|
|
124
|
+
|
|
125
|
+
page_path?: string;
|
|
126
|
+
|
|
127
|
+
page_url?: string;
|
|
128
|
+
|
|
129
|
+
referrer_url?: string;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export interface VisitorProfileResponse {
|
|
133
|
+
events?: Array<VisitorEvent>;
|
|
134
|
+
|
|
135
|
+
events_over_time?: Array<EventsOverTimeDataPoint>;
|
|
136
|
+
|
|
137
|
+
first_referrer_url?: string;
|
|
138
|
+
|
|
139
|
+
first_seen?: string;
|
|
140
|
+
|
|
141
|
+
first_traffic_origin?: string;
|
|
142
|
+
|
|
143
|
+
last_seen?: string;
|
|
144
|
+
|
|
145
|
+
location_city?: string;
|
|
146
|
+
|
|
147
|
+
location_country_iso?: string;
|
|
148
|
+
|
|
149
|
+
total_events?: number;
|
|
150
|
+
|
|
151
|
+
visitor_id?: string;
|
|
152
|
+
}
|
|
153
|
+
|
|
66
154
|
export interface VisitorsByCountryResponse {
|
|
67
155
|
data?: Array<CountryDataPoint>;
|
|
68
156
|
}
|
|
@@ -81,10 +169,17 @@ Analytics.Events = Events;
|
|
|
81
169
|
export declare namespace Analytics {
|
|
82
170
|
export {
|
|
83
171
|
type CountryDataPoint as CountryDataPoint,
|
|
172
|
+
type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
|
|
84
173
|
type OriginDataPoint as OriginDataPoint,
|
|
85
174
|
type RecentEvent as RecentEvent,
|
|
86
175
|
type RecentEventsResponse as RecentEventsResponse,
|
|
176
|
+
type TopVisitor as TopVisitor,
|
|
177
|
+
type TopVisitorsResponse as TopVisitorsResponse,
|
|
178
|
+
type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint,
|
|
179
|
+
type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse,
|
|
87
180
|
type VisitorDataPoint as VisitorDataPoint,
|
|
181
|
+
type VisitorEvent as VisitorEvent,
|
|
182
|
+
type VisitorProfileResponse as VisitorProfileResponse,
|
|
88
183
|
type VisitorsByCountryResponse as VisitorsByCountryResponse,
|
|
89
184
|
type VisitorsByDeviceResponse as VisitorsByDeviceResponse,
|
|
90
185
|
type VisitorsByOriginResponse as VisitorsByOriginResponse,
|
|
@@ -95,6 +190,9 @@ export declare namespace Analytics {
|
|
|
95
190
|
type VisitorByCountryParams as VisitorByCountryParams,
|
|
96
191
|
type VisitorByDeviceParams as VisitorByDeviceParams,
|
|
97
192
|
type VisitorByOriginParams as VisitorByOriginParams,
|
|
193
|
+
type VisitorProfileParams as VisitorProfileParams,
|
|
194
|
+
type VisitorTimelineParams as VisitorTimelineParams,
|
|
195
|
+
type VisitorTopParams as VisitorTopParams,
|
|
98
196
|
};
|
|
99
197
|
|
|
100
198
|
export { Events as Events, type EventRecentParams as EventRecentParams };
|
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
export {
|
|
4
4
|
Analytics,
|
|
5
5
|
type CountryDataPoint,
|
|
6
|
+
type EventsOverTimeDataPoint,
|
|
6
7
|
type OriginDataPoint,
|
|
7
8
|
type RecentEvent,
|
|
8
9
|
type RecentEventsResponse,
|
|
10
|
+
type TopVisitor,
|
|
11
|
+
type TopVisitorsResponse,
|
|
12
|
+
type UniqueVisitorsDataPoint,
|
|
13
|
+
type UniqueVisitorsTimelineResponse,
|
|
9
14
|
type VisitorDataPoint,
|
|
15
|
+
type VisitorEvent,
|
|
16
|
+
type VisitorProfileResponse,
|
|
10
17
|
type VisitorsByCountryResponse,
|
|
11
18
|
type VisitorsByDeviceResponse,
|
|
12
19
|
type VisitorsByOriginResponse,
|
|
@@ -17,4 +24,7 @@ export {
|
|
|
17
24
|
type VisitorByCountryParams,
|
|
18
25
|
type VisitorByDeviceParams,
|
|
19
26
|
type VisitorByOriginParams,
|
|
27
|
+
type VisitorProfileParams,
|
|
28
|
+
type VisitorTimelineParams,
|
|
29
|
+
type VisitorTopParams,
|
|
20
30
|
} from './visitors';
|
|
@@ -63,6 +63,62 @@ export class Visitors extends APIResource {
|
|
|
63
63
|
): APIPromise<AnalyticsAPI.VisitorsByOriginResponse> {
|
|
64
64
|
return this._client.get('/api/v1/analytics/visitors/origin', { query, ...options });
|
|
65
65
|
}
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Get detailed information about a specific visitor including their event history
|
|
69
|
+
* and aggregated statistics
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const visitorProfileResponse =
|
|
74
|
+
* await client.v1.analytics.visitors.profile({
|
|
75
|
+
* project_id: 'project_id',
|
|
76
|
+
* visitor_id: 'visitor_id',
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
profile(
|
|
81
|
+
query: VisitorProfileParams,
|
|
82
|
+
options?: RequestOptions,
|
|
83
|
+
): APIPromise<AnalyticsAPI.VisitorProfileResponse> {
|
|
84
|
+
return this._client.get('/api/v1/analytics/visitors/profile', { query, ...options });
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* Get unique visitor counts over time, split by mobile and desktop devices for
|
|
89
|
+
* chart visualization
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* ```ts
|
|
93
|
+
* const uniqueVisitorsTimelineResponse =
|
|
94
|
+
* await client.v1.analytics.visitors.timeline({
|
|
95
|
+
* project_id: 'project_id',
|
|
96
|
+
* time_range: 'last_hour',
|
|
97
|
+
* });
|
|
98
|
+
* ```
|
|
99
|
+
*/
|
|
100
|
+
timeline(
|
|
101
|
+
query: VisitorTimelineParams,
|
|
102
|
+
options?: RequestOptions,
|
|
103
|
+
): APIPromise<AnalyticsAPI.UniqueVisitorsTimelineResponse> {
|
|
104
|
+
return this._client.get('/api/v1/analytics/visitors/timeline', { query, ...options });
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Get a list of the most active visitors ranked by event count
|
|
109
|
+
*
|
|
110
|
+
* @example
|
|
111
|
+
* ```ts
|
|
112
|
+
* const topVisitorsResponse =
|
|
113
|
+
* await client.v1.analytics.visitors.top({
|
|
114
|
+
* project_id: 'project_id',
|
|
115
|
+
* time_range: 'last_hour',
|
|
116
|
+
* });
|
|
117
|
+
* ```
|
|
118
|
+
*/
|
|
119
|
+
top(query: VisitorTopParams, options?: RequestOptions): APIPromise<AnalyticsAPI.TopVisitorsResponse> {
|
|
120
|
+
return this._client.get('/api/v1/analytics/visitors/top', { query, ...options });
|
|
121
|
+
}
|
|
66
122
|
}
|
|
67
123
|
|
|
68
124
|
export interface VisitorByCountryParams {
|
|
@@ -101,10 +157,54 @@ export interface VisitorByOriginParams {
|
|
|
101
157
|
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
102
158
|
}
|
|
103
159
|
|
|
160
|
+
export interface VisitorProfileParams {
|
|
161
|
+
/**
|
|
162
|
+
* Project ID
|
|
163
|
+
*/
|
|
164
|
+
project_id: string;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Visitor ID
|
|
168
|
+
*/
|
|
169
|
+
visitor_id: string;
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
export interface VisitorTimelineParams {
|
|
173
|
+
/**
|
|
174
|
+
* Project ID
|
|
175
|
+
*/
|
|
176
|
+
project_id: string;
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
* Time range
|
|
180
|
+
*/
|
|
181
|
+
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export interface VisitorTopParams {
|
|
185
|
+
/**
|
|
186
|
+
* Project ID
|
|
187
|
+
*/
|
|
188
|
+
project_id: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Time range
|
|
192
|
+
*/
|
|
193
|
+
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Maximum number of visitors to return (default: 50)
|
|
197
|
+
*/
|
|
198
|
+
limit?: number;
|
|
199
|
+
}
|
|
200
|
+
|
|
104
201
|
export declare namespace Visitors {
|
|
105
202
|
export {
|
|
106
203
|
type VisitorByCountryParams as VisitorByCountryParams,
|
|
107
204
|
type VisitorByDeviceParams as VisitorByDeviceParams,
|
|
108
205
|
type VisitorByOriginParams as VisitorByOriginParams,
|
|
206
|
+
type VisitorProfileParams as VisitorProfileParams,
|
|
207
|
+
type VisitorTimelineParams as VisitorTimelineParams,
|
|
208
|
+
type VisitorTopParams as VisitorTopParams,
|
|
109
209
|
};
|
|
110
210
|
}
|
|
@@ -3,10 +3,17 @@
|
|
|
3
3
|
export {
|
|
4
4
|
Analytics,
|
|
5
5
|
type CountryDataPoint,
|
|
6
|
+
type EventsOverTimeDataPoint,
|
|
6
7
|
type OriginDataPoint,
|
|
7
8
|
type RecentEvent,
|
|
8
9
|
type RecentEventsResponse,
|
|
10
|
+
type TopVisitor,
|
|
11
|
+
type TopVisitorsResponse,
|
|
12
|
+
type UniqueVisitorsDataPoint,
|
|
13
|
+
type UniqueVisitorsTimelineResponse,
|
|
9
14
|
type VisitorDataPoint,
|
|
15
|
+
type VisitorEvent,
|
|
16
|
+
type VisitorProfileResponse,
|
|
10
17
|
type VisitorsByCountryResponse,
|
|
11
18
|
type VisitorsByDeviceResponse,
|
|
12
19
|
type VisitorsByOriginResponse,
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -31,10 +31,17 @@ import * as AnalyticsAPI from './analytics/analytics';
|
|
|
31
31
|
import {
|
|
32
32
|
Analytics,
|
|
33
33
|
CountryDataPoint,
|
|
34
|
+
EventsOverTimeDataPoint,
|
|
34
35
|
OriginDataPoint,
|
|
35
36
|
RecentEvent,
|
|
36
37
|
RecentEventsResponse,
|
|
38
|
+
TopVisitor,
|
|
39
|
+
TopVisitorsResponse,
|
|
40
|
+
UniqueVisitorsDataPoint,
|
|
41
|
+
UniqueVisitorsTimelineResponse,
|
|
37
42
|
VisitorDataPoint,
|
|
43
|
+
VisitorEvent,
|
|
44
|
+
VisitorProfileResponse,
|
|
38
45
|
VisitorsByCountryResponse,
|
|
39
46
|
VisitorsByDeviceResponse,
|
|
40
47
|
VisitorsByOriginResponse,
|
|
@@ -54,10 +61,17 @@ export declare namespace V1 {
|
|
|
54
61
|
export {
|
|
55
62
|
Analytics as Analytics,
|
|
56
63
|
type CountryDataPoint as CountryDataPoint,
|
|
64
|
+
type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
|
|
57
65
|
type OriginDataPoint as OriginDataPoint,
|
|
58
66
|
type RecentEvent as RecentEvent,
|
|
59
67
|
type RecentEventsResponse as RecentEventsResponse,
|
|
68
|
+
type TopVisitor as TopVisitor,
|
|
69
|
+
type TopVisitorsResponse as TopVisitorsResponse,
|
|
70
|
+
type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint,
|
|
71
|
+
type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse,
|
|
60
72
|
type VisitorDataPoint as VisitorDataPoint,
|
|
73
|
+
type VisitorEvent as VisitorEvent,
|
|
74
|
+
type VisitorProfileResponse as VisitorProfileResponse,
|
|
61
75
|
type VisitorsByCountryResponse as VisitorsByCountryResponse,
|
|
62
76
|
type VisitorsByDeviceResponse as VisitorsByDeviceResponse,
|
|
63
77
|
type VisitorsByOriginResponse as VisitorsByOriginResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.3.0'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.
|
|
1
|
+
export declare const VERSION = "0.3.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.3.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|