zorihq 0.6.0 → 0.8.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 +179 -5
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +179 -5
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js +4 -0
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs +4 -0
- 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 +4 -3
- package/resources/v1/analytics/index.d.mts.map +1 -1
- package/resources/v1/analytics/index.d.ts +4 -3
- package/resources/v1/analytics/index.d.ts.map +1 -1
- package/resources/v1/analytics/index.js +3 -1
- package/resources/v1/analytics/index.js.map +1 -1
- package/resources/v1/analytics/index.mjs +1 -0
- package/resources/v1/analytics/index.mjs.map +1 -1
- package/resources/v1/analytics/revenue.d.mts +60 -0
- package/resources/v1/analytics/revenue.d.mts.map +1 -0
- package/resources/v1/analytics/revenue.d.ts +60 -0
- package/resources/v1/analytics/revenue.d.ts.map +1 -0
- package/resources/v1/analytics/revenue.js +39 -0
- package/resources/v1/analytics/revenue.js.map +1 -0
- package/resources/v1/analytics/revenue.mjs +35 -0
- package/resources/v1/analytics/revenue.mjs.map +1 -0
- package/resources/v1/analytics/visitors.d.mts +27 -1
- package/resources/v1/analytics/visitors.d.mts.map +1 -1
- package/resources/v1/analytics/visitors.d.ts +27 -1
- package/resources/v1/analytics/visitors.d.ts.map +1 -1
- package/resources/v1/analytics/visitors.js +16 -0
- package/resources/v1/analytics/visitors.js.map +1 -1
- package/resources/v1/analytics/visitors.mjs +16 -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 +273 -2
- package/src/resources/v1/analytics/events.ts +66 -2
- package/src/resources/v1/analytics/index.ts +11 -1
- package/src/resources/v1/analytics/revenue.ts +79 -0
- package/src/resources/v1/analytics/visitors.ts +39 -0
- package/src/resources/v1/index.ts +8 -0
- package/src/resources/v1/v1.ts +16 -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
|
@@ -64,6 +64,26 @@ export class Visitors extends APIResource {
|
|
|
64
64
|
return this._client.get('/api/v1/analytics/visitors/origin', { query, ...options });
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
+
/**
|
|
68
|
+
* Manually identify a visitor by updating their profile information from the
|
|
69
|
+
* dashboard
|
|
70
|
+
*
|
|
71
|
+
* @example
|
|
72
|
+
* ```ts
|
|
73
|
+
* const manualIdentifyResponse =
|
|
74
|
+
* await client.v1.analytics.visitors.identify({
|
|
75
|
+
* project_id: 'project_id',
|
|
76
|
+
* visitor_id: 'visitor_id',
|
|
77
|
+
* });
|
|
78
|
+
* ```
|
|
79
|
+
*/
|
|
80
|
+
identify(
|
|
81
|
+
body: VisitorIdentifyParams,
|
|
82
|
+
options?: RequestOptions,
|
|
83
|
+
): APIPromise<AnalyticsAPI.ManualIdentifyResponse> {
|
|
84
|
+
return this._client.post('/api/v1/analytics/visitors/identify', { body, ...options });
|
|
85
|
+
}
|
|
86
|
+
|
|
67
87
|
/**
|
|
68
88
|
* Get detailed information about a specific visitor including their event history
|
|
69
89
|
* and aggregated statistics
|
|
@@ -157,6 +177,24 @@ export interface VisitorByOriginParams {
|
|
|
157
177
|
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
158
178
|
}
|
|
159
179
|
|
|
180
|
+
export interface VisitorIdentifyParams {
|
|
181
|
+
project_id: string;
|
|
182
|
+
|
|
183
|
+
visitor_id: string;
|
|
184
|
+
|
|
185
|
+
additional_properties?: { [key: string]: unknown };
|
|
186
|
+
|
|
187
|
+
email?: string;
|
|
188
|
+
|
|
189
|
+
external_id?: string;
|
|
190
|
+
|
|
191
|
+
name?: string;
|
|
192
|
+
|
|
193
|
+
phone?: string;
|
|
194
|
+
|
|
195
|
+
user_id?: string;
|
|
196
|
+
}
|
|
197
|
+
|
|
160
198
|
export interface VisitorProfileParams {
|
|
161
199
|
/**
|
|
162
200
|
* Project ID
|
|
@@ -203,6 +241,7 @@ export declare namespace Visitors {
|
|
|
203
241
|
type VisitorByCountryParams as VisitorByCountryParams,
|
|
204
242
|
type VisitorByDeviceParams as VisitorByDeviceParams,
|
|
205
243
|
type VisitorByOriginParams as VisitorByOriginParams,
|
|
244
|
+
type VisitorIdentifyParams as VisitorIdentifyParams,
|
|
206
245
|
type VisitorProfileParams as VisitorProfileParams,
|
|
207
246
|
type VisitorTimelineParams as VisitorTimelineParams,
|
|
208
247
|
type VisitorTopParams as VisitorTopParams,
|
|
@@ -10,18 +10,26 @@ export {
|
|
|
10
10
|
type CohortData,
|
|
11
11
|
type CountryDataPoint,
|
|
12
12
|
type DashboardMetricsResponse,
|
|
13
|
+
type EventFilterOptionsResponse,
|
|
13
14
|
type EventsOverTimeDataPoint,
|
|
15
|
+
type ManualIdentifyRequest,
|
|
16
|
+
type ManualIdentifyResponse,
|
|
14
17
|
type OriginDataPoint,
|
|
15
18
|
type RecentEvent,
|
|
16
19
|
type RecentEventsResponse,
|
|
17
20
|
type ReturnRateResponse,
|
|
21
|
+
type RevenueByUtmResponse,
|
|
22
|
+
type RevenueTimelineDataPoint,
|
|
23
|
+
type RevenueTimelineResponse,
|
|
18
24
|
type SessionMetricsResponse,
|
|
19
25
|
type TopVisitor,
|
|
20
26
|
type TopVisitorsResponse,
|
|
21
27
|
type UniqueVisitorsDataPoint,
|
|
22
28
|
type UniqueVisitorsTimelineResponse,
|
|
29
|
+
type UtmRevenueDataPoint,
|
|
23
30
|
type VisitorDataPoint,
|
|
24
31
|
type VisitorEvent,
|
|
32
|
+
type VisitorPayment,
|
|
25
33
|
type VisitorProfileResponse,
|
|
26
34
|
type VisitorsByCountryResponse,
|
|
27
35
|
type VisitorsByDeviceResponse,
|
package/src/resources/v1/v1.ts
CHANGED
|
@@ -51,18 +51,26 @@ import {
|
|
|
51
51
|
CohortData,
|
|
52
52
|
CountryDataPoint,
|
|
53
53
|
DashboardMetricsResponse,
|
|
54
|
+
EventFilterOptionsResponse,
|
|
54
55
|
EventsOverTimeDataPoint,
|
|
56
|
+
ManualIdentifyRequest,
|
|
57
|
+
ManualIdentifyResponse,
|
|
55
58
|
OriginDataPoint,
|
|
56
59
|
RecentEvent,
|
|
57
60
|
RecentEventsResponse,
|
|
58
61
|
ReturnRateResponse,
|
|
62
|
+
RevenueByUtmResponse,
|
|
63
|
+
RevenueTimelineDataPoint,
|
|
64
|
+
RevenueTimelineResponse,
|
|
59
65
|
SessionMetricsResponse,
|
|
60
66
|
TopVisitor,
|
|
61
67
|
TopVisitorsResponse,
|
|
62
68
|
UniqueVisitorsDataPoint,
|
|
63
69
|
UniqueVisitorsTimelineResponse,
|
|
70
|
+
UtmRevenueDataPoint,
|
|
64
71
|
VisitorDataPoint,
|
|
65
72
|
VisitorEvent,
|
|
73
|
+
VisitorPayment,
|
|
66
74
|
VisitorProfileResponse,
|
|
67
75
|
VisitorsByCountryResponse,
|
|
68
76
|
VisitorsByDeviceResponse,
|
|
@@ -94,18 +102,26 @@ export declare namespace V1 {
|
|
|
94
102
|
type CohortData as CohortData,
|
|
95
103
|
type CountryDataPoint as CountryDataPoint,
|
|
96
104
|
type DashboardMetricsResponse as DashboardMetricsResponse,
|
|
105
|
+
type EventFilterOptionsResponse as EventFilterOptionsResponse,
|
|
97
106
|
type EventsOverTimeDataPoint as EventsOverTimeDataPoint,
|
|
107
|
+
type ManualIdentifyRequest as ManualIdentifyRequest,
|
|
108
|
+
type ManualIdentifyResponse as ManualIdentifyResponse,
|
|
98
109
|
type OriginDataPoint as OriginDataPoint,
|
|
99
110
|
type RecentEvent as RecentEvent,
|
|
100
111
|
type RecentEventsResponse as RecentEventsResponse,
|
|
101
112
|
type ReturnRateResponse as ReturnRateResponse,
|
|
113
|
+
type RevenueByUtmResponse as RevenueByUtmResponse,
|
|
114
|
+
type RevenueTimelineDataPoint as RevenueTimelineDataPoint,
|
|
115
|
+
type RevenueTimelineResponse as RevenueTimelineResponse,
|
|
102
116
|
type SessionMetricsResponse as SessionMetricsResponse,
|
|
103
117
|
type TopVisitor as TopVisitor,
|
|
104
118
|
type TopVisitorsResponse as TopVisitorsResponse,
|
|
105
119
|
type UniqueVisitorsDataPoint as UniqueVisitorsDataPoint,
|
|
106
120
|
type UniqueVisitorsTimelineResponse as UniqueVisitorsTimelineResponse,
|
|
121
|
+
type UtmRevenueDataPoint as UtmRevenueDataPoint,
|
|
107
122
|
type VisitorDataPoint as VisitorDataPoint,
|
|
108
123
|
type VisitorEvent as VisitorEvent,
|
|
124
|
+
type VisitorPayment as VisitorPayment,
|
|
109
125
|
type VisitorProfileResponse as VisitorProfileResponse,
|
|
110
126
|
type VisitorsByCountryResponse as VisitorsByCountryResponse,
|
|
111
127
|
type VisitorsByDeviceResponse as VisitorsByDeviceResponse,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.
|
|
1
|
+
export const VERSION = '0.8.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.8.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.8.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.8.0'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|