Skip to content

Commit 6127cae

Browse files
committed
chore: update packages/contracts/index.ts, packages/contracts/interfaces/core/service-graph.interface.ts, packages/core/discovery/auth-scheme.helper.ts +4 more
1 parent 8034dec commit 6127cae

2 files changed

Lines changed: 21 additions & 2 deletions

File tree

packages/contracts/index.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,16 @@ export type {
2323
IMessageBrokerTransport,
2424
MessageBrokerTransport,
2525
IOperationIdContext,
26-
} from "./interfaces/core/transport/index.js";
26+
} from "./interfaces/core/transport/index.js";
27+
export type {
28+
ICombinedDescriptor,
29+
IResolvedOperationContext,
30+
IServiceDescriptor,
31+
} from "./interfaces/core/service.interface.js";
32+
export type {
33+
IGroupByServiceInput,
34+
IServiceGraph,
35+
IServiceGraphNode,
36+
IToServiceGraphInput,
37+
IServiceDescriptor as LegacyServiceGraphDescriptor,
38+
} from "./interfaces/core/service-graph.interface.js";

packages/contracts/interfaces/core/service-graph.interface.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ import type { IMonorepoDetection } from "./discovery.interface.js";
5555
* because the id shows up in collection names and Postman
5656
* environment variables.
5757
*/
58-
export interface IServiceDescriptor {
58+
export interface IServiceGraphNode {
5959
/** Stable identity of the service; used as the merge key and as the name. */
6060
readonly serviceId: string;
6161
/**
@@ -115,6 +115,13 @@ export interface IServiceDescriptor {
115115
readonly variables: ReadonlyArray<{ readonly key: string; readonly value: string }>;
116116
}
117117

118+
/**
119+
* @deprecated Use `IServiceGraphNode` for discovery graphs. The export
120+
* descriptor with the same old name lives in `service.interface.ts` and has
121+
* `IOperation[]` endpoints; this alias preserves legacy graph consumers.
122+
*/
123+
export type IServiceDescriptor = IServiceGraphNode;
124+
118125
/**
119126
* Inputs of the `groupByService` helper. It lives here for the
120127
* same reason as `IServiceDescriptor`: the helper is generic, but

0 commit comments

Comments
 (0)