@things-factory/kpi 9.0.37 → 9.0.39
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/dist-server/service/kpi-value/kpi-value.d.ts +1 -0
- package/dist-server/service/kpi-value/kpi-value.js +14 -1
- package/dist-server/service/kpi-value/kpi-value.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/server/service/kpi-value/kpi-value.ts +13 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/kpi",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.39",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"things-factory": true,
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
"@operato/styles": "^9.0.0",
|
|
43
43
|
"@operato/utils": "^9.0.0",
|
|
44
44
|
"@things-factory/auth-base": "^9.0.36",
|
|
45
|
-
"@things-factory/dataset": "^9.0.
|
|
45
|
+
"@things-factory/dataset": "^9.0.38",
|
|
46
46
|
"@things-factory/shell": "^9.0.34"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "235bca33cec4a2ca27078b04c91ce1f3cf99466b"
|
|
49
49
|
}
|
|
@@ -32,6 +32,8 @@ registerEnumType(KpiValueInputType, {
|
|
|
32
32
|
@Entity()
|
|
33
33
|
@Index('ix_kpi_value_latest', ['domain', 'kpi', 'valueDate', 'kpiOrgScope', 'version'], { unique: true })
|
|
34
34
|
@Index('ix_kpi_value_latest_for_query', ['domain', 'kpi', 'valueDate', 'kpiOrgScope'], { unique: false })
|
|
35
|
+
@Index('ix_kpi_value_group_kpi', ['domain', 'group', 'kpi', 'valueDate'], { unique: false })
|
|
36
|
+
@Index('ix_kpi_value_kpi_group', ['domain', 'kpi', 'group', 'valueDate'], { unique: false })
|
|
35
37
|
@ObjectType({ description: 'Entity for KpiValue' })
|
|
36
38
|
export class KpiValue {
|
|
37
39
|
@PrimaryGeneratedColumn('uuid')
|
|
@@ -79,8 +81,18 @@ export class KpiValue {
|
|
|
79
81
|
})
|
|
80
82
|
score?: number
|
|
81
83
|
|
|
84
|
+
@Column({ nullable: true })
|
|
85
|
+
@Field(type => String, {
|
|
86
|
+
nullable: true,
|
|
87
|
+
description: 'Group key for this value (organization, line, user, project, etc.)'
|
|
88
|
+
})
|
|
89
|
+
group?: string
|
|
90
|
+
|
|
82
91
|
@ManyToOne(() => KpiOrgScope, { nullable: true })
|
|
83
|
-
@Field(type => KpiOrgScope, {
|
|
92
|
+
@Field(type => KpiOrgScope, {
|
|
93
|
+
nullable: true,
|
|
94
|
+
description: 'Reference to the organization scope mapping for this KPI value.'
|
|
95
|
+
})
|
|
84
96
|
kpiOrgScope?: KpiOrgScope
|
|
85
97
|
|
|
86
98
|
@RelationId((kpiValue: KpiValue) => kpiValue.kpiOrgScope)
|