@dx-do/client 6.2.3 → 6.3.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.
@@ -110,7 +110,10 @@ export * from "./lib/model/o2-universe/O2Universe";
110
110
  export * from "./lib/model/oi/alarms";
111
111
  export * from "./lib/model/oi/entity";
112
112
  export * from "./lib/model/oi/services.create";
113
+ export * from "./lib/model/oi/services.export";
114
+ export * from "./lib/model/oi/services.retrieve";
113
115
  export * from "./lib/model/oi/services.sample";
116
+ export * from "./lib/model/oi/services.transform";
114
117
  export * from "./lib/model/oi/services";
115
118
  export * from "./lib/model/oi/users";
116
119
  export * from "./lib/model/postman/Postman";
@@ -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,+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,cAA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cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC"}
@@ -36,9 +36,9 @@ export declare namespace CreateServices {
36
36
  maintenance: boolean;
37
37
  situationsIncludeChildServices: boolean;
38
38
  serviceContent: ServiceContent[];
39
- root_service: null;
39
+ root_service: string[] | null;
40
40
  tags: string[];
41
- location: '';
41
+ location: string;
42
42
  description: string;
43
43
  customProperties: ServiceCustomProperty[];
44
44
  customMetrics: ServiceCustomMetric[];
@@ -1 +1 @@
1
- {"version":3,"file":"services.create.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.create.ts"],"names":[],"mappings":"AAAA,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,mBAAmB;QAClC,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;KACZ;IAED,UAAiB,aAAa;QAC5B,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE,MAAM,CAAC;QACnB,aAAa,EAAE,MAAM,CAAC;QACtB,EAAE,EAAE,MAAM,CAAC;QACX,SAAS,EAAE,MAAM,CAAC;KACnB;IAED,UAAiB,qBAAqB;QACpC,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACf;IAED,KAAY,2BAA2B,GAAG,IAAI,GAAG,SAAS,CAAC;IAE3D,UAAiB,mBAAmB;QAClC,aAAa,EAAE,MAAM,CAAC;QACtB,cAAc,EAAE,MAAM,CAAC;QACvB,QAAQ,EAAE,2BAA2B,CAAC;KACvC;IAED,UAAiB,qBAAqB;QACpC,kBAAkB,EAAE,OAAO,CAAC;KAC7B;IAED,UAAiB,cAAc;QAC7B,KAAK,EAAE,mBAAmB,EAAE,CAAC;QAC7B,OAAO,EAAE,qBAAqB,CAAC;KAChC;IAED,UAAiB,uBAAuB;QACtC,IAAI,EAAE,WAAW,CAAC;QAClB,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,QAAQ,CAAC;QAChB,WAAW,EAAE,OAAO,CAAC;QACrB,8BAA8B,EAAE,OAAO,CAAC;QACxC,cAAc,EAAE,cAAc,EAAE,CAAC;QACjC,YAAY,EAAE,IAAI,CAAC;QACnB,IAAI,EAAE,MAAM,EAAE,CAAC;QACf,QAAQ,EAAE,EAAE,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,gBAAgB,EAAE,qBAAqB,EAAE,CAAC;QAC1C,aAAa,EAAE,mBAAmB,EAAE,CAAC;QACrC,OAAO,EAAE,aAAa,EAAE,CAAC;KAC1B;IAED,UAAiB,aAAa;QAC5B,UAAU,EAAE,uBAAuB,CAAC;QACpC,UAAU,CAAC,EAAE,MAAM,CAAC;KACrB;IAED,UAAiB,qBAAqB;QACpC,aAAa,EAAE,MAAM,CAAC;QACtB,WAAW,EAAE,MAAM,CAAC;QACpB,QAAQ,EAAE,aAAa,CAAC;KACzB;IAED,UAAiB,WAAW;QAC1B,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,UAAU,EAAE,qBAAqB,CAAC;KACnC;IAED,UAAiB,iBAAiB;QAChC,QAAQ,EAAE,aAAa,EAAE,CAAC;QAC1B,KAAK,EAAE,WAAW,EAAE,CAAC;KACtB;IAED,UAAiB,qBAAqB;QACpC,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF"}
1
+ {"version":3,"file":"services.create.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.create.ts"],"names":[],"mappings":"AAAA,yBAAiB,cAAc,CAAC;IAC9B,UAAiB,mBAAmB;QAClC,WAAW,EAAE,MAAM,CAAC;QACpB,aAAa,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,EAAE,EAAE,MAAM,CAAC;KACZ;IAED,UAAiB,aAAa;QAC5B,IAAI,EAAE,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C;KACzB;IAED,UAAiB,WAAW;QAC1B,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,UAAU,EAAE,qBAAqB,CAAC;KACnC;IAED,UAAiB,iBAAiB;QAChC,QAAQ,EAAE,aAAa,EAAE,CAAC;QAC1B,KAAK,EAAE,WAAW,EAAE,CAAC;KACtB;IAED,UAAiB,qBAAqB;QACpC,OAAO,EAAE,MAAM,EAAE,CAAC;QAClB,MAAM,EAAE,MAAM,CAAC;KAChB;CACF"}
@@ -0,0 +1,27 @@
1
+ import { CreateServices } from './services.create';
2
+ /**
3
+ * The `service export` / `service export-hierarchy` file format and the
4
+ * `service import` boundary validator.
5
+ *
6
+ * The envelope wraps a re-postable store body ({@link CreateServices.CreateServiceBody})
7
+ * with provenance metadata. `import` accepts either the envelope or a bare body.
8
+ */
9
+ export declare namespace ServiceExport {
10
+ const SCHEMA_VERSION: 1;
11
+ interface ServiceExportEnvelope {
12
+ schemaVersion: 1;
13
+ kind: 'service' | 'service-hierarchy';
14
+ sourceTenant?: string;
15
+ exportedAt: string;
16
+ body: CreateServices.CreateServiceBody;
17
+ }
18
+ /** Wrap a store body in an export envelope. */
19
+ function envelope(kind: ServiceExportEnvelope['kind'], body: CreateServices.CreateServiceBody, sourceTenant: string | undefined, exportedAt: string): ServiceExportEnvelope;
20
+ /**
21
+ * Validate an import file (already JSON-parsed) and return the store body.
22
+ * Accepts a full export envelope or a bare `{ vertices, edges }` body.
23
+ * @throws Error when the input is neither shape.
24
+ */
25
+ function parseImport(raw: unknown): CreateServices.CreateServiceBody;
26
+ }
27
+ //# sourceMappingURL=services.export.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.export.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.export.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;GAMG;AACH,yBAAiB,aAAa,CAAC;IACtB,MAAM,cAAc,EAAG,CAAU,CAAC;IAEzC,UAAiB,qBAAqB;QACpC,aAAa,EAAE,CAAC,CAAC;QACjB,IAAI,EAAE,SAAS,GAAG,mBAAmB,CAAC;QACtC,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,IAAI,EAAE,cAAc,CAAC,iBAAiB,CAAC;KACxC;IAwBD,+CAA+C;IAC/C,SAAgB,QAAQ,CACtB,IAAI,EAAE,qBAAqB,CAAC,MAAM,CAAC,EACnC,IAAI,EAAE,cAAc,CAAC,iBAAiB,EACtC,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,UAAU,EAAE,MAAM,GACjB,qBAAqB,CAEvB;IAED;;;;OAIG;IACH,SAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,cAAc,CAAC,iBAAiB,CAa1E;CACF"}
@@ -0,0 +1,85 @@
1
+ import { ServiceOverviewAttributes } from '../service/service-overview';
2
+ /**
3
+ * Response shapes for the OI Service read endpoints:
4
+ * - Retrieve a Service: `GET oi/v2/sa/services/{name}`
5
+ * - Retrieve Service Hierarchy: `POST oi/v2/sa/service/details/hierarchy`
6
+ *
7
+ * Both return the same envelope (vertices + edges + paging metadata); the
8
+ * hierarchy endpoint populates `edges` with the parent→child associations.
9
+ */
10
+ export declare namespace RetrieveServices {
11
+ /** Edge attributes carried on a hierarchy association (parent→child). */
12
+ interface RetrievedServiceEdgeAttributes {
13
+ health_weight?: number;
14
+ risk_weight?: number;
15
+ semantic?: string;
16
+ }
17
+ /** A parent→child association edge between two service vertices. */
18
+ interface RetrievedServiceEdge {
19
+ sourceExternalId: string;
20
+ targetExternalId: string;
21
+ attributes?: RetrievedServiceEdgeAttributes;
22
+ }
23
+ /**
24
+ * A service vertex as returned by the read endpoints. Carries the full
25
+ * `saService` attribute set plus server-assigned bookkeeping fields
26
+ * (`id`, timestamps) that must be stripped before re-posting to the store API.
27
+ */
28
+ interface RetrievedServiceVertex {
29
+ externalId: string;
30
+ attributes: ServiceOverviewAttributes;
31
+ id?: number;
32
+ startTime?: number;
33
+ endTime?: number;
34
+ associated_graph?: {
35
+ vertices: unknown[];
36
+ edges: unknown[];
37
+ };
38
+ }
39
+ /** The Retrieve-a-Service envelope (`GET oi/v2/sa/services/{name}`). */
40
+ interface RetrieveServiceResponse {
41
+ vertices: RetrievedServiceVertex[];
42
+ edges: RetrievedServiceEdge[];
43
+ version?: string;
44
+ nextOffset?: number;
45
+ totalVertices?: number;
46
+ totalEdges?: number;
47
+ }
48
+ /**
49
+ * A vertex as returned by the topology graph endpoint (`oi/v2/sa/saTopologyGraph`).
50
+ *
51
+ * @remarks The attribute set here is a SUBSET of {@link RetrievedServiceVertex}
52
+ * — it lacks `tags`, `customProperties`, `customMetrics`, `metrics`. Use
53
+ * {@link RetrieveServiceResponse} (per-vertex `getService`) when faithful
54
+ * re-save attributes are required; use this only for graph structure.
55
+ */
56
+ interface ServiceTopologyVertex {
57
+ externalId: string;
58
+ attributes: {
59
+ name: string;
60
+ type: string;
61
+ state?: string;
62
+ serviceContent?: unknown[];
63
+ root_service?: string[];
64
+ description?: string;
65
+ maintenance?: boolean;
66
+ [key: string]: unknown;
67
+ };
68
+ }
69
+ /** A topology edge carrying the association weights + semantic. */
70
+ interface ServiceTopologyEdge {
71
+ sourceExternalId: string;
72
+ targetExternalId: string;
73
+ attributes?: RetrievedServiceEdgeAttributes;
74
+ }
75
+ /**
76
+ * The full reachable subtree for a service, returned by `saTopologyGraph`.
77
+ * Vertices are attribute-lossy (see {@link ServiceTopologyVertex}); edges
78
+ * carry weights + semantic and reference vertices by `SA:<cohort>:<uuid>`.
79
+ */
80
+ interface ServiceTopologyGraph {
81
+ vertices: ServiceTopologyVertex[];
82
+ edges: ServiceTopologyEdge[];
83
+ }
84
+ }
85
+ //# sourceMappingURL=services.retrieve.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.retrieve.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.ret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3B,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;YACxB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,WAAW,CAAC,EAAE,OAAO,CAAC;YACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;SACxB,CAAC;KACH;IAED,mEAAmE;IACnE,UAAiB,mBAAmB;QAClC,gBAAgB,EAAE,MAAM,CAAC;QACzB,gBAAgB,EAAE,MAAM,CAAC;QACzB,UAAU,CAAC,EAAE,8BAA8B,CAAC;KAC7C;IAED;;;;OAIG;IACH,UAAiB,oBAAoB;QACnC,QAAQ,EAAE,qBAAqB,EAAE,CAAC;QAClC,KAAK,EAAE,mBAAmB,EAAE,CAAC;KAC9B;CACF"}
@@ -0,0 +1,66 @@
1
+ import { CreateServices } from './services.create';
2
+ import { RetrieveServices } from './services.retrieve';
3
+ /**
4
+ * Pure (HTTP-free) transforms between the Service read shapes and the store
5
+ * (`/oi/v2/sa/save`) body. Kept separate from {@link ServiceService} so the
6
+ * edge/weight logic — the part with real correctness risk — is unit-testable.
7
+ *
8
+ * Empirical constraints these helpers encode (see plan Phase 0):
9
+ * - A parent's direct-child health/risk weights must each total ≤ 1.0 (server rejects otherwise).
10
+ * - `replace=true` makes each saved vertex's outgoing-edge set authoritative, so a
11
+ * faithful re-save must carry the whole subtree's vertices + edges.
12
+ */
13
+ export declare namespace ServiceTransform {
14
+ type ServiceVertex = CreateServices.ServiceVertex;
15
+ type ServiceEdge = CreateServices.ServiceEdge;
16
+ type CreateServiceBody = CreateServices.CreateServiceBody;
17
+ /**
18
+ * Convert a retrieved (read) service vertex into a re-postable store vertex.
19
+ *
20
+ * @remarks externalId is keyed by the service **name**, not the server
21
+ * `SA:<uuid>` id. The store API treats `externalId` as a payload-local handle
22
+ * and resolves/creates services by `attributes.name`; keying edges by `SA:uuid`
23
+ * makes the server silently drop them (so a `replace` save wipes the existing
24
+ * edges and re-adds nothing). Names are tenant-unique, so this is unambiguous
25
+ * and also makes exports portable across tenants.
26
+ */
27
+ export function retrievedToServiceVertex(v: RetrieveServices.RetrievedServiceVertex): ServiceVertex;
28
+ /**
29
+ * Build NAME-keyed store edges from a topology graph, preserving weights +
30
+ * semantic. Endpoints are mapped from `SA:<uuid>` to service name via the
31
+ * graph's vertices; edges whose endpoints aren't in `topo.vertices` are
32
+ * dropped — this is exactly the incoming edge(s) from the root's parent, which
33
+ * `saTopologyGraph` returns without the parent vertex (and which must not be
34
+ * re-posted: the parent isn't re-saved, so its edge survives anyway).
35
+ */
36
+ export function edgesFromTopology(topo: RetrieveServices.ServiceTopologyGraph): ServiceEdge[];
37
+ /** Merge two store bodies, de-duplicating vertices by externalId and edges by endpoints. */
38
+ export function mergeBodies(a: CreateServiceBody, b: CreateServiceBody): CreateServiceBody;
39
+ /** Insert or update the parent→child edge with the given weights. */
40
+ export function upsertEdge(edges: ServiceEdge[], source: string, target: string, healthWeight: number, riskWeight: number): ServiceEdge[];
41
+ /** Remove the parent→child edge. */
42
+ export function removeEdge(edges: ServiceEdge[], source: string, target: string): ServiceEdge[];
43
+ /** Edges whose source is the given parent (its direct-child associations). */
44
+ export function childEdges(edges: ServiceEdge[], parent: string): ServiceEdge[];
45
+ /**
46
+ * Keep only edges whose BOTH endpoints are in the given vertex-id set.
47
+ *
48
+ * `saTopologyGraph(root)` returns the root's subtree plus the *incoming* edge(s)
49
+ * from the root's parent(s) — but not the parent vertices. Re-posting such a
50
+ * dangling edge is rejected ("vertex referenced by edge is not present in the
51
+ * input graph"). Dropping it is also correct: the parent is not re-saved, so its
52
+ * edge to the root is preserved server-side (replace is destructive only per
53
+ * saved vertex).
54
+ */
55
+ export function filterEdgesToVertices(edges: ServiceEdge[], vertexIds: Set<string>): ServiceEdge[];
56
+ /**
57
+ * Evenly distribute a parent's direct-child weights so each total is ≤ 1.0.
58
+ * Uses floored thirds (e.g. 3 children → 0.333 each, sum 0.999) to avoid
59
+ * float drift pushing the total over 100%.
60
+ */
61
+ export function rebalanceChildren(edges: ServiceEdge[], parent: string): ServiceEdge[];
62
+ /** Throw if a parent's direct-child weights exceed 100% (the server's hard limit). */
63
+ export function assertWeightsWithinLimit(edges: ServiceEdge[], parent: string): void;
64
+ export {};
65
+ }
66
+ //# sourceMappingURL=services.transform.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"services.transform.d.ts","sourceRoot":"","sources":["../../../../../src/lib/model/oi/services.transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;;;;;;GASG;AACH,yBAAiB,gBAAgB,CAAC;IAChC,KAAK,aAAa,GAAG,cAAc,CAAC,aAAa,CAAC;IAClD,KAAK,WAAW,GAAG,cAAc,CAAC,WAAW,CAAC;IAC9C,KAAK,iBAAiB,GAAG,cAAc,CAAC,iBAAiB,CAAC;IAE1D;;;;;;;;;OASG;IACH,MAAM,UAAU,wBAAwB,CACtC,CAAC,EAAE,gBAAgB,CAAC,sBAAsB,GACzC,aAAa,CAqBf;IAED;;;;;;;OAOG;IACH,MAAM,UAAU,iBAAiB,CAC/B,IAAI,EAAE,gBAAgB,CAAC,oBAAoB,GAC1C,WAAW,EAAE,CAuBf;IAED,4FAA4F;IAC5F,MAAM,UAAU,WAAW,CACzB,CAAC,EAAE,iBAAiB,EACpB,CAAC,EAAE,iBAAiB,GACnB,iBAAiB,CAoBnB;IAED,qEAAqE;IACrE,MAAM,UAAU,UAAU,CACxB,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,EACd,YAAY,EAAE,MAAM,EACpB,UAAU,EAAE,MAAM,GACjB,WAAW,EAAE,CAcf;IAED,oCAAoC;IACpC,MAAM,UAAU,UAAU,CACxB,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,MAAM,GACb,WAAW,EAAE,CAIf;IAED,8EAA8E;IAC9E,MAAM,UAAU,UAAU,CAAC,KAAK,EAAE,WAAW,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,WAAW,EAAE,CAE9E;IAED;;;;;;;;;OASG;IACH,MAAM,UAAU,qBAAqB,CACnC,KAAK,EAAE,WAAW,EAAE,EACpB,SAAS,EAAE,GAAG,CAAC,MAAM,CAAC,GACrB,WAAW,EAAE,CAKf;IAED;;;;OAIG;IACH,MAAM,UAAU,iBAAiB,CAC/B,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,MAAM,GACb,WAAW,EAAE,CAgBf;IAED,sFAAsF;IACtF,MAAM,UAAU,wBAAwB,CACtC,KAAK,EAAE,WAAW,EAAE,EACpB,MAAM,EAAE,MAAM,GACb,IAAI,CAiBN;;CACF"}
@@ -5,6 +5,7 @@ import { CreateServices } from '../model/oi/services.create';
5
5
  import CreateSimpleServiceBody = CreateServices.CreateServiceBody;
