backend-common: move the frontend visibility of config to @backstage/integration

This commit is contained in:
Patrik Oldsberg
2020-11-26 22:27:22 +01:00
parent 2942954535
commit b3d4e4e57a
4 changed files with 55 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
---
'@backstage/backend-common': patch
'@backstage/integration': patch
---
Move the frontend visibility declarations of integrations config from @backstage/backend-common to @backstage/integration
-7
View File
@@ -96,7 +96,6 @@ export interface Config {
azure?: Array<{
/**
* The hostname of the given Azure instance
* @visibility frontend
*/
host: string;
/**
@@ -110,7 +109,6 @@ export interface Config {
bitbucket?: Array<{
/**
* The hostname of the given Bitbucket instance
* @visibility frontend
*/
host: string;
/**
@@ -120,7 +118,6 @@ export interface Config {
token?: string;
/**
* The base url for the BitBucket API, for example https://api.bitbucket.org/2.0
* @visibility frontend
*/
apiBaseUrl?: string;
/**
@@ -139,7 +136,6 @@ export interface Config {
github?: Array<{
/**
* The hostname of the given GitHub instance
* @visibility frontend
*/
host: string;
/**
@@ -149,12 +145,10 @@ export interface Config {
token?: string;
/**
* The base url for the GitHub API, for example https://api.github.com
* @visibility frontend
*/
apiBaseUrl?: string;
/**
* The base url for GitHub raw resources, for example https://raw.githubusercontent.com
* @visibility frontend
*/
rawBaseUrl?: string;
}>;
@@ -163,7 +157,6 @@ export interface Config {
gitlab?: Array<{
/**
* The hostname of the given GitLab instance
* @visibility frontend
*/
host: string;
/**
+45
View File
@@ -0,0 +1,45 @@
/*
* Copyright 2020 Spotify AB
*
* 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 interface Config {
integrations?: {
azure?: Array<{
/** @visibility frontend */
host: string;
}>;
bitbucket?: Array<{
/** @visibility frontend */
host: string;
/** @visibility frontend */
apiBaseUrl?: string;
}>;
github?: Array<{
/** @visibility frontend */
host: string;
/** @visibility frontend */
apiBaseUrl?: string;
/** @visibility frontend */
rawBaseUrl?: string;
}>;
gitlab?: Array<{
/** @visibility frontend */
host: string;
}>;
};
}
+4 -2
View File
@@ -28,6 +28,8 @@
"@types/jest": "^26.0.7"
},
"files": [
"dist"
]
"dist",
"config.d.ts"
],
"configSchema": "config.d.ts"
}