@backstage/plugin-catalog-backend-module-gitlab 0.3.15 → 0.3.17-next.0

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,72 @@
1
1
  # @backstage/plugin-catalog-backend-module-gitlab
2
2
 
3
+ ## 0.3.17-next.0
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+ - @backstage/backend-tasks@0.5.24-next.0
9
+ - @backstage/backend-common@0.22.1-next.0
10
+ - @backstage/plugin-events-node@0.3.5-next.0
11
+ - @backstage/backend-plugin-api@0.6.19-next.0
12
+ - @backstage/plugin-catalog-node@1.12.1-next.0
13
+ - @backstage/catalog-model@1.5.0
14
+ - @backstage/config@1.2.0
15
+ - @backstage/integration@1.11.0
16
+ - @backstage/plugin-catalog-common@1.0.23
17
+
18
+ ## 0.3.16
19
+
20
+ ### Patch Changes
21
+
22
+ - a70377d: Added events support for `GitlabDiscoveryEntityProvider` and `GitlabOrgDiscoveryEntityProvider`.
23
+ - Updated dependencies
24
+ - @backstage/plugin-catalog-node@1.12.0
25
+ - @backstage/catalog-model@1.5.0
26
+ - @backstage/backend-common@0.22.0
27
+ - @backstage/backend-plugin-api@0.6.18
28
+ - @backstage/backend-tasks@0.5.23
29
+ - @backstage/plugin-events-node@0.3.4
30
+ - @backstage/integration@1.11.0
31
+ - @backstage/plugin-catalog-common@1.0.23
32
+
33
+ ## 0.3.15-next.4
34
+
35
+ ### Patch Changes
36
+
37
+ - Updated dependencies
38
+ - @backstage/plugin-catalog-node@1.12.0-next.2
39
+ - @backstage/backend-common@0.22.0-next.2
40
+ - @backstage/plugin-events-node@0.3.4-next.2
41
+ - @backstage/integration@1.11.0-next.0
42
+
43
+ ## 0.3.15-next.3
44
+
45
+ ### Patch Changes
46
+
47
+ - Updated dependencies
48
+ - @backstage/backend-common@0.22.0-next.1
49
+ - @backstage/backend-tasks@0.5.23-next.1
50
+ - @backstage/plugin-events-node@0.3.4-next.1
51
+ - @backstage/plugin-catalog-node@1.11.2-next.1
52
+ - @backstage/backend-plugin-api@0.6.18-next.1
53
+
54
+ ## 0.3.15-next.2
55
+
56
+ ### Patch Changes
57
+
58
+ - a70377d: Added events support for `GitlabDiscoveryEntityProvider` and `GitlabOrgDiscoveryEntityProvider`.
59
+ - Updated dependencies
60
+ - @backstage/catalog-model@1.5.0-next.0
61
+ - @backstage/backend-common@0.21.8-next.0
62
+ - @backstage/backend-plugin-api@0.6.18-next.0
63
+ - @backstage/plugin-catalog-common@1.0.23-next.0
64
+ - @backstage/plugin-catalog-node@1.11.2-next.0
65
+ - @backstage/backend-tasks@0.5.23-next.0
66
+ - @backstage/config@1.2.0
67
+ - @backstage/integration@1.10.0
68
+ - @backstage/plugin-events-node@0.3.4-next.0
69
+
3
70
  ## 0.3.15
4
71
 
5
72
  ### Patch Changes
@@ -385,8 +452,8 @@
385
452
 
386
453
  ref:
387
454
 
388
- https://docs.gitlab.com/ee/user/enterprise_user/#get-users-email-addresses-through-the-api
389
- https://docs.gitlab.com/ee/api/members.html#limitations
455
+ <https://docs.gitlab.com/ee/user/enterprise_user/#get-users-email-addresses-through-the-api>
456
+ <https://docs.gitlab.com/ee/api/members.html#limitations>
390
457
 
