@red-hat-developer-hub/backstage-plugin-adoption-insights-backend 0.9.0 → 0.9.1
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 +8 -0
- package/config.d.ts +47 -0
- package/package.json +4 -4
- package/config.schema.json +0 -41
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @red-hat-developer-hub/backstage-plugin-adoption-insights-backend
|
|
2
2
|
|
|
3
|
+
## 0.9.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d623d36: Refreshed `yarn.lock` to align resolved dependency versions.
|
|
8
|
+
- Updated dependencies [d623d36]
|
|
9
|
+
- @red-hat-developer-hub/backstage-plugin-adoption-insights-common@0.9.1
|
|
10
|
+
|
|
3
11
|
## 0.9.0
|
|
4
12
|
|
|
5
13
|
### Minor Changes
|
package/config.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright Red Hat, Inc.
|
|
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
|
+
export interface Config {
|
|
18
|
+
app?: {
|
|
19
|
+
analytics?: {
|
|
20
|
+
adoptionInsights?: {
|
|
21
|
+
/**
|
|
22
|
+
* Maximum buffer size for event batching.
|
|
23
|
+
* default 20
|
|
24
|
+
* @visibility frontend
|
|
25
|
+
*/
|
|
26
|
+
maxBufferSize?: number;
|
|
27
|
+
/**
|
|
28
|
+
* Flush interval in millisecond for event batching. All events will be flushed after this interval.
|
|
29
|
+
* default 5000ms
|
|
30
|
+
* @visibility frontend
|
|
31
|
+
*/
|
|
32
|
+
flushInterval?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Flag to enable Debug mode which logs every event in the browser console.
|
|
35
|
+
* default false
|
|
36
|
+
* @visibility frontend
|
|
37
|
+
*/
|
|
38
|
+
debug?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Total number of licensed users.
|
|
41
|
+
* @visibility backend
|
|
42
|
+
*/
|
|
43
|
+
licensedUsers?: number;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@red-hat-developer-hub/backstage-plugin-adoption-insights-backend",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@backstage/errors": "^1.3.1",
|
|
43
43
|
"@backstage/plugin-catalog-node": "^2.2.2",
|
|
44
44
|
"@backstage/plugin-permission-common": "^0.9.9",
|
|
45
|
-
"@red-hat-developer-hub/backstage-plugin-adoption-insights-common": "^0.9.
|
|
45
|
+
"@red-hat-developer-hub/backstage-plugin-adoption-insights-common": "^0.9.1",
|
|
46
46
|
"express": "^4.17.1",
|
|
47
47
|
"express-promise-router": "^4.1.0",
|
|
48
48
|
"json-2-csv": "^5.5.11",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
},
|
|
62
62
|
"files": [
|
|
63
63
|
"dist",
|
|
64
|
-
"config.
|
|
64
|
+
"config.d.ts",
|
|
65
65
|
"migrations"
|
|
66
66
|
],
|
|
67
|
-
"configSchema": "config.
|
|
67
|
+
"configSchema": "config.d.ts",
|
|
68
68
|
"typesVersions": {
|
|
69
69
|
"*": {
|
|
70
70
|
"package.json": [
|
package/config.schema.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"app": {
|
|
6
|
-
"type": "object",
|
|
7
|
-
"properties": {
|
|
8
|
-
"analytics": {
|
|
9
|
-
"type": "object",
|
|
10
|
-
"properties": {
|
|
11
|
-
"adoptionInsights": {
|
|
12
|
-
"type": "object",
|
|
13
|
-
"properties": {
|
|
14
|
-
"maxBufferSize": {
|
|
15
|
-
"type": "number",
|
|
16
|
-
"description": "Maximum buffer size for event batching. default 20",
|
|
17
|
-
"visibility": "frontend"
|
|
18
|
-
},
|
|
19
|
-
"flushInterval": {
|
|
20
|
-
"type": "number",
|
|
21
|
-
"description": "Flush interval in millisecond for event batching. All events will be flushed after this interval. default 5000ms",
|
|
22
|
-
"visibility": "frontend"
|
|
23
|
-
},
|
|
24
|
-
"debug": {
|
|
25
|
-
"type": "boolean",
|
|
26
|
-
"description": "Flag to enable Debug mode which logs every event in the browser console. default false",
|
|
27
|
-
"visibility": "frontend"
|
|
28
|
-
},
|
|
29
|
-
"licensedUsers": {
|
|
30
|
-
"type": "number",
|
|
31
|
-
"description": "Total number of licensed users.",
|
|
32
|
-
"visibility": "backend"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|