@dssp/dkpi 1.0.0-alpha.54 → 1.0.0-alpha.56

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.
Files changed (29) hide show
  1. package/assets/images/project-image.png +0 -0
  2. package/dist-client/components/kpi-boxplot-chart.js +48 -76
  3. package/dist-client/components/kpi-boxplot-chart.js.map +1 -1
  4. package/dist-client/components/kpi-radar-chart.d.ts +1 -0
  5. package/dist-client/components/kpi-radar-chart.js +85 -7
  6. package/dist-client/components/kpi-radar-chart.js.map +1 -1
  7. package/dist-client/components/kpi-single-boxplot-chart.js +24 -6
  8. package/dist-client/components/kpi-single-boxplot-chart.js.map +1 -1
  9. package/dist-client/pages/sv-project-complete.js +3 -1
  10. package/dist-client/pages/sv-project-complete.js.map +1 -1
  11. package/dist-client/pages/sv-project-completed-list.d.ts +2 -2
  12. package/dist-client/pages/sv-project-completed-list.js +14 -14
  13. package/dist-client/pages/sv-project-completed-list.js.map +1 -1
  14. package/dist-client/pages/sv-project-detail.d.ts +8 -0
  15. package/dist-client/pages/sv-project-detail.js +203 -58
  16. package/dist-client/pages/sv-project-detail.js.map +1 -1
  17. package/dist-client/pages/sv-project-list.d.ts +7 -2
  18. package/dist-client/pages/sv-project-list.js +13 -13
  19. package/dist-client/pages/sv-project-list.js.map +1 -1
  20. package/dist-client/tsconfig.tsbuildinfo +1 -1
  21. package/dist-server/service/kpi-stat/kpi-stat-query.d.ts +5 -6
  22. package/dist-server/service/kpi-stat/kpi-stat-query.js +108 -100
  23. package/dist-server/service/kpi-stat/kpi-stat-query.js.map +1 -1
  24. package/dist-server/service/kpi-stat/kpi-stat-types.d.ts +5 -12
  25. package/dist-server/service/kpi-stat/kpi-stat-types.js +72 -42
  26. package/dist-server/service/kpi-stat/kpi-stat-types.js.map +1 -1
  27. package/dist-server/tsconfig.tsbuildinfo +1 -1
  28. package/package.json +3 -3
  29. package/schema.graphql +41 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dssp/dkpi",
3
- "version": "1.0.0-alpha.54",
3
+ "version": "1.0.0-alpha.56",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "things-factory": true,
@@ -48,7 +48,7 @@
48
48
  "docker:push": "docker image push hatiolab/dkpi:latest && docker image push hatiolab/dkpi:$npm_package_version"
49
49
  },
50
50
  "dependencies": {
51
- "@dssp/project": "^1.0.0-alpha.54",
51
+ "@dssp/project": "^1.0.0-alpha.56",
52
52
  "@material/web": "^2.1.0",
53
53
  "@operato/chart": "^9.0.0",
54
54
  "@operato/gantt": "^9.0.0",
@@ -103,5 +103,5 @@
103
103
  "devDependencies": {
104
104
  "@things-factory/builder": "^9.0.0"
105
105
  },
106
- "gitHead": "f60f55a4bee820e7c644c97b51f11ae5dadc30f7"
106
+ "gitHead": "0d3ad027d037f129722c5f636c39880d97f38eb7"
107
107
  }
package/schema.graphql CHANGED
@@ -4422,6 +4422,29 @@ type KpiAlert {
4422
4422
  message: String!
4423
4423
  }
4424
4424
 
4425
+ type KpiComprehensiveStats {
4426
+ avgVal: Float!
4427
+ kpiName: String
4428
+ maxVal: Float!
4429
+ medVal: Float!
4430
+ minVal: Float!
4431
+ projectCount: Int!
4432
+ q1Val: Float!
4433
+ q3Val: Float!
4434
+ }
4435
+
4436
+ type KpiComprehensiveStatsByGeoGroup {
4437
+ avgVal: Float!
4438
+ geoGroup: String
4439
+ kpiName: String
4440
+ maxVal: Float!
4441
+ medVal: Float!
4442
+ minVal: Float!
4443
+ projectCount: Int!
4444
+ q1Val: Float!
4445
+ q3Val: Float!
4446
+ }
4447
+
4425
4448
  """History Entity of Kpi"""
4426
4449
  type KpiHistory {
4427
4450
  """Whether this KPI is active (usable) or not."""
@@ -5202,6 +5225,11 @@ input KpiValuePatch {
5202
5225
  version: Int
5203
5226
  }
5204
5227
 
5228
+ type KpiValuesObject {
5229
+ kpiName: String!
5230
+ value: Float!
5231
+ }
5232
+
5205
5233
  """Visualization type for KPI display (CARD, GAUGE, PROGRESS, etc.)"""
5206
5234
  enum KpiVizType {
5207
5235
  BADGE
@@ -9508,6 +9536,7 @@ type Project {
9508
9536
  inputType: String
9509
9537
  inspPassRate: Float
9510
9538
  kpi: Float
9539
+ kpiValues: [KpiValuesObject!]!
9511
9540
  mainPhoto: Attachment
9512
9541
  name: String!
9513
9542
  postalCode: String
@@ -11314,6 +11343,12 @@ type Query {
11314
11343
  sortings: [Sorting!]
11315
11344
  ): KpiValueList!
11316
11345
 
11346
+ """Get KPI box plot statistics for Y-category KPIs by geo group"""
11347
+ kpiYValueComprehensiveStatsByGeoGroup(geoGroup: String): [KpiComprehensiveStatsByGeoGroup!]!
11348
+
11349
+ """Get KPI box plot statistics for Z-category KPIs by geo group"""
11350
+ kpiZValueComprehensiveStatsByGeoGroup(geoGroup: String): [KpiComprehensiveStatsByGeoGroup!]!
11351
+
11317
11352
  """To fetch multiple Kpis"""
11318
11353
  kpis(
11319
11354
  """An array of filter conditions to apply to the list query."""
@@ -12131,6 +12166,12 @@ type Query {
12131
12166
  sortings: [Sorting!]
12132
12167
  ): ActivityThreadList!
12133
12168
 
12169
+ """Get KPI box plot statistics for Z-category KPIs for all projects"""
12170
+ totalKpiYValueComprehensiveStats: [KpiComprehensiveStats!]!
12171
+
12172
+ """Get KPI box plot statistics for Z-category KPIs for all projects"""
12173
+ totalKpiZValueComprehensiveStats: [KpiComprehensiveStats!]!
12174
+
12134
12175
  """Fetches a user by their email address within the current domain."""
12135
12176
  user(
12136
12177
  """The email address of the user to fetch."""