grm-shared-library 1.1.54 → 1.1.55
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/incident/index.js +1 -1
- package/dist/cjs/modules/incident/index.js.map +1 -1
- package/dist/esm/modules/incident/index.js +1 -1
- package/dist/esm/modules/incident/index.js.map +1 -1
- package/dist/types/modules/incident/index.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/modules/incident/intefaces/analytics/chart-data.js +0 -3
- package/dist/cjs/modules/incident/intefaces/analytics/chart-data.js.map +0 -1
- package/dist/cjs/modules/incident/intefaces/analytics/incident-analytics.js +0 -3
- package/dist/cjs/modules/incident/intefaces/analytics/incident-analytics.js.map +0 -1
- package/dist/cjs/modules/incident/intefaces/analytics/index.js +0 -19
- package/dist/cjs/modules/incident/intefaces/analytics/index.js.map +0 -1
- package/dist/esm/modules/incident/intefaces/analytics/chart-data.js +0 -2
- package/dist/esm/modules/incident/intefaces/analytics/chart-data.js.map +0 -1
- package/dist/esm/modules/incident/intefaces/analytics/incident-analytics.js +0 -2
- package/dist/esm/modules/incident/intefaces/analytics/incident-analytics.js.map +0 -1
- package/dist/esm/modules/incident/intefaces/analytics/index.js +0 -3
- package/dist/esm/modules/incident/intefaces/analytics/index.js.map +0 -1
- package/dist/types/modules/incident/intefaces/analytics/chart-data.d.ts +0 -62
- package/dist/types/modules/incident/intefaces/analytics/incident-analytics.d.ts +0 -90
- package/dist/types/modules/incident/intefaces/analytics/index.d.ts +0 -2
|
@@ -43,6 +43,7 @@ __exportStar(require("./dtos/reporter/update-incident-reporter.dto"), exports);
|
|
|
43
43
|
__exportStar(require("./dtos/report/create-incident-report.dto"), exports);
|
|
44
44
|
__exportStar(require("./dtos/report/incident-report.dto"), exports);
|
|
45
45
|
__exportStar(require("./dtos/report/update-incident-report.dto"), exports);
|
|
46
|
+
// Analytics DTOs
|
|
46
47
|
__exportStar(require("./dtos/analytics"), exports);
|
|
47
48
|
//enums
|
|
48
49
|
__exportStar(require("./enums/incident-app-id.enum"), exports);
|
|
@@ -65,5 +66,4 @@ __exportStar(require("./intefaces/incident-status-changed"), exports);
|
|
|
65
66
|
__exportStar(require("./intefaces/incident-status-details"), exports);
|
|
66
67
|
__exportStar(require("./intefaces/incident-on-hold-record"), exports);
|
|
67
68
|
__exportStar(require("./intefaces/incident-report"), exports);
|
|
68
|
-
__exportStar(require("./intefaces/analytics"), exports);
|
|
69
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/incident/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,mFAAiE;AACjE,mFAAiE;AACjE,+EAA6D;AAC7D,+EAA6D;AAC7D,+DAA6C;AAC7C,sEAAoD;AACpD,sEAAoD;AACpD,8EAA4D;AAC5D,8EAA4D;AAC5D,8EAA4D;AAC5D,wEAAsD;AACtD,uEAAqD;AACrD,uEAAqD;AACrD,4EAA0D;AAC1D,mFAAiE;AACjE,mFAAiE;AACjE,wGAAsF;AACtF,+GAA6F;AAC7F,+GAA6F;AAC7F,wEAAsD;AACtD,+EAA6D;AAC7D,+EAA6D;AAC7D,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/incident/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO;AACP,oEAAkD;AAClD,2EAAyD;AACzD,0EAAwD;AACxD,mFAAiE;AACjE,mFAAiE;AACjE,+EAA6D;AAC7D,+EAA6D;AAC7D,+DAA6C;AAC7C,sEAAoD;AACpD,sEAAoD;AACpD,8EAA4D;AAC5D,8EAA4D;AAC5D,8EAA4D;AAC5D,wEAAsD;AACtD,uEAAqD;AACrD,uEAAqD;AACrD,4EAA0D;AAC1D,mFAAiE;AACjE,mFAAiE;AACjE,wGAAsF;AACtF,+GAA6F;AAC7F,+GAA6F;AAC7F,wEAAsD;AACtD,+EAA6D;AAC7D,+EAA6D;AAC7D,2EAAyD;AACzD,oEAAkD;AAClD,2EAAyD;AAEzD,iBAAiB;AACjB,mDAAiC;AACjC,OAAO;AACP,+DAA6C;AAC7C,gEAA8C;AAC9C,8DAA4C;AAC5C,iEAA+C;AAC/C,+DAA6C;AAC7C,gEAA8C;AAC9C,4EAA0D;AAE1D,YAAY;AACZ,uDAAqC;AACrC,8DAA4C;AAC5C,kEAAgD;AAChD,gEAA8C;AAC9C,gEAA8C;AAC9C,4DAA0C;AAC1C,kEAAgD;AAChD,gFAA8D;AAC9D,sEAAoD;AACpD,sEAAoD;AACpD,sEAAoD;AACpD,8DAA4C"}
|
|
@@ -27,6 +27,7 @@ export * from './dtos/reporter/update-incident-reporter.dto';
|
|
|
27
27
|
export * from './dtos/report/create-incident-report.dto';
|
|
28
28
|
export * from './dtos/report/incident-report.dto';
|
|
29
29
|
export * from './dtos/report/update-incident-report.dto';
|
|
30
|
+
// Analytics DTOs
|
|
30
31
|
export * from './dtos/analytics';
|
|
31
32
|
//enums
|
|
32
33
|
export * from './enums/incident-app-id.enum';
|
|
@@ -49,5 +50,4 @@ export * from './intefaces/incident-status-changed';
|
|
|
49
50
|
export * from './intefaces/incident-status-details';
|
|
50
51
|
export * from './intefaces/incident-on-hold-record';
|
|
51
52
|
export * from './intefaces/incident-report';
|
|
52
|
-
export * from './intefaces/analytics';
|
|
53
53
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/modules/incident/index.ts"],"names":[],"mappings":"AAAA,OAAO;AACP,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AACzD,cAAc,yCAAyC,CAAC;AACxD,cAAc,kDAAkD,CAAC;AACjE,cAAc,kDAAkD,CAAC;AACjE,cAAc,8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CAAC;AACtF,cAAc,8EAA8E,CAAC;AAC7F,cAAc,8EAA8E,CAAC;AAC7F,cAAc,uCAAuC,CAAC;AACtD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,8CAA8C,CAAC;AAC7D,cAAc,0CAA0C,CAAC;AACzD,cAAc,mCAAmC,CAAC;AAClD,cAAc,0CAA0C,CAAC;AAEzD,iBAAiB;AACjB,cAAc,kBAAkB,CAAC;AACjC,OAAO;AACP,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2CAA2C,CAAC;AAE1D,YAAY;AACZ,cAAc,sBAAsB,CAAC;AACrC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,iCAAiC,CAAC;AAChD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chart-data.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/intefaces/analytics/chart-data.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"incident-analytics.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/intefaces/analytics/incident-analytics.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +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("./chart-data"), exports);
|
|
18
|
-
__exportStar(require("./incident-analytics"), exports);
|
|
19
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/intefaces/analytics/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B;AAC7B,uDAAqC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chart-data.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/intefaces/analytics/chart-data.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"incident-analytics.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/intefaces/analytics/incident-analytics.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/incident/intefaces/analytics/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
export interface ChartDataPoint {
|
|
2
|
-
label: string;
|
|
3
|
-
value: number;
|
|
4
|
-
percentage?: number;
|
|
5
|
-
color?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface TimeSeriesDataPoint {
|
|
8
|
-
timestamp: string;
|
|
9
|
-
value: number;
|
|
10
|
-
label?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface ComparisonDataPoint {
|
|
13
|
-
name: string;
|
|
14
|
-
current: number;
|
|
15
|
-
previous: number;
|
|
16
|
-
change: number;
|
|
17
|
-
changePercentage: number;
|
|
18
|
-
}
|
|
19
|
-
export interface GeographicDataPoint {
|
|
20
|
-
location: string;
|
|
21
|
-
latitude?: number;
|
|
22
|
-
longitude?: number;
|
|
23
|
-
count: number;
|
|
24
|
-
percentage?: number;
|
|
25
|
-
}
|
|
26
|
-
export interface TrendDataPoint {
|
|
27
|
-
period: string;
|
|
28
|
-
value: number;
|
|
29
|
-
trend: 'up' | 'down' | 'stable';
|
|
30
|
-
changeFromPrevious?: number;
|
|
31
|
-
}
|
|
32
|
-
export interface DrillDownDataPoint {
|
|
33
|
-
category: string;
|
|
34
|
-
value: number;
|
|
35
|
-
subCategories?: ChartDataPoint[];
|
|
36
|
-
}
|
|
37
|
-
export interface PerformanceMetric {
|
|
38
|
-
name: string;
|
|
39
|
-
value: number;
|
|
40
|
-
unit: string;
|
|
41
|
-
benchmark?: number;
|
|
42
|
-
status: 'good' | 'warning' | 'critical';
|
|
43
|
-
description?: string;
|
|
44
|
-
}
|
|
45
|
-
export interface AnalyticsFilter {
|
|
46
|
-
startDate?: Date;
|
|
47
|
-
endDate?: Date;
|
|
48
|
-
organizationId?: number;
|
|
49
|
-
controlCentreId?: number;
|
|
50
|
-
status?: string[];
|
|
51
|
-
priority?: string[];
|
|
52
|
-
channel?: string[];
|
|
53
|
-
categoryId?: number[];
|
|
54
|
-
typeId?: number[];
|
|
55
|
-
assigneeIds?: number[];
|
|
56
|
-
responseUnitIds?: number[];
|
|
57
|
-
}
|
|
58
|
-
export interface DateRange {
|
|
59
|
-
start: Date;
|
|
60
|
-
end: Date;
|
|
61
|
-
label: string;
|
|
62
|
-
}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { ChartDataPoint, TimeSeriesDataPoint, GeographicDataPoint, TrendDataPoint, PerformanceMetric } from './chart-data';
|
|
2
|
-
export interface IncidentAnalyticsData {
|
|
3
|
-
overview: IncidentOverviewData;
|
|
4
|
-
statusDistribution: ChartDataPoint[];
|
|
5
|
-
priorityDistribution: ChartDataPoint[];
|
|
6
|
-
categoryAnalysis: ChartDataPoint[];
|
|
7
|
-
timeBasedAnalysis: TimeSeriesDataPoint[];
|
|
8
|
-
geographicAnalysis: GeographicDataPoint[];
|
|
9
|
-
responseMetrics: PerformanceMetric[];
|
|
10
|
-
trendAnalysis: TrendDataPoint[];
|
|
11
|
-
}
|
|
12
|
-
export interface IncidentOverviewData {
|
|
13
|
-
totalIncidents: number;
|
|
14
|
-
activeIncidents: number;
|
|
15
|
-
resolvedIncidents: number;
|
|
16
|
-
avgResponseTime: number;
|
|
17
|
-
avgResolutionTime: number;
|
|
18
|
-
incidentsToday: number;
|
|
19
|
-
incidentsThisWeek: number;
|
|
20
|
-
incidentsThisMonth: number;
|
|
21
|
-
escalatedIncidents: number;
|
|
22
|
-
criticalIncidents: number;
|
|
23
|
-
responseTimeTarget: number;
|
|
24
|
-
resolutionTimeTarget: number;
|
|
25
|
-
slaCompliance: number;
|
|
26
|
-
}
|
|
27
|
-
export interface IncidentHeatmapData {
|
|
28
|
-
timeOfDay: number;
|
|
29
|
-
dayOfWeek: number;
|
|
30
|
-
value: number;
|
|
31
|
-
date?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface IncidentVolumeData {
|
|
34
|
-
period: string;
|
|
35
|
-
total: number;
|
|
36
|
-
resolved: number;
|
|
37
|
-
active: number;
|
|
38
|
-
escalated: number;
|
|
39
|
-
}
|
|
40
|
-
export interface ResponseTimeAnalysis {
|
|
41
|
-
averageResponseTime: number;
|
|
42
|
-
targetResponseTime: number;
|
|
43
|
-
performanceByPriority: PerformanceByPriority[];
|
|
44
|
-
performanceByCategory: PerformanceByCategory[];
|
|
45
|
-
monthlyTrends: TimeSeriesDataPoint[];
|
|
46
|
-
}
|
|
47
|
-
export interface PerformanceByPriority {
|
|
48
|
-
priority: string;
|
|
49
|
-
averageTime: number;
|
|
50
|
-
targetTime: number;
|
|
51
|
-
complianceRate: number;
|
|
52
|
-
incidentCount: number;
|
|
53
|
-
}
|
|
54
|
-
export interface PerformanceByCategory {
|
|
55
|
-
category: string;
|
|
56
|
-
averageTime: number;
|
|
57
|
-
incidentCount: number;
|
|
58
|
-
trend: 'improving' | 'declining' | 'stable';
|
|
59
|
-
}
|
|
60
|
-
export interface IncidentForecastData {
|
|
61
|
-
predicted: TimeSeriesDataPoint[];
|
|
62
|
-
confidence: {
|
|
63
|
-
upper: TimeSeriesDataPoint[];
|
|
64
|
-
lower: TimeSeriesDataPoint[];
|
|
65
|
-
};
|
|
66
|
-
historicalAccuracy: number;
|
|
67
|
-
nextWeekPrediction: number;
|
|
68
|
-
nextMonthPrediction: number;
|
|
69
|
-
}
|
|
70
|
-
export interface AnomalyDetectionData {
|
|
71
|
-
anomalies: {
|
|
72
|
-
timestamp: string;
|
|
73
|
-
actualValue: number;
|
|
74
|
-
expectedValue: number;
|
|
75
|
-
severity: 'low' | 'medium' | 'high';
|
|
76
|
-
type: 'volume_spike' | 'response_delay' | 'unusual_pattern';
|
|
77
|
-
description: string;
|
|
78
|
-
}[];
|
|
79
|
-
overallScore: number;
|
|
80
|
-
patterns: string[];
|
|
81
|
-
}
|
|
82
|
-
export interface ComplianceMetrics {
|
|
83
|
-
slaCompliance: number;
|
|
84
|
-
responseTimeCompliance: number;
|
|
85
|
-
resolutionTimeCompliance: number;
|
|
86
|
-
escalationCompliance: number;
|
|
87
|
-
documentationCompliance: number;
|
|
88
|
-
trendsOverTime: TimeSeriesDataPoint[];
|
|
89
|
-
}
|
|
90
|
-
export { ChartDataPoint, TimeSeriesDataPoint, ComparisonDataPoint, GeographicDataPoint, TrendDataPoint, DrillDownDataPoint, PerformanceMetric, AnalyticsFilter, DateRange } from './chart-data';
|