6
6
  import ServiceVertex = CreateServices.ServiceVertex;
7
7
  import ServiceCustomProperty = CreateServices.ServiceCustomProperty;
8
+ import CreateServiceResponse = CreateServices.CreateServiceResponse;
8
9
  import ServiceContentQueryOperator = CreateServices.ServiceContentQueryOperator;
9
10
  import ServiceContent = CreateServices.ServiceContent;
10
11
  import { Logging } from '@dx-do/util';
@@ -15,6 +16,9 @@ import { SituationSummary } from '../model/situations/situation-summary';
15
16
  import TimeZoneIANA = SituationSummary.TimeZoneIANA;
16
17
  import { ServiceSLIs } from '../model/service/slis';
17
18
  import { ServiceSearch } from '../model/service/service-search';
19
+ import { RetrieveServices } from '../model/oi/services.retrieve';
20
+ import RetrieveServiceResponse = RetrieveServices.RetrieveServiceResponse;
21
+ import ServiceTopologyGraph = RetrieveServices.ServiceTopologyGraph;
18
22
  /**
19
23
  * Service for OI services: dependency graph, top-level/all services, inventory,
20
24
  * create, delete, and helpers for service content and vertex payloads.
@@ -41,6 +45,42 @@ export declare class ServiceService {
41
45
  getServiceSLIs(serviceId: string, serviceName: string, startTime: DateTime, endTime: DateTime): Promise<ServiceSLIs.ServiceSLIsResponseBody>;
42
46
  /** Returns the full service detail (metrics with values) for a named service. */
