zorihq 0.11.0 → 0.12.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 +12 -0
- package/package.json +1 -1
- package/resources/v1/analytics/analytics.d.mts +13 -43
- package/resources/v1/analytics/analytics.d.mts.map +1 -1
- package/resources/v1/analytics/analytics.d.ts +13 -43
- package/resources/v1/analytics/analytics.d.ts.map +1 -1
- package/resources/v1/analytics/analytics.js +4 -2
- package/resources/v1/analytics/analytics.js.map +1 -1
- package/resources/v1/analytics/analytics.mjs +4 -2
- package/resources/v1/analytics/analytics.mjs.map +1 -1
- package/resources/v1/analytics/events.d.mts +30 -42
- package/resources/v1/analytics/events.d.mts.map +1 -1
- package/resources/v1/analytics/events.d.ts +30 -42
- package/resources/v1/analytics/events.d.ts.map +1 -1
- package/resources/v1/analytics/events.js +8 -2
- package/resources/v1/analytics/events.js.map +1 -1
- package/resources/v1/analytics/events.mjs +8 -2
- package/resources/v1/analytics/events.mjs.map +1 -1
- package/resources/v1/analytics/retention.d.mts +39 -34
- package/resources/v1/analytics/retention.d.mts.map +1 -1
- package/resources/v1/analytics/retention.d.ts +39 -34
- package/resources/v1/analytics/retention.d.ts.map +1 -1
- package/resources/v1/analytics/retention.js +12 -6
- package/resources/v1/analytics/retention.js.map +1 -1
- package/resources/v1/analytics/retention.mjs +12 -6
- package/resources/v1/analytics/retention.mjs.map +1 -1
- package/resources/v1/analytics/sessions.d.mts +26 -24
- package/resources/v1/analytics/sessions.d.mts.map +1 -1
- package/resources/v1/analytics/sessions.d.ts +26 -24
- package/resources/v1/analytics/sessions.d.ts.map +1 -1
- package/resources/v1/analytics/sessions.js +8 -4
- package/resources/v1/analytics/sessions.js.map +1 -1
- package/resources/v1/analytics/sessions.mjs +8 -4
- package/resources/v1/analytics/sessions.mjs.map +1 -1
- package/resources/v1/analytics/users.d.mts +13 -5
- package/resources/v1/analytics/users.d.mts.map +1 -1
- package/resources/v1/analytics/users.d.ts +13 -5
- package/resources/v1/analytics/users.d.ts.map +1 -1
- package/resources/v1/analytics/users.js +4 -1
- package/resources/v1/analytics/users.js.map +1 -1
- package/resources/v1/analytics/users.mjs +4 -1
- package/resources/v1/analytics/users.mjs.map +1 -1
- package/resources/v1/analytics/visitors.d.mts +78 -64
- package/resources/v1/analytics/visitors.d.mts.map +1 -1
- package/resources/v1/analytics/visitors.d.ts +78 -64
- package/resources/v1/analytics/visitors.d.ts.map +1 -1
- package/resources/v1/analytics/visitors.js +24 -12
- package/resources/v1/analytics/visitors.js.map +1 -1
- package/resources/v1/analytics/visitors.mjs +24 -12
- package/resources/v1/analytics/visitors.mjs.map +1 -1
- package/resources/v1/index.d.mts +1 -1
- package/resources/v1/index.d.ts +1 -1
- package/resources/v1/index.js +4 -4
- package/resources/v1/index.js.map +1 -1
- package/resources/v1/index.mjs +1 -1
- package/resources/v1/payment-providers/index.d.mts +3 -0
- package/resources/v1/payment-providers/index.d.mts.map +1 -0
- package/resources/v1/payment-providers/index.d.ts +3 -0
- package/resources/v1/payment-providers/index.d.ts.map +1 -0
- package/resources/v1/payment-providers/index.js +9 -0
- package/resources/v1/payment-providers/index.js.map +1 -0
- package/resources/v1/payment-providers/index.mjs +4 -0
- package/resources/v1/payment-providers/index.mjs.map +1 -0
- package/resources/v1/payment-providers/payment-providers.d.mts +151 -0
- package/resources/v1/payment-providers/payment-providers.d.mts.map +1 -0
- package/resources/v1/payment-providers/payment-providers.d.ts +151 -0
- package/resources/v1/payment-providers/payment-providers.d.ts.map +1 -0
- package/resources/v1/payment-providers/payment-providers.js +98 -0
- package/resources/v1/payment-providers/payment-providers.js.map +1 -0
- package/resources/v1/payment-providers/payment-providers.mjs +93 -0
- package/resources/v1/payment-providers/payment-providers.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe/app.d.mts +39 -0
- package/resources/v1/payment-providers/stripe/app.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe/app.d.ts +39 -0
- package/resources/v1/payment-providers/stripe/app.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe/app.js +24 -0
- package/resources/v1/payment-providers/stripe/app.js.map +1 -0
- package/resources/v1/payment-providers/stripe/app.mjs +20 -0
- package/resources/v1/payment-providers/stripe/app.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe/index.d.mts +3 -0
- package/resources/v1/payment-providers/stripe/index.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe/index.d.ts +3 -0
- package/resources/v1/payment-providers/stripe/index.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe/index.js +9 -0
- package/resources/v1/payment-providers/stripe/index.js.map +1 -0
- package/resources/v1/payment-providers/stripe/index.mjs +4 -0
- package/resources/v1/payment-providers/stripe/index.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.d.mts +10 -0
- package/resources/v1/payment-providers/stripe/stripe.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.d.ts +10 -0
- package/resources/v1/payment-providers/stripe/stripe.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.js +17 -0
- package/resources/v1/payment-providers/stripe/stripe.js.map +1 -0
- package/resources/v1/payment-providers/stripe/stripe.mjs +12 -0
- package/resources/v1/payment-providers/stripe/stripe.mjs.map +1 -0
- package/resources/v1/payment-providers/stripe.d.mts +2 -0
- package/resources/v1/payment-providers/stripe.d.mts.map +1 -0
- package/resources/v1/payment-providers/stripe.d.ts +2 -0
- package/resources/v1/payment-providers/stripe.d.ts.map +1 -0
- package/resources/v1/payment-providers/stripe.js +6 -0
- package/resources/v1/payment-providers/stripe.js.map +1 -0
- package/resources/v1/payment-providers/stripe.mjs +3 -0
- package/resources/v1/payment-providers/stripe.mjs.map +1 -0
- package/resources/v1/payment-providers.d.mts +1 -149
- package/resources/v1/payment-providers.d.mts.map +1 -1
- package/resources/v1/payment-providers.d.ts +1 -149
- package/resources/v1/payment-providers.d.ts.map +1 -1
- package/resources/v1/payment-providers.js +2 -86
- package/resources/v1/payment-providers.js.map +1 -1
- package/resources/v1/payment-providers.mjs +1 -84
- package/resources/v1/payment-providers.mjs.map +1 -1
- package/resources/v1/revenue/cohort.d.mts +45 -0
- package/resources/v1/revenue/cohort.d.mts.map +1 -0
- package/resources/v1/revenue/cohort.d.ts +45 -0
- package/resources/v1/revenue/cohort.d.ts.map +1 -0
- package/resources/v1/revenue/cohort.js +24 -0
- package/resources/v1/revenue/cohort.js.map +1 -0
- package/resources/v1/revenue/cohort.mjs +20 -0
- package/resources/v1/revenue/cohort.mjs.map +1 -0
- package/resources/v1/revenue/index.d.mts +1 -0
- package/resources/v1/revenue/index.d.mts.map +1 -1
- package/resources/v1/revenue/index.d.ts +1 -0
- package/resources/v1/revenue/index.d.ts.map +1 -1
- package/resources/v1/revenue/index.js +3 -1
- package/resources/v1/revenue/index.js.map +1 -1
- package/resources/v1/revenue/index.mjs +1 -0
- package/resources/v1/revenue/index.mjs.map +1 -1
- package/resources/v1/revenue/revenue.d.mts +6 -75
- package/resources/v1/revenue/revenue.d.mts.map +1 -1
- package/resources/v1/revenue/revenue.d.ts +6 -75
- package/resources/v1/revenue/revenue.d.ts.map +1 -1
- package/resources/v1/revenue/revenue.js +4 -0
- package/resources/v1/revenue/revenue.js.map +1 -1
- package/resources/v1/revenue/revenue.mjs +4 -0
- package/resources/v1/revenue/revenue.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 +2 -2
- package/resources/v1/v1.js.map +1 -1
- package/resources/v1/v1.mjs +2 -2
- package/resources/v1/v1.mjs.map +1 -1
- package/src/resources/v1/analytics/analytics.ts +20 -43
- package/src/resources/v1/analytics/events.ts +42 -42
- package/src/resources/v1/analytics/retention.ts +59 -34
- package/src/resources/v1/analytics/sessions.ts +39 -24
- package/src/resources/v1/analytics/users.ts +21 -5
- package/src/resources/v1/analytics/visitors.ts +119 -64
- package/src/resources/v1/index.ts +1 -1
- package/src/resources/v1/payment-providers/index.ts +17 -0
- package/src/resources/v1/payment-providers/payment-providers.ts +235 -0
- package/src/resources/v1/payment-providers/stripe/app.ts +56 -0
- package/src/resources/v1/payment-providers/stripe/index.ts +4 -0
- package/src/resources/v1/payment-providers/stripe/stripe.ts +19 -0
- package/src/resources/v1/payment-providers/stripe.ts +3 -0
- package/src/resources/v1/payment-providers.ts +1 -228
- package/src/resources/v1/revenue/cohort.ts +72 -0
- package/src/resources/v1/revenue/index.ts +1 -0
- package/src/resources/v1/revenue/revenue.ts +14 -75
- package/src/resources/v1/v1.ts +15 -15
- 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
|
@@ -13,8 +13,10 @@ export class Retention extends APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const churnRateResponse =
|
|
15
15
|
* await client.v1.analytics.retention.churnRate({
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* limit: 1,
|
|
17
|
+
* offset: 0,
|
|
18
|
+
* projectID: 'projectID',
|
|
19
|
+
* timeBoundaries: 'last_hour',
|
|
18
20
|
* });
|
|
19
21
|
* ```
|
|
20
22
|
*/
|
|
@@ -32,8 +34,10 @@ export class Retention extends APIResource {
|
|
|
32
34
|
* ```ts
|
|
33
35
|
* const cohortAnalysisResponse =
|
|
34
36
|
* await client.v1.analytics.retention.cohorts({
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
+
* limit: 1,
|
|
38
|
+
* offset: 0,
|
|
39
|
+
* projectID: 'projectID',
|
|
40
|
+
* timeBoundaries: 'last_hour',
|
|
37
41
|
* });
|
|
38
42
|
* ```
|
|
39
43
|
*/
|
|
@@ -51,8 +55,10 @@ export class Retention extends APIResource {
|
|
|
51
55
|
* ```ts
|
|
52
56
|
* const returnRateResponse =
|
|
53
57
|
* await client.v1.analytics.retention.returnRate({
|
|
54
|
-
*
|
|
55
|
-
*
|
|
58
|
+
* limit: 1,
|
|
59
|
+
* offset: 0,
|
|
60
|
+
* projectID: 'projectID',
|
|
61
|
+
* timeBoundaries: 'last_hour',
|
|
56
62
|
* });
|
|
57
63
|
* ```
|
|
58
64
|
*/
|
|
@@ -65,44 +71,63 @@ export class Retention extends APIResource {
|
|
|
65
71
|
}
|
|
66
72
|
|
|
67
73
|
export interface RetentionChurnRateParams {
|
|
68
|
-
|
|
69
|
-
* Project ID
|
|
70
|
-
*/
|
|
71
|
-
project_id: string;
|
|
74
|
+
limit: number;
|
|
72
75
|
|
|
73
|
-
|
|
74
|
-
* Time range
|
|
75
|
-
*/
|
|
76
|
-
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
76
|
+
offset: number;
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
projectID: string;
|
|
79
|
+
|
|
80
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
81
|
+
|
|
82
|
+
customerID?: string;
|
|
83
|
+
|
|
84
|
+
referrer?: string;
|
|
85
|
+
|
|
86
|
+
utmtag?: string;
|
|
87
|
+
|
|
88
|
+
utmtagValue?: string;
|
|
89
|
+
|
|
90
|
+
visitorID?: string;
|
|
82
91
|
}
|
|
83
92
|
|
|
84
93
|
export interface RetentionCohortsParams {
|
|
85
|
-
|
|
86
|
-
* Project ID
|
|
87
|
-
*/
|
|
88
|
-
project_id: string;
|
|
94
|
+
limit: number;
|
|
89
95
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
96
|
+
offset: number;
|
|
97
|
+
|
|
98
|
+
projectID: string;
|
|
99
|
+
|
|
100
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
101
|
+
|
|
102
|
+
customerID?: string;
|
|
103
|
+
|
|
104
|
+
referrer?: string;
|
|
105
|
+
|
|
106
|
+
utmtag?: string;
|
|
107
|
+
|
|
108
|
+
utmtagValue?: string;
|
|
109
|
+
|
|
110
|
+
visitorID?: string;
|
|
94
111
|
}
|
|
95
112
|
|
|
96
113
|
export interface RetentionReturnRateParams {
|
|
97
|
-
|
|
98
|
-
* Project ID
|
|
99
|
-
*/
|
|
100
|
-
project_id: string;
|
|
114
|
+
limit: number;
|
|
101
115
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
116
|
+
offset: number;
|
|
117
|
+
|
|
118
|
+
projectID: string;
|
|
119
|
+
|
|
120
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
121
|
+
|
|
122
|
+
customerID?: string;
|
|
123
|
+
|
|
124
|
+
referrer?: string;
|
|
125
|
+
|
|
126
|
+
utmtag?: string;
|
|
127
|
+
|
|
128
|
+
utmtagValue?: string;
|
|
129
|
+
|
|
130
|
+
visitorID?: string;
|
|
106
131
|
}
|
|
107
132
|
|
|
108
133
|
export declare namespace Retention {
|
|
@@ -13,8 +13,10 @@ export class Sessions extends APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const bounceRateResponse =
|
|
15
15
|
* await client.v1.analytics.sessions.bounceRate({
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* limit: 1,
|
|
17
|
+
* offset: 0,
|
|
18
|
+
* projectID: 'projectID',
|
|
19
|
+
* timeBoundaries: 'last_hour',
|
|
18
20
|
* });
|
|
19
21
|
* ```
|
|
20
22
|
*/
|
|
@@ -32,8 +34,10 @@ export class Sessions extends APIResource {
|
|
|
32
34
|
* ```ts
|
|
33
35
|
* const sessionMetricsResponse =
|
|
34
36
|
* await client.v1.analytics.sessions.metrics({
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
+
* limit: 1,
|
|
38
|
+
* offset: 0,
|
|
39
|
+
* projectID: 'projectID',
|
|
40
|
+
* timeBoundaries: 'last_hour',
|
|
37
41
|
* });
|
|
38
42
|
* ```
|
|
39
43
|
*/
|
|
@@ -46,32 +50,43 @@ export class Sessions extends APIResource {
|
|
|
46
50
|
}
|
|
47
51
|
|
|
48
52
|
export interface SessionBounceRateParams {
|
|
49
|
-
|
|
50
|
-
* Project ID
|
|
51
|
-
*/
|
|
52
|
-
project_id: string;
|
|
53
|
+
limit: number;
|
|
53
54
|
|
|
54
|
-
|
|
55
|
-
* Time range
|
|
56
|
-
*/
|
|
57
|
-
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
55
|
+
offset: number;
|
|
58
56
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
57
|
+
projectID: string;
|
|
58
|
+
|
|
59
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
60
|
+
|
|
61
|
+
customerID?: string;
|
|
62
|
+
|
|
63
|
+
referrer?: string;
|
|
64
|
+
|
|
65
|
+
utmtag?: string;
|
|
66
|
+
|
|
67
|
+
utmtagValue?: string;
|
|
68
|
+
|
|
69
|
+
visitorID?: string;
|
|
63
70
|
}
|
|
64
71
|
|
|
65
72
|
export interface SessionMetricsParams {
|
|
66
|
-
|
|
67
|
-
* Project ID
|
|
68
|
-
*/
|
|
69
|
-
project_id: string;
|
|
73
|
+
limit: number;
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
offset: number;
|
|
76
|
+
|
|
77
|
+
projectID: string;
|
|
78
|
+
|
|
79
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
80
|
+
|
|
81
|
+
customerID?: string;
|
|
82
|
+
|
|
83
|
+
referrer?: string;
|
|
84
|
+
|
|
85
|
+
utmtag?: string;
|
|
86
|
+
|
|
87
|
+
utmtagValue?: string;
|
|
88
|
+
|
|
89
|
+
visitorID?: string;
|
|
75
90
|
}
|
|
76
91
|
|
|
77
92
|
export declare namespace Sessions {
|
|
@@ -13,7 +13,10 @@ export class Users extends APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const activeUsersResponse =
|
|
15
15
|
* await client.v1.analytics.users.active({
|
|
16
|
-
*
|
|
16
|
+
* limit: 1,
|
|
17
|
+
* offset: 0,
|
|
18
|
+
* projectID: 'projectID',
|
|
19
|
+
* timeBoundaries: 'last_hour',
|
|
17
20
|
* });
|
|
18
21
|
* ```
|
|
19
22
|
*/
|
|
@@ -23,10 +26,23 @@ export class Users extends APIResource {
|
|
|
23
26
|
}
|
|
24
27
|
|
|
25
28
|
export interface UserActiveParams {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
limit: number;
|
|
30
|
+
|
|
31
|
+
offset: number;
|
|
32
|
+
|
|
33
|
+
projectID: string;
|
|
34
|
+
|
|
35
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
36
|
+
|
|
37
|
+
customerID?: string;
|
|
38
|
+
|
|
39
|
+
referrer?: string;
|
|
40
|
+
|
|
41
|
+
utmtag?: string;
|
|
42
|
+
|
|
43
|
+
utmtagValue?: string;
|
|
44
|
+
|
|
45
|
+
visitorID?: string;
|
|
30
46
|
}
|
|
31
47
|
|
|
32
48
|
export declare namespace Users {
|
|
@@ -13,8 +13,10 @@ export class Visitors extends APIResource {
|
|
|
13
13
|
* ```ts
|
|
14
14
|
* const visitorsByCountryResponse =
|
|
15
15
|
* await client.v1.analytics.visitors.byCountry({
|
|
16
|
-
*
|
|
17
|
-
*
|
|
16
|
+
* limit: 1,
|
|
17
|
+
* offset: 0,
|
|
18
|
+
* projectID: 'projectID',
|
|
19
|
+
* timeBoundaries: 'last_hour',
|
|
18
20
|
* });
|
|
19
21
|
* ```
|
|
20
22
|
*/
|
|
@@ -33,8 +35,10 @@ export class Visitors extends APIResource {
|
|
|
33
35
|
* ```ts
|
|
34
36
|
* const visitorsByDeviceResponse =
|
|
35
37
|
* await client.v1.analytics.visitors.byDevice({
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
+
* limit: 1,
|
|
39
|
+
* offset: 0,
|
|
40
|
+
* projectID: 'projectID',
|
|
41
|
+
* timeBoundaries: 'last_hour',
|
|
38
42
|
* });
|
|
39
43
|
* ```
|
|
40
44
|
*/
|
|
@@ -52,8 +56,10 @@ export class Visitors extends APIResource {
|
|
|
52
56
|
* ```ts
|
|
53
57
|
* const visitorsByOriginResponse =
|
|
54
58
|
* await client.v1.analytics.visitors.byOrigin({
|
|
55
|
-
*
|
|
56
|
-
*
|
|
59
|
+
* limit: 1,
|
|
60
|
+
* offset: 0,
|
|
61
|
+
* projectID: 'projectID',
|
|
62
|
+
* timeBoundaries: 'last_hour',
|
|
57
63
|
* });
|
|
58
64
|
* ```
|
|
59
65
|
*/
|
|
@@ -92,8 +98,10 @@ export class Visitors extends APIResource {
|
|
|
92
98
|
* ```ts
|
|
93
99
|
* const visitorProfileResponse =
|
|
94
100
|
* await client.v1.analytics.visitors.profile({
|
|
95
|
-
*
|
|
96
|
-
*
|
|
101
|
+
* limit: 1,
|
|
102
|
+
* offset: 0,
|
|
103
|
+
* projectID: 'projectID',
|
|
104
|
+
* timeBoundaries: 'last_hour',
|
|
97
105
|
* });
|
|
98
106
|
* ```
|
|
99
107
|
*/
|
|
@@ -112,8 +120,10 @@ export class Visitors extends APIResource {
|
|
|
112
120
|
* ```ts
|
|
113
121
|
* const uniqueVisitorsTimelineResponse =
|
|
114
122
|
* await client.v1.analytics.visitors.timeline({
|
|
115
|
-
*
|
|
116
|
-
*
|
|
123
|
+
* limit: 1,
|
|
124
|
+
* offset: 0,
|
|
125
|
+
* projectID: 'projectID',
|
|
126
|
+
* timeBoundaries: 'last_hour',
|
|
117
127
|
* });
|
|
118
128
|
* ```
|
|
119
129
|
*/
|
|
@@ -131,8 +141,10 @@ export class Visitors extends APIResource {
|
|
|
131
141
|
* ```ts
|
|
132
142
|
* const topVisitorsResponse =
|
|
133
143
|
* await client.v1.analytics.visitors.top({
|
|
134
|
-
*
|
|
135
|
-
*
|
|
144
|
+
* limit: 1,
|
|
145
|
+
* offset: 0,
|
|
146
|
+
* projectID: 'projectID',
|
|
147
|
+
* timeBoundaries: 'last_hour',
|
|
136
148
|
* });
|
|
137
149
|
* ```
|
|
138
150
|
*/
|
|
@@ -142,39 +154,63 @@ export class Visitors extends APIResource {
|
|
|
142
154
|
}
|
|
143
155
|
|
|
144
156
|
export interface VisitorByCountryParams {
|
|
145
|
-
|
|
146
|
-
* Project ID
|
|
147
|
-
*/
|
|
148
|
-
project_id: string;
|
|
157
|
+
limit: number;
|
|
149
158
|
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
159
|
+
offset: number;
|
|
160
|
+
|
|
161
|
+
projectID: string;
|
|
162
|
+
|
|
163
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
164
|
+
|
|
165
|
+
customerID?: string;
|
|
166
|
+
|
|
167
|
+
referrer?: string;
|
|
168
|
+
|
|
169
|
+
utmtag?: string;
|
|
170
|
+
|
|
171
|
+
utmtagValue?: string;
|
|
172
|
+
|
|
173
|
+
visitorID?: string;
|
|
154
174
|
}
|
|
155
175
|
|
|
156
176
|
export interface VisitorByDeviceParams {
|
|
157
|
-
|
|
158
|
-
* Project ID
|
|
159
|
-
*/
|
|
160
|
-
project_id: string;
|
|
177
|
+
limit: number;
|
|
161
178
|
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
179
|
+
offset: number;
|
|
180
|
+
|
|
181
|
+
projectID: string;
|
|
182
|
+
|
|
183
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
184
|
+
|
|
185
|
+
customerID?: string;
|
|
186
|
+
|
|
187
|
+
referrer?: string;
|
|
188
|
+
|
|
189
|
+
utmtag?: string;
|
|
190
|
+
|
|
191
|
+
utmtagValue?: string;
|
|
192
|
+
|
|
193
|
+
visitorID?: string;
|
|
166
194
|
}
|
|
167
195
|
|
|
168
196
|
export interface VisitorByOriginParams {
|
|
169
|
-
|
|
170
|
-
* Project ID
|
|
171
|
-
*/
|
|
172
|
-
project_id: string;
|
|
197
|
+
limit: number;
|
|
173
198
|
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
199
|
+
offset: number;
|
|
200
|
+
|
|
201
|
+
projectID: string;
|
|
202
|
+
|
|
203
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
204
|
+
|
|
205
|
+
customerID?: string;
|
|
206
|
+
|
|
207
|
+
referrer?: string;
|
|
208
|
+
|
|
209
|
+
utmtag?: string;
|
|
210
|
+
|
|
211
|
+
utmtagValue?: string;
|
|
212
|
+
|
|
213
|
+
visitorID?: string;
|
|
178
214
|
}
|
|
179
215
|
|
|
180
216
|
export interface VisitorIdentifyParams {
|
|
@@ -196,44 +232,63 @@ export interface VisitorIdentifyParams {
|
|
|
196
232
|
}
|
|
197
233
|
|
|
198
234
|
export interface VisitorProfileParams {
|
|
199
|
-
|
|
200
|
-
* Project ID
|
|
201
|
-
*/
|
|
202
|
-
project_id: string;
|
|
235
|
+
limit: number;
|
|
203
236
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
237
|
+
offset: number;
|
|
238
|
+
|
|
239
|
+
projectID: string;
|
|
240
|
+
|
|
241
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
242
|
+
|
|
243
|
+
customerID?: string;
|
|
244
|
+
|
|
245
|
+
referrer?: string;
|
|
246
|
+
|
|
247
|
+
utmtag?: string;
|
|
248
|
+
|
|
249
|
+
utmtagValue?: string;
|
|
250
|
+
|
|
251
|
+
visitorID?: string;
|
|
208
252
|
}
|
|
209
253
|
|
|
210
254
|
export interface VisitorTimelineParams {
|
|
211
|
-
|
|
212
|
-
* Project ID
|
|
213
|
-
*/
|
|
214
|
-
project_id: string;
|
|
255
|
+
limit: number;
|
|
215
256
|
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
257
|
+
offset: number;
|
|
258
|
+
|
|
259
|
+
projectID: string;
|
|
260
|
+
|
|
261
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
262
|
+
|
|
263
|
+
customerID?: string;
|
|
264
|
+
|
|
265
|
+
referrer?: string;
|
|
266
|
+
|
|
267
|
+
utmtag?: string;
|
|
268
|
+
|
|
269
|
+
utmtagValue?: string;
|
|
270
|
+
|
|
271
|
+
visitorID?: string;
|
|
220
272
|
}
|
|
221
273
|
|
|
222
274
|
export interface VisitorTopParams {
|
|
223
|
-
|
|
224
|
-
* Project ID
|
|
225
|
-
*/
|
|
226
|
-
project_id: string;
|
|
275
|
+
limit: number;
|
|
227
276
|
|
|
228
|
-
|
|
229
|
-
* Time range
|
|
230
|
-
*/
|
|
231
|
-
time_range: 'last_hour' | 'today' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
277
|
+
offset: number;
|
|
232
278
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
279
|
+
projectID: string;
|
|
280
|
+
|
|
281
|
+
timeBoundaries: 'last_hour' | 'today' | 'yesterday' | 'last_7_days' | 'last_30_days' | 'last_90_days';
|
|
282
|
+
|
|
283
|
+
customerID?: string;
|
|
284
|
+
|
|
285
|
+
referrer?: string;
|
|
286
|
+
|
|
287
|
+
utmtag?: string;
|
|
288
|
+
|
|
289
|
+
utmtagValue?: string;
|
|
290
|
+
|
|
291
|
+
visitorID?: string;
|
|
237
292
|
}
|
|
238
293
|
|
|
239
294
|
export declare namespace Visitors {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
export {
|
|
4
|
+
PaymentProviders,
|
|
5
|
+
type CreatePaymentProviderRequest,
|
|
6
|
+
type ListPaymentProvidersResponse,
|
|
7
|
+
type PaymentProviderResponse,
|
|
8
|
+
type ProviderField,
|
|
9
|
+
type ProviderInstructionsResponse,
|
|
10
|
+
type UpdatePaymentProviderRequest,
|
|
11
|
+
type PaymentProviderDeleteResponse,
|
|
12
|
+
type PaymentProviderCreateParams,
|
|
13
|
+
type PaymentProviderUpdateParams,
|
|
14
|
+
type PaymentProviderListParams,
|
|
15
|
+
type PaymentProviderInstructionsParams,
|
|
16
|
+
} from './payment-providers';
|
|
17
|
+
export { Stripe } from './stripe/index';
|