@backstage/plugin-catalog-backend-module-azure 0.1.19-next.0 → 0.1.19-next.2

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 CHANGED
@@ -1,5 +1,33 @@
1
1
  # @backstage/plugin-catalog-backend-module-azure
2
2
 
3
+ ## 0.1.19-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-plugin-api@0.6.0-next.2
9
+ - @backstage/backend-tasks@0.5.5-next.2
10
+ - @backstage/backend-common@0.19.2-next.2
11
+ - @backstage/plugin-catalog-node@1.4.1-next.2
12
+
13
+ ## 0.1.19-next.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 629cbd194a87: Use `coreServices.rootConfig` instead of `coreService.config`
18
+ - 4b82382ed8c2: Fixed invalid configuration schema. The configuration schema may be more strict as a result.
19
+ - Updated dependencies
20
+ - @backstage/backend-common@0.19.2-next.1
21
+ - @backstage/plugin-catalog-node@1.4.1-next.1
22
+ - @backstage/backend-plugin-api@0.6.0-next.1
23
+ - @backstage/backend-tasks@0.5.5-next.1
24
+ - @backstage/integration@1.5.1
25
+ - @backstage/catalog-model@1.4.1
26
+ - @backstage/config@1.0.8
27
+ - @backstage/errors@1.2.1
28
+ - @backstage/types@1.1.0
29
+ - @backstage/plugin-catalog-common@1.0.15
30
+
3
31
  ## 0.1.19-next.0
4
32
 
5
33
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-azure",
3
- "version": "0.1.19-next.0",
3
+ "version": "0.1.19-next.2",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/config.d.ts CHANGED
@@ -16,35 +16,6 @@
16
16
 
17
17
  import { TaskScheduleDefinitionConfig } from '@backstage/backend-tasks';
18
18
 
19
- interface AzureDevOpsConfig {
20
- /**
21
- * (Optional) The DevOps host; leave empty for `dev.azure.com`, otherwise set to your self-hosted instance host.
22
- */
23
- host: string;
24
- /**
25
- * (Required) Your organization slug.
26
- */
27
- organization: string;
28
- /**
29
- * (Required) Your project slug.
30
- */
31
- project: string;
32
- /**
33
- * (Optional) The repository name. Wildcards are supported as show on the examples above.
34
- * If not set, all repositories will be searched.
35
- */
36
- repository?: string;
37
- /**
38
- * (Optional) Where to find catalog-info.yaml files. Wildcards are supported.
39
- * If not set, defaults to /catalog-info.yaml.
40
- */
41
- path?: string;
42
- /**
43
- * (Optional) TaskScheduleDefinition for the refresh.
44
- */
45
- schedule?: TaskScheduleDefinitionConfig;
46
- }
47
-
48
19
  export interface Config {
49
20
  catalog?: {
50
21
  /**
@@ -54,7 +25,36 @@ export interface Config {
54
25
  /**
55
26
  * AzureDevopsEntityProvider configuration
56
27
  */
57
- azureDevOps?: Record<string, AzureDevOpsConfig>;
28
+ azureDevOps?: {
29
+ [name: string]: {
30
+ /**
31
+ * (Optional) The DevOps host; leave empty for `dev.azure.com`, otherwise set to your self-hosted instance host.
32
+ */
33
+ host: string;
34
+ /**
35
+ * (Required) Your organization slug.
36
+ */
37
+ organization: string;
38
+ /**
39
+ * (Required) Your project slug.
40
+ */
41
+ project: string;
42
+ /**
43
+ * (Optional) The repository name. Wildcards are supported as show on the examples above.
44
+ * If not set, all repositories will be searched.
45
+ */
46
+ repository?: string;
47
+ /**
48
+ * (Optional) Where to find catalog-info.yaml files. Wildcards are supported.
49
+ * If not set, defaults to /catalog-info.yaml.
50
+ */
51
+ path?: string;
52
+ /**
53
+ * (Optional) TaskScheduleDefinition for the refresh.
54
+ */
55
+ schedule?: TaskScheduleDefinitionConfig;
56
+ };
57
+ };
58
58
  };
59
59
  };
60
60
  }
