@things-factory/operato-dataset 9.0.18 → 9.0.19

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/schema.graphql CHANGED
@@ -3517,6 +3517,9 @@ type Kpi {
3517
3517
  """Name of the KPI."""
3518
3518
  name: String
3519
3519
 
3520
+ """Aggregation period type for this KPI."""
3521
+ periodType: KpiPeriodType!
3522
+
3520
3523
  """
3521
3524
  Cron schedule string for periodic KPI value aggregation (e.g., "0 0 * * *" for daily).
3522
3525
  """
@@ -3560,6 +3563,9 @@ type Kpi {
3560
3563
  Visualization type for this KPI (e.g., CARD, GAUGE, PROGRESS, BAR, LINE, etc.).
3561
3564
  """
3562
3565
  vizType: KpiVizType
3566
+
3567
+ """Weight for aggregation in parent category."""
3568
+ weight: Float
3563
3569
  }
3564
3570
 
3565
3571
  """KPI 경고/알림 엔티티. KPI 실적, 등급, 목표 미달 등 경고/알림 정보를 제공."""
@@ -3603,6 +3609,9 @@ type KpiCategory {
3603
3609
  """ID of the domain (tenant) for this KPI category."""
3604
3610
  domainId: String
3605
3611
 
3612
+ """Aggregation formula using child KPI codes."""
3613
+ formula: String
3614
+
3606
3615
  """Unique identifier for this KPI category."""
3607
3616
  id: ID!
3608
3617
 
@@ -3612,12 +3621,6 @@ type KpiCategory {
3612
3621
  """Name of the KPI category."""
3613
3622
  name: String!
3614
3623
 
3615
- """Parent category for hierarchical category structure."""
3616
- parent: KpiCategory
3617
-
3618
- """ID of the parent category, if any."""
3619
- parentId: String
3620
-
3621
3624
  """Timestamp when this KPI category was last updated."""
3622
3625
  updatedAt: DateTimeISO
3623
3626
 
@@ -3626,6 +3629,9 @@ type KpiCategory {
3626
3629
 
3627
3630
  """ID of the user who last updated this KPI category."""
3628
3631
  updaterId: String
3632
+
3633
+ """Weight for aggregation in higher-level summary."""
3634
+ weight: Float
3629
3635
  }
3630
3636
 
3631
3637
  type KpiCategoryList {
@@ -3646,14 +3652,17 @@ input KpiCategoryPatch {
3646
3652
  """Detailed description of this KPI category."""
3647
3653
  description: String
3648
3654
 
3655
+ """Aggregation formula using child KPI codes."""
3656
+ formula: String
3657
+
3649
3658
  """ID of the KPI category to update."""
3650
3659
  id: ID
3651
3660
 
3652
3661
  """Name of the KPI category."""
3653
3662
  name: String
3654
3663
 
3655
- """ID of the parent category, if any."""
3656
- parentId: ID
3664
+ """Weight for aggregation in higher-level summary."""
3665
+ weight: Float
3657
3666
  }
3658
3667
 
3659
3668
  """History Entity of Kpi"""
@@ -3676,6 +3685,7 @@ type KpiHistory {
3676
3685
  grades: Object
3677
3686
  id: ID!
3678
3687
  name: String!
3688
+ periodType: KpiPeriodType
3679
3689
 
3680
3690
  """Current state of the KPI (DRAFT, RELEASED, ARCHIVED)."""
3681
3691
  state: String
@@ -3685,6 +3695,9 @@ type KpiHistory {
3685
3695
  updatedAt: DateTimeISO
3686
3696
  updater: User
3687
3697
  version: Float
3698
+
3699
+ """Weight for aggregation in parent category."""
3700
+ weight: Float
3688
3701
  }
3689
3702
 
3690
3703
  type KpiList {
@@ -3697,6 +3710,9 @@ type KpiMetric {
3697
3710
  """Indicates whether this metric is active and usable."""
3698
3711
  active: Boolean
3699
3712
 
3713
+ """데이터 수집 방식"""
3714
+ collectType: KpiMetricCollectType!
3715
+
3700
3716
  """Timestamp when this KPI metric was created."""
3701
3717
  createdAt: DateTimeISO
3702
3718
 
@@ -3727,21 +3743,14 @@ type KpiMetric {
3727
3743
  """Name of the field in the dataset this metric maps to."""
3728
3744
  fieldName: String
3729
3745
 
3730
- """
3731
- Calculation formula for the metric, using other metric codes and operators.
3732
- """
3733
- formula: String
3734
-
3735
3746
  """Unique identifier for this KPI metric."""
3736
3747
  id: ID!
3737
3748
 
3738
3749
  """Metric code, unique within the domain, used in KPI formulas."""
3739
3750
  name: String!
3740
3751
 
3741
- """
3742
- Cron schedule string for periodic KPI value aggregation (e.g., "0 0 * * *" for daily).
3743
- """
3744
- schedule: String
3752
+ """Aggregation period type for this metric."""
3753
+ periodType: KpiMetricPeriodType!
3745
3754
 
3746
3755
  """Schedule ID for the registered cron job."""
3747
3756
  scheduleId: String
@@ -3768,6 +3777,14 @@ type KpiMetric {
3768
3777
  updaterId: String
3769
3778
  }
3770
3779
 
3780
+ """방식: AUTO(자동), MANUAL(수동), IMPORT(임포트), EXTERNAL(외부API)"""
3781
+ enum KpiMetricCollectType {
3782
+ AUTO
3783
+ EXTERNAL
3784
+ IMPORT
3785
+ MANUAL
3786
+ }
3787
+
3771
3788
  type KpiMetricList {
3772
3789
  items: [KpiMetric!]!
3773
3790
  total: Int!
@@ -3775,18 +3792,19 @@ type KpiMetricList {
3775
3792
 
3776
3793
  input KpiMetricPatch {
3777
3794
  active: Boolean
3795
+
3796
+ """데이터 수집 방식"""
3797
+ collectType: KpiMetricCollectType
3778
3798
  cuFlag: String
3779
3799
  dataSetId: ID
3780
3800
  description: String
3781
3801
  fieldName: String
3782
-
3783
- """
3784
- Calculation formula for the metric, using other metric codes and operators.
3785
- """
3786
- formula: String
3787
3802
  id: ID
3788
3803
  name: String
3789
3804
 
3805
+ """Aggregation period type for this metric."""
3806
+ periodType: KpiMetricPeriodType
3807
+
3790
3808
  """
3791
3809
  Cron schedule string for periodic KPI value aggregation (e.g., "0 0 * * *" for daily).
3792
3810
  """
@@ -3802,6 +3820,85 @@ input KpiMetricPatch {
3802
3820
  unit: String
3803
3821
  }
3804
3822
 
3823
+ """Aggregation period type for metric (DAY, WEEK, MONTH, QUARTER, RANGE)"""
3824
+ enum KpiMetricPeriodType {
3825
+ DAY
3826
+ MONTH
3827
+ QUARTER
3828
+ RANGE
3829
+ WEEK
3830
+ }
3831
+
3832
+ """
3833
+ Current value for each KPI metric (can be used for both state and history).
3834
+ """
3835
+ type KpiMetricValue {
3836
+ createdAt: DateTimeISO
3837
+ creator: User
3838
+ creatorId: String
3839
+ domain: Domain
3840
+ domainId: String
3841
+
3842
+ """Group key for this value (organization, line, user, etc.)"""
3843
+ group: String
3844
+ id: ID!
3845
+ meta: Object
3846
+ metric: KpiMetric!
3847
+ metricId: String!
3848
+ periodType: KpiPeriodType!
3849
+ unit: String
3850
+ updatedAt: DateTimeISO
3851
+ updater: User
3852
+ updaterId: String
3853
+ value: Float!
3854
+
3855
+ """
3856
+ Date or period for which this metric value is recorded (e.g., day: YYYY-MM-DD, month: YYYY-MM, range: YYYY-MM-DD~YYYY-MM-DD).
3857
+ """
3858
+ valueDate: String!
3859
+ }
3860
+
3861
+ type KpiMetricValueList {
3862
+ items: [KpiMetricValue!]!
3863
+ total: Int!
3864
+ }
3865
+
3866
+ """
3867
+ Input type for updating an existing metric value. Used in mutations to patch metric value details.
3868
+ """
3869
+ input KpiMetricValuePatch {
3870
+ """Custom flag for update operations (internal use)."""
3871
+ cuFlag: String
3872
+
3873
+ """Group key for this value (organization, line, user, etc.)"""
3874
+ group: String
3875
+
3876
+ """ID of the metric value to update."""
3877
+ id: ID
3878
+
3879
+ """
3880
+ Extended or non-numeric information related to this metric value, stored as JSON. Can include status, comments, or other metadata.
3881
+ """
3882
+ meta: Object
3883
+
3884
+ """ID of the metric to which this value belongs."""
3885
+ metricId: ID
3886
+
3887
+ """Aggregation period type for this metric value."""
3888
+ periodType: KpiPeriodType
3889
+
3890
+ """Unit of measurement for this metric value."""
3891
+ unit: String
3892
+
3893
+ """The value for this metric and period."""
3894
+ value: Float
3895
+
3896
+ """
3897
+ Date or period for which this metric value is recorded (e.g., day, month, quarter, range).
3898
+ """
3899
+ valueDate: String
3900
+ }
3901
+
3805
3902
  """
3806
3903
  Input type for updating an existing KPI. Used in mutations to patch KPI details.
3807
3904
  """
@@ -3853,6 +3950,18 @@ input KpiPatch {
3853
3950
  Visualization type for this KPI (e.g., CARD, GAUGE, PROGRESS, BAR, LINE, etc.).
3854
3951
  """
3855
3952
  vizType: KpiVizType
3953
+
3954
+ """Weight for aggregation in parent category."""
3955
+ weight: Float
3956
+ }
3957
+
3958
+ """Aggregation period type for KPI (DAY, WEEK, MONTH, QUARTER, RANGE)"""
3959
+ enum KpiPeriodType {
3960
+ DAY
3961
+ MONTH
3962
+ QUARTER
3963
+ RANGE
3964
+ WEEK
3856
3965
  }
3857
3966
 
3858
3967
  """State enumeration of a KPI (DRAFT, RELEASED, ARCHIVED)"""
@@ -3880,13 +3989,8 @@ type KpiValue {
3880
3989
  domainId: String
3881
3990
  grade: GradeInfo
3882
3991
 
3883
- """
3884
- ID of the group (organization, department, project, etc.) this value is associated with.
3885
- """
3886
- groupId: String
3887
-
3888
- """Type of the group (e.g., USER, DEPT, PROJECT) for this value."""
3889
- groupType: String
3992
+ """Group key for this value (organization, line, user, etc.)"""
3993
+ group: String
3890
3994
 
3891
3995
  """Unique identifier for this KPI value record."""
3892
3996
  id: ID!
@@ -3907,6 +4011,9 @@ type KpiValue {
3907
4011
  """
3908
4012
  meta: Object
3909
4013
 
4014
+ """Aggregation period type for this KPI value."""
4015
+ periodType: KpiPeriodType!
4016
+
3910
4017
  """Source of the value (e.g., system, user, external integration)."""
3911
4018
  source: String
3912
4019
 
@@ -3923,7 +4030,7 @@ type KpiValue {
3923
4030
  value: Float!
3924
4031
 
3925
4032
  """
3926
- Date or period for which this KPI value is recorded (e.g., day, month, quarter).
4033
+ Date or period for which this KPI value is recorded (e.g., day: YYYY-MM-DD, month: YYYY-MM, quarter: YYYY-Qn, range: YYYY-MM-DD~YYYY-MM-DD).
3927
4034
  """
3928
4035
  valueDate: String!
3929
4036
 
@@ -3949,13 +4056,8 @@ input KpiValuePatch {
3949
4056
  """Custom flag for update operations (internal use)."""
3950
4057
  cuFlag: String
3951
4058
 
3952
- """
3953
- ID of the group (organization, department, project, etc.) this value is associated with.
3954
- """
3955
- groupId: String
3956
-
3957
- """Type of the group (e.g., USER, DEPT, PROJECT) for this value."""
3958
- groupType: String
4059
+ """Group key for this value (organization, line, user, etc.)"""
4060
+ group: String
3959
4061
 
3960
4062
  """ID of the KPI value to update."""
3961
4063
  id: ID
@@ -4642,9 +4744,15 @@ type Mutation {
4642
4744
  """Create a new KPI metric with the provided details."""
4643
4745
  createKpiMetric(
4644
4746
  """Input object containing details for the new KPI metric."""
4645
- metric: NewKpiMetric!
4747
+ kpiMetric: NewKpiMetric!
4646
4748
  ): KpiMetric!
4647
4749
 
4750
+ """Create a new metric value with the provided details."""
4751
+ createKpiMetricValue(
4752
+ """Input object containing details for the new metric value."""
4753
+ metricValue: NewKpiMetricValue!
4754
+ ): KpiMetricValue!
4755
+
4648
4756
  """Create a new KPI value with the provided details."""
4649
4757
  createKpiValue(
4650
4758
  """Input object containing details for the new KPI value."""
@@ -4939,6 +5047,12 @@ type Mutation {
4939
5047
  """To delete KpiMetric"""
4940
5048
  deleteKpiMetric(id: String!): Boolean!
4941
5049
 
5050
+ """To delete KpiMetricValue"""
5051
+ deleteKpiMetricValue(id: String!): Boolean!
5052
+
5053
+ """To delete multiple KpiMetricValues"""
5054
+ deleteKpiMetricValues(ids: [String!]!): Boolean!
5055
+
4942
5056
  """To delete multiple KpiMetrics"""
4943
5057
  deleteKpiMetrics(ids: [String!]!): Boolean!
4944
5058
 
@@ -5217,6 +5331,9 @@ type Mutation {
5217
5331
  """To import multiple KpiCategories"""
5218
5332
  importKpiCategories(kpiCategories: [KpiCategoryPatch!]!): Boolean!
5219
5333
 
5334
+ """To import multiple KpiMetricValues"""
5335
+ importKpiMetricValues(metricValues: [KpiMetricValuePatch!]!): Boolean!
5336
+
5220
5337
  """To import multiple KpiMetrics"""
5221
5338
  importKpiMetrics(kpiMetrics: [KpiMetricPatch!]!): Boolean!
5222
5339
 
@@ -5307,6 +5424,21 @@ type Mutation {
5307
5424
  """Recalculate grades for all KpiValues of a specific KPI"""
5308
5425
  recalculateGradesForKpi(kpiId: String!): Boolean!
5309
5426
 
5427
+ """Record a metric value by metric name, value, meta, and group."""
5428
+ recordKpiMetricValue(
5429
+ """Group key for this value (organization, line, user, etc.)"""
5430
+ group: String
5431
+
5432
+ """Extended or non-numeric information (JSON)."""
5433
+ meta: Object
5434
+
5435
+ """Metric code/name."""
5436
+ metricName: String!
5437
+
5438
+ """Metric value (number)."""
5439
+ value: Float
5440
+ ): KpiMetricValue!
5441
+
5310
5442
  """To refresh oauth2 access token"""
5311
5443
  refreshOauth2AccessToken(id: String!): Oauth2Client!
5312
5444
 
@@ -5556,6 +5688,9 @@ type Mutation {
5556
5688
  """To modify KpiMetric information"""
5557
5689
  updateKpiMetric(id: String!, patch: KpiMetricPatch!): KpiMetric!
5558
5690
 
5691
+ """To modify KpiMetricValue information"""
5692
+ updateKpiMetricValue(id: String!, patch: KpiMetricValuePatch!): KpiMetricValue!
5693
+
5559
5694
  """To modify KpiValue information"""
5560
5695
  updateKpiValue(id: String!, patch: KpiValuePatch!): KpiValue!
5561
5696
 
@@ -5648,7 +5783,7 @@ type Mutation {
5648
5783
  updateMultipleEntityColumn(patches: [EntityColumnPatch!]!): [EntityColumn!]!
5649
5784
 
5650
5785
  """To modify multiple Kpis' information"""
5651
- updateMultipleKpi(patches: [KpiPatch!]!): Boolean!
5786
+ updateMultipleKpi(patches: [KpiPatch!]!): [Kpi!]!
5652
5787
 
5653
5788
  """To modify multiple KpiCategories' information"""
5654
5789
  updateMultipleKpiCategory(patches: [KpiCategoryPatch!]!): [KpiCategory!]!
@@ -5656,6 +5791,9 @@ type Mutation {
5656
5791
  """To modify multiple KpiMetrics' information"""
5657
5792
  updateMultipleKpiMetric(patches: [KpiMetricPatch!]!): [KpiMetric!]!
5658
5793
 
5794
+ """To modify multiple KpiMetricValues' information"""
5795
+ updateMultipleKpiMetricValue(patches: [KpiMetricValuePatch!]!): [KpiMetricValue!]!
5796
+
5659
5797
  """To modify multiple KpiValues' information"""
5660
5798
  updateMultipleKpiValue(patches: [KpiValuePatch!]!): [KpiValue!]!
5661
5799
 
@@ -6379,6 +6517,9 @@ input NewKpi {
6379
6517
  Visualization type for this KPI (e.g., CARD, GAUGE, PROGRESS, BAR, LINE, etc.).
6380
6518
  """
6381
6519
  vizType: KpiVizType
6520
+
6521
+ """Weight for aggregation in parent category."""
6522
+ weight: Float
6382
6523
  }
6383
6524
 
6384
6525
  """
@@ -6391,11 +6532,14 @@ input NewKpiCategory {
6391
6532
  """Detailed description of this KPI category."""
6392
6533
  description: String
6393
6534
 
6535
+ """Aggregation formula using child KPI codes."""
6536
+ formula: String
6537
+
6394
6538
  """Name of the KPI category."""
6395
6539
  name: String!
6396
6540
 
6397
- """ID of the parent category, if any."""
6398
- parentId: ID
6541
+ """Weight for aggregation in higher-level summary."""
6542
+ weight: Float
6399
6543
  }
6400
6544
 
6401
6545
  """
@@ -6405,6 +6549,9 @@ input NewKpiMetric {
6405
6549
  """Indicates whether this metric is active and usable."""
6406
6550
  active: Boolean
6407
6551
 
6552
+ """데이터 수집 방식"""
6553
+ collectType: KpiMetricCollectType
6554
+
6408
6555
  """ID of the source dataset for this metric."""
6409
6556
  dataSetId: ID
6410
6557
 
@@ -6414,14 +6561,12 @@ input NewKpiMetric {
6414
6561
  """Name of the field in the dataset this metric maps to."""
6415
6562
  fieldName: String
6416
6563
 
6417
- """
6418
- Calculation formula for the metric, using other metric codes and operators.
6419
- """
6420
- formula: String
6421
-
6422
6564
  """Metric code, unique within the domain, used in KPI formulas."""
6423
6565
  name: String!
6424
6566
 
6567
+ """Aggregation period type for this metric."""
6568
+ periodType: KpiMetricPeriodType
6569
+
6425
6570
  """
6426
6571
  Cron schedule string for periodic KPI value aggregation (e.g., "0 0 * * *" for daily).
6427
6572
  """
@@ -6444,16 +6589,41 @@ input NewKpiMetric {
6444
6589
  }
6445
6590
 
6446
6591
  """
6447
- Input type for creating a new KPI value. Used in mutations to provide KPI value details.
6592
+ Input type for creating a new metric value. Used in mutations to provide metric value details.
6448
6593
  """
6449
- input NewKpiValue {
6594
+ input NewKpiMetricValue {
6595
+ """Group key for this value (organization, line, user, etc.)"""
6596
+ group: String
6597
+
6450
6598
  """
6451
- ID of the group (organization, department, project, etc.) this value is associated with.
6599
+ Extended or non-numeric information related to this metric value, stored as JSON. Can include status, comments, or other metadata.
6452
6600
  """
6453
- groupId: String
6601
+ meta: Object
6602
+
6603
+ """ID of the metric to which this value belongs."""
6604
+ metricId: ID!
6454
6605
 
6455
- """Type of the group (e.g., USER, DEPT, PROJECT) for this value."""
6456
- groupType: String
6606
+ """Aggregation period type for this metric value."""
6607
+ periodType: KpiPeriodType!
6608
+
6609
+ """Unit of measurement for this metric value."""
6610
+ unit: String
6611
+
6612
+ """The value for this metric and period."""
6613
+ value: Float!
6614
+
6615
+ """
6616
+ Date or period for which this metric value is recorded (e.g., day, month, quarter, range).
6617
+ """
6618
+ valueDate: String!
6619
+ }
6620
+
6621
+ """
6622
+ Input type for creating a new KPI value. Used in mutations to provide KPI value details.
6623
+ """
6624
+ input NewKpiValue {
6625
+ """Group key for this value (organization, line, user, etc.)"""
6626
+ group: String
6457
6627
 
6458
6628
  """
6459
6629
  Indicates whether this value was entered manually or generated automatically.
@@ -8807,6 +8977,27 @@ type Query {
8807
8977
  id: String!
8808
8978
  ): KpiMetric
8809
8979
 
8980
+ """Fetch a single metric value by its unique identifier."""
8981
+ kpiMetricValue(
8982
+ """Unique identifier of the metric value to fetch."""
8983
+ id: String!
8984
+ ): KpiMetricValue
8985
+
8986
+ """To fetch multiple KpiMetricValues"""
8987
+ kpiMetricValues(
8988
+ """An array of filter conditions to apply to the list query."""
8989
+ filters: [Filter!]
8990
+
8991
+ """Inherited value type for the list query."""
8992
+ inherited: InheritedValueType
8993
+
8994
+ """Pagination options for the list query."""
8995
+ pagination: Pagination
8996
+
8997
+ """Sorting options for the list query."""
8998
+ sortings: [Sorting!]
8999
+ ): KpiMetricValueList!
9000
+
8810
9001
  """To fetch multiple KpiMetrics"""
8811
9002
  kpiMetrics(
8812
9003
  """An array of filter conditions to apply to the list query."""