@entrolytics/api-client 2.2.3 → 3.0.1
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/dist/client.d.ts +81 -0
- package/dist/client.d.ts.map +1 -0
- package/dist/edge-helpers.d.ts +146 -0
- package/dist/edge-helpers.d.ts.map +1 -0
- package/dist/endpoints/admin.d.ts +41 -0
- package/dist/endpoints/admin.d.ts.map +1 -0
- package/dist/endpoints/auth.d.ts +25 -0
- package/dist/endpoints/auth.d.ts.map +1 -0
- package/dist/endpoints/billing.d.ts +25 -0
- package/dist/endpoints/billing.d.ts.map +1 -0
- package/dist/endpoints/boards.d.ts +49 -0
- package/dist/endpoints/boards.d.ts.map +1 -0
- package/dist/endpoints/config.d.ts +24 -0
- package/dist/endpoints/config.d.ts.map +1 -0
- package/dist/endpoints/events.d.ts +59 -0
- package/dist/endpoints/events.d.ts.map +1 -0
- package/dist/endpoints/index.d.ts +18 -0
- package/dist/endpoints/index.d.ts.map +1 -0
- package/dist/endpoints/integrations.d.ts +11 -0
- package/dist/endpoints/integrations.d.ts.map +1 -0
- package/dist/endpoints/links.d.ts +33 -0
- package/dist/endpoints/links.d.ts.map +1 -0
- package/dist/endpoints/me.d.ts +24 -0
- package/dist/endpoints/me.d.ts.map +1 -0
- package/dist/endpoints/orgs.d.ts +64 -0
- package/dist/endpoints/orgs.d.ts.map +1 -0
- package/dist/endpoints/pixels.d.ts +29 -0
- package/dist/endpoints/pixels.d.ts.map +1 -0
- package/dist/endpoints/reports.d.ts +148 -0
- package/dist/endpoints/reports.d.ts.map +1 -0
- package/dist/endpoints/segments.d.ts +25 -0
- package/dist/endpoints/segments.d.ts.map +1 -0
- package/dist/endpoints/sessions.d.ts +39 -0
- package/dist/endpoints/sessions.d.ts.map +1 -0
- package/dist/endpoints/users.d.ts +39 -0
- package/dist/endpoints/users.d.ts.map +1 -0
- package/dist/endpoints/webhooks.d.ts +11 -0
- package/dist/endpoints/webhooks.d.ts.map +1 -0
- package/dist/endpoints/websites.d.ts +203 -0
- package/dist/endpoints/websites.d.ts.map +1 -0
- package/dist/index.d.ts +129 -1904
- package/dist/index.d.ts.map +1 -1
- package/dist/runtime.d.ts +118 -0
- package/dist/runtime.d.ts.map +1 -0
- package/dist/types/index.d.ts +602 -0
- package/dist/types/index.d.ts.map +1 -0
- package/package.json +9 -9
- package/dist/index.d.cts +0 -1927
- package/dist/index.d.cts.map +0 -1
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ApiResponse, CreateOrgData, JoinOrgData, OrgMember, Organization, UpdateOrgData, Website } from "../types";
|
|
3
|
+
export declare function createOrgsEndpoints(client: ApiClient): {
|
|
4
|
+
/**
|
|
5
|
+
* Get all organizations for the current user.
|
|
6
|
+
*/
|
|
7
|
+
getOrgs(): Promise<ApiResponse<Organization[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new organization.
|
|
10
|
+
*/
|
|
11
|
+
createOrg(data: CreateOrgData): Promise<ApiResponse<Organization>>;
|
|
12
|
+
/**
|
|
13
|
+
* Join an organization using access code.
|
|
14
|
+
*/
|
|
15
|
+
joinOrg(data: JoinOrgData): Promise<ApiResponse<Organization>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get an organization by ID.
|
|
18
|
+
*/
|
|
19
|
+
getOrg(orgId: string): Promise<ApiResponse<Organization>>;
|
|
20
|
+
/**
|
|
21
|
+
* Update an organization.
|
|
22
|
+
*/
|
|
23
|
+
updateOrg(orgId: string, data: UpdateOrgData): Promise<ApiResponse<Organization>>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete an organization.
|
|
26
|
+
*/
|
|
27
|
+
deleteOrg(orgId: string): Promise<ApiResponse<void>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get organization members.
|
|
30
|
+
*/
|
|
31
|
+
getOrgMembers(orgId: string): Promise<ApiResponse<OrgMember[]>>;
|
|
32
|
+
/**
|
|
33
|
+
* Invite a member to an organization.
|
|
34
|
+
*/
|
|
35
|
+
inviteOrgMember(orgId: string, data: {
|
|
36
|
+
email: string;
|
|
37
|
+
role: "admin" | "member" | "viewer";
|
|
38
|
+
}): Promise<ApiResponse<void>>;
|
|
39
|
+
/**
|
|
40
|
+
* Update an organization member's role.
|
|
41
|
+
*/
|
|
42
|
+
updateOrgMember(orgId: string, memberId: string, data: {
|
|
43
|
+
role: "admin" | "member" | "viewer";
|
|
44
|
+
}): Promise<ApiResponse<OrgMember>>;
|
|
45
|
+
/**
|
|
46
|
+
* Remove a member from an organization.
|
|
47
|
+
*/
|
|
48
|
+
removeOrgMember(orgId: string, memberId: string): Promise<ApiResponse<void>>;
|
|
49
|
+
/**
|
|
50
|
+
* Get organization websites.
|
|
51
|
+
*/
|
|
52
|
+
getOrgWebsites(orgId: string): Promise<ApiResponse<Website[]>>;
|
|
53
|
+
/**
|
|
54
|
+
* Add a website to an organization.
|
|
55
|
+
*/
|
|
56
|
+
addOrgWebsite(orgId: string, data: {
|
|
57
|
+
websiteId: string;
|
|
58
|
+
}): Promise<ApiResponse<Website>>;
|
|
59
|
+
/**
|
|
60
|
+
* Remove a website from an organization.
|
|
61
|
+
*/
|
|
62
|
+
removeOrgWebsite(orgId: string, websiteId: string): Promise<ApiResponse<void>>;
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=orgs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"orgs.d.ts","sourceRoot":"","sources":["../../src/endpoints/orgs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EACV,WAAW,EACX,aAAa,EACb,WAAW,EACX,SAAS,EACT,YAAY,EACZ,aAAa,EACb,OAAO,EACR,MAAM,UAAU,CAAC;AAElB,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS;IAEjD;;OAEG;IACH,OAAO,IAAI,OAAO,CAAC,WAAW,CAAC,Y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F;;OAEG;IACH,gBAAgB,QAAQ,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;EAIjF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ApiResponse, CreatePixelData, Pixel, UpdatePixelData } from "../types";
|
|
3
|
+
export declare function createPixelsEndpoints(client: ApiClient): {
|
|
4
|
+
/**
|
|
5
|
+
* Get all pixels.
|
|
6
|
+
*/
|
|
7
|
+
getPixels(): Promise<ApiResponse<Pixel[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* Get pixels for an organization.
|
|
10
|
+
*/
|
|
11
|
+
getOrgPixels(orgId: string): Promise<ApiResponse<Pixel[]>>;
|
|
12
|
+
/**
|
|
13
|
+
* Create a new pixel.
|
|
14
|
+
*/
|
|
15
|
+
createPixel(orgId: string, data: CreatePixelData): Promise<ApiResponse<Pixel>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get a pixel by ID.
|
|
18
|
+
*/
|
|
19
|
+
getPixel(pixelId: string): Promise<ApiResponse<Pixel>>;
|
|
20
|
+
/**
|
|
21
|
+
* Update a pixel.
|
|
22
|
+
*/
|
|
23
|
+
updatePixel(pixelId: string, data: UpdatePixelData): Promise<ApiResponse<Pixel>>;
|
|
24
|
+
/**
|
|
25
|
+
* Delete a pixel.
|
|
26
|
+
*/
|
|
27
|
+
deletePixel(pixelId: string): Promise<ApiResponse<void>>;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=pixels.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pixels.d.ts","sourceRoot":"","sources":["../../src/endpoints/pixels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAErF,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,SAAS;IAEnD;;OAEG;IACH,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC;IAI1C;;OAEG;IACH,YAAY,QAAQ,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,EAAE,CAAC,CAAC;IAI1D;;OAEG;IACH,WAAW,QAAQ,MAAM,QAAQ,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAI9E;;OAEG;IACH,QAAQ,UAAU,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAItD;;OAEG;IACH,WAAW,UAAU,MAAM,QAAQ,eAAe,GAAG,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAIhF;;OAEG;IACH,WAAW,UAAU,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;EAI3D"}
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ApiResponse, CreateReportData, DateRangeParams, Report, UpdateReportData } from "../types";
|
|
3
|
+
interface FunnelResult {
|
|
4
|
+
step: number;
|
|
5
|
+
name: string;
|
|
6
|
+
visitors: number;
|
|
7
|
+
dropoff: number;
|
|
8
|
+
rate: number;
|
|
9
|
+
}
|
|
10
|
+
interface RetentionResult {
|
|
11
|
+
date: string;
|
|
12
|
+
visitors: number;
|
|
13
|
+
returning: number[];
|
|
14
|
+
}
|
|
15
|
+
interface JourneyNode {
|
|
16
|
+
id: string;
|
|
17
|
+
name: string;
|
|
18
|
+
}
|
|
19
|
+
interface JourneyEdge {
|
|
20
|
+
source: string;
|
|
21
|
+
target: string;
|
|
22
|
+
value: number;
|
|
23
|
+
}
|
|
24
|
+
interface JourneyResult {
|
|
25
|
+
nodes: JourneyNode[];
|
|
26
|
+
edges: JourneyEdge[];
|
|
27
|
+
}
|
|
28
|
+
interface GoalResult {
|
|
29
|
+
goal: string;
|
|
30
|
+
visitors: number;
|
|
31
|
+
conversions: number;
|
|
32
|
+
rate: number;
|
|
33
|
+
}
|
|
34
|
+
interface AttributionResult {
|
|
35
|
+
channel: string;
|
|
36
|
+
visitors: number;
|
|
37
|
+
conversions: number;
|
|
38
|
+
revenue: number;
|
|
39
|
+
}
|
|
40
|
+
interface RevenueResult {
|
|
41
|
+
date: string;
|
|
42
|
+
revenue: number;
|
|
43
|
+
transactions: number;
|
|
44
|
+
averageOrder: number;
|
|
45
|
+
}
|
|
46
|
+
interface UTMResult {
|
|
47
|
+
source: string;
|
|
48
|
+
medium: string;
|
|
49
|
+
campaign: string;
|
|
50
|
+
visitors: number;
|
|
51
|
+
conversions: number;
|
|
52
|
+
}
|
|
53
|
+
interface BreakdownResult {
|
|
54
|
+
field: string;
|
|
55
|
+
value: string;
|
|
56
|
+
visitors: number;
|
|
57
|
+
pageviews: number;
|
|
58
|
+
}
|
|
59
|
+
export declare function createReportsEndpoints(client: ApiClient): {
|
|
60
|
+
/**
|
|
61
|
+
* Get all reports for a website.
|
|
62
|
+
*/
|
|
63
|
+
getReports(websiteId: string): Promise<ApiResponse<Report[]>>;
|
|
64
|
+
/**
|
|
65
|
+
* Create a new report.
|
|
66
|
+
*/
|
|
67
|
+
createReport(data: CreateReportData): Promise<ApiResponse<Report>>;
|
|
68
|
+
/**
|
|
69
|
+
* Get a report by ID.
|
|
70
|
+
*/
|
|
71
|
+
getReport(reportId: string): Promise<ApiResponse<Report>>;
|
|
72
|
+
/**
|
|
73
|
+
* Update a report.
|
|
74
|
+
*/
|
|
75
|
+
updateReport(reportId: string, data: UpdateReportData): Promise<ApiResponse<Report>>;
|
|
76
|
+
/**
|
|
77
|
+
* Delete a report.
|
|
78
|
+
*/
|
|
79
|
+
deleteReport(reportId: string): Promise<ApiResponse<void>>;
|
|
80
|
+
/**
|
|
81
|
+
* Run a funnel report.
|
|
82
|
+
*/
|
|
83
|
+
runFunnelReport(params: DateRangeParams & {
|
|
84
|
+
websiteId: string;
|
|
85
|
+
steps: {
|
|
86
|
+
type: "path" | "event";
|
|
87
|
+
value: string;
|
|
88
|
+
}[];
|
|
89
|
+
window?: number;
|
|
90
|
+
}): Promise<ApiResponse<FunnelResult[]>>;
|
|
91
|
+
/**
|
|
92
|
+
* Run a retention report.
|
|
93
|
+
*/
|
|
94
|
+
runRetentionReport(params: DateRangeParams & {
|
|
95
|
+
websiteId: string;
|
|
96
|
+
timezone?: string;
|
|
97
|
+
}): Promise<ApiResponse<RetentionResult[]>>;
|
|
98
|
+
/**
|
|
99
|
+
* Run a journey/flow report.
|
|
100
|
+
*/
|
|
101
|
+
runJourneyReport(params: DateRangeParams & {
|
|
102
|
+
websiteId: string;
|
|
103
|
+
steps?: number;
|
|
104
|
+
startStep?: string;
|
|
105
|
+
endStep?: string;
|
|
106
|
+
}): Promise<ApiResponse<JourneyResult>>;
|
|
107
|
+
/**
|
|
108
|
+
* Run a goals report.
|
|
109
|
+
*/
|
|
110
|
+
runGoalReport(params: DateRangeParams & {
|
|
111
|
+
websiteId: string;
|
|
112
|
+
type: string;
|
|
113
|
+
value: string;
|
|
114
|
+
}): Promise<ApiResponse<GoalResult[]>>;
|
|
115
|
+
/**
|
|
116
|
+
* Run an attribution report.
|
|
117
|
+
*/
|
|
118
|
+
runAttributionReport(params: DateRangeParams & {
|
|
119
|
+
websiteId: string;
|
|
120
|
+
model: "first-click" | "last-click";
|
|
121
|
+
type: "path" | "event";
|
|
122
|
+
step: string;
|
|
123
|
+
currency?: string;
|
|
124
|
+
}): Promise<ApiResponse<AttributionResult[]>>;
|
|
125
|
+
/**
|
|
126
|
+
* Run a revenue report.
|
|
127
|
+
*/
|
|
128
|
+
runRevenueReport(params: DateRangeParams & {
|
|
129
|
+
websiteId: string;
|
|
130
|
+
currency?: string;
|
|
131
|
+
}): Promise<ApiResponse<RevenueResult[]>>;
|
|
132
|
+
/**
|
|
133
|
+
* Run a UTM report.
|
|
134
|
+
*/
|
|
135
|
+
runUTMReport(params: DateRangeParams & {
|
|
136
|
+
websiteId: string;
|
|
137
|
+
}): Promise<ApiResponse<UTMResult[]>>;
|
|
138
|
+
/**
|
|
139
|
+
* Run a breakdown report.
|
|
140
|
+
* @param property - Field to break down by (path, referrer, browser, device, os, country, etc.)
|
|
141
|
+
*/
|
|
142
|
+
runBreakdownReport(params: DateRangeParams & {
|
|
143
|
+
websiteId: string;
|
|
144
|
+
property: string;
|
|
145
|
+
}): Promise<ApiResponse<BreakdownResult[]>>;
|
|
146
|
+
};
|
|
147
|
+
export {};
|
|
148
|
+
//# sourceMappingURL=reports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reports.d.ts","sourceRoot":"","sources":["../../src/endpoints/reports.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EACV,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,MAAM,EACN,gBAAgB,EACjB,MAAM,UAAU,CAAC;AAGlB,UAAU,YAAY;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,EAAE,CAAC;CACrB;AAED,UAAU,WAAW;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED,UAAU,WAAW;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,aAAa;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,UAAU,UAA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,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GACA,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC,CAAC;IAaxC;;OAEG;IACH,YAAY,SACF,eAAe,GAAG;QACxB,SAAS,EAAE,MAAM,CAAC;KACnB,GACA,OAAO,CAAC,WAAW,CAAC,SAAS,EAAE,CAAC,CAAC;IAYpC;;;OAGG;IACH,kBAAkB,SACR,eAAe,GAAG;QACxB,SAAS,EAAE,MAAM,CAAC;QAClB,QAAQ,EAAE,MAAM,CAAC;KAClB,GACA,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,CAAC;EAa7C"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ApiResponse, CreateSegmentData, Segment, UpdateSegmentData } from "../types";
|
|
3
|
+
export declare function createSegmentsEndpoints(client: ApiClient): {
|
|
4
|
+
/**
|
|
5
|
+
* Get all segments for a website.
|
|
6
|
+
*/
|
|
7
|
+
getSegments(websiteId: string): Promise<ApiResponse<Segment[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new segment.
|
|
10
|
+
*/
|
|
11
|
+
createSegment(websiteId: string, data: CreateSegmentData): Promise<ApiResponse<Segment>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get a segment by ID.
|
|
14
|
+
*/
|
|
15
|
+
getSegment(websiteId: string, segmentId: string): Promise<ApiResponse<Segment>>;
|
|
16
|
+
/**
|
|
17
|
+
* Update a segment.
|
|
18
|
+
*/
|
|
19
|
+
updateSegment(websiteId: string, segmentId: string, data: UpdateSegmentData): Promise<ApiResponse<Segment>>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete a segment.
|
|
22
|
+
*/
|
|
23
|
+
deleteSegment(websiteId: string, segmentId: string): Promise<ApiResponse<void>>;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=segments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"segments.d.ts","sourceRoot":"","sources":["../../src/endpoints/segments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,iBAAiB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE3F,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS;IAErD;;OAEG;IACH,WAAW,YAAY,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAI/D;;OAEG;IACH,aAAa,YAAY,MAAM,QAAQ,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAIxF;;OAEG;IACH,UAAU,YAAY,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAI/E;;OAEG;IACH,aAAa,YACA,MAAM,aACN,MAAM,QACX,iBAAiB,GACtB,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAIhC;;OAEG;IACH,aAAa,YAAY,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;EAIlF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ApiResponse, DateRangeParams, Session, SessionActivity, SessionStats } from "../types";
|
|
3
|
+
export declare function createSessionsEndpoints(client: ApiClient): {
|
|
4
|
+
/**
|
|
5
|
+
* Get website sessions.
|
|
6
|
+
*/
|
|
7
|
+
getWebsiteSessions(websiteId: string, params: DateRangeParams & {
|
|
8
|
+
query?: string;
|
|
9
|
+
limit?: number;
|
|
10
|
+
offset?: number;
|
|
11
|
+
}): Promise<ApiResponse<Session[]>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get session statistics.
|
|
14
|
+
*/
|
|
15
|
+
getWebsiteSessionStats(websiteId: string, params: DateRangeParams): Promise<ApiResponse<SessionStats>>;
|
|
16
|
+
/**
|
|
17
|
+
* Get weekly session traffic.
|
|
18
|
+
*/
|
|
19
|
+
getWeeklyTraffic(websiteId: string, params: DateRangeParams & {
|
|
20
|
+
timezone?: string;
|
|
21
|
+
}): Promise<ApiResponse<{
|
|
22
|
+
day: number;
|
|
23
|
+
hour: number;
|
|
24
|
+
y: number;
|
|
25
|
+
}[]>>;
|
|
26
|
+
/**
|
|
27
|
+
* Get a specific session.
|
|
28
|
+
*/
|
|
29
|
+
getSession(websiteId: string, sessionId: string): Promise<ApiResponse<Session>>;
|
|
30
|
+
/**
|
|
31
|
+
* Get session activity (pageviews and events).
|
|
32
|
+
*/
|
|
33
|
+
getSessionActivity(websiteId: string, sessionId: string, params: DateRangeParams): Promise<ApiResponse<SessionActivity[]>>;
|
|
34
|
+
/**
|
|
35
|
+
* Get session properties (custom data).
|
|
36
|
+
*/
|
|
37
|
+
getSessionProperties(websiteId: string, sessionId: string): Promise<ApiResponse<Record<string, string | number | boolean>[]>>;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/endpoints/sessions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EACV,WAAW,EACX,eAAe,EACf,OAAO,EACP,eAAe,EACf,YAAY,EACb,MAAM,UAAU,CAAC;AAElB,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS;IAErD;;OAEG;IACH,kBAAkB,YACL,MAAM,UACT,eAAe,GAAG;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAE,GAC5E,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAIlC;;OAEG;IACH,sBAAsB,YACT,MAAM,UACT,eAAe,GACtB,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAIrC;;OAEG;IACH,gBAAgB,YACH,MAAM,UACT,eAAe,GAAG;QAAE,QAAQ,CAAC,EAAE,MAAM,CAAA;KAAE,GAC9C,OAAO,CAAC,WAAW,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC,CAAC;IAInE;;OAEG;IACH,UAAU,YAAY,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAI/E;;OAEG;IACH,kBAAkB,YACL,MAAM,aACN,MAAM,UACT,eAAe,GACtB,OAAO,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC,CAAC;IAO1C;;OAEG;IACH,oBAAoB,YACP,MAAM,aACN,MAAM,GAChB,OAAO,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;EAIvE"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ApiResponse, CreateUserData, UpdateUserData, User, Website } from "../types";
|
|
3
|
+
export declare function createUsersEndpoints(client: ApiClient): {
|
|
4
|
+
/**
|
|
5
|
+
* Get all users (admin only).
|
|
6
|
+
*/
|
|
7
|
+
getUsers(): Promise<ApiResponse<User[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new user (admin only).
|
|
10
|
+
*/
|
|
11
|
+
createUser(data: CreateUserData): Promise<ApiResponse<User>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get a user by ID.
|
|
14
|
+
*/
|
|
15
|
+
getUser(userId: string): Promise<ApiResponse<User>>;
|
|
16
|
+
/**
|
|
17
|
+
* Update a user.
|
|
18
|
+
*/
|
|
19
|
+
updateUser(userId: string, data: UpdateUserData): Promise<ApiResponse<User>>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete a user (admin only).
|
|
22
|
+
*/
|
|
23
|
+
deleteUser(userId: string): Promise<ApiResponse<void>>;
|
|
24
|
+
/**
|
|
25
|
+
* Get websites belonging to a user.
|
|
26
|
+
*/
|
|
27
|
+
getUserWebsites(userId: string): Promise<ApiResponse<Website[]>>;
|
|
28
|
+
/**
|
|
29
|
+
* Get user usage statistics.
|
|
30
|
+
*/
|
|
31
|
+
getUserUsage(userId: string, params: {
|
|
32
|
+
startAt: number;
|
|
33
|
+
endAt: number;
|
|
34
|
+
}): Promise<ApiResponse<{
|
|
35
|
+
websiteCount: number;
|
|
36
|
+
eventCount: number;
|
|
37
|
+
}>>;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=users.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/endpoints/users.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,cAAc,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AAE3F,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,SAAS;IAElD;;OAEG;IACH,QAAQ,IAAI,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;IAIxC;;OAEG;IACH,UAAU,OAAO,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAI5D;;OAEG;IACH,OAAO,SAAS,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAInD;;OAEG;IACH,UAAU,SAAS,MAAM,QAAQ,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAI5E;;OAEG;IACH,UAAU,SAAS,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAItD;;OAEG;IACH,eAAe,SAAS,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC;IAIhE;;OAEG;IACH,YAAY,SACF,MAAM,UACN;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GACzC,OAAO,CAAC,WAAW,CAAC;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;EAIxE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
export interface WebhookClerkParams {
|
|
3
|
+
data: unknown;
|
|
4
|
+
}
|
|
5
|
+
export declare function createWebhooksEndpoints(client: ApiClient): {
|
|
6
|
+
/**
|
|
7
|
+
* Handle Clerk webhook
|
|
8
|
+
*/
|
|
9
|
+
clerk: (params: WebhookClerkParams) => Promise<import("..").ApiResponse<unknown>>;
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=webhooks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhooks.d.ts","sourceRoot":"","sources":["../../src/endpoints/webhooks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,OAAO,CAAC;CACf;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS;IAErD;;OAEG;IACH,KAAK,WAAW,kBAAkB;EAErC"}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
import type { ApiClient } from "../client";
|
|
2
|
+
import type { ActiveVisitor, ApiResponse, CreateWebsiteData, DateRangeParams, Deployment, DeploymentComparison, DeploymentParams, FormAnalyticsParams, FormEvent, FormFieldStats, FormStats, MetricData, RealtimeData, SetDeploymentData, TrackFormEventData, TrackVitalData, UpdateWebsiteData, Website, WebsiteEvent, WebsiteMetricsParams, WebsitePageviews, WebsiteStats, WebVital, WebVitalsParams, WebVitalsStats } from "../types";
|
|
3
|
+
export declare function createWebsitesEndpoints(client: ApiClient): {
|
|
4
|
+
/**
|
|
5
|
+
* Get all websites.
|
|
6
|
+
*/
|
|
7
|
+
getWebsites(): Promise<ApiResponse<Website[]>>;
|
|
8
|
+
/**
|
|
9
|
+
* Create a new website.
|
|
10
|
+
*/
|
|
11
|
+
createWebsite(data: CreateWebsiteData): Promise<ApiResponse<Website>>;
|
|
12
|
+
/**
|
|
13
|
+
* Get a website by ID.
|
|
14
|
+
*/
|
|
15
|
+
getWebsite(websiteId: string): Promise<ApiResponse<Website>>;
|
|
16
|
+
/**
|
|
17
|
+
* Update a website.
|
|
18
|
+
*/
|
|
19
|
+
updateWebsite(websiteId: string, data: UpdateWebsiteData): Promise<ApiResponse<Website>>;
|
|
20
|
+
/**
|
|
21
|
+
* Delete a website.
|
|
22
|
+
*/
|
|
23
|
+
deleteWebsite(websiteId: string): Promise<ApiResponse<void>>;
|
|
24
|
+
/**
|
|
25
|
+
* Reset a website's data.
|
|
26
|
+
*/
|
|
27
|
+
resetWebsite(websiteId: string): Promise<ApiResponse<void>>;
|
|
28
|
+
/**
|
|
29
|
+
* Transfer website ownership.
|
|
30
|
+
*/
|
|
31
|
+
transferWebsite(websiteId: string, data: {
|
|
32
|
+
userId?: string;
|
|
33
|
+
orgId?: string;
|
|
34
|
+
}): Promise<ApiResponse<Website>>;
|
|
35
|
+
/**
|
|
36
|
+
* Get website statistics.
|
|
37
|
+
*/
|
|
38
|
+
getWebsiteStats(websiteId: string, params: DateRangeParams): Promise<ApiResponse<WebsiteStats>>;
|
|
39
|
+
/**
|
|
40
|
+
* Get website pageviews data.
|
|
41
|
+
*/
|
|
42
|
+
getWebsitePageviews(websiteId: string, params: DateRangeParams & {
|
|
43
|
+
unit?: string;
|
|
44
|
+
timezone?: string;
|
|
45
|
+
}): Promise<ApiResponse<WebsitePageviews>>;
|
|
46
|
+
/**
|
|
47
|
+
* Get website metrics (URLs, referrers, browsers, etc.).
|
|
48
|
+
*/
|
|
49
|
+
getWebsiteMetrics(websiteId: string, params: WebsiteMetricsParams): Promise<ApiResponse<MetricData[]>>;
|
|
50
|
+
/**
|
|
51
|
+
* Get expanded metrics (with additional details).
|
|
52
|
+
*/
|
|
53
|
+
getWebsiteExpandedMetrics(websiteId: string, params: WebsiteMetricsParams): Promise<ApiResponse<MetricData[]>>;
|
|
54
|
+
/**
|
|
55
|
+
* Get website events.
|
|
56
|
+
*/
|
|
57
|
+
getWebsiteEvents(websiteId: string, params: DateRangeParams & {
|
|
58
|
+
query?: string;
|
|
59
|
+
limit?: number;
|
|
60
|
+
offset?: number;
|
|
61
|
+
}): Promise<ApiResponse<WebsiteEvent[]>>;
|
|
62
|
+
/**
|
|
63
|
+
* Get events time series.
|
|
64
|
+
*/
|
|
65
|
+
getWebsiteEventsSeries(websiteId: string, params: DateRangeParams & {
|
|
66
|
+
unit?: string;
|
|
67
|
+
timezone?: string;
|
|
68
|
+
event?: string;
|
|
69
|
+
}): Promise<ApiResponse<{
|
|
70
|
+
x: string;
|
|
71
|
+
y: number;
|
|
72
|
+
}[]>>;
|
|
73
|
+
/**
|
|
74
|
+
* Get active visitors count.
|
|
75
|
+
*/
|
|
76
|
+
getWebsiteActive(websiteId: string): Promise<ApiResponse<ActiveVisitor[]>>;
|
|
77
|
+
/**
|
|
78
|
+
* Get website date range (first and last event dates).
|
|
79
|
+
*/
|
|
80
|
+
getWebsiteDateRange(websiteId: string): Promise<ApiResponse<{
|
|
81
|
+
minDate: string;
|
|
82
|
+
maxDate: string;
|
|
83
|
+
}>>;
|
|
84
|
+
/**
|
|
85
|
+
* Get website values for a specific field.
|
|
86
|
+
*/
|
|
87
|
+
getWebsiteValues(websiteId: string, params: DateRangeParams & {
|
|
88
|
+
type: string;
|
|
89
|
+
}): Promise<ApiResponse<string[]>>;
|
|
90
|
+
/**
|
|
91
|
+
* Get realtime data.
|
|
92
|
+
*/
|
|
93
|
+
getRealtimeData(websiteId: string): Promise<ApiResponse<RealtimeData>>;
|
|
94
|
+
/**
|
|
95
|
+
* Export website data.
|
|
96
|
+
*/
|
|
97
|
+
exportWebsiteData(websiteId: string, params: DateRangeParams & {
|
|
98
|
+
type: "csv" | "json";
|
|
99
|
+
}): Promise<ApiResponse<string>>;
|
|
100
|
+
/**
|
|
101
|
+
* Get website ingest mode configuration.
|
|
102
|
+
*/
|
|
103
|
+
getWebsiteMode(websiteId: string): Promise<ApiResponse<import("../types").WebsiteModeConfig>>;
|
|
104
|
+
/**
|
|
105
|
+
* Set website ingest mode (auto, node, or edge).
|
|
106
|
+
*/
|
|
107
|
+
setWebsiteMode(websiteId: string, mode: import("../types").IngestMode): Promise<ApiResponse<{
|
|
108
|
+
message: string;
|
|
109
|
+
}>>;
|
|
110
|
+
/**
|
|
111
|
+
* Get routing health status.
|
|
112
|
+
*/
|
|
113
|
+
getRoutingHealth(): Promise<ApiResponse<import("../types").RoutingHealth>>;
|
|
114
|
+
/**
|
|
115
|
+
* Get routing statistics.
|
|
116
|
+
*/
|
|
117
|
+
getRoutingStats(params?: {
|
|
118
|
+
start?: string;
|
|
119
|
+
end?: string;
|
|
120
|
+
}): Promise<ApiResponse<import("../types").RoutingStats>>;
|
|
121
|
+
/**
|
|
122
|
+
* Get Web Vitals statistics for a website.
|
|
123
|
+
* Note: Only available in entrolytics.
|
|
124
|
+
*/
|
|
125
|
+
getWebsiteVitals(websiteId: string, params: WebVitalsParams): Promise<ApiResponse<WebVitalsStats[]>>;
|
|
126
|
+
/**
|
|
127
|
+
* Get individual Web Vital events.
|
|
128
|
+
* Note: Only available in entrolytics.
|
|
129
|
+
*/
|
|
130
|
+
getWebsiteVitalEvents(websiteId: string, params: WebVitalsParams & {
|
|
131
|
+
limit?: number;
|
|
132
|
+
offset?: number;
|
|
133
|
+
}): Promise<ApiResponse<WebVital[]>>;
|
|
134
|
+
/**
|
|
135
|
+
* Track a Web Vital metric (send to collection endpoint).
|
|
136
|
+
* Note: Only available in entrolytics.
|
|
137
|
+
*/
|
|
138
|
+
trackVital(websiteId: string, data: TrackVitalData): Promise<ApiResponse<{
|
|
139
|
+
success: boolean;
|
|
140
|
+
}>>;
|
|
141
|
+
/**
|
|
142
|
+
* Track multiple Web Vitals metrics in batch.
|
|
143
|
+
* Note: Only available in entrolytics.
|
|
144
|
+
*/
|
|
145
|
+
trackVitalsBatch(websiteId: string, vitals: TrackVitalData[]): Promise<ApiResponse<{
|
|
146
|
+
success: boolean;
|
|
147
|
+
count: number;
|
|
148
|
+
}>>;
|
|
149
|
+
/**
|
|
150
|
+
* Get form analytics for a website.
|
|
151
|
+
* Note: Only available in entrolytics.
|
|
152
|
+
*/
|
|
153
|
+
getWebsiteForms(websiteId: string, params: FormAnalyticsParams): Promise<ApiResponse<FormStats[]>>;
|
|
154
|
+
/**
|
|
155
|
+
* Get field-level analytics for a specific form.
|
|
156
|
+
* Note: Only available in entrolytics.
|
|
157
|
+
*/
|
|
158
|
+
getFormFields(websiteId: string, formId: string, params: FormAnalyticsParams): Promise<ApiResponse<FormFieldStats[]>>;
|
|
159
|
+
/**
|
|
160
|
+
* Get individual form events.
|
|
161
|
+
* Note: Only available in entrolytics.
|
|
162
|
+
*/
|
|
163
|
+
getFormEvents(websiteId: string, params: FormAnalyticsParams & {
|
|
164
|
+
limit?: number;
|
|
165
|
+
offset?: number;
|
|
166
|
+
}): Promise<ApiResponse<FormEvent[]>>;
|
|
167
|
+
/**
|
|
168
|
+
* Track a form event (send to collection endpoint).
|
|
169
|
+
* Note: Only available in entrolytics.
|
|
170
|
+
*/
|
|
171
|
+
trackFormEvent(websiteId: string, data: TrackFormEventData): Promise<ApiResponse<{
|
|
172
|
+
success: boolean;
|
|
173
|
+
}>>;
|
|
174
|
+
/**
|
|
175
|
+
* Track multiple form events in batch.
|
|
176
|
+
* Note: Only available in entrolytics.
|
|
177
|
+
*/
|
|
178
|
+
trackFormEventsBatch(websiteId: string, events: TrackFormEventData[]): Promise<ApiResponse<{
|
|
179
|
+
success: boolean;
|
|
180
|
+
count: number;
|
|
181
|
+
}>>;
|
|
182
|
+
/**
|
|
183
|
+
* Get deployments for a website.
|
|
184
|
+
* Note: Only available in entrolytics.
|
|
185
|
+
*/
|
|
186
|
+
getWebsiteDeployments(websiteId: string, params: DeploymentParams): Promise<ApiResponse<Deployment[]>>;
|
|
187
|
+
/**
|
|
188
|
+
* Get a specific deployment.
|
|
189
|
+
* Note: Only available in entrolytics.
|
|
190
|
+
*/
|
|
191
|
+
getDeployment(websiteId: string, deployId: string): Promise<ApiResponse<Deployment>>;
|
|
192
|
+
/**
|
|
193
|
+
* Compare two deployments.
|
|
194
|
+
* Note: Only available in entrolytics.
|
|
195
|
+
*/
|
|
196
|
+
compareDeployments(websiteId: string, limit?: number): Promise<ApiResponse<DeploymentComparison[]>>;
|
|
197
|
+
/**
|
|
198
|
+
* Set/register a deployment context.
|
|
199
|
+
* Note: Only available in entrolytics.
|
|
200
|
+
*/
|
|
201
|
+
setDeployment(websiteId: string, data: SetDeploymentData): Promise<ApiResponse<Deployment>>;
|
|
202
|
+
};
|
|
203
|
+
//# sourceMappingURL=websites.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"websites.d.ts","sourceRoot":"","sources":["../../src/endpoints/websites.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,KAAK,EACV,aAAa,EACb,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,oBAAoB,EACpB,gBAAgB,EAChB,mBAAmB,EACnB,SAAS,EACT,cAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,cAAc,EACf,MAAM,UAAU,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