update api report

Signed-off-by: Joe Patterson <jrwpatterson@gmail.com>
This commit is contained in:
Joe Patterson
2022-10-17 07:54:14 +10:00
parent 7dab195ff6
commit 69b35ed0d1
3 changed files with 21 additions and 15 deletions
+7 -10
View File
@@ -257,11 +257,7 @@ interface GroupEntityV1alpha1 extends Entity {
// (undocumented)
spec: {
type: string;
profile?: {
displayName?: string;
email?: string;
picture?: string;
};
profile?: GroupProfile;
parent?: string;
children: string[];
members?: string[];
@@ -491,11 +487,7 @@ interface UserEntityV1alpha1 extends Entity {
kind: 'User';
// (undocumented)
spec: {
profile?: {
displayName?: string;
email?: string;
picture?: string;
};
profile?: UserProfile;
memberOf?: string[];
};
}
@@ -517,4 +509,9 @@ export type Validators = {
isValidAnnotationValue(value: unknown): boolean;
isValidTag(value: unknown): boolean;
};
// Warnings were encountered during analysis:
//
// src/kinds/GroupEntityV1alpha1.d.ts:23:9 - (ae-forgotten-export) The symbol "GroupProfile" needs to be exported by the entry point index.d.ts
// src/kinds/UserEntityV1alpha1.d.ts:22:9 - (ae-forgotten-export) The symbol "UserProfile" needs to be exported by the entry point index.d.ts
```
@@ -18,13 +18,18 @@ import type { Entity } from '../entity/Entity';
import schema from '../schema/kinds/Group.v1alpha1.schema.json';
import { ajvCompiledJsonSchemaValidator } from './util';
interface GroupProfileStatic {
export interface GroupProfileStatic {
displayName?: string;
email?: string;
picture?: string;
}
type GroupProfile = Record<string, string> & GroupProfileStatic;
/**
* Backstage Group Profile.
*
* @public
*/
export type GroupProfile = Record<string, string> & GroupProfileStatic;
/**
* Backstage catalog Group kind Entity.
@@ -18,13 +18,17 @@ import type { Entity } from '../entity/Entity';
import schema from '../schema/kinds/User.v1alpha1.schema.json';
import { ajvCompiledJsonSchemaValidator } from './util';
interface UserProfileStatic {
export interface UserProfileStatic {
displayName?: string;
email?: string;
picture?: string;
}
type UserProfile = Record<string, string> & UserProfileStatic;
/**
* Backstage User Profile.
*
* @public
*/
export type UserProfile = Record<string, string> & UserProfileStatic;
/**
* Backstage catalog User kind Entity.