package/dist/alpha.cjs.js CHANGED
@@ -18,7 +18,7 @@ const catalogModuleAzureDevOpsEntityProvider = backendPluginApi.createBackendMod
18
18
  register(env) {
19
19
  env.registerInit({
20
20
  deps: {
21
- config: backendPluginApi.coreServices.config,
21
+ config: backendPluginApi.coreServices.rootConfig,
22
22
  catalog: alpha.catalogProcessingExtensionPoint,
23
23
  logger: backendPluginApi.coreServices.logger,
24
24
  scheduler: backendPluginApi.coreServices.scheduler
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleAzureDevOpsEntityProvider.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 { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n createBackendModule,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { AzureDevOpsEntityProvider } from '../providers';\n\n/**\n * Registers the AzureDevOpsEntityProvider with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModuleAzureDevOpsEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'azureDevOpsEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n config: coreServices.config,\n catalog: catalogProcessingExtensionPoint,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({ config, catalog, logger, scheduler }) {\n catalog.addEntityProvider(\n AzureDevOpsEntityProvider.fromConfig(config, {\n logger: loggerToWinstonLogger(logger),\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","catalogProcessingExtensionPoint","AzureDevOpsEntityProvider","loggerToWinstonLogger"],"mappings":";;;;;;;;;;;;;;AA6BO,MAAM,yCAAyCA,oCAAoB,CAAA;AAAA,EACxE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,2BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,QAAQC,6BAAa,CAAA,MAAA;AAAA,QACrB,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQD,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,QAAQ,OAAS,EAAA,MAAA,EAAQ,WAAa,EAAA;AACjD,QAAQ,OAAA,CAAA,iBAAA;AAAA,UACNE,mDAAA,CAA0B,WAAW,MAAQ,EAAA;AAAA,YAC3C,MAAA,EAAQC,oCAAsB,MAAM,CAAA;AAAA,YACpC,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
1
+ {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleAzureDevOpsEntityProvider.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 { loggerToWinstonLogger } from '@backstage/backend-common';\nimport {\n createBackendModule,\n coreServices,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { AzureDevOpsEntityProvider } from '../providers';\n\n/**\n * Registers the AzureDevOpsEntityProvider with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModuleAzureDevOpsEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'azureDevOpsEntityProvider',\n register(env) {\n env.registerInit({\n deps: {\n config: coreServices.rootConfig,\n catalog: catalogProcessingExtensionPoint,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n },\n async init({ config, catalog, logger, scheduler }) {\n catalog.addEntityProvider(\n AzureDevOpsEntityProvider.fromConfig(config, {\n logger: loggerToWinstonLogger(logger),\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","catalogProcessingExtensionPoint","AzureDevOpsEntityProvider","loggerToWinstonLogger"],"mappings":";;;;;;;;;;;;;;AA6BO,MAAM,yCAAyCA,oCAAoB,CAAA;AAAA,EACxE,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,2BAAA;AAAA,EACV,SAAS,GAAK,EAAA;AACZ,IAAA,GAAA,CAAI,YAAa,CAAA;AAAA,MACf,IAAM,EAAA;AAAA,QACJ,QAAQC,6BAAa,CAAA,UAAA;AAAA,QACrB,OAAS,EAAAC,qCAAA;AAAA,QACT,QAAQD,6BAAa,CAAA,MAAA;AAAA,QACrB,WAAWA,6BAAa,CAAA,SAAA;AAAA,OAC1B;AAAA,MACA,MAAM,IAAK,CAAA,EAAE,QAAQ,OAAS,EAAA,MAAA,EAAQ,WAAa,EAAA;AACjD,QAAQ,OAAA,CAAA,iBAAA;AAAA,UACNE,mDAAA,CAA0B,WAAW,MAAQ,EAAA;AAAA,YAC3C,MAAA,EAAQC,oCAAsB,MAAM,CAAA;AAAA,YACpC,SAAA;AAAA,WACD,CAAA;AAAA,SACH,CAAA;AAAA,OACF;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-azure",
3
3
  "description": "A Backstage catalog backend module that helps integrate towards Azure",
4
- "version": "0.1.19-next.0",
4
+ "version": "0.1.19-next.2",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -43,15 +43,15 @@
43
43
  "clean": "backstage-cli package clean"
44
44
  },
45
45
  "dependencies": {
46
- "@backstage/backend-common": "^0.19.2-next.0",
47
- "@backstage/backend-plugin-api": "^0.5.5-next.0",
48
- "@backstage/backend-tasks": "^0.5.5-next.0",
46
+ "@backstage/backend-common": "^0.19.2-next.2",
47
+ "@backstage/backend-plugin-api": "^0.6.0-next.2",
48
+ "@backstage/backend-tasks": "^0.5.5-next.2",
49
49
  "@backstage/catalog-model": "^1.4.1",
50
50
  "@backstage/config": "^1.0.8",
51
51
  "@backstage/errors": "^1.2.1",
52
52
  "@backstage/integration": "^1.5.1",
53
53
  "@backstage/plugin-catalog-common": "^1.0.15",
54
- "@backstage/plugin-catalog-node": "^1.4.1-next.0",
54
+ "@backstage/plugin-catalog-node": "^1.4.1-next.2",
55
55
  "@backstage/types": "^1.1.0",
56
56
  "lodash": "^4.17.21",
57
57
  "node-fetch": "^2.6.7",
@@ -59,8 +59,8 @@
59
59
  "winston": "^3.2.1"
60
60
  },
61
61
  "devDependencies": {
62
- "@backstage/backend-test-utils": "^0.1.40-next.0",
63
- "@backstage/cli": "^0.22.10-next.0",
62
+ "@backstage/backend-test-utils": "^0.2.0-next.2",
63
+ "@backstage/cli": "^0.22.10-next.1",
64
64
  "@types/lodash": "^4.14.151",
65
65
  "luxon": "^3.0.0",
66
66
  "msw": "^1.0.0"