@adtrackify/at-tracking-event-types 4.66.0 → 4.66.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/cjs/types/api/realtime/realtime-enums.d.ts +6 -0
- package/dist/cjs/types/api/realtime/realtime-enums.js +8 -1
- package/dist/cjs/types/api/realtime/realtime-enums.js.map +1 -1
- package/dist/cjs/types/api/realtime/realtime-types.d.ts +77 -0
- package/dist/cjs/types/api/subscriptions/subscription-types.d.ts +4 -0
- package/dist/esm/types/api/realtime/realtime-enums.d.ts +6 -0
- package/dist/esm/types/api/realtime/realtime-enums.js +7 -0
- package/dist/esm/types/api/realtime/realtime-enums.js.map +1 -1
- package/dist/esm/types/api/realtime/realtime-types.d.ts +77 -0
- package/dist/esm/types/api/subscriptions/subscription-types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -2,3 +2,9 @@ export declare enum REALTIME_MESSAGE_TYPE {
|
|
|
2
2
|
SESSION_UPDATE = "session_update",
|
|
3
3
|
COMMERCE_EVENT = "commerce_event"
|
|
4
4
|
}
|
|
5
|
+
export declare enum REALTIME_CONNECTION_STATUS {
|
|
6
|
+
CONNECTED = "connected",
|
|
7
|
+
PAUSED = "paused",
|
|
8
|
+
RECONNECTING = "reconnecting",
|
|
9
|
+
DISCONNECTED = "disconnected"
|
|
10
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.REALTIME_MESSAGE_TYPE = void 0;
|
|
3
|
+
exports.REALTIME_CONNECTION_STATUS = exports.REALTIME_MESSAGE_TYPE = void 0;
|
|
4
4
|
var REALTIME_MESSAGE_TYPE;
|
|
5
5
|
(function (REALTIME_MESSAGE_TYPE) {
|
|
6
6
|
REALTIME_MESSAGE_TYPE["SESSION_UPDATE"] = "session_update";
|
|
7
7
|
REALTIME_MESSAGE_TYPE["COMMERCE_EVENT"] = "commerce_event";
|
|
8
8
|
})(REALTIME_MESSAGE_TYPE = exports.REALTIME_MESSAGE_TYPE || (exports.REALTIME_MESSAGE_TYPE = {}));
|
|
9
|
+
var REALTIME_CONNECTION_STATUS;
|
|
10
|
+
(function (REALTIME_CONNECTION_STATUS) {
|
|
11
|
+
REALTIME_CONNECTION_STATUS["CONNECTED"] = "connected";
|
|
12
|
+
REALTIME_CONNECTION_STATUS["PAUSED"] = "paused";
|
|
13
|
+
REALTIME_CONNECTION_STATUS["RECONNECTING"] = "reconnecting";
|
|
14
|
+
REALTIME_CONNECTION_STATUS["DISCONNECTED"] = "disconnected";
|
|
15
|
+
})(REALTIME_CONNECTION_STATUS = exports.REALTIME_CONNECTION_STATUS || (exports.REALTIME_CONNECTION_STATUS = {}));
|
|
9
16
|
//# sourceMappingURL=realtime-enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/realtime/realtime-enums.ts"],"names":[],"mappings":";;;AAQA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAE/B,0DAAiC,CAAA;IAEjC,0DAAiC,CAAA;AACnC,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC"}
|
|
1
|
+
{"version":3,"file":"realtime-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/realtime/realtime-enums.ts"],"names":[],"mappings":";;;AAQA,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAE/B,0DAAiC,CAAA;IAEjC,0DAAiC,CAAA;AACnC,CAAC,EALW,qBAAqB,GAArB,6BAAqB,KAArB,6BAAqB,QAKhC;AAGD,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,qDAAuB,CAAA;IACvB,+CAAiB,CAAA;IACjB,2DAA6B,CAAA;IAC7B,2DAA6B,CAAA;AAC/B,CAAC,EALW,0BAA0B,GAA1B,kCAA0B,KAA1B,kCAA0B,QAKrC"}
|
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
import type { AdClickInfo, DeviceInfo } from '../../event/context/event-context.js';
|
|
2
|
+
import type { TrackingEvent } from '../../event/tracking-event.js';
|
|
2
3
|
import { REALTIME_MESSAGE_TYPE } from './realtime-enums.js';
|
|
3
4
|
import { RETURN_TIER } from '../../event/session-event.js';
|
|
5
|
+
export interface RealtimeActiveVisitor {
|
|
6
|
+
sessionId: string;
|
|
7
|
+
pixelId: string;
|
|
8
|
+
identityId: string;
|
|
9
|
+
currentPage: string;
|
|
10
|
+
country: string;
|
|
11
|
+
region: string;
|
|
12
|
+
state: string;
|
|
13
|
+
regionCode: string;
|
|
14
|
+
city: string;
|
|
15
|
+
postalCode: string;
|
|
16
|
+
totalActiveTime: number;
|
|
17
|
+
sessionScore: number;
|
|
18
|
+
intentScore: number;
|
|
19
|
+
engagementTier: string;
|
|
20
|
+
intentTier: string;
|
|
21
|
+
pageCount: number;
|
|
22
|
+
landingPage: string;
|
|
23
|
+
maxFunnelStage: number;
|
|
24
|
+
returnTier: string;
|
|
25
|
+
lastSeenAt: string;
|
|
26
|
+
}
|
|
27
|
+
export interface RealtimeGeoCount {
|
|
28
|
+
country: string;
|
|
29
|
+
count: number;
|
|
30
|
+
}
|
|
31
|
+
export interface RealtimePageCount {
|
|
32
|
+
page: string;
|
|
33
|
+
count: number;
|
|
34
|
+
}
|
|
35
|
+
export interface RealtimeFeedOptions {
|
|
36
|
+
offset?: number;
|
|
37
|
+
limit?: number;
|
|
38
|
+
eventName?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface RealtimeSessionEventsOptions {
|
|
41
|
+
offset?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface RealtimeFeedResponse {
|
|
45
|
+
events: RealtimeFeedEvent[];
|
|
46
|
+
total: number;
|
|
47
|
+
offset: number;
|
|
48
|
+
limit: number;
|
|
49
|
+
}
|
|
50
|
+
export interface RealtimeVisitorsResponse {
|
|
51
|
+
visitors: RealtimeActiveVisitor[];
|
|
52
|
+
total: number;
|
|
53
|
+
offset: number;
|
|
54
|
+
limit: number;
|
|
55
|
+
}
|
|
56
|
+
export interface RealtimeSessionResponse {
|
|
57
|
+
session: RealtimeActiveVisitor | null;
|
|
58
|
+
events: RealtimeFeedResponse;
|
|
59
|
+
}
|
|
60
|
+
export interface RealtimeGeoResponse {
|
|
61
|
+
countries: RealtimeGeoCount[];
|
|
62
|
+
total: number;
|
|
63
|
+
}
|
|
64
|
+
export interface RealtimePagesResponse {
|
|
65
|
+
pages: RealtimePageCount[];
|
|
66
|
+
total: number;
|
|
67
|
+
}
|
|
4
68
|
export interface RealtimeIngressMessage {
|
|
5
69
|
type: REALTIME_MESSAGE_TYPE;
|
|
6
70
|
pixelId: string;
|
|
@@ -45,4 +109,17 @@ export interface RealtimeIngressMessage {
|
|
|
45
109
|
refrSource?: string;
|
|
46
110
|
refrMedium?: string;
|
|
47
111
|
refrTerm?: string;
|
|
112
|
+
rawTrackingEvent?: TrackingEvent;
|
|
113
|
+
}
|
|
114
|
+
export interface RealtimeFeedEvent {
|
|
115
|
+
pixelId: string;
|
|
116
|
+
sessionId: string;
|
|
117
|
+
eventName: string;
|
|
118
|
+
value?: number;
|
|
119
|
+
identityId?: string;
|
|
120
|
+
currentPage?: string;
|
|
121
|
+
currency?: string;
|
|
122
|
+
timestamp: number;
|
|
123
|
+
_storedAt: number;
|
|
124
|
+
rawEvent?: TrackingEvent;
|
|
48
125
|
}
|
|
@@ -171,3 +171,7 @@ export interface CompleteShopifyUpdateResponse {
|
|
|
171
171
|
subscription: Subscription;
|
|
172
172
|
change: SubscriptionChangeMetadata;
|
|
173
173
|
}
|
|
174
|
+
export interface ResumeStripeSubscriptionResponse {
|
|
175
|
+
subscription: Subscription;
|
|
176
|
+
change?: SubscriptionChangeMetadata;
|
|
177
|
+
}
|
|
@@ -2,3 +2,9 @@ export declare enum REALTIME_MESSAGE_TYPE {
|
|
|
2
2
|
SESSION_UPDATE = "session_update",
|
|
3
3
|
COMMERCE_EVENT = "commerce_event"
|
|
4
4
|
}
|
|
5
|
+
export declare enum REALTIME_CONNECTION_STATUS {
|
|
6
|
+
CONNECTED = "connected",
|
|
7
|
+
PAUSED = "paused",
|
|
8
|
+
RECONNECTING = "reconnecting",
|
|
9
|
+
DISCONNECTED = "disconnected"
|
|
10
|
+
}
|
|
@@ -3,4 +3,11 @@ export var REALTIME_MESSAGE_TYPE;
|
|
|
3
3
|
REALTIME_MESSAGE_TYPE["SESSION_UPDATE"] = "session_update";
|
|
4
4
|
REALTIME_MESSAGE_TYPE["COMMERCE_EVENT"] = "commerce_event";
|
|
5
5
|
})(REALTIME_MESSAGE_TYPE || (REALTIME_MESSAGE_TYPE = {}));
|
|
6
|
+
export var REALTIME_CONNECTION_STATUS;
|
|
7
|
+
(function (REALTIME_CONNECTION_STATUS) {
|
|
8
|
+
REALTIME_CONNECTION_STATUS["CONNECTED"] = "connected";
|
|
9
|
+
REALTIME_CONNECTION_STATUS["PAUSED"] = "paused";
|
|
10
|
+
REALTIME_CONNECTION_STATUS["RECONNECTING"] = "reconnecting";
|
|
11
|
+
REALTIME_CONNECTION_STATUS["DISCONNECTED"] = "disconnected";
|
|
12
|
+
})(REALTIME_CONNECTION_STATUS || (REALTIME_CONNECTION_STATUS = {}));
|
|
6
13
|
//# sourceMappingURL=realtime-enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"realtime-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/realtime/realtime-enums.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAE/B,0DAAiC,CAAA;IAEjC,0DAAiC,CAAA;AACnC,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC"}
|
|
1
|
+
{"version":3,"file":"realtime-enums.js","sourceRoot":"","sources":["../../../../../src/types/api/realtime/realtime-enums.ts"],"names":[],"mappings":"AAQA,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAE/B,0DAAiC,CAAA;IAEjC,0DAAiC,CAAA;AACnC,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AAGD,MAAM,CAAN,IAAY,0BAKX;AALD,WAAY,0BAA0B;IACpC,qDAAuB,CAAA;IACvB,+CAAiB,CAAA;IACjB,2DAA6B,CAAA;IAC7B,2DAA6B,CAAA;AAC/B,CAAC,EALW,0BAA0B,KAA1B,0BAA0B,QAKrC"}
|
|
@@ -1,6 +1,70 @@
|
|
|
1
1
|
import type { AdClickInfo, DeviceInfo } from '../../event/context/event-context.js';
|
|
2
|
+
import type { TrackingEvent } from '../../event/tracking-event.js';
|
|
2
3
|
import { REALTIME_MESSAGE_TYPE } from './realtime-enums.js';
|
|
3
4
|
import { RETURN_TIER } from '../../event/session-event.js';
|
|
5
|
+
export interface RealtimeActiveVisitor {
|
|
6
|
+
sessionId: string;
|
|
7
|
+
pixelId: string;
|
|
8
|
+
identityId: string;
|
|
9
|
+
currentPage: string;
|
|
10
|
+
country: string;
|
|
11
|
+
region: string;
|
|
12
|
+
state: string;
|
|
13
|
+
regionCode: string;
|
|
14
|
+
city: string;
|
|
15
|
+
postalCode: string;
|
|
16
|
+
totalActiveTime: number;
|
|
17
|
+
sessionScore: number;
|
|
18
|
+
intentScore: number;
|
|
19
|
+
engagementTier: string;
|
|
20
|
+
intentTier: string;
|
|
21
|
+
pageCount: number;
|
|
22
|
+
landingPage: string;
|
|
23
|
+
maxFunnelStage: number;
|
|
24
|
+
returnTier: string;
|
|
25
|
+
lastSeenAt: string;
|
|
26
|
+
}
|
|
27
|
+
export interface RealtimeGeoCount {
|
|
28
|
+
country: string;
|
|
29
|
+
count: number;
|
|
30
|
+
}
|
|
31
|
+
export interface RealtimePageCount {
|
|
32
|
+
page: string;
|
|
33
|
+
count: number;
|
|
34
|
+
}
|
|
35
|
+
export interface RealtimeFeedOptions {
|
|
36
|
+
offset?: number;
|
|
37
|
+
limit?: number;
|
|
38
|
+
eventName?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface RealtimeSessionEventsOptions {
|
|
41
|
+
offset?: number;
|
|
42
|
+
limit?: number;
|
|
43
|
+
}
|
|
44
|
+
export interface RealtimeFeedResponse {
|
|
45
|
+
events: RealtimeFeedEvent[];
|
|
46
|
+
total: number;
|
|
47
|
+
offset: number;
|
|
48
|
+
limit: number;
|
|
49
|
+
}
|
|
50
|
+
export interface RealtimeVisitorsResponse {
|
|
51
|
+
visitors: RealtimeActiveVisitor[];
|
|
52
|
+
total: number;
|
|
53
|
+
offset: number;
|
|
54
|
+
limit: number;
|
|
55
|
+
}
|
|
56
|
+
export interface RealtimeSessionResponse {
|
|
57
|
+
session: RealtimeActiveVisitor | null;
|
|
58
|
+
events: RealtimeFeedResponse;
|
|
59
|
+
}
|
|
60
|
+
export interface RealtimeGeoResponse {
|
|
61
|
+
countries: RealtimeGeoCount[];
|
|
62
|
+
total: number;
|
|
63
|
+
}
|
|
64
|
+
export interface RealtimePagesResponse {
|
|
65
|
+
pages: RealtimePageCount[];
|
|
66
|
+
total: number;
|
|
67
|
+
}
|
|
4
68
|
export interface RealtimeIngressMessage {
|
|
5
69
|
type: REALTIME_MESSAGE_TYPE;
|
|
6
70
|
pixelId: string;
|
|
@@ -45,4 +109,17 @@ export interface RealtimeIngressMessage {
|
|
|
45
109
|
refrSource?: string;
|
|
46
110
|
refrMedium?: string;
|
|
47
111
|
refrTerm?: string;
|
|
112
|
+
rawTrackingEvent?: TrackingEvent;
|
|
113
|
+
}
|
|
114
|
+
export interface RealtimeFeedEvent {
|
|
115
|
+
pixelId: string;
|
|
116
|
+
sessionId: string;
|
|
117
|
+
eventName: string;
|
|
118
|
+
value?: number;
|
|
119
|
+
identityId?: string;
|
|
120
|
+
currentPage?: string;
|
|
121
|
+
currency?: string;
|
|
122
|
+
timestamp: number;
|
|
123
|
+
_storedAt: number;
|
|
124
|
+
rawEvent?: TrackingEvent;
|
|
48
125
|
}
|
|
@@ -171,3 +171,7 @@ export interface CompleteShopifyUpdateResponse {
|
|
|
171
171
|
subscription: Subscription;
|
|
172
172
|
change: SubscriptionChangeMetadata;
|
|
173
173
|
}
|
|
174
|
+
export interface ResumeStripeSubscriptionResponse {
|
|
175
|
+
subscription: Subscription;
|
|
176
|
+
change?: SubscriptionChangeMetadata;
|
|
177
|
+
}
|