@backstage/plugin-catalog-backend 1.13.0-next.1 → 1.13.0-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
2
2
 
3
+ ## 1.13.0-next.2
4
+
5
+ ### Patch Changes
6
+
7
+ - acffa17027b6: Added some examples to the catalog OpenAPI definition
8
+ - 45947d3b2759: Fixes an issue where `order` was not a recognized parameter for the `/entities` endpoint.
9
+ - 814feeed7343: Update to handle invalid luxon values
10
+ - Updated dependencies
11
+ - @backstage/config@1.1.0-next.1
12
+ - @backstage/backend-tasks@0.5.8-next.2
13
+ - @backstage/backend-common@0.19.5-next.2
14
+ - @backstage/plugin-auth-node@0.3.0-next.2
15
+ - @backstage/plugin-catalog-node@1.4.4-next.2
16
+ - @backstage/plugin-permission-node@0.7.14-next.2
17
+ - @backstage/plugin-search-backend-module-catalog@0.1.7-next.2
18
+ - @backstage/integration@1.7.0-next.2
19
+ - @backstage/backend-plugin-api@0.6.3-next.2
20
+ - @backstage/catalog-model@1.4.2-next.1
21
+ - @backstage/plugin-permission-common@0.7.8-next.1
22
+ - @backstage/backend-openapi-utils@0.0.3
23
+ - @backstage/catalog-client@1.4.4-next.1
24
+ - @backstage/errors@1.2.1
25
+ - @backstage/types@1.1.0
26
+ - @backstage/plugin-catalog-common@1.0.16-next.1
27
+ - @backstage/plugin-events-node@0.2.12-next.2
28
+ - @backstage/plugin-scaffolder-common@1.4.1-next.1
29
+ - @backstage/plugin-search-common@1.2.6-next.1
30
+
3
31
  ## 1.13.0-next.1
4
32
 
5
33
  ### Minor Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/plugin-catalog-backend",
3
- "version": "1.13.0-next.1",
3
+ "version": "1.13.0-next.2",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/alpha.cjs.js CHANGED
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var alpha = require('@backstage/plugin-catalog-common/alpha');
6
6
  var pluginPermissionNode = require('@backstage/plugin-permission-node');
7
- var CatalogBuilder = require('./cjs/CatalogBuilder-e344ff09.cjs.js');
7
+ var CatalogBuilder = require('./cjs/CatalogBuilder-c40214f8.cjs.js');
8
8
  var backendPluginApi = require('@backstage/backend-plugin-api');
9
9
  var alpha$1 = require('@backstage/plugin-catalog-node/alpha');
10
10
  var backendCommon = require('@backstage/backend-common');
@@ -3657,6 +3657,14 @@ const spec = {
3657
3657
  items: {
3658
3658
  type: "string"
3659
3659
  }
3660
+ },
3661
+ examples: {
3662
+ "Get name and the entire relations collection": {
3663
+ value: ["metadata.name", "relations"]
3664
+ },
3665
+ "Get kind, name and namespace": {
3666
+ value: ["kind", "metadata.name", "metadata.namespace"]
3667
+ }
3660
3668
  }
3661
3669
  },
3662
3670
  filter: {
@@ -3670,6 +3678,16 @@ const spec = {
3670
3678
  items: {
3671
3679
  type: "string"
3672
3680
  }
3681
+ },
3682
+ examples: {
3683
+ "Get groups": {
3684
+ value: ["kind=group"]
3685
+ },
3686
+ "Get orphaned components": {
3687
+ value: [
3688
+ "kind=component,metadata.annotations.backstage.io/orphan=true"
3689
+ ]
3690
+ }
3673
3691
  }
3674
3692
  },
3675
3693
  offset: {
@@ -3708,7 +3726,15 @@ const spec = {
3708
3726
  }
3709
3727
  },
3710
3728
  explode: true,
3711
- style: "form"
3729
+ style: "form",
3730
+ examples: {
3731
+ "Order ascending by name": {
3732
+ value: ["metadata.name,asc"]
3733
+ },
3734
+ "Order descending by owner": {
3735
+ value: ["spec.owner,desc"]
3736
+ }
3737
+ }
3712
3738
  }
3713
3739
  },
3714
3740
  requestBodies: {},
@@ -4335,6 +4361,18 @@ const spec = {
4335
4361
  },
4336
4362
  {
4337
4363
  $ref: "#/components/parameters/after"
4364
+ },
4365
+ {
4366
+ name: "order",
4367
+ in: "query",
4368
+ allowReserved: true,
4369
+ required: false,
4370
+ schema: {
4371
+ type: "array",
4372
+ items: {
4373
+ type: "string"
4374
+ }
4375
+ }
4338
4376
  }
4339
4377
  ]
4340
4378
  }
@@ -4506,6 +4544,22 @@ const spec = {
4506
4544
  }
4507
4545
  }
4508
4546
  }
4547
+ },
4548
+ examples: {
4549
+ "Fetch Backstage entities": {
4550
+ value: {
4551
+ entityRefs: [
4552
+ "component:default/backstage",
4553
+ "api:default/backstage"
4554
+ ]
4555
+ }
4556
+ },
4557
+ "Fetch annotations for backstage entity": {
4558
+ value: {
4559
+ entityRefs: ["component:default/backstage"],
4560
+ fields: ["metadata.annotations"]
4561
+ }
4562
+ }
4509
4563
  }
4510
4564
  }
4511
4565
  }
@@ -4611,6 +4665,14 @@ const spec = {
4611
4665
  items: {
4612
4666
  type: "string"
4613
4667
  }
4668
+ },
4669
+ examples: {
4670
+ "Entities by kind": {
4671
+ value: ["kind"]
4672
+ },
4673
+ "Entities by spec type": {
4674
+ value: ["spec.type"]
4675
+ }
4614
4676
  }
4615
4677
  },
4616
4678
  {
@@ -6688,4 +6750,4 @@ exports.createCatalogPermissionRule = createCatalogPermissionRule;
6688
6750
  exports.createRandomProcessingInterval = createRandomProcessingInterval;
6689
6751
  exports.parseEntityYaml = parseEntityYaml;
6690
6752
  exports.permissionRules = permissionRules;
6691
- //# sourceMappingURL=CatalogBuilder-e344ff09.cjs.js.map
6753
+ //# sourceMappingURL=CatalogBuilder-c40214f8.cjs.js.map