@backstage-community/plugin-tech-insights-backend 0.5.32

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.
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright 2023 The Backstage Authors
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+
17
+ const factSchemasTable = 'fact_schemas';
18
+
19
+ /**
20
+ * @param { import("knex").Knex } knex
21
+ * @returns { Promise<void> }
22
+ */
23
+ exports.up = async function up(knex) {
24
+ await knex.schema.alterTable(factSchemasTable, table => {
25
+ table.text('entityFilter').alter();
26
+ });
27
+ };
28
+
29
+ /**
30
+ * @param { import("knex").Knex } knex
31
+ * @returns { Promise<void> }
32
+ */
33
+ exports.down = async function down() {
34
+ await knex.schema.alterTable(factSchemasTable, table => {
35
+ table.string('entityFilter').alter();
36
+ });
37
+ };
package/package.json ADDED
@@ -0,0 +1,73 @@
1
+ {
2
+ "name": "@backstage-community/plugin-tech-insights-backend",
3
+ "version": "0.5.32",
4
+ "backstage": {
5
+ "role": "backend-plugin"
6
+ },
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "main": "dist/index.cjs.js",
10
+ "types": "dist/index.d.ts"
11
+ },
12
+ "keywords": [
13
+ "backstage",
14
+ "tech-insights",
15
+ "reporting"
16
+ ],
17
+ "homepage": "https://backstage.io",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "https://github.com/backstage/community-plugins",
21
+ "directory": "workspaces/tech-insights/plugins/tech-insights-backend"
22
+ },
23
+ "license": "Apache-2.0",
24
+ "main": "dist/index.cjs.js",
25
+ "types": "dist/index.d.ts",
26
+ "files": [
27
+ "config.d.ts",
28
+ "dist",
29
+ "migrations/**/*.{js,d.ts}"
30
+ ],
31
+ "scripts": {
32
+ "build": "backstage-cli package build",
33
+ "clean": "backstage-cli package clean",
34
+ "lint": "backstage-cli package lint",
35
+ "prepack": "backstage-cli package prepack",
36
+ "postpack": "backstage-cli package postpack",
37
+ "start": "backstage-cli package start",
38
+ "test": "backstage-cli package test"
39
+ },
40
+ "dependencies": {
41
+ "@backstage-community/plugin-tech-insights-common": "^0.2.13",
42
+ "@backstage-community/plugin-tech-insights-node": "^0.6.1",
43
+ "@backstage/backend-common": "^0.21.7",
44
+ "@backstage/backend-plugin-api": "^0.6.17",
45
+ "@backstage/backend-tasks": "^0.5.22",
46
+ "@backstage/catalog-client": "^1.6.4",
47
+ "@backstage/catalog-model": "^1.4.5",
48
+ "@backstage/config": "^1.2.0",
49
+ "@backstage/errors": "^1.2.4",
50
+ "@backstage/types": "^1.1.1",
51
+ "@types/express": "^4.17.6",
52
+ "@types/luxon": "^3.0.0",
53
+ "express": "^4.17.1",
54
+ "express-promise-router": "^4.1.0",
55
+ "knex": "^3.0.0",
56
+ "lodash": "^4.17.21",
57
+ "luxon": "^3.0.0",
58
+ "semver": "^7.5.3",
59
+ "uuid": "^9.0.0",
60
+ "yn": "^4.0.0"
61
+ },
62
+ "devDependencies": {
63
+ "@backstage/backend-test-utils": "^0.3.7",
64
+ "@backstage/cli": "^0.26.3",
65
+ "@types/lodash": "^4.14.151",
66
+ "@types/semver": "^7.3.8",
67
+ "@types/supertest": "^2.0.8",
68
+ "@types/uuid": "^9.0.0",
69
+ "supertest": "^6.1.3",
70
+ "wait-for-expect": "^3.0.2"
71
+ },
72
+ "configSchema": "config.d.ts"
73
+ }