@things-factory/dataset 6.2.58 → 6.2.61

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 (66) hide show
  1. package/client/activities/activity-data-collect-edit.ts +1 -0
  2. package/client/activities/activity-data-collect-view.ts +1 -0
  3. package/client/activities/activity-ooc-resolve-edit.ts +1 -0
  4. package/client/activities/activity-ooc-resolve-view.ts +1 -0
  5. package/client/activities/activity-ooc-review-edit.ts +1 -0
  6. package/client/activities/activity-ooc-review-view.ts +1 -0
  7. package/client/pages/data-entry/data-entry-list-page.ts +1 -0
  8. package/client/pages/data-report/data-report-list-page.ts +1 -0
  9. package/client/pages/data-set/data-item-list.ts +9 -0
  10. package/client/pages/data-set/data-set-list-page.ts +1 -0
  11. package/client/pages/data-summary/data-summary-period-page.ts +1 -0
  12. package/client/pages/data-summary/data-summary-search-page.ts +1 -0
  13. package/client/pages/data-summary/data-summary-view.ts +1 -0
  14. package/dist-client/activities/activity-data-collect-edit.js +1 -0
  15. package/dist-client/activities/activity-data-collect-edit.js.map +1 -1
  16. package/dist-client/activities/activity-data-collect-view.js +1 -0
  17. package/dist-client/activities/activity-data-collect-view.js.map +1 -1
  18. package/dist-client/activities/activity-ooc-resolve-edit.js +1 -0
  19. package/dist-client/activities/activity-ooc-resolve-edit.js.map +1 -1
  20. package/dist-client/activities/activity-ooc-resolve-view.js +1 -0
  21. package/dist-client/activities/activity-ooc-resolve-view.js.map +1 -1
  22. package/dist-client/activities/activity-ooc-review-edit.js +1 -0
  23. package/dist-client/activities/activity-ooc-review-edit.js.map +1 -1
  24. package/dist-client/activities/activity-ooc-review-view.js +1 -0
  25. package/dist-client/activities/activity-ooc-review-view.js.map +1 -1
  26. package/dist-client/pages/data-entry/data-entry-list-page.js +1 -0
  27. package/dist-client/pages/data-entry/data-entry-list-page.js.map +1 -1
  28. package/dist-client/pages/data-report/data-report-list-page.js +1 -0
  29. package/dist-client/pages/data-report/data-report-list-page.js.map +1 -1
  30. package/dist-client/pages/data-set/data-item-list.js +9 -0
  31. package/dist-client/pages/data-set/data-item-list.js.map +1 -1
  32. package/dist-client/pages/data-set/data-set-list-page.js +1 -0
  33. package/dist-client/pages/data-set/data-set-list-page.js.map +1 -1
  34. package/dist-client/pages/data-summary/data-summary-period-page.js +1 -0
  35. package/dist-client/pages/data-summary/data-summary-period-page.js.map +1 -1
  36. package/dist-client/pages/data-summary/data-summary-search-page.js +1 -0
  37. package/dist-client/pages/data-summary/data-summary-search-page.js.map +1 -1
  38. package/dist-client/pages/data-summary/data-summary-view.js +1 -0
  39. package/dist-client/pages/data-summary/data-summary-view.js.map +1 -1
  40. package/dist-client/tsconfig.tsbuildinfo +1 -1
  41. package/dist-server/controllers/create-data-sample.js +22 -24
  42. package/dist-server/controllers/create-data-sample.js.map +1 -1
  43. package/dist-server/service/data-set/data-item-type.js +46 -20
  44. package/dist-server/service/data-set/data-item-type.js.map +1 -1
  45. package/dist-server/service/data-set/data-set.js +54 -30
  46. package/dist-server/service/data-set/data-set.js.map +1 -1
  47. package/dist-server/tsconfig.tsbuildinfo +1 -1
  48. package/helps/dataset/data-set.ja.md +103 -0
  49. package/helps/dataset/data-set.ko.md +101 -0
  50. package/helps/dataset/data-set.md +103 -43
  51. package/helps/dataset/data-set.ms.md +103 -0
  52. package/helps/dataset/data-set.zh.md +103 -0
  53. package/helps/dataset/ui/data-item-list.ja.md +91 -0
  54. package/helps/dataset/ui/data-item-list.ko.md +90 -0
  55. package/helps/dataset/ui/data-item-list.md +88 -26
  56. package/helps/dataset/ui/data-item-list.ms.md +90 -0
  57. package/helps/dataset/ui/data-item-list.zh.md +88 -0
  58. package/package.json +2 -2
  59. package/server/controllers/create-data-sample.ts +23 -25
  60. package/server/service/data-set/data-item-type.ts +48 -20
  61. package/server/service/data-set/data-set.ts +56 -30
  62. package/translations/en.json +3 -2
  63. package/translations/ja.json +1 -0
  64. package/translations/ko.json +3 -2
  65. package/translations/ms.json +1 -0
  66. package/translations/zh.json +3 -2
