@backstage/integration 1.2.2-next.3 → 1.3.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +48 -0
- package/config.d.ts +10 -0
- package/dist/index.cjs.js +250 -106
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +26 -2
- package/dist/index.esm.js +250 -107
- package/dist/index.esm.js.map +1 -1
- package/package.json +9 -9
package/dist/index.d.ts
CHANGED
|
@@ -510,6 +510,22 @@ declare type BitbucketServerIntegrationConfig = {
|
|
|
510
510
|
* If no token is specified, anonymous access is used.
|
|
511
511
|
*/
|
|
512
512
|
token?: string;
|
|
513
|
+
/**
|
|
514
|
+
* The credentials for Basic Authentication for requests to a Bitbucket Server provider.
|
|
515
|
+
*
|
|
516
|
+
* If `token` was provided, it will be preferred.
|
|
517
|
+
*
|
|
518
|
+
* See https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/#authentication
|
|
519
|
+
*/
|
|
520
|
+
username?: string;
|
|
521
|
+
/**
|
|
522
|
+
* The credentials for Basic Authentication for requests to a Bitbucket Server provider.
|
|
523
|
+
*
|
|
524
|
+
* If `token` was provided, it will be preferred.
|
|
525
|
+
*
|
|
526
|
+
* See https://developer.atlassian.com/server/bitbucket/how-tos/command-line-rest/#authentication
|
|
527
|
+
*/
|
|
528
|
+
password?: string;
|
|
513
529
|
};
|
|
514
530
|
/**
|
|
515
531
|
* Reads a single Bitbucket Server integration config.
|
|
@@ -975,6 +991,14 @@ declare function readGitLabIntegrationConfig(config: Config): GitLabIntegrationC
|
|
|
975
991
|
* @public
|
|
976
992
|
*/
|
|
977
993
|
declare function readGitLabIntegrationConfigs(configs: Config[]): GitLabIntegrationConfig[];
|
|
994
|
+
/**
|
|
995
|
+
* Reads a GitLab integration config, and returns
|
|
996
|
+
* relative path.
|
|
997
|
+
*
|
|
998
|
+
* @param config - GitLabIntegrationConfig object
|
|
999
|
+
* @public
|
|
1000
|
+
*/
|
|
1001
|
+
declare function getGitLabIntegrationRelativePath(config: GitLabIntegrationConfig): string;
|
|
978
1002
|
|
|
979
1003
|
/**
|
|
980
1004
|
* A GitLab based integration.
|
|
@@ -1159,7 +1183,7 @@ declare class SingleInstanceGithubCredentialsProvider implements GithubCredentia
|
|
|
1159
1183
|
*
|
|
1160
1184
|
* Converts
|
|
1161
1185
|
* from: https://gitlab.example.com/a/b/blob/master/c.yaml
|
|
1162
|
-
* to: https://gitlab.
|
|
1186
|
+
* to: https://gitlab.com/api/v4/projects/projectId/repository/c.yaml?ref=master
|
|
1163
1187
|
* -or-
|
|
1164
1188
|
* from: https://gitlab.com/groupA/teams/teamA/subgroupA/repoA/-/blob/branch/filepath
|
|
1165
1189
|
* to: https://gitlab.com/api/v4/projects/projectId/repository/files/filepath?ref=branch
|
|
@@ -1263,4 +1287,4 @@ declare class ScmIntegrations implements ScmIntegrationRegistry {
|
|
|
1263
1287
|
resolveEditUrl(url: string): string;
|
|
1264
1288
|
}
|
|
1265
1289
|
|
|
1266
|
-
export { AwsS3Integration, AwsS3IntegrationConfig, AzureIntegration, AzureIntegrationConfig, BitbucketCloudIntegration, BitbucketCloudIntegrationConfig, BitbucketIntegration, BitbucketIntegrationConfig, BitbucketServerIntegration, BitbucketServerIntegrationConfig, DefaultGithubCredentialsProvider, GerritIntegration, GerritIntegrationConfig, GitHubIntegration, GitHubIntegrationConfig, GitLabIntegration, GitLabIntegrationConfig, GithubAppConfig, GithubAppCredentialsMux, GithubCredentialType, GithubCredentials, GithubCredentialsProvider, GoogleGcsIntegrationConfig, IntegrationsByType, ScmIntegration, ScmIntegrationRegistry, ScmIntegrations, ScmIntegrationsFactory, ScmIntegrationsGroup, SingleInstanceGithubCredentialsProvider, defaultScmResolveUrl, getAzureCommitsUrl, getAzureDownloadUrl, getAzureFileFetchUrl, getAzureRequestOptions, getBitbucketCloudDefaultBranch, getBitbucketCloudDownloadUrl, getBitbucketCloudFileFetchUrl, getBitbucketCloudRequestOptions, getBitbucketDefaultBranch, getBitbucketDownloadUrl, getBitbucketFileFetchUrl, getBitbucketRequestOptions, getBitbucketServerDefaultBranch, getBitbucketServerDownloadUrl, getBitbucketServerFileFetchUrl, getBitbucketServerRequestOptions, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, getGitHubFileFetchUrl, getGitHubRequestOptions, getGitLabFileFetchUrl, getGitLabRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, readAwsS3IntegrationConfig, readAwsS3IntegrationConfigs, readAzureIntegrationConfig, readAzureIntegrationConfigs, readBitbucketCloudIntegrationConfig, readBitbucketCloudIntegrationConfigs, readBitbucketIntegrationConfig, readBitbucketIntegrationConfigs, readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationConfigs, readGerritIntegrationConfig, readGerritIntegrationConfigs, readGitHubIntegrationConfig, readGitHubIntegrationConfigs, readGitLabIntegrationConfig, readGitLabIntegrationConfigs, readGoogleGcsIntegrationConfig, replaceGitHubUrlType, replaceGitLabUrlType };
|
|
1290
|
+
export { AwsS3Integration, AwsS3IntegrationConfig, AzureIntegration, AzureIntegrationConfig, BitbucketCloudIntegration, BitbucketCloudIntegrationConfig, BitbucketIntegration, BitbucketIntegrationConfig, BitbucketServerIntegration, BitbucketServerIntegrationConfig, DefaultGithubCredentialsProvider, GerritIntegration, GerritIntegrationConfig, GitHubIntegration, GitHubIntegrationConfig, GitLabIntegration, GitLabIntegrationConfig, GithubAppConfig, GithubAppCredentialsMux, GithubCredentialType, GithubCredentials, GithubCredentialsProvider, GoogleGcsIntegrationConfig, IntegrationsByType, ScmIntegration, ScmIntegrationRegistry, ScmIntegrations, ScmIntegrationsFactory, ScmIntegrationsGroup, SingleInstanceGithubCredentialsProvider, defaultScmResolveUrl, getAzureCommitsUrl, getAzureDownloadUrl, getAzureFileFetchUrl, getAzureRequestOptions, getBitbucketCloudDefaultBranch, getBitbucketCloudDownloadUrl, getBitbucketCloudFileFetchUrl, getBitbucketCloudRequestOptions, getBitbucketDefaultBranch, getBitbucketDownloadUrl, getBitbucketFileFetchUrl, getBitbucketRequestOptions, getBitbucketServerDefaultBranch, getBitbucketServerDownloadUrl, getBitbucketServerFileFetchUrl, getBitbucketServerRequestOptions, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, getGitHubFileFetchUrl, getGitHubRequestOptions, getGitLabFileFetchUrl, getGitLabIntegrationRelativePath, getGitLabRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, readAwsS3IntegrationConfig, readAwsS3IntegrationConfigs, readAzureIntegrationConfig, readAzureIntegrationConfigs, readBitbucketCloudIntegrationConfig, readBitbucketCloudIntegrationConfigs, readBitbucketIntegrationConfig, readBitbucketIntegrationConfigs, readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationConfigs, readGerritIntegrationConfig, readGerritIntegrationConfigs, readGitHubIntegrationConfig, readGitHubIntegrationConfigs, readGitLabIntegrationConfig, readGitLabIntegrationConfigs, readGoogleGcsIntegrationConfig, replaceGitHubUrlType, replaceGitLabUrlType };
|