43
47
  getServiceDetail(serviceName: string, startTime: DateTime, endTime: DateTime, ianaTimeZone?: TimeZoneIANA): Promise<ServiceDetailResponseBody>;
48
+ /**
49
+ * Retrieve a Service — the full read-endpoint envelope (vertices + edges +
50
+ * paging metadata). Backs the `service detail` and `service export` commands.
51
+ *
52
+ * @param serviceName - Service name (URL path segment).
53
+ * @param subservices - When true, include the service's subservices in the response.
54
+ */
55
+ getService(serviceName: string, subservices?: boolean): Promise<RetrieveServiceResponse>;
56
+ /**
57
+ * Returns the full reachable subtree (all descendants + association edges with
58
+ * weights) for a service via `oi/v2/sa/saTopologyGraph`. Backs the hierarchy
59
+ * read used by `export-hierarchy`/`associate`/`dissociate`.
60
+ *
61
+ * @remarks The documented `oi/v2/sa/service/details/hierarchy` path is not
62
+ * routable on the tenant gateway; this topology endpoint is the working one.
63
+ * Its vertex attributes are a subset — use {@link getService} per vertex when
64
+ * faithful re-save attributes (tags, customProperties, metrics) are needed.
65
+ */
66
+ getServiceTopology(serviceName: string): Promise<ServiceTopologyGraph>;
67
+ /**
68
+ * Builds a faithful, re-postable store body for a service's entire subtree:
69
+ * topology for structure + a per-vertex {@link getService} for full attributes
70
+ * (serviceContent, tags, customProperties, metrics). Shared by
71
+ * `export-hierarchy`, `associate`, and `dissociate`.
72
+ *
73
+ * @remarks One GET per vertex — fine for typical (small) hierarchies; reads
74
+ * are not throttled like saves.
75
+ */
76
+ buildHierarchyBody(rootName: string): Promise<CreateSimpleServiceBody>;
77
+ /** Builds a single-service store body (no edges) for `service export`. */
78
+ exportServiceBody(serviceName: string): Promise<CreateSimpleServiceBody>;
79
+ /**
80
+ * Resolves a service's server externalId (`SA:<cohort>:<uuid>`).
81
+ * @throws Error if the service does not exist.
82
+ */
83
+ getServiceExternalId(serviceName: string): Promise<string>;
44
84
  /** Returns the overview vertex for a named service; throws if not found. */
