@dx-do/client 7.7.1 → 7.8.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.cjs.js +969 -257
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +941 -258
- package/dist/index.esm.js.map +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/lib/model/alarm/alarm-enrichment-rule.d.ts +263 -0
- package/dist/src/lib/model/alarm/alarm-enrichment-rule.d.ts.map +1 -0
- package/dist/src/lib/model/channel/ticket-enrichment.d.ts +201 -0
- package/dist/src/lib/model/channel/ticket-enrichment.d.ts.map +1 -0
- package/dist/src/lib/services/alarm.service.d.ts +67 -3
- package/dist/src/lib/services/alarm.service.d.ts.map +1 -1
- package/dist/src/lib/services/channel.service.d.ts +42 -0
- package/dist/src/lib/services/channel.service.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/src/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ export * from "./lib/model/agent/AgentTrace";
|
|
|
18
18
|
export * from "./lib/model/agentnames/AgentNamesResponse";
|
|
19
19
|
export * from "./lib/model/agentnames/ViewAgentNamesResponse";
|
|
20
20
|
export * from "./lib/model/alarm/alarm-enrichment-filter";
|
|
21
|
+
export * from "./lib/model/alarm/alarm-enrichment-rule";
|
|
21
22
|
export * from "./lib/model/alarm/alarm-enrichment";
|
|
22
23
|
export * from "./lib/model/alarm/alarm-filter";
|
|
23
24
|
export * from "./lib/model/alarm/alarm-queue";
|
|
@@ -49,6 +50,7 @@ export * from "./lib/model/channel/TemplatesResponse";
|
|
|
49
50
|
export * from "./lib/model/channel/notify-channel-testing";
|
|
50
51
|
export * from "./lib/model/channel/notify-channel";
|
|
51
52
|
export * from "./lib/model/channel/notify-policy-template";
|
|
53
|
+
export * from "./lib/model/channel/ticket-enrichment";
|
|
52
54
|
export * from "./lib/model/config/ConnectorConfig";
|
|
53
55
|
export * from "./lib/model/config/DXDoConfiguration";
|
|
54
56
|
export * from "./lib/model/config/DXSaaSConfiguration";
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kCAAkC,CAAC;AACjD,cAAc,sCAAsC,CAAC;AACrD,cAAc,sCAAsC,CAAC;AACrD,cAAc,oCAAoC,CAAC;AACnD,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC;AAC3D,cAAc,uCAAuC,CAAC;AACtD,cAAc,qCAAqC,CAAC;AACpD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,oCAAoC,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,+CAA+C,CAAC;AAC9D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,oCAAoC,CAAC;AACnD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kCAAkC,CAAC;AACjD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8CAA8C,CAAC;AAC7D,cAAc,4CAA4C,CAAC;AAC3D,cAAc,8BAA8B,CAAC;AAC7C,cAAc,2CAA2C,CAAC;AAC1D,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qCAAqC,CAAC;AACpD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sCAAsC,CAAC;AACrD,cAAc,uBAAuB,CAAC;AACtC,cAAc,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mD,CAAC;AAClE,cAAc,iDAAiD,CAAC;AAChE,cAAc,iCAAiC,CAAC;AAChD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kDAAkD,CAAC;AACjE,cAAc,uDAAuD,CAAC;AACtE,cAAc,wDAAwD,CAAC;AACvE,cAAc,qDAAqD,CAAC;AACpE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAClE,cAAc,6DAA6D,CAAC;AAC5E,cAAc,mDAAmD,CAAC;AAClE,cAAc,gDAAgD,CAAC;AAC/D,cAAc,mDAAmD,CAAC;AAClE,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC"}
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
import type { PolicyFilterExpression } from '../channel/notify-policy-template';
|
|
3
|
+
/**
|
|
4
|
+
* Alarm enrichment rules: the priority-ordered rules of Settings → Alarm
|
|
5
|
+
* Enrichment Rules. Each rule matches alarms with an and/or filter tree and
|
|
6
|
+
* copies a TAS topology attribute (or a literal value) onto one of the
|
|
7
|
+
* alarm's `custom_N` fields.
|
|
8
|
+
*
|
|
9
|
+
* Store: `oi/v2/alarm/enrichment/rules` — `GET` lists, `PUT` saves one rule
|
|
10
|
+
* (no `rule_id` creates, an existing `rule_id` updates in place), `DELETE
|
|
11
|
+
* rules/{rule_id}` removes one, and `PUT rules/preview` runs the rule against
|
|
12
|
+
* recent alarms without persisting anything.
|
|
13
|
+
*
|
|
14
|
+
* Shapes observed in HARs of the demo and lab tenants
|
|
15
|
+
* (alarm-ticket-enrichment{,-2,-3}.har, 2026-09-08).
|
|
16
|
+
*
|
|
17
|
+
* @see {@link EnrichmentCustomFieldSchema} — the registry that binds an
|
|
18
|
+
* attribute name to its `custom_N` field and decides the TAS / CUSTOM arm.
|
|
19
|
+
*/
|
|
20
|
+
/**
|
|
21
|
+
* Conditions the enrichment filter editor offers. Eight string matchers, a
|
|
22
|
+
* subset of the platform filter model's conditions — enrichment filters have
|
|
23
|
+
* no numeric or change-detection operators.
|
|
24
|
+
*/
|
|
25
|
+
export declare const ENRICHMENT_FILTER_CONDITIONS: readonly ["equals", "not_equals", "contains", "not_contains", "starts_with", "not_starts_with", "ends_with", "not_ends_with"];
|
|
26
|
+
export type EnrichmentFilterCondition = (typeof ENRICHMENT_FILTER_CONDITIONS)[number];
|
|
27
|
+
/** The two enrichment arms: a TAS topology attribute, or a literal CUSTOM value. */
|
|
28
|
+
export declare const ENRICHMENT_SOURCES: readonly ["TAS", "CUSTOM"];
|
|
29
|
+
export type EnrichmentSource = (typeof ENRICHMENT_SOURCES)[number];
|
|
30
|
+
/** The preview windows the editor offers, in seconds. The query param is milliseconds. */
|
|
31
|
+
export declare const ENRICHMENT_PREVIEW_WINDOWS: {
|
|
32
|
+
readonly '1h': 3600;
|
|
33
|
+
readonly '4h': 14400;
|
|
34
|
+
readonly '8h': 28800;
|
|
35
|
+
readonly '24h': 86400;
|
|
36
|
+
readonly '3d': 259200;
|
|
37
|
+
readonly '1w': 604800;
|
|
38
|
+
};
|
|
39
|
+
export type EnrichmentPreviewWindow = keyof typeof ENRICHMENT_PREVIEW_WINDOWS;
|
|
40
|
+
export declare const EnrichmentMappingSchema: z.ZodObject<{
|
|
41
|
+
alarmField: z.ZodString;
|
|
42
|
+
enrichmentField: z.ZodString;
|
|
43
|
+
defaultValue: z.ZodString;
|
|
44
|
+
}, z.core.$loose>;
|
|
45
|
+
export type EnrichmentMapping = z.infer<typeof EnrichmentMappingSchema>;
|
|
46
|
+
export declare const EnrichmentSchema: z.ZodObject<{
|
|
47
|
+
type: z.ZodEnum<{
|
|
48
|
+
CUSTOM: "CUSTOM";
|
|
49
|
+
TAS: "TAS";
|
|
50
|
+
}>;
|
|
51
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
52
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
53
|
+
alarmField: z.ZodString;
|
|
54
|
+
enrichmentField: z.ZodString;
|
|
55
|
+
defaultValue: z.ZodString;
|
|
56
|
+
}, z.core.$loose>>;
|
|
57
|
+
}, z.core.$loose>;
|
|
58
|
+
export type Enrichment = z.infer<typeof EnrichmentSchema>;
|
|
59
|
+
export declare const EnrichmentRuleSchema: z.ZodObject<{
|
|
60
|
+
tenant_id: z.ZodString;
|
|
61
|
+
rule_id: z.ZodString;
|
|
62
|
+
rule_name: z.ZodString;
|
|
63
|
+
priority: z.ZodNumber;
|
|
64
|
+
rule_version: z.ZodNumber;
|
|
65
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
66
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
67
|
+
created_time: z.ZodOptional<z.ZodNumber>;
|
|
68
|
+
updated_time: z.ZodOptional<z.ZodNumber>;
|
|
69
|
+
enabled: z.ZodBoolean;
|
|
70
|
+
filter: z.ZodType<PolicyFilterExpression, unknown, z.core.$ZodTypeInternals<PolicyFilterExpression, unknown>>;
|
|
71
|
+
filterSearchFields: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
72
|
+
enrichments: z.ZodArray<z.ZodObject<{
|
|
73
|
+
type: z.ZodEnum<{
|
|
74
|
+
CUSTOM: "CUSTOM";
|
|
75
|
+
TAS: "TAS";
|
|
76
|
+
}>;
|
|
77
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
78
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
79
|
+
alarmField: z.ZodString;
|
|
80
|
+
enrichmentField: z.ZodString;
|
|
81
|
+
defaultValue: z.ZodString;
|
|
82
|
+
}, z.core.$loose>>;
|
|
83
|
+
}, z.core.$loose>>;
|
|
84
|
+
isComplexFilter: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, z.core.$loose>;
|
|
86
|
+
export type EnrichmentRule = z.infer<typeof EnrichmentRuleSchema>;
|
|
87
|
+
export declare const EnrichmentRulesResponseSchema: z.ZodArray<z.ZodObject<{
|
|
88
|
+
tenant_id: z.ZodString;
|
|
89
|
+
rule_id: z.ZodString;
|
|
90
|
+
rule_name: z.ZodString;
|
|
91
|
+
priority: z.ZodNumber;
|
|
92
|
+
rule_version: z.ZodNumber;
|
|
93
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
94
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
95
|
+
created_time: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
updated_time: z.ZodOptional<z.ZodNumber>;
|
|
97
|
+
enabled: z.ZodBoolean;
|
|
98
|
+
filter: z.ZodType<PolicyFilterExpression, unknown, z.core.$ZodTypeInternals<PolicyFilterExpression, unknown>>;
|
|
99
|
+
filterSearchFields: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
100
|
+
enrichments: z.ZodArray<z.ZodObject<{
|
|
101
|
+
type: z.ZodEnum<{
|
|
102
|
+
CUSTOM: "CUSTOM";
|
|
103
|
+
TAS: "TAS";
|
|
104
|
+
}>;
|
|
105
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
106
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
107
|
+
alarmField: z.ZodString;
|
|
108
|
+
enrichmentField: z.ZodString;
|
|
109
|
+
defaultValue: z.ZodString;
|
|
110
|
+
}, z.core.$loose>>;
|
|
111
|
+
}, z.core.$loose>>;
|
|
112
|
+
isComplexFilter: z.ZodOptional<z.ZodBoolean>;
|
|
113
|
+
}, z.core.$loose>>;
|
|
114
|
+
/**
|
|
115
|
+
* The body of `PUT oi/v2/alarm/enrichment/rules`. Omitting `rule_id` creates a
|
|
116
|
+
* rule and lets the server seed `priority` from the create time; sending one
|
|
117
|
+
* updates in place, and is also how a reorder writes a new `priority`.
|
|
118
|
+
*/
|
|
119
|
+
export declare const EnrichmentRuleWriteBodySchema: z.ZodObject<{
|
|
120
|
+
rule_id: z.ZodOptional<z.ZodString>;
|
|
121
|
+
rule_name: z.ZodString;
|
|
122
|
+
enabled: z.ZodBoolean;
|
|
123
|
+
filter: z.ZodType<PolicyFilterExpression, unknown, z.core.$ZodTypeInternals<PolicyFilterExpression, unknown>>;
|
|
124
|
+
isComplexFilter: z.ZodBoolean;
|
|
125
|
+
enrichments: z.ZodArray<z.ZodObject<{
|
|
126
|
+
type: z.ZodEnum<{
|
|
127
|
+
CUSTOM: "CUSTOM";
|
|
128
|
+
TAS: "TAS";
|
|
129
|
+
}>;
|
|
130
|
+
filename: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
131
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
132
|
+
alarmField: z.ZodString;
|
|
133
|
+
enrichmentField: z.ZodString;
|
|
134
|
+
defaultValue: z.ZodString;
|
|
135
|
+
}, z.core.$loose>>;
|
|
136
|
+
}, z.core.$loose>>;
|
|
137
|
+
priority: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
rule_version: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
tenant_id: z.ZodOptional<z.ZodString>;
|
|
140
|
+
created_by: z.ZodOptional<z.ZodString>;
|
|
141
|
+
updated_by: z.ZodOptional<z.ZodString>;
|
|
142
|
+
created_time: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
updated_time: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
filterSearchFields: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
145
|
+
}, z.core.$loose>;
|
|
146
|
+
export type EnrichmentRuleWriteBody = z.infer<typeof EnrichmentRuleWriteBodySchema>;
|
|
147
|
+
/**
|
|
148
|
+
* The response of `PUT oi/v2/alarm/enrichment/rules/preview`. A server-side dry
|
|
149
|
+
* run: it accepts a rule with no `rule_id` and persists nothing.
|
|
150
|
+
*/
|
|
151
|
+
export declare const EnrichmentPreviewResponseSchema: z.ZodObject<{
|
|
152
|
+
alarmCount: z.ZodUnion<readonly [z.ZodString, z.ZodNumber]>;
|
|
153
|
+
alarms: z.ZodArray<z.ZodObject<{}, z.core.$loose>>;
|
|
154
|
+
pageNumber: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
155
|
+
pageSize: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
156
|
+
aggregatedData: z.ZodOptional<z.ZodUnknown>;
|
|
157
|
+
itsmEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
}, z.core.$loose>;
|
|
159
|
+
export type EnrichmentPreviewResponse = z.infer<typeof EnrichmentPreviewResponseSchema>;
|
|
160
|
+
/**
|
|
161
|
+
* One entry of the custom-field registry
|
|
162
|
+
* (`oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
|
|
163
|
+
* This is what binds a `custom_N` slot to an attribute name and decides which
|
|
164
|
+
* arm a mapping lands in. The `PUT` replaces the whole list.
|
|
165
|
+
*/
|
|
166
|
+
export declare const EnrichmentCustomFieldSchema: z.ZodObject<{
|
|
167
|
+
field: z.ZodString;
|
|
168
|
+
fieldDescription: z.ZodString;
|
|
169
|
+
fieldType: z.ZodString;
|
|
170
|
+
fieldSource: z.ZodString;
|
|
171
|
+
}, z.core.$loose>;
|
|
172
|
+
export type EnrichmentCustomField = z.infer<typeof EnrichmentCustomFieldSchema>;
|
|
173
|
+
export declare const EnrichmentCustomFieldsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
174
|
+
field: z.ZodString;
|
|
175
|
+
fieldDescription: z.ZodString;
|
|
176
|
+
fieldType: z.ZodString;
|
|
177
|
+
fieldSource: z.ZodString;
|
|
178
|
+
}, z.core.$loose>>;
|
|
179
|
+
/** `custom_1` … `custom_N`; the only shape the registry and mappings accept. */
|
|
180
|
+
export declare const CUSTOM_FIELD_PATTERN: RegExp;
|
|
181
|
+
export interface EnrichmentMappingInput {
|
|
182
|
+
/** Attribute names to map, as they appear in the registry's `fieldDescription`. */
|
|
183
|
+
attributes: string[];
|
|
184
|
+
/** Per-attribute default value; missing means ''. */
|
|
185
|
+
defaults?: Record<string, string> | undefined;
|
|
186
|
+
/** Per-attribute `custom_N` override, for an attribute the registry does not carry. */
|
|
187
|
+
alarmFields?: Record<string, string> | undefined;
|
|
188
|
+
}
|
|
189
|
+
export interface ResolvedEnrichments {
|
|
190
|
+
enrichments: Enrichment[];
|
|
191
|
+
blockers: string[];
|
|
192
|
+
warnings: string[];
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Resolves attribute names into the two enrichment arms the way the editor
|
|
196
|
+
* does: look the name up as `fieldDescription` in the custom-field registry;
|
|
197
|
+
* found gives the `custom_N` slot and, when `fieldSource` is CUSTOM, the CUSTOM
|
|
198
|
+
* arm; anything else lands in TAS.
|
|
199
|
+
*
|
|
200
|
+
* @remarks Always returns both arms, an empty `mappings` where unused — the
|
|
201
|
+
* shape the UI sends.
|
|
202
|
+
*/
|
|
203
|
+
export declare function resolveEnrichmentMappings(input: EnrichmentMappingInput, registry: EnrichmentCustomField[]): ResolvedEnrichments;
|
|
204
|
+
export interface EnrichmentRuleCreateInput {
|
|
205
|
+
ruleName: string;
|
|
206
|
+
filter: PolicyFilterExpression;
|
|
207
|
+
enrichments: Enrichment[];
|
|
208
|
+
enabled?: boolean | undefined;
|
|
209
|
+
isComplexFilter?: boolean | undefined;
|
|
210
|
+
}
|
|
211
|
+
/** The create body: no `rule_id`, so the server assigns one and seeds `priority`. */
|
|
212
|
+
export declare function toEnrichmentRuleCreateBody(input: EnrichmentRuleCreateInput): EnrichmentRuleWriteBody;
|
|
213
|
+
export interface EnrichmentRuleUpdatePatch {
|
|
214
|
+
ruleName?: string | undefined;
|
|
215
|
+
filter?: PolicyFilterExpression | undefined;
|
|
216
|
+
enrichments?: Enrichment[] | undefined;
|
|
217
|
+
enabled?: boolean | undefined;
|
|
218
|
+
priority?: number | undefined;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Read-modify-write body for an existing rule: every server-owned field is
|
|
222
|
+
* echoed back, `rule_version` included, and only the patched fields change.
|
|
223
|
+
*
|
|
224
|
+
* @returns `changes` is the human before→after list; `[]` means nothing to save.
|
|
225
|
+
*/
|
|
226
|
+
export declare function buildEnrichmentRuleUpdateBody(existing: EnrichmentRule, patch: EnrichmentRuleUpdatePatch): {
|
|
227
|
+
body: EnrichmentRuleWriteBody;
|
|
228
|
+
changes: string[];
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* Evaluation order: ascending `priority`, the way the editor sorts. The list
|
|
232
|
+
* endpoint returns rules unsorted, so every consumer must sort for itself.
|
|
233
|
+
*/
|
|
234
|
+
export declare function sortRulesByPriority<T extends {
|
|
235
|
+
priority: number;
|
|
236
|
+
}>(rules: readonly T[]): T[];
|
|
237
|
+
export interface EnrichmentReorderTarget {
|
|
238
|
+
/** 1-based destination in the sorted list. */
|
|
239
|
+
position?: number | undefined;
|
|
240
|
+
/** Place the rule immediately before this rule id. */
|
|
241
|
+
before?: string | undefined;
|
|
242
|
+
/** Place the rule immediately after this rule id. */
|
|
243
|
+
after?: string | undefined;
|
|
244
|
+
/** Raw priority escape hatch; used verbatim. */
|
|
245
|
+
priority?: number | undefined;
|
|
246
|
+
}
|
|
247
|
+
export interface EnrichmentReorderPlan {
|
|
248
|
+
priority: number;
|
|
249
|
+
/** 1-based position today, and where the rule lands. */
|
|
250
|
+
fromPosition: number;
|
|
251
|
+
toPosition: number;
|
|
252
|
+
blockers: string[];
|
|
253
|
+
}
|
|
254
|
+
/**
|
|
255
|
+
* Works out the `priority` that moves `ruleId` to the requested destination:
|
|
256
|
+
* the midpoint of its new neighbours, one below the head, or one above the
|
|
257
|
+
* tail. Exactly one of `position` / `before` / `after` / `priority` must be set.
|
|
258
|
+
*
|
|
259
|
+
* @remarks A reorder writes only the moved rule — priorities of its neighbours
|
|
260
|
+
* are left alone, which is why they drift fractional over time.
|
|
261
|
+
*/
|
|
262
|
+
export declare function planEnrichmentReorder(rules: readonly EnrichmentRule[], ruleId: string, target: EnrichmentReorderTarget): EnrichmentReorderPlan;
|
|
263
|
+
//# sourceMappingURL=alarm-enrichment-rule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alarm-enrichment-rule.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/alarm/alarm-enrichment-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AAEhF;;;;;;;;;;;;;;;;GAgBG;AAEH;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,+HAS/B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,4BAA4B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEtF,oFAAoF;AACpF,eAAO,MAAM,kBAAkB,4BAA6B,CAAC;AAC7D,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE,0FAA0F;AAC1F,eAAO,MAAM,0BAA0B;;;;;;;CAO7B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,0BAA0B,CAAC;AAM9E,eAAO,MAAM,uBAAuB;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,gBAAgB;;;;;;;;;;;iBAQ3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAoB/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CA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AAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,wDAAwD;IACxD,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,cAAc,EAAE,EAChC,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,uBAAuB,GAC9B,qBAAqB,CAmFvB"}
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import { z } from 'zod/v4';
|
|
2
|
+
/**
|
|
3
|
+
* Ticket enrichment rules: the per-ITSM-channel maps of Settings → Ticket
|
|
4
|
+
* Enrichment Rules. Each rule sends alarm fields into service-desk fields
|
|
5
|
+
* when a ticket is opened (e.g. the alarm's `startTime` into ServiceNow's
|
|
6
|
+
* `opened_at`), or writes a literal.
|
|
7
|
+
*
|
|
8
|
+
* Store: `dxinotify/notify/v1/customMappings` — `GET /{orgId}` lists,
|
|
9
|
+
* `PUT` saves one rule (`id: 0` creates, an existing id updates in place),
|
|
10
|
+
* `DELETE /{orgId}/{id}` removes one. The list endpoint returns a bare `{}`
|
|
11
|
+
* on a tenant with no rules, not `{ customMappings: [] }`.
|
|
12
|
+
*
|
|
13
|
+
* Shapes observed in HARs of the demo and lab tenants
|
|
14
|
+
* (alarm-ticket-enrichment{,-2}.har, 2026-09-08), plus a live probe of the
|
|
15
|
+
* alarm-type vocabulary against the lab tenant.
|
|
16
|
+
*/
|
|
17
|
+
/** The three alarm kinds a rule can enrich tickets for. */
|
|
18
|
+
export declare const TICKET_ENRICHMENT_ALARM_TYPES: readonly ["all_alarms", "service_alarms", "situations"];
|
|
19
|
+
export type TicketEnrichmentAlarmType = (typeof TICKET_ENRICHMENT_ALARM_TYPES)[number];
|
|
20
|
+
/**
|
|
21
|
+
* The alarm-field catalog codes each alarm type maps to. An alarm field is
|
|
22
|
+
* only usable in a rule when its own `alarmType` array carries the code for
|
|
23
|
+
* the rule's type — the server answers 400 otherwise, with no explanation.
|
|
24
|
+
* (Probed on the lab tenant: `startTime` is ALARMS_ALL + SITUATIONS, so a
|
|
25
|
+
* `service_alarms` rule mapping it is rejected; `acknowledged`, which is
|
|
26
|
+
* ALARMS_ALL + ALARMS_SERVICE, is accepted.)
|
|
27
|
+
*/
|
|
28
|
+
export declare const TICKET_ENRICHMENT_FIELD_CODES: Record<TicketEnrichmentAlarmType, string>;
|
|
29
|
+
export declare const TicketEnrichmentMappingSchema: z.ZodObject<{
|
|
30
|
+
svcDeskField: z.ZodString;
|
|
31
|
+
alarmField: z.ZodObject<{
|
|
32
|
+
title: z.ZodString;
|
|
33
|
+
value: z.ZodString;
|
|
34
|
+
}, z.core.$loose>;
|
|
35
|
+
customization: z.ZodString;
|
|
36
|
+
}, z.core.$loose>;
|
|
37
|
+
export type TicketEnrichmentMapping = z.infer<typeof TicketEnrichmentMappingSchema>;
|
|
38
|
+
export declare const TicketEnrichmentRuleSchema: z.ZodObject<{
|
|
39
|
+
id: z.ZodNumber;
|
|
40
|
+
orgId: z.ZodString;
|
|
41
|
+
keyLevel: z.ZodNumber;
|
|
42
|
+
name: z.ZodString;
|
|
43
|
+
description: z.ZodOptional<z.ZodString>;
|
|
44
|
+
contentVersion: z.ZodNumber;
|
|
45
|
+
alarmType: z.ZodString;
|
|
46
|
+
author: z.ZodOptional<z.ZodString>;
|
|
47
|
+
svcDeskType: z.ZodString;
|
|
48
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
|
+
lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
50
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
51
|
+
svcDeskField: z.ZodString;
|
|
52
|
+
alarmField: z.ZodObject<{
|
|
53
|
+
title: z.ZodString;
|
|
54
|
+
value: z.ZodString;
|
|
55
|
+
}, z.core.$loose>;
|
|
56
|
+
customization: z.ZodString;
|
|
57
|
+
}, z.core.$loose>>;
|
|
58
|
+
linkedPolicies: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
59
|
+
channelId: z.ZodNumber;
|
|
60
|
+
cohortId: z.ZodOptional<z.ZodString>;
|
|
61
|
+
}, z.core.$loose>;
|
|
62
|
+
export type TicketEnrichmentRule = z.infer<typeof TicketEnrichmentRuleSchema>;
|
|
63
|
+
/** `GET dxinotify/notify/v1/customMappings/{orgId}`. A tenant with no rules returns a bare `{}`. */
|
|
64
|
+
export declare const TicketEnrichmentListResponseSchema: z.ZodObject<{
|
|
65
|
+
customMappings: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
66
|
+
id: z.ZodNumber;
|
|
67
|
+
orgId: z.ZodString;
|
|
68
|
+
keyLevel: z.ZodNumber;
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
description: z.ZodOptional<z.ZodString>;
|
|
71
|
+
contentVersion: z.ZodNumber;
|
|
72
|
+
alarmType: z.ZodString;
|
|
73
|
+
author: z.ZodOptional<z.ZodString>;
|
|
74
|
+
svcDeskType: z.ZodString;
|
|
75
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
76
|
+
lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
77
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
78
|
+
svcDeskField: z.ZodString;
|
|
79
|
+
alarmField: z.ZodObject<{
|
|
80
|
+
title: z.ZodString;
|
|
81
|
+
value: z.ZodString;
|
|
82
|
+
}, z.core.$loose>;
|
|
83
|
+
customization: z.ZodString;
|
|
84
|
+
}, z.core.$loose>>;
|
|
85
|
+
linkedPolicies: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
86
|
+
channelId: z.ZodNumber;
|
|
87
|
+
cohortId: z.ZodOptional<z.ZodString>;
|
|
88
|
+
}, z.core.$loose>>>;
|
|
89
|
+
}, z.core.$loose>;
|
|
90
|
+
export type TicketEnrichmentListResponse = z.infer<typeof TicketEnrichmentListResponseSchema>;
|
|
91
|
+
/** The body of `PUT dxinotify/notify/v1/customMappings`. `id: 0` creates. */
|
|
92
|
+
export declare const TicketEnrichmentWriteBodySchema: z.ZodObject<{
|
|
93
|
+
id: z.ZodNumber;
|
|
94
|
+
orgId: z.ZodString;
|
|
95
|
+
keyLevel: z.ZodNumber;
|
|
96
|
+
name: z.ZodString;
|
|
97
|
+
description: z.ZodString;
|
|
98
|
+
contentVersion: z.ZodNumber;
|
|
99
|
+
alarmType: z.ZodEnum<{
|
|
100
|
+
all_alarms: "all_alarms";
|
|
101
|
+
service_alarms: "service_alarms";
|
|
102
|
+
situations: "situations";
|
|
103
|
+
}>;
|
|
104
|
+
svcDeskType: z.ZodString;
|
|
105
|
+
created: z.ZodNullable<z.ZodString>;
|
|
106
|
+
linkedPolicies: z.ZodArray<z.ZodUnknown>;
|
|
107
|
+
channelId: z.ZodNumber;
|
|
108
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
109
|
+
svcDeskField: z.ZodString;
|
|
110
|
+
alarmField: z.ZodObject<{
|
|
111
|
+
title: z.ZodString;
|
|
112
|
+
value: z.ZodString;
|
|
113
|
+
}, z.core.$loose>;
|
|
114
|
+
customization: z.ZodString;
|
|
115
|
+
}, z.core.$loose>>;
|
|
116
|
+
}, z.core.$loose>;
|
|
117
|
+
export type TicketEnrichmentWriteBody = z.infer<typeof TicketEnrichmentWriteBodySchema>;
|
|
118
|
+
/** `PUT dxinotify/notify/v1/customMappings` — the persisted rule, including its new id on create. */
|
|
119
|
+
export declare const TicketEnrichmentWriteResponseSchema: z.ZodObject<{
|
|
120
|
+
returnValue: z.ZodOptional<z.ZodObject<{
|
|
121
|
+
message: z.ZodString;
|
|
122
|
+
}, z.core.$loose>>;
|
|
123
|
+
customMapping: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
id: z.ZodNumber;
|
|
125
|
+
orgId: z.ZodString;
|
|
126
|
+
keyLevel: z.ZodNumber;
|
|
127
|
+
name: z.ZodString;
|
|
128
|
+
description: z.ZodOptional<z.ZodString>;
|
|
129
|
+
contentVersion: z.ZodNumber;
|
|
130
|
+
alarmType: z.ZodString;
|
|
131
|
+
author: z.ZodOptional<z.ZodString>;
|
|
132
|
+
svcDeskType: z.ZodString;
|
|
133
|
+
created: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
134
|
+
lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
135
|
+
mappings: z.ZodArray<z.ZodObject<{
|
|
136
|
+
svcDeskField: z.ZodString;
|
|
137
|
+
alarmField: z.ZodObject<{
|
|
138
|
+
title: z.ZodString;
|
|
139
|
+
value: z.ZodString;
|
|
140
|
+
}, z.core.$loose>;
|
|
141
|
+
customization: z.ZodString;
|
|
142
|
+
}, z.core.$loose>>;
|
|
143
|
+
linkedPolicies: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
144
|
+
channelId: z.ZodNumber;
|
|
145
|
+
cohortId: z.ZodOptional<z.ZodString>;
|
|
146
|
+
}, z.core.$loose>>;
|
|
147
|
+
}, z.core.$loose>;
|
|
148
|
+
export type TicketEnrichmentWriteResponse = z.infer<typeof TicketEnrichmentWriteResponseSchema>;
|
|
149
|
+
/**
|
|
150
|
+
* One entry of `GET oi/v2/tenantmgmtservice/properties?channelId=<id>`: the
|
|
151
|
+
* service-desk field catalog of one ITSM channel. `mappedTo` is the value a
|
|
152
|
+
* mapping's `svcDeskField` takes.
|
|
153
|
+
*/
|
|
154
|
+
export declare const ServiceDeskFieldSchema: z.ZodObject<{
|
|
155
|
+
name: z.ZodString;
|
|
156
|
+
mappedTo: z.ZodString;
|
|
157
|
+
description: z.ZodOptional<z.ZodString>;
|
|
158
|
+
dataType: z.ZodOptional<z.ZodString>;
|
|
159
|
+
default: z.ZodOptional<z.ZodString>;
|
|
160
|
+
custom: z.ZodOptional<z.ZodBoolean>;
|
|
161
|
+
possibleValues: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
162
|
+
}, z.core.$loose>;
|
|
163
|
+
export type ServiceDeskField = z.infer<typeof ServiceDeskFieldSchema>;
|
|
164
|
+
export declare const ServiceDeskFieldsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
mappedTo: z.ZodString;
|
|
167
|
+
description: z.ZodOptional<z.ZodString>;
|
|
168
|
+
dataType: z.ZodOptional<z.ZodString>;
|
|
169
|
+
default: z.ZodOptional<z.ZodString>;
|
|
170
|
+
custom: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
possibleValues: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
172
|
+
}, z.core.$loose>>;
|
|
173
|
+
/**
|
|
174
|
+
* One entry of
|
|
175
|
+
* `GET oi/v2/api/alarm/messageTemplate/fields?usedInTicketEnrichment=true`:
|
|
176
|
+
* the alarm fields a ticket enrichment rule can read.
|
|
177
|
+
*/
|
|
178
|
+
export declare const TicketEnrichmentAlarmFieldSchema: z.ZodObject<{
|
|
179
|
+
alarmFieldName: z.ZodString;
|
|
180
|
+
messageTemplateText: z.ZodString;
|
|
181
|
+
alarmType: z.ZodArray<z.ZodString>;
|
|
182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
183
|
+
}, z.core.$loose>;
|
|
184
|
+
export type TicketEnrichmentAlarmField = z.infer<typeof TicketEnrichmentAlarmFieldSchema>;
|
|
185
|
+
export declare const TicketEnrichmentAlarmFieldsResponseSchema: z.ZodArray<z.ZodObject<{
|
|
186
|
+
alarmFieldName: z.ZodString;
|
|
187
|
+
messageTemplateText: z.ZodString;
|
|
188
|
+
alarmType: z.ZodArray<z.ZodString>;
|
|
189
|
+
description: z.ZodOptional<z.ZodString>;
|
|
190
|
+
}, z.core.$loose>>;
|
|
191
|
+
export interface TicketEnrichmentCreateInput {
|
|
192
|
+
name: string;
|
|
193
|
+
channelId: number;
|
|
194
|
+
svcDeskType: string;
|
|
195
|
+
mappings: TicketEnrichmentMapping[];
|
|
196
|
+
alarmType?: TicketEnrichmentAlarmType | undefined;
|
|
197
|
+
description?: string | undefined;
|
|
198
|
+
}
|
|
199
|
+
/** The create body: `id: 0`, `created: null`, `contentVersion: 1`. */
|
|
200
|
+
export declare function toTicketEnrichmentWriteBody(input: TicketEnrichmentCreateInput): TicketEnrichmentWriteBody;
|
|
201
|
+
//# sourceMappingURL=ticket-enrichment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ticket-enrichment.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/channel/ticket-enrichment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,QAAQ,CAAC;AAE3B;;;;;;;;;;;;;;GAcG;AAEH,2DAA2D;AAC3D,eAAO,MAAM,6BAA6B,yDAA0D,CAAC;AACrG,MAAM,MAAM,yBAAyB,GAAG,CAAC,OAAO,6BAA6B,CAAC,CAAC,MAAM,CAAC,CAAC;AAEvF;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,yBAAyB,EAAE,MAAM,CAInF,CAAC;AAMF,eAAO,MAAM,6BAA6B;;;;;;;iBAYxC,CAAC;AACH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;iBAgBrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,oGAAoG;AACpG,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;iBAE7C,CAAC;AACH,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAE9F,6EAA6E;AAC7E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;iBAgB1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,qGAAqG;AACrG,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAM9C,CAAC;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAEhG;;;;GAIG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;iBAQjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACtE,eAAO,MAAM,+BAA+B;;;;;;;;kBAAkC,CAAC;AAE/E;;;;GAIG;AACH,eAAO,MAAM,gCAAgC;;;;;iBAO3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC;AAC1F,eAAO,MAAM,yCAAyC;;;;;kBAA4C,CAAC;AAMnG,MAAM,WAAW,2BAA2B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IACpC,SAAS,CAAC,EAAE,yBAAyB,GAAG,SAAS,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAClC;AAED,sEAAsE;AACtE,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,2BAA2B,GAAG,yBAAyB,CAezG"}
|
|
@@ -2,8 +2,8 @@ import { DxSaasService } from './dx-saas.service';
|
|
|
2
2
|
import { OIAlarm } from '../model/oi/alarms';
|
|
3
3
|
import { DateTime } from 'luxon';
|
|
4
4
|
import { Logging } from '@dx-do/util';
|
|
5
|
-
import { AlarmEnrichment } from '../model/alarm/alarm-enrichment';
|
|
6
5
|
import type { AlarmFilterCategory, AlarmFilterWriteBody, AlarmFilterWriteResponse, AlarmViewCategory } from '../model/alarm/alarm-filter';
|
|
6
|
+
import type { EnrichmentCustomField, EnrichmentPreviewResponse, EnrichmentRule, EnrichmentRuleWriteBody } from '../model/alarm/alarm-enrichment-rule';
|
|
7
7
|
import type { AlarmQueueDeleteResponse, AlarmQueueDetail, AlarmQueueField, AlarmQueueListResponse, AlarmQueuePreferences, AlarmQueuePreferencesResponse, AlarmQueueWriteBody, AlarmQueueWriteResponse, TenantRole } from '../model/alarm/alarm-queue';
|
|
8
8
|
import { PlatformFilters } from '../model/filter/platform-filter';
|
|
9
9
|
import { Situations } from '../model/situations/Situations';
|
|
@@ -38,8 +38,72 @@ export declare class AlarmService {
|
|
|
38
38
|
getAlarmLifeCycle(alarmId: string): Promise<OIAlarm.AlarmLifecycleResponseBody>;
|
|
39
39
|
/** Returns all alarms within a time range, with optional type/closed/filter params. */
|
|
40
40
|
getAlarms(startTime: DateTime, endTime: DateTime, includedAlarmTypes?: string[], includeClosed?: boolean, pageSize?: number, alarmFilter?: PlatformFilters.PlatformFilter): Promise<Map<string, OIAlarm.Alarm>>;
|
|
41
|
-
/**
|
|
42
|
-
|
|
41
|
+
/**
|
|
42
|
+
* Lists every alarm enrichment rule of the tenant
|
|
43
|
+
* (`GET oi/v2/alarm/enrichment/rules`).
|
|
44
|
+
*
|
|
45
|
+
* @remarks The server returns the rules **unsorted**. Evaluation order is
|
|
46
|
+
* ascending `priority` — pass the result through `sortRulesByPriority`.
|
|
47
|
+
* Response-validated, not thrown.
|
|
48
|
+
*/
|
|
49
|
+
getEnrichmentRules(): Promise<EnrichmentRule[]>;
|
|
50
|
+
/**
|
|
51
|
+
* Saves one alarm enrichment rule (`PUT oi/v2/alarm/enrichment/rules`).
|
|
52
|
+
* A body without `rule_id` creates and lets the server seed `priority`;
|
|
53
|
+
* a body with one updates in place, which is also how a reorder writes a
|
|
54
|
+
* new `priority`.
|
|
55
|
+
*
|
|
56
|
+
* @remarks Response-validated, not thrown.
|
|
57
|
+
* @throws ZodError on a malformed body.
|
|
58
|
+
*/
|
|
59
|
+
saveEnrichmentRule(body: EnrichmentRuleWriteBody): Promise<EnrichmentRule>;
|
|
60
|
+
/** Permanently deletes an alarm enrichment rule (`DELETE oi/v2/alarm/enrichment/rules/{ruleId}`). */
|
|
61
|
+
deleteEnrichmentRule(ruleId: string): Promise<unknown>;
|
|
62
|
+
/**
|
|
63
|
+
* Runs a rule against recent alarms without persisting it
|
|
64
|
+
* (`PUT oi/v2/alarm/enrichment/rules/preview`) — the server-side dry run
|
|
65
|
+
* behind `alarm create-enrichment-rule`.
|
|
66
|
+
*
|
|
67
|
+
* @param body a full or partial rule; `rule_id` may be absent.
|
|
68
|
+
* @param options `size` caps the returned alarms, `timeDurationInMillis`
|
|
69
|
+
* is the lookback window (86400000 = 24 h in the UI's default).
|
|
70
|
+
* @remarks Response-validated, not thrown.
|
|
71
|
+
* @throws ZodError on a malformed body.
|
|
72
|
+
*/
|
|
73
|
+
previewEnrichmentRule(body: EnrichmentRuleWriteBody, options?: {
|
|
74
|
+
size?: number;
|
|
75
|
+
timeDurationInMillis?: number;
|
|
76
|
+
}): Promise<EnrichmentPreviewResponse>;
|
|
77
|
+
/**
|
|
78
|
+
* The field catalog the enrichment filter editor offers
|
|
79
|
+
* (`GET oi/v2/alarm/enrichment/fields`) — same shape as the queue and
|
|
80
|
+
* filter catalogs, so `annotateAtoms` works against it unchanged.
|
|
81
|
+
*
|
|
82
|
+
* @remarks Response-validated, not thrown.
|
|
83
|
+
*/
|
|
84
|
+
listEnrichmentFilterFields(): Promise<AlarmQueueField[]>;
|
|
85
|
+
/** The topology vertex types enrichment can read attributes from (`GET oi/v2/alarm/enrichment/vertexTypes`). */
|
|
86
|
+
listEnrichmentVertexTypes(): Promise<string[]>;
|
|
87
|
+
/** The attribute names of one vertex type (`GET oi/v2/alarm/enrichment/attributesByVertexType`). */
|
|
88
|
+
listEnrichmentVertexAttributes(vertexType: string): Promise<string[]>;
|
|
89
|
+
/**
|
|
90
|
+
* The custom-field registry that binds each `custom_N` slot to an attribute
|
|
91
|
+
* name and its TAS / CUSTOM source
|
|
92
|
+
* (`GET oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
|
|
93
|
+
*
|
|
94
|
+
* @remarks Response-validated, not thrown.
|
|
95
|
+
*/
|
|
96
|
+
listEnrichmentCustomFields(): Promise<EnrichmentCustomField[]>;
|
|
97
|
+
/**
|
|
98
|
+
* Replaces the whole custom-field registry
|
|
99
|
+
* (`PUT oi/v3/api/notifications/configAttributes?configKey=custom.field.description`).
|
|
100
|
+
*
|
|
101
|
+
* @remarks The PUT is a **whole-list replace**, not a merge — read the
|
|
102
|
+
* current list, edit it, and send all of it back, or entries are lost.
|
|
103
|
+
* Response-validated, not thrown.
|
|
104
|
+
* @throws ZodError on a malformed list.
|
|
105
|
+
*/
|
|
106
|
+
saveEnrichmentCustomFields(fields: EnrichmentCustomField[]): Promise<EnrichmentCustomField[]>;
|
|
43
107
|
/**
|
|
44
108
|
* Lists the alarm queues visible to the caller
|
|
45
109
|
* (`GET oi/v2/api/alarmfilters/_search?sortBy=filterName`).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alarm.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/alarm.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"alarm.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/alarm.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAGjC,OAAO,EAAE,OAAO,EAAE,MAA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