@backstage/integration 1.4.4-next.0 → 1.4.4
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 +9 -0
- package/dist/index.d.ts +15 -15
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -83,7 +83,7 @@ interface ScmIntegrationsGroup<T extends ScmIntegration> {
|
|
|
83
83
|
*
|
|
84
84
|
* @public
|
|
85
85
|
*/
|
|
86
|
-
|
|
86
|
+
type ScmIntegrationsFactory<T extends ScmIntegration> = (options: {
|
|
87
87
|
config: Config;
|
|
88
88
|
}) => ScmIntegrationsGroup<T>;
|
|
89
89
|
|
|
@@ -92,7 +92,7 @@ declare type ScmIntegrationsFactory<T extends ScmIntegration> = (options: {
|
|
|
92
92
|
*
|
|
93
93
|
* @public
|
|
94
94
|
*/
|
|
95
|
-
|
|
95
|
+
type AwsS3IntegrationConfig = {
|
|
96
96
|
/**
|
|
97
97
|
* Host, derived from endpoint, and defaults to amazonaws.com
|
|
98
98
|
*/
|
|
@@ -169,7 +169,7 @@ declare class AwsS3Integration implements ScmIntegration {
|
|
|
169
169
|
*
|
|
170
170
|
* @public
|
|
171
171
|
*/
|
|
172
|
-
|
|
172
|
+
type AzureIntegrationConfig = {
|
|
173
173
|
/**
|
|
174
174
|
* The host of the target that this matches on, e.g. "dev.azure.com".
|
|
175
175
|
*
|
|
@@ -264,7 +264,7 @@ declare function getAzureRequestOptions(config: AzureIntegrationConfig, addition
|
|
|
264
264
|
* @public
|
|
265
265
|
* @deprecated bitbucket integration replaced by integrations bitbucketCloud and bitbucketServer.
|
|
266
266
|
*/
|
|
267
|
-
|
|
267
|
+
type BitbucketIntegrationConfig = {
|
|
268
268
|
/**
|
|
269
269
|
* The host of the target that this matches on, e.g. "bitbucket.org"
|
|
270
270
|
*/
|
|
@@ -386,7 +386,7 @@ declare function getBitbucketRequestOptions(config: BitbucketIntegrationConfig):
|
|
|
386
386
|
*
|
|
387
387
|
* @public
|
|
388
388
|
*/
|
|
389
|
-
|
|
389
|
+
type BitbucketCloudIntegrationConfig = {
|
|
390
390
|
/**
|
|
391
391
|
* Constant. bitbucket.org
|
|
392
392
|
*/
|
|
@@ -489,7 +489,7 @@ declare function getBitbucketCloudRequestOptions(config: BitbucketCloudIntegrati
|
|
|
489
489
|
*
|
|
490
490
|
* @public
|
|
491
491
|
*/
|
|
492
|
-
|
|
492
|
+
type BitbucketServerIntegrationConfig = {
|
|
493
493
|
/**
|
|
494
494
|
* The host of the target that this matches on, e.g. "bitbucket.company.com"
|
|
495
495
|
*/
|
|
@@ -609,7 +609,7 @@ declare function getBitbucketServerRequestOptions(config: BitbucketServerIntegra
|
|
|
609
609
|
*
|
|
610
610
|
* @public
|
|
611
611
|
*/
|
|
612
|
-
|
|
612
|
+
type GerritIntegrationConfig = {
|
|
613
613
|
/**
|
|
614
614
|
* The host of the target that this matches on, e.g. "gerrit-review.com"
|
|
615
615
|
*/
|
|
@@ -766,7 +766,7 @@ declare function parseGerritJsonResponse(response: Response): Promise<unknown>;
|
|
|
766
766
|
*
|
|
767
767
|
* @public
|
|
768
768
|
*/
|
|
769
|
-
|
|
769
|
+
type GiteaIntegrationConfig = {
|
|
770
770
|
/**
|
|
771
771
|
* The host of the target that this matches on, e.g. "gitea.website.com"
|
|
772
772
|
*/
|
|
@@ -844,7 +844,7 @@ declare function getGiteaRequestOptions(config: GiteaIntegrationConfig): {
|
|
|
844
844
|
*
|
|
845
845
|
* @public
|
|
846
846
|
*/
|
|
847
|
-
|
|
847
|
+
type GithubIntegrationConfig = {
|
|
848
848
|
/**
|
|
849
849
|
* The host of the target that this matches on, e.g. "github.com"
|
|
850
850
|
*/
|
|
@@ -891,7 +891,7 @@ declare type GithubIntegrationConfig = {
|
|
|
891
891
|
*
|
|
892
892
|
* @public
|
|
893
893
|
*/
|
|
894
|
-
|
|
894
|
+
type GithubAppConfig = {
|
|
895
895
|
/**
|
|
896
896
|
* Unique app identifier, found at https://github.com/organizations/$org/settings/apps/$AppName
|
|
897
897
|
*/
|
|
@@ -943,13 +943,13 @@ declare function readGithubIntegrationConfigs(configs: Config[]): GithubIntegrat
|
|
|
943
943
|
*
|
|
944
944
|
* @public
|
|
945
945
|
*/
|
|
946
|
-
|
|
946
|
+
type GithubCredentialType = 'app' | 'token';
|
|
947
947
|
/**
|
|
948
948
|
* A set of credentials information for a GitHub integration.
|
|
949
949
|
*
|
|
950
950
|
* @public
|
|
951
951
|
*/
|
|
952
|
-
|
|
952
|
+
type GithubCredentials = {
|
|
953
953
|
headers?: {
|
|
954
954
|
[name: string]: string;
|
|
955
955
|
};
|
|
@@ -1028,7 +1028,7 @@ declare function replaceGithubUrlType(url: string, type: 'blob' | 'tree' | 'edit
|
|
|
1028
1028
|
*
|
|
1029
1029
|
* @public
|
|
1030
1030
|
*/
|
|
1031
|
-
|
|
1031
|
+
type GitLabIntegrationConfig = {
|
|
1032
1032
|
/**
|
|
1033
1033
|
* The host of the target that this matches on, e.g. `gitlab.com`.
|
|
1034
1034
|
*/
|
|
@@ -1263,7 +1263,7 @@ declare const getGitHubFileFetchUrl: typeof getGithubFileFetchUrl;
|
|
|
1263
1263
|
* @public
|
|
1264
1264
|
* @deprecated Use {@link GithubIntegrationConfig} instead.
|
|
1265
1265
|
*/
|
|
1266
|
-
|
|
1266
|
+
type GitHubIntegrationConfig = GithubIntegrationConfig;
|
|
1267
1267
|
/**
|
|
1268
1268
|
* @public
|
|
1269
1269
|
* @deprecated Use {@link GithubIntegration} instead.
|
|
@@ -1322,7 +1322,7 @@ declare function getGitLabRequestOptions(config: GitLabIntegrationConfig): {
|
|
|
1322
1322
|
*
|
|
1323
1323
|
* @public
|
|
1324
1324
|
*/
|
|
1325
|
-
|
|
1325
|
+
type GoogleGcsIntegrationConfig = {
|
|
1326
1326
|
/**
|
|
1327
1327
|
* Service account email used to authenticate requests.
|
|
1328
1328
|
*/
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/integration",
|
|
3
3
|
"description": "Helpers for managing integrations towards external systems",
|
|
4
|
-
"version": "1.4.4
|
|
4
|
+
"version": "1.4.4",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
7
7
|
"license": "Apache-2.0",
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"luxon": "^3.0.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@backstage/cli": "^0.22.6
|
|
46
|
-
"@backstage/config-loader": "^1.
|
|
45
|
+
"@backstage/cli": "^0.22.6",
|
|
46
|
+
"@backstage/config-loader": "^1.2.0",
|
|
47
47
|
"@types/luxon": "^3.0.0",
|
|
48
48
|
"msw": "^1.0.0"
|
|
49
49
|
},
|