clarion-shared-types 1.0.99 → 1.0.100
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/modules/alert-intake/enums/alert-intake.enum.js +20 -1
- package/dist/cjs/modules/alert-intake/enums/alert-intake.enum.js.map +1 -1
- package/dist/esm/modules/alert-intake/enums/alert-intake.enum.js +19 -0
- package/dist/esm/modules/alert-intake/enums/alert-intake.enum.js.map +1 -1
- package/dist/types/modules/alert-intake/enums/alert-intake.enum.d.ts +18 -0
- package/dist/types/modules/alert-intake/interfaces/alert-intake.d.ts +99 -1
- package/package.json +1 -1
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* app is sent to.
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.AlertIntakeRejectionReason = exports.AlertIntakeWebhookVerification = exports.AlertIntakeRouteMatch = exports.AlertIntakeEmergencyPolicy = exports.AlertIntakeSecretSource = exports.AlertIntakeProvider = exports.AlertIntakeChannel = void 0;
|
|
10
|
+
exports.AlertIntakeMessageState = exports.AlertIntakeRejectionReason = exports.AlertIntakeWebhookVerification = exports.AlertIntakeRouteMatch = exports.AlertIntakeEmergencyPolicy = exports.AlertIntakeSecretSource = exports.AlertIntakeProvider = exports.AlertIntakeChannel = void 0;
|
|
11
11
|
/** The channel a message arrived on. */
|
|
12
12
|
var AlertIntakeChannel;
|
|
13
13
|
(function (AlertIntakeChannel) {
|
|
@@ -94,4 +94,23 @@ var AlertIntakeRejectionReason;
|
|
|
94
94
|
AlertIntakeRejectionReason["ORGANIZATION_INACTIVE"] = "ORGANIZATION_INACTIVE";
|
|
95
95
|
AlertIntakeRejectionReason["RATE_LIMITED"] = "RATE_LIMITED";
|
|
96
96
|
})(AlertIntakeRejectionReason || (exports.AlertIntakeRejectionReason = AlertIntakeRejectionReason = {}));
|
|
97
|
+
/**
|
|
98
|
+
* Where a stored message stands, as an operator reads it. Derived from the pipeline's
|
|
99
|
+
* processing status, retry schedule and rejection reason - not stored.
|
|
100
|
+
*
|
|
101
|
+
* QUEUED waiting for, or being worked on by, the pipeline
|
|
102
|
+
* RAISED became an incident
|
|
103
|
+
* RETRYING failed; another attempt is scheduled
|
|
104
|
+
* PARKED failed and will not be retried on its own: it ran out of attempts, or it
|
|
105
|
+
* has a `rejectionReason` (no organization, organization inactive)
|
|
106
|
+
* DUPLICATE the same sender repeating themselves; not raised
|
|
107
|
+
*/
|
|
108
|
+
var AlertIntakeMessageState;
|
|
109
|
+
(function (AlertIntakeMessageState) {
|
|
110
|
+
AlertIntakeMessageState["QUEUED"] = "QUEUED";
|
|
111
|
+
AlertIntakeMessageState["RAISED"] = "RAISED";
|
|
112
|
+
AlertIntakeMessageState["RETRYING"] = "RETRYING";
|
|
113
|
+
AlertIntakeMessageState["PARKED"] = "PARKED";
|
|
114
|
+
AlertIntakeMessageState["DUPLICATE"] = "DUPLICATE";
|
|
115
|
+
})(AlertIntakeMessageState || (exports.AlertIntakeMessageState = AlertIntakeMessageState = {}));
|
|
97
116
|
//# sourceMappingURL=alert-intake.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-intake.enum.js","sourceRoot":"","sources":["../../../../../src/modules/alert-intake/enums/alert-intake.enum.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wCAAwC;AACxC,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,qCAAe,CAAA;AACnB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED;;;;;;;;GAQG;AACH,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,MAAM;IACN,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,uFAAuF;IACvF,kDAA2B,CAAA;IAC3B,WAAW;IACX,wDAAiC,CAAA;IACjC,QAAQ;IACR,oCAAa,CAAA;IACb,iGAAiG;IACjG,sDAA+B,CAAA;AACnC,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B;AAED;;;;;;;;;;GAUG;AACH,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kDAAuB,CAAA;IACvB,gEAAqC,CAAA;AACzC,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAED;;;;GAIG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,2CAAa,CAAA;IACb,mEAAqC,CAAA;IACrC,2EAA6C,CAAA;AACjD,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAED,qEAAqE;AACrE,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,oFAAoF;IACpF,4CAAmB,CAAA;IACnB,qEAAqE;IACrE,4CAAmB,CAAA;AACvB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,gEAAgE;AAChE,IAAY,8BAOX;AAPD,WAAY,8BAA8B;IACtC,8EAA8E;IAC9E,2DAAyB,CAAA;IACzB,gFAAgF;IAChF,+EAA6C,CAAA;IAC7C,mFAAmF;IACnF,mEAAiC,CAAA;AACrC,CAAC,EAPW,8BAA8B,8CAA9B,8BAA8B,QAOzC;AAED,yFAAyF;AACzF,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IAClC,uEAAyC,CAAA;IACzC,yEAA2C,CAAA;IAC3C,yEAA2C,CAAA;IAC3C,iEAAmC,CAAA;IACnC,6EAA+C,CAAA;IAC/C,2DAA6B,CAAA;AACjC,CAAC,EAPW,0BAA0B,0CAA1B,0BAA0B,QAOrC"}
|
|
1
|
+
{"version":3,"file":"alert-intake.enum.js","sourceRoot":"","sources":["../../../../../src/modules/alert-intake/enums/alert-intake.enum.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,wCAAwC;AACxC,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,qCAAe,CAAA;AACnB,CAAC,EAJW,kBAAkB,kCAAlB,kBAAkB,QAI7B;AAED;;;;;;;;GAQG;AACH,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,MAAM;IACN,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,uFAAuF;IACvF,kDAA2B,CAAA;IAC3B,WAAW;IACX,wDAAiC,CAAA;IACjC,QAAQ;IACR,oCAAa,CAAA;IACb,iGAAiG;IACjG,sDAA+B,CAAA;AACnC,CAAC,EAbW,mBAAmB,mCAAnB,mBAAmB,QAa9B;AAED;;;;;;;;;;GAUG;AACH,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kDAAuB,CAAA;IACvB,gEAAqC,CAAA;AACzC,CAAC,EAHW,uBAAuB,uCAAvB,uBAAuB,QAGlC;AAED;;;;GAIG;AACH,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,2CAAa,CAAA;IACb,mEAAqC,CAAA;IACrC,2EAA6C,CAAA;AACjD,CAAC,EAJW,0BAA0B,0CAA1B,0BAA0B,QAIrC;AAED,qEAAqE;AACrE,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,oFAAoF;IACpF,4CAAmB,CAAA;IACnB,qEAAqE;IACrE,4CAAmB,CAAA;AACvB,CAAC,EALW,qBAAqB,qCAArB,qBAAqB,QAKhC;AAED,gEAAgE;AAChE,IAAY,8BAOX;AAPD,WAAY,8BAA8B;IACtC,8EAA8E;IAC9E,2DAAyB,CAAA;IACzB,gFAAgF;IAChF,+EAA6C,CAAA;IAC7C,mFAAmF;IACnF,mEAAiC,CAAA;AACrC,CAAC,EAPW,8BAA8B,8CAA9B,8BAA8B,QAOzC;AAED,yFAAyF;AACzF,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IAClC,uEAAyC,CAAA;IACzC,yEAA2C,CAAA;IAC3C,yEAA2C,CAAA;IAC3C,iEAAmC,CAAA;IACnC,6EAA+C,CAAA;IAC/C,2DAA6B,CAAA;AACjC,CAAC,EAPW,0BAA0B,0CAA1B,0BAA0B,QAOrC;AAED;;;;;;;;;;GAUG;AACH,IAAY,uBAMX;AAND,WAAY,uBAAuB;IAC/B,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;AAC3B,CAAC,EANW,uBAAuB,uCAAvB,uBAAuB,QAMlC"}
|
|
@@ -91,4 +91,23 @@ export var AlertIntakeRejectionReason;
|
|
|
91
91
|
AlertIntakeRejectionReason["ORGANIZATION_INACTIVE"] = "ORGANIZATION_INACTIVE";
|
|
92
92
|
AlertIntakeRejectionReason["RATE_LIMITED"] = "RATE_LIMITED";
|
|
93
93
|
})(AlertIntakeRejectionReason || (AlertIntakeRejectionReason = {}));
|
|
94
|
+
/**
|
|
95
|
+
* Where a stored message stands, as an operator reads it. Derived from the pipeline's
|
|
96
|
+
* processing status, retry schedule and rejection reason - not stored.
|
|
97
|
+
*
|
|
98
|
+
* QUEUED waiting for, or being worked on by, the pipeline
|
|
99
|
+
* RAISED became an incident
|
|
100
|
+
* RETRYING failed; another attempt is scheduled
|
|
101
|
+
* PARKED failed and will not be retried on its own: it ran out of attempts, or it
|
|
102
|
+
* has a `rejectionReason` (no organization, organization inactive)
|
|
103
|
+
* DUPLICATE the same sender repeating themselves; not raised
|
|
104
|
+
*/
|
|
105
|
+
export var AlertIntakeMessageState;
|
|
106
|
+
(function (AlertIntakeMessageState) {
|
|
107
|
+
AlertIntakeMessageState["QUEUED"] = "QUEUED";
|
|
108
|
+
AlertIntakeMessageState["RAISED"] = "RAISED";
|
|
109
|
+
AlertIntakeMessageState["RETRYING"] = "RETRYING";
|
|
110
|
+
AlertIntakeMessageState["PARKED"] = "PARKED";
|
|
111
|
+
AlertIntakeMessageState["DUPLICATE"] = "DUPLICATE";
|
|
112
|
+
})(AlertIntakeMessageState || (AlertIntakeMessageState = {}));
|
|
94
113
|
//# sourceMappingURL=alert-intake.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-intake.enum.js","sourceRoot":"","sources":["../../../../../src/modules/alert-intake/enums/alert-intake.enum.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wCAAwC;AACxC,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,qCAAe,CAAA;AACnB,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B;AAED;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,MAAM;IACN,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,uFAAuF;IACvF,kDAA2B,CAAA;IAC3B,WAAW;IACX,wDAAiC,CAAA;IACjC,QAAQ;IACR,oCAAa,CAAA;IACb,iGAAiG;IACjG,sDAA+B,CAAA;AACnC,CAAC,EAbW,mBAAmB,KAAnB,mBAAmB,QAa9B;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kDAAuB,CAAA;IACvB,gEAAqC,CAAA;AACzC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,2CAAa,CAAA;IACb,mEAAqC,CAAA;IACrC,2EAA6C,CAAA;AACjD,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED,qEAAqE;AACrE,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,oFAAoF;IACpF,4CAAmB,CAAA;IACnB,qEAAqE;IACrE,4CAAmB,CAAA;AACvB,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,8BAOX;AAPD,WAAY,8BAA8B;IACtC,8EAA8E;IAC9E,2DAAyB,CAAA;IACzB,gFAAgF;IAChF,+EAA6C,CAAA;IAC7C,mFAAmF;IACnF,mEAAiC,CAAA;AACrC,CAAC,EAPW,8BAA8B,KAA9B,8BAA8B,QAOzC;AAED,yFAAyF;AACzF,MAAM,CAAN,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IAClC,uEAAyC,CAAA;IACzC,yEAA2C,CAAA;IAC3C,yEAA2C,CAAA;IAC3C,iEAAmC,CAAA;IACnC,6EAA+C,CAAA;IAC/C,2DAA6B,CAAA;AACjC,CAAC,EAPW,0BAA0B,KAA1B,0BAA0B,QAOrC"}
|
|
1
|
+
{"version":3,"file":"alert-intake.enum.js","sourceRoot":"","sources":["../../../../../src/modules/alert-intake/enums/alert-intake.enum.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,wCAAwC;AACxC,MAAM,CAAN,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC1B,iCAAW,CAAA;IACX,2CAAqB,CAAA;IACrB,qCAAe,CAAA;AACnB,CAAC,EAJW,kBAAkB,KAAlB,kBAAkB,QAI7B;AAED;;;;;;;;GAQG;AACH,MAAM,CAAN,IAAY,mBAaX;AAbD,WAAY,mBAAmB;IAC3B,MAAM;IACN,wDAAiC,CAAA;IACjC,wCAAiB,CAAA;IACjB,wCAAiB,CAAA;IACjB,uFAAuF;IACvF,kDAA2B,CAAA;IAC3B,WAAW;IACX,wDAAiC,CAAA;IACjC,QAAQ;IACR,oCAAa,CAAA;IACb,iGAAiG;IACjG,sDAA+B,CAAA;AACnC,CAAC,EAbW,mBAAmB,KAAnB,mBAAmB,QAa9B;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,uBAGX;AAHD,WAAY,uBAAuB;IAC/B,kDAAuB,CAAA;IACvB,gEAAqC,CAAA;AACzC,CAAC,EAHW,uBAAuB,KAAvB,uBAAuB,QAGlC;AAED;;;;GAIG;AACH,MAAM,CAAN,IAAY,0BAIX;AAJD,WAAY,0BAA0B;IAClC,2CAAa,CAAA;IACb,mEAAqC,CAAA;IACrC,2EAA6C,CAAA;AACjD,CAAC,EAJW,0BAA0B,KAA1B,0BAA0B,QAIrC;AAED,qEAAqE;AACrE,MAAM,CAAN,IAAY,qBAKX;AALD,WAAY,qBAAqB;IAC7B,oFAAoF;IACpF,4CAAmB,CAAA;IACnB,qEAAqE;IACrE,4CAAmB,CAAA;AACvB,CAAC,EALW,qBAAqB,KAArB,qBAAqB,QAKhC;AAED,gEAAgE;AAChE,MAAM,CAAN,IAAY,8BAOX;AAPD,WAAY,8BAA8B;IACtC,8EAA8E;IAC9E,2DAAyB,CAAA;IACzB,gFAAgF;IAChF,+EAA6C,CAAA;IAC7C,mFAAmF;IACnF,mEAAiC,CAAA;AACrC,CAAC,EAPW,8BAA8B,KAA9B,8BAA8B,QAOzC;AAED,yFAAyF;AACzF,MAAM,CAAN,IAAY,0BAOX;AAPD,WAAY,0BAA0B;IAClC,uEAAyC,CAAA;IACzC,yEAA2C,CAAA;IAC3C,yEAA2C,CAAA;IAC3C,iEAAmC,CAAA;IACnC,6EAA+C,CAAA;IAC/C,2DAA6B,CAAA;AACjC,CAAC,EAPW,0BAA0B,KAA1B,0BAA0B,QAOrC;AAED;;;;;;;;;;GAUG;AACH,MAAM,CAAN,IAAY,uBAMX;AAND,WAAY,uBAAuB;IAC/B,4CAAiB,CAAA;IACjB,4CAAiB,CAAA;IACjB,gDAAqB,CAAA;IACrB,4CAAiB,CAAA;IACjB,kDAAuB,CAAA;AAC3B,CAAC,EANW,uBAAuB,KAAvB,uBAAuB,QAMlC"}
|
|
@@ -81,3 +81,21 @@ export declare enum AlertIntakeRejectionReason {
|
|
|
81
81
|
ORGANIZATION_INACTIVE = "ORGANIZATION_INACTIVE",
|
|
82
82
|
RATE_LIMITED = "RATE_LIMITED"
|
|
83
83
|
}
|
|
84
|
+
/**
|
|
85
|
+
* Where a stored message stands, as an operator reads it. Derived from the pipeline's
|
|
86
|
+
* processing status, retry schedule and rejection reason - not stored.
|
|
87
|
+
*
|
|
88
|
+
* QUEUED waiting for, or being worked on by, the pipeline
|
|
89
|
+
* RAISED became an incident
|
|
90
|
+
* RETRYING failed; another attempt is scheduled
|
|
91
|
+
* PARKED failed and will not be retried on its own: it ran out of attempts, or it
|
|
92
|
+
* has a `rejectionReason` (no organization, organization inactive)
|
|
93
|
+
* DUPLICATE the same sender repeating themselves; not raised
|
|
94
|
+
*/
|
|
95
|
+
export declare enum AlertIntakeMessageState {
|
|
96
|
+
QUEUED = "QUEUED",
|
|
97
|
+
RAISED = "RAISED",
|
|
98
|
+
RETRYING = "RETRYING",
|
|
99
|
+
PARKED = "PARKED",
|
|
100
|
+
DUPLICATE = "DUPLICATE"
|
|
101
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CountryCode } from '../../country/enums/country-code.enum';
|
|
2
|
-
import { AlertIntakeChannel, AlertIntakeEmergencyPolicy, AlertIntakeProvider, AlertIntakeRouteMatch, AlertIntakeSecretSource, AlertIntakeWebhookVerification } from '../enums/alert-intake.enum';
|
|
2
|
+
import { AlertIntakeChannel, AlertIntakeEmergencyPolicy, AlertIntakeMessageState, AlertIntakeProvider, AlertIntakeRejectionReason, AlertIntakeRouteMatch, AlertIntakeSecretSource, AlertIntakeWebhookVerification } from '../enums/alert-intake.enum';
|
|
3
3
|
/**
|
|
4
4
|
* Alert intake settings.
|
|
5
5
|
*
|
|
@@ -146,6 +146,85 @@ export interface OrganizationAlertIntakeSettings {
|
|
|
146
146
|
platformFallbacks: AlertIntakePlatformFallback[];
|
|
147
147
|
/** False when the service has no key to encrypt credentials with: only secret references can be used. */
|
|
148
148
|
encryptedSecretsAvailable: boolean;
|
|
149
|
+
/** What arrived for this organization recently, and what needs someone's attention. */
|
|
150
|
+
activity?: AlertIntakeActivitySummary;
|
|
151
|
+
}
|
|
152
|
+
/** Counts over the last `windowHours` - except `parked` and `failingConnections`, which are as of now. */
|
|
153
|
+
export interface AlertIntakeActivitySummary {
|
|
154
|
+
windowHours: number;
|
|
155
|
+
received: number;
|
|
156
|
+
raised: number;
|
|
157
|
+
duplicates: number;
|
|
158
|
+
retrying: number;
|
|
159
|
+
/** Waiting for an operator: out of attempts, or held for a reason (no organization, organization inactive). */
|
|
160
|
+
parked: number;
|
|
161
|
+
/** Enabled connections whose last attempt failed (a rejected call, a mailbox that could not be read). */
|
|
162
|
+
failingConnections: number;
|
|
163
|
+
}
|
|
164
|
+
/** What is kept of a file that came with a message. Never its contents. */
|
|
165
|
+
export interface AlertIntakeMessageAttachment {
|
|
166
|
+
fileName: string;
|
|
167
|
+
mimeType: string;
|
|
168
|
+
size: number;
|
|
169
|
+
/** True once the file is stored in DMS and linked to the incident. */
|
|
170
|
+
attached: boolean;
|
|
171
|
+
/** Why it was not attached, when it was not. */
|
|
172
|
+
error: string | null;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* A stored message, as an operator sees it in a list. `preview` is the start of the
|
|
176
|
+
* text; the whole of it is only in the detail.
|
|
177
|
+
*/
|
|
178
|
+
export interface AlertIntakeMessage {
|
|
179
|
+
id: string;
|
|
180
|
+
/** Null while no organization has been found for it. */
|
|
181
|
+
organizationId: number | null;
|
|
182
|
+
connectionId: string | null;
|
|
183
|
+
connectionName: string | null;
|
|
184
|
+
channel: AlertIntakeChannel;
|
|
185
|
+
/** Phone number, WhatsApp number or email address, as stored. */
|
|
186
|
+
sender: string | null;
|
|
187
|
+
senderName: string | null;
|
|
188
|
+
subject: string | null;
|
|
189
|
+
preview: string;
|
|
190
|
+
/** The keyword that routed it, on a platform connection. */
|
|
191
|
+
routeKeyword: string | null;
|
|
192
|
+
state: AlertIntakeMessageState;
|
|
193
|
+
rejectionReason: AlertIntakeRejectionReason | null;
|
|
194
|
+
/** The last error, for RETRYING and PARKED. */
|
|
195
|
+
error: string | null;
|
|
196
|
+
attempts: number;
|
|
197
|
+
nextAttemptAt: string | null;
|
|
198
|
+
/** The incident it raised. */
|
|
199
|
+
incidentId: number | null;
|
|
200
|
+
attachmentCount: number;
|
|
201
|
+
/** When the sender was told their message was received, if they were. */
|
|
202
|
+
acknowledgedAt: string | null;
|
|
203
|
+
receivedAt: string;
|
|
204
|
+
updatedAt: string;
|
|
205
|
+
/** What the CALLER may do with it now. */
|
|
206
|
+
actions: {
|
|
207
|
+
/** Try again: a PARKED message that ran out of attempts, or whose organization is active again. */
|
|
208
|
+
retry: boolean;
|
|
209
|
+
/** Raise a message that was taken for a duplicate. */
|
|
210
|
+
raiseAnyway: boolean;
|
|
211
|
+
/** Give a message no route claimed to an organization (platform operators). */
|
|
212
|
+
assign: boolean;
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
export interface AlertIntakeMessageDetail extends AlertIntakeMessage {
|
|
216
|
+
/** What the incident is raised from (a routing keyword removed). */
|
|
217
|
+
content: string;
|
|
218
|
+
/** Exactly as received. */
|
|
219
|
+
originalContent: string;
|
|
220
|
+
attachments: AlertIntakeMessageAttachment[];
|
|
221
|
+
acknowledgementError: string | null;
|
|
222
|
+
}
|
|
223
|
+
export interface AlertIntakeMessagePage {
|
|
224
|
+
items: AlertIntakeMessage[];
|
|
225
|
+
total: number;
|
|
226
|
+
page: number;
|
|
227
|
+
limit: number;
|
|
149
228
|
}
|
|
150
229
|
export interface AlertIntakeConnectionTestResult {
|
|
151
230
|
success: boolean;
|
|
@@ -200,3 +279,22 @@ export interface UpdateAlertIntakeRoute {
|
|
|
200
279
|
export type AlertIntakePlatformConnection = AlertIntakeConnection & {
|
|
201
280
|
routes: AlertIntakeRoute[];
|
|
202
281
|
};
|
|
282
|
+
/** Filters for an organization's stored messages (query string). `limit` is at most 100. */
|
|
283
|
+
export interface ListAlertIntakeMessagesQuery {
|
|
284
|
+
state?: AlertIntakeMessageState;
|
|
285
|
+
channel?: AlertIntakeChannel;
|
|
286
|
+
connectionId?: string;
|
|
287
|
+
reason?: AlertIntakeRejectionReason;
|
|
288
|
+
page?: number;
|
|
289
|
+
limit?: number;
|
|
290
|
+
}
|
|
291
|
+
/** Platform operators: every organization's messages, and those no organization has yet. */
|
|
292
|
+
export interface ListPlatformAlertIntakeMessagesQuery extends ListAlertIntakeMessagesQuery {
|
|
293
|
+
organizationId?: number;
|
|
294
|
+
/** Only messages no organization has been found for. */
|
|
295
|
+
unrouted?: boolean;
|
|
296
|
+
}
|
|
297
|
+
/** Platform operators: give a message no route claimed to an organization, and raise it. */
|
|
298
|
+
export interface AssignAlertIntakeMessage {
|
|
299
|
+
organizationId: number;
|
|
300
|
+
}
|