@adtrackify/at-tracking-event-types 3.6.2 → 4.0.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/dist/cjs/types/api/index.d.ts +0 -1
- package/dist/cjs/types/api/index.js +0 -1
- package/dist/cjs/types/api/index.js.map +1 -1
- package/dist/cjs/types/api/user-account.d.ts +5 -5
- package/dist/esm/types/api/index.d.ts +0 -1
- package/dist/esm/types/api/index.js +0 -1
- package/dist/esm/types/api/index.js.map +1 -1
- package/dist/esm/types/api/user-account.d.ts +5 -5
- package/package.json +1 -1
- package/dist/cjs/types/api/events/alert-events.d.ts +0 -133
- package/dist/cjs/types/api/events/alert-events.js +0 -50
- package/dist/cjs/types/api/events/alert-events.js.map +0 -1
- package/dist/cjs/types/api/events/index.d.ts +0 -1
- package/dist/cjs/types/api/events/index.js +0 -18
- package/dist/cjs/types/api/events/index.js.map +0 -1
- package/dist/esm/types/api/events/alert-events.d.ts +0 -133
- package/dist/esm/types/api/events/alert-events.js +0 -47
- package/dist/esm/types/api/events/alert-events.js.map +0 -1
- package/dist/esm/types/api/events/index.d.ts +0 -1
- package/dist/esm/types/api/events/index.js +0 -2
- package/dist/esm/types/api/events/index.js.map +0 -1
|
@@ -2,7 +2,6 @@ export * from './contact-acquisition/index.js';
|
|
|
2
2
|
export * from './dashboards/index.js';
|
|
3
3
|
export * from './destinations/index.js';
|
|
4
4
|
export * from './emq/index.js';
|
|
5
|
-
export * from './events/index.js';
|
|
6
5
|
export * from './health/index.js';
|
|
7
6
|
export * from './measures/index.js';
|
|
8
7
|
export * from './notifications/index.js';
|
|
@@ -18,7 +18,6 @@ __exportStar(require("./contact-acquisition/index.js"), exports);
|
|
|
18
18
|
__exportStar(require("./dashboards/index.js"), exports);
|
|
19
19
|
__exportStar(require("./destinations/index.js"), exports);
|
|
20
20
|
__exportStar(require("./emq/index.js"), exports);
|
|
21
|
-
__exportStar(require("./events/index.js"), exports);
|
|
22
21
|
__exportStar(require("./health/index.js"), exports);
|
|
23
22
|
__exportStar(require("./measures/index.js"), exports);
|
|
24
23
|
__exportStar(require("./notifications/index.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,iEAA+C;AAC/C,wDAAsC;AACtC,0DAAwC;AACxC,iDAA+B;AAC/B,oDAAkC;AAClC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAKA,iEAA+C;AAC/C,wDAAsC;AACtC,0DAAwC;AACxC,iDAA+B;AAC/B,oDAAkC;AAClC,sDAAoC;AACpC,2DAAyC;AACzC,4DAA0C;AAK1C,+CAA6B;AAC7B,kEAAgD;AAChD,uDAAqC;AACrC,oDAAkC;AAClC,+CAA6B;AAC7B,kDAAgC;AAChC,sDAAoC;AACpC,6CAA2B;AAC3B,2DAAyC;AACzC,oDAAkC;AAClC,uDAAqC;AACrC,oDAAkC;AAClC,4CAA0B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NOTIFICATION_CATEGORY } from './notifications/index.js';
|
|
2
2
|
export declare enum USER_ROLES {
|
|
3
3
|
OWNER = "owner",
|
|
4
4
|
ADMIN = "admin",
|
|
@@ -10,9 +10,9 @@ export declare enum USER_ACCOUNT_STATUS {
|
|
|
10
10
|
ACTIVE = "active",
|
|
11
11
|
INACTIVE = "inactive"
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
categories?: Partial<Record<
|
|
15
|
-
|
|
13
|
+
export interface UserNotificationPreferences {
|
|
14
|
+
categories?: Partial<Record<NOTIFICATION_CATEGORY, boolean>>;
|
|
15
|
+
notifications?: Record<string, boolean>;
|
|
16
16
|
updatedAt?: string;
|
|
17
17
|
}
|
|
18
18
|
export interface UserAccountRecord {
|
|
@@ -24,7 +24,7 @@ export interface UserAccountRecord {
|
|
|
24
24
|
status: USER_ACCOUNT_STATUS;
|
|
25
25
|
firstName?: string;
|
|
26
26
|
lastName?: string;
|
|
27
|
-
|
|
27
|
+
notificationPreferences?: UserNotificationPreferences;
|
|
28
28
|
createdAt?: string;
|
|
29
29
|
createdBy?: string;
|
|
30
30
|
updatedAt?: string;
|
|
@@ -2,7 +2,6 @@ export * from './contact-acquisition/index.js';
|
|
|
2
2
|
export * from './dashboards/index.js';
|
|
3
3
|
export * from './destinations/index.js';
|
|
4
4
|
export * from './emq/index.js';
|
|
5
|
-
export * from './events/index.js';
|
|
6
5
|
export * from './health/index.js';
|
|
7
6
|
export * from './measures/index.js';
|
|
8
7
|
export * from './notifications/index.js';
|
|
@@ -2,7 +2,6 @@ export * from './contact-acquisition/index.js';
|
|
|
2
2
|
export * from './dashboards/index.js';
|
|
3
3
|
export * from './destinations/index.js';
|
|
4
4
|
export * from './emq/index.js';
|
|
5
|
-
export * from './events/index.js';
|
|
6
5
|
export * from './health/index.js';
|
|
7
6
|
export * from './measures/index.js';
|
|
8
7
|
export * from './notifications/index.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":"AAKA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/types/api/index.ts"],"names":[],"mappings":"AAKA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,0BAA0B,CAAC;AACzC,cAAc,2BAA2B,CAAC;AAK1C,cAAc,cAAc,CAAC;AAC7B,cAAc,iCAAiC,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NOTIFICATION_CATEGORY } from './notifications/index.js';
|
|
2
2
|
export declare enum USER_ROLES {
|
|
3
3
|
OWNER = "owner",
|
|
4
4
|
ADMIN = "admin",
|
|
@@ -10,9 +10,9 @@ export declare enum USER_ACCOUNT_STATUS {
|
|
|
10
10
|
ACTIVE = "active",
|
|
11
11
|
INACTIVE = "inactive"
|
|
12
12
|
}
|
|
13
|
-
export interface
|
|
14
|
-
categories?: Partial<Record<
|
|
15
|
-
|
|
13
|
+
export interface UserNotificationPreferences {
|
|
14
|
+
categories?: Partial<Record<NOTIFICATION_CATEGORY, boolean>>;
|
|
15
|
+
notifications?: Record<string, boolean>;
|
|
16
16
|
updatedAt?: string;
|
|
17
17
|
}
|
|
18
18
|
export interface UserAccountRecord {
|
|
@@ -24,7 +24,7 @@ export interface UserAccountRecord {
|
|
|
24
24
|
status: USER_ACCOUNT_STATUS;
|
|
25
25
|
firstName?: string;
|
|
26
26
|
lastName?: string;
|
|
27
|
-
|
|
27
|
+
notificationPreferences?: UserNotificationPreferences;
|
|
28
28
|
createdAt?: string;
|
|
29
29
|
createdBy?: string;
|
|
30
30
|
updatedAt?: string;
|
package/package.json
CHANGED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { AUDIT_TYPE } from '../service-events/index.js';
|
|
2
|
-
import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail } from '../service-events/index.js';
|
|
3
|
-
export declare enum ALERT_SEVERITY {
|
|
4
|
-
INFO = "info",
|
|
5
|
-
WARNING = "warning",
|
|
6
|
-
CRITICAL = "critical"
|
|
7
|
-
}
|
|
8
|
-
export declare enum ALERT_CATEGORY {
|
|
9
|
-
ACCOUNT = "account",
|
|
10
|
-
SUBSCRIPTION = "subscription",
|
|
11
|
-
USAGE = "usage",
|
|
12
|
-
HEALTH = "health"
|
|
13
|
-
}
|
|
14
|
-
export declare enum ALERT_EVENT_DETAIL_TYPE {
|
|
15
|
-
EMQ_DATA_INGESTED = "emqDataIngested",
|
|
16
|
-
DESTINATION_FORWARDING_ERROR = "destinationForwardingError",
|
|
17
|
-
INTEGRATION_TOKEN_ERROR = "integrationTokenError",
|
|
18
|
-
DESTINATION_HEALTH_ALERT_TRIGGERED = "destinationHealthAlertTriggered",
|
|
19
|
-
SUBSCRIPTION_ALERT_TRIGGERED = "subscriptionAlertTriggered",
|
|
20
|
-
ACCOUNT_ALERT_TRIGGERED = "accountAlertTriggered",
|
|
21
|
-
DESTINATION_HEALTH_AUDIT_REQUESTED = "destinationHealthAuditRequested"
|
|
22
|
-
}
|
|
23
|
-
export declare enum SUBSCRIPTION_ALERT_TYPE {
|
|
24
|
-
PAYMENT_FAILED = "payment_failed",
|
|
25
|
-
TRIAL_ENDING = "trial_ending",
|
|
26
|
-
USAGE_LIMIT_WARNING = "usage_limit_warning",
|
|
27
|
-
USAGE_LIMIT_EXCEEDED = "usage_limit_exceeded",
|
|
28
|
-
SUBSCRIPTION_CANCELLED = "subscription_cancelled"
|
|
29
|
-
}
|
|
30
|
-
export declare enum ACCOUNT_ALERT_TYPE {
|
|
31
|
-
TEAM_MEMBER_INVITED = "team_member_invited",
|
|
32
|
-
TEAM_MEMBER_ADDED = "team_member_added",
|
|
33
|
-
SHOPIFY_USER_CREDENTIALS = "shopify_user_credentials"
|
|
34
|
-
}
|
|
35
|
-
export declare enum HEALTH_ALERT_TYPE {
|
|
36
|
-
DESTINATION_UNHEALTHY = "destination_unhealthy",
|
|
37
|
-
INTEGRATION_UNHEALTHY = "integration_unhealthy",
|
|
38
|
-
PIXEL_UNHEALTHY = "pixel_unhealthy",
|
|
39
|
-
THEME_EXTENSION_UNHEALTHY = "theme_extension_unhealthy",
|
|
40
|
-
EMQ_CRITICAL = "emq_critical",
|
|
41
|
-
EMQ_SCORE_DROP = "emq_score_drop"
|
|
42
|
-
}
|
|
43
|
-
export interface DestinationHealthAlertData {
|
|
44
|
-
alertType: string;
|
|
45
|
-
severity: ALERT_SEVERITY;
|
|
46
|
-
message: string;
|
|
47
|
-
data: Record<string, unknown>;
|
|
48
|
-
}
|
|
49
|
-
export interface DestinationHealthAlertTriggeredEventDetail {
|
|
50
|
-
destinationId: string;
|
|
51
|
-
accountId: string;
|
|
52
|
-
pixelId: string;
|
|
53
|
-
alertType: string;
|
|
54
|
-
severity: ALERT_SEVERITY;
|
|
55
|
-
message: string;
|
|
56
|
-
data: Record<string, unknown>;
|
|
57
|
-
}
|
|
58
|
-
export interface SubscriptionAlertTriggeredEventDetail {
|
|
59
|
-
accountId: string;
|
|
60
|
-
alertType: SUBSCRIPTION_ALERT_TYPE;
|
|
61
|
-
entityId: string;
|
|
62
|
-
severity: ALERT_SEVERITY;
|
|
63
|
-
message: string;
|
|
64
|
-
data: Record<string, unknown>;
|
|
65
|
-
directEmail?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface AccountAlertTriggeredEventDetail {
|
|
68
|
-
accountId: string;
|
|
69
|
-
alertType: ACCOUNT_ALERT_TYPE;
|
|
70
|
-
entityId?: string;
|
|
71
|
-
severity: ALERT_SEVERITY;
|
|
72
|
-
message: string;
|
|
73
|
-
data: Record<string, unknown>;
|
|
74
|
-
directEmail?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface DestinationHealthAuditRequestedEventDetail {
|
|
77
|
-
auditType: AUDIT_TYPE;
|
|
78
|
-
accountId?: string;
|
|
79
|
-
destinationId?: string;
|
|
80
|
-
requestedAt: string;
|
|
81
|
-
}
|
|
82
|
-
export interface EmqDataIngestedEvent {
|
|
83
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.EMQ_DATA_INGESTED;
|
|
84
|
-
detail: EmqDataIngestedEventDetail;
|
|
85
|
-
}
|
|
86
|
-
export interface DestinationForwardingErrorEvent {
|
|
87
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_FORWARDING_ERROR;
|
|
88
|
-
detail: DestinationForwardingErrorEventDetail;
|
|
89
|
-
}
|
|
90
|
-
export interface IntegrationTokenErrorEvent {
|
|
91
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.INTEGRATION_TOKEN_ERROR;
|
|
92
|
-
detail: IntegrationTokenErrorEventDetail;
|
|
93
|
-
}
|
|
94
|
-
export interface DestinationHealthAlertTriggeredEvent {
|
|
95
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_ALERT_TRIGGERED;
|
|
96
|
-
detail: DestinationHealthAlertTriggeredEventDetail;
|
|
97
|
-
}
|
|
98
|
-
export interface SubscriptionAlertTriggeredEvent {
|
|
99
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.SUBSCRIPTION_ALERT_TRIGGERED;
|
|
100
|
-
detail: SubscriptionAlertTriggeredEventDetail;
|
|
101
|
-
}
|
|
102
|
-
export interface AccountAlertTriggeredEvent {
|
|
103
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.ACCOUNT_ALERT_TRIGGERED;
|
|
104
|
-
detail: AccountAlertTriggeredEventDetail;
|
|
105
|
-
}
|
|
106
|
-
export interface DestinationHealthAuditRequestedEvent {
|
|
107
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_AUDIT_REQUESTED;
|
|
108
|
-
detail: DestinationHealthAuditRequestedEventDetail;
|
|
109
|
-
}
|
|
110
|
-
export interface AlertHistoryItem {
|
|
111
|
-
alertId: string;
|
|
112
|
-
accountId: string;
|
|
113
|
-
alertType: string;
|
|
114
|
-
alertCategory: ALERT_CATEGORY;
|
|
115
|
-
scope: 'account' | 'user';
|
|
116
|
-
targetUserId?: string;
|
|
117
|
-
entityType: string;
|
|
118
|
-
entityId: string;
|
|
119
|
-
severity: ALERT_SEVERITY;
|
|
120
|
-
title: string;
|
|
121
|
-
message: string;
|
|
122
|
-
ctaPath: string;
|
|
123
|
-
data: Record<string, unknown>;
|
|
124
|
-
channels: Record<string, unknown>;
|
|
125
|
-
status: 'unread' | 'read';
|
|
126
|
-
sentAt: string;
|
|
127
|
-
readAt?: string;
|
|
128
|
-
readByUserId?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface PaginatedAlertsResponse {
|
|
131
|
-
alerts: AlertHistoryItem[];
|
|
132
|
-
nextCursor?: string;
|
|
133
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HEALTH_ALERT_TYPE = exports.ACCOUNT_ALERT_TYPE = exports.SUBSCRIPTION_ALERT_TYPE = exports.ALERT_EVENT_DETAIL_TYPE = exports.ALERT_CATEGORY = exports.ALERT_SEVERITY = void 0;
|
|
4
|
-
var ALERT_SEVERITY;
|
|
5
|
-
(function (ALERT_SEVERITY) {
|
|
6
|
-
ALERT_SEVERITY["INFO"] = "info";
|
|
7
|
-
ALERT_SEVERITY["WARNING"] = "warning";
|
|
8
|
-
ALERT_SEVERITY["CRITICAL"] = "critical";
|
|
9
|
-
})(ALERT_SEVERITY = exports.ALERT_SEVERITY || (exports.ALERT_SEVERITY = {}));
|
|
10
|
-
var ALERT_CATEGORY;
|
|
11
|
-
(function (ALERT_CATEGORY) {
|
|
12
|
-
ALERT_CATEGORY["ACCOUNT"] = "account";
|
|
13
|
-
ALERT_CATEGORY["SUBSCRIPTION"] = "subscription";
|
|
14
|
-
ALERT_CATEGORY["USAGE"] = "usage";
|
|
15
|
-
ALERT_CATEGORY["HEALTH"] = "health";
|
|
16
|
-
})(ALERT_CATEGORY = exports.ALERT_CATEGORY || (exports.ALERT_CATEGORY = {}));
|
|
17
|
-
var ALERT_EVENT_DETAIL_TYPE;
|
|
18
|
-
(function (ALERT_EVENT_DETAIL_TYPE) {
|
|
19
|
-
ALERT_EVENT_DETAIL_TYPE["EMQ_DATA_INGESTED"] = "emqDataIngested";
|
|
20
|
-
ALERT_EVENT_DETAIL_TYPE["DESTINATION_FORWARDING_ERROR"] = "destinationForwardingError";
|
|
21
|
-
ALERT_EVENT_DETAIL_TYPE["INTEGRATION_TOKEN_ERROR"] = "integrationTokenError";
|
|
22
|
-
ALERT_EVENT_DETAIL_TYPE["DESTINATION_HEALTH_ALERT_TRIGGERED"] = "destinationHealthAlertTriggered";
|
|
23
|
-
ALERT_EVENT_DETAIL_TYPE["SUBSCRIPTION_ALERT_TRIGGERED"] = "subscriptionAlertTriggered";
|
|
24
|
-
ALERT_EVENT_DETAIL_TYPE["ACCOUNT_ALERT_TRIGGERED"] = "accountAlertTriggered";
|
|
25
|
-
ALERT_EVENT_DETAIL_TYPE["DESTINATION_HEALTH_AUDIT_REQUESTED"] = "destinationHealthAuditRequested";
|
|
26
|
-
})(ALERT_EVENT_DETAIL_TYPE = exports.ALERT_EVENT_DETAIL_TYPE || (exports.ALERT_EVENT_DETAIL_TYPE = {}));
|
|
27
|
-
var SUBSCRIPTION_ALERT_TYPE;
|
|
28
|
-
(function (SUBSCRIPTION_ALERT_TYPE) {
|
|
29
|
-
SUBSCRIPTION_ALERT_TYPE["PAYMENT_FAILED"] = "payment_failed";
|
|
30
|
-
SUBSCRIPTION_ALERT_TYPE["TRIAL_ENDING"] = "trial_ending";
|
|
31
|
-
SUBSCRIPTION_ALERT_TYPE["USAGE_LIMIT_WARNING"] = "usage_limit_warning";
|
|
32
|
-
SUBSCRIPTION_ALERT_TYPE["USAGE_LIMIT_EXCEEDED"] = "usage_limit_exceeded";
|
|
33
|
-
SUBSCRIPTION_ALERT_TYPE["SUBSCRIPTION_CANCELLED"] = "subscription_cancelled";
|
|
34
|
-
})(SUBSCRIPTION_ALERT_TYPE = exports.SUBSCRIPTION_ALERT_TYPE || (exports.SUBSCRIPTION_ALERT_TYPE = {}));
|
|
35
|
-
var ACCOUNT_ALERT_TYPE;
|
|
36
|
-
(function (ACCOUNT_ALERT_TYPE) {
|
|
37
|
-
ACCOUNT_ALERT_TYPE["TEAM_MEMBER_INVITED"] = "team_member_invited";
|
|
38
|
-
ACCOUNT_ALERT_TYPE["TEAM_MEMBER_ADDED"] = "team_member_added";
|
|
39
|
-
ACCOUNT_ALERT_TYPE["SHOPIFY_USER_CREDENTIALS"] = "shopify_user_credentials";
|
|
40
|
-
})(ACCOUNT_ALERT_TYPE = exports.ACCOUNT_ALERT_TYPE || (exports.ACCOUNT_ALERT_TYPE = {}));
|
|
41
|
-
var HEALTH_ALERT_TYPE;
|
|
42
|
-
(function (HEALTH_ALERT_TYPE) {
|
|
43
|
-
HEALTH_ALERT_TYPE["DESTINATION_UNHEALTHY"] = "destination_unhealthy";
|
|
44
|
-
HEALTH_ALERT_TYPE["INTEGRATION_UNHEALTHY"] = "integration_unhealthy";
|
|
45
|
-
HEALTH_ALERT_TYPE["PIXEL_UNHEALTHY"] = "pixel_unhealthy";
|
|
46
|
-
HEALTH_ALERT_TYPE["THEME_EXTENSION_UNHEALTHY"] = "theme_extension_unhealthy";
|
|
47
|
-
HEALTH_ALERT_TYPE["EMQ_CRITICAL"] = "emq_critical";
|
|
48
|
-
HEALTH_ALERT_TYPE["EMQ_SCORE_DROP"] = "emq_score_drop";
|
|
49
|
-
})(HEALTH_ALERT_TYPE = exports.HEALTH_ALERT_TYPE || (exports.HEALTH_ALERT_TYPE = {}));
|
|
50
|
-
//# sourceMappingURL=alert-events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-events.js","sourceRoot":"","sources":["../../../../../src/types/api/events/alert-events.ts"],"names":[],"mappings":";;;AAqBA,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAIzB;AAMD,IAAY,cASX;AATD,WAAY,cAAc;IAExB,qCAAmB,CAAA;IAEnB,+CAA6B,CAAA;IAE7B,iCAAe,CAAA;IAEf,mCAAiB,CAAA;AACnB,CAAC,EATW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QASzB;AAMD,IAAY,uBAeX;AAfD,WAAY,uBAAuB;IAEjC,gEAAqC,CAAA;IAErC,sFAA2D,CAAA;IAE3D,4EAAiD,CAAA;IAEjD,iGAAsE,CAAA;IAEtE,sFAA2D,CAAA;IAE3D,4EAAiD,CAAA;IAEjD,iGAAsE,CAAA;AACxE,CAAC,EAfW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAelC;AAKD,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,4DAAiC,CAAA;IACjC,wDAA6B,CAAA;IAC7B,sEAA2C,CAAA;IAC3C,wEAA6C,CAAA;IAC7C,4EAAiD,CAAA;AACnD,CAAC,EANW,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAMlC;AAKD,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAE5B,iEAA2C,CAAA;IAE3C,6DAAuC,CAAA;IAEvC,2EAAqD,CAAA;AACvD,CAAC,EAPW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAO7B;AAKD,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAE3B,oEAA+C,CAAA;IAE/C,oEAA+C,CAAA;IAE/C,wDAAmC,CAAA;IAEnC,4EAAuD,CAAA;IAEvD,kDAA6B,CAAA;IAE7B,sDAAiC,CAAA;AACnC,CAAC,EAbW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAa5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './alert-events.js';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./alert-events.js"), exports);
|
|
18
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { AUDIT_TYPE } from '../service-events/index.js';
|
|
2
|
-
import type { EmqDataIngestedEventDetail, DestinationForwardingErrorEventDetail, IntegrationTokenErrorEventDetail } from '../service-events/index.js';
|
|
3
|
-
export declare enum ALERT_SEVERITY {
|
|
4
|
-
INFO = "info",
|
|
5
|
-
WARNING = "warning",
|
|
6
|
-
CRITICAL = "critical"
|
|
7
|
-
}
|
|
8
|
-
export declare enum ALERT_CATEGORY {
|
|
9
|
-
ACCOUNT = "account",
|
|
10
|
-
SUBSCRIPTION = "subscription",
|
|
11
|
-
USAGE = "usage",
|
|
12
|
-
HEALTH = "health"
|
|
13
|
-
}
|
|
14
|
-
export declare enum ALERT_EVENT_DETAIL_TYPE {
|
|
15
|
-
EMQ_DATA_INGESTED = "emqDataIngested",
|
|
16
|
-
DESTINATION_FORWARDING_ERROR = "destinationForwardingError",
|
|
17
|
-
INTEGRATION_TOKEN_ERROR = "integrationTokenError",
|
|
18
|
-
DESTINATION_HEALTH_ALERT_TRIGGERED = "destinationHealthAlertTriggered",
|
|
19
|
-
SUBSCRIPTION_ALERT_TRIGGERED = "subscriptionAlertTriggered",
|
|
20
|
-
ACCOUNT_ALERT_TRIGGERED = "accountAlertTriggered",
|
|
21
|
-
DESTINATION_HEALTH_AUDIT_REQUESTED = "destinationHealthAuditRequested"
|
|
22
|
-
}
|
|
23
|
-
export declare enum SUBSCRIPTION_ALERT_TYPE {
|
|
24
|
-
PAYMENT_FAILED = "payment_failed",
|
|
25
|
-
TRIAL_ENDING = "trial_ending",
|
|
26
|
-
USAGE_LIMIT_WARNING = "usage_limit_warning",
|
|
27
|
-
USAGE_LIMIT_EXCEEDED = "usage_limit_exceeded",
|
|
28
|
-
SUBSCRIPTION_CANCELLED = "subscription_cancelled"
|
|
29
|
-
}
|
|
30
|
-
export declare enum ACCOUNT_ALERT_TYPE {
|
|
31
|
-
TEAM_MEMBER_INVITED = "team_member_invited",
|
|
32
|
-
TEAM_MEMBER_ADDED = "team_member_added",
|
|
33
|
-
SHOPIFY_USER_CREDENTIALS = "shopify_user_credentials"
|
|
34
|
-
}
|
|
35
|
-
export declare enum HEALTH_ALERT_TYPE {
|
|
36
|
-
DESTINATION_UNHEALTHY = "destination_unhealthy",
|
|
37
|
-
INTEGRATION_UNHEALTHY = "integration_unhealthy",
|
|
38
|
-
PIXEL_UNHEALTHY = "pixel_unhealthy",
|
|
39
|
-
THEME_EXTENSION_UNHEALTHY = "theme_extension_unhealthy",
|
|
40
|
-
EMQ_CRITICAL = "emq_critical",
|
|
41
|
-
EMQ_SCORE_DROP = "emq_score_drop"
|
|
42
|
-
}
|
|
43
|
-
export interface DestinationHealthAlertData {
|
|
44
|
-
alertType: string;
|
|
45
|
-
severity: ALERT_SEVERITY;
|
|
46
|
-
message: string;
|
|
47
|
-
data: Record<string, unknown>;
|
|
48
|
-
}
|
|
49
|
-
export interface DestinationHealthAlertTriggeredEventDetail {
|
|
50
|
-
destinationId: string;
|
|
51
|
-
accountId: string;
|
|
52
|
-
pixelId: string;
|
|
53
|
-
alertType: string;
|
|
54
|
-
severity: ALERT_SEVERITY;
|
|
55
|
-
message: string;
|
|
56
|
-
data: Record<string, unknown>;
|
|
57
|
-
}
|
|
58
|
-
export interface SubscriptionAlertTriggeredEventDetail {
|
|
59
|
-
accountId: string;
|
|
60
|
-
alertType: SUBSCRIPTION_ALERT_TYPE;
|
|
61
|
-
entityId: string;
|
|
62
|
-
severity: ALERT_SEVERITY;
|
|
63
|
-
message: string;
|
|
64
|
-
data: Record<string, unknown>;
|
|
65
|
-
directEmail?: string;
|
|
66
|
-
}
|
|
67
|
-
export interface AccountAlertTriggeredEventDetail {
|
|
68
|
-
accountId: string;
|
|
69
|
-
alertType: ACCOUNT_ALERT_TYPE;
|
|
70
|
-
entityId?: string;
|
|
71
|
-
severity: ALERT_SEVERITY;
|
|
72
|
-
message: string;
|
|
73
|
-
data: Record<string, unknown>;
|
|
74
|
-
directEmail?: string;
|
|
75
|
-
}
|
|
76
|
-
export interface DestinationHealthAuditRequestedEventDetail {
|
|
77
|
-
auditType: AUDIT_TYPE;
|
|
78
|
-
accountId?: string;
|
|
79
|
-
destinationId?: string;
|
|
80
|
-
requestedAt: string;
|
|
81
|
-
}
|
|
82
|
-
export interface EmqDataIngestedEvent {
|
|
83
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.EMQ_DATA_INGESTED;
|
|
84
|
-
detail: EmqDataIngestedEventDetail;
|
|
85
|
-
}
|
|
86
|
-
export interface DestinationForwardingErrorEvent {
|
|
87
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_FORWARDING_ERROR;
|
|
88
|
-
detail: DestinationForwardingErrorEventDetail;
|
|
89
|
-
}
|
|
90
|
-
export interface IntegrationTokenErrorEvent {
|
|
91
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.INTEGRATION_TOKEN_ERROR;
|
|
92
|
-
detail: IntegrationTokenErrorEventDetail;
|
|
93
|
-
}
|
|
94
|
-
export interface DestinationHealthAlertTriggeredEvent {
|
|
95
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_ALERT_TRIGGERED;
|
|
96
|
-
detail: DestinationHealthAlertTriggeredEventDetail;
|
|
97
|
-
}
|
|
98
|
-
export interface SubscriptionAlertTriggeredEvent {
|
|
99
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.SUBSCRIPTION_ALERT_TRIGGERED;
|
|
100
|
-
detail: SubscriptionAlertTriggeredEventDetail;
|
|
101
|
-
}
|
|
102
|
-
export interface AccountAlertTriggeredEvent {
|
|
103
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.ACCOUNT_ALERT_TRIGGERED;
|
|
104
|
-
detail: AccountAlertTriggeredEventDetail;
|
|
105
|
-
}
|
|
106
|
-
export interface DestinationHealthAuditRequestedEvent {
|
|
107
|
-
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_AUDIT_REQUESTED;
|
|
108
|
-
detail: DestinationHealthAuditRequestedEventDetail;
|
|
109
|
-
}
|
|
110
|
-
export interface AlertHistoryItem {
|
|
111
|
-
alertId: string;
|
|
112
|
-
accountId: string;
|
|
113
|
-
alertType: string;
|
|
114
|
-
alertCategory: ALERT_CATEGORY;
|
|
115
|
-
scope: 'account' | 'user';
|
|
116
|
-
targetUserId?: string;
|
|
117
|
-
entityType: string;
|
|
118
|
-
entityId: string;
|
|
119
|
-
severity: ALERT_SEVERITY;
|
|
120
|
-
title: string;
|
|
121
|
-
message: string;
|
|
122
|
-
ctaPath: string;
|
|
123
|
-
data: Record<string, unknown>;
|
|
124
|
-
channels: Record<string, unknown>;
|
|
125
|
-
status: 'unread' | 'read';
|
|
126
|
-
sentAt: string;
|
|
127
|
-
readAt?: string;
|
|
128
|
-
readByUserId?: string;
|
|
129
|
-
}
|
|
130
|
-
export interface PaginatedAlertsResponse {
|
|
131
|
-
alerts: AlertHistoryItem[];
|
|
132
|
-
nextCursor?: string;
|
|
133
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
export var ALERT_SEVERITY;
|
|
2
|
-
(function (ALERT_SEVERITY) {
|
|
3
|
-
ALERT_SEVERITY["INFO"] = "info";
|
|
4
|
-
ALERT_SEVERITY["WARNING"] = "warning";
|
|
5
|
-
ALERT_SEVERITY["CRITICAL"] = "critical";
|
|
6
|
-
})(ALERT_SEVERITY || (ALERT_SEVERITY = {}));
|
|
7
|
-
export var ALERT_CATEGORY;
|
|
8
|
-
(function (ALERT_CATEGORY) {
|
|
9
|
-
ALERT_CATEGORY["ACCOUNT"] = "account";
|
|
10
|
-
ALERT_CATEGORY["SUBSCRIPTION"] = "subscription";
|
|
11
|
-
ALERT_CATEGORY["USAGE"] = "usage";
|
|
12
|
-
ALERT_CATEGORY["HEALTH"] = "health";
|
|
13
|
-
})(ALERT_CATEGORY || (ALERT_CATEGORY = {}));
|
|
14
|
-
export var ALERT_EVENT_DETAIL_TYPE;
|
|
15
|
-
(function (ALERT_EVENT_DETAIL_TYPE) {
|
|
16
|
-
ALERT_EVENT_DETAIL_TYPE["EMQ_DATA_INGESTED"] = "emqDataIngested";
|
|
17
|
-
ALERT_EVENT_DETAIL_TYPE["DESTINATION_FORWARDING_ERROR"] = "destinationForwardingError";
|
|
18
|
-
ALERT_EVENT_DETAIL_TYPE["INTEGRATION_TOKEN_ERROR"] = "integrationTokenError";
|
|
19
|
-
ALERT_EVENT_DETAIL_TYPE["DESTINATION_HEALTH_ALERT_TRIGGERED"] = "destinationHealthAlertTriggered";
|
|
20
|
-
ALERT_EVENT_DETAIL_TYPE["SUBSCRIPTION_ALERT_TRIGGERED"] = "subscriptionAlertTriggered";
|
|
21
|
-
ALERT_EVENT_DETAIL_TYPE["ACCOUNT_ALERT_TRIGGERED"] = "accountAlertTriggered";
|
|
22
|
-
ALERT_EVENT_DETAIL_TYPE["DESTINATION_HEALTH_AUDIT_REQUESTED"] = "destinationHealthAuditRequested";
|
|
23
|
-
})(ALERT_EVENT_DETAIL_TYPE || (ALERT_EVENT_DETAIL_TYPE = {}));
|
|
24
|
-
export var SUBSCRIPTION_ALERT_TYPE;
|
|
25
|
-
(function (SUBSCRIPTION_ALERT_TYPE) {
|
|
26
|
-
SUBSCRIPTION_ALERT_TYPE["PAYMENT_FAILED"] = "payment_failed";
|
|
27
|
-
SUBSCRIPTION_ALERT_TYPE["TRIAL_ENDING"] = "trial_ending";
|
|
28
|
-
SUBSCRIPTION_ALERT_TYPE["USAGE_LIMIT_WARNING"] = "usage_limit_warning";
|
|
29
|
-
SUBSCRIPTION_ALERT_TYPE["USAGE_LIMIT_EXCEEDED"] = "usage_limit_exceeded";
|
|
30
|
-
SUBSCRIPTION_ALERT_TYPE["SUBSCRIPTION_CANCELLED"] = "subscription_cancelled";
|
|
31
|
-
})(SUBSCRIPTION_ALERT_TYPE || (SUBSCRIPTION_ALERT_TYPE = {}));
|
|
32
|
-
export var ACCOUNT_ALERT_TYPE;
|
|
33
|
-
(function (ACCOUNT_ALERT_TYPE) {
|
|
34
|
-
ACCOUNT_ALERT_TYPE["TEAM_MEMBER_INVITED"] = "team_member_invited";
|
|
35
|
-
ACCOUNT_ALERT_TYPE["TEAM_MEMBER_ADDED"] = "team_member_added";
|
|
36
|
-
ACCOUNT_ALERT_TYPE["SHOPIFY_USER_CREDENTIALS"] = "shopify_user_credentials";
|
|
37
|
-
})(ACCOUNT_ALERT_TYPE || (ACCOUNT_ALERT_TYPE = {}));
|
|
38
|
-
export var HEALTH_ALERT_TYPE;
|
|
39
|
-
(function (HEALTH_ALERT_TYPE) {
|
|
40
|
-
HEALTH_ALERT_TYPE["DESTINATION_UNHEALTHY"] = "destination_unhealthy";
|
|
41
|
-
HEALTH_ALERT_TYPE["INTEGRATION_UNHEALTHY"] = "integration_unhealthy";
|
|
42
|
-
HEALTH_ALERT_TYPE["PIXEL_UNHEALTHY"] = "pixel_unhealthy";
|
|
43
|
-
HEALTH_ALERT_TYPE["THEME_EXTENSION_UNHEALTHY"] = "theme_extension_unhealthy";
|
|
44
|
-
HEALTH_ALERT_TYPE["EMQ_CRITICAL"] = "emq_critical";
|
|
45
|
-
HEALTH_ALERT_TYPE["EMQ_SCORE_DROP"] = "emq_score_drop";
|
|
46
|
-
})(HEALTH_ALERT_TYPE || (HEALTH_ALERT_TYPE = {}));
|
|
47
|
-
//# sourceMappingURL=alert-events.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alert-events.js","sourceRoot":"","sources":["../../../../../src/types/api/events/alert-events.ts"],"names":[],"mappings":"AAqBA,MAAM,CAAN,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,qCAAmB,CAAA;IACnB,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,KAAd,cAAc,QAIzB;AAMD,MAAM,CAAN,IAAY,cASX;AATD,WAAY,cAAc;IAExB,qCAAmB,CAAA;IAEnB,+CAA6B,CAAA;IAE7B,iCAAe,CAAA;IAEf,mCAAiB,CAAA;AACnB,CAAC,EATW,cAAc,KAAd,cAAc,QASzB;AAMD,MAAM,CAAN,IAAY,uBAeX;AAfD,WAAY,uBAAuB;IAEjC,gEAAqC,CAAA;IAErC,sFAA2D,CAAA;IAE3D,4EAAiD,CAAA;IAEjD,iGAAsE,CAAA;IAEtE,sFAA2D,CAAA;IAE3D,4EAAiD,CAAA;IAEjD,iGAAsE,CAAA;AACxE,CAAC,EAfW,uBAAuB,KAAvB,uBAAuB,QAelC;AAKD,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IACjC,4DAAiC,CAAA;IACjC,wDAA6B,CAAA;IAC7B,sEAA2C,CAAA;IAC3C,wEAA6C,CAAA;IAC7C,4EAAiD,CAAA;AACnD,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC;AAKD,MAAM,CAAN,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAE5B,iEAA2C,CAAA;IAE3C,6DAAuC,CAAA;IAEvC,2EAAqD,CAAA;AACvD,CAAC,EAPW,kBAAkB,KAAlB,kBAAkB,QAO7B;AAKD,MAAM,CAAN,IAAY,iBAaX;AAbD,WAAY,iBAAiB;IAE3B,oEAA+C,CAAA;IAE/C,oEAA+C,CAAA;IAE/C,wDAAmC,CAAA;IAEnC,4EAAuD,CAAA;IAEvD,kDAA6B,CAAA;IAE7B,sDAAiC,CAAA;AACnC,CAAC,EAbW,iBAAiB,KAAjB,iBAAiB,QAa5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './alert-events.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|