Merge pull request #21700 from sennyeya/export-types-from-client

feat: add types to the generated exports
This commit is contained in:
Fredrik Adelöw
2023-12-05 12:02:08 +01:00
committed by GitHub
5 changed files with 63 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/repo-tools': patch
---
Updates the `schema openapi generate-client` command to export all generated types from the generated directory.
@@ -15,3 +15,4 @@
*/
export * from './apis';
export * from './models';
@@ -0,0 +1,52 @@
/*
* Copyright 2023 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 '../models/AnalyzeLocationEntityField.model';
export * from '../models/AnalyzeLocationExistingEntity.model';
export * from '../models/AnalyzeLocationGenerateEntity.model';
export * from '../models/AnalyzeLocationRequest.model';
export * from '../models/AnalyzeLocationResponse.model';
export * from '../models/CreateLocation201Response.model';
export * from '../models/CreateLocationRequest.model';
export * from '../models/EntitiesBatchResponse.model';
export * from '../models/EntitiesQueryResponse.model';
export * from '../models/EntitiesQueryResponsePageInfo.model';
export * from '../models/Entity.model';
export * from '../models/EntityAncestryResponse.model';
export * from '../models/EntityAncestryResponseItemsInner.model';
export * from '../models/EntityFacet.model';
export * from '../models/EntityFacetsResponse.model';
export * from '../models/EntityLink.model';
export * from '../models/EntityMeta.model';
export * from '../models/EntityRelation.model';
export * from '../models/ErrorError.model';
export * from '../models/ErrorRequest.model';
export * from '../models/ErrorResponse.model';
export * from '../models/GetEntitiesByRefsRequest.model';
export * from '../models/GetLocations200ResponseInner.model';
export * from '../models/Location.model';
export * from '../models/LocationInput.model';
export * from '../models/LocationSpec.model';
export * from '../models/ModelError.model';
export * from '../models/NullableEntity.model';
export * from '../models/RecursivePartialEntity.model';
export * from '../models/RecursivePartialEntityMeta.model';
export * from '../models/RecursivePartialEntityMetaAllOf.model';
export * from '../models/RecursivePartialEntityRelation.model';
export * from '../models/RefreshEntityRequest.model';
export * from '../models/ValidateEntity400Response.model';
export * from '../models/ValidateEntity400ResponseErrorsInner.model';
export * from '../models/ValidateEntityRequest.model';
@@ -8,6 +8,9 @@ files:
model.mustache:
templateType: Model
destinationFilename: .model.ts
models/models_all.mustache:
templateType: SupportingFiles
destinationFilename: models/index.ts
types/fetch.ts: {}
types/discovery.ts: {}
apis/index.mustache:
@@ -1,3 +1,4 @@
//
export * from './apis'
export * from './apis';
export * from './models';