@things-factory/dataset 6.2.59 → 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 (63) 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/service/data-set/data-item-type.js +46 -20
  42. package/dist-server/service/data-set/data-item-type.js.map +1 -1
  43. package/dist-server/service/data-set/data-set.js +54 -30
  44. package/dist-server/service/data-set/data-set.js.map +1 -1
  45. package/dist-server/tsconfig.tsbuildinfo +1 -1
  46. package/helps/dataset/data-set.ja.md +103 -0
  47. package/helps/dataset/data-set.ko.md +101 -0
  48. package/helps/dataset/data-set.md +103 -43
  49. package/helps/dataset/data-set.ms.md +103 -0
  50. package/helps/dataset/data-set.zh.md +103 -0
  51. package/helps/dataset/ui/data-item-list.ja.md +91 -0
  52. package/helps/dataset/ui/data-item-list.ko.md +90 -0
  53. package/helps/dataset/ui/data-item-list.md +88 -26
  54. package/helps/dataset/ui/data-item-list.ms.md +90 -0
  55. package/helps/dataset/ui/data-item-list.zh.md +88 -0
  56. package/package.json +2 -2
  57. package/server/service/data-set/data-item-type.ts +48 -20
  58. package/server/service/data-set/data-set.ts +56 -30
  59. package/translations/en.json +3 -2
  60. package/translations/ja.json +1 -0
  61. package/translations/ko.json +3 -2
  62. package/translations/ms.json +1 -0
  63. package/translations/zh.json +3 -2
@@ -37,31 +37,41 @@ var DataItemStatType;
37
37
  let DataItem = class DataItem {
38
38
  };
39
39
  tslib_1.__decorate([
40
- (0, type_graphql_1.Field)(),
40
+ (0, type_graphql_1.Field)({ description: 'The name of the data item' }),
41
41
  tslib_1.__metadata("design:type", String)
42
42
  ], DataItem.prototype, "name", void 0);
43
43
  tslib_1.__decorate([
44
- (0, type_graphql_1.Field)({ nullable: true }),
44
+ (0, type_graphql_1.Field)({ nullable: true, description: 'A description of the data item' }),
45
45
  tslib_1.__metadata("design:type", String)
46
46
  ], DataItem.prototype, "description", void 0);
47
47
  tslib_1.__decorate([
48
- (0, type_graphql_1.Field)({ nullable: true }),
48
+ (0, type_graphql_1.Field)({
49
+ nullable: true,
50
+ description: 'Specifies a key name to be used as a property in a JSON-like object, representing a subfield of a dataset record.'
51
+ }),
49
52
  tslib_1.__metadata("design:type", String)
50
53
  ], DataItem.prototype, "tag", void 0);
51
54
  tslib_1.__decorate([
52
- (0, type_graphql_1.Field)({ nullable: true }),
55
+ (0, type_graphql_1.Field)({
56
+ nullable: true,
57
+ description: 'Specifies a grouping identifier for data items with related content, allowing them to be displayed as subgroups within the overall dataset.'
58
+ }),
59
+ tslib_1.__metadata("design:type", String)
60
+ ], DataItem.prototype, "group", void 0);
61
+ tslib_1.__decorate([
62
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Indicates if the data item is active' }),
53
63
  tslib_1.__metadata("design:type", Boolean)
54
64
  ], DataItem.prototype, "active", void 0);
55
65
  tslib_1.__decorate([
56
- (0, type_graphql_1.Field)({ nullable: true }),
66
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Indicates if the data item is hidden' }),
57
67
  tslib_1.__metadata("design:type", Boolean)
58
68
  ], DataItem.prototype, "hidden", void 0);
59
69
  tslib_1.__decorate([
60
- (0, type_graphql_1.Field)({ nullable: true }),
70
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The type of the data item' }),
61
71
  tslib_1.__metadata("design:type", String)
62
72
  ], DataItem.prototype, "type", void 0);
63
73
  tslib_1.__decorate([
64
- (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
74
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true, description: 'Options associated with the data item type' }),
65
75
  tslib_1.__metadata("design:type", Object)
66
76
  ], DataItem.prototype, "options", void 0);
67
77
  tslib_1.__decorate([
@@ -72,15 +82,18 @@ tslib_1.__decorate([
72
82
  tslib_1.__metadata("design:type", String)
73
83
  ], DataItem.prototype, "stat", void 0);
74
84
  tslib_1.__decorate([
75
- (0, type_graphql_1.Field)({ nullable: true }),
85
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The unit of measurement for the data item' }),
76
86
  tslib_1.__metadata("design:type", String)
77
87
  ], DataItem.prototype, "unit", void 0);
78
88
  tslib_1.__decorate([
79
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
89
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'The maximum number of data values allowed for this field' }),
80
90
  tslib_1.__metadata("design:type", Number)
81
91
  ], DataItem.prototype, "quota", void 0);
82
92
  tslib_1.__decorate([
83
- (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
93
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, {
94
+ nullable: true,
95
+ description: 'Specifies the valid ranges and parameters for this data item.'
96
+ }),
84
97
  tslib_1.__metadata("design:type", Object)
85
98
  ], DataItem.prototype, "spec", void 0);
