scaffolder-common,scaffolder-backend: udpate API reports

Co-authored-by: Johan Haals <johan.haals@gmail.com>
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-10-06 13:32:16 +02:00
parent eaca0f53fb
commit 1a6de93e20
3 changed files with 60 additions and 3 deletions
+16
View File
@@ -6,13 +6,17 @@
/// <reference types="node" />
import { CatalogApi } from '@backstage/catalog-client';
import { CatalogProcessor } from '@backstage/plugin-catalog-backend';
import { CatalogProcessorEmit } from '@backstage/plugin-catalog-backend';
import { Config } from '@backstage/config';
import { ContainerRunner } from '@backstage/backend-common';
import { createFetchCookiecutterAction } from '@backstage/plugin-scaffolder-backend-module-cookiecutter';
import { createPullRequest } from 'octokit-plugin-create-pull-request';
import { Entity } from '@backstage/catalog-model';
import express from 'express';
import { JsonObject } from '@backstage/config';
import { JsonValue } from '@backstage/config';
import { LocationSpec } from '@backstage/catalog-model';
import { Logger as Logger_2 } from 'winston';
import { Octokit } from '@octokit/rest';
import { PluginDatabaseManager } from '@backstage/backend-common';
@@ -244,6 +248,18 @@ export const runCommand: ({
logStream,
}: RunCommandOptions) => Promise<void>;
// @public (undocumented)
export class ScaffolderEntitiesProcessor implements CatalogProcessor {
// (undocumented)
postProcessEntity(
entity: Entity,
_location: LocationSpec,
emit: CatalogProcessorEmit,
): Promise<Entity>;
// (undocumented)
validateEntityKind(entity: Entity): Promise<boolean>;
}
// Warning: (ae-missing-release-tag) "TemplateAction" is exported by the package, but it is missing a release tag (@alpha, @beta, @public, or @internal)
//
// @public (undocumented)
+36
View File
@@ -0,0 +1,36 @@
## API Report File for "@backstage/plugin-scaffolder-common"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { Entity } from '@backstage/catalog-model';
import { JsonObject } from '@backstage/config';
import { JSONSchema } from '@backstage/catalog-model';
// @public (undocumented)
export interface TemplateEntityV1beta3 extends Entity {
// (undocumented)
apiVersion: 'scaffolder.backstage.io/v1beta3';
// (undocumented)
kind: 'Template';
// (undocumented)
spec: {
type: string;
parameters?: JsonObject | JsonObject[];
steps: Array<{
id?: string;
name?: string;
action: string;
input?: JsonObject;
if?: string | boolean;
}>;
output?: {
[name: string]: string;
};
owner?: string;
};
}
// @public (undocumented)
export const templateEntityV1beta3Schema: JSONSchema;
```
+8 -3
View File
@@ -20,8 +20,13 @@
* @packageDocumentation
*/
// The `{ default as ...}` re-export does not seem to work for json in tests
import templateEntityV1beta3Schema from './Template.v1beta3.schema.json';
import { JSONSchema } from '@backstage/catalog-model';
import v1beta3Schema from './Template.v1beta3.schema.json';
export type { TemplateEntityV1beta3 } from './TemplateEntityV1beta3';
export { templateEntityV1beta3Schema };
/** @public */
export const templateEntityV1beta3Schema: JSONSchema = v1beta3Schema as Omit<
JSONSchema,
'examples'
>;