@@ -36,25 +36,36 @@ registerEnumType(DataItemStatType, {
36
36
 
37
37
  @ObjectType({ description: 'Entity for DataItem' })
38
38
  export class DataItem {
39
- @Field()
39
+ @Field({ description: 'The name of the data item' })
40
40
  name: string
41
41
 
42
- @Field({ nullable: true })
42
+ @Field({ nullable: true, description: 'A description of the data item' })
43
43
  description?: string
44
44
 
45
- @Field({ nullable: true })
45
+ @Field({
46
+ nullable: true,
47
+ description:
48
+ 'Specifies a key name to be used as a property in a JSON-like object, representing a subfield of a dataset record.'
49
+ })
46
50
  tag?: string
47
51
 
48
- @Field({ nullable: true })
52
+ @Field({
53
+ nullable: true,
54
+ description:
55
+ 'Specifies a grouping identifier for data items with related content, allowing them to be displayed as subgroups within the overall dataset.'
56
+ })
57
+ group?: string
58
+
59
+ @Field({ nullable: true, description: 'Indicates if the data item is active' })
49
60
  active?: boolean
50
61
 
51
- @Field({ nullable: true })
62
+ @Field({ nullable: true, description: 'Indicates if the data item is hidden' })
52
63
  hidden?: boolean
53
64
 
54
- @Field({ nullable: true })
65
+ @Field({ nullable: true, description: 'The type of the data item' })
55
66
  type?: DataItemType
56
67
 
57
- @Field(type => ScalarObject, { nullable: true })
68
+ @Field(type => ScalarObject, { nullable: true, description: 'Options associated with the data item type' })
58
69
  options?: { [option: string]: any }
59
70
 
60
71
  @Field({
@@ -63,31 +74,45 @@ export class DataItem {
63
74
  })
64
75
  stat?: DataItemStatType
65
76
 
66
- @Field({ nullable: true })
77
+ @Field({ nullable: true, description: 'The unit of measurement for the data item' })
67
78
  unit?: string
68
79
 
69
- @Field(type => Int, { nullable: true })
80
+ @Field(type => Int, { nullable: true, description: 'The maximum number of data values allowed for this field' })
70
81
  quota?: number
71
82
 
72
- @Field(type => ScalarObject, { nullable: true })
83
+ @Field(type => ScalarObject, {
84
+ nullable: true,
85
+ description: 'Specifies the valid ranges and parameters for this data item.'
86
+ })
73
87
  spec?: { [key: string]: any }
74
88
  }
75
89
 
76
90
  @InputType()
77
91
  export class DataItemPatch {
78
- @Field({ nullable: true })
92
+ @Field({ nullable: true, description: 'The name of the data item' })
79
93
  name?: string
80
94
 
81
- @Field({ nullable: true })
95
+ @Field({ nullable: true, description: 'A description of the data item' })
82
96
  description?: string
83
97
 
84
- @Field({ nullable: true })
98
+ @Field({
99
+ nullable: true,
100
+ description:
101
+ 'Specifies a key name to be used as a property in a JSON-like object, representing a subfield of a dataset record.'
102
+ })
85
103
  tag?: string
86
104
 
87
- @Field(type => DataItemType, { nullable: true })
105
+ @Field({
106
+ nullable: true,
107
+ description:
108
+ 'Specifies a grouping identifier for data items with related content, allowing them to be displayed as subgroups within the overall dataset.'
109
+ })
110
+ group?: string
111
+
112
+ @Field(type => DataItemType, { nullable: true, description: 'The type of the data item' })
88
113
  type?: DataItemType
89
114
 
90
- @Field(type => ScalarObject, { nullable: true })
115
+ @Field(type => ScalarObject, { nullable: true, description: 'Options associated with the data item type' })
91
116
  options?: { [option: string]: any }
92
117
 
93
118
  @Field({
@@ -96,18 +121,21 @@ export class DataItemPatch {
96
121
  })
97
122
  stat?: DataItemStatType
98
123
 
99
- @Field({ nullable: true })
124
+ @Field({ nullable: true, description: 'The unit of measurement for the data item' })
100
125
  unit?: string
101
126
 
102
- @Field(type => Int, { nullable: true })
127
+ @Field(type => Int, { nullable: true, description: 'The maximum number of data values allowed for this field' })
103
128
  quota?: number
104
129
 
105
- @Field({ nullable: true })
130
+ @Field({ nullable: true, description: 'Indicates if the data item is active' })
106
131
  active?: boolean
107
132
 
108
- @Field({ nullable: true })
133
+ @Field({ nullable: true, description: 'Indicates if the data item is hidden' })
109
134
  hidden?: boolean
110
135
 
111
- @Field(type => ScalarObject, { nullable: true })
136
+ @Field(type => ScalarObject, {
137
+ nullable: true,
138
+ description: 'Specifies the valid ranges and parameters for this data item.'
139
+ })
112
140
  spec?: { [key: string]: any }
113
141
  }
@@ -95,34 +95,34 @@ export class DataSetState {
95
95
  @ObjectType({ description: 'Entity for DataSet' })
96
96
  export class DataSet {
97
97
  @PrimaryGeneratedColumn('uuid')
98
- @Field(type => ID)
98
+ @Field(type => ID, { description: 'The unique identifier of the dataset' })
99
99
  readonly id: string
100
100
 
101
101
  @ManyToOne(type => Domain)
102
- @Field({ nullable: true })
102
+ @Field({ nullable: true, description: 'The domain to which the dataset belongs' })
103
103
  domain?: Domain
104
104
 
105
105
  @RelationId((dataSet: DataSet) => dataSet.domain)
106
106
  domainId?: string
107
107
 
108
108
  @Column()
109
- @Field()
109
+ @Field({ description: 'The name of the dataset' })
110
110
  name?: string
111
111
 
112
112
  @Column({ nullable: true })
113
- @Field({ nullable: true })
113
+ @Field({ nullable: true, description: 'A description of the dataset' })
114
114
  description?: string
115
115
 
116
116
  @VersionColumn({ nullable: true, default: 1 })
117
- @Field({ nullable: true })
117
+ @Field({ nullable: true, description: 'The version of the dataset' })
118
118
  version?: number = 1
119
119
 
120
120
  @Column({ nullable: true })
121
- @Field({ nullable: true })
121
+ @Field({ nullable: true, description: 'Indicates whether the dataset is currently active or in use.' })
122
122
  active?: boolean
123
123
 
124
124
  @ManyToOne(type => DataKeySet, { nullable: true })
125
- @Field(type => DataKeySet, { nullable: true })
125
+ @Field(type => DataKeySet, { nullable: true, description: 'The key set used for this dataset' })
126
126
  dataKeySet?: DataKeySet
127
127
 
128
128
  @RelationId((dataSet: DataSet) => dataSet.dataKeySet)
@@ -159,98 +159,124 @@ export class DataSet {
159
159
  @Column('simple-json', { nullable: true })
160
160
  @Field(type => [ApprovalLineItem], {
161
161
  nullable: true,
162
- description: 'Approval line for handling OOC issues for that dataset'
162
+ description: 'Approval line for handling abnormal data occurance issues for that dataset'
163
163
  })
164
164
  outlierApprovalLine?: ApprovalLineItem[]
165
165
 
166
166
  @Column({ nullable: true })
167
- @Field({ nullable: true })
167
+ @Field({ nullable: true, description: 'The type of the dataset' })
168
168
  type?: 'manual' | 'automatic' | string
169
169
 
170
170
  @Column({ nullable: true })
171
- @Field({ nullable: true })
171
+ @Field({
172
+ nullable: true,
173
+ description: `Specifies the method of data entry for the dataset. If set to "generated", data entry screens are automatically generated based on the defined data items. For other types, specific entry screens are configured for each type and specified in the "entryView" field.`
174
+ })
172
175
  entryType?: DataSetEntryType
173
176
 
174
177
  @Column({ nullable: true })
175
- @Field({ nullable: true })
178
+ @Field({
179
+ nullable: true,
180
+ description: `Specifies the custom data entry screen or view for the dataset. When "entryType" is not "generated", this field indicates the screen to be used for data entry. When "entryType" is "generated", this field may not apply.`
181
+ })
176
182
  entryView?: string
177
183
 
178
184
  @Column({ nullable: true })
179
- @Field({ nullable: true })
185
+ @Field({
186
+ nullable: true,
187
+ description: `Specifies the method of data monitoring for the dataset. If set to "generated", monitoring screens are automatically generated based on the dataset configuration. For other types, specific monitoring screens are configured for each type and specified in the "monitorView" field.`
188
+ })
180
189
  monitorType?: DataSetMonitorType
181
190
 
182
191
  @Column({ nullable: true })
183
- @Field({ nullable: true })
192
+ @Field({
193
+ nullable: true,
194
+ description: `Specifies the custom data monitoring screen or view for the dataset. When "monitorType" is not "generated", this field indicates the screen to be used for data monitoring. When "monitorType" is "generated", this field may not apply.`
195
+ })
184
196
  monitorView?: string
185
197
 
186
198
  @Column({ nullable: true })
187
- @Field({ nullable: true })
199
+ @Field({
200
+ nullable: true,
201
+ description: `Specifies the method of reporting for the dataset. If set to "generated", report templates are automatically generated based on the dataset configuration. For other types, specific report templates are configured for each type and specified in the "reportView" field.`
202
+ })
188
203
  reportType?: DataSetReportType
189
204
 
190
205
  @Column({ nullable: true })
191
- @Field({ nullable: true })
206
+ @Field({
207
+ nullable: true,
208
+ description: `Specifies the custom report template or view for the dataset. When "reportType" is not "generated", this field indicates the report template or view to be used for reporting. When "reportType" is "generated", this field may not apply.`
209
+ })
192
210
  reportView?: string
193
211
 
194
- @Field({ nullable: true })
212
+ @Field({ nullable: true, description: 'The report template of the dataset' })
195
213
  reportTemplate?: string
196
214
 
197
215
  @Column({ nullable: true })
198
- @Field({ nullable: true })
216
+ @Field({
217
+ nullable: true,
218
+ description:
219
+ 'Specifies the intended purpose or role of the dataset within the system. It helps users understand why the dataset was created and guides the specification of data items accordingly. Common use case options may include "QA," "CCP," "SPC," and others.'
220
+ })
199
221
  useCase?: string
200
222
 
201
223
  @Column('simple-json', { nullable: true })
202
- @Field(type => ScalarObject, { nullable: true })
224
+ @Field(type => ScalarObject, {
225
+ nullable: true,
226
+ description:
227
+ "Specifies the partition keys used to distribute and organize the dataset's data. Partition keys are properties or attributes that determine how data is logically grouped, stored, and retrieved. They enable efficient data management and querying by allowing data to be organized into smaller, manageable partitions or segments."
228
+ })
203
229
  partitionKeys?: { [key: string]: any }
204
230
 
205
231
  @Column('simple-json', { nullable: true })
206
- @Field(type => [DataItem], { nullable: true })
232
+ @Field(type => [DataItem], { nullable: true, description: 'Data items for the dataset' })
207
233
  dataItems: DataItem[]
208
234
 
209
235
  @Column({ nullable: true })
210
- @Field({ nullable: true })
236
+ @Field({ nullable: true, description: 'The schedule of the dataset' })
211
237
  schedule?: string
212
238
 
213
239
  @Column({ nullable: true })
214
- @Field({ nullable: true })
240
+ @Field({ nullable: true, description: 'The timezone of the dataset' })
215
241
  timezone?: string
216
242
 
217
243
  @Column({ nullable: true })
218
- @Field({ nullable: true })
244
+ @Field({ nullable: true, description: 'Indicates if the dataset requires review' })
219
245
  requiresReview?: boolean
220
246
 
221
247
  @Column({ nullable: true })
222
- @Field({ nullable: true })
248
+ @Field({ nullable: true, description: 'The schedule ID of the dataset' })
223
249
  scheduleId?: string
224
250
 
225
251
  @Column({ nullable: true })
226
- @Field({ nullable: true })
252
+ @Field({ nullable: true, description: 'The summary period of the dataset' })
227
253
  summaryPeriod?: DataSetSummaryPeriodType
228
254
 
229
255
  @Column({ nullable: true })
230
- @Field({ nullable: true })
256
+ @Field({ nullable: true, description: 'The summary schedule of the dataset' })
231
257
  summarySchedule?: string
232
258
 
233
259
  @Column({ nullable: true })
234
- @Field({ nullable: true })
260
+ @Field({ nullable: true, description: 'The summary schedule ID of the dataset' })
235
261
  summaryScheduleId?: string
236
262
 
237
263
  @CreateDateColumn()
238
- @Field({ nullable: true })
264
+ @Field({ nullable: true, description: 'The date and time the dataset was created' })
239
265
  createdAt?: Date
240
266
 
241
267
  @UpdateDateColumn()
242
- @Field({ nullable: true })
268
+ @Field({ nullable: true, description: 'The date and time the dataset was last updated' })
243
269
  updatedAt?: Date
244
270
 
245
271
  @ManyToOne(type => User, { nullable: true })
246
- @Field({ nullable: true })
272
+ @Field({ nullable: true, description: 'The user who created the dataset' })
247
273
  creator?: User
248
274
 
249
275
  @RelationId((dataSet: DataSet) => dataSet.creator)
250
276
  creatorId?: string
251
277
 
252
278
  @ManyToOne(type => User, { nullable: true })
253
- @Field({ nullable: true })
279
+ @Field({ nullable: true, description: 'The user who last updated the dataset' })
254
280
  updater?: User
255
281
 
256
282
  @RelationId((dataSet: DataSet) => dataSet.updater)
@@ -5,7 +5,6 @@
5
5
  "error.dataset not found": "Cannot find dataSet with the given name({dataSetName})",
6
6
  "error.summary not supported": "The given dataSet({dataSetName}) does not support reports for {period}",
7
7
  "field.appliance": "appliance",
8
- "field.review-approval-line": "review approval line",
9
8
  "field.assignees": "assignees",
10
9
  "field.collected-at": "collected at",
11
10
  "field.corrected-at": "corrected at",
@@ -48,7 +47,6 @@
48
47
  "field.oos": "out of critical limit",
49
48
  "field.options": "options",
50
49
  "field.outlier-approval-line": "outlier approval line",
51
- "field.requires-review": "requires review",
52
50
  "field.partition-keys": "partition keys",
53
51
  "field.prev-schedule": "previous schedule",
54
52
  "field.quota": "sampling #",
@@ -58,10 +56,13 @@
58
56
  "field.report-type": "report type",
59
57
  "field.report-view": "report view",
60
58
  "field.request-params": "request parameters",
59
+ "field.requires-review": "requires review",
60
+ "field.review-approval-line": "review approval line",
61
61
  "field.serial-no": "serial #",
62
62
  "field.spec": "spec",
63
63
  "field.stat-function": "stat func.",
64
64
  "field.status": "status",
65
+ "field.subgroup": "subgroup",
65
66
  "field.summary": "summary",
66
67
  "field.summary-period": "summary period",
67
68
  "field.supervisory-role": "supervisory role",
@@ -62,6 +62,7 @@
62
62
  "field.spec": "明細",
63
63
  "field.stat-function": "統計関数",
64
64
  "field.status": "状態",
65
+ "field.subgroup": "サブグループ名",
65
66
  "field.summary": "サマリー",
66
67
  "field.summary-period": "サマリー周期",
67
68
  "field.supervisory-role": "管理者ロール",
@@ -5,7 +5,6 @@
5
5
  "error.dataset not found": "주어진 이름의({dataSetName}) dataSet을 찾을 수 없습니다",
6
6
  "error.summary not supported": "주어진 dataSet({dataSetName})은 {period}의 레포트가 지원되지 않습니다",
7
7
  "field.appliance": "어플라이언스",
8
- "field.review-approval-line": "결재라인",
9
8
  "field.assignees": "할당자 목록",
10
9
  "field.collected-at": "수집일시",
11
10
  "field.corrected-at": "조치 시간",
@@ -48,7 +47,6 @@
48
47
  "field.oos": "허용한계 이탈여부",
49
48
  "field.options": "선택옵션",
50
49
  "field.outlier-approval-line": "이상치 결재라인",
51
- "field.requires-review": "검토 요청",
52
50
  "field.partition-keys": "파티션 키",
53
51
  "field.prev-schedule": "이전 수집계획",
54
52
  "field.quota": "샘플수",
@@ -58,10 +56,13 @@
58
56
  "field.report-type": "리포트용 화면종류",
59
57
  "field.report-view": "리포트용 화면",
60
58
  "field.request-params": "요청 매개변수",
59
+ "field.requires-review": "검토 요청",
60
+ "field.review-approval-line": "결재라인",
61
61
  "field.serial-no": "시리얼번호",
62
62
  "field.spec": "명세",
63
63
  "field.stat-function": "통계함수",
64
64
  "field.status": "상태",
65
+ "field.subgroup": "서브그룹명",
65
66
  "field.summary": "서머리",
66
67
  "field.summary-period": "서머리 주기",
67
68
  "field.supervisory-role": "관리자 역할",
@@ -62,6 +62,7 @@
62
62
  "field.spec": "spesifikasi",
63
63
  "field.stat-function": "fungsi stat.",
64
64
  "field.status": "status",
65
+ "field.subgroup": "Nama subkumpulan",
65
66
  "field.summary": "ringkasan",
66
67
  "field.summary-period": "tempoh ringkasan",
67
68
  "field.supervisory-role": "peranan pengawasan",
@@ -5,7 +5,6 @@
5
5
  "error.dataset not found": "无法找到给定名称的({dataSetName})数据集",
6
6
  "error.summary not supported": "给定的数据集({dataSetName})不支持{period}的报告",
7
7
  "field.appliance": "应用设备",
8
- "field.review-approval-line": "审批线",
9
8
  "field.assignees": "分配者列表",
10
9
  "field.collected-at": "收集时间",
11
10
  "field.corrected-at": "处理时间",
@@ -48,7 +47,6 @@
48
47
  "field.oos": "允许限制偏离情况",
49
48
  "field.options": "选择选项",
50
49
  "field.outlier-approval-line": "异常批准线",
51
- "field.requires-review": "需要审查",
52
50
  "field.partition-keys": "分区键",
53
51
  "field.prev-schedule": "上次收集计划",
54
52
  "field.quota": "样本数",
@@ -58,10 +56,13 @@
58
56
  "field.report-type": "报告界面类型",
59
57
  "field.report-view": "报告界面",
60
58
  "field.request-params": "请求参数",
59
+ "field.requires-review": "需要审查",
60
+ "field.review-approval-line": "审批线",
61
61
  "field.serial-no": "序列号",
62
62
  "field.spec": "规格",
63
63
  "field.stat-function": "统计函数",
64
64
  "field.status": "状态",
65
+ "field.subgroup": "子组名称",
65
66
  "field.summary": "摘要",
66
67
  "field.summary-period": "摘要周期",
67
68
  "field.supervisory-role": "监管角色",