@cakemail-org/ui-components-v2 2.2.103 → 2.2.105
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/cjs/components/textField/types.d.ts +1 -1
- package/dist/cjs/data/theme/MuiTextField.d.ts +27 -0
- package/dist/cjs/factories/eventTracking/index.d.ts +14 -0
- package/dist/cjs/factories/eventTracking/types.d.ts +91 -0
- package/dist/cjs/factories/index.d.ts +1 -0
- package/dist/cjs/index.js +308 -4
- package/dist/cjs/models/eventTracking/index.d.ts +31 -0
- package/dist/cjs/models/eventTracking/types.d.ts +47 -0
- package/dist/cjs/models/index.d.ts +1 -0
- package/dist/cjs/services/eventTracking/index.d.ts +8 -0
- package/dist/cjs/services/eventTracking/types.d.ts +92 -0
- package/dist/cjs/services/index.d.ts +1 -0
- package/dist/esm/components/textField/types.d.ts +1 -1
- package/dist/esm/data/theme/MuiTextField.d.ts +27 -0
- package/dist/esm/factories/eventTracking/index.d.ts +14 -0
- package/dist/esm/factories/eventTracking/types.d.ts +91 -0
- package/dist/esm/factories/index.d.ts +1 -0
- package/dist/esm/index.js +301 -5
- package/dist/esm/models/eventTracking/index.d.ts +31 -0
- package/dist/esm/models/eventTracking/types.d.ts +47 -0
- package/dist/esm/models/index.d.ts +1 -0
- package/dist/esm/services/eventTracking/index.d.ts +8 -0
- package/dist/esm/services/eventTracking/types.d.ts +92 -0
- package/dist/esm/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { TEventModel } from "./types";
|
|
2
|
+
export declare class EventModel {
|
|
3
|
+
readonly eventId: string;
|
|
4
|
+
readonly eventType: TEventModel["eventType"];
|
|
5
|
+
readonly entityType: TEventModel["entityType"];
|
|
6
|
+
readonly entityId: string;
|
|
7
|
+
readonly sessionId?: string | null;
|
|
8
|
+
readonly visitorId?: string | null;
|
|
9
|
+
readonly occurredAt: string;
|
|
10
|
+
readonly deviceType?: TEventModel["deviceType"];
|
|
11
|
+
readonly browser?: string | null;
|
|
12
|
+
readonly os?: string | null;
|
|
13
|
+
readonly source?: string | null;
|
|
14
|
+
readonly utmSource?: string | null;
|
|
15
|
+
readonly utmMedium?: string | null;
|
|
16
|
+
readonly utmCampaign?: string | null;
|
|
17
|
+
readonly referrer?: string | null;
|
|
18
|
+
readonly properties: Record<string, unknown>;
|
|
19
|
+
readonly scrollDepth?: number | null;
|
|
20
|
+
readonly elementId?: string | null;
|
|
21
|
+
readonly popupTrigger?: string | null;
|
|
22
|
+
readonly pageUrl?: string | null;
|
|
23
|
+
readonly email?: string | null;
|
|
24
|
+
readonly listId?: string | null;
|
|
25
|
+
readonly contactId?: string | null;
|
|
26
|
+
readonly formId?: string | null;
|
|
27
|
+
readonly ip?: string | null;
|
|
28
|
+
constructor(params: TEventModel);
|
|
29
|
+
toJson(): any;
|
|
30
|
+
}
|
|
31
|
+
export * from "./types";
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare enum ETrackedEventType {
|
|
2
|
+
pageView = "page_view",
|
|
3
|
+
scrollDepth = "scroll_depth",
|
|
4
|
+
pageConversion = "page_conversion",
|
|
5
|
+
pageExit = "page_exit",
|
|
6
|
+
popupView = "popup_view",
|
|
7
|
+
popupDismiss = "popup_dismiss",
|
|
8
|
+
popupConversion = "popup_conversion",
|
|
9
|
+
click = "click",
|
|
10
|
+
formSubmit = "form_submit"
|
|
11
|
+
}
|
|
12
|
+
export declare enum ETrackedEntityType {
|
|
13
|
+
page = "page",
|
|
14
|
+
popup = "popup"
|
|
15
|
+
}
|
|
16
|
+
export declare enum ETrackedDeviceType {
|
|
17
|
+
mobile = "mobile",
|
|
18
|
+
desktop = "desktop",
|
|
19
|
+
tablet = "tablet"
|
|
20
|
+
}
|
|
21
|
+
export type TEventModel = {
|
|
22
|
+
eventId: string;
|
|
23
|
+
eventType: ETrackedEventType | string;
|
|
24
|
+
entityType: ETrackedEntityType | string;
|
|
25
|
+
entityId: string;
|
|
26
|
+
sessionId?: string | null;
|
|
27
|
+
visitorId?: string | null;
|
|
28
|
+
occurredAt: string;
|
|
29
|
+
deviceType?: ETrackedDeviceType | string | null;
|
|
30
|
+
browser?: string | null;
|
|
31
|
+
os?: string | null;
|
|
32
|
+
source?: string | null;
|
|
33
|
+
utmSource?: string | null;
|
|
34
|
+
utmMedium?: string | null;
|
|
35
|
+
utmCampaign?: string | null;
|
|
36
|
+
referrer?: string | null;
|
|
37
|
+
properties: Record<string, unknown>;
|
|
38
|
+
scrollDepth?: number | null;
|
|
39
|
+
elementId?: string | null;
|
|
40
|
+
popupTrigger?: string | null;
|
|
41
|
+
pageUrl?: string | null;
|
|
42
|
+
email?: string | null;
|
|
43
|
+
listId?: string | null;
|
|
44
|
+
contactId?: string | null;
|
|
45
|
+
formId?: string | null;
|
|
46
|
+
ip?: string | null;
|
|
47
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TGetEventBreakdown, TGetEventFunnel, TGetEventPropertyKeys, TGetEventSummary, TGetEventTimeseries, TListEvents } from "./types";
|
|
2
|
+
export declare function listEvents({ useImpersonationTree, ...options }: TListEvents): Promise<any>;
|
|
3
|
+
export declare function getEventSummary({ useImpersonationTree, ...options }: TGetEventSummary): Promise<any>;
|
|
4
|
+
export declare function getEventTimeseries({ useImpersonationTree, ...options }: TGetEventTimeseries): Promise<any>;
|
|
5
|
+
export declare function getEventBreakdown({ useImpersonationTree, ...options }: TGetEventBreakdown): Promise<any>;
|
|
6
|
+
export declare function getEventPropertyKeys({ useImpersonationTree, ...options }: TGetEventPropertyKeys): Promise<any>;
|
|
7
|
+
export declare function getEventFunnel({ useImpersonationTree, ...options }: TGetEventFunnel): Promise<any>;
|
|
8
|
+
export * from "./types";
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { ETrackedEntityType, ETrackedEventType } from "../../models/eventTracking/types";
|
|
2
|
+
export declare enum EEventBreakdownDimension {
|
|
3
|
+
deviceType = "device_type",
|
|
4
|
+
browser = "browser",
|
|
5
|
+
os = "os",
|
|
6
|
+
source = "source",
|
|
7
|
+
utmSource = "utm_source",
|
|
8
|
+
utmMedium = "utm_medium",
|
|
9
|
+
utmCampaign = "utm_campaign",
|
|
10
|
+
entityType = "entity_type",
|
|
11
|
+
elementId = "element_id",
|
|
12
|
+
popupTrigger = "popup_trigger",
|
|
13
|
+
pageUrl = "page_url",
|
|
14
|
+
listId = "list_id",
|
|
15
|
+
contactId = "contact_id",
|
|
16
|
+
formId = "form_id"
|
|
17
|
+
}
|
|
18
|
+
export declare enum EEventTimeseriesGranularity {
|
|
19
|
+
hour = "hour",
|
|
20
|
+
day = "day",
|
|
21
|
+
week = "week",
|
|
22
|
+
month = "month"
|
|
23
|
+
}
|
|
24
|
+
export declare enum EEventSortField {
|
|
25
|
+
occurredAt = "occurred_at",
|
|
26
|
+
eventType = "event_type",
|
|
27
|
+
entityId = "entity_id",
|
|
28
|
+
deviceType = "device_type",
|
|
29
|
+
source = "source"
|
|
30
|
+
}
|
|
31
|
+
export type TEventDateRangeParams = {
|
|
32
|
+
fromDate?: string;
|
|
33
|
+
toDate?: string;
|
|
34
|
+
};
|
|
35
|
+
export type TEventEntityFilterParams = {
|
|
36
|
+
entityId?: string;
|
|
37
|
+
entityType?: ETrackedEntityType | string;
|
|
38
|
+
};
|
|
39
|
+
export type TEventAttributionFilterParams = {
|
|
40
|
+
email?: string;
|
|
41
|
+
listId?: string;
|
|
42
|
+
contactId?: string;
|
|
43
|
+
formId?: string;
|
|
44
|
+
elementId?: string;
|
|
45
|
+
popupTrigger?: string;
|
|
46
|
+
pageUrl?: string;
|
|
47
|
+
};
|
|
48
|
+
export type TEventLineageParams = {
|
|
49
|
+
subLineage?: string;
|
|
50
|
+
includeSubAccounts?: boolean;
|
|
51
|
+
};
|
|
52
|
+
export type TEventCommonFilterParams = TEventDateRangeParams & TEventEntityFilterParams & TEventAttributionFilterParams & TEventLineageParams;
|
|
53
|
+
export type TListEvents = TEventCommonFilterParams & {
|
|
54
|
+
eventType?: ETrackedEventType | string | Array<ETrackedEventType | string>;
|
|
55
|
+
sortBy?: EEventSortField | string;
|
|
56
|
+
sortOrder?: "asc" | "desc";
|
|
57
|
+
properties?: string | Record<string, unknown>;
|
|
58
|
+
scrollDepthGte?: number;
|
|
59
|
+
scrollDepthLte?: number;
|
|
60
|
+
limit?: number;
|
|
61
|
+
offset?: number;
|
|
62
|
+
useImpersonationTree?: boolean;
|
|
63
|
+
};
|
|
64
|
+
export type TGetEventSummary = TEventCommonFilterParams & {
|
|
65
|
+
useImpersonationTree?: boolean;
|
|
66
|
+
};
|
|
67
|
+
export type TGetEventTimeseries = TEventCommonFilterParams & {
|
|
68
|
+
eventType?: ETrackedEventType | string;
|
|
69
|
+
granularity?: EEventTimeseriesGranularity | string;
|
|
70
|
+
breakdown?: EEventBreakdownDimension | string;
|
|
71
|
+
useImpersonationTree?: boolean;
|
|
72
|
+
};
|
|
73
|
+
export type TGetEventBreakdown = TEventCommonFilterParams & {
|
|
74
|
+
dimension: EEventBreakdownDimension | string;
|
|
75
|
+
eventType?: ETrackedEventType | string;
|
|
76
|
+
useImpersonationTree?: boolean;
|
|
77
|
+
};
|
|
78
|
+
export type TGetEventPropertyKeys = TEventDateRangeParams & TEventEntityFilterParams & TEventLineageParams & {
|
|
79
|
+
eventType?: ETrackedEventType | string;
|
|
80
|
+
search?: string;
|
|
81
|
+
email?: string;
|
|
82
|
+
useImpersonationTree?: boolean;
|
|
83
|
+
};
|
|
84
|
+
export type TEventFunnelStep = {
|
|
85
|
+
eventType: ETrackedEventType | string;
|
|
86
|
+
properties?: Record<string, unknown>;
|
|
87
|
+
};
|
|
88
|
+
export type TGetEventFunnel = TEventCommonFilterParams & {
|
|
89
|
+
steps: TEventFunnelStep[];
|
|
90
|
+
windowHours?: number;
|
|
91
|
+
useImpersonationTree?: boolean;
|
|
92
|
+
};
|