45
85
  getServiceOverview(serviceName: string): Promise<ServiceOverviewVertex>;
46
86
  /** Returns paginated top-level (grouped) services up to `maxRequests` pages. */
@@ -54,8 +94,65 @@ export declare class ServiceService {
54
94
  /** Returns inventory records for entities belonging to the named service. */
55
95
  getServiceInventory(serviceName: string): Promise<OIService.InventoryRecord[]>;
56
96
  private createServiceInventoryRequestBody;
57
- /** Creates a new service from the given body; replaces any existing service with the same name. */
58
- createService(createServiceBody: CreateSimpleServiceBody): Promise<CreateServices.CreateServiceResponse>;
97
+ /**
98
+ * Creates/updates one or more services via the store API (`/oi/v2/sa/save`).
99
+ *
100
+ * @remarks Edges not present in the payload are removed for the services it
101
+ * covers — the store API treats the supplied edge set as authoritative.
102
+ * @param createServiceBody - vertices + edges to store.
103
+ * @param opts.replace - When true (default), replaces an existing service of the
104
+ * same name rather than erroring.
105
+ * @param opts.autoWeight - When true, the server computes edge health/risk weights,
106
+ * overriding any weights supplied in the payload. Omitted by default.
107
+ */
108
+ createService(createServiceBody: CreateSimpleServiceBody, opts?: {
109
+ replace?: boolean;
110
+ autoWeight?: boolean;
111
+ }): Promise<CreateServices.CreateServiceResponse>;
112
+ /**
113
+ * Builds the store body for associating `childName` under `parentName` as a
114
+ * new `AggregateOf` child, WITHOUT saving (so callers can dry-run it).
115
+ *
116
+ * Because `replace=true` makes each saved vertex's edge set authoritative, the
117
+ * body carries both services' full subtrees. Weights: explicit
118
+ * `healthWeight`/`riskWeight` are applied to the new edge and validated against
119
+ * the ≤100% limit; otherwise the parent's direct children are evenly rebalanced.
120
+ */
121
+ buildAssociateBody(parentName: string, childName: string, opts?: {
122
+ healthWeight?: number;
123
+ riskWeight?: number;
124
+ }): Promise<CreateSimpleServiceBody>;
125
+ /** Associates `childName` under `parentName` and saves it. See {@link buildAssociateBody}. */
126
+ associateServices(parentName: string, childName: string, opts?: {
127
+ healthWeight?: number;
128
+ riskWeight?: number;
129
+ autoWeight?: boolean;
130
+ }): Promise<CreateServiceResponse>;
131
+ /**
132
+ * Builds the store body for removing the `parentName`→`childName` association,
133
+ * WITHOUT saving. The child (and its own subtree) is preserved as a now-detached
134
+ * service.
135
+ * @throws Error if `childName` is not a direct child of `parentName`.
136
+ */
137
+ buildDissociateBody(parentName: string, childName: string): Promise<CreateSimpleServiceBody>;
138
+ /** Removes the `parentName`→`childName` association and saves it. See {@link buildDissociateBody}. */
139
+ dissociateServices(parentName: string, childName: string): Promise<CreateServiceResponse>;
140
+ /**
141
+ * Builds the store body for updating a service's content queries, WITHOUT
142
+ * saving. Re-saves the service's full subtree (via {@link buildHierarchyBody})
143
+ * so its children edges are preserved — only the target vertex's
144
+ * `serviceContent` changes.
145
+ *
146
+ * @param mode - 'set' replaces the content; 'add' appends to the existing content.
147
+ * @returns the store body plus the service's previous content (for diffing).
148
+ * @throws Error if the service does not exist.
149
+ */
150
+ buildServiceContentBody(serviceName: string, newContent: ServiceContent[], mode: 'add' | 'set'): Promise<{
151
+ body: CreateSimpleServiceBody;
152
+ previousContent: ServiceContent[];
153
+ }>;
154
+ /** Updates a service's content queries and saves it. See {@link buildServiceContentBody}. */
155
+ updateServiceContent(serviceName: string, newContent: ServiceContent[], mode: 'add' | 'set'): Promise<CreateServiceResponse>;
59
156
  /** Deletes a service by name; optionally deletes child services recursively. */
60
157
  deleteService(serviceName: string, recursive?: boolean): Promise<OIService.ServicesResponse>;
61
158
  /** Builds a `ServiceContent` query fragment for a single attribute filter. */
@@ -1 +1 @@
1
- {"version":3,"file":"service.service.d.ts","sourceRoot":"","sources":["../../../../src/lib/services/service.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAKjD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,uBAAuB,GAAG,cAAc,CAAC,iBAAiB,CAAC;AAClE,OAAO,aAAa,G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,EAAE,CAAC;KACnC,CAAC;IAYF,6FAA6F;IACvF,oBAAoB,CACxB,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,cAAc,EAAE,EAC5B,IAAI,EAAE,KAAK,GAAG,KAAK,GAClB,OAAO,CAAC,qBAAqB,CAAC;IASjC,gFAAgF;IAC1E,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,SAAS,UAAQ;IAQ1D,8EAA8E;IACvE,sBAAsB,CAC3B,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,GAAE,2BAAkC,EAC5C,kBAAkB,UAAQ,GACzB,cAAc;IAejB,iFAAiF;IAC1E,0BAA0B,CAC/B,WAAW,EAAE,MAAM,EACnB,kBAAkB,EAAE,MAAM,EAC1B,8BAA8B,EAAE,OAAO,EACvC,IAAI,GAAE,MAAM,EAAO,EACnB,gBAAgB,GAAE,qBAAqB,EAAO,GAC7C,aAAa;IAqBhB,4EAA4E;IACrE,yBAAyB,IAAI,uBAAuB;CAM5D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dx-do/client",
3
- "version": "6.2.3",
3
+ "version": "6.3.0",
4
4
  "description": "Opinionated TS client library for DX O2",
5
5
  "author": "Ki Alam",
6
6
  "logo": {