391
458
  - 890e3b5ad4: Make sure to include the error message when ingestion fails
392
459
  - 0b55f773a7: Removed some unused dependencies
@@ -417,8 +484,8 @@
417
484
 
418
485
  ref:
419
486
 
420
- https://docs.gitlab.com/ee/user/enterprise_user/#get-users-email-addresses-through-the-api
421
- https://docs.gitlab.com/ee/api/members.html#limitations
487
+ <https://docs.gitlab.com/ee/user/enterprise_user/#get-users-email-addresses-through-the-api>
488
+ <https://docs.gitlab.com/ee/api/members.html#limitations>
422
489
 
423
490
  - 0b55f773a7: Removed some unused dependencies
424
491
  - Updated dependencies
@@ -1211,7 +1278,7 @@
1211
1278
  - 81cedb5033: `GitlabDiscoveryEntityProvider`: Add option to configure schedule via `app-config.yaml` instead of in code.
1212
1279
 
1213
1280
  Please find how to configure the schedule at the config at
1214
- https://backstage.io/docs/integrations/gitlab/discovery
1281
+ <https://backstage.io/docs/integrations/gitlab/discovery>
1215
1282
 
1216
1283
  - 4c9f7847e4: Updated dependency `msw` to `^0.48.0` while moving it to be a dev dependency.
1217
1284
  - Updated dependencies
@@ -1250,7 +1317,7 @@
1250
1317
  - 81cedb5033: `GitlabDiscoveryEntityProvider`: Add option to configure schedule via `app-config.yaml` instead of in code.
1251
1318
 
1252
1319
  Please find how to configure the schedule at the config at
1253
- https://backstage.io/docs/integrations/gitlab/discovery
1320
+ <https://backstage.io/docs/integrations/gitlab/discovery>
1254
1321
 
1255
1322
  - Updated dependencies
1256
1323
  - @backstage/backend-common@0.16.0-next.0
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend-module-gitlab",
3
- "version": "0.3.15",
3
+ "version": "0.3.17-next.0",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -4,14 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var backendPluginApi = require('@backstage/backend-plugin-api');
6
6
  var alpha = require('@backstage/plugin-catalog-node/alpha');
7
- var GitlabDiscoveryEntityProvider = require('./cjs/GitlabDiscoveryEntityProvider-CfW32ioU.cjs.js');
7
+ var pluginEventsNode = require('@backstage/plugin-events-node');
8
+ var GitlabDiscoveryEntityProvider = require('./cjs/GitlabDiscoveryEntityProvider-BPHqAba5.cjs.js');
8
9
  require('@backstage/catalog-model');
9
10
  require('@backstage/integration');
10
11
  require('lodash');
11
12
  require('uuid');
12
- require('node-fetch');
13
13
  require('@backstage/backend-tasks');
14
+ require('node-fetch');
14
15
  require('@backstage/plugin-catalog-node');
16
+ require('path');
15
17
 
16
18
  const catalogModuleGitlabDiscoveryEntityProvider = backendPluginApi.createBackendModule({
17
19
  pluginId: "catalog",
@@ -22,15 +24,16 @@ const catalogModuleGitlabDiscoveryEntityProvider = backendPluginApi.createBacken
22
24
  config: backendPluginApi.coreServices.rootConfig,
23
25
  catalog: alpha.catalogProcessingExtensionPoint,
24
26
  logger: backendPluginApi.coreServices.logger,
25
- scheduler: backendPluginApi.coreServices.scheduler
27
+ scheduler: backendPluginApi.coreServices.scheduler,
28
+ events: pluginEventsNode.eventsServiceRef
26
29
  },
27
- async init({ config, catalog, logger, scheduler }) {
28
- catalog.addEntityProvider(
29
- GitlabDiscoveryEntityProvider.GitlabDiscoveryEntityProvider.fromConfig(config, {
30
- logger,
31
- scheduler
32
- })
33
- );
30
+ async init({ config, catalog, logger, scheduler, events }) {
31
+ const gitlabDiscoveryEntityProvider = GitlabDiscoveryEntityProvider.GitlabDiscoveryEntityProvider.fromConfig(config, {
32
+ logger,
33
+ events,
34
+ scheduler
35
+ });
36
+ catalog.addEntityProvider(gitlabDiscoveryEntityProvider);
34
37
  }
35
38
  });