86
99
  DataItem = tslib_1.__decorate([
@@ -90,23 +103,33 @@ exports.DataItem = DataItem;
90
103
  let DataItemPatch = class DataItemPatch {
91
104
  };
92
105
  tslib_1.__decorate([
93
- (0, type_graphql_1.Field)({ nullable: true }),
106
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The name of the data item' }),
94
107
  tslib_1.__metadata("design:type", String)
95
108
  ], DataItemPatch.prototype, "name", void 0);
96
109
  tslib_1.__decorate([
97
- (0, type_graphql_1.Field)({ nullable: true }),
110
+ (0, type_graphql_1.Field)({ nullable: true, description: 'A description of the data item' }),
98
111
  tslib_1.__metadata("design:type", String)
99
112
  ], DataItemPatch.prototype, "description", void 0);
100
113
  tslib_1.__decorate([
101
- (0, type_graphql_1.Field)({ nullable: true }),
114
+ (0, type_graphql_1.Field)({
115
+ nullable: true,
116
+ description: 'Specifies a key name to be used as a property in a JSON-like object, representing a subfield of a dataset record.'
117
+ }),
102
118
  tslib_1.__metadata("design:type", String)
103
119
  ], DataItemPatch.prototype, "tag", void 0);
104
120
  tslib_1.__decorate([
105
- (0, type_graphql_1.Field)(type => DataItemType, { nullable: true }),
121
+ (0, type_graphql_1.Field)({
122
+ nullable: true,
123
+ description: 'Specifies a grouping identifier for data items with related content, allowing them to be displayed as subgroups within the overall dataset.'
124
+ }),
125
+ tslib_1.__metadata("design:type", String)
126
+ ], DataItemPatch.prototype, "group", void 0);
127
+ tslib_1.__decorate([
128
+ (0, type_graphql_1.Field)(type => DataItemType, { nullable: true, description: 'The type of the data item' }),
106
129
  tslib_1.__metadata("design:type", String)
107
130
  ], DataItemPatch.prototype, "type", void 0);
108
131
  tslib_1.__decorate([
109
- (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
132
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true, description: 'Options associated with the data item type' }),
110
133
  tslib_1.__metadata("design:type", Object)
111
134
  ], DataItemPatch.prototype, "options", void 0);
112
135
  tslib_1.__decorate([
@@ -117,23 +140,26 @@ tslib_1.__decorate([
117
140
  tslib_1.__metadata("design:type", String)
118
141
  ], DataItemPatch.prototype, "stat", void 0);
119
142
  tslib_1.__decorate([
120
- (0, type_graphql_1.Field)({ nullable: true }),
143
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The unit of measurement for the data item' }),
121
144
  tslib_1.__metadata("design:type", String)
122
145
  ], DataItemPatch.prototype, "unit", void 0);
123
146
  tslib_1.__decorate([
124
- (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true }),
147
+ (0, type_graphql_1.Field)(type => type_graphql_1.Int, { nullable: true, description: 'The maximum number of data values allowed for this field' }),
125
148
  tslib_1.__metadata("design:type", Number)
126
149
  ], DataItemPatch.prototype, "quota", void 0);
127
150
  tslib_1.__decorate([
128
- (0, type_graphql_1.Field)({ nullable: true }),
151
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Indicates if the data item is active' }),
129
152
  tslib_1.__metadata("design:type", Boolean)
130
153
  ], DataItemPatch.prototype, "active", void 0);
131
154
  tslib_1.__decorate([
132
- (0, type_graphql_1.Field)({ nullable: true }),
155
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Indicates if the data item is hidden' }),
133
156
  tslib_1.__metadata("design:type", Boolean)
134
157
  ], DataItemPatch.prototype, "hidden", void 0);
135
158
  tslib_1.__decorate([
136
- (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
159
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, {
160
+ nullable: true,
161
+ description: 'Specifies the valid ranges and parameters for this data item.'
162
+ }),
137
163
  tslib_1.__metadata("design:type", Object)
138
164
  ], DataItemPatch.prototype, "spec", void 0);
139
165
  DataItemPatch = tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"data-item-type.js","sourceRoot":"","sources":["../../../server/service/data-set/data-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAkF;AAElF,iDAAoD;AAEpD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AAED,IAAA,+BAAgB,EAAC,YAAY,EAAE;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,iCAAiC;CAC/C,CAAC,CAAA;AAEF,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,yCAAqB,CAA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nClB,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAoCzB;AApCY,sCAAa","sourcesContent":["import { Field, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'\n\nimport { ScalarObject } from '@things-factory/shell'\n\nexport enum DataItemType {\n number = 'number',\n text = 'text',\n boolean = 'boolean',\n select = 'select',\n date = 'date',\n datetime = 'datetime',\n file = 'file'\n}\n\nregisterEnumType(DataItemType, {\n name: 'DataItemType',\n description: 'type enumeration of a data-item'\n})\n\nexport enum DataItemStatType {\n sum = 'sum',\n mean = 'mean',\n stddev = 'stddev',\n variance = 'variance',\n min = 'min',\n max = 'max',\n range = 'range',\n median = 'median',\n mode = 'mode'\n}\n\nregisterEnumType(DataItemStatType, {\n name: 'DataItemStatType',\n description: 'stat type enumeration of a data-item'\n})\n\n@ObjectType({ description: 'Entity for DataItem' })\nexport class DataItem {\n @Field()\n name: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n tag?: string\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hidden?: boolean\n\n @Field({ nullable: true })\n type?: DataItemType\n\n @Field(type => ScalarObject, { nullable: true })\n options?: { [option: string]: any }\n\n @Field({\n nullable: true,\n description: 'The grouping logic for data summarization in the given field during periodic task deadlines.'\n })\n stat?: DataItemStatType\n\n @Field({ nullable: true })\n unit?: string\n\n @Field(type => Int, { nullable: true })\n quota?: number\n\n @Field(type => ScalarObject, { nullable: true })\n spec?: { [key: string]: any }\n}\n\n@InputType()\nexport class DataItemPatch {\n @Field({ nullable: true })\n name?: string\n\n @Field({ nullable: true })\n description?: string\n\n @Field({ nullable: true })\n tag?: string\n\n @Field(type => DataItemType, { nullable: true })\n type?: DataItemType\n\n @Field(type => ScalarObject, { nullable: true })\n options?: { [option: string]: any }\n\n @Field({\n nullable: true,\n description: 'The grouping logic for data summarization in the given field during periodic task deadlines.'\n })\n stat?: DataItemStatType\n\n @Field({ nullable: true })\n unit?: string\n\n @Field(type => Int, { nullable: true })\n quota?: number\n\n @Field({ nullable: true })\n active?: boolean\n\n @Field({ nullable: true })\n hidden?: boolean\n\n @Field(type => ScalarObject, { nullable: true })\n spec?: { [key: string]: any }\n}\n"]}
1
+ {"version":3,"file":"data-item-type.js","sourceRoot":"","sources":["../../../server/service/data-set/data-item-type.ts"],"names":[],"mappings":";;;;AAAA,+CAAkF;AAElF,iDAAoD;AAEpD,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,mCAAmB,CAAA;IACnB,iCAAiB,CAAA;IACjB,6BAAa,CAAA;IACb,qCAAqB,CAAA;IACrB,6BAAa,CAAA;AACf,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AAED,IAAA,+BAAgB,EAAC,YAAY,EAAE;IAC7B,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,iCAAiC;CAC/C,CAAC,CAAA;AAEF,IAAY,gBAUX;AAVD,WAAY,gBAAgB;IAC1B,+BAAW,CAAA;IACX,iCAAa,CAAA;IACb,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,+BAAW,CAAA;IACX,+BAAW,CAAA;IACX,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,iCAAa,CAAA;AACf,CAAC,EAVW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAU3B;AAED,IAAA,+BAAgB,EAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,sCAAsC;CACpD,CAAC,CAAA;AAGK,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAkDpB,CAAA;AAjDC;IAAC,IAAA,oBAAK,EAAC,EAAE,WAAW,EAAE,2BAA2B,EAAE,CAAC;;sCACxC;AAEZ;IAAC,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,gCAAgC,EAAE,CAAC;;6CACrD;AAEpB;IAAC,IAAA,oB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AAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,sCAAsC,EAAE,CAAC;;6CAC/D;AAEhB;IAAC,IAAA,oBAAK,EAAC,IAAI,CAAC,EAAE,CAAC,oBAAY,EAAE;QAC3B,QAAQ,EAAE,IAAI;QACd,WAAW,EAAE,+DAA+D;KAC7E,CAAC;;2CAC2B;AAjDlB,aAAa;IADzB,IAAA,wBAAS,GAAE;GACC,aAAa,CAkDzB;AAlDY,sCAAa","sourcesContent":["import { Field, InputType, Int, ObjectType, registerEnumType } from 'type-graphql'\n\nimport { ScalarObject } from '@things-factory/shell'\n\nexport enum DataItemType {\n number = 'number',\n text = 'text',\n boolean = 'boolean',\n select = 'select',\n date = 'date',\n datetime = 'datetime',\n file = 'file'\n}\n\nregisterEnumType(DataItemType, {\n name: 'DataItemType',\n description: 'type enumeration of a data-item'\n})\n\nexport enum DataItemStatType {\n sum = 'sum',\n mean = 'mean',\n stddev = 'stddev',\n variance = 'variance',\n min = 'min',\n max = 'max',\n range = 'range',\n median = 'median',\n mode = 'mode'\n}\n\nregisterEnumType(DataItemStatType, {\n name: 'DataItemStatType',\n description: 'stat type enumeration of a data-item'\n})\n\n@ObjectType({ description: 'Entity for DataItem' })\nexport class DataItem {\n @Field({ description: 'The name of the data item' })\n name: string\n\n @Field({ nullable: true, description: 'A description of the data item' })\n description?: string\n\n @Field({\n nullable: true,\n description:\n 'Specifies a key name to be used as a property in a JSON-like object, representing a subfield of a dataset record.'\n })\n tag?: string\n\n @Field({\n nullable: true,\n description:\n 'Specifies a grouping identifier for data items with related content, allowing them to be displayed as subgroups within the overall dataset.'\n })\n group?: string\n\n @Field({ nullable: true, description: 'Indicates if the data item is active' })\n active?: boolean\n\n @Field({ nullable: true, description: 'Indicates if the data item is hidden' })\n hidden?: boolean\n\n @Field({ nullable: true, description: 'The type of the data item' })\n type?: DataItemType\n\n @Field(type => ScalarObject, { nullable: true, description: 'Options associated with the data item type' })\n options?: { [option: string]: any }\n\n @Field({\n nullable: true,\n description: 'The grouping logic for data summarization in the given field during periodic task deadlines.'\n })\n stat?: DataItemStatType\n\n @Field({ nullable: true, description: 'The unit of measurement for the data item' })\n unit?: string\n\n @Field(type => Int, { nullable: true, description: 'The maximum number of data values allowed for this field' })\n quota?: number\n\n @Field(type => ScalarObject, {\n nullable: true,\n description: 'Specifies the valid ranges and parameters for this data item.'\n })\n spec?: { [key: string]: any }\n}\n\n@InputType()\nexport class DataItemPatch {\n @Field({ nullable: true, description: 'The name of the data item' })\n name?: string\n\n @Field({ nullable: true, description: 'A description of the data item' })\n description?: string\n\n @Field({\n nullable: true,\n description:\n 'Specifies a key name to be used as a property in a JSON-like object, representing a subfield of a dataset record.'\n })\n tag?: string\n\n @Field({\n nullable: true,\n description:\n 'Specifies a grouping identifier for data items with related content, allowing them to be displayed as subgroups within the overall dataset.'\n })\n group?: string\n\n @Field(type => DataItemType, { nullable: true, description: 'The type of the data item' })\n type?: DataItemType\n\n @Field(type => ScalarObject, { nullable: true, description: 'Options associated with the data item type' })\n options?: { [option: string]: any }\n\n @Field({\n nullable: true,\n description: 'The grouping logic for data summarization in the given field during periodic task deadlines.'\n })\n stat?: DataItemStatType\n\n @Field({ nullable: true, description: 'The unit of measurement for the data item' })\n unit?: string\n\n @Field(type => Int, { nullable: true, description: 'The maximum number of data values allowed for this field' })\n quota?: number\n\n @Field({ nullable: true, description: 'Indicates if the data item is active' })\n active?: boolean\n\n @Field({ nullable: true, description: 'Indicates if the data item is hidden' })\n hidden?: boolean\n\n @Field(type => ScalarObject, {\n nullable: true,\n description: 'Specifies the valid ranges and parameters for this data item.'\n })\n spec?: { [key: string]: any }\n}\n"]}
@@ -92,12 +92,12 @@ let DataSet = class DataSet {
92
92
  };
93
93
  tslib_1.__decorate([
94
94
  (0, typeorm_1.PrimaryGeneratedColumn)('uuid'),
95
- (0, type_graphql_1.Field)(type => type_graphql_1.ID),
95
+ (0, type_graphql_1.Field)(type => type_graphql_1.ID, { description: 'The unique identifier of the dataset' }),
96
96
  tslib_1.__metadata("design:type", String)
97
97
  ], DataSet.prototype, "id", void 0);
98
98
  tslib_1.__decorate([
99
99
  (0, typeorm_1.ManyToOne)(type => shell_1.Domain),
100
- (0, type_graphql_1.Field)({ nullable: true }),
100
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The domain to which the dataset belongs' }),
101
101
  tslib_1.__metadata("design:type", shell_1.Domain)
102
102
  ], DataSet.prototype, "domain", void 0);
103
103
  tslib_1.__decorate([
@@ -106,27 +106,27 @@ tslib_1.__decorate([
106
106
  ], DataSet.prototype, "domainId", void 0);
107
107
  tslib_1.__decorate([
108
108
  (0, typeorm_1.Column)(),
109
- (0, type_graphql_1.Field)(),
109
+ (0, type_graphql_1.Field)({ description: 'The name of the dataset' }),
110
110
  tslib_1.__metadata("design:type", String)
111
111
  ], DataSet.prototype, "name", void 0);
112
112
  tslib_1.__decorate([
113
113
  (0, typeorm_1.Column)({ nullable: true }),
114
- (0, type_graphql_1.Field)({ nullable: true }),
114
+ (0, type_graphql_1.Field)({ nullable: true, description: 'A description of the dataset' }),
115
115
  tslib_1.__metadata("design:type", String)
116
116
  ], DataSet.prototype, "description", void 0);
117
117
  tslib_1.__decorate([
118
118
  (0, typeorm_1.VersionColumn)({ nullable: true, default: 1 }),
119
- (0, type_graphql_1.Field)({ nullable: true }),
119
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The version of the dataset' }),
120
120
  tslib_1.__metadata("design:type", Number)
121
121
  ], DataSet.prototype, "version", void 0);
122
122
  tslib_1.__decorate([
123
123
  (0, typeorm_1.Column)({ nullable: true }),
124
- (0, type_graphql_1.Field)({ nullable: true }),
124
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Indicates whether the dataset is currently active or in use.' }),
125
125
  tslib_1.__metadata("design:type", Boolean)
126
126
  ], DataSet.prototype, "active", void 0);
127
127
  tslib_1.__decorate([
128
128
  (0, typeorm_1.ManyToOne)(type => data_key_set_1.DataKeySet, { nullable: true }),
129
- (0, type_graphql_1.Field)(type => data_key_set_1.DataKeySet, { nullable: true }),
129
+ (0, type_graphql_1.Field)(type => data_key_set_1.DataKeySet, { nullable: true, description: 'The key set used for this dataset' }),
130
130
  tslib_1.__metadata("design:type", data_key_set_1.DataKeySet)
131
131
  ], DataSet.prototype, "dataKeySet", void 0);
132
132
  tslib_1.__decorate([
@@ -171,112 +171,136 @@ tslib_1.__decorate([
171
171
  (0, typeorm_1.Column)('simple-json', { nullable: true }),
172
172
  (0, type_graphql_1.Field)(type => [organization_1.ApprovalLineItem], {
173
173
  nullable: true,
174
- description: 'Approval line for handling OOC issues for that dataset'
174
+ description: 'Approval line for handling abnormal data occurance issues for that dataset'
175
175
  }),
176
176
  tslib_1.__metadata("design:type", Array)
177
177
  ], DataSet.prototype, "outlierApprovalLine", void 0);
178
178
  tslib_1.__decorate([
179
179
  (0, typeorm_1.Column)({ nullable: true }),
180
- (0, type_graphql_1.Field)({ nullable: true }),
180
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The type of the dataset' }),
181
181
  tslib_1.__metadata("design:type", String)
182
182
  ], DataSet.prototype, "type", void 0);
183
183
  tslib_1.__decorate([
184
184
  (0, typeorm_1.Column)({ nullable: true }),
185
- (0, type_graphql_1.Field)({ nullable: true }),
185
+ (0, type_graphql_1.Field)({
186
+ nullable: true,
187
+ 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.`
188
+ }),
186
189
  tslib_1.__metadata("design:type", String)
187
190
  ], DataSet.prototype, "entryType", void 0);
188
191
  tslib_1.__decorate([
189
192
  (0, typeorm_1.Column)({ nullable: true }),
190
- (0, type_graphql_1.Field)({ nullable: true }),
193
+ (0, type_graphql_1.Field)({
194
+ nullable: true,
195
+ 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.`
196
+ }),
191
197
  tslib_1.__metadata("design:type", String)
192
198
  ], DataSet.prototype, "entryView", void 0);
193
199
  tslib_1.__decorate([
194
200
  (0, typeorm_1.Column)({ nullable: true }),
195
- (0, type_graphql_1.Field)({ nullable: true }),
201
+ (0, type_graphql_1.Field)({
202
+ nullable: true,
203
+ 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.`
204
+ }),
196
205
  tslib_1.__metadata("design:type", String)
197
206
  ], DataSet.prototype, "monitorType", void 0);
198
207
  tslib_1.__decorate([
199
208
  (0, typeorm_1.Column)({ nullable: true }),
200
- (0, type_graphql_1.Field)({ nullable: true }),
209
+ (0, type_graphql_1.Field)({
210
+ nullable: true,
211
+ 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.`
212
+ }),
201
213
  tslib_1.__metadata("design:type", String)
202
214
  ], DataSet.prototype, "monitorView", void 0);
203
215
  tslib_1.__decorate([
204
216
  (0, typeorm_1.Column)({ nullable: true }),
205
- (0, type_graphql_1.Field)({ nullable: true }),
217
+ (0, type_graphql_1.Field)({
218
+ nullable: true,
219
+ 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.`
220
+ }),
206
221
  tslib_1.__metadata("design:type", String)
207
222
  ], DataSet.prototype, "reportType", void 0);
208
223
  tslib_1.__decorate([
209
224
  (0, typeorm_1.Column)({ nullable: true }),
210
- (0, type_graphql_1.Field)({ nullable: true }),
225
+ (0, type_graphql_1.Field)({
226
+ nullable: true,
227
+ 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.`
228
+ }),
211
229
  tslib_1.__metadata("design:type", String)
212
230
  ], DataSet.prototype, "reportView", void 0);
213
231
  tslib_1.__decorate([
214
- (0, type_graphql_1.Field)({ nullable: true }),
232
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The report template of the dataset' }),
215
233
  tslib_1.__metadata("design:type", String)
216
234
  ], DataSet.prototype, "reportTemplate", void 0);
217
235
  tslib_1.__decorate([
218
236
  (0, typeorm_1.Column)({ nullable: true }),
219
- (0, type_graphql_1.Field)({ nullable: true }),
237
+ (0, type_graphql_1.Field)({
238
+ nullable: true,
239
+ description: '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.'
240
+ }),
220
241
  tslib_1.__metadata("design:type", String)
221
242
  ], DataSet.prototype, "useCase", void 0);
222
243
  tslib_1.__decorate([
223
244
  (0, typeorm_1.Column)('simple-json', { nullable: true }),
224
- (0, type_graphql_1.Field)(type => shell_1.ScalarObject, { nullable: true }),
245
+ (0, type_graphql_1.Field)(type => shell_1.ScalarObject, {
246
+ nullable: true,
247
+ description: "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."
248
+ }),
225
249
  tslib_1.__metadata("design:type", Object)
226
250
  ], DataSet.prototype, "partitionKeys", void 0);
227
251
  tslib_1.__decorate([
228
252
  (0, typeorm_1.Column)('simple-json', { nullable: true }),
229
- (0, type_graphql_1.Field)(type => [data_item_type_1.DataItem], { nullable: true }),
253
+ (0, type_graphql_1.Field)(type => [data_item_type_1.DataItem], { nullable: true, description: 'Data items for the dataset' }),
230
254
  tslib_1.__metadata("design:type", Array)
231
255
  ], DataSet.prototype, "dataItems", void 0);
232
256
  tslib_1.__decorate([
233
257
  (0, typeorm_1.Column)({ nullable: true }),
234
- (0, type_graphql_1.Field)({ nullable: true }),
258
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The schedule of the dataset' }),
235
259
  tslib_1.__metadata("design:type", String)
236
260
  ], DataSet.prototype, "schedule", void 0);
237
261
  tslib_1.__decorate([
238
262
  (0, typeorm_1.Column)({ nullable: true }),
239
- (0, type_graphql_1.Field)({ nullable: true }),
263
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The timezone of the dataset' }),
240
264
  tslib_1.__metadata("design:type", String)
241
265
  ], DataSet.prototype, "timezone", void 0);
242
266
  tslib_1.__decorate([
243
267
  (0, typeorm_1.Column)({ nullable: true }),
244
- (0, type_graphql_1.Field)({ nullable: true }),
268
+ (0, type_graphql_1.Field)({ nullable: true, description: 'Indicates if the dataset requires review' }),
245
269
  tslib_1.__metadata("design:type", Boolean)
246
270
  ], DataSet.prototype, "requiresReview", void 0);
247
271
  tslib_1.__decorate([
248
272
  (0, typeorm_1.Column)({ nullable: true }),
249
- (0, type_graphql_1.Field)({ nullable: true }),
273
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The schedule ID of the dataset' }),
250
274
  tslib_1.__metadata("design:type", String)
251
275
  ], DataSet.prototype, "scheduleId", void 0);
252
276
  tslib_1.__decorate([
253
277
  (0, typeorm_1.Column)({ nullable: true }),
254
- (0, type_graphql_1.Field)({ nullable: true }),
278
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The summary period of the dataset' }),
255
279
  tslib_1.__metadata("design:type", String)
256
280
  ], DataSet.prototype, "summaryPeriod", void 0);
257
281
  tslib_1.__decorate([
258
282
  (0, typeorm_1.Column)({ nullable: true }),
259
- (0, type_graphql_1.Field)({ nullable: true }),
283
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The summary schedule of the dataset' }),
260
284
  tslib_1.__metadata("design:type", String)
261
285
  ], DataSet.prototype, "summarySchedule", void 0);
262
286
  tslib_1.__decorate([
263
287
  (0, typeorm_1.Column)({ nullable: true }),
264
- (0, type_graphql_1.Field)({ nullable: true }),
288
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The summary schedule ID of the dataset' }),
265
289
  tslib_1.__metadata("design:type", String)
266
290
  ], DataSet.prototype, "summaryScheduleId", void 0);
267
291
  tslib_1.__decorate([
268
292
  (0, typeorm_1.CreateDateColumn)(),
269
- (0, type_graphql_1.Field)({ nullable: true }),
293
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The date and time the dataset was created' }),
270
294
  tslib_1.__metadata("design:type", Date)
271
295
  ], DataSet.prototype, "createdAt", void 0);
272
296
  tslib_1.__decorate([
273
297
  (0, typeorm_1.UpdateDateColumn)(),
274
- (0, type_graphql_1.Field)({ nullable: true }),
298
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The date and time the dataset was last updated' }),
275
299
  tslib_1.__metadata("design:type", Date)
276
300
  ], DataSet.prototype, "updatedAt", void 0);
277
301
  tslib_1.__decorate([
278
302
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
279
- (0, type_graphql_1.Field)({ nullable: true }),
303
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The user who created the dataset' }),
280
304
  tslib_1.__metadata("design:type", auth_base_1.User)
281
305
  ], DataSet.prototype, "creator", void 0);
282
306
  tslib_1.__decorate([
@@ -285,7 +309,7 @@ tslib_1.__decorate([
285
309
  ], DataSet.prototype, "creatorId", void 0);
286
310
  tslib_1.__decorate([
287
311
  (0, typeorm_1.ManyToOne)(type => auth_base_1.User, { nullable: true }),
288
- (0, type_graphql_1.Field)({ nullable: true }),
312
+ (0, type_graphql_1.Field)({ nullable: true, description: 'The user who last updated the dataset' }),
289
313
  tslib_1.__metadata("design:type", auth_base_1.User)
290
314
  ], DataSet.prototype, "updater", void 0);
291
315
  tslib_1.__decorate([
@@ -1 +1 @@
1
- {"version":3,"file":"data-set.js","sourceRoot":"","sources":["../../../server/service/data-set/data-set.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAUgB;AAEhB,yDAAsD;AACtD,+DAA+D;AAC/D,iDAA4D;AAC5D,uDAAuD;AAEvD,+DAAyD;AACzD,qDAA2C;AAE3C,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,mCAAe,CAAA;IACf,oDAAgC,CAAA;IAChC,iC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AA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;sCAChB,gBAAI;wCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AAjKP,OAAO;IAHnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9F,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;GACrC,OAAO,CAkKnB;AAlKY,0BAAO","sourcesContent":["import { Field, ID, ObjectType, registerEnumType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn,\n VersionColumn\n} from 'typeorm'\n\nimport { Role, User } from '@things-factory/auth-base'\nimport { ApprovalLineItem } from '@things-factory/organization'\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { AssigneeItem } from '@things-factory/worklist'\n\nimport { DataKeySet } from '../data-key-set/data-key-set'\nimport { DataItem } from './data-item-type'\n\nexport enum DataSetEntryType {\n Generated = 'generated',\n Board = 'board',\n CustomElement = 'custom-element',\n Page = 'page',\n ExternalURL = 'external',\n Jasper = 'jasper',\n Shiny = 'shiny'\n}\n\nregisterEnumType(DataSetEntryType, {\n name: 'DataSetEntryType',\n description: 'entry type enumeration for data-set'\n})\n\nexport enum DataSetMonitorType {\n Generated = 'generated',\n Board = 'board',\n CustomElement = 'custom-element',\n Page = 'page',\n ExternalURL = 'external'\n}\n\nregisterEnumType(DataSetMonitorType, {\n name: 'DataSetMonitorType',\n description: 'monitor type enumeration for data-set'\n})\n\nexport enum DataSetReportType {\n Generated = 'generated',\n Board = 'board',\n CustomElement = 'custom-element',\n Page = 'page',\n ExternalURL = 'external'\n}\n\nregisterEnumType(DataSetReportType, {\n name: 'DataSetReportType',\n description: 'report type enumeration for data-set'\n})\n\nexport enum DataSetSummaryPeriodType {\n Hour = 'hour',\n WorkShift = 'work-shift',\n WorkDate = 'work-date',\n Day = 'day'\n}\n\nregisterEnumType(DataSetSummaryPeriodType, {\n name: 'DataSetSummaryPeriodType',\n description: 'summary period type enumeration for data-set'\n})\n\n@ObjectType()\nexport class DataSetState {\n @Field()\n id: string\n\n @Field()\n scheduleId: string\n\n @Field()\n state: string\n\n @Field()\n startedAt: Date\n\n @Field()\n nextSchedule: Date\n}\n\n@Entity()\n@Index('ix_data_set_0', (dataSet: DataSet) => [dataSet.domain, dataSet.name], { unique: true })\n@ObjectType({ description: 'Entity for DataSet' })\nexport class DataSet {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID)\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true })\n domain?: Domain\n\n @RelationId((dataSet: DataSet) => dataSet.domain)\n domainId?: string\n\n @Column()\n @Field()\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n description?: string\n\n @VersionColumn({ nullable: true, default: 1 })\n @Field({ nullable: true })\n version?: number = 1\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n active?: boolean\n\n @ManyToOne(type => DataKeySet, { nullable: true })\n @Field(type => DataKeySet, { nullable: true })\n dataKeySet?: DataKeySet\n\n @RelationId((dataSet: DataSet) => dataSet.dataKeySet)\n dataKeySetId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, {\n nullable: true,\n description: 'The person responsible for manually entering the data for that dataset'\n })\n entryRole?: Role\n\n @RelationId((dataSet: DataSet) => dataSet.entryRole)\n entryRoleId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, { nullable: true, description: 'The final authority on issues related to that dataset.' })\n supervisoryRole?: Role\n\n @RelationId((dataSet: DataSet) => dataSet.supervisoryRole)\n supervisoryRoleId?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => [AssigneeItem], { nullable: true, description: 'Who to contact for OOC issues' })\n assignees?: AssigneeItem[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [ApprovalLineItem], {\n nullable: true,\n description: 'Approval line for confrim of the dataset'\n })\n reviewApprovalLine?: ApprovalLineItem[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [ApprovalLineItem], {\n nullable: true,\n description: 'Approval line for handling OOC issues for that dataset'\n })\n outlierApprovalLine?: ApprovalLineItem[]\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n type?: 'manual' | 'automatic' | string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n entryType?: DataSetEntryType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n entryView?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n monitorType?: DataSetMonitorType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n monitorView?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n reportType?: DataSetReportType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n reportView?: string\n\n @Field({ nullable: true })\n reportTemplate?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n useCase?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, { nullable: true })\n partitionKeys?: { [key: string]: any }\n\n @Column('simple-json', { nullable: true })\n @Field(type => [DataItem], { nullable: true })\n dataItems: DataItem[]\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n schedule?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n timezone?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n requiresReview?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n scheduleId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n summaryPeriod?: DataSetSummaryPeriodType\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n summarySchedule?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true })\n summaryScheduleId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n creator?: User\n\n @RelationId((dataSet: DataSet) => dataSet.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true })\n updater?: User\n\n @RelationId((dataSet: DataSet) => dataSet.updater)\n updaterId?: string\n}\n"]}
1
+ {"version":3,"file":"data-set.js","sourceRoot":"","sources":["../../../server/service/data-set/data-set.ts"],"names":[],"mappings":";;;;AAAA,+CAAsE;AACtE,qCAUgB;AAEhB,yDAAsD;AACtD,+DAA+D;AAC/D,iDAA4D;AAC5D,uDAAuD;AAEvD,+DAAyD;AACzD,qDAA2C;AAE3C,IAAY,gBAQX;AARD,WAAY,gBAAgB;IAC1B,2CAAuB,CAAA;IACvB,mCAAe,CAAA;IACf,oDAAgC,CAAA;IAChC,iCAAa,CAAA;IACb,4CAAwB,CAAA;IACxB,qCAAiB,CAAA;IACjB,mCAAe,CAAA;AACjB,CAAC,EARW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAQ3B;AAED,IAAA,+BAAgB,EAAC,gBAAgB,EAAE;IACjC,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,qCAAqC;CACnD,CAAC,CAAA;AAEF,IAAY,kBAMX;AAND,WAAY,kBAAkB;IAC5B,6CAAuB,CAAA;IACvB,qCAAe,CAAA;IACf,sDAAgC,CAAA;IAChC,mCAAa,CAAA;IACb,8CAAwB,CAAA;AAC1B,CAAC,EANW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAM7B;AAED,IAAA,+BAAgB,EAAC,kBAAkB,EAAE;IACnC,IAAI,EAAE,oBAAoB;IAC1B,WAAW,EAAE,uCAAuC;CACrD,CAAC,CAAA;AAEF,IAAY,iBAMX;AAND,WAAY,iBAAiB;IAC3B,4CAAuB,CAAA;IACvB,oC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E,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AAElB;IAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,EAAE,CAAC,gBAAI,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;IAC3C,IAAA,oBAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,uCAAuC,EAAE,CAAC;sCACtE,gBAAI;wCAAA;AAEd;IAAC,IAAA,oBAAU,EAAC,CAAC,OAAgB,EAAE,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC;;0CAChC;AA3LP,OAAO;IAHnB,IAAA,gBAAM,GAAE;IACR,IAAA,eAAK,EAAC,eAAe,EAAE,CAAC,OAAgB,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;IAC9F,IAAA,yBAAU,EAAC,EAAE,WAAW,EAAE,oBAAoB,EAAE,CAAC;GACrC,OAAO,CA4LnB;AA5LY,0BAAO","sourcesContent":["import { Field, ID, ObjectType, registerEnumType } from 'type-graphql'\nimport {\n Column,\n CreateDateColumn,\n Entity,\n Index,\n ManyToOne,\n PrimaryGeneratedColumn,\n RelationId,\n UpdateDateColumn,\n VersionColumn\n} from 'typeorm'\n\nimport { Role, User } from '@things-factory/auth-base'\nimport { ApprovalLineItem } from '@things-factory/organization'\nimport { Domain, ScalarObject } from '@things-factory/shell'\nimport { AssigneeItem } from '@things-factory/worklist'\n\nimport { DataKeySet } from '../data-key-set/data-key-set'\nimport { DataItem } from './data-item-type'\n\nexport enum DataSetEntryType {\n Generated = 'generated',\n Board = 'board',\n CustomElement = 'custom-element',\n Page = 'page',\n ExternalURL = 'external',\n Jasper = 'jasper',\n Shiny = 'shiny'\n}\n\nregisterEnumType(DataSetEntryType, {\n name: 'DataSetEntryType',\n description: 'entry type enumeration for data-set'\n})\n\nexport enum DataSetMonitorType {\n Generated = 'generated',\n Board = 'board',\n CustomElement = 'custom-element',\n Page = 'page',\n ExternalURL = 'external'\n}\n\nregisterEnumType(DataSetMonitorType, {\n name: 'DataSetMonitorType',\n description: 'monitor type enumeration for data-set'\n})\n\nexport enum DataSetReportType {\n Generated = 'generated',\n Board = 'board',\n CustomElement = 'custom-element',\n Page = 'page',\n ExternalURL = 'external'\n}\n\nregisterEnumType(DataSetReportType, {\n name: 'DataSetReportType',\n description: 'report type enumeration for data-set'\n})\n\nexport enum DataSetSummaryPeriodType {\n Hour = 'hour',\n WorkShift = 'work-shift',\n WorkDate = 'work-date',\n Day = 'day'\n}\n\nregisterEnumType(DataSetSummaryPeriodType, {\n name: 'DataSetSummaryPeriodType',\n description: 'summary period type enumeration for data-set'\n})\n\n@ObjectType()\nexport class DataSetState {\n @Field()\n id: string\n\n @Field()\n scheduleId: string\n\n @Field()\n state: string\n\n @Field()\n startedAt: Date\n\n @Field()\n nextSchedule: Date\n}\n\n@Entity()\n@Index('ix_data_set_0', (dataSet: DataSet) => [dataSet.domain, dataSet.name], { unique: true })\n@ObjectType({ description: 'Entity for DataSet' })\nexport class DataSet {\n @PrimaryGeneratedColumn('uuid')\n @Field(type => ID, { description: 'The unique identifier of the dataset' })\n readonly id: string\n\n @ManyToOne(type => Domain)\n @Field({ nullable: true, description: 'The domain to which the dataset belongs' })\n domain?: Domain\n\n @RelationId((dataSet: DataSet) => dataSet.domain)\n domainId?: string\n\n @Column()\n @Field({ description: 'The name of the dataset' })\n name?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'A description of the dataset' })\n description?: string\n\n @VersionColumn({ nullable: true, default: 1 })\n @Field({ nullable: true, description: 'The version of the dataset' })\n version?: number = 1\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Indicates whether the dataset is currently active or in use.' })\n active?: boolean\n\n @ManyToOne(type => DataKeySet, { nullable: true })\n @Field(type => DataKeySet, { nullable: true, description: 'The key set used for this dataset' })\n dataKeySet?: DataKeySet\n\n @RelationId((dataSet: DataSet) => dataSet.dataKeySet)\n dataKeySetId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, {\n nullable: true,\n description: 'The person responsible for manually entering the data for that dataset'\n })\n entryRole?: Role\n\n @RelationId((dataSet: DataSet) => dataSet.entryRole)\n entryRoleId?: string\n\n @ManyToOne(type => Role, { nullable: true })\n @Field(type => Role, { nullable: true, description: 'The final authority on issues related to that dataset.' })\n supervisoryRole?: Role\n\n @RelationId((dataSet: DataSet) => dataSet.supervisoryRole)\n supervisoryRoleId?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => [AssigneeItem], { nullable: true, description: 'Who to contact for OOC issues' })\n assignees?: AssigneeItem[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [ApprovalLineItem], {\n nullable: true,\n description: 'Approval line for confrim of the dataset'\n })\n reviewApprovalLine?: ApprovalLineItem[]\n\n @Column('simple-json', { nullable: true })\n @Field(type => [ApprovalLineItem], {\n nullable: true,\n description: 'Approval line for handling abnormal data occurance issues for that dataset'\n })\n outlierApprovalLine?: ApprovalLineItem[]\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The type of the dataset' })\n type?: 'manual' | 'automatic' | string\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n 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.`\n })\n entryType?: DataSetEntryType\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n 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.`\n })\n entryView?: string\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n 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.`\n })\n monitorType?: DataSetMonitorType\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n 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.`\n })\n monitorView?: string\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n 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.`\n })\n reportType?: DataSetReportType\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n 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.`\n })\n reportView?: string\n\n @Field({ nullable: true, description: 'The report template of the dataset' })\n reportTemplate?: string\n\n @Column({ nullable: true })\n @Field({\n nullable: true,\n description:\n '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.'\n })\n useCase?: string\n\n @Column('simple-json', { nullable: true })\n @Field(type => ScalarObject, {\n nullable: true,\n description:\n \"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.\"\n })\n partitionKeys?: { [key: string]: any }\n\n @Column('simple-json', { nullable: true })\n @Field(type => [DataItem], { nullable: true, description: 'Data items for the dataset' })\n dataItems: DataItem[]\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The schedule of the dataset' })\n schedule?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The timezone of the dataset' })\n timezone?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'Indicates if the dataset requires review' })\n requiresReview?: boolean\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The schedule ID of the dataset' })\n scheduleId?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The summary period of the dataset' })\n summaryPeriod?: DataSetSummaryPeriodType\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The summary schedule of the dataset' })\n summarySchedule?: string\n\n @Column({ nullable: true })\n @Field({ nullable: true, description: 'The summary schedule ID of the dataset' })\n summaryScheduleId?: string\n\n @CreateDateColumn()\n @Field({ nullable: true, description: 'The date and time the dataset was created' })\n createdAt?: Date\n\n @UpdateDateColumn()\n @Field({ nullable: true, description: 'The date and time the dataset was last updated' })\n updatedAt?: Date\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true, description: 'The user who created the dataset' })\n creator?: User\n\n @RelationId((dataSet: DataSet) => dataSet.creator)\n creatorId?: string\n\n @ManyToOne(type => User, { nullable: true })\n @Field({ nullable: true, description: 'The user who last updated the dataset' })\n updater?: User\n\n @RelationId((dataSet: DataSet) => dataSet.updater)\n updaterId?: string\n}\n"]}