grm-shared-library 1.1.192 → 1.1.194
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/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/modules/alert-dispatch/enums/incident-dispatch-scope.enum.js +27 -0
- package/dist/cjs/modules/alert-dispatch/enums/incident-dispatch-scope.enum.js.map +1 -0
- package/dist/cjs/modules/alert-dispatch/index.js +23 -0
- package/dist/cjs/modules/alert-dispatch/index.js.map +1 -0
- package/dist/cjs/modules/alert-dispatch/interfaces/alert-dispatch.js +3 -0
- package/dist/cjs/modules/alert-dispatch/interfaces/alert-dispatch.js.map +1 -0
- package/dist/cjs/modules/alert-dispatch/utils/alert-dispatch.util.js +86 -0
- package/dist/cjs/modules/alert-dispatch/utils/alert-dispatch.util.js.map +1 -0
- package/dist/cjs/modules/incident/dtos/incident/create-incident.dto.js +18 -0
- package/dist/cjs/modules/incident/dtos/incident/create-incident.dto.js.map +1 -1
- package/dist/cjs/modules/incident/dtos/incident/incident.dto.js +11 -0
- package/dist/cjs/modules/incident/dtos/incident/incident.dto.js.map +1 -1
- package/dist/cjs/modules/system-user/constants/system-user.const.js +31 -0
- package/dist/cjs/modules/system-user/constants/system-user.const.js.map +1 -0
- package/dist/cjs/modules/system-user/index.js +27 -0
- package/dist/cjs/modules/system-user/index.js.map +1 -0
- package/dist/cjs/modules/system-user/interfaces/system-user-env-source.js +3 -0
- package/dist/cjs/modules/system-user/interfaces/system-user-env-source.js.map +1 -0
- package/dist/cjs/modules/system-user/services/system-user.service.js +60 -0
- package/dist/cjs/modules/system-user/services/system-user.service.js.map +1 -0
- package/dist/cjs/modules/system-user/system-user.module.js +33 -0
- package/dist/cjs/modules/system-user/system-user.module.js.map +1 -0
- package/dist/cjs/modules/system-user/utils/system-user.util.js +57 -0
- package/dist/cjs/modules/system-user/utils/system-user.util.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/modules/alert-dispatch/enums/incident-dispatch-scope.enum.js +24 -0
- package/dist/esm/modules/alert-dispatch/enums/incident-dispatch-scope.enum.js.map +1 -0
- package/dist/esm/modules/alert-dispatch/index.js +7 -0
- package/dist/esm/modules/alert-dispatch/index.js.map +1 -0
- package/dist/esm/modules/alert-dispatch/interfaces/alert-dispatch.js +2 -0
- package/dist/esm/modules/alert-dispatch/interfaces/alert-dispatch.js.map +1 -0
- package/dist/esm/modules/alert-dispatch/utils/alert-dispatch.util.js +78 -0
- package/dist/esm/modules/alert-dispatch/utils/alert-dispatch.util.js.map +1 -0
- package/dist/esm/modules/incident/dtos/incident/create-incident.dto.js +18 -0
- package/dist/esm/modules/incident/dtos/incident/create-incident.dto.js.map +1 -1
- package/dist/esm/modules/incident/dtos/incident/incident.dto.js +12 -1
- package/dist/esm/modules/incident/dtos/incident/incident.dto.js.map +1 -1
- package/dist/esm/modules/system-user/constants/system-user.const.js +28 -0
- package/dist/esm/modules/system-user/constants/system-user.const.js.map +1 -0
- package/dist/esm/modules/system-user/index.js +11 -0
- package/dist/esm/modules/system-user/index.js.map +1 -0
- package/dist/esm/modules/system-user/interfaces/system-user-env-source.js +2 -0
- package/dist/esm/modules/system-user/interfaces/system-user-env-source.js.map +1 -0
- package/dist/esm/modules/system-user/services/system-user.service.js +57 -0
- package/dist/esm/modules/system-user/services/system-user.service.js.map +1 -0
- package/dist/esm/modules/system-user/system-user.module.js +30 -0
- package/dist/esm/modules/system-user/system-user.module.js.map +1 -0
- package/dist/esm/modules/system-user/utils/system-user.util.js +53 -0
- package/dist/esm/modules/system-user/utils/system-user.util.js.map +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/types/interfaces/pagination.d.ts +8 -0
- package/dist/types/modules/alert-dispatch/enums/incident-dispatch-scope.enum.d.ts +22 -0
- package/dist/types/modules/alert-dispatch/index.d.ts +3 -0
- package/dist/types/modules/alert-dispatch/interfaces/alert-dispatch.d.ts +33 -0
- package/dist/types/modules/alert-dispatch/utils/alert-dispatch.util.d.ts +51 -0
- package/dist/types/modules/incident/dtos/incident/create-incident.dto.d.ts +14 -0
- package/dist/types/modules/incident/dtos/incident/incident.dto.d.ts +8 -0
- package/dist/types/modules/incident/intefaces/incident.d.ts +9 -0
- package/dist/types/modules/system-user/constants/system-user.const.d.ts +24 -0
- package/dist/types/modules/system-user/index.d.ts +5 -0
- package/dist/types/modules/system-user/interfaces/system-user-env-source.d.ts +10 -0
- package/dist/types/modules/system-user/services/system-user.service.d.ts +26 -0
- package/dist/types/modules/system-user/system-user.module.d.ts +13 -0
- package/dist/types/modules/system-user/utils/system-user.util.d.ts +41 -0
- package/package.json +5 -3
package/dist/cjs/index.js
CHANGED
|
@@ -37,6 +37,8 @@ __exportStar(require("./modules/country/index"), exports);
|
|
|
37
37
|
__exportStar(require("./modules/phone/index"), exports);
|
|
38
38
|
__exportStar(require("./modules/tracking/index"), exports);
|
|
39
39
|
__exportStar(require("./modules/entitlement/index"), exports);
|
|
40
|
+
__exportStar(require("./modules/alert-dispatch/index"), exports);
|
|
41
|
+
__exportStar(require("./modules/system-user/index"), exports);
|
|
40
42
|
// Interfaces
|
|
41
43
|
__exportStar(require("./interfaces/server-message"), exports);
|
|
42
44
|
__exportStar(require("./interfaces/i-request-with-user"), exports);
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,mEAAiD;AACjD,+DAA6C;AAC7C,uDAAqC;AACrC,0DAAwC;AACxC,wDAAsC;AACtC,2DAAyC;AACzC,8DAA4C;AAE5C,aAAa;AACb,8DAA4C;AAC5C,mEAAiD;AACjD,8DAA4C;AAC5C,2DAAyC;AACzC,0DAAwC;AAExC,YAAY;AACZ,2DAAyC;AAEzC,QAAQ;AACR,gDAA8B;AAE9B,YAAY;AACZ,+DAA6C;AAC7C,wFAAsE;AAEtE,aAAa;AACb,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,UAAU;AACV,uDAAqC;AACrC,+DAA6C;AAC7C,yDAAuC;AACvC,6DAA2C;AAC3C,uDAAqC;AACrC,uDAAqC;AACrC,iEAA+C;AAC/C,wDAAsC;AACtC,gEAA8C;AAC9C,2DAAyC;AACzC,2DAAyC;AACzC,sDAAoC;AACpC,sDAAoC;AACpC,sDAAoC;AACpC,yDAAuC;AACvC,mEAAiD;AACjD,+DAA6C;AAC7C,uDAAqC;AACrC,0DAAwC;AACxC,wDAAsC;AACtC,2DAAyC;AACzC,8DAA4C;AAC5C,iEAA+C;AAC/C,8DAA4C;AAE5C,aAAa;AACb,8DAA4C;AAC5C,mEAAiD;AACjD,8DAA4C;AAC5C,2DAAyC;AACzC,0DAAwC;AAExC,YAAY;AACZ,2DAAyC;AAEzC,QAAQ;AACR,gDAA8B;AAE9B,YAAY;AACZ,+DAA6C;AAC7C,wFAAsE;AAEtE,aAAa;AACb,qDAAmC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IncidentDispatchScope = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* List filter applied to incident queries on the *dispatch* dimension - i.e.
|
|
6
|
+
* whether the reporter asked for the service provider to be alerted at all.
|
|
7
|
+
*
|
|
8
|
+
* ALL - no dispatch filter (default; preserves legacy behaviour).
|
|
9
|
+
* DISPATCHED - only incidents the provider was asked to receive. Used by the
|
|
10
|
+
* primary admin incident list, map and kanban views.
|
|
11
|
+
* SUPPRESSED - only incidents the reporter explicitly withheld from the
|
|
12
|
+
* provider. Backs the "Incident List - Marked Ignore" admin
|
|
13
|
+
* view.
|
|
14
|
+
*
|
|
15
|
+
* Deliberately separate from {@link IncidentEntitlementScope}: entitlement is a
|
|
16
|
+
* billing fact about the reporter, dispatch is a choice the reporter made on
|
|
17
|
+
* this one alert. The two compose - the control room asks for
|
|
18
|
+
* `ENTITLED` + `DISPATCHED`, "Marked Ignore" asks for `ENTITLED` + `SUPPRESSED`,
|
|
19
|
+
* and "Free Users" asks for `FREE` on the entitlement dimension alone.
|
|
20
|
+
*/
|
|
21
|
+
var IncidentDispatchScope;
|
|
22
|
+
(function (IncidentDispatchScope) {
|
|
23
|
+
IncidentDispatchScope["ALL"] = "ALL";
|
|
24
|
+
IncidentDispatchScope["DISPATCHED"] = "DISPATCHED";
|
|
25
|
+
IncidentDispatchScope["SUPPRESSED"] = "SUPPRESSED";
|
|
26
|
+
})(IncidentDispatchScope || (exports.IncidentDispatchScope = IncidentDispatchScope = {}));
|
|
27
|
+
//# sourceMappingURL=incident-dispatch-scope.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-dispatch-scope.enum.js","sourceRoot":"","sources":["../../../../../src/modules/alert-dispatch/enums/incident-dispatch-scope.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,oCAAW,CAAA;IACX,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;AAC7B,CAAC,EAJW,qBAAqB,qCAArB,qBAAqB,QAIhC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
// Enums
|
|
18
|
+
__exportStar(require("./enums/incident-dispatch-scope.enum"), exports);
|
|
19
|
+
// Interfaces
|
|
20
|
+
__exportStar(require("./interfaces/alert-dispatch"), exports);
|
|
21
|
+
// Utilities
|
|
22
|
+
__exportStar(require("./utils/alert-dispatch.util"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/alert-dispatch/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,QAAQ;AACR,uEAAqD;AAErD,aAAa;AACb,8DAA4C;AAE5C,YAAY;AACZ,8DAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dispatch.js","sourceRoot":"","sources":["../../../../../src/modules/alert-dispatch/interfaces/alert-dispatch.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.reachesControlRoom = reachesControlRoom;
|
|
4
|
+
exports.reachesGuardians = reachesGuardians;
|
|
5
|
+
exports.isMarkedIgnore = isMarkedIgnore;
|
|
6
|
+
exports.resolveIncidentAlertDispatch = resolveIncidentAlertDispatch;
|
|
7
|
+
exports.reachesNobody = reachesNobody;
|
|
8
|
+
exports.parseIncidentDispatchScope = parseIncidentDispatchScope;
|
|
9
|
+
const entitlement_util_1 = require("../../entitlement/utils/entitlement.util");
|
|
10
|
+
const incident_dispatch_scope_enum_1 = require("../enums/incident-dispatch-scope.enum");
|
|
11
|
+
/**
|
|
12
|
+
* Whether an incident reaches the provider control room - live map, live list,
|
|
13
|
+
* kanban, operator assignment and operator notifications.
|
|
14
|
+
*
|
|
15
|
+
* Two independent reasons keep an alert out, and this is the single place both
|
|
16
|
+
* are expressed so no consumer can honour one and forget the other:
|
|
17
|
+
*
|
|
18
|
+
* 1. the reporter is a Free user, so the provider was never entitled to it;
|
|
19
|
+
* 2. the reporter explicitly unchecked the provider option ("Marked Ignore").
|
|
20
|
+
*
|
|
21
|
+
* A missing flag counts as dispatched: incidents written before this feature
|
|
22
|
+
* existed, and every operator-created record, keep their original behaviour.
|
|
23
|
+
*/
|
|
24
|
+
function reachesControlRoom(incident) {
|
|
25
|
+
if (!incident)
|
|
26
|
+
return true;
|
|
27
|
+
if ((0, entitlement_util_1.isFreeUserTier)(incident.entitlementTier))
|
|
28
|
+
return false;
|
|
29
|
+
return incident.notifyServiceProvider !== false;
|
|
30
|
+
}
|
|
31
|
+
/** Whether the reporter's guardians should be pulled in and notified. */
|
|
32
|
+
function reachesGuardians(incident) {
|
|
33
|
+
return !incident || incident.notifyGuardians !== false;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Whether the reporter deliberately withheld this alert from the provider, as
|
|
37
|
+
* opposed to never having been entitled to send it. Only the former belongs in
|
|
38
|
+
* the "Marked Ignore" admin list; a Free user's alert belongs in
|
|
39
|
+
* "Incident List - Free Users".
|
|
40
|
+
*/
|
|
41
|
+
function isMarkedIgnore(incident) {
|
|
42
|
+
if (!incident)
|
|
43
|
+
return false;
|
|
44
|
+
return incident.notifyServiceProvider === false && !(0, entitlement_util_1.isFreeUserTier)(incident.entitlementTier);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Applies dispatch policy to what the client asked for.
|
|
48
|
+
*
|
|
49
|
+
* The client's checkboxes are an intent, never the decision: a Free user's
|
|
50
|
+
* provider option is unchecked and read-only in the app, and this is what makes
|
|
51
|
+
* that true even for a caller that ignores the UI. Anything the client omits
|
|
52
|
+
* defaults to "notify", so existing callers (web admin, older app builds) are
|
|
53
|
+
* unaffected.
|
|
54
|
+
*
|
|
55
|
+
* Returns resolved flags only - it deliberately does not reject the
|
|
56
|
+
* both-off combination, so callers can decide whether that is a validation
|
|
57
|
+
* error (the SOS path) or simply nobody to notify.
|
|
58
|
+
*/
|
|
59
|
+
function resolveIncidentAlertDispatch(request) {
|
|
60
|
+
const applies = request.applies !== false;
|
|
61
|
+
if (!applies) {
|
|
62
|
+
return { notifyServiceProvider: true, notifyGuardians: true };
|
|
63
|
+
}
|
|
64
|
+
const notifyGuardians = request.notifyGuardians !== false;
|
|
65
|
+
const notifyServiceProvider = (0, entitlement_util_1.isFreeUserTier)(request.tier)
|
|
66
|
+
? false
|
|
67
|
+
: request.notifyServiceProvider !== false;
|
|
68
|
+
return { notifyServiceProvider, notifyGuardians };
|
|
69
|
+
}
|
|
70
|
+
/** True when an alert would reach nobody at all. */
|
|
71
|
+
function reachesNobody(dispatch) {
|
|
72
|
+
return (dispatch === null || dispatch === void 0 ? void 0 : dispatch.notifyServiceProvider) === false && (dispatch === null || dispatch === void 0 ? void 0 : dispatch.notifyGuardians) === false;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Parses a client-supplied dispatch scope. Unknown/absent values fall back to
|
|
76
|
+
* `ALL` so an unrecognised query string never silently hides incidents.
|
|
77
|
+
*/
|
|
78
|
+
function parseIncidentDispatchScope(value) {
|
|
79
|
+
if (!value)
|
|
80
|
+
return incident_dispatch_scope_enum_1.IncidentDispatchScope.ALL;
|
|
81
|
+
const normalized = value.trim().toUpperCase();
|
|
82
|
+
return Object.values(incident_dispatch_scope_enum_1.IncidentDispatchScope).includes(normalized)
|
|
83
|
+
? normalized
|
|
84
|
+
: incident_dispatch_scope_enum_1.IncidentDispatchScope.ALL;
|
|
85
|
+
}
|
|
86
|
+
//# sourceMappingURL=alert-dispatch.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dispatch.util.js","sourceRoot":"","sources":["../../../../../src/modules/alert-dispatch/utils/alert-dispatch.util.ts"],"names":[],"mappings":";;AAkBA,gDAMC;AAGD,4CAEC;AAQD,wCAKC;AAeD,oEAaC;AAGD,sCAEC;AAMD,gEAMC;AAtFD,+EAA0E;AAC1E,wFAA8E;AAG9E;;;;;;;;;;;;GAYG;AACH,SAAgB,kBAAkB,CAC9B,QAA+F;IAE/F,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAC3B,IAAI,IAAA,iCAAc,EAAC,QAAQ,CAAC,eAAe,CAAC;QAAE,OAAO,KAAK,CAAC;IAC3D,OAAO,QAAQ,CAAC,qBAAqB,KAAK,KAAK,CAAC;AACpD,CAAC;AAED,yEAAyE;AACzE,SAAgB,gBAAgB,CAAC,QAA+B;IAC5D,OAAO,CAAC,QAAQ,IAAI,QAAQ,CAAC,eAAe,KAAK,KAAK,CAAC;AAC3D,CAAC;AAED;;;;;GAKG;AACH,SAAgB,cAAc,CAC1B,QAA+F;IAE/F,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,OAAO,QAAQ,CAAC,qBAAqB,KAAK,KAAK,IAAI,CAAC,IAAA,iCAAc,EAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;AACjG,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAgB,4BAA4B,CAAC,OAA6B;IACtE,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,KAAK,KAAK,CAAC;IAE1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACX,OAAO,EAAE,qBAAqB,EAAE,IAAI,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC;IAClE,CAAC;IAED,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,KAAK,KAAK,CAAC;IAC1D,MAAM,qBAAqB,GAAG,IAAA,iCAAc,EAAC,OAAO,CAAC,IAAI,CAAC;QACtD,CAAC,CAAC,KAAK;QACP,CAAC,CAAC,OAAO,CAAC,qBAAqB,KAAK,KAAK,CAAC;IAE9C,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,CAAC;AACtD,CAAC;AAED,oDAAoD;AACpD,SAAgB,aAAa,CAAC,QAA+B;IACzD,OAAO,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,qBAAqB,MAAK,KAAK,IAAI,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,eAAe,MAAK,KAAK,CAAC;AAC5F,CAAC;AAED;;;GAGG;AACH,SAAgB,0BAA0B,CAAC,KAAqB;IAC5D,IAAI,CAAC,KAAK;QAAE,OAAO,oDAAqB,CAAC,GAAG,CAAC;IAC7C,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC;IAC9C,OAAQ,MAAM,CAAC,MAAM,CAAC,oDAAqB,CAAc,CAAC,QAAQ,CAAC,UAAU,CAAC;QAC1E,CAAC,CAAE,UAAoC;QACvC,CAAC,CAAC,oDAAqB,CAAC,GAAG,CAAC;AACpC,CAAC"}
|
|
@@ -267,4 +267,22 @@ __decorate([
|
|
|
267
267
|
(0, class_validator_1.IsNotEmpty)(),
|
|
268
268
|
__metadata("design:type", Number)
|
|
269
269
|
], CreateIncidentDto.prototype, "organizationId", void 0);
|
|
270
|
+
__decorate([
|
|
271
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
272
|
+
description: "Whether the service provider's control room should be alerted. Defaults to true.",
|
|
273
|
+
example: true
|
|
274
|
+
}),
|
|
275
|
+
(0, class_validator_1.IsBoolean)(),
|
|
276
|
+
(0, class_validator_1.IsOptional)(),
|
|
277
|
+
__metadata("design:type", Boolean)
|
|
278
|
+
], CreateIncidentDto.prototype, "notifyServiceProvider", void 0);
|
|
279
|
+
__decorate([
|
|
280
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
281
|
+
description: "Whether the reporter's guardians should be alerted and added to the incident chat. Defaults to true.",
|
|
282
|
+
example: true
|
|
283
|
+
}),
|
|
284
|
+
(0, class_validator_1.IsBoolean)(),
|
|
285
|
+
(0, class_validator_1.IsOptional)(),
|
|
286
|
+
__metadata("design:type", Boolean)
|
|
287
|
+
], CreateIncidentDto.prototype, "notifyGuardians", void 0);
|
|
270
288
|
//# sourceMappingURL=create-incident.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmE;AACnE,2EAAiE;AACjE,yEAAgE;AAChE,6EAAoE;AACpE,yDAAyC;AACzC,+EAAsE;AACtE,4CAAiD;AACjD,2EAAkE;AAClE,qGAA8F;AAC9F,2FAAqF;AACrF,2FAAiF;AACjF,6FAAsF;AAEtF,MAAa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"create-incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/create-incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAyH;AACzH,6CAAmE;AACnE,2EAAiE;AACjE,yEAAgE;AAChE,6EAAoE;AACpE,yDAAyC;AACzC,+EAAsE;AACtE,4CAAiD;AACjD,2EAAkE;AAClE,qGAA8F;AAC9F,2FAAqF;AACrF,2FAAiF;AACjF,6FAAsF;AAEtF,MAAa,iBAAiB;CAoP7B;AApPD,8CAoPC;AA5OG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,+CAA+C;QAC5D,IAAI,EAAE,oCAAa;Q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AsG;QACnH,OAAO,EAAE,IAAI;KAChB,CAAC;IACD,IAAA,2BAAS,GAAE;IACX,IAAA,4BAAU,GAAE;;0DACa"}
|
|
@@ -21,6 +21,7 @@ const incident_assignment_dto_1 = require("../assignment/incident-assignment.dto
|
|
|
21
21
|
const update_incident_response_unit_assignment_dto_1 = require("../response-unit-assignment/update-incident-response-unit-assignment.dto");
|
|
22
22
|
const incident_reporter_dto_1 = require("../reporter/incident-reporter.dto");
|
|
23
23
|
const incident_status_details_dto_1 = require("./incident-status-details.dto");
|
|
24
|
+
const incident_entitlement_tier_enum_1 = require("../../../entitlement/enums/incident-entitlement-tier.enum");
|
|
24
25
|
class IncidentDto extends (0, swagger_1.OmitType)(create_incident_dto_1.CreateIncidentDto, ['reporter', 'statusDetails']) {
|
|
25
26
|
}
|
|
26
27
|
exports.IncidentDto = IncidentDto;
|
|
@@ -124,4 +125,14 @@ __decorate([
|
|
|
124
125
|
(0, class_validator_1.IsNotEmpty)(),
|
|
125
126
|
__metadata("design:type", String)
|
|
126
127
|
], IncidentDto.prototype, "updatedAt", void 0);
|
|
128
|
+
__decorate([
|
|
129
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
130
|
+
description: 'Premium entitlement tier stamped on the incident at creation',
|
|
131
|
+
enum: incident_entitlement_tier_enum_1.IncidentEntitlementTier,
|
|
132
|
+
example: incident_entitlement_tier_enum_1.IncidentEntitlementTier.PREMIUM
|
|
133
|
+
}),
|
|
134
|
+
(0, class_validator_1.IsEnum)(incident_entitlement_tier_enum_1.IncidentEntitlementTier),
|
|
135
|
+
(0, class_validator_1.IsOptional)(),
|
|
136
|
+
__metadata("design:type", String)
|
|
137
|
+
], IncidentDto.prototype, "entitlementTier", void 0);
|
|
127
138
|
//# sourceMappingURL=incident.dto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"incident.dto.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/dtos/incident/incident.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qDAAkH;AAClH,6CAA6E;AAC7E,+DAA0D;AAC1D,yDAAyC;AACzC,2FAAqF;AACrF,+EAAyE;AACzE,uEAAkE;AAClE,mFAA8E;AAC9E,2IAA6H;AAC7H,6EAAwE;AACxE,+EAAyE;AACzE,8GAAoG;AAEpG,MAAa,WAAY,SAAQ,IAAA,kBAAQ,EAAC,uCAAiB,EAAE,CAAC,UAAU,EAAE,eAAe,CAAU,CAAC;CAyGnG;AAzGD,kCAyGC;AAlGG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,GAAG;KACf,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;uCACD;AASZ;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,gDAAgD;QAC7D,IAAI,EAAE,2CAAmB;KAC5B,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2CAAmB,CAAC;IAC/B,IAAA,4BAAU,GAAE;8BACF,2CAAmB;6CAAC;AAS/B;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,8CAA8C;QAC3D,IAAI,EAAE,sDAAwB;KACjC,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,sDAAwB,CAAC;IACpC,IAAA,4BAAU,GAAE;8BACG,sDAAwB;kDAAC;AASzC;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uCAAuC;QACpD,IAAI,EAAE,wDAAyB;KAClC,CAAC;IACD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,wDAAyB,CAAC;IACrC,IAAA,4BAAU,G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E;IACd,IAAA,4BAAU,GAAE;;8CACM;AAQnB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kDAAkD;QAC/D,OAAO,EAAE,0BAA0B;KACtC,CAAC;IACD,IAAA,8BAAY,GAAE;IACd,IAAA,4BAAU,GAAE;;8CACM;AAenB;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,8DAA8D;QAC3E,IAAI,EAAE,wDAAuB;QAC7B,OAAO,EAAE,wDAAuB,CAAC,OAAO;KAC3C,CAAC;IACD,IAAA,wBAAM,EAAC,wDAAuB,CAAC;IAC/B,IAAA,4BAAU,GAAE;;oDAC6B"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LEGACY_SYSTEM_USER_ID_ENV_KEYS = exports.SYSTEM_USER_ID_ENV_KEY = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Canonical environment variable that carries the platform "system user" id.
|
|
6
|
+
*
|
|
7
|
+
* The system user is a real row in the clarion-authentication `users` table
|
|
8
|
+
* that services stamp on records they create or mutate on their own behalf —
|
|
9
|
+
* i.e. when there is no authenticated human in the request (auto-assignment,
|
|
10
|
+
* automated status changes, service-to-service document uploads).
|
|
11
|
+
*
|
|
12
|
+
* It is deliberately NOT a compile-time constant: it is an environment-specific
|
|
13
|
+
* database row id, so dev / staging / production each carry their own value.
|
|
14
|
+
* The library owns the *contract* (key name, parsing, validation, fallback
|
|
15
|
+
* policy); the deployment owns the *value* (see clarion-deployment configmap).
|
|
16
|
+
*/
|
|
17
|
+
exports.SYSTEM_USER_ID_ENV_KEY = 'SYSTEM_USER_ID';
|
|
18
|
+
/**
|
|
19
|
+
* Per-service keys that predate {@link SYSTEM_USER_ID_ENV_KEY}.
|
|
20
|
+
*
|
|
21
|
+
* Still read — in order — when the canonical key is absent, so that a rollback
|
|
22
|
+
* to an older ConfigMap does not take a service down. Remove once every
|
|
23
|
+
* environment has been migrated to the canonical key.
|
|
24
|
+
*
|
|
25
|
+
* @deprecated Set {@link SYSTEM_USER_ID_ENV_KEY} instead.
|
|
26
|
+
*/
|
|
27
|
+
exports.LEGACY_SYSTEM_USER_ID_ENV_KEYS = [
|
|
28
|
+
'BILLING_DMS_SERVICE_USER_ID',
|
|
29
|
+
'NEWSFEED_DMS_SERVICE_USER_ID',
|
|
30
|
+
];
|
|
31
|
+
//# sourceMappingURL=system-user.const.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-user.const.js","sourceRoot":"","sources":["../../../../../src/modules/system-user/constants/system-user.const.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;GAYG;AACU,QAAA,sBAAsB,GAAG,gBAAgB,CAAC;AAEvD;;;;;;;;GAQG;AACU,QAAA,8BAA8B,GAAsB;IAC7D,6BAA6B;IAC7B,8BAA8B;CACjC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
// Constants
|
|
18
|
+
__exportStar(require("./constants/system-user.const"), exports);
|
|
19
|
+
// Interfaces
|
|
20
|
+
__exportStar(require("./interfaces/system-user-env-source"), exports);
|
|
21
|
+
// Utilities
|
|
22
|
+
__exportStar(require("./utils/system-user.util"), exports);
|
|
23
|
+
// Services
|
|
24
|
+
__exportStar(require("./services/system-user.service"), exports);
|
|
25
|
+
// Module
|
|
26
|
+
__exportStar(require("./system-user.module"), exports);
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/system-user/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,YAAY;AACZ,gEAA8C;AAE9C,aAAa;AACb,sEAAoD;AAEpD,YAAY;AACZ,2DAAyC;AAEzC,WAAW;AACX,iEAA+C;AAE/C,SAAS;AACT,uDAAqC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-user-env-source.js","sourceRoot":"","sources":["../../../../../src/modules/system-user/interfaces/system-user-env-source.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var SystemUserService_1;
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.SystemUserService = void 0;
|
|
14
|
+
const common_1 = require("@nestjs/common");
|
|
15
|
+
const config_1 = require("@nestjs/config");
|
|
16
|
+
const system_user_const_1 = require("../constants/system-user.const");
|
|
17
|
+
const system_user_util_1 = require("../utils/system-user.util");
|
|
18
|
+
/**
|
|
19
|
+
* Single source of truth for the platform system user id inside a service.
|
|
20
|
+
*
|
|
21
|
+
* Resolution happens once, on module init, so a mis-set `SYSTEM_USER_ID`
|
|
22
|
+
* fails the pod's startup probe instead of surfacing later as records stamped
|
|
23
|
+
* with a user id that clarion-authentication cannot resolve.
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* constructor(private readonly systemUser: SystemUserService) {}
|
|
27
|
+
* ...
|
|
28
|
+
* const actorId = userContext?.userId ?? this.systemUser.id;
|
|
29
|
+
*/
|
|
30
|
+
let SystemUserService = SystemUserService_1 = class SystemUserService {
|
|
31
|
+
constructor(configService) {
|
|
32
|
+
this.configService = configService;
|
|
33
|
+
this.logger = new common_1.Logger(SystemUserService_1.name);
|
|
34
|
+
this.resolvedId = null;
|
|
35
|
+
}
|
|
36
|
+
onModuleInit() {
|
|
37
|
+
this.resolvedId = (0, system_user_util_1.resolveSystemUserId)(this.configService, {
|
|
38
|
+
onLegacyKeyUsed: (key) => this.logger.warn(`Resolved the system user id from deprecated env key "${key}". ` +
|
|
39
|
+
`Set ${system_user_const_1.SYSTEM_USER_ID_ENV_KEY} instead — legacy keys will be removed.`),
|
|
40
|
+
});
|
|
41
|
+
this.logger.log(`System user id resolved to ${this.resolvedId}`);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* The system user id. Throws if read before module init completed, which
|
|
45
|
+
* only happens if a provider resolves it inside its own constructor.
|
|
46
|
+
*/
|
|
47
|
+
get id() {
|
|
48
|
+
if (this.resolvedId === null) {
|
|
49
|
+
// Resolve on demand so constructor-time reads still work.
|
|
50
|
+
this.resolvedId = (0, system_user_util_1.resolveSystemUserId)(this.configService);
|
|
51
|
+
}
|
|
52
|
+
return this.resolvedId;
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
exports.SystemUserService = SystemUserService;
|
|
56
|
+
exports.SystemUserService = SystemUserService = SystemUserService_1 = __decorate([
|
|
57
|
+
(0, common_1.Injectable)(),
|
|
58
|
+
__metadata("design:paramtypes", [config_1.ConfigService])
|
|
59
|
+
], SystemUserService);
|
|
60
|
+
//# sourceMappingURL=system-user.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-user.service.js","sourceRoot":"","sources":["../../../../../src/modules/system-user/services/system-user.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,2CAAkE;AAClE,2CAA+C;AAC/C,sEAAwE;AACxE,gEAAgE;AAEhE;;;;;;;;;;;GAWG;AAEI,IAAM,iBAAiB,yBAAvB,MAAM,iBAAiB;IAI1B,YAA6B,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;QAHxC,WAAM,GAAG,IAAI,eAAM,CAAC,mBAAiB,CAAC,IAAI,CAAC,CAAC;QACrD,eAAU,GAAkB,IAAI,CAAC;IAEoB,CAAC;IAE9D,YAAY;QACR,IAAI,CAAC,UAAU,GAAG,IAAA,sCAAmB,EAAC,IAAI,CAAC,aAAa,EAAE;YACtD,eAAe,EAAE,CAAC,GAAG,EAAE,EAAE,CACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CACZ,wDAAwD,GAAG,KAAK;gBAChE,OAAO,0CAAsB,yCAAyC,CACzE;SACR,CAAC,CAAC;QACH,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,8BAA8B,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;IACrE,CAAC;IAED;;;OAGG;IACH,IAAI,EAAE;QACF,IAAI,IAAI,CAAC,UAAU,KAAK,IAAI,EAAE,CAAC;YAC3B,0DAA0D;YAC1D,IAAI,CAAC,UAAU,GAAG,IAAA,sCAAmB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAC9D,CAAC;QACD,OAAO,IAAI,CAAC,UAAU,CAAC;IAC3B,CAAC;CACJ,CAAA;AA5BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAKmC,sBAAa;GAJhD,iBAAiB,CA4B7B"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SystemUserModule = void 0;
|
|
10
|
+
const common_1 = require("@nestjs/common");
|
|
11
|
+
const system_user_service_1 = require("./services/system-user.service");
|
|
12
|
+
/**
|
|
13
|
+
* Global module exposing {@link SystemUserService} to every provider in the
|
|
14
|
+
* host application. Import once in the service's root `AppModule`:
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* @Module({ imports: [ConfigModule.forRoot({ ... }), SystemUserModule] })
|
|
18
|
+
* export class AppModule {}
|
|
19
|
+
*
|
|
20
|
+
* Requires `ConfigModule` to be global (the convention across clarion
|
|
21
|
+
* services) or otherwise available where this module is imported.
|
|
22
|
+
*/
|
|
23
|
+
let SystemUserModule = class SystemUserModule {
|
|
24
|
+
};
|
|
25
|
+
exports.SystemUserModule = SystemUserModule;
|
|
26
|
+
exports.SystemUserModule = SystemUserModule = __decorate([
|
|
27
|
+
(0, common_1.Global)(),
|
|
28
|
+
(0, common_1.Module)({
|
|
29
|
+
providers: [system_user_service_1.SystemUserService],
|
|
30
|
+
exports: [system_user_service_1.SystemUserService],
|
|
31
|
+
})
|
|
32
|
+
], SystemUserModule);
|
|
33
|
+
//# sourceMappingURL=system-user.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-user.module.js","sourceRoot":"","sources":["../../../../src/modules/system-user/system-user.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAgD;AAChD,wEAAmE;AAEnE;;;;;;;;;;GAUG;AAMI,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAAI,CAAA;AAApB,4CAAgB;2BAAhB,gBAAgB;IAL5B,IAAA,eAAM,GAAE;IACR,IAAA,eAAM,EAAC;QACJ,SAAS,EAAE,CAAC,uCAAiB,CAAC;QAC9B,OAAO,EAAE,CAAC,uCAAiB,CAAC;KAC/B,CAAC;GACW,gBAAgB,CAAI"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.parseSystemUserId = parseSystemUserId;
|
|
4
|
+
exports.resolveSystemUserId = resolveSystemUserId;
|
|
5
|
+
const system_user_const_1 = require("../constants/system-user.const");
|
|
6
|
+
/**
|
|
7
|
+
* Parses a raw environment value into a usable user id.
|
|
8
|
+
*
|
|
9
|
+
* Returns `null` for anything that is not a positive integer — including
|
|
10
|
+
* `'0'`, `'-1'`, `'abc'` and the empty string — so that a typo'd ConfigMap
|
|
11
|
+
* entry surfaces as a clear failure rather than silently stamping user `0`
|
|
12
|
+
* onto production records.
|
|
13
|
+
*/
|
|
14
|
+
function parseSystemUserId(raw) {
|
|
15
|
+
if (raw === null || raw === undefined) {
|
|
16
|
+
return null;
|
|
17
|
+
}
|
|
18
|
+
const text = String(raw).trim();
|
|
19
|
+
if (!text || !/^\d+$/.test(text)) {
|
|
20
|
+
return null;
|
|
21
|
+
}
|
|
22
|
+
const parsed = Number(text);
|
|
23
|
+
return Number.isSafeInteger(parsed) && parsed > 0 ? parsed : null;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Resolves the platform system user id from the environment.
|
|
27
|
+
*
|
|
28
|
+
* Precedence: {@link SYSTEM_USER_ID_ENV_KEY} → each legacy key in order →
|
|
29
|
+
* `options.fallback`. Throws when nothing resolves and no fallback is given,
|
|
30
|
+
* which is the intended behaviour at startup: a service that stamps records
|
|
31
|
+
* with the system user should refuse to boot rather than write a wrong id.
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // In a Nest provider that already injects ConfigService:
|
|
35
|
+
* this.systemUserId = resolveSystemUserId(this.configService);
|
|
36
|
+
*/
|
|
37
|
+
function resolveSystemUserId(source, options = {}) {
|
|
38
|
+
const { legacyKeys = system_user_const_1.LEGACY_SYSTEM_USER_ID_ENV_KEYS, fallback, onLegacyKeyUsed } = options;
|
|
39
|
+
const canonical = parseSystemUserId(source.get(system_user_const_1.SYSTEM_USER_ID_ENV_KEY));
|
|
40
|
+
if (canonical !== null) {
|
|
41
|
+
return canonical;
|
|
42
|
+
}
|
|
43
|
+
for (const key of legacyKeys) {
|
|
44
|
+
const legacy = parseSystemUserId(source.get(key));
|
|
45
|
+
if (legacy !== null) {
|
|
46
|
+
onLegacyKeyUsed === null || onLegacyKeyUsed === void 0 ? void 0 : onLegacyKeyUsed(key);
|
|
47
|
+
return legacy;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
if (fallback !== undefined) {
|
|
51
|
+
return fallback;
|
|
52
|
+
}
|
|
53
|
+
throw new Error(`${system_user_const_1.SYSTEM_USER_ID_ENV_KEY} is not set to a positive integer. ` +
|
|
54
|
+
`Set it to the id of the platform system user in clarion-authentication ` +
|
|
55
|
+
`(checked legacy keys: ${legacyKeys.length ? legacyKeys.join(', ') : 'none'}).`);
|
|
56
|
+
}
|
|
57
|
+
//# sourceMappingURL=system-user.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"system-user.util.js","sourceRoot":"","sources":["../../../../../src/modules/system-user/utils/system-user.util.ts"],"names":[],"mappings":";;AA8BA,8CAYC;AAcD,kDA4BC;AAnFD,sEAAwG;AAqBxG;;;;;;;GAOG;AACH,SAAgB,iBAAiB,CAAC,GAAY;IAC1C,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,KAAK,SAAS,EAAE,CAAC;QACpC,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,IAAI,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,CAAC;IAChC,IAAI,CAAC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;QAC/B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IAC5B,OAAO,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AACtE,CAAC;AAED;;;;;;;;;;;GAWG;AACH,SAAgB,mBAAmB,CAC/B,MAA2B,EAC3B,UAAsC,EAAE;IAExC,MAAM,EAAE,UAAU,GAAG,kDAA8B,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,OAAO,CAAC;IAE3F,MAAM,SAAS,GAAG,iBAAiB,CAAC,MAAM,CAAC,GAAG,CAAC,0CAAsB,CAAC,CAAC,CAAC;IACxE,IAAI,SAAS,KAAK,IAAI,EAAE,CAAC;QACrB,OAAO,SAAS,CAAC;IACrB,CAAC;IAED,KAAK,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAC3B,MAAM,MAAM,GAAG,iBAAiB,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC;QAClD,IAAI,MAAM,KAAK,IAAI,EAAE,CAAC;YAClB,eAAe,aAAf,eAAe,uBAAf,eAAe,CAAG,GAAG,CAAC,CAAC;YACvB,OAAO,MAAM,CAAC;QAClB,CAAC;IACL,CAAC;IAED,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QACzB,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,IAAI,KAAK,CACX,GAAG,0CAAsB,qCAAqC;QAC9D,yEAAyE;QACzE,yBAAyB,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,IAAI,CAClF,CAAC;AACN,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -21,6 +21,8 @@ export * from './modules/country/index';
|
|
|
21
21
|
export * from './modules/phone/index';
|
|
22
22
|
export * from './modules/tracking/index';
|
|
23
23
|
export * from './modules/entitlement/index';
|
|
24
|
+
export * from './modules/alert-dispatch/index';
|
|
25
|
+
export * from './modules/system-user/index';
|
|
24
26
|
// Interfaces
|
|
25
27
|
export * from './interfaces/server-message';
|
|
26
28
|
export * from './interfaces/i-request-with-user';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,sBAAsB,CAAC;AACrC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kCAAkC,CAAC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b,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AAExC,YAAY;AACZ,cAAc,0BAA0B,CAAC;AAEzC,QAAQ;AACR,cAAc,eAAe,CAAC;AAE9B,YAAY;AACZ,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uDAAuD,CAAC;AAEtE,aAAa;AACb,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* List filter applied to incident queries on the *dispatch* dimension - i.e.
|
|
3
|
+
* whether the reporter asked for the service provider to be alerted at all.
|
|
4
|
+
*
|
|
5
|
+
* ALL - no dispatch filter (default; preserves legacy behaviour).
|
|
6
|
+
* DISPATCHED - only incidents the provider was asked to receive. Used by the
|
|
7
|
+
* primary admin incident list, map and kanban views.
|
|
8
|
+
* SUPPRESSED - only incidents the reporter explicitly withheld from the
|
|
9
|
+
* provider. Backs the "Incident List - Marked Ignore" admin
|
|
10
|
+
* view.
|
|
11
|
+
*
|
|
12
|
+
* Deliberately separate from {@link IncidentEntitlementScope}: entitlement is a
|
|
13
|
+
* billing fact about the reporter, dispatch is a choice the reporter made on
|
|
14
|
+
* this one alert. The two compose - the control room asks for
|
|
15
|
+
* `ENTITLED` + `DISPATCHED`, "Marked Ignore" asks for `ENTITLED` + `SUPPRESSED`,
|
|
16
|
+
* and "Free Users" asks for `FREE` on the entitlement dimension alone.
|
|
17
|
+
*/
|
|
18
|
+
export var IncidentDispatchScope;
|
|
19
|
+
(function (IncidentDispatchScope) {
|
|
20
|
+
IncidentDispatchScope["ALL"] = "ALL";
|
|
21
|
+
IncidentDispatchScope["DISPATCHED"] = "DISPATCHED";
|
|
22
|
+
IncidentDispatchScope["SUPPRESSED"] = "SUPPRESSED";
|
|
23
|
+
})(IncidentDispatchScope || (IncidentDispatchScope = {}));
|
|
24
|
+
//# sourceMappingURL=incident-dispatch-scope.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"incident-dispatch-scope.enum.js","sourceRoot":"","sources":["../../../../../src/modules/alert-dispatch/enums/incident-dispatch-scope.enum.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,CAAN,IAAY,qBAIX;AAJD,WAAY,qBAAqB;IAC7B,oCAAW,CAAA;IACX,kDAAyB,CAAA;IACzB,kDAAyB,CAAA;AAC7B,CAAC,EAJW,qBAAqB,KAArB,qBAAqB,QAIhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/alert-dispatch/index.ts"],"names":[],"mappings":"AAAA,QAAQ;AACR,cAAc,sCAAsC,CAAC;AAErD,aAAa;AACb,cAAc,6BAA6B,CAAC;AAE5C,YAAY;AACZ,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alert-dispatch.js","sourceRoot":"","sources":["../../../../../src/modules/alert-dispatch/interfaces/alert-dispatch.ts"],"names":[],"mappings":""}
|