fix api reports for realz

Signed-off-by: aramissennyeydd <aramis.sennyey@doordash.com>
This commit is contained in:
aramissennyeydd
2025-05-13 17:54:55 -04:00
parent d9e63b6450
commit 3049109f4f
7 changed files with 35 additions and 23 deletions
+4
View File
@@ -37,6 +37,7 @@
"./rootLifecycle": "./src/entrypoints/rootLifecycle/index.ts",
"./rootLogger": "./src/entrypoints/rootLogger/index.ts",
"./scheduler": "./src/entrypoints/scheduler/index.ts",
"./systemMetadata": "./src/entrypoints/systemMetadata/index.ts",
"./urlReader": "./src/entrypoints/urlReader/index.ts",
"./userInfo": "./src/entrypoints/userInfo/index.ts",
"./alpha": "./src/alpha/index.ts",
@@ -97,6 +98,9 @@
"scheduler": [
"src/entrypoints/scheduler/index.ts"
],
"systemMetadata": [
"src/entrypoints/systemMetadata/index.ts"
],
"urlReader": [
"src/entrypoints/urlReader/index.ts"
],
@@ -1,16 +0,0 @@
/*
* Copyright 2024 The Backstage Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './systemMetadata';
@@ -21,7 +21,7 @@ import {
import {
BackstageInstance,
SystemMetadataService,
} from '@backstage/backend-plugin-api/alpha';
} from '@backstage/backend-plugin-api';
import z from 'zod';
const targetObjectSchema = z.object({
@@ -15,10 +15,8 @@
*/
import { LoggerService } from '@backstage/backend-plugin-api';
import {
BackendFeatureMeta,
SystemMetadataService,
} from '@backstage/backend-plugin-api/alpha';
import { BackendFeatureMeta } from '@backstage/backend-plugin-api/alpha';
import type { SystemMetadataService } from '@backstage/backend-plugin-api';
import Router from 'express-promise-router';
export async function createSystemMetadataRouter(options: {
+22
View File
@@ -137,6 +137,14 @@ export type BackstageCredentials<TPrincipal = unknown> = {
principal: TPrincipal;
};
// @public (undocumented)
export interface BackstageInstance {
// (undocumented)
externalUrl: string;
// (undocumented)
internalUrl: string;
}
// @public
export type BackstageNonePrincipal = {
type: 'none';
@@ -237,6 +245,12 @@ export namespace coreServices {
'root',
'singleton'
>;
const // @alpha
systemMetadataServiceRef: ServiceRef<
SystemMetadataService,
'root',
'singleton'
>;
}
// @public
@@ -744,6 +758,14 @@ export interface ServiceRefOptions<
scope?: TScope;
}
// @public (undocumented)
export interface SystemMetadataService {
// (undocumented)
introspect(): Promise<{
instances: BackstageInstance[];
}>;
}
// @public
export interface UrlReaderService {
readTree(
@@ -15,7 +15,7 @@
*/
/**
* @alpha
* @public
*/
export interface BackstageInstance {
internalUrl: string;
@@ -23,7 +23,7 @@ export interface BackstageInstance {
}
/**
* @alpha
* @public
*/
export interface SystemMetadataService {
introspect(): Promise<{ instances: BackstageInstance[] }>;
@@ -72,6 +72,10 @@ export type {
SchedulerServiceTaskScheduleDefinition,
SchedulerServiceTaskScheduleDefinitionConfig,
} from './SchedulerService';
export type {
BackstageInstance,
SystemMetadataService,
} from './SystemMetadataService';
export type {
UrlReaderService,
UrlReaderServiceReadTreeOptions,