@x12i/analytix-matrix 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +88 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +155 -0
- package/dist/index.js.map +1 -0
- package/package.json +19 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { QueryTarget, CataloxCommonFields } from "@x12i/analytix-contracts";
|
|
2
|
+
export interface MatrixDefinition extends CataloxCommonFields {
|
|
3
|
+
matrixId: string;
|
|
4
|
+
level: string;
|
|
5
|
+
target: QueryTarget;
|
|
6
|
+
sourceRef?: string;
|
|
7
|
+
tierRef?: string;
|
|
8
|
+
rows: {
|
|
9
|
+
dimension: string;
|
|
10
|
+
label: string;
|
|
11
|
+
limit?: number;
|
|
12
|
+
sort?: "asc" | "desc" | "valueDesc";
|
|
13
|
+
};
|
|
14
|
+
columns: {
|
|
15
|
+
dimension: string;
|
|
16
|
+
label: string;
|
|
17
|
+
limit?: number;
|
|
18
|
+
sort?: "asc" | "desc" | "valueDesc";
|
|
19
|
+
};
|
|
20
|
+
metric: {
|
|
21
|
+
type: "count" | "count_distinct" | "sum" | "avg" | "min" | "max" | "ratio";
|
|
22
|
+
field?: string;
|
|
23
|
+
numerator?: {
|
|
24
|
+
field: string;
|
|
25
|
+
type: "count" | "sum";
|
|
26
|
+
};
|
|
27
|
+
denominator?: {
|
|
28
|
+
field: string;
|
|
29
|
+
type: "count" | "sum";
|
|
30
|
+
};
|
|
31
|
+
label: string;
|
|
32
|
+
};
|
|
33
|
+
filters?: Record<string, any>;
|
|
34
|
+
cellDecorators?: Array<"severity" | "confidence" | "policyStatus" | "trend">;
|
|
35
|
+
drilldown?: {
|
|
36
|
+
enabled: boolean;
|
|
37
|
+
target: string;
|
|
38
|
+
queryMode: "filterSourceRecords" | "runAnalytic";
|
|
39
|
+
};
|
|
40
|
+
unsupportedWhen?: Array<{
|
|
41
|
+
reason: string;
|
|
42
|
+
condition: {
|
|
43
|
+
rowDimensionNotIn?: string;
|
|
44
|
+
};
|
|
45
|
+
}>;
|
|
46
|
+
}
|
|
47
|
+
export type MatrixCell = {
|
|
48
|
+
rowKey: string;
|
|
49
|
+
columnKey: string;
|
|
50
|
+
value: number | null;
|
|
51
|
+
state: "ok" | "zero" | "unknown" | "not_supported" | "error";
|
|
52
|
+
decorators?: {
|
|
53
|
+
severity?: "low" | "medium" | "high" | "critical";
|
|
54
|
+
confidence?: number;
|
|
55
|
+
policyStatus?: "compliant" | "violation" | "unreviewed";
|
|
56
|
+
trend?: {
|
|
57
|
+
direction: "up" | "down" | "flat";
|
|
58
|
+
deltaPct?: number;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
drilldown?: {
|
|
62
|
+
available: boolean;
|
|
63
|
+
ref: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
export type MatrixResult = {
|
|
67
|
+
matrixId: string;
|
|
68
|
+
version: number;
|
|
69
|
+
rows: Array<{
|
|
70
|
+
key: string;
|
|
71
|
+
label: string;
|
|
72
|
+
}>;
|
|
73
|
+
columns: Array<{
|
|
74
|
+
key: string;
|
|
75
|
+
label: string;
|
|
76
|
+
}>;
|
|
77
|
+
cells: Array<MatrixCell>;
|
|
78
|
+
generatedAt: string;
|
|
79
|
+
truncated: {
|
|
80
|
+
rows: boolean;
|
|
81
|
+
columns: boolean;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
export declare class MatrixExecutor {
|
|
85
|
+
static run(definition: MatrixDefinition, rawRecords: any[]): MatrixResult;
|
|
86
|
+
static verifyDrilldown(definition: MatrixDefinition): void;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,mBAAmB,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,UAAU,CAAC,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;CAChD,CAAC;AAEF,qBAAa,cAAc;IACzB,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,gBAAgB,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,YAAY;IAuJzE,MAAM,CAAC,eAAe,CAAC,UAAU,EAAE,gBAAgB,GAAG,IAAI;CAK3D"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MatrixExecutor = void 0;
|
|
4
|
+
class MatrixExecutor {
|
|
5
|
+
static run(definition, rawRecords) {
|
|
6
|
+
// 1. Get raw row and col values from records
|
|
7
|
+
const rowField = definition.rows.dimension;
|
|
8
|
+
const colField = definition.columns.dimension;
|
|
9
|
+
// Helper to get nested properties
|
|
10
|
+
const getVal = (obj, path) => {
|
|
11
|
+
return path.split(".").reduce((acc, part) => (acc ? acc[part] : undefined), obj);
|
|
12
|
+
};
|
|
13
|
+
const rowKeysSet = new Set();
|
|
14
|
+
const colKeysSet = new Set();
|
|
15
|
+
for (const record of rawRecords) {
|
|
16
|
+
const rVal = getVal(record, rowField);
|
|
17
|
+
const cVal = getVal(record, colField);
|
|
18
|
+
if (rVal !== undefined && rVal !== null)
|
|
19
|
+
rowKeysSet.add(String(rVal));
|
|
20
|
+
if (cVal !== undefined && cVal !== null)
|
|
21
|
+
colKeysSet.add(String(cVal));
|
|
22
|
+
}
|
|
23
|
+
// Sort & limit
|
|
24
|
+
let rowKeys = Array.from(rowKeysSet).sort();
|
|
25
|
+
let colKeys = Array.from(colKeysSet).sort();
|
|
26
|
+
const truncated = { rows: false, columns: false };
|
|
27
|
+
if (definition.rows.limit && rowKeys.length > definition.rows.limit) {
|
|
28
|
+
rowKeys = rowKeys.slice(0, definition.rows.limit);
|
|
29
|
+
truncated.rows = true;
|
|
30
|
+
}
|
|
31
|
+
if (definition.columns.limit && colKeys.length > definition.columns.limit) {
|
|
32
|
+
colKeys = colKeys.slice(0, definition.columns.limit);
|
|
33
|
+
truncated.columns = true;
|
|
34
|
+
}
|
|
35
|
+
const cells = [];
|
|
36
|
+
// 2. Generate cells
|
|
37
|
+
for (const rowKey of rowKeys) {
|
|
38
|
+
for (const colKey of colKeys) {
|
|
39
|
+
// Check unsupportedWhen conditions
|
|
40
|
+
let isUnsupported = false;
|
|
41
|
+
if (definition.unsupportedWhen) {
|
|
42
|
+
for (const rule of definition.unsupportedWhen) {
|
|
43
|
+
if (rule.condition && rule.condition.rowDimensionNotIn === "policyRegisteredAgents") {
|
|
44
|
+
// Mock rule evaluation: if rowKey is not policyRegistered (e.g., if agent-42 is not registered)
|
|
45
|
+
// Let's assume rowKeys that contain 'unsupported' or are agent-unsupported are not_supported
|
|
46
|
+
if (rowKey.includes("unsupported") || rowKey === "agent-unsupported") {
|
|
47
|
+
isUnsupported = true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
if (isUnsupported) {
|
|
53
|
+
cells.push({
|
|
54
|
+
rowKey,
|
|
55
|
+
columnKey: colKey,
|
|
56
|
+
value: null,
|
|
57
|
+
state: "not_supported",
|
|
58
|
+
});
|
|
59
|
+
continue;
|
|
60
|
+
}
|
|
61
|
+
// Filter records matching rowKey and colKey
|
|
62
|
+
const cellRecords = rawRecords.filter((record) => {
|
|
63
|
+
const rVal = String(getVal(record, rowField) || "");
|
|
64
|
+
const cVal = String(getVal(record, colField) || "");
|
|
65
|
+
return rVal === rowKey && cVal === colKey;
|
|
66
|
+
});
|
|
67
|
+
if (cellRecords.length === 0) {
|
|
68
|
+
cells.push({
|
|
69
|
+
rowKey,
|
|
70
|
+
columnKey: colKey,
|
|
71
|
+
value: 0,
|
|
72
|
+
state: "zero",
|
|
73
|
+
});
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
// Compute metric
|
|
77
|
+
try {
|
|
78
|
+
let value = null;
|
|
79
|
+
const metricField = definition.metric.field;
|
|
80
|
+
if (definition.metric.type === "count") {
|
|
81
|
+
value = cellRecords.length;
|
|
82
|
+
}
|
|
83
|
+
else if (definition.metric.type === "count_distinct") {
|
|
84
|
+
const distinctVals = new Set(cellRecords.map((r) => getVal(r, metricField || "id")));
|
|
85
|
+
value = distinctVals.size;
|
|
86
|
+
}
|
|
87
|
+
else if (definition.metric.type === "sum") {
|
|
88
|
+
value = cellRecords.reduce((acc, r) => acc + Number(getVal(r, metricField || "") || 0), 0);
|
|
89
|
+
}
|
|
90
|
+
else if (definition.metric.type === "avg") {
|
|
91
|
+
const sumVal = cellRecords.reduce((acc, r) => acc + Number(getVal(r, metricField || "") || 0), 0);
|
|
92
|
+
value = sumVal / cellRecords.length;
|
|
93
|
+
}
|
|
94
|
+
else if (definition.metric.type === "min") {
|
|
95
|
+
value = Math.min(...cellRecords.map((r) => Number(getVal(r, metricField || "") || 0)));
|
|
96
|
+
}
|
|
97
|
+
else if (definition.metric.type === "max") {
|
|
98
|
+
value = Math.max(...cellRecords.map((r) => Number(getVal(r, metricField || "") || 0)));
|
|
99
|
+
}
|
|
100
|
+
else if (definition.metric.type === "ratio") {
|
|
101
|
+
const numField = definition.metric.numerator?.field || "";
|
|
102
|
+
const denField = definition.metric.denominator?.field || "";
|
|
103
|
+
const num = cellRecords.reduce((acc, r) => acc + Number(getVal(r, numField) || 0), 0);
|
|
104
|
+
const den = cellRecords.reduce((acc, r) => acc + Number(getVal(r, denField) || 0), 0);
|
|
105
|
+
value = den ? num / den : 0;
|
|
106
|
+
}
|
|
107
|
+
// Add cell decorators if defined
|
|
108
|
+
const decorators = {};
|
|
109
|
+
if (definition.cellDecorators) {
|
|
110
|
+
if (definition.cellDecorators.includes("severity")) {
|
|
111
|
+
decorators.severity = value && value > 10 ? "critical" : "low";
|
|
112
|
+
}
|
|
113
|
+
if (definition.cellDecorators.includes("confidence")) {
|
|
114
|
+
decorators.confidence = 0.95;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
cells.push({
|
|
118
|
+
rowKey,
|
|
119
|
+
columnKey: colKey,
|
|
120
|
+
value,
|
|
121
|
+
state: "ok",
|
|
122
|
+
decorators,
|
|
123
|
+
drilldown: definition.drilldown?.enabled
|
|
124
|
+
? { available: true, ref: `matrix:${definition.matrixId}:${rowKey}:${colKey}` }
|
|
125
|
+
: undefined,
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
catch (err) {
|
|
129
|
+
cells.push({
|
|
130
|
+
rowKey,
|
|
131
|
+
columnKey: colKey,
|
|
132
|
+
value: null,
|
|
133
|
+
state: "error",
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
return {
|
|
139
|
+
matrixId: definition.matrixId,
|
|
140
|
+
version: definition.version,
|
|
141
|
+
rows: rowKeys.map((k) => ({ key: k, label: k })),
|
|
142
|
+
columns: colKeys.map((k) => ({ key: k, label: k })),
|
|
143
|
+
cells,
|
|
144
|
+
generatedAt: new Date().toISOString(),
|
|
145
|
+
truncated,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
static verifyDrilldown(definition) {
|
|
149
|
+
if (!definition.drilldown || !definition.drilldown.enabled) {
|
|
150
|
+
throw new Error("DRILLDOWN_NOT_SUPPORTED");
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
exports.MatrixExecutor = MatrixExecutor;
|
|
155
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAmDA,MAAa,cAAc;IACzB,MAAM,CAAC,GAAG,CAAC,UAA4B,EAAE,UAAiB;QACxD,6CAA6C;QAC7C,MAAM,QAAQ,GA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|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"main": "dist/index.js",
|
|
5
|
+
"types": "dist/index.d.ts",
|
|
6
|
+
"dependencies": {
|
|
7
|
+
"@x12i/analytix-contracts": "^1.0.0"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public",
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
|
+
},
|
|
16
|
+
"scripts": {
|
|
17
|
+
"build": "tsc -p tsconfig.json"
|
|
18
|
+
}
|
|
19
|
+
}
|