@adtrackify/at-tracking-event-types 3.5.22 → 3.5.23
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/emq/emq-types.d.ts +1 -1
- package/dist/cjs/types/api/events/{health-events.d.ts → alert-events.d.ts} +80 -72
- package/dist/cjs/types/api/events/{health-events.js → alert-events.js} +12 -12
- package/dist/cjs/types/api/events/alert-events.js.map +1 -0
- package/dist/cjs/types/api/events/index.d.ts +1 -1
- package/dist/cjs/types/api/events/index.js +1 -1
- package/dist/cjs/types/api/events/index.js.map +1 -1
- package/dist/esm/types/api/emq/emq-types.d.ts +1 -1
- package/dist/esm/types/api/events/{health-events.d.ts → alert-events.d.ts} +80 -72
- package/dist/esm/types/api/events/{health-events.js → alert-events.js} +11 -11
- package/dist/esm/types/api/events/alert-events.js.map +1 -0
- package/dist/esm/types/api/events/index.d.ts +1 -1
- package/dist/esm/types/api/events/index.js +1 -1
- package/dist/esm/types/api/events/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/types/api/events/health-events.js.map +0 -1
- package/dist/esm/types/api/events/health-events.js.map +0 -1
|
@@ -10,7 +10,7 @@ export declare enum ALERT_CATEGORY {
|
|
|
10
10
|
USAGE = "usage",
|
|
11
11
|
HEALTH = "health"
|
|
12
12
|
}
|
|
13
|
-
export declare enum
|
|
13
|
+
export declare enum ALERT_EVENT_DETAIL_TYPE {
|
|
14
14
|
EMQ_DATA_INGESTED = "emqDataIngested",
|
|
15
15
|
DESTINATION_FORWARDING_ERROR = "destinationForwardingError",
|
|
16
16
|
INTEGRATION_TOKEN_ERROR = "integrationTokenError",
|
|
@@ -56,90 +56,98 @@ export interface DestinationHealthAlertData {
|
|
|
56
56
|
message: string;
|
|
57
57
|
data: Record<string, unknown>;
|
|
58
58
|
}
|
|
59
|
+
export interface EmqDataIngestedEventDetail {
|
|
60
|
+
destinationId: string;
|
|
61
|
+
pixelId: string;
|
|
62
|
+
datasetId: string;
|
|
63
|
+
collectedAt: string;
|
|
64
|
+
emqData: EmqDataSummary;
|
|
65
|
+
}
|
|
66
|
+
export interface DestinationForwardingErrorEventDetail {
|
|
67
|
+
destinationId: string;
|
|
68
|
+
accountId: string;
|
|
69
|
+
pixelId: string;
|
|
70
|
+
destination: DESTINATION;
|
|
71
|
+
errorCode?: number;
|
|
72
|
+
errorSubCode?: number;
|
|
73
|
+
errorType?: string;
|
|
74
|
+
errorMessage?: string;
|
|
75
|
+
consecutiveErrors: number;
|
|
76
|
+
occurredAt: string;
|
|
77
|
+
}
|
|
78
|
+
export interface IntegrationTokenErrorEventDetail {
|
|
79
|
+
destinationId: string;
|
|
80
|
+
accountId: string;
|
|
81
|
+
pixelId: string;
|
|
82
|
+
destination: DESTINATION;
|
|
83
|
+
errorType: INTEGRATION_ERROR_TYPE;
|
|
84
|
+
errorCode?: number;
|
|
85
|
+
errorSubCode?: number;
|
|
86
|
+
errorMessage?: string;
|
|
87
|
+
tokenExpiresAt?: string | null;
|
|
88
|
+
tokenDaysRemaining?: number | null;
|
|
89
|
+
occurredAt: string;
|
|
90
|
+
}
|
|
91
|
+
export interface DestinationHealthAlertTriggeredEventDetail {
|
|
92
|
+
destinationId: string;
|
|
93
|
+
accountId: string;
|
|
94
|
+
pixelId: string;
|
|
95
|
+
alertType: string;
|
|
96
|
+
severity: ALERT_SEVERITY;
|
|
97
|
+
message: string;
|
|
98
|
+
data: Record<string, unknown>;
|
|
99
|
+
}
|
|
100
|
+
export interface SubscriptionAlertTriggeredEventDetail {
|
|
101
|
+
accountId: string;
|
|
102
|
+
alertType: SUBSCRIPTION_ALERT_TYPE;
|
|
103
|
+
entityId: string;
|
|
104
|
+
severity: ALERT_SEVERITY;
|
|
105
|
+
message: string;
|
|
106
|
+
data: Record<string, unknown>;
|
|
107
|
+
directEmail?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface AccountAlertTriggeredEventDetail {
|
|
110
|
+
accountId: string;
|
|
111
|
+
alertType: ACCOUNT_ALERT_TYPE;
|
|
112
|
+
entityId?: string;
|
|
113
|
+
severity: ALERT_SEVERITY;
|
|
114
|
+
message: string;
|
|
115
|
+
data: Record<string, unknown>;
|
|
116
|
+
directEmail?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface DestinationHealthAuditRequestedEventDetail {
|
|
119
|
+
auditType: AUDIT_TYPE;
|
|
120
|
+
accountId?: string;
|
|
121
|
+
destinationId?: string;
|
|
122
|
+
requestedAt: string;
|
|
123
|
+
}
|
|
59
124
|
export interface EmqDataIngestedEvent {
|
|
60
|
-
detailType:
|
|
61
|
-
detail:
|
|
62
|
-
destinationId: string;
|
|
63
|
-
pixelId: string;
|
|
64
|
-
datasetId: string;
|
|
65
|
-
collectedAt: string;
|
|
66
|
-
emqData: EmqDataSummary;
|
|
67
|
-
};
|
|
125
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.EMQ_DATA_INGESTED;
|
|
126
|
+
detail: EmqDataIngestedEventDetail;
|
|
68
127
|
}
|
|
69
128
|
export interface DestinationForwardingErrorEvent {
|
|
70
|
-
detailType:
|
|
71
|
-
detail:
|
|
72
|
-
destinationId: string;
|
|
73
|
-
accountId: string;
|
|
74
|
-
pixelId: string;
|
|
75
|
-
destination: DESTINATION;
|
|
76
|
-
errorCode?: number;
|
|
77
|
-
errorSubCode?: number;
|
|
78
|
-
errorType?: string;
|
|
79
|
-
errorMessage?: string;
|
|
80
|
-
consecutiveErrors: number;
|
|
81
|
-
occurredAt: string;
|
|
82
|
-
};
|
|
129
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_FORWARDING_ERROR;
|
|
130
|
+
detail: DestinationForwardingErrorEventDetail;
|
|
83
131
|
}
|
|
84
132
|
export interface IntegrationTokenErrorEvent {
|
|
85
|
-
detailType:
|
|
86
|
-
detail:
|
|
87
|
-
destinationId: string;
|
|
88
|
-
accountId: string;
|
|
89
|
-
pixelId: string;
|
|
90
|
-
destination: DESTINATION;
|
|
91
|
-
errorType: INTEGRATION_ERROR_TYPE;
|
|
92
|
-
errorCode?: number;
|
|
93
|
-
errorSubCode?: number;
|
|
94
|
-
errorMessage?: string;
|
|
95
|
-
tokenExpiresAt?: string | null;
|
|
96
|
-
tokenDaysRemaining?: number | null;
|
|
97
|
-
occurredAt: string;
|
|
98
|
-
};
|
|
133
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.INTEGRATION_TOKEN_ERROR;
|
|
134
|
+
detail: IntegrationTokenErrorEventDetail;
|
|
99
135
|
}
|
|
100
136
|
export interface DestinationHealthAlertTriggeredEvent {
|
|
101
|
-
detailType:
|
|
102
|
-
detail:
|
|
103
|
-
destinationId: string;
|
|
104
|
-
accountId: string;
|
|
105
|
-
pixelId: string;
|
|
106
|
-
alertType: string;
|
|
107
|
-
severity: ALERT_SEVERITY;
|
|
108
|
-
message: string;
|
|
109
|
-
data: Record<string, unknown>;
|
|
110
|
-
};
|
|
137
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_ALERT_TRIGGERED;
|
|
138
|
+
detail: DestinationHealthAlertTriggeredEventDetail;
|
|
111
139
|
}
|
|
112
140
|
export interface SubscriptionAlertTriggeredEvent {
|
|
113
|
-
detailType:
|
|
114
|
-
detail:
|
|
115
|
-
accountId: string;
|
|
116
|
-
alertType: SUBSCRIPTION_ALERT_TYPE;
|
|
117
|
-
entityId: string;
|
|
118
|
-
severity: ALERT_SEVERITY;
|
|
119
|
-
message: string;
|
|
120
|
-
data: Record<string, unknown>;
|
|
121
|
-
directEmail?: string;
|
|
122
|
-
};
|
|
141
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.SUBSCRIPTION_ALERT_TRIGGERED;
|
|
142
|
+
detail: SubscriptionAlertTriggeredEventDetail;
|
|
123
143
|
}
|
|
124
144
|
export interface AccountAlertTriggeredEvent {
|
|
125
|
-
detailType:
|
|
126
|
-
detail:
|
|
127
|
-
accountId: string;
|
|
128
|
-
alertType: ACCOUNT_ALERT_TYPE;
|
|
129
|
-
severity: ALERT_SEVERITY;
|
|
130
|
-
message: string;
|
|
131
|
-
data: Record<string, unknown>;
|
|
132
|
-
directEmail: string;
|
|
133
|
-
};
|
|
145
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.ACCOUNT_ALERT_TRIGGERED;
|
|
146
|
+
detail: AccountAlertTriggeredEventDetail;
|
|
134
147
|
}
|
|
135
148
|
export interface DestinationHealthAuditRequestedEvent {
|
|
136
|
-
detailType:
|
|
137
|
-
detail:
|
|
138
|
-
auditType: AUDIT_TYPE;
|
|
139
|
-
accountId?: string;
|
|
140
|
-
destinationId?: string;
|
|
141
|
-
requestedAt: string;
|
|
142
|
-
};
|
|
149
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_AUDIT_REQUESTED;
|
|
150
|
+
detail: DestinationHealthAuditRequestedEventDetail;
|
|
143
151
|
}
|
|
144
152
|
export interface AlertHistoryItem {
|
|
145
153
|
alertId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AUDIT_TYPE = exports.ACCOUNT_ALERT_TYPE = exports.SUBSCRIPTION_ALERT_TYPE = exports.INTEGRATION_ERROR_TYPE = exports.
|
|
3
|
+
exports.AUDIT_TYPE = exports.ACCOUNT_ALERT_TYPE = exports.SUBSCRIPTION_ALERT_TYPE = exports.INTEGRATION_ERROR_TYPE = exports.ALERT_EVENT_DETAIL_TYPE = exports.ALERT_CATEGORY = exports.ALERT_SEVERITY = void 0;
|
|
4
4
|
var ALERT_SEVERITY;
|
|
5
5
|
(function (ALERT_SEVERITY) {
|
|
6
6
|
ALERT_SEVERITY["INFO"] = "info";
|
|
@@ -14,16 +14,16 @@ var ALERT_CATEGORY;
|
|
|
14
14
|
ALERT_CATEGORY["USAGE"] = "usage";
|
|
15
15
|
ALERT_CATEGORY["HEALTH"] = "health";
|
|
16
16
|
})(ALERT_CATEGORY = exports.ALERT_CATEGORY || (exports.ALERT_CATEGORY = {}));
|
|
17
|
-
var
|
|
18
|
-
(function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
})(
|
|
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
27
|
var INTEGRATION_ERROR_TYPE;
|
|
28
28
|
(function (INTEGRATION_ERROR_TYPE) {
|
|
29
29
|
INTEGRATION_ERROR_TYPE["TOKEN_EXPIRED"] = "token_expired";
|
|
@@ -51,4 +51,4 @@ var AUDIT_TYPE;
|
|
|
51
51
|
AUDIT_TYPE["NIGHTLY"] = "nightly";
|
|
52
52
|
AUDIT_TYPE["ON_DEMAND"] = "on_demand";
|
|
53
53
|
})(AUDIT_TYPE = exports.AUDIT_TYPE || (exports.AUDIT_TYPE = {}));
|
|
54
|
-
//# sourceMappingURL=
|
|
54
|
+
//# sourceMappingURL=alert-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-events.js","sourceRoot":"","sources":["../../../../../src/types/api/events/alert-events.ts"],"names":[],"mappings":";;;AAgBA,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,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAWjC;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,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './alert-events.js';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./alert-events.js"), exports);
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/events/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,oDAAkC"}
|
|
@@ -10,7 +10,7 @@ export declare enum ALERT_CATEGORY {
|
|
|
10
10
|
USAGE = "usage",
|
|
11
11
|
HEALTH = "health"
|
|
12
12
|
}
|
|
13
|
-
export declare enum
|
|
13
|
+
export declare enum ALERT_EVENT_DETAIL_TYPE {
|
|
14
14
|
EMQ_DATA_INGESTED = "emqDataIngested",
|
|
15
15
|
DESTINATION_FORWARDING_ERROR = "destinationForwardingError",
|
|
16
16
|
INTEGRATION_TOKEN_ERROR = "integrationTokenError",
|
|
@@ -56,90 +56,98 @@ export interface DestinationHealthAlertData {
|
|
|
56
56
|
message: string;
|
|
57
57
|
data: Record<string, unknown>;
|
|
58
58
|
}
|
|
59
|
+
export interface EmqDataIngestedEventDetail {
|
|
60
|
+
destinationId: string;
|
|
61
|
+
pixelId: string;
|
|
62
|
+
datasetId: string;
|
|
63
|
+
collectedAt: string;
|
|
64
|
+
emqData: EmqDataSummary;
|
|
65
|
+
}
|
|
66
|
+
export interface DestinationForwardingErrorEventDetail {
|
|
67
|
+
destinationId: string;
|
|
68
|
+
accountId: string;
|
|
69
|
+
pixelId: string;
|
|
70
|
+
destination: DESTINATION;
|
|
71
|
+
errorCode?: number;
|
|
72
|
+
errorSubCode?: number;
|
|
73
|
+
errorType?: string;
|
|
74
|
+
errorMessage?: string;
|
|
75
|
+
consecutiveErrors: number;
|
|
76
|
+
occurredAt: string;
|
|
77
|
+
}
|
|
78
|
+
export interface IntegrationTokenErrorEventDetail {
|
|
79
|
+
destinationId: string;
|
|
80
|
+
accountId: string;
|
|
81
|
+
pixelId: string;
|
|
82
|
+
destination: DESTINATION;
|
|
83
|
+
errorType: INTEGRATION_ERROR_TYPE;
|
|
84
|
+
errorCode?: number;
|
|
85
|
+
errorSubCode?: number;
|
|
86
|
+
errorMessage?: string;
|
|
87
|
+
tokenExpiresAt?: string | null;
|
|
88
|
+
tokenDaysRemaining?: number | null;
|
|
89
|
+
occurredAt: string;
|
|
90
|
+
}
|
|
91
|
+
export interface DestinationHealthAlertTriggeredEventDetail {
|
|
92
|
+
destinationId: string;
|
|
93
|
+
accountId: string;
|
|
94
|
+
pixelId: string;
|
|
95
|
+
alertType: string;
|
|
96
|
+
severity: ALERT_SEVERITY;
|
|
97
|
+
message: string;
|
|
98
|
+
data: Record<string, unknown>;
|
|
99
|
+
}
|
|
100
|
+
export interface SubscriptionAlertTriggeredEventDetail {
|
|
101
|
+
accountId: string;
|
|
102
|
+
alertType: SUBSCRIPTION_ALERT_TYPE;
|
|
103
|
+
entityId: string;
|
|
104
|
+
severity: ALERT_SEVERITY;
|
|
105
|
+
message: string;
|
|
106
|
+
data: Record<string, unknown>;
|
|
107
|
+
directEmail?: string;
|
|
108
|
+
}
|
|
109
|
+
export interface AccountAlertTriggeredEventDetail {
|
|
110
|
+
accountId: string;
|
|
111
|
+
alertType: ACCOUNT_ALERT_TYPE;
|
|
112
|
+
entityId?: string;
|
|
113
|
+
severity: ALERT_SEVERITY;
|
|
114
|
+
message: string;
|
|
115
|
+
data: Record<string, unknown>;
|
|
116
|
+
directEmail?: string;
|
|
117
|
+
}
|
|
118
|
+
export interface DestinationHealthAuditRequestedEventDetail {
|
|
119
|
+
auditType: AUDIT_TYPE;
|
|
120
|
+
accountId?: string;
|
|
121
|
+
destinationId?: string;
|
|
122
|
+
requestedAt: string;
|
|
123
|
+
}
|
|
59
124
|
export interface EmqDataIngestedEvent {
|
|
60
|
-
detailType:
|
|
61
|
-
detail:
|
|
62
|
-
destinationId: string;
|
|
63
|
-
pixelId: string;
|
|
64
|
-
datasetId: string;
|
|
65
|
-
collectedAt: string;
|
|
66
|
-
emqData: EmqDataSummary;
|
|
67
|
-
};
|
|
125
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.EMQ_DATA_INGESTED;
|
|
126
|
+
detail: EmqDataIngestedEventDetail;
|
|
68
127
|
}
|
|
69
128
|
export interface DestinationForwardingErrorEvent {
|
|
70
|
-
detailType:
|
|
71
|
-
detail:
|
|
72
|
-
destinationId: string;
|
|
73
|
-
accountId: string;
|
|
74
|
-
pixelId: string;
|
|
75
|
-
destination: DESTINATION;
|
|
76
|
-
errorCode?: number;
|
|
77
|
-
errorSubCode?: number;
|
|
78
|
-
errorType?: string;
|
|
79
|
-
errorMessage?: string;
|
|
80
|
-
consecutiveErrors: number;
|
|
81
|
-
occurredAt: string;
|
|
82
|
-
};
|
|
129
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_FORWARDING_ERROR;
|
|
130
|
+
detail: DestinationForwardingErrorEventDetail;
|
|
83
131
|
}
|
|
84
132
|
export interface IntegrationTokenErrorEvent {
|
|
85
|
-
detailType:
|
|
86
|
-
detail:
|
|
87
|
-
destinationId: string;
|
|
88
|
-
accountId: string;
|
|
89
|
-
pixelId: string;
|
|
90
|
-
destination: DESTINATION;
|
|
91
|
-
errorType: INTEGRATION_ERROR_TYPE;
|
|
92
|
-
errorCode?: number;
|
|
93
|
-
errorSubCode?: number;
|
|
94
|
-
errorMessage?: string;
|
|
95
|
-
tokenExpiresAt?: string | null;
|
|
96
|
-
tokenDaysRemaining?: number | null;
|
|
97
|
-
occurredAt: string;
|
|
98
|
-
};
|
|
133
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.INTEGRATION_TOKEN_ERROR;
|
|
134
|
+
detail: IntegrationTokenErrorEventDetail;
|
|
99
135
|
}
|
|
100
136
|
export interface DestinationHealthAlertTriggeredEvent {
|
|
101
|
-
detailType:
|
|
102
|
-
detail:
|
|
103
|
-
destinationId: string;
|
|
104
|
-
accountId: string;
|
|
105
|
-
pixelId: string;
|
|
106
|
-
alertType: string;
|
|
107
|
-
severity: ALERT_SEVERITY;
|
|
108
|
-
message: string;
|
|
109
|
-
data: Record<string, unknown>;
|
|
110
|
-
};
|
|
137
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_ALERT_TRIGGERED;
|
|
138
|
+
detail: DestinationHealthAlertTriggeredEventDetail;
|
|
111
139
|
}
|
|
112
140
|
export interface SubscriptionAlertTriggeredEvent {
|
|
113
|
-
detailType:
|
|
114
|
-
detail:
|
|
115
|
-
accountId: string;
|
|
116
|
-
alertType: SUBSCRIPTION_ALERT_TYPE;
|
|
117
|
-
entityId: string;
|
|
118
|
-
severity: ALERT_SEVERITY;
|
|
119
|
-
message: string;
|
|
120
|
-
data: Record<string, unknown>;
|
|
121
|
-
directEmail?: string;
|
|
122
|
-
};
|
|
141
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.SUBSCRIPTION_ALERT_TRIGGERED;
|
|
142
|
+
detail: SubscriptionAlertTriggeredEventDetail;
|
|
123
143
|
}
|
|
124
144
|
export interface AccountAlertTriggeredEvent {
|
|
125
|
-
detailType:
|
|
126
|
-
detail:
|
|
127
|
-
accountId: string;
|
|
128
|
-
alertType: ACCOUNT_ALERT_TYPE;
|
|
129
|
-
severity: ALERT_SEVERITY;
|
|
130
|
-
message: string;
|
|
131
|
-
data: Record<string, unknown>;
|
|
132
|
-
directEmail: string;
|
|
133
|
-
};
|
|
145
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.ACCOUNT_ALERT_TRIGGERED;
|
|
146
|
+
detail: AccountAlertTriggeredEventDetail;
|
|
134
147
|
}
|
|
135
148
|
export interface DestinationHealthAuditRequestedEvent {
|
|
136
|
-
detailType:
|
|
137
|
-
detail:
|
|
138
|
-
auditType: AUDIT_TYPE;
|
|
139
|
-
accountId?: string;
|
|
140
|
-
destinationId?: string;
|
|
141
|
-
requestedAt: string;
|
|
142
|
-
};
|
|
149
|
+
detailType: ALERT_EVENT_DETAIL_TYPE.DESTINATION_HEALTH_AUDIT_REQUESTED;
|
|
150
|
+
detail: DestinationHealthAuditRequestedEventDetail;
|
|
143
151
|
}
|
|
144
152
|
export interface AlertHistoryItem {
|
|
145
153
|
alertId: string;
|
|
@@ -11,16 +11,16 @@ export var ALERT_CATEGORY;
|
|
|
11
11
|
ALERT_CATEGORY["USAGE"] = "usage";
|
|
12
12
|
ALERT_CATEGORY["HEALTH"] = "health";
|
|
13
13
|
})(ALERT_CATEGORY || (ALERT_CATEGORY = {}));
|
|
14
|
-
export var
|
|
15
|
-
(function (
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
})(
|
|
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
24
|
export var INTEGRATION_ERROR_TYPE;
|
|
25
25
|
(function (INTEGRATION_ERROR_TYPE) {
|
|
26
26
|
INTEGRATION_ERROR_TYPE["TOKEN_EXPIRED"] = "token_expired";
|
|
@@ -48,4 +48,4 @@ export var AUDIT_TYPE;
|
|
|
48
48
|
AUDIT_TYPE["NIGHTLY"] = "nightly";
|
|
49
49
|
AUDIT_TYPE["ON_DEMAND"] = "on_demand";
|
|
50
50
|
})(AUDIT_TYPE || (AUDIT_TYPE = {}));
|
|
51
|
-
//# sourceMappingURL=
|
|
51
|
+
//# sourceMappingURL=alert-events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-events.js","sourceRoot":"","sources":["../../../../../src/types/api/events/alert-events.ts"],"names":[],"mappings":"AAgBA,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,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,KAAtB,sBAAsB,QAWjC;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,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './alert-events.js';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './
|
|
1
|
+
export * from './alert-events.js';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/types/api/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health-events.js","sourceRoot":"","sources":["../../../../../src/types/api/events/health-events.ts"],"names":[],"mappings":";;;AAgBA,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;AAKD,IAAY,wBAeX;AAfD,WAAY,wBAAwB;IAElC,iEAAqC,CAAA;IAErC,uFAA2D,CAAA;IAE3D,6EAAiD,CAAA;IAEjD,kGAAsE,CAAA;IAEtE,uFAA2D,CAAA;IAE3D,6EAAiD,CAAA;IAEjD,kGAAsE,CAAA;AACxE,CAAC,EAfW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAenC;AAKD,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAWjC;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,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"health-events.js","sourceRoot":"","sources":["../../../../../src/types/api/events/health-events.ts"],"names":[],"mappings":"AAgBA,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;AAKD,MAAM,CAAN,IAAY,wBAeX;AAfD,WAAY,wBAAwB;IAElC,iEAAqC,CAAA;IAErC,uFAA2D,CAAA;IAE3D,6EAAiD,CAAA;IAEjD,kGAAsE,CAAA;IAEtE,uFAA2D,CAAA;IAE3D,6EAAiD,CAAA;IAEjD,kGAAsE,CAAA;AACxE,CAAC,EAfW,wBAAwB,KAAxB,wBAAwB,QAenC;AAKD,MAAM,CAAN,IAAY,sBAWX;AAXD,WAAY,sBAAsB;IAEhC,yDAA+B,CAAA;IAE/B,uEAA6C,CAAA;IAE7C,qEAA2C,CAAA;IAE3C,iEAAuC,CAAA;IAEvC,uFAA6D,CAAA;AAC/D,CAAC,EAXW,sBAAsB,KAAtB,sBAAsB,QAWjC;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,UAGX;AAHD,WAAY,UAAU;IACpB,iCAAmB,CAAA;IACnB,qCAAuB,CAAA;AACzB,CAAC,EAHW,UAAU,KAAV,UAAU,QAGrB"}
|