@backstage/integration 1.12.0-next.0 → 1.12.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 +20 -0
- package/dist/awsCodeCommit/config.esm.js +5 -9
- package/dist/awsCodeCommit/config.esm.js.map +1 -1
- package/dist/index.cjs.js +5 -28
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +5 -36
- package/dist/index.esm.js +0 -1
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -3
- package/dist/github/deprecated.esm.js +0 -20
- package/dist/github/deprecated.esm.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -199,6 +199,10 @@ type AwsCodeCommitIntegrationConfig = {
|
|
|
199
199
|
* (Optional) External ID to use when assuming role
|
|
200
200
|
*/
|
|
201
201
|
externalId?: string;
|
|
202
|
+
/**
|
|
203
|
+
* region to use for AWS (default: us-east-1)
|
|
204
|
+
*/
|
|
205
|
+
region: string;
|
|
202
206
|
};
|
|
203
207
|
/**
|
|
204
208
|
* Reads a single Aws CodeCommit integration config.
|
|
@@ -1576,41 +1580,6 @@ declare class SingleInstanceGithubCredentialsProvider implements GithubCredentia
|
|
|
1576
1580
|
}): Promise<GithubCredentials>;
|
|
1577
1581
|
}
|
|
1578
1582
|
|
|
1579
|
-
/**
|
|
1580
|
-
* @public
|
|
1581
|
-
* @deprecated Use {@link getGithubFileFetchUrl} instead.
|
|
1582
|
-
*/
|
|
1583
|
-
declare const getGitHubFileFetchUrl: typeof getGithubFileFetchUrl;
|
|
1584
|
-
/**
|
|
1585
|
-
* @public
|
|
1586
|
-
* @deprecated Use {@link GithubIntegrationConfig} instead.
|
|
1587
|
-
*/
|
|
1588
|
-
type GitHubIntegrationConfig = GithubIntegrationConfig;
|
|
1589
|
-
/**
|
|
1590
|
-
* @public
|
|
1591
|
-
* @deprecated Use {@link GithubIntegration} instead.
|
|
1592
|
-
*/
|
|
1593
|
-
declare class GitHubIntegration extends GithubIntegration {
|
|
1594
|
-
static factory: ScmIntegrationsFactory<GitHubIntegration>;
|
|
1595
|
-
constructor(integrationConfig: GitHubIntegrationConfig);
|
|
1596
|
-
get config(): GitHubIntegrationConfig;
|
|
1597
|
-
}
|
|
1598
|
-
/**
|
|
1599
|
-
* @public
|
|
1600
|
-
* @deprecated Use {@link readGithubIntegrationConfig} instead.
|
|
1601
|
-
*/
|
|
1602
|
-
declare const readGitHubIntegrationConfig: typeof readGithubIntegrationConfig;
|
|
1603
|
-
/**
|
|
1604
|
-
* @public
|
|
1605
|
-
* @deprecated Use {@link readGithubIntegrationConfigs} instead.
|
|
1606
|
-
*/
|
|
1607
|
-
declare const readGitHubIntegrationConfigs: typeof readGithubIntegrationConfigs;
|
|
1608
|
-
/**
|
|
1609
|
-
* @public
|
|
1610
|
-
* @deprecated Use {@link replaceGithubUrlType} instead.
|
|
1611
|
-
*/
|
|
1612
|
-
declare const replaceGitHubUrlType: typeof replaceGithubUrlType;
|
|
1613
|
-
|
|
1614
1583
|
/**
|
|
1615
1584
|
* Given a URL pointing to a file on a provider, returns a URL that is suitable
|
|
1616
1585
|
* for fetching the contents of the data.
|
|
@@ -1833,4 +1802,4 @@ declare class ScmIntegrations implements ScmIntegrationRegistry {
|
|
|
1833
1802
|
resolveEditUrl(url: string): string;
|
|
1834
1803
|
}
|
|
1835
1804
|
|
|
1836
|
-
export { AwsCodeCommitIntegration, type AwsCodeCommitIntegrationConfig, AwsS3Integration, type AwsS3IntegrationConfig, type AzureClientSecretCredential, type AzureCredentialBase, type AzureDevOpsCredential, type AzureDevOpsCredentialKind, type AzureDevOpsCredentialLike, type AzureDevOpsCredentialType, type AzureDevOpsCredentials, type AzureDevOpsCredentialsProvider, AzureIntegration, type AzureIntegrationConfig, type AzureManagedIdentityCredential, BitbucketCloudIntegration, type BitbucketCloudIntegrationConfig, BitbucketIntegration, type BitbucketIntegrationConfig, BitbucketServerIntegration, type BitbucketServerIntegrationConfig, DefaultAzureDevOpsCredentialsProvider, DefaultGithubCredentialsProvider, DefaultGitlabCredentialsProvider, GerritIntegration, type GerritIntegrationConfig,
|
|
1805
|
+
export { AwsCodeCommitIntegration, type AwsCodeCommitIntegrationConfig, AwsS3Integration, type AwsS3IntegrationConfig, type AzureClientSecretCredential, type AzureCredentialBase, type AzureDevOpsCredential, type AzureDevOpsCredentialKind, type AzureDevOpsCredentialLike, type AzureDevOpsCredentialType, type AzureDevOpsCredentials, type AzureDevOpsCredentialsProvider, AzureIntegration, type AzureIntegrationConfig, type AzureManagedIdentityCredential, BitbucketCloudIntegration, type BitbucketCloudIntegrationConfig, BitbucketIntegration, type BitbucketIntegrationConfig, BitbucketServerIntegration, type BitbucketServerIntegrationConfig, DefaultAzureDevOpsCredentialsProvider, DefaultGithubCredentialsProvider, DefaultGitlabCredentialsProvider, GerritIntegration, type GerritIntegrationConfig, GitLabIntegration, type GitLabIntegrationConfig, GiteaIntegration, type GiteaIntegrationConfig, type GithubAppConfig, GithubAppCredentialsMux, type GithubCredentialType, type GithubCredentials, type GithubCredentialsProvider, GithubIntegration, type GithubIntegrationConfig, type GitlabCredentials, type GitlabCredentialsProvider, type GoogleGcsIntegrationConfig, HarnessIntegration, type HarnessIntegrationConfig, type IntegrationsByType, type PersonalAccessTokenCredential, type RateLimitInfo, type ScmIntegration, type ScmIntegrationRegistry, ScmIntegrations, type ScmIntegrationsFactory, type ScmIntegrationsGroup, SingleInstanceGithubCredentialsProvider, buildGerritGitilesArchiveUrl, defaultScmResolveUrl, getAzureCommitsUrl, getAzureDownloadUrl, getAzureFileFetchUrl, getAzureRequestOptions, getBitbucketCloudDefaultBranch, getBitbucketCloudDownloadUrl, getBitbucketCloudFileFetchUrl, getBitbucketCloudRequestOptions, getBitbucketDefaultBranch, getBitbucketDownloadUrl, getBitbucketFileFetchUrl, getBitbucketRequestOptions, getBitbucketServerDefaultBranch, getBitbucketServerDownloadUrl, getBitbucketServerFileFetchUrl, getBitbucketServerRequestOptions, getGerritBranchApiUrl, getGerritCloneRepoUrl, getGerritFileContentsApiUrl, getGerritProjectsApiUrl, getGerritRequestOptions, getGitHubRequestOptions, getGitLabFileFetchUrl, getGitLabIntegrationRelativePath, getGitLabRequestOptions, getGiteaArchiveUrl, getGiteaEditContentsUrl, getGiteaFileContentsUrl, getGiteaLatestCommitUrl, getGiteaRequestOptions, getGithubFileFetchUrl, getHarnessArchiveUrl, getHarnessFileContentsUrl, getHarnessLatestCommitUrl, getHarnessRequestOptions, parseGerritGitilesUrl, parseGerritJsonResponse, parseGiteaUrl, parseHarnessUrl, readAwsCodeCommitIntegrationConfig, readAwsCodeCommitIntegrationConfigs, readAwsS3IntegrationConfig, readAwsS3IntegrationConfigs, readAzureIntegrationConfig, readAzureIntegrationConfigs, readBitbucketCloudIntegrationConfig, readBitbucketCloudIntegrationConfigs, readBitbucketIntegrationConfig, readBitbucketIntegrationConfigs, readBitbucketServerIntegrationConfig, readBitbucketServerIntegrationConfigs, readGerritIntegrationConfig, readGerritIntegrationConfigs, readGitLabIntegrationConfig, readGitLabIntegrationConfigs, readGiteaConfig, readGithubIntegrationConfig, readGithubIntegrationConfigs, readGoogleGcsIntegrationConfig, readHarnessConfig, replaceGitLabUrlType, replaceGithubUrlType };
|
package/dist/index.esm.js
CHANGED
|
@@ -27,7 +27,6 @@ export { getGitHubRequestOptions, getGithubFileFetchUrl } from './github/core.es
|
|
|
27
27
|
export { DefaultGithubCredentialsProvider } from './github/DefaultGithubCredentialsProvider.esm.js';
|
|
28
28
|
export { GithubAppCredentialsMux, SingleInstanceGithubCredentialsProvider } from './github/SingleInstanceGithubCredentialsProvider.esm.js';
|
|
29
29
|
export { GithubIntegration, replaceGithubUrlType } from './github/GithubIntegration.esm.js';
|
|
30
|
-
export { GitHubIntegration, getGitHubFileFetchUrl, readGitHubIntegrationConfig, readGitHubIntegrationConfigs, replaceGitHubUrlType } from './github/deprecated.esm.js';
|
|
31
30
|
export { getGitLabIntegrationRelativePath, readGitLabIntegrationConfig, readGitLabIntegrationConfigs } from './gitlab/config.esm.js';
|
|
32
31
|
export { getGitLabFileFetchUrl, getGitLabRequestOptions } from './gitlab/core.esm.js';
|
|
33
32
|
export { GitLabIntegration, replaceGitLabUrlType } from './gitlab/GitLabIntegration.esm.js';
|
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/integration",
|
|
3
|
-
"version": "1.12.0-next.
|
|
3
|
+
"version": "1.12.0-next.1",
|
|
4
4
|
"description": "Helpers for managing integrations towards external systems",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "common-library"
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"luxon": "^3.0.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@backstage/cli": "^0.26.7-next.
|
|
52
|
-
"@backstage/config-loader": "^1.8.0",
|
|
51
|
+
"@backstage/cli": "^0.26.7-next.3",
|
|
52
|
+
"@backstage/config-loader": "^1.8.1-next.0",
|
|
53
53
|
"@types/luxon": "^3.0.0",
|
|
54
54
|
"msw": "^1.0.0"
|
|
55
55
|
},
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { readGithubIntegrationConfig, readGithubIntegrationConfigs } from './config.esm.js';
|
|
2
|
-
import { getGithubFileFetchUrl } from './core.esm.js';
|
|
3
|
-
import { GithubIntegration, replaceGithubUrlType } from './GithubIntegration.esm.js';
|
|
4
|
-
|
|
5
|
-
const getGitHubFileFetchUrl = getGithubFileFetchUrl;
|
|
6
|
-
class GitHubIntegration extends GithubIntegration {
|
|
7
|
-
static factory = GithubIntegration.factory;
|
|
8
|
-
constructor(integrationConfig) {
|
|
9
|
-
super(integrationConfig);
|
|
10
|
-
}
|
|
11
|
-
get config() {
|
|
12
|
-
return super.config;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
const readGitHubIntegrationConfig = readGithubIntegrationConfig;
|
|
16
|
-
const readGitHubIntegrationConfigs = readGithubIntegrationConfigs;
|
|
17
|
-
const replaceGitHubUrlType = replaceGithubUrlType;
|
|
18
|
-
|
|
19
|
-
export { GitHubIntegration, getGitHubFileFetchUrl, readGitHubIntegrationConfig, readGitHubIntegrationConfigs, replaceGitHubUrlType };
|
|
20
|
-
//# sourceMappingURL=deprecated.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deprecated.esm.js","sources":["../../src/github/deprecated.ts"],"sourcesContent":["/*\n * Copyright 2022 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport {\n GithubIntegrationConfig,\n readGithubIntegrationConfig,\n readGithubIntegrationConfigs,\n} from './config';\nimport { getGithubFileFetchUrl } from './core';\nimport { GithubIntegration, replaceGithubUrlType } from './GithubIntegration';\nimport { ScmIntegrationsFactory } from '../types';\n\n/**\n * @public\n * @deprecated Use {@link getGithubFileFetchUrl} instead.\n */\nexport const getGitHubFileFetchUrl = getGithubFileFetchUrl;\n\n/**\n * @public\n * @deprecated Use {@link GithubIntegrationConfig} instead.\n */\nexport type GitHubIntegrationConfig = GithubIntegrationConfig;\n\n/**\n * @public\n * @deprecated Use {@link GithubIntegration} instead.\n */\nexport class GitHubIntegration extends GithubIntegration {\n static factory: ScmIntegrationsFactory<GitHubIntegration> =\n GithubIntegration.factory;\n\n constructor(integrationConfig: GitHubIntegrationConfig) {\n super(integrationConfig as GithubIntegrationConfig);\n }\n\n get config(): GitHubIntegrationConfig {\n return super.config as GitHubIntegrationConfig;\n }\n}\n\n/**\n * @public\n * @deprecated Use {@link readGithubIntegrationConfig} instead.\n */\nexport const readGitHubIntegrationConfig = readGithubIntegrationConfig;\n\n/**\n * @public\n * @deprecated Use {@link readGithubIntegrationConfigs} instead.\n */\nexport const readGitHubIntegrationConfigs = readGithubIntegrationConfigs;\n\n/**\n * @public\n * @deprecated Use {@link replaceGithubUrlType} instead.\n */\nexport const replaceGitHubUrlType = replaceGithubUrlType;\n"],"names":[],"mappings":";;;;AA6BO,MAAM,qBAAwB,GAAA,sBAAA;AAY9B,MAAM,0BAA0B,iBAAkB,CAAA;AAAA,EACvD,OAAO,UACL,iBAAkB,CAAA,OAAA,CAAA;AAAA,EAEpB,YAAY,iBAA4C,EAAA;AACtD,IAAA,KAAA,CAAM,iBAA4C,CAAA,CAAA;AAAA,GACpD;AAAA,EAEA,IAAI,MAAkC,GAAA;AACpC,IAAA,OAAO,KAAM,CAAA,MAAA,CAAA;AAAA,GACf;AACF,CAAA;AAMO,MAAM,2BAA8B,GAAA,4BAAA;AAMpC,MAAM,4BAA+B,GAAA,6BAAA;AAMrC,MAAM,oBAAuB,GAAA;;;;"}
|