36
39
  }
@@ -1 +1 @@
1
- {"version":3,"file":"alpha.cjs.js","sources":["../src/module/catalogModuleGitlabDiscoveryEntityProvider.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 coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { GitlabDiscoveryEntityProvider } from '../providers';\n\n/**\n * Registers the GitlabDiscoveryEntityProvider with the catalog processing extension point.\n *\n * @alpha\n */\nexport const catalogModuleGitlabDiscoveryEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'gitlab-discovery-entity-provider',\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 GitlabDiscoveryEntityProvider.fromConfig(config, {\n logger,\n scheduler,\n }),\n );\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","catalogProcessingExtensionPoint","GitlabDiscoveryEntityProvider"],"mappings":";;;;;;;;;;;;;;;AA4BO,MAAM,6CAA6CA,oCAAoB,CAAA;AAAA,EAC5E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,kCAAA;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,2DAAA,CAA8B,WAAW,MAAQ,EAAA;AAAA,YAC/C,MAAA;AAAA,YACA,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/catalogModuleGitlabDiscoveryEntityProvider.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 coreServices,\n createBackendModule,\n} from '@backstage/backend-plugin-api';\nimport { catalogProcessingExtensionPoint } from '@backstage/plugin-catalog-node/alpha';\nimport { eventsServiceRef } from '@backstage/plugin-events-node';\nimport { GitlabDiscoveryEntityProvider } from '../providers';\n\n/**\n * Registers the GitlabDiscoveryEntityProvider with the catalog processing extension point.\n *\n * @alpha\n */\n\nexport const catalogModuleGitlabDiscoveryEntityProvider = createBackendModule({\n pluginId: 'catalog',\n moduleId: 'gitlab-discovery-entity-provider',\n register(env) {\n env.registerInit({\n deps: {\n config: coreServices.rootConfig,\n catalog: catalogProcessingExtensionPoint,\n logger: coreServices.logger,\n scheduler: coreServices.scheduler,\n events: eventsServiceRef,\n },\n async init({ config, catalog, logger, scheduler, events }) {\n const gitlabDiscoveryEntityProvider =\n GitlabDiscoveryEntityProvider.fromConfig(config, {\n logger,\n events,\n scheduler,\n });\n catalog.addEntityProvider(gitlabDiscoveryEntityProvider);\n },\n });\n },\n});\n"],"names":["createBackendModule","coreServices","catalogProcessingExtensionPoint","eventsServiceRef","GitlabDiscoveryEntityProvider"],"mappings":";;;;;;;;;;;;;;;;;AA8BO,MAAM,6CAA6CA,oCAAoB,CAAA;AAAA,EAC5E,QAAU,EAAA,SAAA;AAAA,EACV,QAAU,EAAA,kCAAA;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,QACxB,MAAQ,EAAAE,iCAAA;AAAA,OACV;AAAA,MACA,MAAM,KAAK,EAAE,MAAA,EAAQ,SAAS,MAAQ,EAAA,SAAA,EAAW,QAAU,EAAA;AACzD,QAAM,MAAA,6BAAA,GACJC,2DAA8B,CAAA,UAAA,CAAW,MAAQ,EAAA;AAAA,UAC/C,MAAA;AAAA,UACA,MAAA;AAAA,UACA,SAAA;AAAA,SACD,CAAA,CAAA;AACH,QAAA,OAAA,CAAQ,kBAAkB,6BAA6B,CAAA,CAAA;AAAA,OACzD;AAAA,KACD,CAAA,CAAA;AAAA,GACH;AACF,CAAC;;;;"}